@yorz/cli 0.1.6 → 0.3.0
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/README.md +4 -11
- package/dist/cli/index.js +1225 -989
- package/dist/gui/assets/{abnfDiagram-VRR7QNED-Dk823f-p.js → abnfDiagram-VRR7QNED-Dvg_gtwF.js} +1 -1
- package/dist/gui/assets/{arc-CsAcQvy9.js → arc-DPHbXQf3.js} +1 -1
- package/dist/gui/assets/{architectureDiagram-ZJ3FMSHR-9d29EB_v.js → architectureDiagram-ZJ3FMSHR-d6PCjJn6.js} +1 -1
- package/dist/gui/assets/{blockDiagram-677ZJIJ3-C_BdniYG.js → blockDiagram-677ZJIJ3-BC2I0xtq.js} +1 -1
- package/dist/gui/assets/{c4Diagram-LMCZKHZV-COHS5O60.js → c4Diagram-LMCZKHZV-B-KrLqya.js} +1 -1
- package/dist/gui/assets/channel-q4TDwCwL.js +1 -0
- package/dist/gui/assets/{chunk-2Q5K7J3B-CdpNMJAI.js → chunk-2Q5K7J3B-D_6tE8D9.js} +1 -1
- package/dist/gui/assets/{chunk-32BRIVSS-C-5zZ7Xl.js → chunk-32BRIVSS-Bjgyu8pc.js} +1 -1
- package/dist/gui/assets/{chunk-5VM5RSS4-DNMuZJaP.js → chunk-5VM5RSS4-D2ExKDZn.js} +1 -1
- package/dist/gui/assets/{chunk-EX3LRPZG-BGPzkMUB.js → chunk-EX3LRPZG-CAgqmiG1.js} +1 -1
- package/dist/gui/assets/{chunk-JWPE2WC7-DKHh8QvM.js → chunk-JWPE2WC7-32xYgKDA.js} +1 -1
- package/dist/gui/assets/{chunk-MOJQB5TN-DjfrUCo1.js → chunk-MOJQB5TN-DmF1hIRM.js} +1 -1
- package/dist/gui/assets/{chunk-RYQCIY6F-CAOzG_fF.js → chunk-RYQCIY6F-BpygaLmn.js} +1 -1
- package/dist/gui/assets/{chunk-V7JOEXUC-CiYl0Zr6.js → chunk-V7JOEXUC-CL5xjYjs.js} +1 -1
- package/dist/gui/assets/{chunk-VR4S4FIN-C9R15N13.js → chunk-VR4S4FIN-CUKOpnGv.js} +1 -1
- package/dist/gui/assets/{chunk-XXDRQBXY-D08V--b4.js → chunk-XXDRQBXY-rH7GWHx4.js} +1 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-TaYrCNs6.js +1 -0
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-TaYrCNs6.js +1 -0
- package/dist/gui/assets/{cose-bilkent-JH36ORCC-h3WvWy31.js → cose-bilkent-JH36ORCC-Cq80riEI.js} +1 -1
- package/dist/gui/assets/{cynefin-VYW2F7L2-BJJROAhw.js → cynefin-VYW2F7L2-DhvCHInV.js} +1 -1
- package/dist/gui/assets/{cynefinDiagram-TSTJHNR4-Cowr6YON.js → cynefinDiagram-TSTJHNR4-U9_xrCTX.js} +1 -1
- package/dist/gui/assets/{dagre-VKFMJZFB-CHQSayFl.js → dagre-VKFMJZFB-D39LwJ1s.js} +1 -1
- package/dist/gui/assets/{diagram-FQU43EPY-Dkjm-gpD.js → diagram-FQU43EPY-DyZSy6Y2.js} +1 -1
- package/dist/gui/assets/{diagram-G47NLZAW-CWzLjtMq.js → diagram-G47NLZAW-CWTyg-w3.js} +1 -1
- package/dist/gui/assets/{diagram-NH7WQ7WH-CJEfCmpn.js → diagram-NH7WQ7WH-Cfmxj_yc.js} +1 -1
- package/dist/gui/assets/{diagram-OA4YK3LP-DKXL4ZCg.js → diagram-OA4YK3LP-BWR9rLtc.js} +1 -1
- package/dist/gui/assets/{diagram-WEI45ONY-CLvc8CSB.js → diagram-WEI45ONY-BtqMg5zg.js} +1 -1
- package/dist/gui/assets/{ebnfDiagram-CCIWWBDH-D6NViEZ2.js → ebnfDiagram-CCIWWBDH-GFU4rZWL.js} +1 -1
- package/dist/gui/assets/{erDiagram-Q63AITRT-B2mRc5jq.js → erDiagram-Q63AITRT-ByNYUzxd.js} +1 -1
- package/dist/gui/assets/{flowDiagram-23GEKE2U-Bu2CgXeG.js → flowDiagram-23GEKE2U-GIo3zItT.js} +1 -1
- package/dist/gui/assets/{ganttDiagram-NO4QXBWP-CLqVFiRj.js → ganttDiagram-NO4QXBWP-BfDrggvI.js} +1 -1
- package/dist/gui/assets/{gitGraphDiagram-IHSO6WYX-BCeVlEhg.js → gitGraphDiagram-IHSO6WYX-wZAUbbfD.js} +1 -1
- package/dist/gui/assets/index-5bFeMSvk.css +1 -0
- package/dist/gui/assets/index-TN_K4jQM.js +673 -0
- package/dist/gui/assets/{infoDiagram-FWYZ7A6U-CaGDhrD8.js → infoDiagram-FWYZ7A6U-CbVgWslR.js} +1 -1
- package/dist/gui/assets/{ishikawaDiagram-FXEZZL3T-D-IBVo_N.js → ishikawaDiagram-FXEZZL3T-DiZGLvml.js} +1 -1
- package/dist/gui/assets/{journeyDiagram-5HDEW3XC-lxFR0Z8q.js → journeyDiagram-5HDEW3XC-Bto56knB.js} +1 -1
- package/dist/gui/assets/{kanban-definition-HUTT4EX6-C1Quf86J.js → kanban-definition-HUTT4EX6-CyuHCEsI.js} +1 -1
- package/dist/gui/assets/{linear-BmiZLs2L.js → linear-B9sLmbPn.js} +1 -1
- package/dist/gui/assets/{mermaid.core-Qqp0pI8e.js → mermaid.core-bOetDHeS.js} +4 -4
- package/dist/gui/assets/{mindmap-definition-LN4V7U3C-CiuAQSSr.js → mindmap-definition-LN4V7U3C-BUliAfjd.js} +1 -1
- package/dist/gui/assets/{pegDiagram-2B236MQR-BWjeZxVp.js → pegDiagram-2B236MQR-DFWc28Wx.js} +1 -1
- package/dist/gui/assets/{pieDiagram-ENE6RG2P-C2aubU3s.js → pieDiagram-ENE6RG2P-DBqrT9tz.js} +1 -1
- package/dist/gui/assets/{quadrantDiagram-ABIIQ3AL-l-nU_0aa.js → quadrantDiagram-ABIIQ3AL-CrPtmaKy.js} +1 -1
- package/dist/gui/assets/{railroadDiagram-RFXS5EU6-CLs3ePNd.js → railroadDiagram-RFXS5EU6-CQhfd0gh.js} +1 -1
- package/dist/gui/assets/{requirementDiagram-TGXJPOKE-noC5_aOI.js → requirementDiagram-TGXJPOKE-BaZ77i_q.js} +1 -1
- package/dist/gui/assets/{sankeyDiagram-HTMAVEWB-CrVWROCY.js → sankeyDiagram-HTMAVEWB-DC3Exphe.js} +1 -1
- package/dist/gui/assets/{sequenceDiagram-DBY2YBRQ-rrdT6eIu.js → sequenceDiagram-DBY2YBRQ-Bw7wZpQ8.js} +1 -1
- package/dist/gui/assets/{sizeCapture-X5ZJPWSS-DvpoOhEJ.js → sizeCapture-X5ZJPWSS-opzemt6R.js} +1 -1
- package/dist/gui/assets/{stateDiagram-2N3HPSRC-B2ui4ZZN.js → stateDiagram-2N3HPSRC--RB2GGES.js} +1 -1
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-CvRHcdjg.js +1 -0
- package/dist/gui/assets/{swimlanes-5IMT3BWC-DRhf5jKL.js → swimlanes-5IMT3BWC-Bf3o_9Jk.js} +2 -2
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-D30sOFxA.js +8 -0
- package/dist/gui/assets/{timeline-definition-FHXFAJF6-rm68zqM2.js → timeline-definition-FHXFAJF6-CT2bRE0k.js} +1 -1
- package/dist/gui/assets/{vennDiagram-L72KCM5P-BKVMfPvL.js → vennDiagram-L72KCM5P-BYzZHPMG.js} +1 -1
- package/dist/gui/assets/{wardleyDiagram-EHGQE667-eXN3NRZ7.js → wardleyDiagram-EHGQE667-C0QK5-46.js} +1 -1
- package/dist/gui/assets/{xychartDiagram-FW5EYKEG-3VtYytF2.js → xychartDiagram-FW5EYKEG-CD_Qgw-N.js} +1 -1
- package/dist/gui/index.html +2 -2
- package/package.json +7 -1
- package/dist/gui/assets/channel-Cdj31qNd.js +0 -1
- package/dist/gui/assets/classDiagram-OUVF2IWQ-BiCCYKL9.js +0 -1
- package/dist/gui/assets/classDiagram-v2-EOCWNBFH-BiCCYKL9.js +0 -1
- package/dist/gui/assets/index-BCf1jTQa.css +0 -1
- package/dist/gui/assets/index-BYq7_4Z-.js +0 -663
- package/dist/gui/assets/stateDiagram-v2-6OUMAXLB-B_Wcpq2b.js +0 -1
- package/dist/gui/assets/swimlanesDiagram-G3AALYLV-C2fsQgny.js +0 -8
|
@@ -1,663 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const Oe={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return Eu(this.context.count)},getNextContextId(){return Eu(this.context.count++)}};function Eu(e){const t=String(e),n=t.length-1;return Oe.context.id+(n?String.fromCharCode(96+n):"")+t}function no(e){Oe.context=e}const Hg=!1,jg=(e,t)=>e===t,rn=Symbol("solid-proxy"),od=typeof Proxy=="function",ri=Symbol("solid-track"),oi={equals:jg};let id=ld;const cn=1,lo=2,sd={owned:null,cleanups:null,context:null,owner:null},Qi={};var Ue=null;let se=null,Gg=null,We=null,Mt=null,It=null,ki=0;function Qn(e,t){const n=We,r=Ue,o=e.length===0,i=t===void 0?r:t,s=o?sd:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>vt(()=>er(s)));Ue=s,We=null;try{return Yt(a,!0)}finally{We=n,Ue=r}}function I(e,t){t=t?Object.assign({},oi,t):oi;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(se&&se.running&&se.sources.has(n)?o=o(n.tValue):o=o(n.value)),cd(n,o));return[ud.bind(n),r]}function ra(e,t,n){const r=Ai(e,t,!0,cn);Kr(r)}function he(e,t,n){const r=Ai(e,t,!1,cn);Kr(r)}function ae(e,t,n){id=Qg;const r=Ai(e,t,!1,cn),o=xr&&pt(xr);o&&(r.suspense=o),(!n||!n.render)&&(r.user=!0),It?It.push(r):Kr(r)}function J(e,t,n){n=n?Object.assign({},oi,n):oi;const r=Ai(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Kr(r),ud.bind(r)}function Vg(e){return e&&typeof e=="object"&&"then"in e}function Un(e,t,n){let r,o,i;typeof t=="function"?(r=e,o=t,i={}):(r=!0,o=e,i=t||{});let s=null,a=Qi,u=null,c=!1,l=!1,d="initialValue"in i,f=typeof r=="function"&&J(r);const p=new Set,[g,h]=(i.storage||I)(i.initialValue),[m,b]=I(void 0),[y,v]=I(void 0,{equals:!1}),[w,_]=I(d?"ready":"unresolved");Oe.context&&(u=Oe.getNextContextId(),i.ssrLoadFrom==="initial"?a=i.initialValue:Oe.load&&Oe.has(u)&&(a=Oe.load(u)));function k(R,M,F,O){return s===R&&(s=null,O!==void 0&&(d=!0),(R===a||M===a)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(O,{value:M})),a=Qi,se&&R&&c?(se.promises.delete(R),c=!1,Yt(()=>{se.running=!0,A(M,F)},!1)):A(M,F)),M}function A(R,M){Yt(()=>{M===void 0&&h(()=>R),_(M!==void 0?"errored":d?"ready":"unresolved"),b(M);for(const F of p.keys())F.decrement();p.clear()},!1)}function S(){const R=xr&&pt(xr),M=g(),F=m();if(F!==void 0&&!s)throw F;return We&&!We.user&&R&&ra(()=>{y(),s&&(R.resolved&&se&&c?se.promises.add(s):p.has(R)||(R.increment(),p.add(R)))}),M}function D(R=!0){if(R!==!1&&l)return;l=!1;const M=f?f():r;if(c=se&&se.running,M==null||M===!1){k(s,vt(g));return}se&&s&&se.promises.delete(s);let F;const O=a!==Qi?a:vt(()=>{try{return o(M,{value:g(),refetching:R})}catch(P){F=P}});if(F!==void 0){k(s,void 0,ei(F),M);return}else if(!Vg(O))return k(s,O,void 0,M),O;return s=O,"v"in O?(O.s===1?k(s,O.v,void 0,M):k(s,void 0,ei(O.v),M),O):(l=!0,queueMicrotask(()=>l=!1),Yt(()=>{_(d?"refreshing":"pending"),v()},!1),O.then(P=>k(O,P,void 0,M),P=>k(O,void 0,ei(P),M)))}Object.defineProperties(S,{state:{get:()=>w()},error:{get:()=>m()},loading:{get(){const R=w();return R==="pending"||R==="refreshing"}},latest:{get(){if(!d)return S();const R=m();if(R&&!s)throw R;return g()}}});let B=Ue;return f?ra(()=>(B=Ue,D(!1))):D(!1),[S,{refetch:R=>Si(B,()=>D(R)),mutate:h}]}function ad(e){return Yt(e,!1)}function vt(e){if(We===null)return e();const t=We;We=null;try{return e()}finally{We=t}}function Ut(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;const u=vt(()=>t(a,o,s));return o=a,u}}function Kn(e){ae(()=>vt(e))}function ge(e){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[e]:Ue.cleanups.push(e)),e}function oa(){return We}function fo(){return Ue}function Si(e,t){const n=Ue,r=We;Ue=e,We=null;try{return Yt(t,!0)}catch(o){Da(o)}finally{Ue=n,We=r}}function Wg(e){if(se&&se.running)return e(),se.done;const t=We,n=Ue;return Promise.resolve().then(()=>{We=t,Ue=n;let r;return xr&&(r=se||(se={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),r.done||(r.done=new Promise(o=>r.resolve=o)),r.running=!0),Yt(e,!1),We=Ue=null,r?r.done:void 0})}const[HS,ku]=I(!1);function Yg(e){It.push.apply(It,e),e.length=0}function wt(e,t){const n=Symbol("context");return{id:n,Provider:Jg(n),defaultValue:e}}function pt(e){let t;return Ue&&Ue.context&&(t=Ue.context[e.id])!==void 0?t:e.defaultValue}function Ci(e){const t=J(e),n=J(()=>ia(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let xr;function Zg(){return xr||(xr=wt())}function ud(){const e=se&&se.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===cn)Kr(this);else{const t=Mt;Mt=null,Yt(()=>si(this),!1),Mt=t}if(We){const t=this.observers;if(!t||t[t.length-1]!==We){const n=t?t.length:0;We.sources?(We.sources.push(this),We.sourceSlots.push(n)):(We.sources=[this],We.sourceSlots=[n]),t?(t.push(We),this.observerSlots.push(We.sources.length-1)):(this.observers=[We],this.observerSlots=[We.sources.length-1])}}return e&&se.sources.has(this)?this.tValue:this.value}function cd(e,t,n){let r=se&&se.running&&se.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(se){const o=se.running;(o||!n&&se.sources.has(e))&&(se.sources.add(e),e.tValue=t),o||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&Yt(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=se&&se.running;s&&se.disposed.has(i)||((s?!i.tState:!i.state)&&(i.pure?Mt.push(i):It.push(i),i.observers&&dd(i)),s?i.tState=cn:i.state=cn)}if(Mt.length>1e6)throw Mt=[],new Error},!1)}return t}function Kr(e){if(!e.fn)return;er(e);const t=ki;Su(e,se&&se.running&&se.sources.has(e)?e.tValue:e.value,t),se&&!se.running&&se.sources.has(e)&&queueMicrotask(()=>{Yt(()=>{se&&(se.running=!0),We=Ue=e,Su(e,e.tValue,t),We=Ue=null},!1)})}function Su(e,t,n){let r;const o=Ue,i=We;We=Ue=e;try{r=e.fn(t)}catch(s){return e.pure&&(se&&se.running?(e.tState=cn,e.tOwned&&e.tOwned.forEach(er),e.tOwned=void 0):(e.state=cn,e.owned&&e.owned.forEach(er),e.owned=null)),e.updatedAt=n+1,Da(s)}finally{We=i,Ue=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?cd(e,r,!0):se&&se.running&&e.pure?(se.sources.has(e)||(e.value=r),se.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function Ai(e,t,n,r=cn,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ue,context:Ue?Ue.context:null,pure:n};return se&&se.running&&(i.state=0,i.tState=r),Ue===null||Ue!==sd&&(se&&se.running&&Ue.pure?Ue.tOwned?Ue.tOwned.push(i):Ue.tOwned=[i]:Ue.owned?Ue.owned.push(i):Ue.owned=[i]),i}function ii(e){const t=se&&se.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===lo)return si(e);if(e.suspense&&vt(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ki);){if(t&&se.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let o=e,i=n[r+1];for(;(o=o.owner)&&o!==i;)if(se.disposed.has(o))return}if((t?e.tState:e.state)===cn)Kr(e);else if((t?e.tState:e.state)===lo){const o=Mt;Mt=null,Yt(()=>si(e,n[0]),!1),Mt=o}}}function Yt(e,t){if(Mt)return e();let n=!1;t||(Mt=[]),It?n=!0:It=[],ki++;try{const r=e();return Xg(n),r}catch(r){n||(It=null),Mt=null,Da(r)}}function Xg(e){if(Mt&&(ld(Mt),Mt=null),e)return;let t;if(se){if(!se.promises.size&&!se.queue.size){const r=se.sources,o=se.disposed;It.push.apply(It,se.effects),t=se.resolve;for(const i of It)"tState"in i&&(i.state=i.tState),delete i.tState;se=null,Yt(()=>{for(const i of o)er(i);for(const i of r){if(i.value=i.tValue,i.owned)for(let s=0,a=i.owned.length;s<a;s++)er(i.owned[s]);i.tOwned&&(i.owned=i.tOwned),delete i.tValue,delete i.tOwned,i.tState=0}ku(!1)},!1)}else if(se.running){se.running=!1,se.effects.push.apply(se.effects,It),It=null,ku(!0);return}}const n=It;It=null,n.length&&Yt(()=>id(n),!1),t&&t()}function ld(e){for(let t=0;t<e.length;t++)ii(e[t])}function Qg(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:ii(r)}if(Oe.context){if(Oe.count){Oe.effects||(Oe.effects=[]),Oe.effects.push(...e.slice(0,n));return}no()}for(Oe.effects&&(Oe.done||!Oe.count)&&(e=[...Oe.effects,...e],n+=Oe.effects.length,delete Oe.effects),t=0;t<n;t++)ii(e[t])}function si(e,t){const n=se&&se.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];if(o.sources){const i=n?o.tState:o.state;i===cn?o!==t&&(!o.updatedAt||o.updatedAt<ki)&&ii(o):i===lo&&si(o,t)}}}function dd(e){const t=se&&se.running;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=lo:r.state=lo,r.pure?Mt.push(r):It.push(r),r.observers&&dd(r))}}function er(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)er(e.tOwned[t]);delete e.tOwned}if(se&&se.running&&e.pure)fd(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)er(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}se&&se.running?e.tState=0:e.state=0}function fd(e,t){if(t||(e.tState=0,se.disposed.add(e)),e.owned)for(let n=0;n<e.owned.length;n++)fd(e.owned[n])}function ei(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Da(e,t=Ue){throw ei(e)}function ia(e){if(typeof e=="function"&&!e.length)return ia(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=ia(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}return t}return e}function Jg(e,t){return function(r){let o;return he(()=>o=vt(()=>(Ue.context={...Ue.context,[e]:r.value},Ci(()=>r.children))),void 0),o}}const ep=Symbol("fallback");function Cu(e){for(let t=0;t<e.length;t++)e[t]()}function tp(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return ge(()=>Cu(i)),()=>{let u=e()||[],c=u.length,l,d;return u[ri],vt(()=>{let p,g,h,m,b,y,v,w,_;if(c===0)s!==0&&(Cu(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[ep],o[0]=Qn(k=>(i[0]=k,n.fallback())),s=1);else if(s===0){for(o=new Array(c),d=0;d<c;d++)r[d]=u[d],o[d]=Qn(f);s=c}else{for(h=new Array(c),m=new Array(c),a&&(b=new Array(c)),y=0,v=Math.min(s,c);y<v&&r[y]===u[y];y++);for(v=s-1,w=c-1;v>=y&&w>=y&&r[v]===u[w];v--,w--)h[w]=o[v],m[w]=i[v],a&&(b[w]=a[v]);for(p=new Map,g=new Array(w+1),d=w;d>=y;d--)_=u[d],l=p.get(_),g[d]=l===void 0?-1:l,p.set(_,d);for(l=y;l<=v;l++)_=r[l],d=p.get(_),d!==void 0&&d!==-1?(h[d]=o[l],m[d]=i[l],a&&(b[d]=a[l]),d=g[d],p.set(_,d)):i[l]();for(d=y;d<c;d++)d in h?(o[d]=h[d],i[d]=m[d],a&&(a[d]=b[d],a[d](d))):o[d]=Qn(f);o=o.slice(0,s=c),r=u.slice(0)}return o});function f(p){if(i[d]=p,a){const[g,h]=I(d);return a[d]=h,t(u[d],g)}return t(u[d])}}}function x(e,t){return vt(()=>e(t||{}))}function Uo(){return!0}const sa={get(e,t,n){return t===rn?n:e.get(t)},has(e,t){return t===rn?!0:e.has(t)},set:Uo,deleteProperty:Uo,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Uo,deleteProperty:Uo}},ownKeys(e){return e.keys()}};function Ji(e){return(e=typeof e=="function"?e():e)?e:{}}function np(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function te(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&rn in a,e[s]=typeof a=="function"?(t=!0,J(a)):a}if(od&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const u=Ji(e[a])[s];if(u!==void 0)return u}},has(s){for(let a=e.length-1;a>=0;a--)if(s in Ji(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(Ji(e[a])));return[...new Set(s)]}},sa);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const u=Object.getOwnPropertyNames(a);for(let c=u.length-1;c>=0;c--){const l=u[c];if(l==="__proto__"||l==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,l);if(!r[l])r[l]=d.get?{enumerable:!0,configurable:!0,get:np.bind(n[l]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const f=n[l];f&&(d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const a=i[s],u=r[a];u&&u.get?Object.defineProperty(o,a,u):o[a]=u?u.value:void 0}return o}function ke(e,...t){const n=t.length;if(od&&rn in e){const o=n>1?t.flat():t[0],i=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},sa));return i.push(new Proxy({get(s){return o.includes(s)?void 0:e[s]},has(s){return o.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.includes(s))}},sa)),i}const r=[];for(let o=0;o<=n;o++)r[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=n;for(let u=0;u<t.length;u++)if(t[u].includes(o)){i=u;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[i][o]=s.value:Object.defineProperty(r[i],o,s)}return r}let rp=0;function fn(){return Oe.context?Oe.getNextContextId():`cl-${rp++}`}const op=e=>`Stale read from <${e}>.`;function Pt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return J(tp(()=>e.each,e.children,t||void 0))}function X(e){const t=e.keyed,n=J(()=>e.when,void 0,void 0),r=t?n:J(n,void 0,{equals:(o,i)=>!o==!i});return J(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?vt(()=>i(t?o:()=>{if(!vt(r))throw op("Show");return n()})):i}return e.fallback},void 0,void 0)}const ip=wt();function Ti(e){let t=0,n,r,o,i,s;const[a,u]=I(!1),c=Zg(),l={increment:()=>{++t===1&&u(!0)},decrement:()=>{--t===0&&u(!1)},inFallback:a,effects:[],resolved:!1},d=fo();if(Oe.context&&Oe.load){const g=Oe.getContextId();let h=Oe.load(g);if(h&&(typeof h!="object"||h.s!==1?o=h:Oe.gather(g)),o&&o!=="$$f"){const[m,b]=I(void 0,{equals:!1});i=m,o.then(()=>{if(Oe.done)return b();Oe.gather(g),no(r),b(),no()},y=>{s=y,b()})}}const f=pt(ip);f&&(n=f.register(l.inFallback));let p;return ge(()=>p&&p()),x(c.Provider,{value:l,get children(){return J(()=>{if(s)throw s;if(r=Oe.context,i)return i(),i=void 0;r&&o==="$$f"&&no();const g=J(()=>e.children);return J(h=>{const m=l.inFallback(),{showContent:b=!0,showFallback:y=!0}=n?n():{};if((!m||o&&o!=="$$f")&&b)return l.resolved=!0,p&&p(),p=r=o=void 0,Yg(l.effects),g();if(y)return p?h:Qn(v=>(p=v,r&&(no({id:r.id+"F",count:0}),r=void 0),e.fallback),d)})})}})}const sp=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],ap=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...sp]),up=new Set(["innerHTML","textContent","innerText","children"]),cp=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),lp=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function dp(e,t){const n=lp[e];return typeof n=="object"?n[t]?n.$:void 0:n}const fp=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),gp=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),pp={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},ce=e=>J(()=>e());function hp(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,u=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const l=i<r?a?n[a-1].nextSibling:n[i-a]:u;for(;a<i;)e.insertBefore(n[a++],l)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const l=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],l),t[o]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const l=c.get(t[s]);if(l!=null)if(a<l&&l<i){let d=s,f=1,p;for(;++d<o&&d<i&&!((p=c.get(t[d]))==null||p!==l+f);)f++;if(f>l-a){const g=t[s];for(;a<l;)e.insertBefore(n[a++],g)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const Au="_$DX_DELEGATE";function mp(e,t,n,r={}){let o;return Qn(i=>{o=i,t===document?e():E(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function $(e,t,n,r){let o;const i=()=>{const a=document.createElement("template");return a.innerHTML=e,a.content.firstChild},s=()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function Cn(e,t=window.document){const n=t[Au]||(t[Au]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,kp))}}function ve(e,t,n){_r(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function bp(e,t,n,r){_r(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function yp(e,t,n){_r(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function dt(e,t){_r(e)||(t==null?e.removeAttribute("class"):e.className=t)}function xp(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function vp(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(Tu(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){const a=r[i],u=!!t[a];!a||a==="undefined"||n[a]===u||!u||(Tu(e,a,!0),n[a]=u)}return n}function mr(e,t,n){if(!t)return n?ve(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function ai(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function sr(e,t={},n,r){const o={};return r||he(()=>o.children=go(e,t.children,o.children)),he(()=>typeof t.ref=="function"&&tr(t.ref,e)),he(()=>wp(e,t,n,!0,o,!0)),o}function tr(e,t,n){return vt(()=>e(t,n))}function E(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return go(e,t,r,n);he(o=>go(e,t(),o,n),r)}function wp(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=Du(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=Du(e,s,a,o[s],n,i,t)}}function _p(e){let t,n;return!_r()||!(t=Oe.registry.get(n=Sp()))?e():(Oe.completed&&Oe.completed.add(t),Oe.registry.delete(n),t)}function _r(e){return!!Oe.context&&!Oe.done&&(!e||e.isConnected)}function Ep(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Tu(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Du(e,t,n,r,o,i,s){let a,u,c,l,d;if(t==="style")return mr(e,n,r);if(t==="classList")return vp(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),p=fp.has(f);if(!p&&r){const g=Array.isArray(r)?r[0]:r;e.removeEventListener(f,g)}(p||n)&&(xp(e,f,n,p),p&&Cn([f]))}else if(t.slice(0,5)==="attr:")ve(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")yp(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=up.has(t))||!o&&((l=dp(t,e.tagName))||(u=ap.has(t)))||(a=e.nodeName.includes("-")||"is"in s)){if(d)t=t.slice(5),u=!0;else if(_r(e))return n;t==="class"||t==="className"?dt(e,n):a&&!u&&!c?e[Ep(t)]=n:e[l||t]=n}else{const f=o&&t.indexOf(":")>-1&&pp[t.split(":")[0]];f?bp(e,f,t,n):ve(e,cp[t]||t,n)}return n}function kp(e){if(Oe.registry&&Oe.events&&Oe.events.find(([u,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=u=>Object.defineProperty(e,"target",{configurable:!0,value:u}),s=()=>{const u=t[n];if(u&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?u.call(t,c,e):u.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Oe.registry&&!Oe.done&&(Oe.done=_$HY.done=!0),e.composedPath){const u=e.composedPath();i(u[0]);for(let c=0;c<u.length-2&&(t=u[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}function go(e,t,n,r,o){const i=_r(e);if(i){!n&&(n=[...e.childNodes]);let u=[];for(let c=0;c<n.length;c++){const l=n[c];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():u.push(l)}n=u}for(;typeof n=="function";)n=n();if(t===n)return n;const s=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,s==="string"||s==="number"){if(i||s==="number"&&(t=t.toString(),t===n))return n;if(a){let u=n[0];u&&u.nodeType===3?u.data!==t&&(u.data=t):u=document.createTextNode(t),n=Ar(e,n,r,u)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||s==="boolean"){if(i)return n;n=Ar(e,n,r)}else{if(s==="function")return he(()=>{let u=t();for(;typeof u=="function";)u=u();n=go(e,u,n,r)}),()=>n;if(Array.isArray(t)){const u=[],c=n&&Array.isArray(n);if(aa(u,t,n,o))return he(()=>n=go(e,u,n,r,!0)),()=>n;if(i){if(!u.length)return n;if(r===void 0)return n=[...e.childNodes];let l=u[0];if(l.parentNode!==e)return n;const d=[l];for(;(l=l.nextSibling)!==r;)d.push(l);return n=d}if(u.length===0){if(n=Ar(e,n,r),a)return n}else c?n.length===0?Ou(e,u,r):hp(e,n,u):(n&&Ar(e),Ou(e,u));n=u}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Ar(e,n,r,t);Ar(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function aa(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],u=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=aa(e,a,u)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=aa(e,Array.isArray(a)?a:[a],Array.isArray(u)?u:[u])||o}else e.push(a),o=!0;else{const l=String(a);u&&u.nodeType===3&&u.data===l?e.push(u):e.push(document.createTextNode(l))}}return o}function Ou(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Ar(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const u=a.parentNode===e;!i&&!s?u?e.replaceChild(o,a):e.insertBefore(o,n):u&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function Sp(){return Oe.getNextContextId()}const Cp=!1,Ap="http://www.w3.org/2000/svg";function gd(e,t=!1,n=void 0){return t?document.createElementNS(Ap,e):document.createElement(e,{is:n})}function pd(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=fo();let i,s=!!Oe.context;return ae(()=>{s&&(fo().user=s=!1),i||(i=Si(o,()=>J(()=>e.children)));const a=r();if(a instanceof HTMLHeadElement){const[u,c]=I(!1),l=()=>c(!0);Qn(d=>E(a,()=>u()?d():i(),null)),ge(l)}else{const u=gd(e.isSVG?"g":"div",e.isSVG),c=t&&u.attachShadow?u.attachShadow({mode:"open"}):u;Object.defineProperty(u,"_$host",{get(){return n.parentNode},configurable:!0}),E(c,i),a.appendChild(u),e.ref&&e.ref(u),ge(()=>a.removeChild(u))}},void 0,{render:!s}),n}function Tp(e,t){const n=J(e);return J(()=>{const r=n();switch(typeof r){case"function":return vt(()=>r(t));case"string":const o=gp.has(r),i=Oe.context?_p():gd(r,o,vt(()=>t.is));return sr(i,t,o),i}})}function hd(e){const[,t]=ke(e,["component"]);return Tp(()=>e.component,t)}function md(){let e=new Set;function t(o){return e.add(o),()=>e.delete(o)}let n=!1;function r(o,i){if(n)return!(n=!1);const s={to:o,options:i,defaultPrevented:!1,preventDefault:()=>s.defaultPrevented=!0};for(const a of e)a.listener({...s,from:a.location,retry:u=>{u&&(n=!0),a.navigate(o,{...i,resolve:!1})}});return!s.defaultPrevented}return{subscribe:t,confirm:r}}let ua;function Oa(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),ua=window.history.state._depth}Oa();function Dp(e){return{...e,_depth:window.history.state&&window.history.state._depth}}function Op(e,t){let n=!1;return()=>{const r=ua;Oa();const o=r==null?null:ua-r;if(n){n=!1;return}o&&t(o)?(n=!0,window.history.go(-o)):e()}}const Np=/^(?:[a-z0-9]+:)?\/\//i,Rp=/^\/+|(\/)\/+$/g,bd="http://sr";function br(e,t=!1){const n=e.replace(Rp,"$1");return n?t||/^[?#]/.test(n)?n:"/"+n:""}function ti(e,t,n){if(Np.test(t))return;const r=br(e),o=n&&br(n);let i="";return!o||t.startsWith("/")?i=r:o.toLowerCase().indexOf(r.toLowerCase())!==0?i=r+o:i=o,(i||"/")+br(t,!i)}function Ip(e,t){if(e==null)throw new Error(t);return e}function Mp(e,t){return br(e).replace(/\/*(\*.*)?$/g,"")+br(t)}function yd(e){const t={};return e.searchParams.forEach((n,r)=>{r in t?Array.isArray(t[r])?t[r].push(n):t[r]=[t[r],n]:t[r]=n}),t}function Lp(e,t,n){const[r,o]=e.split("/*",2),i=r.split("/").filter(Boolean),s=i.length;return a=>{const u=a.split("/").filter(Boolean),c=u.length-s;if(c<0||c>0&&o===void 0&&!t)return null;const l={path:s?"":"/",params:{}},d=f=>n===void 0?void 0:n[f];for(let f=0;f<s;f++){const p=i[f],g=p[0]===":",h=g?u[f]:u[f].toLowerCase(),m=g?p.slice(1):p.toLowerCase();if(g&&es(h,d(m)))l.params[m]=h;else if(g||!es(h,m))return null;l.path+=`/${h}`}if(o){const f=c?u.slice(-c).join("/"):"";if(es(f,d(o)))l.params[o]=f;else return null}return l}}function es(e,t){const n=r=>r===e;return t===void 0?!0:typeof t=="string"?n(t):typeof t=="function"?t(e):Array.isArray(t)?t.some(n):t instanceof RegExp?t.test(e):!1}function $p(e){const[t,n]=e.pattern.split("/*",2),r=t.split("/").filter(Boolean);return r.reduce((o,i)=>o+(i.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function xd(e){const t=new Map,n=fo();return new Proxy({},{get(r,o){return t.has(o)||Si(n,()=>t.set(o,J(()=>e()[o]))),t.get(o)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(e())},has(r,o){return o in e()}})}function Fp(e,t){const n=new URLSearchParams(e);Object.entries(t).forEach(([o,i])=>{i==null||i===""||i instanceof Array&&!i.length?n.delete(o):i instanceof Array?(n.delete(o),i.forEach(s=>{n.append(o,String(s))})):n.set(o,String(i))});const r=n.toString();return r?`?${r}`:""}function vd(e){let t=/(\/?\:[^\/]+)\?/.exec(e);if(!t)return[e];let n=e.slice(0,t.index),r=e.slice(t.index+t[0].length);const o=[n,n+=t[1]];for(;t=/^(\/\:[^\/]+)\?/.exec(r);)o.push(n+=t[1]),r=r.slice(t[0].length);return vd(r).reduce((i,s)=>[...i,...o.map(a=>a+s)],[])}const Pp=100,wd=wt(),Na=wt(),ko=()=>Ip(pt(wd),"<A> and 'use' router primitives can be only used inside a Route."),Bp=()=>pt(Na)||ko().base,zp=e=>{const t=Bp();return J(()=>t.resolvePath(e()))},Up=e=>{const t=ko();return J(()=>{const n=e();return n!==void 0?t.renderPath(n):n})},So=()=>ko().navigatorFactory(),Co=()=>ko().location,Di=()=>ko().params,Kp=()=>{const e=Co(),t=So(),n=(r,o)=>{const i=vt(()=>Fp(e.search,r)+e.hash);t(i,{scroll:!1,resolve:!1,...o})};return[e.query,n]};function qp(e,t=""){const{component:n,preload:r,load:o,children:i,info:s}=e,a=!i||Array.isArray(i)&&!i.length,u={key:e,component:n,preload:r||o,info:s};return _d(e.path).reduce((c,l)=>{for(const d of vd(l)){const f=Mp(t,d);let p=a?f:f.split("/*",1)[0];p=p.split("/").map(g=>g.startsWith(":")||g.startsWith("*")?g:encodeURIComponent(g)).join("/"),c.push({...u,originalPath:l,pattern:p,matcher:Lp(p,!a,e.matchFilters)})}return c},[])}function Hp(e,t=0){return{routes:e,score:$p(e[e.length-1])*1e4-t,matcher(n){const r=[];for(let o=e.length-1;o>=0;o--){const i=e[o],s=i.matcher(n);if(!s)return null;r.unshift({...s,route:i})}return r}}}function _d(e){return Array.isArray(e)?e:[e]}function Ed(e,t="",n=[],r=[]){const o=_d(e);for(let i=0,s=o.length;i<s;i++){const a=o[i];if(a&&typeof a=="object"){a.hasOwnProperty("path")||(a.path="");const u=qp(a,t);for(const c of u){n.push(c);const l=Array.isArray(a.children)&&a.children.length===0;if(a.children&&!l)Ed(a.children,c.pattern,n,r);else{const d=Hp([...n],r.length);r.push(d)}n.pop()}}}return n.length?r:r.sort((i,s)=>s.score-i.score)}function ts(e,t){for(let n=0,r=e.length;n<r;n++){const o=e[n].matcher(t);if(o)return o}return[]}function jp(e,t,n){const r=new URL(bd),o=J(l=>{const d=e();try{return new URL(d,r)}catch{return console.error(`Invalid path ${d}`),l}},r,{equals:(l,d)=>l.href===d.href}),i=J(()=>o().pathname),s=J(()=>o().search,!0),a=J(()=>o().hash),u=()=>"",c=Ut(s,()=>yd(o()));return{get pathname(){return i()},get search(){return s()},get hash(){return a()},get state(){return t()},get key(){return u()},query:n?n(c):xd(c)}}let hr;function Gp(){return hr}function Vp(e,t,n,r={}){const{signal:[o,i],utils:s={}}=e,a=s.parsePath||(O=>O),u=s.renderPath||(O=>O),c=s.beforeLeave||md(),l=ti("",r.base||"");if(l===void 0)throw new Error(`${l} is not a valid base path`);l&&!o().value&&i({value:l,replace:!0,scroll:!1});const[d,f]=I(!1);let p;const g=(O,P)=>{P.value===h()&&P.state===b()||(p===void 0&&f(!0),hr=O,p=P,Wg(()=>{p===P&&(m(p.value),y(p.state),_[1](G=>G.filter(L=>L.pending)))}).finally(()=>{p===P&&ad(()=>{hr=void 0,O==="navigate"&&M(p),f(!1),p=void 0})}))},[h,m]=I(o().value),[b,y]=I(o().state),v=jp(h,b,s.queryWrapper),w=[],_=I([]),k=J(()=>typeof r.transformUrl=="function"?ts(t(),r.transformUrl(v.pathname)):ts(t(),v.pathname)),A=()=>{const O=k(),P={};for(let G=0;G<O.length;G++)Object.assign(P,O[G].params);return P},S=s.paramsWrapper?s.paramsWrapper(A,t):xd(A),D={pattern:l,path:()=>l,outlet:()=>null,resolvePath(O){return ti(l,O)}};return he(Ut(o,O=>g("native",O),{defer:!0})),{base:D,location:v,params:S,isRouting:d,renderPath:u,parsePath:a,navigatorFactory:R,matches:k,beforeLeave:c,preloadRoute:F,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:_};function B(O,P,G){vt(()=>{if(typeof P=="number"){P&&(s.go?s.go(P):console.warn("Router integration does not support relative routing"));return}const L=!P||P[0]==="?",{replace:q,resolve:j,scroll:N,state:Y}={replace:!1,resolve:!L,scroll:!0,...G},ee=j?O.resolvePath(P):ti(L&&v.pathname||"",P);if(ee===void 0)throw new Error(`Path '${P}' is not a routable path`);if(w.length>=Pp)throw new Error("Too many redirects");const Te=h();(ee!==Te||Y!==b())&&(Cp||c.confirm(ee,G)&&(w.push({value:Te,replace:q,scroll:N,state:b()}),g("navigate",{value:ee,state:Y})))})}function R(O){return O=O||pt(Na)||D,(P,G)=>B(O,P,G)}function M(O){const P=w[0];P&&(i({...O,replace:P.replace,scroll:P.scroll}),w.length=0)}function F(O,P){const G=ts(t(),O.pathname),L=hr;hr="preload";for(let q in G){const{route:j,params:N}=G[q];j.component&&j.component.preload&&j.component.preload();const{preload:Y}=j;P&&Y&&Si(n(),()=>Y({params:N,location:{pathname:O.pathname,search:O.search,hash:O.hash,query:yd(O),state:null,key:""},intent:"preload"}))}hr=L}}function Wp(e,t,n,r){const{base:o,location:i,params:s}=e,{pattern:a,component:u,preload:c}=r().route,l=J(()=>r().path);u&&u.preload&&u.preload();const d=c?c({params:s,location:i,intent:hr||"initial"}):void 0;return{parent:t,pattern:a,path:l,outlet:()=>u?x(u,{params:s,location:i,data:d,get children(){return n()}}):n(),resolvePath(p){return ti(o.path(),p,l())}}}const Yp=e=>t=>{const{base:n}=t,r=Ci(()=>t.children),o=J(()=>Ed(r(),t.base||""));let i;const s=Vp(e,o,()=>i,{base:n,singleFlight:t.singleFlight,transformUrl:t.transformUrl});return e.create&&e.create(s),x(wd.Provider,{value:s,get children(){return x(Zp,{routerState:s,get root(){return t.root},get preload(){return t.rootPreload||t.rootLoad},get children(){return[ce(()=>(i=fo())&&null),x(Xp,{routerState:s,get branches(){return o()}})]}})}})};function Zp(e){const t=e.routerState.location,n=e.routerState.params,r=J(()=>e.preload&&vt(()=>{e.preload({params:n,location:t,intent:Gp()||"initial"})}));return x(X,{get when(){return e.root},keyed:!0,get fallback(){return e.children},children:o=>x(o,{params:n,location:t,get data(){return r()},get children(){return e.children}})})}function Xp(e){const t=[];let n;const r=J(Ut(e.routerState.matches,(o,i,s)=>{let a=i&&o.length===i.length;const u=[];for(let c=0,l=o.length;c<l;c++){const d=i&&i[c],f=o[c];s&&d&&f.route.key===d.route.key?u[c]=s[c]:(a=!1,t[c]&&t[c](),Qn(p=>{t[c]=p,u[c]=Wp(e.routerState,u[c-1]||e.routerState.base,Nu(()=>r()[c+1]),()=>{const g=e.routerState.matches();return g[c]??g[0]})}))}return t.splice(o.length).forEach(c=>c()),s&&a?s:(n=u[0],u)}));return Nu(()=>r()&&n)()}const Nu=e=>()=>x(X,{get when(){return e()},keyed:!0,children:t=>x(Na.Provider,{value:t,get children(){return t.outlet()}})}),dr=e=>{const t=Ci(()=>e.children);return te(e,{get children(){return t()}})};function Qp([e,t],n,r){return[e,r?o=>t(r(o)):t]}function Jp(e){let t=!1;const n=o=>typeof o=="string"?{value:o}:o,r=Qp(I(n(e.get()),{equals:(o,i)=>o.value===i.value&&o.state===i.state}),void 0,o=>(!t&&e.set(o),Oe.registry&&!Oe.done&&(Oe.done=!0),o));return e.init&&ge(e.init((o=e.get())=>{t=!0,r[1](n(o)),t=!1})),Yp({signal:r,create:e.create,utils:e.utils})}function eh(e,t,n){return e.addEventListener(t,n),()=>e.removeEventListener(t,n)}function th(e,t){const n=e&&document.getElementById(e);n?n.scrollIntoView():t&&window.scrollTo(0,0)}const nh=new Map;function rh({preload:e=!0,explicitLinks:t=!1,actionBase:n="/_server",transformUrl:r}={}){return o=>{const i=o.base.path(),s=o.navigatorFactory(o.base);let a,u;function c(h){return h.namespaceURI==="http://www.w3.org/2000/svg"}function l(h){if(h.defaultPrevented||h.button!==0||h.metaKey||h.altKey||h.ctrlKey||h.shiftKey)return;const m=h.composedPath().find(k=>k instanceof Node&&k.nodeName.toUpperCase()==="A");if(!m||t&&!m.hasAttribute("link"))return;const b=c(m),y=b?m.href.baseVal:m.href;if((b?m.target.baseVal:m.target)||!y&&!m.hasAttribute("state"))return;const w=(m.getAttribute("rel")||"").split(/\s+/);if(m.hasAttribute("download")||w&&w.includes("external"))return;const _=b?new URL(y,document.baseURI):new URL(y);if(!(_.origin!==window.location.origin||i&&_.pathname&&!_.pathname.toLowerCase().startsWith(i.toLowerCase())))return[m,_]}function d(h){const m=l(h);if(!m)return;const[b,y]=m,v=o.parsePath(y.pathname+y.search+y.hash),w=b.getAttribute("state");h.preventDefault(),s(v,{resolve:!1,replace:b.hasAttribute("replace"),scroll:!b.hasAttribute("noscroll"),state:w?JSON.parse(w):void 0})}function f(h){const m=l(h);if(!m)return;const[b,y]=m;r&&(y.pathname=r(y.pathname)),o.preloadRoute(y,b.getAttribute("preload")!=="false")}function p(h){clearTimeout(a);const m=l(h);if(!m)return u=null;const[b,y]=m;u!==b&&(r&&(y.pathname=r(y.pathname)),a=setTimeout(()=>{o.preloadRoute(y,b.getAttribute("preload")!=="false"),u=b},20))}function g(h){if(h.defaultPrevented)return;let m=h.submitter&&h.submitter.hasAttribute("formaction")?h.submitter.getAttribute("formaction"):h.target.getAttribute("action");if(!m)return;if(!m.startsWith("https://action/")){const y=new URL(m,bd);if(m=o.parsePath(y.pathname+y.search),!m.startsWith(n))return}if(h.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const b=nh.get(m);if(b){h.preventDefault();const y=new FormData(h.target,h.submitter);b.call({r:o,f:h.target},h.target.enctype==="multipart/form-data"?y:new URLSearchParams(y))}}Cn(["click","submit"]),document.addEventListener("click",d),e&&(document.addEventListener("mousemove",p,{passive:!0}),document.addEventListener("focusin",f,{passive:!0}),document.addEventListener("touchstart",f,{passive:!0})),document.addEventListener("submit",g),ge(()=>{document.removeEventListener("click",d),e&&(document.removeEventListener("mousemove",p),document.removeEventListener("focusin",f),document.removeEventListener("touchstart",f)),document.removeEventListener("submit",g)})}}function oh(e){const t=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,o=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:r+window.location.hash,state:o}},n=md();return Jp({get:t,set({value:r,replace:o,scroll:i,state:s}){o?window.history.replaceState(Dp(s),"",r):window.history.pushState(s,"",r),th(decodeURIComponent(window.location.hash.slice(1)),i),Oa()},init:r=>eh(window,"popstate",Op(r,o=>{if(o)return!n.confirm(o);{const i=t();return!n.confirm(i.value,{state:i.state})}})),create:rh({preload:e.preload,explicitLinks:e.explicitLinks,actionBase:e.actionBase,transformUrl:e.transformUrl}),utils:{go:r=>window.history.go(r),beforeLeave:n}})(e)}var ih=$("<a>");function zn(e){e=te({inactiveClass:"inactive",activeClass:"active"},e);const[,t]=ke(e,["href","state","class","activeClass","inactiveClass","end"]),n=zp(()=>e.href),r=Up(n),o=Co(),i=J(()=>{const s=n();if(s===void 0)return[!1,!1];const a=br(s.split(/[?#]/,1)[0]).toLowerCase(),u=decodeURI(br(o.pathname).toLowerCase());return[e.end?a===u:u.startsWith(a+"/")||u===a,a===u]});return(()=>{var s=ih();return sr(s,te(t,{get href(){return r()||e.href},get state(){return JSON.stringify(e.state)},get classList(){return{...e.class&&{[e.class]:!0},[e.inactiveClass]:!i()[0],[e.activeClass]:i()[0],...t.classList}},link:"",get"aria-current"(){return i()[1]?"page":void 0}}),!1,!1),s})()}function sh(e){const t=So(),n=Co(),{href:r,state:o}=e,i=typeof r=="function"?r({navigate:t,location:n}):r;return t(i,{replace:!0,state:o}),null}const ui=Symbol("store-raw"),yr=Symbol("store-node"),yn=Symbol("store-has"),kd=Symbol("store-self");function Sd(e){let t=e[rn];if(!t&&(Object.defineProperty(e,rn,{value:t=new Proxy(e,ch)}),!Array.isArray(e))){const n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e),o=Object.getPrototypeOf(e),i=o!==null&&e!==null&&typeof e=="object"&&!Array.isArray(e)&&o!==Object.prototype;if(i){const s=Object.getOwnPropertyDescriptors(o);n.push(...Object.keys(s)),Object.assign(r,s)}for(let s=0,a=n.length;s<a;s++){const u=n[s];i&&u==="constructor"||r[u].get&&Object.defineProperty(e,u,{configurable:!0,enumerable:r[u].enumerable,get:r[u].get.bind(t)})}}return t}function kn(e){let t;return e!=null&&typeof e=="object"&&(e[rn]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function vr(e,t=new Set){let n,r,o,i;if(n=e!=null&&e[ui])return n;if(!kn(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let s=0,a=e.length;s<a;s++)o=e[s],(r=vr(o,t))!==o&&(e[s]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const s=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let u=0,c=s.length;u<c;u++)i=s[u],!a[i].get&&(o=e[i],(r=vr(o,t))!==o&&(e[i]=r))}return e}function ci(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function po(e,t,n){if(e[t])return e[t];const[r,o]=I(n,{equals:!1,internal:!0});return r.$=o,e[t]=r}function ah(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===rn||t===yr||(delete n.value,delete n.writable,n.get=()=>e[rn][t]),n}function Cd(e){oa()&&po(ci(e,yr),kd)()}function uh(e){return Cd(e),Reflect.ownKeys(e)}const ch={get(e,t,n){if(t===ui)return e;if(t===rn)return n;if(t===ri)return Cd(e),n;const r=ci(e,yr),o=r[t];let i=o?o():e[t];if(t===yr||t===yn||t==="__proto__")return i;if(!o){const s=Object.getOwnPropertyDescriptor(e,t);oa()&&(typeof i!="function"||e.hasOwnProperty(t))&&!(s&&s.get)&&(i=po(r,t,i)())}return kn(i)?Sd(i):i},has(e,t){return t===ui||t===rn||t===ri||t===yr||t===yn||t==="__proto__"?!0:(oa()&&po(ci(e,yn),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:uh,getOwnPropertyDescriptor:ah};function zt(e,t,n,r=!1){if(t==="__proto__"||!r&&e[t]===n)return;const o=e[t],i=e.length;n===void 0?(delete e[t],e[yn]&&e[yn][t]&&o!==void 0&&e[yn][t].$()):(e[t]=n,e[yn]&&e[yn][t]&&o===void 0&&e[yn][t].$());let s=ci(e,yr),a;if((a=po(s,t,o))&&a.$(()=>n),Array.isArray(e)&&e.length!==i){for(let u=e.length;u<i;u++)(a=s[u])&&a.$();(a=po(s,"length",i))&&a.$(e.length)}(a=s[kd])&&a.$()}function Ad(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Td(o)||zt(e,o,t[o])}}function Td(e){return e==="__proto__"||e==="constructor"||e==="prototype"}function lh(e,t){if(typeof t=="function"&&(t=t(e)),t=vr(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const o=t[n];e[n]!==o&&zt(e,n,o)}zt(e,"length",r)}else Ad(e,t)}function ro(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const s=typeof r,a=Array.isArray(e);if(s==="string"&&(r==="__proto__"||t.length>1&&Td(r)))return;if(Array.isArray(r)){for(let u=0;u<r.length;u++)ro(e,[r[u]].concat(t),n);return}else if(a&&s==="function"){for(let u=0;u<e.length;u++)r(e[u],u)&&ro(e,[u].concat(t),n);return}else if(a&&s==="object"){const{from:u=0,to:c=e.length-1,by:l=1}=r;for(let d=u;d<=c;d+=l)ro(e,[d].concat(t),n);return}else if(t.length>1){ro(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let i=t[0];typeof i=="function"&&(i=i(o,n),i===o)||r===void 0&&i==null||(i=vr(i),r===void 0||kn(o)&&kn(i)&&!Array.isArray(i)?Ad(o,i):zt(e,r,i))}function Dd(...[e,t]){const n=vr(e||{}),r=Array.isArray(n),o=Sd(n);function i(...s){ad(()=>{r&&s.length===1?lh(n,s[0]):ro(n,s)})}return[o,i]}const ca=Symbol("store-root");function Ru(e){return e==="__proto__"||e==="constructor"||e==="prototype"}function Nr(e,t,n,r,o){if(Ru(n))return;const i=t[n];if(e===i)return;const s=Array.isArray(e);if(n!==ca&&(!kn(e)||!kn(i)||s!==Array.isArray(i)||o&&e[o]!==i[o])){zt(t,n,e);return}if(s){if(e.length&&i.length&&(!r||o&&e[0]&&e[0][o]!=null)){let c,l,d,f,p,g,h,m;for(d=0,f=Math.min(i.length,e.length);d<f&&(i[d]===e[d]||o&&i[d]&&e[d]&&i[d][o]&&i[d][o]===e[d][o]);d++)Nr(e[d],i,d,r,o);const b=new Array(e.length),y=new Map;for(f=i.length-1,p=e.length-1;f>=d&&p>=d&&(i[f]===e[p]||o&&i[f]&&e[p]&&i[f][o]&&i[f][o]===e[p][o]);f--,p--)b[p]=i[f];if(d>p||d>f){for(l=d;l<=p;l++)zt(i,l,e[l]);for(;l<e.length;l++)zt(i,l,b[l]),Nr(e[l],i,l,r,o);i.length>e.length&&zt(i,"length",e.length);return}for(h=new Array(p+1),l=p;l>=d;l--)g=e[l],m=o&&g?g[o]:g,c=y.get(m),h[l]=c===void 0?-1:c,y.set(m,l);for(c=d;c<=f;c++)g=i[c],m=o&&g?g[o]:g,l=y.get(m),l!==void 0&&l!==-1&&(b[l]=i[c],l=h[l],y.set(m,l));for(l=d;l<e.length;l++)l in b?(zt(i,l,b[l]),Nr(e[l],i,l,r,o)):zt(i,l,e[l])}else for(let c=0,l=e.length;c<l;c++)Nr(e[c],i,c,r,o);i.length>e.length&&zt(i,"length",e.length);return}const a=Object.keys(e);for(let c=0,l=a.length;c<l;c++)Ru(a[c])||Nr(e[a[c]],i,a[c],r,o);const u=Object.keys(i);for(let c=0,l=u.length;c<l;c++)e[u[c]]===void 0&&zt(i,u[c],void 0)}function dh(e,t={}){const{merge:n,key:r="id"}=t,o=vr(e);return i=>{if(!kn(i)||!kn(o))return o;const s=Nr(o,{[ca]:i},ca,n,r);return s===void 0?i:s}}const li=new WeakMap,Od={get(e,t){if(t===ui)return e;const n=e[t];if(t===rn||t===ri||t===yr||t===yn||t==="__proto__")return n;let r;return kn(n)?li.get(n)||(li.set(n,r=new Proxy(n,Od)),r):n},set(e,t,n){return zt(e,t,vr(n)),!0},deleteProperty(e,t){return zt(e,t,void 0,!0),!0}};function Gt(e){return t=>{if(kn(t)){let n;(n=li.get(t))||li.set(t,n=new Proxy(t,Od)),e(n)}return t}}const Ae=e=>typeof e=="string",Zr=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},Iu=e=>e==null?"":String(e),fh=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},gh=/###/g,Mu=e=>e&&e.includes("###")?e.replace(gh,"."):e,Lu=e=>!e||Ae(e),uo=(e,t,n)=>{const r=Ae(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Lu(e))return{};const i=Mu(r[o]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return Lu(e)?{}:{obj:e,k:Mu(r[o])}},$u=(e,t,n)=>{const{obj:r,k:o}=uo(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),a=uo(e,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=uo(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},ph=(e,t,n,r)=>{const{obj:o,k:i}=uo(e,t,Object);o[i]=o[i]||[],o[i].push(n)},di=(e,t)=>{const{obj:n,k:r}=uo(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},hh=(e,t,n)=>{const r=di(e,n);return r!==void 0?r:di(t,n)},Nd=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,r)?Ae(e[r])||e[r]instanceof String||Ae(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Nd(e[r],t[r],n):e[r]=t[r]);return e},Mn=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mh={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},bh=e=>Ae(e)?e.replace(/[&<>"'\/]/g,t=>mh[t]):e;class yh{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const xh=[" ",",","?","!",";"],vh=new yh(20),wh=(e,t,n)=>{t=t||"",n=n||"";const r=xh.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const o=vh.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!o.test(e);if(!i){const s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i},la=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||typeof o!="object")return;let s,a="";for(let u=i;u<r.length;++u)if(u!==i&&(a+=n),a+=r[u],s=o[a],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&u<r.length-1)continue;i+=u-i+1;break}o=s}return o},ho=e=>e?.replace(/_/g,"-"),_h={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class fi{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||_h,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(t=t.map(i=>Ae(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),Ae(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new fi(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new fi(this.logger,t)}}var xn=new fi;class Oi{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...o)=>{n(...o),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let s=0;s<i;s++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,i])=>{for(let s=0;s<i;s++)o(t,...n)})}}class Fu extends Oi{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.includes(".")?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):Ae(r)&&i?a.push(...r.split(i)):a.push(r)));const u=di(this.data,a);return!u&&!n&&!r&&t.includes(".")&&(t=a[0],n=a[1],r=a.slice(2).join(".")),u||!s||!Ae(r)?u:la(this.data?.[t]?.[n],r,i)}addResource(t,n,r,o,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(s?r.split(s):r)),t.includes(".")&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),$u(this.data,a,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const i in r)(Ae(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i,s={silent:!1,skipCopy:!1}){let a=[t,n];t.includes(".")&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let u=di(this.data,a)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Nd(u,r,i):u={...u,...r},$u(this.data,a,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var Rd={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,o)??t}),t}};const Id=Symbol("i18next/PATH_KEY");function Eh(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Id?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function $r(e,t){const{[Id]:n}=e(Eh()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i=t?.enableSelector==="strict";if(n.length>1&&o){const s=t?.ns,a=i?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(a&&(i?a:a.length>1?a.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const ns=e=>!Ae(e)&&typeof e!="boolean"&&typeof e!="number";class gi extends Oi{constructor(t,n={}){super(),fh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xn.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const i=ns(o.res);return!(r.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!wh(t,r,o);if(s&&!a){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Ae(i)?[i]:i};const c=t.split(r);(r!==o||r===o&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:Ae(i)?[i]:i}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=$r(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(F=>typeof F=="function"?$r(F,{...this.options,...o}):String(F));const i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:a,namespaces:u}=this.extractFromKey(t[t.length-1],o),c=u[u.length-1];let l=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const d=o.lng||this.language,f=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return f?i?{res:`${c}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${l}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:a;const p=this.resolve(t,o);let g=p?.res;const h=p?.usedKey||a,m=p?.exactUsedKey||a,b=["[object Number]","[object Function]","[object RegExp]"],y=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,w=o.count!==void 0&&!Ae(o.count),_=gi.hasDefaultValue(o),k=w?this.pluralResolver.getSuffix(d,o.count,o):"",A=o.ordinal&&w?this.pluralResolver.getSuffix(d,o.count,{ordinal:!1}):"",S=w&&!o.ordinal&&o.count===0,D=S&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${k}`]||o[`defaultValue${A}`]||o.defaultValue;let B=g;v&&!g&&_&&(B=D);const R=ns(B),M=Object.prototype.toString.apply(B);if(v&&B&&R&&!b.includes(M)&&!(Ae(y)&&Array.isArray(B))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,B,{...o,ns:u}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(p.res=F,p.usedParams=this.getUsedParamsDetails(o),p):F}if(s){const F=Array.isArray(B),O=F?[]:{},P=F?m:h;for(const G in B)if(Object.prototype.hasOwnProperty.call(B,G)){const L=`${P}${s}${G}`;_&&!g?O[G]=this.translate(L,{...o,defaultValue:ns(D)?D[G]:void 0,joinArrays:!1,ns:u}):O[G]=this.translate(L,{...o,joinArrays:!1,ns:u}),O[G]===L&&(O[G]=B[G])}g=O}}else if(v&&Ae(y)&&Array.isArray(g))g=g.join(y),g&&(g=this.extendTranslation(g,t,o,r));else{let F=!1,O=!1;!this.isValidLookup(g)&&_&&(F=!0,g=D),this.isValidLookup(g)||(O=!0,g=a);const G=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:g,L=_&&D!==g&&this.options.updateMissing;if(O||F||L){if(this.logger.log(L?"updateKey":"missingKey",d,c,w&&!L?`${a}${this.pluralResolver.getSuffix(d,o.count,o)}`:a,L?D:g),s){const Y=this.resolve(a,{...o,keySeparator:!1});Y&&Y.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let q=[];const j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(let Y=0;Y<j.length;Y++)q.push(j[Y]);else this.options.saveMissingTo==="all"?q=this.languageUtils.toResolveHierarchy(o.lng||this.language):q.push(o.lng||this.language);const N=(Y,ee,Te)=>{const Me=_&&Te!==g?Te:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Y,c,ee,Me,L,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Y,c,ee,Me,L,o),this.emit("missingKey",Y,c,ee,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?q.forEach(Y=>{const ee=this.pluralResolver.getSuffixes(Y,o);S&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!ee.includes(`${this.options.pluralSeparator}zero`)&&ee.push(`${this.options.pluralSeparator}zero`),ee.forEach(Te=>{N([Y],a+Te,o[`defaultValue${Te}`]||D)})}):N(q,a,D))}g=this.extendTranslation(g,t,o,p,r),O&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${c}${l}${a}`),(O||F)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${l}${a}`:a,F?g:void 0,o))}return i?(p.res=g,p.usedParams=this.getUsedParamsDetails(o),p):g}extendTranslation(t,n,r,o,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Ae(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=t.match(this.interpolator.nestingRegexp);c=d&&d.length}let l=r.replace&&!Ae(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,r.lng||this.language||o.usedLng,r),u){const d=t.match(this.interpolator.nestingRegexp),f=d&&d.length;c<f&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>i?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${n[0]}`),null):this.translate(...d,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,a=Ae(s)?[s]:s;return t!=null&&a?.length&&r.applyPostProcessor!==!1&&(t=Rd.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,i,s,a;return Ae(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(u=>typeof u=="function"?$r(u,{...this.options,...n}):u)),t.forEach(u=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(u,n),l=c.key;o=l;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!Ae(n.count),p=f&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(Ae(n.context)||typeof n.context=="number")&&n.context!=="",h=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(m=>{this.isValidLookup(r)||(a=m,!this.checkedLoadedFor[`${h[0]}-${m}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${m}`]=!0,this.logger.warn(`key "${o}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(b=>{if(this.isValidLookup(r))return;s=b;const y=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,l,b,m,n);else{let w;f&&(w=this.pluralResolver.getSuffix(b,n.count,n));const _=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&w.startsWith(k)&&y.push(l+w.replace(k,this.options.pluralSeparator)),y.push(l+w),p&&y.push(l+_)),g){const A=`${l}${this.options.contextSeparator||"_"}${n.context}`;y.push(A),f&&(n.ordinal&&w.startsWith(k)&&y.push(A+w.replace(k,this.options.pluralSeparator)),y.push(A+w),p&&y.push(A+_))}}let v;for(;v=y.pop();)this.isValidLookup(r)||(i=v,r=this.getResource(b,m,v,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ae(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o={...o,count:t.count}),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const i of n)delete o[i]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class Pu{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xn.create("languageUtils")}getScriptPartFromCode(t){if(t=ho(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ho(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ae(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>s===i?!0:!s.includes("-")&&!i.includes("-")?!1:!!(s.includes("-")&&!i.includes("-")&&s.slice(0,s.indexOf("-"))===i||s.startsWith(i)&&i.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ae(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],i=s=>{s&&(this.isSupportedCode(s)?o.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Ae(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Ae(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{o.includes(s)||i(this.formatLanguageCode(s))}),o}}const Bu={zero:0,one:1,two:2,few:3,many:4,other:5},zu={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class kh{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=xn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ho(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),zu;if(!t.match(/-|_/))return zu;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,i)=>Bu[o]-Bu[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Uu=(e,t,n,r=".",o=!0)=>{let i=hh(e,t,n);return!i&&o&&Ae(n)&&(i=la(e,n,r),i===void 0&&(i=la(t,n,r))),i},Sh=e=>e.replace(/\$/g,"$$$$");class Ku{constructor(t={}){this.logger=xn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:u,formatSeparator:c,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:p,nestingSuffix:g,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:b,alwaysFormat:y}=t.interpolation;this.escape=n!==void 0?n:bh,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?Mn(i):s||"{{",this.suffix=a?Mn(a):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":d?Mn(d):"-",this.unescapeSuffix=this.unescapePrefix?"":l?Mn(l):"",this.nestingPrefix=f?Mn(f):p||Mn("$t("),this.nestingSuffix=g?Mn(g):h||Mn(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=b||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let i,s,a;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(!p.includes(this.formatSeparator)){const b=Uu(n,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...o,...n,interpolationkey:p}):b}const g=p.split(this.formatSeparator),h=g.shift().trim(),m=g.join(this.formatSeparator).trim();return this.format(Uu(n,u,h,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...o,...n,interpolationkey:h})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const l=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>p},{regex:this.regexp,safeValue:p=>this.escapeValue?this.escape(p):p}].forEach(p=>{for(a=0;i=p.regex.exec(t);){const g=i[1].trim();if(s=c(g),s===void 0)if(typeof l=="function"){const m=l(t,i,o);s=Ae(m)?m:""}else if(o&&Object.prototype.hasOwnProperty.call(o,g))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else!Ae(s)&&!this.useRawValueToEscape&&(s=Iu(s));const h=p.safeValue(s);if(t=t.replace(i[0],Sh(h)),d?(p.regex.lastIndex+=h.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,i,s;const a=(u,c)=>{const l=this.nestingOptionsSeparator;if(!u.includes(l))return u;const d=u.split(new RegExp(`${Mn(l)}[ ]*{`));let f=`{${d[1]}`;u=d[0],f=this.interpolate(f,s);const p=f.match(/'/g),g=f.match(/"/g);((p?.length??0)%2===0&&!g||(g?.length??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{s=JSON.parse(f),c&&(s={...c,...s})}catch(h){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,h),`${u}${l}${f}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,u};for(;o=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!Ae(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(c!==-1&&(u=o[1].slice(c).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),o[1]=o[1].slice(0,c)),i=n(a.call(this,o[1].trim(),s),s),i&&o[0]===t&&!Ae(i))return i;Ae(i)||(i=Iu(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),u.length&&(i=u.reduce((l,d)=>this.format(l,d,r.lng,{...r,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}const Ch=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);t==="currency"&&!o.includes(":")?n.currency||(n.currency=o.trim()):t==="relativetime"&&!o.includes(":")?n.range||(n.range=o.trim()):o.split(";").forEach(s=>{if(s){const[a,...u]=s.split(":"),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=a.trim();n[l]||(n[l]=c),c==="false"&&(n[l]=!1),c==="true"&&(n[l]=!0),isNaN(c)||(n[l]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},qu=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const s=r+JSON.stringify(i);let a=t[s];return a||(a=e(ho(r),o),t[s]=a),a(n)}},Ah=e=>(t,n,r)=>e(ho(n),r)(t);class Th{constructor(t={}){this.logger=xn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?qu:Ah;this.formats={number:r((o,i)=>{const s=new Intl.NumberFormat(o,{...i});return a=>s.format(a)}),currency:r((o,i)=>{const s=new Intl.NumberFormat(o,{...i,style:"currency"});return a=>s.format(a)}),datetime:r((o,i)=>{const s=new Intl.DateTimeFormat(o,{...i});return a=>s.format(a)}),relativetime:r((o,i)=>{const s=new Intl.RelativeTimeFormat(o,{...i});return a=>s.format(a,i.range||"day")}),list:r((o,i)=>{const s=new Intl.ListFormat(o,{...i});return a=>s.format(a)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qu(n)}format(t,n,r,o={}){if(!n||t==null)return t;const i=n.split(this.formatSeparator),s=[];for(let u=0;u<i.length;u++){let c=i[u];for(;c.indexOf("(")>-1&&!c.includes(")")&&u+1<i.length;)c=`${c}${this.formatSeparator}${i[++u]}`;s.push(c)}return s.reduce((u,c)=>{const{formatName:l,formatOptions:d}=Ch(c);if(this.formats[l]){let f=u;try{const p=o?.formatParams?.[o.interpolationkey]||{},g=p.locale||p.lng||o.locale||o.lng||r;f=this.formats[l](u,g,{...d,...o,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${l}`);return u},t)}}const Dh=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class Oh extends Oi{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=xn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const i={},s={},a={},u={};return t.forEach(c=>{let l=!0;n.forEach(d=>{const f=`${c}|${d}`;!r.reload&&this.store.hasResourceBundle(c,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?s[f]===void 0&&(s[f]=!0):(this.state[f]=1,l=!1,s[f]===void 0&&(s[f]=!0),i[f]===void 0&&(i[f]=!0),u[d]===void 0&&(u[d]=!0)))}),l||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const o=t.split("|"),i=o[0],s=o[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(u=>{ph(u.loaded,[i],s),Dh(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(c=>{a[c]||(a[c]={});const l=u.loaded[c];l.length&&l.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,o=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:s});return}this.readingCalls++;const a=(c,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&l&&o<this.maxRetries){setTimeout(()=>{this.read(t,n,r,o+1,i*2,s)},i);return}s(c,l)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const c=u(t,n);c&&typeof c.then=="function"?c.then(l=>a(null,l)).catch(a):a(null,c)}catch(c){a(c)}return}return u(t,n,a)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Ae(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ae(n)&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,a),this.loaded(t,s,a)})}saveMissing(t,n,r,o,i,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let l;c.length===5?l=c(t,n,r,o,u):l=c(t,n,r,o),l&&typeof l.then=="function"?l.then(d=>a(null,d)).catch(a):a(null,l)}catch(l){a(l)}else c(t,n,r,o,a,u)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const rs=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ae(e[1])&&(t.defaultValue=e[1]),Ae(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Hu=e=>(Ae(e.ns)&&(e.ns=[e.ns]),Ae(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ae(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ko=()=>{},Nh=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class co extends Oi{constructor(t={},n){if(super(),this.options=Hu(t),this.services={},this.logger=xn,this.modules={external:[]},Nh(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ae(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=rs();this.options={...r,...this.options,...Hu(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?xn.init(o(this.modules.logger),this.options):xn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Th;const l=new Pu(this.options);this.store=new Fu(this.options.resources,this.options);const d=this.services;d.logger=xn,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new kh(l,{prepend:this.options.pluralSeparator}),c&&(d.formatter=o(c),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Ku(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Oh(o(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.languageDetector&&(d.languageDetector=o(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=o(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new gi(this.services,this.options),this.translator.on("*",(f,...p)=>{this.emit(f,...p)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ko),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...l)=>this.store[c](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...l)=>(this.store[c](...l),this)});const a=Zr(),u=()=>{const c=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),n(l,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),a}loadResources(t,n=Ko){let r=n;const o=Ae(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&(i.includes(c)||i.push(c))})};o?s(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=Zr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ko),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Rd.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Zr();this.emit("languageChanging",t);const o=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},i=(a,u)=>{u?this.isLanguageChangingTo===t&&(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(a,(...c)=>this.t(...c))},s=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=Ae(a)?a:a&&a[0],c=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Ae(a)?[a]:a);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,l=>{i(l,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r,o){const i=o?.scopeNs,s=(a,u,...c)=>{let l;typeof u!="object"?l=this.options.overloadTranslationOptionHandler([a,u].concat(c)):l={...u},l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs;const d=l.ns!==void 0&&l.ns!==null;l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||s.keyPrefix);const f={...this.options,...l};Array.isArray(i)&&!d&&(f.ns=i),typeof l.keyPrefix=="function"&&(l.keyPrefix=$r(l.keyPrefix,f));const p=this.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(a)?g=a.map(h=>(typeof h=="function"&&(h=$r(h,f)),`${l.keyPrefix}${p}${h}`)):(typeof a=="function"&&(a=$r(a,f)),g=l.keyPrefix?`${l.keyPrefix}${p}${a}`:a),this.t(g,l)};return Ae(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(a,u)=>{const c=this.services.backendConnector.state[`${a}|${u}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!o||s(i,t)))}loadNamespaces(t,n){const r=Zr();return this.options.ns?(Ae(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Zr();Ae(t)&&(t=[t]);const o=this.options.preload||[],i=t.filter(s=>!o.includes(s)&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=o.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Pu(rs());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new co(t,n);return r.createInstance=co.createInstance,r}cloneInstance(t={},n=Ko){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},i=new co(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const a=Object.keys(this.store.data).reduce((u,c)=>(u[c]={...this.store.data[c]},u[c]=Object.keys(u[c]).reduce((l,d)=>(l[d]={...u[c][d]},l),u[c]),u),{});i.store=new Fu(a,o),i.services.resourceStore=i.store}if(t.interpolation){const u={...rs().interpolation,...this.options.interpolation,...t.interpolation},c={...o,interpolation:u};i.services.interpolator=new Ku(c)}return i.translator=new gi(i.services,o),i.translator.on("*",(a,...u)=>{i.emit(a,...u)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ht=co.createInstance();ht.createInstance;ht.dir;ht.init;ht.loadResources;ht.reloadResources;ht.use;ht.changeLanguage;ht.getFixedT;ht.t;ht.exists;ht.setDefaultNamespace;ht.hasLoadedNamespace;ht.loadNamespaces;ht.loadLanguages;const{slice:Rh,forEach:Ih}=[];function Mh(e){return Ih.call(Rh.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Lh(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const ju=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,$h=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let i=`${e}=${o}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!ju.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!ju.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},Gu={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=$h(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Fh={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return Gu.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&typeof document<"u"&&Gu.create(n,e,r,o,i)}},Ph={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const i=r.substring(1).split("&");for(let s=0;s<i.length;s++){const a=i[s].indexOf("=");a>0&&i[s].substring(0,a)===t&&(n=i[s].substring(a+1))}}return n}},Bh={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const i=o.substring(1);if(t){const s=i.split("&");for(let a=0;a<s.length;a++){const u=s[a].indexOf("=");u>0&&s[a].substring(0,u)===t&&(r=s[a].substring(u+1))}}if(r)return r;if(!r&&n>-1){const s=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Tr=null;const Vu=()=>{if(Tr!==null)return Tr;try{if(Tr=typeof window<"u"&&window.localStorage!==null,!Tr)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Tr=!1}return Tr};var zh={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Vu())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Vu()&&window.localStorage.setItem(n,e)}};let Dr=null;const Wu=()=>{if(Dr!==null)return Dr;try{if(Dr=typeof window<"u"&&window.sessionStorage!==null,!Dr)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Dr=!1}return Dr};var Uh={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&Wu())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&Wu()&&window.sessionStorage.setItem(n,e)}},Kh={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},qh={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},Hh={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},jh={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let Md=!1;try{document.cookie,Md=!0}catch{}const Ld=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Md||Ld.splice(1,1);const Gh=()=>({order:Ld,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class $d{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=Mh(n,this.options||{},Gh()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Fh),this.addDetector(Ph),this.addDetector(zh),this.addDetector(Uh),this.addDetector(Kh),this.addDetector(qh),this.addDetector(Hh),this.addDetector(jh),this.addDetector(Bh)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!Lh(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}$d.type="languageDetector";const Vh={common:{loading:"加载中…",cancel:"取消",delete:"删除",confirmDelete:"确认删除",deleting:"删除中…",submitting:"提交中…",saving:"保存中…",refresh:"刷新",refreshing:"刷新中…",pendingAgent:"(待 Agent 补全)",close:"关闭",remove:"移除",error:"错误"},breadcrumb:{specList:"需求列表",newSpec:"新建 spec"},shell:{newSpec:"新建 spec",languageSwitch:"切换语言",langZh:"中文",langEn:"English"},welcome:{title:"欢迎使用 YorZ",description:"YorZ 通过本地目录托管 spec 文档;请先添加一个项目目录,然后即可开始管理它的需求。",addHint:"添加项目请在终端执行:"},sidebar:{title:"项目",expand:"展开项目面板",collapse:"折叠项目面板",collapseShort:"折叠",refreshList:"刷新项目列表",configure:"配置 {{name}}",projectConfig:"项目配置",removeProject:"移除 {{name}}",deleteProject:"删除项目",deleteDesc:"此操作将从 YorZ 项目列表中移除该项目。",deleteFiles:"同时删除文件目录",uncommittedChanges:"存在未提交 git 的变更",resizeHint:"拖动调整项目面板宽度",addHint:"添加项目请在终端执行:",addCmd:"yorz add <path>",worktreeBadge:"main"},home:{specList:"需求列表",mainProject:"主项目:",merging:"合并中…",mergeToMain:"合入主项目",mergeHint:"提交 worktree 改动并合入主项目",mainUnreachable:"主项目不可达",merged:"已合入主项目,正在跳转…",conflictDispatched:"冲突 spec 已自动派给 Agent 处理,列表会在合并完成后自动刷新",noSpecs:"还没有 spec。",createFirst:"新建第一个 spec",moreActions:"更多操作",confirmDeleteSpec:"确定删除此 spec?",newSpec:"+ 新建 spec"},newSpec:{title:"新建 spec",description:"只需选择类型与录入需求内容;文件名、概要、初始骨架由 Agent 根据需求生成,Agent 创建完文档后会自动进入 plan 阶段。",type:"类型",typeFeat:"feat",typeFeatHint:"新功能",typeRefct:"refct",typeRefctHint:"重构 / 抽取",typeFix:"fix",typeFixHint:"修复缺陷",parallelWorktree:"新开项目并行",parallelWorktreeDesc:"以 git worktree 形式开新分支并行开发,避免与主项目互相干扰;合并将通过列表页『合入主项目』按钮一键完成。",requirement:"需求内容",requirementPlaceholder:"原始诉求、痛点、期望效果、关联文档/模块(可使用 @ 引用)",attachments:"附件",attachmentsHint:"共 {{count}}/{{max}},单文件 ≤ 5 MB;图片支持 Cmd/Ctrl-V 粘贴",importAttachment:"导入附件",createAndStart:"创建并启动 Agent",creating:"Agent 创建中…",creatingHint:"Agent 正在创建 spec 文档…可在右下角 Agent 面板查看流式输出,文档落地后将自动跳转。",descTooShort:"请至少输入 5 个字符的需求描述",attachmentLimit:"附件总数不能超过 {{max}} 个",unsupportedType:"不支持的文件类型:{{name}}",unsupportedMime:"不支持的 MIME:{{mime}}",fileTooLarge:"{{name}} 超过 5 MB 限制",attachmentRoomLimit:"只能再添加 {{room}} 个附件(当前 {{current}}/{{max}})",attachmentFailedCount:"有 {{count}} 个附件上传失败,请先移除或重试",attachmentUploading:"附件仍在上传中,请稍候",uploading:"上传中…",uploadFailed:"失败:{{error}}",clickToRename:"点击重命名",agentRunFailed:"Agent 运行失败",creatingSpec:"(新建 spec 中)",deleteAttachment:"删除 {{name}}"},specDetail:{appendTask:"追加任务",agentLogs:"执行日志",review:"Review",runAgent:"运行 Agent",running:"运行中…",forceStage:"强制设置 spec 状态",notFound:"spec 不存在或已删除"},review:{backToSpec:"返回 spec",heading:"Review · {{id}}",commit:"提交",discard:"丢弃",stash:"暂存",reviewChanges:"Review 变更",reviewing:"Review 中…",committing:"提交中…",discarding:"丢弃中…",stashing:"暂存中…",commitPlaceholder:"commit message…",manualSelect:"手动选择",agentSelect:"Agent 智能判定",selectAll:"全选",deselectAll:"全部取消",fileCount:"{{selected}}/{{total}} 个文件",noChanges:"暂无变更文件",selectAtLeastOne:"请至少选择一个文件",confirmDiscard:"确定要丢弃选中的变更吗?此操作不可撤销。",confirmDiscardAll:"确定要丢弃当前 spec 相关的所有未提交变更吗?此操作不可撤销。",enterCommitMsg:"请输入 commit message",dispatched:"已派发:",noReport:"尚无 review 报告。点击「Review 变更」让 Agent 生成。",lastReview:"最近一次 review:{{time}}",reviewHint:"Review 下方变更文件,生成报告"},agentLogs:{backToSpec:"← 返回 spec",title:"执行日志 · {{id}}",listTitle:"Agent 执行日志({{count}})",empty:"暂无 Agent 执行日志",truncated:"已截断显示末尾 256KB",emptyLog:"日志为空",success:"成功",notFinished:"未收尾",failed:"失败 ({{code}})"},agentDock:{title:"Agent 任务",panelLabel:"Agent 任务面板",clearFinished:"清理已完成",progressLabel:"进行中 {{running}} / 已完成 {{done}} / 失败 {{failed}}",waitingOutput:"(等待输出…)",creatingNew:"(新建中)",sourceRun:"执行 spec",sourceExplain:"解释",sourceDraft:"新建 spec",statusPending:"等待…",statusStreaming:"运行中",statusDone:"已完成",statusFailed:"失败"},selectionMenu:{annotate:"批注",explain:"解释"},annotate:{title:"批注",placeholder:"写下你对这段文本的批注…",submit:"提交批注",inSection:"中"},questionConfirm:{title:"待确认问题",unanswered:"未答题",submitAll:"提交全部",running:"运行中…",noAnswers:"没有可提交的答复",selectionAnnotation:"选区批注",notePlaceholder:"写下你的答复…",recommended:"(推荐)",freeformLabel:"其他(自由批注)",quoteConnector:"中"},appendTask:{title:"追加任务",hint:"提交后将自动重开 plan 阶段,Agent 会续跑处理新增项",type:"类型",kindFeat:"feat 新增/扩展需求",kindRefct:"refct 重构/重写/抽取",kindFix:"fix 修复缺陷",description:"描述",descPlaceholder:"详细描述新增需求 / 重构意图 / 缺陷复现…",descRequired:"描述不能为空",submit:"提交并触发 Agent",refSection:"引用章节:"},projectConfig:{title:"项目配置",custom:"自定义",agent:"Agent",cmd:"命令 (cmd)",cmdPlaceholder:"例如:/usr/local/bin/my-agent",args:"参数 (args,空格分隔)",specsDir:"spec 文档目录",specsDirHint:"相对项目根路径,不存在时会自动创建",cmdRequired:"自定义命令的 cmd 不能为空",invalidPath:'spec 目录不能包含 ".." 段',saved:"配置已保存",oldSpecsHint:"。旧 spec 仍在原目录,请手工迁移",save:"保存"},errors:{serverDisconnected:"Server 失联,任务可能已终止",serverRestarted:"Server 已重启,原任务未恢复"},selection:{noSection:"(无章节)"}},Wh={common:{loading:"Loading…",cancel:"Cancel",delete:"Delete",confirmDelete:"Confirm Delete",deleting:"Deleting…",submitting:"Submitting…",saving:"Saving…",refresh:"Refresh",refreshing:"Refreshing…",pendingAgent:"(Pending Agent)",close:"Close",remove:"Remove",error:"Error"},breadcrumb:{specList:"Spec List",newSpec:"New Spec"},shell:{newSpec:"New Spec",languageSwitch:"Switch Language",langZh:"中文",langEn:"English"},welcome:{title:"Welcome to YorZ",description:"YorZ hosts spec documents in local directories. Add a project directory first, then start managing its requirements.",addHint:"To add a project, run in terminal:"},sidebar:{title:"Projects",expand:"Expand project panel",collapse:"Collapse project panel",collapseShort:"Collapse",refreshList:"Refresh project list",configure:"Configure {{name}}",projectConfig:"Project Config",removeProject:"Remove {{name}}",deleteProject:"Delete Project",deleteDesc:"This will remove the project from the YorZ project list.",deleteFiles:"Also delete file directory",uncommittedChanges:"Uncommitted git changes",resizeHint:"Drag to resize project panel width",addHint:"To add a project, run in terminal:",addCmd:"yorz add <path>",worktreeBadge:"main"},home:{specList:"Specs",mainProject:"Main project: ",merging:"Merging…",mergeToMain:"Merge to Main",mergeHint:"Commit worktree changes and merge into main project",mainUnreachable:"Main project unreachable",merged:"Merged into main, redirecting…",conflictDispatched:"Conflict specs dispatched to Agent, list will refresh after merge",noSpecs:"No specs yet.",createFirst:"Create first spec",moreActions:"More actions",confirmDeleteSpec:"Delete this spec?",newSpec:"+ New Spec"},newSpec:{title:"New Spec",description:"Just pick a type and enter your requirements. Filename, summary, and initial skeleton are generated by Agent based on your input. After document creation, it enters the plan stage automatically.",type:"Type",typeFeat:"feat",typeFeatHint:"New feature",typeRefct:"refct",typeRefctHint:"Refactor / Extract",typeFix:"fix",typeFixHint:"Bug fix",parallelWorktree:"Parallel worktree",parallelWorktreeDesc:'Create a new branch via git worktree for parallel development. Merge via the "Merge to Main" button on the list page.',requirement:"Requirement",requirementPlaceholder:"Raw needs, pain points, expected outcomes, related docs/modules (use @ to reference)",attachments:"Attachments",attachmentsHint:"{{count}}/{{max}}, max 5 MB per file; images support Cmd/Ctrl-V paste",importAttachment:"Import",createAndStart:"Create & Start Agent",creating:"Agent creating…",creatingHint:"Agent is creating spec document… Watch streaming output in the Agent panel at bottom-right. Auto-navigate when ready.",descTooShort:"Please enter at least 5 characters",attachmentLimit:"Cannot exceed {{max}} attachments",unsupportedType:"Unsupported file type: {{name}}",unsupportedMime:"Unsupported MIME: {{mime}}",fileTooLarge:"{{name}} exceeds 5 MB limit",attachmentRoomLimit:"Can only add {{room}} more ({{current}}/{{max}})",attachmentFailedCount:"{{count}} attachment(s) failed to upload, please remove or retry",attachmentUploading:"Attachments still uploading, please wait",uploading:"Uploading…",uploadFailed:"Failed: {{error}}",clickToRename:"Click to rename",agentRunFailed:"Agent run failed",creatingSpec:"(Creating spec…)",deleteAttachment:"Delete {{name}}"},specDetail:{appendTask:"Append Task",agentLogs:"Agent Logs",review:"Review",runAgent:"Run Agent",running:"Running…",forceStage:"Force set spec stage",notFound:"Spec not found or deleted"},review:{backToSpec:"Back to spec",heading:"Review · {{id}}",commit:"Commit",discard:"Discard",stash:"Stash",reviewChanges:"Review Changes",reviewing:"Reviewing…",committing:"Committing…",discarding:"Discarding…",stashing:"Stashing…",commitPlaceholder:"commit message…",manualSelect:"Manual select",agentSelect:"Agent smart select",selectAll:"Select all",deselectAll:"Deselect all",fileCount:"{{selected}}/{{total}} files",noChanges:"No changed files",selectAtLeastOne:"Please select at least one file",confirmDiscard:"Discard selected changes? This cannot be undone.",confirmDiscardAll:"Discard all uncommitted changes for this spec? This cannot be undone.",enterCommitMsg:"Please enter commit message",dispatched:"Dispatched: ",noReport:'No review report yet. Click "Review Changes" to generate.',lastReview:"Last review: {{time}}",reviewHint:"Review changed files below and generate report"},agentLogs:{backToSpec:"← Back to spec",title:"Agent Logs · {{id}}",listTitle:"Agent Execution Logs ({{count}})",empty:"No agent execution logs",truncated:"Showing last 256KB (truncated)",emptyLog:"Log is empty",success:"Success",notFinished:"Not finished",failed:"Failed ({{code}})"},agentDock:{title:"Agent Tasks",panelLabel:"Agent task panel",clearFinished:"Clear finished",progressLabel:"Running {{running}} / Done {{done}} / Failed {{failed}}",waitingOutput:"(Waiting for output…)",creatingNew:"(Creating…)",sourceRun:"Run spec",sourceExplain:"Explain",sourceDraft:"New spec",statusPending:"Pending…",statusStreaming:"Running",statusDone:"Done",statusFailed:"Failed"},selectionMenu:{annotate:"Annotate",explain:"Explain"},annotate:{title:"Annotation",placeholder:"Write your annotation for this text…",submit:"Submit Annotation",inSection:"in"},questionConfirm:{title:"Pending Questions",unanswered:"Unanswered",submitAll:"Submit All",running:"Running…",noAnswers:"No answers to submit",selectionAnnotation:"Selection Annotation",notePlaceholder:"Write your answer…",recommended:"(Recommended)",freeformLabel:"Other (free-form annotation)",quoteConnector:"in"},appendTask:{title:"Append Task",hint:"After submission, plan stage will reopen automatically. Agent will process new items.",type:"Type",kindFeat:"feat new/extended requirement",kindRefct:"refct refactor/rewrite/extract",kindFix:"fix bug fix",description:"Description",descPlaceholder:"Describe new requirement / refactor intent / bug reproduction…",descRequired:"Description cannot be empty",submit:"Submit & Trigger Agent",refSection:"Reference section: "},projectConfig:{title:"Project Config",custom:"Custom",agent:"Agent",cmd:"Command (cmd)",cmdPlaceholder:"e.g. /usr/local/bin/my-agent",args:"Arguments (args, space-separated)",specsDir:"Spec directory",specsDirHint:"Relative to project root, auto-created if missing",cmdRequired:"Custom command cmd cannot be empty",invalidPath:'Spec directory cannot contain ".."',saved:"Configuration saved",oldSpecsHint:". Old specs remain in original directory, please migrate manually",save:"Save"},errors:{serverDisconnected:"Server disconnected, task may have terminated",serverRestarted:"Server restarted, previous task not recovered"},selection:{noSection:"(no section)"}},Fd=ht.use($d).init({resources:{"zh-CN":{translation:Vh},en:{translation:Wh}},fallbackLng:"zh-CN",detection:{order:["localStorage","navigator"],lookupLocalStorage:"yorz.lang",caches:["localStorage"]},interpolation:{escapeValue:!1}});Fd.then(()=>{});/**
|
|
2
|
-
* @license lucide-solid v1.24.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/var Yh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Or=Yh,Zh=wt({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),Xh=$("<svg>"),Qh=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Jh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),em=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Yu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tm=e=>{const t=em(e);return t.charAt(0).toUpperCase()+t.slice(1)},nm=e=>{const[t,n]=ke(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=pt(Zh);return(()=>{var o=Xh();return sr(o,te(Or,{get width(){return t.size??r.size??Or.width},get height(){return t.size??r.size??Or.height},get stroke(){return t.color??r.color??Or.stroke},get"stroke-width"(){return ce(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Or["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Or["stroke-width"])},get class(){return Jh("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${Yu(tm(t.name))}`,`lucide-${Yu(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!Qh(n)?"true":void 0}},n),!0,!0),E(o,x(Pt,{get each(){return t.iconNode},children:([i,s])=>x(hd,te({component:i},s))})),o})()},Dt=nm,rm=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],om=e=>x(Dt,te(e,{iconNode:rm,name:"check"})),Zu=om,im=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sm=e=>x(Dt,te(e,{iconNode:im,name:"chevron-down"})),Ra=sm,am=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],um=e=>x(Dt,te(e,{iconNode:am,name:"chevron-right"})),Ia=um,cm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lm=e=>x(Dt,te(e,{iconNode:cm,name:"chevron-up"})),dm=lm,fm=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],gm=e=>x(Dt,te(e,{iconNode:fm,name:"chevrons-left"})),pm=gm,hm=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],mm=e=>x(Dt,te(e,{iconNode:hm,name:"chevrons-right"})),bm=mm,ym=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xm=e=>x(Dt,te(e,{iconNode:ym,name:"circle-question-mark"})),vm=xm,wm=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],_m=e=>x(Dt,te(e,{iconNode:wm,name:"ellipsis"})),Em=_m,km=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Sm=e=>x(Dt,te(e,{iconNode:km,name:"git-branch"})),Cm=Sm,Am=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],Tm=e=>x(Dt,te(e,{iconNode:Am,name:"git-merge"})),Dm=Tm,Om=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Nm=e=>x(Dt,te(e,{iconNode:Om,name:"languages"})),Rm=Nm,Im=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Mm=e=>x(Dt,te(e,{iconNode:Im,name:"loader-circle"})),Mr=Mm,Lm=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],$m=e=>x(Dt,te(e,{iconNode:Lm,name:"pencil"})),Fm=$m,Pm=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bm=e=>x(Dt,te(e,{iconNode:Pm,name:"plus"})),Xu=Bm,zm=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Um=e=>x(Dt,te(e,{iconNode:zm,name:"refresh-cw"})),Pd=Um,Km=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],qm=e=>x(Dt,te(e,{iconNode:Km,name:"upload"})),Hm=qm,jm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gm=e=>x(Dt,te(e,{iconNode:jm,name:"x"})),Ao=Gm;function it(e){return`/api/projects/${encodeURIComponent(e)}`}async function da(e){const t=await e.text();if(!t)return"";try{return JSON.parse(t).error??t}catch{return t}}async function Je(e,t){const n=await fetch(e,t);if(!n.ok){const r=await da(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}const Ke={listSpecs:e=>Je(`${it(e)}/specs`),getSpec:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}`),deleteSpec:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}`,{method:"DELETE"}),setStage:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/stage`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({stage:n})}),createSpec:(e,t)=>fetch(`${it(e)}/specs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}).then(async n=>{if(!n.ok){const r=await da(n);throw new Error(`${n.status} ${r||n.statusText}`)}return n.json()}),appendAnnotation:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/inputs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:"annotate",...n})}),submitQuestionAnswers:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/questions/answers`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),runAgent:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/run`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),appendItem:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/appends`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),explain:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/explain`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({text:n})}),triggerReview:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/review`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),gitOp:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/git`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:n})}),getChanges:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/changes`),directCommit:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/commit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),directDiscard:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/discard`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),directStash:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/stash`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)}),getReview:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/review`),listProjects:()=>Je("/api/projects"),removeProject:e=>Je(`/api/projects/${encodeURIComponent(e)}`,{method:"DELETE"}),removeProjectWithFiles:e=>Je(`/api/projects/${encodeURIComponent(e)}?deleteFiles=true`,{method:"DELETE"}),createWorktree:(e,t)=>Je(`/api/projects/${encodeURIComponent(e)}/worktrees`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),mergeWorktreeToMain:(e,t)=>Je(`/api/projects/${encodeURIComponent(e)}/merge-main`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),getProjectConfig:e=>Je(`/api/projects/${encodeURIComponent(e)}/config`),updateProjectConfig:(e,t)=>Je(`/api/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)}),createDraft:e=>Je(`${it(e)}/spec-drafts`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"}),uploadAttachment:async(e,t,n)=>{const r=new FormData;r.append("file",n,n.name);const o=await fetch(`${it(e)}/spec-drafts/${encodeURIComponent(t)}/attachments`,{method:"POST",body:r});if(!o.ok){const i=await da(o);throw new Error(`${o.status} ${i||o.statusText}`)}return o.json()},deleteAttachment:(e,t,n)=>Je(`${it(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"DELETE"}),renameAttachment:(e,t,n,r)=>Je(`${it(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({name:r})}),draftAttachmentUrl:(e,t,n)=>`${it(e)}/spec-drafts/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,specAttachmentUrl:(e,t,n)=>`${it(e)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(n)}`,listAgentLogs:(e,t)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/agent-logs`),getAgentLog:(e,t,n)=>Je(`${it(e)}/specs/${encodeURIComponent(t)}/agent-logs/${encodeURIComponent(n)}`),listFiles:(e,t,n=50)=>Je(`${it(e)}/files?query=${encodeURIComponent(t)}&limit=${n}`)},[Ma,Vm]=I(Wm());function Wm(){if(typeof window>"u")return"";const e=window.location.pathname.match(/^\/([^/]+)/);return e&&e[1]!=="api"?e[1]:""}function qr(){const e=Di();return()=>e.projectId??Ma()}function Zt(e="",t){const n=Ma();if(!n)return e.startsWith("/")?e:`/${e}`;const r=e.startsWith("/")?e:e?`/${e}`:"";return`/${n}${r}`}function Bd(e){return`/api/projects/${encodeURIComponent(e)}`}function Ym(){const e=globalThis;return e.crypto?.randomUUID?e.crypto.randomUUID():`c-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}class Zm{clientId=Ym();source=null;handlers=new Map;syncTimer=null;syncInFlight=!1;syncPending=!1;subscribe(t,n){let r=this.handlers.get(t);return r||(r=new Set,this.handlers.set(t,r)),r.add(n),this.ensureOpen(),this.scheduleSync(),()=>{const o=this.handlers.get(t);o&&(o.delete(n),o.size===0&&this.handlers.delete(t),this.scheduleSync())}}readyState(){return this.source?.readyState??2}ensureOpen(){if(this.source)return;const t=`/api/events/stream?clientId=${encodeURIComponent(this.clientId)}`,n=new EventSource(t);this.source=n,n.addEventListener("open",()=>{this.scheduleSync(!0)}),n.addEventListener("server-heartbeat",r=>{let o={ts:Date.now()};try{o=JSON.parse(r.data)}catch{}for(const i of this.handlers.values())for(const s of i)try{s("server-heartbeat",o)}catch{}}),n.addEventListener("msg",r=>{let o;try{o=JSON.parse(r.data)}catch{return}const i=this.handlers.get(o.topic);if(i)for(const s of i)try{s(o.event,o.data)}catch{}}),n.addEventListener("error",()=>{})}scheduleSync(t=!1){if(this.syncTimer)return;const n=t?0:20;this.syncTimer=setTimeout(()=>{this.syncTimer=null,this.runSync()},n)}async runSync(){if(this.syncInFlight){this.syncPending=!0;return}this.syncInFlight=!0;try{const t=[...this.handlers.keys()].sort();await fetch("/api/events/subscribe",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({clientId:this.clientId,topics:t})})}catch{}finally{this.syncInFlight=!1,this.syncPending&&(this.syncPending=!1,this.scheduleSync(!0))}}}let Hr=new Zm;function La(e){const t=e;return t.readyState=()=>Hr.readyState(),t}function Xm(e,t,n){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const r=`project:${e}:spec:${t}`,o=Hr.subscribe(r,(i,s)=>{switch(i){case"updated":n.onUpdated?.();break;case"agent-stdout":n.onAgentStdout?.(s);break;case"agent-exit":n.onAgentExit?.(s);break;case"agent-error":n.onAgentError?.(s);break;case"server-heartbeat":n.onServerHeartbeat?.(s);break}});return La(o)}function Qm(e,t,n){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const r=`project:${e}:run:${t}`,o=Hr.subscribe(r,(i,s)=>{switch(i){case"agent-stdout":n.onAgentStdout?.(s);break;case"agent-exit":n.onAgentExit?.(s);break;case"agent-error":n.onAgentError?.(s);break;case"server-heartbeat":n.onServerHeartbeat?.(s);break}});return La(o)}function Jm(e,t){if(!e)return()=>{};const n=`project:${e}:specs`;return Hr.subscribe(n,r=>{r==="list-updated"&&t()})}function eb(e){return Hr.subscribe("projects",t=>{t==="projects-changed"&&e()})}function tb(e,t,n){if(!e){const i=(()=>{});return i.readyState=()=>2,i}const r=`project:${e}:spec:${t}:changes`,o=Hr.subscribe(r,(i,s)=>{i==="changes-updated"&&n(s.changes)});return La(o)}async function nb(e){if(!e)return[];const t=await fetch(`${Bd(e)}/runs`);if(!t.ok)return[];try{return await t.json()}catch{return[]}}async function rb(e,t){if(e)try{await fetch(`${Bd(e)}/runs/${encodeURIComponent(t)}/cancel`,{method:"POST"})}catch{}}function zd(e){if(!e)return"";const t=e.replace(/^['"]|['"]$/g,"").trim();return/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(t)||/^\d{4}-\d{2}-\d{2}$/.test(t)?t:t||""}function Ud(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ud(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kd(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ud(e))&&(r&&(r+=" "),r+=t);return r}const ob=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},ib=(e,t)=>({classGroupId:e,validator:t}),qd=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pi="-",Qu=[],sb="arbitrary..",ab=e=>{const t=cb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ub(s);const a=s.split(pi),u=a[0]===""&&a.length>1?1:0;return Hd(a,u,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const u=r[s],c=n[s];return u?c?ob(c,u):u:c||Qu}return n[s]||Qu}}},Hd=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=Hd(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(pi):e.slice(t).join(pi),u=s.length;for(let c=0;c<u;c++){const l=s[c];if(l.validator(a))return l.classGroupId}},ub=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?sb+r:void 0})(),cb=e=>{const{theme:t,classGroups:n}=e;return lb(n,t)},lb=(e,t)=>{const n=qd();for(const r in e){const o=e[r];$a(o,n,r,t)}return n},$a=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];db(s,t,n,r)}},db=(e,t,n,r)=>{if(typeof e=="string"){fb(e,t,n);return}if(typeof e=="function"){gb(e,t,n,r);return}pb(e,t,n,r)},fb=(e,t,n)=>{const r=e===""?t:jd(t,e);r.classGroupId=n},gb=(e,t,n,r)=>{if(hb(e)){$a(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ib(n,e))},pb=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,u]=o[s];$a(u,jd(t,a),n,r)}},jd=(e,t)=>{let n=e;const r=t.split(pi),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=qd(),n.nextPart.set(s,a)),n=a}return n},hb=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,mb=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},fa="!",Ju=":",bb=[],ec=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),yb=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,u=0,c;const l=o.length;for(let h=0;h<l;h++){const m=o[h];if(s===0&&a===0){if(m===Ju){i.push(o.slice(u,h)),u=h+1;continue}if(m==="/"){c=h;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const d=i.length===0?o:o.slice(u);let f=d,p=!1;d.endsWith(fa)?(f=d.slice(0,-1),p=!0):d.startsWith(fa)&&(f=d.slice(1),p=!0);const g=c&&c>u?c-u:void 0;return ec(i,p,f,g)};if(t){const o=t+Ju,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):ec(bb,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},xb=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",u=t.has(s);a||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},vb=e=>({cache:mb(e.cacheSize),parseClassName:yb(e),sortModifiers:xb(e),postfixLookupClassGroupIds:wb(e),...ab(e)}),wb=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},_b=/\s+/,Eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:s}=t,a=[],u=e.trim().split(_b);let c="";for(let l=u.length-1;l>=0;l-=1){const d=u[l],{isExternal:f,modifiers:p,hasImportantModifier:g,baseClassName:h,maybePostfixModifierPosition:m}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let b=!!m,y;if(b){const A=h.substring(0,m);y=r(A);const S=y&&s[y]?r(h):void 0;S&&S!==y&&(y=S,b=!1)}else y=r(h);if(!y){if(!b){c=d+(c.length>0?" "+c:c);continue}if(y=r(h),!y){c=d+(c.length>0?" "+c:c);continue}b=!1}const v=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=g?v+fa:v,_=w+y;if(a.indexOf(_)>-1)continue;a.push(_);const k=o(y,b);for(let A=0;A<k.length;++A){const S=k[A];a.push(w+S)}c=d+(c.length>0?" "+c:c)}return c},kb=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Gd(n))&&(o&&(o+=" "),o+=r);return o},Gd=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gd(e[r]))&&(n&&(n+=" "),n+=t);return n},Sb=(e,...t)=>{let n,r,o,i;const s=u=>{const c=t.reduce((l,d)=>d(l),e());return n=vb(c),r=n.cache.get,o=n.cache.set,i=a,a(u)},a=u=>{const c=r(u);if(c)return c;const l=Eb(u,n);return o(u,l),l};return i=s,(...u)=>i(kb(...u))},Cb=[],xt=e=>{const t=n=>n[e]||Cb;return t.isThemeGetter=!0,t},Vd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ab=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Tb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Db=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ob=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Nb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>Ab.test(e),ze=e=>!!e&&!Number.isNaN(Number(e)),mn=e=>!!e&&Number.isInteger(Number(e)),os=e=>e.endsWith("%")&&ze(e.slice(0,-1)),Ln=e=>Tb.test(e),Yd=()=>!0,Ib=e=>Db.test(e)&&!Ob.test(e),Fa=()=>!1,Mb=e=>Nb.test(e),Lb=e=>Rb.test(e),$b=e=>!ue(e)&&!le(e),Fb=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Pb=e=>ar(e,Qd,Fa),ue=e=>Vd.test(e),fr=e=>ar(e,Jd,Ib),tc=e=>ar(e,Gb,ze),Bb=e=>ar(e,tf,Yd),zb=e=>ar(e,ef,Fa),nc=e=>ar(e,Zd,Fa),Ub=e=>ar(e,Xd,Lb),qo=e=>ar(e,nf,Mb),le=e=>Wd.test(e),Xr=e=>Er(e,Jd),Kb=e=>Er(e,ef),rc=e=>Er(e,Zd),qb=e=>Er(e,Qd),Hb=e=>Er(e,Xd),Ho=e=>Er(e,nf,!0),jb=e=>Er(e,tf,!0),ar=(e,t,n)=>{const r=Vd.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Er=(e,t,n=!1)=>{const r=Wd.exec(e);return r?r[1]?t(r[1]):n:!1},Zd=e=>e==="position"||e==="percentage",Xd=e=>e==="image"||e==="url",Qd=e=>e==="length"||e==="size"||e==="bg-size",Jd=e=>e==="length",Gb=e=>e==="number",ef=e=>e==="family-name",tf=e=>e==="number"||e==="weight",nf=e=>e==="shadow",Vb=()=>{const e=xt("color"),t=xt("font"),n=xt("text"),r=xt("font-weight"),o=xt("tracking"),i=xt("leading"),s=xt("breakpoint"),a=xt("container"),u=xt("spacing"),c=xt("radius"),l=xt("shadow"),d=xt("inset-shadow"),f=xt("text-shadow"),p=xt("drop-shadow"),g=xt("blur"),h=xt("perspective"),m=xt("aspect"),b=xt("ease"),y=xt("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...w(),le,ue],k=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],S=()=>[le,ue,u],D=()=>[Wn,"full","auto",...S()],B=()=>[mn,"none","subgrid",le,ue],R=()=>["auto",{span:["full",mn,le,ue]},mn,le,ue],M=()=>[mn,"auto",le,ue],F=()=>["auto","min","max","fr",le,ue],O=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...S()],L=()=>[Wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],q=()=>[Wn,"screen","full","dvw","lvw","svw","min","max","fit",...S()],j=()=>[Wn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],N=()=>[e,le,ue],Y=()=>[...w(),rc,nc,{position:[le,ue]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",qb,Pb,{size:[le,ue]}],Me=()=>[os,Xr,fr],Ne=()=>["","none","full",c,le,ue],Pe=()=>["",ze,Xr,fr],V=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[ze,os,rc,nc],Ce=()=>["","none",g,le,ue],Fe=()=>["none",ze,le,ue],Ye=()=>["none",ze,le,ue],tt=()=>[ze,le,ue],oe=()=>[Wn,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[Yd],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[$b],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",ze],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wn,ue,le,m]}],container:["container"],"container-type":[{"@container":["","normal","size",le,ue]}],"container-named":[Fb],columns:[{columns:[ze,ue,le,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[mn,"auto",le,ue]}],basis:[{basis:[Wn,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ze,Wn,"auto","initial","none",ue]}],grow:[{grow:["",ze,le,ue]}],shrink:[{shrink:["",ze,le,ue]}],order:[{order:[mn,"first","last","none",le,ue]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:R()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:R()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...O(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...O()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":O()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...j()]}],"min-block-size":[{"min-block":["auto",...j()]}],"max-block-size":[{"max-block":["none",...j()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,Xr,fr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,jb,Bb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",os,ue]}],"font-family":[{font:[Kb,zb,t]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,le,ue]}],"line-clamp":[{"line-clamp":[ze,"none",le,tc]}],leading:[{leading:[i,...S()]}],"list-image":[{"list-image":["none",le,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ze,"from-font","auto",le,fr]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[ze,"auto",le,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[mn,le,ue]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mn,le,ue],radial:["",le,ue],conic:[mn,le,ue]},Hb,Ub]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Ne()}],"rounded-s":[{"rounded-s":Ne()}],"rounded-e":[{"rounded-e":Ne()}],"rounded-t":[{"rounded-t":Ne()}],"rounded-r":[{"rounded-r":Ne()}],"rounded-b":[{"rounded-b":Ne()}],"rounded-l":[{"rounded-l":Ne()}],"rounded-ss":[{"rounded-ss":Ne()}],"rounded-se":[{"rounded-se":Ne()}],"rounded-ee":[{"rounded-ee":Ne()}],"rounded-es":[{"rounded-es":Ne()}],"rounded-tl":[{"rounded-tl":Ne()}],"rounded-tr":[{"rounded-tr":Ne()}],"rounded-br":[{"rounded-br":Ne()}],"rounded-bl":[{"rounded-bl":Ne()}],"border-w":[{border:Pe()}],"border-w-x":[{"border-x":Pe()}],"border-w-y":[{"border-y":Pe()}],"border-w-s":[{"border-s":Pe()}],"border-w-e":[{"border-e":Pe()}],"border-w-bs":[{"border-bs":Pe()}],"border-w-be":[{"border-be":Pe()}],"border-w-t":[{"border-t":Pe()}],"border-w-r":[{"border-r":Pe()}],"border-w-b":[{"border-b":Pe()}],"border-w-l":[{"border-l":Pe()}],"divide-x":[{"divide-x":Pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ze,le,ue]}],"outline-w":[{outline:["",ze,Xr,fr]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",l,Ho,qo]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",d,Ho,qo]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:Pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[ze,fr]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":Pe()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",f,Ho,qo]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[ze,le,ue]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ze]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[le,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[ze]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",le,ue]}],filter:[{filter:["","none",le,ue]}],blur:[{blur:Ce()}],brightness:[{brightness:[ze,le,ue]}],contrast:[{contrast:[ze,le,ue]}],"drop-shadow":[{"drop-shadow":["","none",p,Ho,qo]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",ze,le,ue]}],"hue-rotate":[{"hue-rotate":[ze,le,ue]}],invert:[{invert:["",ze,le,ue]}],saturate:[{saturate:[ze,le,ue]}],sepia:[{sepia:["",ze,le,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",le,ue]}],"backdrop-blur":[{"backdrop-blur":Ce()}],"backdrop-brightness":[{"backdrop-brightness":[ze,le,ue]}],"backdrop-contrast":[{"backdrop-contrast":[ze,le,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ze,le,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ze,le,ue]}],"backdrop-invert":[{"backdrop-invert":["",ze,le,ue]}],"backdrop-opacity":[{"backdrop-opacity":[ze,le,ue]}],"backdrop-saturate":[{"backdrop-saturate":[ze,le,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",ze,le,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ze,"initial",le,ue]}],ease:[{ease:["linear","initial",b,le,ue]}],delay:[{delay:[ze,le,ue]}],animate:[{animate:["none",y,le,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,le,ue]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[le,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],zoom:[{zoom:[mn,le,ue]}],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":N()}],"scrollbar-track-color":[{"scrollbar-track":N()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le,ue]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[ze,Xr,fr,tc]}],stroke:[{stroke:["none",...N()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wb=Sb(Vb);function Jt(...e){return Wb(Kd(e))}function Yb(e){return(...t)=>{for(const n of e)n&&n(...t)}}const H=e=>typeof e=="function"&&!e.length?e():e,oc=e=>Array.isArray(e)?e:e?[e]:[];function Zb(e,...t){return typeof e=="function"?e(...t):e}const Xb=ge;function Qb(e,t,n,r){return e.addEventListener(t,n,r),Xb(e.removeEventListener.bind(e,t,n,r))}function Jb(e,t,n,r){const o=()=>{oc(H(e)).forEach(i=>{i&&oc(H(t)).forEach(s=>Qb(i,s,n,r))})};typeof e=="function"?ae(o):he(o)}const e1=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function ic(e){const t={};let n;for(;n=e1.exec(e);)t[n[1]]=n[2];return t}function To(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=ic(e)}else typeof t=="string"&&(t=ic(t));return{...e,...t}}function At(...e){return Yb(e)}function t1(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function ga(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function n1(e){return typeof e=="number"}function Rr(e){return Object.prototype.toString.call(e)==="[object String]"}function rf(e){return typeof e=="function"}function jr(e){return t=>`${e()}-${t}`}function Wt(e,t){return e?e===t||e.contains(t):!1}function oo(e,t=!1){const{activeElement:n}=Sn(e);if(!n?.nodeName)return null;if(of(n)&&n.contentDocument)return oo(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=Sn(n).getElementById(r);if(o)return o}}return n}function r1(e){return Sn(e).defaultView||window}function Sn(e){return e?e.ownerDocument||e:document}function of(e){return e.tagName==="IFRAME"}var Pa=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(Pa||{});function Ba(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function Ni(){return Ba(/^Mac/i)}function o1(){return Ba(/^iPhone/i)}function i1(){return Ba(/^iPad/i)||Ni()&&navigator.maxTouchPoints>1}function s1(){return o1()||i1()}function a1(){return Ni()||s1()}function nt(e,t){return t&&(rf(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function St(e){return t=>{for(const n of e)nt(t,n)}}function u1(e){return Ni()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function kt(e){if(e)if(c1())e.focus({preventScroll:!0});else{const t=l1(e);e.focus(),d1(t)}}var jo=null;function c1(){if(jo==null){jo=!1;try{document.createElement("div").focus({get preventScroll(){return jo=!0,!0}})}catch{}}return jo}function l1(e){let t=e.parentNode;const n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function d1(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var sf=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],f1=[...sf,'[tabindex]:not([tabindex="-1"]):not([disabled])'],za=`${sf.join(":not([hidden]),")},[tabindex]:not([disabled]):not([hidden])`,g1=f1.join(':not([hidden]):not([tabindex="-1"]),');function af(e,t){const r=Array.from(e.querySelectorAll(za)).filter(sc);return t&&sc(e)&&r.unshift(e),r.forEach((o,i)=>{if(of(o)&&o.contentDocument){const s=o.contentDocument.body,a=af(s,!1);r.splice(i,1,...a)}}),r}function sc(e){return uf(e)&&!p1(e)}function uf(e){return e.matches(za)&&Ua(e)}function p1(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}function Ua(e,t){return e.nodeName!=="#comment"&&h1(e)&&m1(e,t)&&(!e.parentElement||Ua(e.parentElement,e))}function h1(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;const{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:s}=o(e);r=i!=="none"&&s!=="hidden"&&s!=="collapse"}return r}function m1(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function b1(e,t,n){const r=t?.tabbable?g1:za,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){return t?.from?.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Ua(i)&&(!t?.accept||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(o.currentNode=t.from),o}function ac(e){let t=e;for(;t&&!y1(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function y1(e){const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function x1(){}function v1(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=i,a=0,u=s-1;a<s;u=a++){const[c,l]=t[a],[d,f]=t[u],[,p]=t[u===0?s-1:u-1]||[0,0],g=(l-f)*(n-c)-(c-d)*(r-l);if(f<l){if(r>=f&&r<l){if(g===0)return!0;g>0&&(r===f?r>p&&(o=!o):o=!o)}}else if(l<f){if(r>l&&r<=f){if(g===0)return!0;g<0&&(r===f?r<p&&(o=!o):o=!o)}}else if(r===l&&(n>=d&&n<=c||n>=c&&n<=d))return!0}return o}function Ge(e,t){return te(e,t)}var Qr=new Map,uc=new Set;function cc(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Qr.get(n.target);r||(r=new Set,Qr.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Qr.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Qr.delete(n.target)),Qr.size===0)){for(const o of uc)o();uc.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?cc():document.addEventListener("DOMContentLoaded",cc));function pa(e,t){const n=lc(e,t,"left"),r=lc(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight;let s=e.scrollLeft,a=e.scrollTop;const u=s+e.offsetWidth,c=a+e.offsetHeight;n<=s?s=n:n+o>u&&(s+=n+o-u),r<=a?a=r:r+i>c&&(a+=r+i-c),e.scrollLeft=s,e.scrollTop=a}function lc(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function w1(e,t){if(document.contains(e)){const n=document.scrollingElement||document.documentElement;if(window.getComputedStyle(n).overflow==="hidden"){let o=ac(e);for(;e&&o&&e!==n&&o!==n;)pa(o,e),e=o,o=ac(e)}else{const{left:o,top:i}=e.getBoundingClientRect();e?.scrollIntoView?.({block:"nearest"});const{left:s,top:a}=e.getBoundingClientRect();(Math.abs(o-s)>1||Math.abs(i-a)>1)&&e.scrollIntoView?.({block:"nearest"})}}}var cf={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function Ri(e,t){const[n,r]=I(dc(t?.()));return ae(()=>{r(e()?.tagName.toLowerCase()||dc(t?.()))}),n}function dc(e){return Rr(e)?e:void 0}function ut(e){const[t,n]=ke(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return x(hd,te(n,{get component(){return t.as}}))}var _1=Object.defineProperty,Do=(e,t)=>{for(var n in t)_1(e,n,{get:t[n],enumerable:!0})},E1={};Do(E1,{Button:()=>lf,Root:()=>Oo});var k1=["button","color","file","image","reset","submit"];function S1(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?k1.indexOf(e.type)!==-1:!1}function Oo(e){let t;const n=Ge({type:"button"},e),[r,o]=ke(n,["ref","type","disabled"]),i=Ri(()=>t,()=>"button"),s=J(()=>{const c=i();return c==null?!1:S1({tagName:c,type:r.type})}),a=J(()=>i()==="input"),u=J(()=>i()==="a"&&t?.getAttribute("href")!=null);return x(ut,te({as:"button",ref(c){var l=At(d=>t=d,r.ref);typeof l=="function"&&l(c)},get type(){return ce(()=>!!(s()||a()))()?r.type:void 0},get role(){return!s()&&!u()?"button":void 0},get tabIndex(){return!s()&&!u()&&!r.disabled?0:void 0},get disabled(){return ce(()=>!!(s()||a()))()?r.disabled:void 0},get"aria-disabled"(){return!s()&&!a()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var lf=Oo;const fc=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gc=Kd,df=(e,t)=>n=>{var r;if(t?.variants==null)return gc(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const l=n?.[c],d=i?.[c];if(l===null)return null;const f=fc(l)||fc(d);return o[c][f]}),a=n&&Object.entries(n).reduce((c,l)=>{let[d,f]=l;return f===void 0||(c[d]=f),c},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,l)=>{let{class:d,className:f,...p}=l;return Object.entries(p).every(g=>{let[h,m]=g;return Array.isArray(m)?m.includes({...i,...a}[h]):{...i,...a}[h]===m})?[...c,d,f]:c},[]);return gc(e,s,u,n?.class,n?.className)},C1=df("inline-flex items-center justify-center rounded-md font-medium transition-[color,background-color,box-shadow] focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-sm",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),je=e=>{const[t,n]=ke(e,["class","variant","size"]);return x(lf,te({get class(){return Jt(C1({size:t.size,variant:t.variant}),t.class)}},n))};var A1=$("<div>");const T1=df("inline-flex items-center rounded-md border px-2.5 py-0.5 text-sm font-semibold transition-shadow focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),D1=e=>{const[t,n]=ke(e,["class","variant"]);return(()=>{var r=A1();return sr(r,te({get class(){return Jt(T1({variant:t.variant}),t.class)}},n),!1,!1),r})()};var O1=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),N1=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function R1(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return O1.has(n)}const t=e.split("-")[0];return N1.has(t)}function I1(e){return R1(e)?"rtl":"ltr"}function ff(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:I1(e)}}var ha=ff(),io=new Set;function pc(){ha=ff();for(const e of io)e(ha)}function M1(){const[e,t]=I(ha),n=J(()=>e());return Kn(()=>{io.size===0&&window.addEventListener("languagechange",pc),io.add(t),ge(()=>{io.delete(t),io.size===0&&window.removeEventListener("languagechange",pc)})}),{locale:()=>n().locale,direction:()=>n().direction}}var L1=wt();function ur(){const e=M1();return pt(L1)||e}var is=new Map;function $1(e){const{locale:t}=ur(),n=J(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return J(()=>{const r=n();let o;return is.has(r)&&(o=is.get(r)),o||(o=new Intl.Collator(t(),e),is.set(r,o)),o})}const F1=["top","right","bottom","left"],nr=Math.min,Vt=Math.max,hi=Math.round,Go=Math.floor,_n=e=>({x:e,y:e}),P1={left:"right",right:"left",bottom:"top",top:"bottom"};function ma(e,t,n){return Vt(e,nr(t,n))}function kr(e,t){return typeof e=="function"?e(t):e}function rr(e){return e.split("-")[0]}function Gr(e){return e.split("-")[1]}function gf(e){return e==="x"?"y":"x"}function Ka(e){return e==="y"?"height":"width"}function Pn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function qa(e){return gf(Pn(e))}function B1(e,t,n){n===void 0&&(n=!1);const r=Gr(e),o=qa(e),i=Ka(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mi(s)),[s,mi(s)]}function z1(e){const t=mi(e);return[ba(e),t,ba(t)]}function ba(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hc=["left","right"],mc=["right","left"],U1=["top","bottom"],K1=["bottom","top"];function q1(e,t,n){switch(e){case"top":case"bottom":return n?t?mc:hc:t?hc:mc;case"left":case"right":return t?U1:K1;default:return[]}}function H1(e,t,n,r){const o=Gr(e);let i=q1(rr(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ba)))),i}function mi(e){const t=rr(e);return P1[t]+e.slice(t.length)}function j1(e){return{top:0,right:0,bottom:0,left:0,...e}}function pf(e){return typeof e!="number"?j1(e):{top:e,right:e,bottom:e,left:e}}function bi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function bc(e,t,n){let{reference:r,floating:o}=e;const i=Pn(t),s=qa(t),a=Ka(s),u=rr(t),c=i==="y",l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(u){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Gr(t)){case"start":p[s]-=f*(n&&c?-1:1);break;case"end":p[s]+=f*(n&&c?-1:1);break}return p}async function G1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=kr(t,e),g=pf(p),m=a[f?d==="floating"?"reference":"floating":d],b=bi(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:l,strategy:u})),y=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),w=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},_=bi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:u}):y);return{top:(b.top-_.top+g.top)/w.y,bottom:(_.bottom-b.bottom+g.bottom)/w.y,left:(b.left-_.left+g.left)/w.x,right:(_.right-b.right+g.right)/w.x}}const V1=50,W1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:G1},u=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=bc(c,r,u),f=r,p=0;const g={};for(let h=0;h<i.length;h++){const m=i[h];if(!m)continue;const{name:b,fn:y}=m,{x:v,y:w,data:_,reset:k}=await y({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:c,platform:a,elements:{reference:e,floating:t}});l=v??l,d=w??d,g[b]={...g[b],..._},k&&p<V1&&(p++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(c=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:l,y:d}=bc(c,f,u)),h=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:g}},Y1=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:u}=t,{element:c,padding:l=0}=kr(e,t)||{};if(c==null)return{};const d=pf(l),f={x:n,y:r},p=qa(o),g=Ka(p),h=await s.getDimensions(c),m=p==="y",b=m?"top":"left",y=m?"bottom":"right",v=m?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[p]-f[p]-i.floating[g],_=f[p]-i.reference[p],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let A=k?k[v]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=a.floating[v]||i.floating[g]);const S=w/2-_/2,D=A/2-h[g]/2-1,B=nr(d[b],D),R=nr(d[y],D),M=B,F=A-h[g]-R,O=A/2-h[g]/2+S,P=ma(M,O,F),G=!u.arrow&&Gr(o)!=null&&O!==P&&i.reference[g]/2-(O<M?B:R)-h[g]/2<0,L=G?O<M?O-M:O-F:0;return{[p]:f[p]+L,data:{[p]:P,centerOffset:O-P-L,...G&&{alignmentOffset:L}},reset:G}}}),Z1=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:u,elements:c}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...m}=kr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=rr(o),y=Pn(a),v=rr(a)===a,w=await(u.isRTL==null?void 0:u.isRTL(c.floating)),_=f||(v||!h?[mi(a)]:z1(a)),k=g!=="none";!f&&k&&_.push(...H1(a,h,g,w));const A=[a,..._],S=await u.detectOverflow(t,m),D=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(l&&D.push(S[b]),d){const O=B1(o,s,w);D.push(S[O[0]],S[O[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every(O=>O<=0)){var R,M;const O=(((R=i.flip)==null?void 0:R.index)||0)+1,P=A[O];if(P&&(!(d==="alignment"?y!==Pn(P):!1)||B.every(q=>Pn(q.placement)===y?q.overflows[0]>0:!0)))return{data:{index:O,overflows:B},reset:{placement:P}};let G=(M=B.filter(L=>L.overflows[0]<=0).sort((L,q)=>L.overflows[1]-q.overflows[1])[0])==null?void 0:M.placement;if(!G)switch(p){case"bestFit":{var F;const L=(F=B.filter(q=>{if(k){const j=Pn(q.placement);return j===y||j==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(j=>j>0).reduce((j,N)=>j+N,0)]).sort((q,j)=>q[1]-j[1])[0])==null?void 0:F[0];L&&(G=L);break}case"initialPlacement":G=a;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function yc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xc(e){return F1.some(t=>e[t]>=0)}const X1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=kr(e,t);switch(o){case"referenceHidden":{const s=await r.detectOverflow(t,{...i,elementContext:"reference"}),a=yc(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:xc(a)}}}case"escaped":{const s=await r.detectOverflow(t,{...i,altBoundary:!0}),a=yc(s,n.floating);return{data:{escapedOffsets:a,escaped:xc(a)}}}default:return{}}}}},Q1=new Set(["left","top"]);async function J1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=rr(n),a=Gr(n),u=Pn(n)==="y",c=Q1.has(s)?-1:1,l=i&&u?-1:1,d=kr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),u?{x:p*l,y:f*c}:{x:f*c,y:p*l}}const ey=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,u=await J1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:s}}}}},ty=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:u={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...c}=kr(e,t),l={x:n,y:r},d=await i.detectOverflow(t,c),f=Pn(rr(o)),p=gf(f);let g=l[p],h=l[f];if(s){const b=p==="y"?"top":"left",y=p==="y"?"bottom":"right",v=g+d[b],w=g-d[y];g=ma(v,g,w)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=h+d[b],w=h-d[y];h=ma(v,h,w)}const m=u.fn({...t,[p]:g,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:s,[f]:a}}}}}},ny=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:u=()=>{},...c}=kr(e,t),l=await s.detectOverflow(t,c),d=rr(o),f=Gr(o),p=Pn(o)==="y",{width:g,height:h}=i.floating;let m,b;d==="top"||d==="bottom"?(m=d,b=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,m=f==="end"?"top":"bottom");const y=h-l.top-l.bottom,v=g-l.left-l.right,w=nr(h-l[m],y),_=nr(g-l[b],v),k=!t.middlewareData.shift;let A=w,S=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=y),k&&!f){const B=Vt(l.left,0),R=Vt(l.right,0),M=Vt(l.top,0),F=Vt(l.bottom,0);p?S=g-2*(B!==0||R!==0?B+R:Vt(l.left,l.right)):A=h-2*(M!==0||F!==0?M+F:Vt(l.top,l.bottom))}await u({...t,availableWidth:S,availableHeight:A});const D=await s.getDimensions(a.floating);return g!==D.width||h!==D.height?{reset:{rects:!0}}:{}}}};function Ii(){return typeof window<"u"}function Vr(e){return hf(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){var t;return(t=(hf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function hf(e){return Ii()?e instanceof Node||e instanceof Xt(e).Node:!1}function ln(e){return Ii()?e instanceof Element||e instanceof Xt(e).Element:!1}function Hn(e){return Ii()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function vc(e){return!Ii()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function No(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function ry(e){return/^(table|td|th)$/.test(Vr(e))}function Mi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const oy=/transform|translate|scale|rotate|perspective|filter/,iy=/paint|layout|strict|content/,gr=e=>!!e&&e!=="none";let ss;function Ha(e){const t=ln(e)?dn(e):e;return gr(t.transform)||gr(t.translate)||gr(t.scale)||gr(t.rotate)||gr(t.perspective)||!ja()&&(gr(t.backdropFilter)||gr(t.filter))||oy.test(t.willChange||"")||iy.test(t.contain||"")}function sy(e){let t=or(e);for(;Hn(t)&&!Br(t);){if(Ha(t))return t;if(Mi(t))return null;t=or(t)}return null}function ja(){return ss==null&&(ss=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ss}function Br(e){return/^(html|body|#document)$/.test(Vr(e))}function dn(e){return Xt(e).getComputedStyle(e)}function Li(e){return ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function or(e){if(Vr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vc(e)&&e.host||An(e);return vc(t)?t.host:t}function mf(e){const t=or(e);return Br(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hn(t)&&No(t)?t:mf(t)}function mo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=mf(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Xt(o);if(i){const a=ya(s);return t.concat(s,s.visualViewport||[],No(o)?o:[],a&&n?mo(a):[])}else return t.concat(o,mo(o,[],n))}function ya(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bf(e){const t=dn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Hn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=hi(n)!==i||hi(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ga(e){return ln(e)?e:e.contextElement}function Fr(e){const t=Ga(e);if(!Hn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bf(t);let s=(i?hi(n.width):n.width)/r,a=(i?hi(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ay=_n(0);function yf(e){const t=Xt(e);return!ja()||!t.visualViewport?ay:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uy(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function wr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ga(e);let s=_n(1);t&&(r?ln(r)&&(s=Fr(r)):s=Fr(e));const a=uy(i,n,r)?yf(i):_n(0);let u=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,l=o.width/s.x,d=o.height/s.y;if(i){const f=Xt(i),p=r&&ln(r)?Xt(r):r;let g=f,h=ya(g);for(;h&&r&&p!==g;){const m=Fr(h),b=h.getBoundingClientRect(),y=dn(h),v=b.left+(h.clientLeft+parseFloat(y.paddingLeft))*m.x,w=b.top+(h.clientTop+parseFloat(y.paddingTop))*m.y;u*=m.x,c*=m.y,l*=m.x,d*=m.y,u+=v,c+=w,g=Xt(h),h=ya(g)}}return bi({width:l,height:d,x:u,y:c})}function $i(e,t){const n=Li(e).scrollLeft;return t?t.left+n:wr(An(e)).left+n}function xf(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-$i(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function cy(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=An(r),a=t?Mi(t.floating):!1;if(r===s||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=_n(1);const l=_n(0),d=Hn(r);if((d||!d&&!i)&&((Vr(r)!=="body"||No(s))&&(u=Li(r)),d)){const p=wr(r);c=Fr(r),l.x=p.x+r.clientLeft,l.y=p.y+r.clientTop}const f=s&&!d&&!i?xf(s,u):_n(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+l.x+f.x,y:n.y*c.y-u.scrollTop*c.y+l.y+f.y}}function ly(e){return Array.from(e.getClientRects())}function dy(e){const t=An(e),n=Li(e),r=e.ownerDocument.body,o=Vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$i(e);const a=-n.scrollTop;return dn(r).direction==="rtl"&&(s+=Vt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const wc=25;function fy(e,t){const n=Xt(e),r=An(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,u=0;if(o){i=o.width,s=o.height;const l=ja();(!l||l&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const c=$i(r);if(c<=0){const l=r.ownerDocument,d=l.body,f=getComputedStyle(d),p=l.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-p);g<=wc&&(i-=g)}else c<=wc&&(i+=c);return{width:i,height:s,x:a,y:u}}function gy(e,t){const n=wr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hn(e)?Fr(e):_n(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,u=o*i.x,c=r*i.y;return{width:s,height:a,x:u,y:c}}function _c(e,t,n){let r;if(t==="viewport")r=fy(e,n);else if(t==="document")r=dy(An(e));else if(ln(t))r=gy(t,n);else{const o=yf(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return bi(r)}function vf(e,t){const n=or(e);return n===t||!ln(n)||Br(n)?!1:dn(n).position==="fixed"||vf(n,t)}function py(e,t){const n=t.get(e);if(n)return n;let r=mo(e,[],!1).filter(a=>ln(a)&&Vr(a)!=="body"),o=null;const i=dn(e).position==="fixed";let s=i?or(e):e;for(;ln(s)&&!Br(s);){const a=dn(s),u=Ha(s);!u&&a.position==="fixed"&&(o=null),(i?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||No(s)&&!u&&vf(e,s))?r=r.filter(l=>l!==s):o=a,s=or(s)}return t.set(e,r),r}function hy(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Mi(t)?[]:py(t,this._c):[].concat(n),r],a=_c(t,s[0],o);let u=a.top,c=a.right,l=a.bottom,d=a.left;for(let f=1;f<s.length;f++){const p=_c(t,s[f],o);u=Vt(p.top,u),c=nr(p.right,c),l=nr(p.bottom,l),d=Vt(p.left,d)}return{width:c-d,height:l-u,x:d,y:u}}function my(e){const{width:t,height:n}=bf(e);return{width:t,height:n}}function by(e,t,n){const r=Hn(t),o=An(t),i=n==="fixed",s=wr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const u=_n(0);function c(){u.x=$i(o)}if(r||!r&&!i)if((Vr(t)!=="body"||No(o))&&(a=Li(t)),r){const p=wr(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const l=o&&!r&&!i?xf(o,a):_n(0),d=s.left+a.scrollLeft-u.x-l.x,f=s.top+a.scrollTop-u.y-l.y;return{x:d,y:f,width:s.width,height:s.height}}function as(e){return dn(e).position==="static"}function Ec(e,t){if(!Hn(e)||dn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function wf(e,t){const n=Xt(e);if(Mi(e))return n;if(!Hn(e)){let o=or(e);for(;o&&!Br(o);){if(ln(o)&&!as(o))return o;o=or(o)}return n}let r=Ec(e,t);for(;r&&ry(r)&&as(r);)r=Ec(r,t);return r&&Br(r)&&as(r)&&!Ha(r)?n:r||sy(e)||n}const yy=async function(e){const t=this.getOffsetParent||wf,n=this.getDimensions,r=await n(e.floating);return{reference:by(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xy(e){return dn(e).direction==="rtl"}const _f={convertOffsetParentRelativeRectToViewportRelativeRect:cy,getDocumentElement:An,getClippingRect:hy,getOffsetParent:wf,getElementRects:yy,getClientRects:ly,getDimensions:my,getScale:Fr,isElement:ln,isRTL:xy};function Ef(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vy(e,t){let n=null,r;const o=An(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),i();const c=e.getBoundingClientRect(),{left:l,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;const g=Go(d),h=Go(o.clientWidth-(l+f)),m=Go(o.clientHeight-(d+p)),b=Go(l),v={rootMargin:-g+"px "+-h+"px "+-m+"px "+-b+"px",threshold:Vt(0,nr(1,u))||1};let w=!0;function _(k){const A=k[0].intersectionRatio;if(A!==u){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}A===1&&!Ef(c,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(_,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return s(!0),i}function wy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,c=Ga(e),l=o||i?[...c?mo(c):[],...t?mo(t):[]]:[];l.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=c&&a?vy(c,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!u&&p.observe(c),t&&p.observe(t));let g,h=u?wr(e):null;u&&m();function m(){const b=wr(e);h&&!Ef(h,b)&&n(),h=b,g=requestAnimationFrame(m)}return n(),()=>{var b;l.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d?.(),(b=p)==null||b.disconnect(),p=null,u&&cancelAnimationFrame(g)}}const _y=ey,Ey=ty,ky=Z1,Sy=ny,Cy=X1,Ay=Y1,Ty=(e,t,n)=>{const r=new Map,o={platform:_f,...n},i={...o.platform,_c:r};return W1(e,t,{...o,platform:i})};var Dy=$('<svg display=block viewBox="0 0 30 30"style=transform:scale(1.02)><g><path fill=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z></path><path stroke=none d=M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z>'),Va=wt();function Wa(){const e=pt(Va);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var xa=30,kc=xa/2,Oy={top:180,right:-90,bottom:0,left:90};function Ya(e){const t=Wa(),n=Ge({size:xa},e),[r,o]=ke(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],s=Ny(t.contentRef),a=()=>s()?.getPropertyValue("background-color")||"none",u=()=>s()?.getPropertyValue(`border-${i()}-color`)||"none",c=()=>s()?.getPropertyValue(`border-${i()}-width`)||"0px",l=()=>Number.parseInt(c())*2*(xa/r.size),d=()=>`rotate(${Oy[i()]} ${kc} ${kc}) translate(0 2)`;return x(ut,te({as:"div",ref(f){var p=At(t.setArrowRef,r.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return To({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:a(),stroke:u(),"stroke-width":l()},r.style)}},o,{get children(){var f=Dy(),p=f.firstChild,g=p.firstChild;return g.nextSibling,he(()=>ve(p,"transform",d())),f}}))}function Ny(e){const[t,n]=I();return ae(()=>{const r=e();r&&n(r1(r).getComputedStyle(r))}),t}function Ry(e){const t=Wa(),[n,r]=ke(e,["ref","style"]);return x(ut,te({as:"div",ref(o){var i=At(t.setPositionerRef,n.ref);typeof i=="function"&&i(o)},"data-popper-positioner":"",get style(){return To({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Sc(e){const{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);const i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...i,toJSON:()=>i}}function Iy(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?Sc(r):e?e.getBoundingClientRect():Sc()}}}function My(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var Ly={top:"bottom",right:"left",bottom:"top",left:"right"};function $y(e,t){const[n,r]=e.split("-"),o=Ly[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function Fy(e){const t=Ge({getAnchorRect:f=>f?.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=I(),[o,i]=I(),[s,a]=I(t.placement),u=()=>Iy(t.anchorRef?.(),t.getAnchorRect),{direction:c}=ur();async function l(){const f=u(),p=n(),g=o();if(!f||!p)return;const h=(g?.clientHeight||0)/2,m=typeof t.gutter=="number"?t.gutter+h:t.gutter??h;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();const b=[_y(({placement:k})=>{const A=!!k.split("-")[1];return{mainAxis:m,crossAxis:A?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const k=typeof t.flip=="string"?t.flip.split(" "):void 0;if(k!==void 0&&!k.every(My))throw new Error("`flip` expects a spaced-delimited list of placements");b.push(ky({padding:t.overflowPadding,fallbackPlacements:k}))}(t.slide||t.overlap)&&b.push(Ey({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),b.push(Sy({padding:t.overflowPadding,apply({availableWidth:k,availableHeight:A,rects:S}){const D=Math.round(S.reference.width);k=Math.floor(k),A=Math.floor(A),p.style.setProperty("--kb-popper-anchor-width",`${D}px`),p.style.setProperty("--kb-popper-content-available-width",`${k}px`),p.style.setProperty("--kb-popper-content-available-height",`${A}px`),t.sameWidth&&(p.style.width=`${D}px`),t.fitViewport&&(p.style.maxWidth=`${k}px`,p.style.maxHeight=`${A}px`)}})),t.hideWhenDetached&&b.push(Cy({padding:t.detachedPadding})),g&&b.push(Ay({element:g,padding:t.arrowPadding}));const y=await Ty(f,p,{placement:t.placement,strategy:"absolute",middleware:b,platform:{..._f,isRTL:()=>c()==="rtl"}});if(a(y.placement),t.onCurrentPlacementChange?.(y.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",$y(y.placement,c()));const v=Math.round(y.x),w=Math.round(y.y);let _;if(t.hideWhenDetached&&(_=y.middlewareData.hide?.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${v}px, ${w}px, 0)`,visibility:_}),g&&y.middlewareData.arrow){const{x:k,y:A}=y.middlewareData.arrow,S=y.placement.split("-")[0];Object.assign(g.style,{left:k!=null?`${k}px`:"",top:A!=null?`${A}px`:"",[S]:"100%"})}}ae(()=>{const f=u(),p=n();if(!f||!p)return;const g=wy(f,p,l,{elementResize:typeof ResizeObserver=="function"});ge(g)}),ae(()=>{const f=n(),p=t.contentRef?.();!f||!p||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(p).zIndex})});const d={currentPlacement:s,contentRef:()=>t.contentRef?.(),setPositionerRef:r,setArrowRef:i};return x(Va.Provider,{value:d,get children(){return t.children}})}var kf=Object.assign(Fy,{Arrow:Ya,Context:Va,usePopperContext:Wa,Positioner:Ry});function Sf(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],o=u=>{if(u==null)return"";const c=e.getKey??"key",l=Rr(c)?u[c]:c(u);return l!=null?String(l):""},i=u=>{if(u==null)return"";const c=e.getTextValue??"textValue",l=Rr(c)?u[c]:c(u);return l!=null?String(l):""},s=u=>{if(u==null)return!1;const c=e.getDisabled??"disabled";return(Rr(c)?u[c]:c(u))??!1},a=u=>{if(u!=null)return Rr(e.getSectionChildren)?u[e.getSectionChildren]:e.getSectionChildren?.(u)};for(const u of e.dataSource){if(Rr(u)||n1(u)){r.push({type:"item",rawValue:u,key:String(u),textValue:String(u),disabled:s(u),level:n,index:t}),t++;continue}if(a(u)!=null){r.push({type:"section",rawValue:u,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=a(u)??[];if(c.length>0){const l=Sf({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...l),t+=l.length}}else r.push({type:"item",rawValue:u,key:o(u),textValue:i(u),disabled:s(u),level:n,index:t}),t++}return r}function Py(e,t=[]){return J(()=>{const n=Sf({dataSource:H(e.dataSource),getKey:H(e.getKey),getTextValue:H(e.getTextValue),getDisabled:H(e.getDisabled),getSectionChildren:H(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}function Fi(e){const[t,n]=I(e.defaultValue?.()),r=J(()=>e.value?.()!==void 0),o=J(()=>r()?e.value?.():t());return[o,s=>{vt(()=>{const a=Zb(s,o());return Object.is(a,o())||(r()||n(a),e.onChange?.(a)),a})}]}function Cf(e){const[t,n]=Fi(e);return[()=>t()??!1,n]}function By(e){const[t,n]=Fi(e);return[()=>t()??[],n]}var $n=class Af extends Set{anchorKey;currentKey;constructor(t,n,r){super(t),t instanceof Af?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}};function zy(e){const[t,n]=Fi(e);return[()=>t()??new $n,n]}function Tf(e){return a1()?e.altKey:e.ctrlKey}function Ir(e){return Ni()?e.metaKey:e.ctrlKey}function Cc(e){return new $n(e)}function Uy(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Ky(e){const t=Ge({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=I(!1),[o,i]=I(),s=J(()=>{const h=H(t.selectedKeys);return h!=null?Cc(h):h}),a=J(()=>{const h=H(t.defaultSelectedKeys);return h!=null?Cc(h):new $n}),[u,c]=zy({value:s,defaultValue:a,onChange:h=>t.onSelectionChange?.(h)}),[l,d]=I(H(t.selectionBehavior)),f=()=>H(t.selectionMode),p=()=>H(t.disallowEmptySelection)??!1,g=h=>{(H(t.allowDuplicateSelectionEvents)||!Uy(h,u()))&&c(h)};return ae(()=>{const h=u();H(t.selectionBehavior)==="replace"&&l()==="toggle"&&typeof h=="object"&&h.size===0&&d("replace")}),ae(()=>{d(H(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:l,setSelectionBehavior:d,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:u,setSelectedKeys:g}}function qy(e){const[t,n]=I(""),[r,o]=I(-1);return{typeSelectHandlers:{onKeyDown:s=>{if(H(e.isDisabled))return;const a=H(e.keyboardDelegate),u=H(e.selectionManager);if(!a.getKeyForSearch)return;const c=Hy(s.key);if(!c||s.ctrlKey||s.metaKey)return;c===" "&&t().trim().length>0&&(s.preventDefault(),s.stopPropagation());let l=n(f=>f+c),d=a.getKeyForSearch(l,u.focusedKey())??a.getKeyForSearch(l);d==null&&jy(l)&&(l=l[0],d=a.getKeyForSearch(l,u.focusedKey())??a.getKeyForSearch(l)),d!=null&&(u.setFocusedKey(d),e.onTypeSelect?.(d)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function Hy(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function jy(e){return e.split("").every(t=>t===e[0])}function Gy(e,t,n){const o=te({selectOnFocus:()=>H(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:s}=ur();let a={top:0,left:0};Jb(()=>H(o.isVirtualized)?void 0:i(),"scroll",()=>{const m=i();m&&(a={top:m.scrollTop,left:m.scrollLeft})});const{typeSelectHandlers:u}=qy({isDisabled:()=>H(o.disallowTypeAhead),keyboardDelegate:()=>H(o.keyboardDelegate),selectionManager:()=>H(o.selectionManager)}),c=()=>H(o.orientation)??"vertical",l=m=>{nt(m,u.onKeyDown),m.altKey&&m.key==="Tab"&&m.preventDefault();const b=t();if(!b?.contains(m.target))return;const y=H(o.selectionManager),v=H(o.selectOnFocus),w=S=>{S!=null&&(y.setFocusedKey(S),m.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(S):v&&!Tf(m)&&y.replaceSelection(S))},_=H(o.keyboardDelegate),k=H(o.shouldFocusWrap),A=y.focusedKey();switch(m.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(_.getKeyBelow){m.preventDefault();let S;A!=null?S=_.getKeyBelow(A):S=_.getFirstKey?.(),S==null&&k&&(S=_.getFirstKey?.(A)),w(S)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(_.getKeyAbove){m.preventDefault();let S;A!=null?S=_.getKeyAbove(A):S=_.getLastKey?.(),S==null&&k&&(S=_.getLastKey?.(A)),w(S)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(_.getKeyLeftOf){m.preventDefault();const S=s()==="rtl";let D;A!=null?D=_.getKeyLeftOf(A):D=S?_.getFirstKey?.():_.getLastKey?.(),w(D)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(_.getKeyRightOf){m.preventDefault();const S=s()==="rtl";let D;A!=null?D=_.getKeyRightOf(A):D=S?_.getLastKey?.():_.getFirstKey?.(),w(D)}break}case"Home":if(_.getFirstKey){m.preventDefault();const S=_.getFirstKey(A,Ir(m));S!=null&&(y.setFocusedKey(S),Ir(m)&&m.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(S):v&&y.replaceSelection(S))}break;case"End":if(_.getLastKey){m.preventDefault();const S=_.getLastKey(A,Ir(m));S!=null&&(y.setFocusedKey(S),Ir(m)&&m.shiftKey&&y.selectionMode()==="multiple"?y.extendSelection(S):v&&y.replaceSelection(S))}break;case"PageDown":if(_.getKeyPageBelow&&A!=null){m.preventDefault();const S=_.getKeyPageBelow(A);w(S)}break;case"PageUp":if(_.getKeyPageAbove&&A!=null){m.preventDefault();const S=_.getKeyPageAbove(A);w(S)}break;case"a":Ir(m)&&y.selectionMode()==="multiple"&&H(o.disallowSelectAll)!==!0&&(m.preventDefault(),y.selectAll());break;case"Escape":m.defaultPrevented||(m.preventDefault(),H(o.disallowEmptySelection)||y.clearSelection());break;case"Tab":if(!H(o.allowsTabNavigation)){if(m.shiftKey)b.focus();else{const S=b1(b,{tabbable:!0});let D,B;do B=S.lastChild(),B&&(D=B);while(B);D&&!D.contains(document.activeElement)&&kt(D)}break}}},d=m=>{const b=H(o.selectionManager),y=H(o.keyboardDelegate),v=H(o.selectOnFocus);if(b.isFocused()){m.currentTarget.contains(m.target)||b.setFocused(!1);return}if(m.currentTarget.contains(m.target)){if(b.setFocused(!0),b.focusedKey()==null){const w=k=>{k!=null&&(b.setFocusedKey(k),v&&b.replaceSelection(k))},_=m.relatedTarget;_&&m.currentTarget.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?w(b.lastSelectedKey()??y.getLastKey?.()):w(b.firstSelectedKey()??y.getFirstKey?.())}else if(!H(o.isVirtualized)){const w=i();if(w){w.scrollTop=a.top,w.scrollLeft=a.left;const _=w.querySelector(`[data-key="${b.focusedKey()}"]`);_&&(kt(_),pa(w,_))}}}},f=m=>{const b=H(o.selectionManager);m.currentTarget.contains(m.relatedTarget)||b.setFocused(!1)},p=m=>{i()===m.target&&m.preventDefault()},g=()=>{const m=H(o.autoFocus);if(!m)return;const b=H(o.selectionManager),y=H(o.keyboardDelegate);let v;m==="first"&&(v=y.getFirstKey?.()),m==="last"&&(v=y.getLastKey?.());const w=b.selectedKeys();w.size&&(v=w.values().next().value),b.setFocused(!0),b.setFocusedKey(v);const _=t();_&&v==null&&!H(o.shouldUseVirtualFocus)&&kt(_)};return Kn(()=>{o.deferAutoFocus?setTimeout(g,0):g()}),ae(Ut([i,()=>H(o.isVirtualized),()=>H(o.selectionManager).focusedKey()],m=>{const[b,y,v]=m;if(y)v&&o.scrollToKey?.(v);else if(v&&b){const w=b.querySelector(`[data-key="${v}"]`);w&&pa(b,w)}})),{tabIndex:J(()=>{if(!H(o.shouldUseVirtualFocus))return H(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:l,onMouseDown:p,onFocusIn:d,onFocusOut:f}}function Df(e,t){const n=()=>H(e.selectionManager),r=()=>H(e.key),o=()=>H(e.shouldUseVirtualFocus),i=y=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):y?.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||Ir(y)||"pointerType"in y&&y.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},s=()=>n().isSelected(r()),a=()=>H(e.disabled)||n().isDisabled(r()),u=()=>!a()&&n().canSelectItem(r());let c=null;const l=y=>{u()&&(c=y.pointerType,y.pointerType==="mouse"&&y.button===0&&!H(e.shouldSelectOnPressUp)&&i(y))},d=y=>{u()&&y.pointerType==="mouse"&&y.button===0&&H(e.shouldSelectOnPressUp)&&H(e.allowsDifferentPressOrigin)&&i(y)},f=y=>{u()&&(H(e.shouldSelectOnPressUp)&&!H(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(y)},p=y=>{!u()||!["Enter"," "].includes(y.key)||(Tf(y)?n().toggleSelection(r()):i(y))},g=y=>{a()&&y.preventDefault()},h=y=>{const v=t();o()||a()||!v||y.target===v&&n().setFocusedKey(r())},m=J(()=>{if(!(o()||a()))return r()===n().focusedKey()?0:-1}),b=J(()=>H(e.virtualized)?void 0:r());return ae(Ut([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([y,v,w,_,k])=>{y&&v===_&&k&&!w&&document.activeElement!==y&&(e.focus?e.focus():kt(y))})),{isSelected:s,isDisabled:a,allowsSelection:u,tabIndex:m,dataKey:b,onPointerDown:l,onPointerUp:d,onClick:f,onKeyDown:p,onMouseDown:g,onFocus:h}}var Vy=class{collection;state;constructor(e,t){this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index<e.index;(!e||r)&&(e=n)}return e?.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=n?.index!=null&&e?.index!=null&&n.index>e.index;(!e||r)&&(e=n)}return e?.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,o=new $n(n,r,t);for(const i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(const i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new $n(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new $n([t],t,t):new $n;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new $n;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new $n)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},Ac=class{keyMap=new Map;iterable;firstKey;lastKey;constructor(e){this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey}getKeyAfter(e){return this.keyMap.get(e)?.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function Wy(e){const t=Ky(e),r=Py({dataSource:()=>H(e.dataSource),getKey:()=>H(e.getKey),getTextValue:()=>H(e.getTextValue),getDisabled:()=>H(e.getDisabled),getSectionChildren:()=>H(e.getSectionChildren),factory:i=>e.filter?new Ac(e.filter(i)):new Ac(i)},[()=>e.filter]),o=new Vy(r,t);return ra(()=>{const i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}var Yy=class{collection;ref;collator;constructor(e,t,n){this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){return this.ref?.()?.querySelector(`[data-key="${e}"]`)??null}getKeyPageAbove(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){const t=this.ref?.();let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){const n=this.collator?.();if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const o=this.collection().getItem(r);if(o){const i=o.textValue.slice(0,e.length);if(o.textValue&&n.compare(i,e)===0)return r}r=this.getKeyBelow(r)}}};function Zy(e,t,n){const r=$1({usage:"search",sensitivity:"base"}),o=J(()=>{const i=H(e.keyboardDelegate);return i||new Yy(e.collection,t,r)});return Gy({selectionManager:()=>H(e.selectionManager),keyboardDelegate:o,autoFocus:()=>H(e.autoFocus),deferAutoFocus:()=>H(e.deferAutoFocus),shouldFocusWrap:()=>H(e.shouldFocusWrap),disallowEmptySelection:()=>H(e.disallowEmptySelection),selectOnFocus:()=>H(e.selectOnFocus),disallowTypeAhead:()=>H(e.disallowTypeAhead),shouldUseVirtualFocus:()=>H(e.shouldUseVirtualFocus),allowsTabNavigation:()=>H(e.allowsTabNavigation),isVirtualized:()=>H(e.isVirtualized),scrollToKey:i=>H(e.scrollToKey)?.(i),orientation:()=>H(e.orientation)},t)}var Of=wt();function Nf(){return pt(Of)}function Xy(){const e=Nf();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function Rf(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Qy(e,t){const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const o=e[r]?.ref();if(o&&Rf(o,n))return r+1}return 0}function Jy(e){const t=e.map((r,o)=>[o,r]);let n=!1;return t.sort(([r,o],[i,s])=>{const a=o.ref(),u=s.ref();return a===u||!a||!u?0:Rf(a,u)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function If(e,t){const n=Jy(e);e!==n&&t(n)}function ex(e){const t=e[0],n=e[e.length-1]?.ref();let r=t?.ref()?.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return Sn(r).body}function tx(e,t){ae(()=>{const n=setTimeout(()=>{If(e(),t)});ge(()=>clearTimeout(n))})}function nx(e,t){if(typeof IntersectionObserver!="function"){tx(e,t);return}let n=[];ae(()=>{const r=()=>{const s=!!n.length;n=e(),s&&If(e(),t)},o=ex(e()),i=new IntersectionObserver(r,{root:o});for(const s of e()){const a=s.ref();a&&i.observe(a)}ge(()=>i.disconnect())})}function rx(e={}){const[t,n]=By({value:()=>H(e.items),onChange:i=>e.onItemsChange?.(i)});nx(t,n);const r=i=>(n(s=>{const a=Qy(s,i);return t1(s,i,a)}),()=>{n(s=>{const a=s.filter(u=>u.ref()!==i.ref());return s.length===a.length?s:a})});return{DomCollectionProvider:i=>x(Of.Provider,{value:{registerItem:r},get children(){return i.children}})}}function ox(e){const t=Xy(),n=Ge({shouldRegisterItem:!0},e);ae(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());ge(r)})}var yi="data-kb-top-layer",Mf,va=!1,En=[];function bo(e){return En.findIndex(t=>t.node===e)}function ix(e){return En[bo(e)]}function sx(e){return En.length>0&&En[En.length-1].node===e}function Lf(){return En.filter(e=>e.isPointerBlocking)}function ax(){return[...Lf()].slice(-1)[0]}function Za(){return Lf().length>0}function $f(e){const t=bo(ax()?.node);return bo(e)<t}function ux(e){En.push(e)}function cx(e){const t=bo(e);t<0||En.splice(t,1)}function lx(){for(const{node:e}of En)e.style.pointerEvents=$f(e)?"none":"auto"}function dx(e){if(Za()&&!va){const t=Sn(e);Mf=document.body.style.pointerEvents,t.body.style.pointerEvents="none",va=!0}}function fx(e){if(Za())return;const t=Sn(e);t.body.style.pointerEvents=Mf,t.body.style.length===0&&t.body.removeAttribute("style"),va=!1}var jt={layers:En,isTopMostLayer:sx,hasPointerBlockingLayer:Za,isBelowPointerBlockingLayer:$f,addLayer:ux,removeLayer:cx,indexOf:bo,find:ix,assignPointerEventToLayers:lx,disableBodyPointerEvents:dx,restoreBodyPointerEvents:fx},us="focusScope.autoFocusOnMount",cs="focusScope.autoFocusOnUnmount",Tc={bubbles:!1,cancelable:!0},Dc={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=ga(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=ga(this.stack,e),this.active()?.resume()}};function Ff(e,t){const[n,r]=I(!1),o={pause(){r(!0)},resume(){r(!1)}};let i=null;const s=g=>e.onMountAutoFocus?.(g),a=g=>e.onUnmountAutoFocus?.(g),u=()=>Sn(t()),c=()=>{const g=u().createElement("span");return g.setAttribute("data-focus-trap",""),g.tabIndex=0,Object.assign(g.style,cf),g},l=()=>{const g=t();return g?af(g,!0).filter(h=>!h.hasAttribute("data-focus-trap")):[]},d=()=>{const g=l();return g.length>0?g[0]:null},f=()=>{const g=l();return g.length>0?g[g.length-1]:null},p=()=>{const g=t();if(!g)return!1;const h=oo(g);return!h||Wt(g,h)?!1:uf(h)};ae(()=>{const g=t();if(!g)return;Dc.add(o);const h=oo(g);if(!Wt(g,h)){const b=new CustomEvent(us,Tc);g.addEventListener(us,s),g.dispatchEvent(b),b.defaultPrevented||setTimeout(()=>{kt(d()),oo(g)===h&&kt(g)},0)}ge(()=>{g.removeEventListener(us,s),setTimeout(()=>{const b=new CustomEvent(cs,Tc);p()&&b.preventDefault(),g.addEventListener(cs,a),g.dispatchEvent(b),b.defaultPrevented||kt(h??u().body),g.removeEventListener(cs,a),Dc.remove(o)},0)})}),ae(()=>{const g=t();if(!g||!H(e.trapFocus)||n())return;const h=b=>{const y=b.target;y?.closest(`[${yi}]`)||(Wt(g,y)?i=y:kt(i))},m=b=>{const v=b.relatedTarget??oo(g);v?.closest(`[${yi}]`)||Wt(g,v)||kt(i)};u().addEventListener("focusin",h),u().addEventListener("focusout",m),ge(()=>{u().removeEventListener("focusin",h),u().removeEventListener("focusout",m)})}),ae(()=>{const g=t();if(!g||!H(e.trapFocus)||n())return;const h=c();g.insertAdjacentElement("afterbegin",h);const m=c();g.insertAdjacentElement("beforeend",m);function b(v){const w=d(),_=f();v.relatedTarget===w?kt(_):kt(w)}h.addEventListener("focusin",b),m.addEventListener("focusin",b);const y=new MutationObserver(v=>{for(const w of v)w.previousSibling===m&&(m.remove(),g.insertAdjacentElement("beforeend",m)),w.nextSibling===h&&(h.remove(),g.insertAdjacentElement("afterbegin",h))});y.observe(g,{childList:!0,subtree:!1}),ge(()=>{h.removeEventListener("focusin",b),m.removeEventListener("focusin",b),h.remove(),m.remove(),y.disconnect()})})}var gx="data-live-announcer";function Pf(e){ae(()=>{H(e.isDisabled)||ge(px(H(e.targets),H(e.root)))})}var Jr=new WeakMap,tn=[];function px(e,t=document.body){const n=new Set(e),r=new Set,o=u=>{for(const f of u.querySelectorAll(`[${gx}], [${yi}]`))n.add(f);const c=f=>{if(n.has(f)||f.parentElement&&r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const p of n)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(u);if(d===NodeFilter.FILTER_ACCEPT&&i(u),d!==NodeFilter.FILTER_REJECT){let f=l.nextNode();for(;f!=null;)i(f),f=l.nextNode()}},i=u=>{const c=Jr.get(u)??0;u.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&u.setAttribute("aria-hidden","true"),r.add(u),Jr.set(u,c+1))};tn.length&&tn[tn.length-1].disconnect(),o(t);const s=new MutationObserver(u=>{for(const c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(l=>l.contains(c.target))){for(const l of c.removedNodes)l instanceof Element&&(n.delete(l),r.delete(l));for(const l of c.addedNodes)(l instanceof HTMLElement||l instanceof SVGElement)&&(l.dataset.liveAnnouncer==="true"||l.dataset.reactAriaTopLayer==="true")?n.add(l):l instanceof Element&&o(l)}});s.observe(t,{childList:!0,subtree:!0});const a={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return tn.push(a),()=>{s.disconnect();for(const u of r){const c=Jr.get(u);if(c==null)return;c===1?(u.removeAttribute("aria-hidden"),Jr.delete(u)):Jr.set(u,c-1)}a===tn[tn.length-1]?(tn.pop(),tn.length&&tn[tn.length-1].observe()):tn.splice(tn.indexOf(a),1)}}function hx(e){const t=n=>{n.key===Pa.Escape&&e.onEscapeKeyDown?.(n)};ae(()=>{if(H(e.isDisabled))return;const n=e.ownerDocument?.()??Sn();n.addEventListener("keydown",t),ge(()=>{n.removeEventListener("keydown",t)})})}var Oc="interactOutside.pointerDownOutside",Nc="interactOutside.focusOutside";function mx(e,t){let n,r=x1;const o=()=>Sn(t()),i=d=>e.onPointerDownOutside?.(d),s=d=>e.onFocusOutside?.(d),a=d=>e.onInteractOutside?.(d),u=d=>{const f=d.target;return!(f instanceof Element)||f.closest(`[${yi}]`)||!Wt(o(),f)||Wt(t(),f)?!1:!e.shouldExcludeElement?.(f)},c=d=>{function f(){const p=t(),g=d.target;if(!p||!g||!u(d))return;const h=St([i,a]);g.addEventListener(Oc,h,{once:!0});const m=new CustomEvent(Oc,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||u1(d)&&d.button===0}});g.dispatchEvent(m)}d.pointerType==="touch"?(o().removeEventListener("click",f),r=f,o().addEventListener("click",f,{once:!0})):f()},l=d=>{const f=t(),p=d.target;if(!f||!p||!u(d))return;const g=St([s,a]);p.addEventListener(Nc,g,{once:!0});const h=new CustomEvent(Nc,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});p.dispatchEvent(h)};ae(()=>{H(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",l,!0),ge(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",l,!0)}))})}var Bf=wt();function bx(){return pt(Bf)}function zf(e){let t;const n=bx(),[r,o]=ke(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),s=d=>{i.add(d);const f=n?.registerNestedLayer(d);return()=>{i.delete(d),f?.()}};mx({shouldExcludeElement:d=>t?r.excludedElements?.some(f=>Wt(f(),d))||[...i].some(f=>Wt(f,d)):!1,onPointerDownOutside:d=>{!t||jt.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!jt.isTopMostLayer(t)||(r.onPointerDownOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.())},onFocusOutside:d=>{r.onFocusOutside?.(d),r.onInteractOutside?.(d),d.defaultPrevented||r.onDismiss?.()}},()=>t),hx({ownerDocument:()=>Sn(t),onEscapeKeyDown:d=>{!t||!jt.isTopMostLayer(t)||(r.onEscapeKeyDown?.(d),!d.defaultPrevented&&r.onDismiss&&(d.preventDefault(),r.onDismiss()))}}),Kn(()=>{if(!t)return;jt.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});const d=n?.registerNestedLayer(t);jt.assignPointerEventToLayers(),jt.disableBodyPointerEvents(t),ge(()=>{t&&(jt.removeLayer(t),d?.(),jt.assignPointerEventToLayers(),jt.restoreBodyPointerEvents(t))})}),ae(Ut([()=>t,()=>r.disableOutsidePointerEvents],([d,f])=>{if(!d)return;const p=jt.find(d);p&&p.isPointerBlocking!==f&&(p.isPointerBlocking=f,jt.assignPointerEventToLayers()),f&&jt.disableBodyPointerEvents(d),ge(()=>{jt.restoreBodyPointerEvents(d)})},{defer:!0}));const l={registerNestedLayer:s};return x(Bf.Provider,{value:l,get children(){return x(ut,te({as:"div",ref(d){var f=At(p=>t=p,r.ref);typeof f=="function"&&f(d)}},o))}})}function Xa(e={}){const[t,n]=Cf({value:()=>H(e.open),defaultValue:()=>!!H(e.defaultOpen),onChange:s=>e.onOpenChange?.(s)}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}function Uf(e={}){const[t,n]=Cf({value:()=>H(e.isSelected),defaultValue:()=>!!H(e.defaultIsSelected),onChange:i=>e.onSelectedChange?.(i)});return{isSelected:t,setIsSelected:i=>{!H(e.isReadOnly)&&!H(e.isDisabled)&&n(i)},toggle:()=>{!H(e.isReadOnly)&&!H(e.isDisabled)&&n(!t())}}}function nn(e){return t=>(e(t),()=>e(void 0))}var Rt=e=>typeof e=="function"?e():e,wa=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},Vo=new Map,yx=e=>{ae(()=>{const t=Rt(e.style)??{},n=Rt(e.properties)??[],r={};for(const i in t)r[i]=e.element.style[i];const o=Vo.get(e.key);o?o.activeCount++:Vo.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(const i of n)e.element.style.setProperty(i.key,i.value);ge(()=>{const i=Vo.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Vo.delete(e.key);for(const[s,a]of Object.entries(i.originalStyles))e.element.style[s]=a;for(const s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),e.cleanup?.()}})})},Rc=yx,xx=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},vx=(e,t)=>{const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},wx=(e,t,n)=>{const r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1;let o=e,i=0,s=0,a=!1;do{const[u,c,l]=xx(o,t),d=l-u-r*c;(c!==0||d!==0)&&vx(o,t)&&(i+=d,s+=c),o===(n??document.documentElement)?a=!0:o=o._$host??o.parentElement}while(o&&!a);return[i,s]},[Ic,Mc]=I([]),_x=e=>Ic().indexOf(e)===Ic().length-1,Ex=e=>{const t=te({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=fn();let r=[0,0],o=null,i=null;ae(()=>{Rt(t.enabled)&&(Mc(c=>[...c,n]),ge(()=>{Mc(c=>c.filter(l=>l!==n))}))}),ae(()=>{if(!Rt(t.enabled)||!Rt(t.hideScrollbar))return;const{body:c}=document,l=window.innerWidth-c.offsetWidth;if(Rt(t.preventScrollbarShift)){const d={overflow:"hidden"},f=[];l>0&&(Rt(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${l}px)`:d.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${l}px)`,f.push({key:"--scrollbar-width",value:`${l}px`}));const p=window.scrollY,g=window.scrollX;Rc({key:"prevent-scroll",element:c,style:d,properties:f,cleanup:()=>{Rt(t.restoreScrollPosition)&&l>0&&window.scrollTo(g,p)}})}else Rc({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),ae(()=>{!_x(n)||!Rt(t.enabled)||(document.addEventListener("wheel",a,{passive:!1}),document.addEventListener("touchstart",s,{passive:!1}),document.addEventListener("touchmove",u,{passive:!1}),ge(()=>{document.removeEventListener("wheel",a),document.removeEventListener("touchstart",s),document.removeEventListener("touchmove",u)}))});const s=c=>{r=Lc(c),o=null,i=null},a=c=>{const l=c.target,d=Rt(t.element),f=kx(c),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",g=p==="x"?f[0]:f[1],h=$c(l,p,g,d);let m;d&&wa(d,l)?m=!h:m=!0,m&&c.cancelable&&c.preventDefault()},u=c=>{const l=Rt(t.element),d=c.target;let f;if(c.touches.length===2)f=!Rt(t.allowPinchZoom);else{if(o==null||i===null){const p=Lc(c).map((h,m)=>r[m]-h),g=Math.abs(p[0])>Math.abs(p[1])?"x":"y";o=g,i=g==="x"?p[0]:p[1]}if(d.type==="range")f=!1;else{const p=$c(d,o,i,l);l&&wa(l,d)?f=!p:f=!0}}f&&c.cancelable&&c.preventDefault()}},kx=e=>[e.deltaX,e.deltaY],Lc=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],$c=(e,t,n,r)=>{const o=r!==null&&wa(r,e),[i,s]=wx(e,t,o?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(s)<1)},Sx=Ex,Kf=Sx,Cx=e=>{const t=J(()=>{const s=Rt(e.element);if(s)return getComputedStyle(s)}),n=()=>t()?.animationName??"none",[r,o]=I(Rt(e.show)?"present":"hidden");let i="none";return ae(s=>{const a=Rt(e.show);return vt(()=>{if(s===a)return a;const u=i,c=n();a?o("present"):c==="none"||t()?.display==="none"?o("hidden"):o(s===!0&&u!==c?"hiding":"hidden")}),a}),ae(()=>{const s=Rt(e.element);if(!s)return;const a=c=>{c.target===s&&(i=n())},u=c=>{const d=n().includes(c.animationName);c.target===s&&d&&r()==="hiding"&&o("hidden")};s.addEventListener("animationstart",a),s.addEventListener("animationcancel",u),s.addEventListener("animationend",u),ge(()=>{s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",u),s.removeEventListener("animationend",u)})}),{present:()=>r()==="present"||r()==="hiding",state:r,setState:o}},Ax=Cx,xi=Ax,Tx=wt();function Pi(){return pt(Tx)}var Dx=wt();function qf(){return pt(Dx)}var Hf=wt();function jf(){return pt(Hf)}function jn(){const e=jf();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var Gf=wt();function Qa(){const e=pt(Gf);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var Vf=wt();function Tn(){const e=pt(Vf);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function Ja(e){let t;const n=Tn(),r=jn(),o=Ge({id:n.generateId(`item-${fn()}`)},e),[i,s]=ke(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[a,u]=I(),[c,l]=I(),[d,f]=I(),p=()=>r.listState().selectionManager(),g=()=>s.id,h=()=>p().focusedKey()===g(),m=()=>{i.onSelect?.(),i.closeOnSelect&&setTimeout(()=>{r.close(!0)},1)};ox({getItem:()=>({ref:()=>t,type:"item",key:g(),textValue:i.textValue??d()?.textContent??t?.textContent??"",disabled:i.disabled??!1})});const b=Df({key:g,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),y=D=>{nt(D,i.onPointerMove),D.pointerType==="mouse"&&(i.disabled?r.onItemLeave(D):(r.onItemEnter(D),D.defaultPrevented||(kt(D.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(g()))))},v=D=>{nt(D,i.onPointerLeave),D.pointerType==="mouse"&&r.onItemLeave(D)},w=D=>{nt(D,i.onPointerUp),!i.disabled&&D.button===0&&m()},_=D=>{if(nt(D,i.onKeyDown),!D.repeat&&!i.disabled)switch(D.key){case"Enter":case" ":m();break}},k=J(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),A=J(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":h()?"":void 0})),S={isChecked:()=>i.checked,dataset:A,setLabelRef:f,generateId:jr(()=>s.id),registerLabel:nn(u),registerDescription:nn(l)};return x(Gf.Provider,{value:S,get children(){return x(ut,te({as:"div",ref(D){var B=At(R=>t=R,i.ref);typeof B=="function"&&B(D)},get tabIndex(){return b.tabIndex()},get"aria-checked"(){return k()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return a()},get"aria-describedby"(){return c()},get"data-key"(){return b.dataKey()},get onPointerDown(){return St([i.onPointerDown,b.onPointerDown])},get onPointerUp(){return St([w,b.onPointerUp])},get onClick(){return St([i.onClick,b.onClick])},get onKeyDown(){return St([_,b.onKeyDown])},get onMouseDown(){return St([i.onMouseDown,b.onMouseDown])},get onFocus(){return St([i.onFocus,b.onFocus])},onPointerMove:y,onPointerLeave:v},A,s))}})}function Wf(e){const t=Ge({closeOnSelect:!1},e),[n,r]=ke(t,["checked","defaultChecked","onChange","onSelect"]),o=Uf({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:s=>n.onChange?.(s),isDisabled:()=>r.disabled});return x(Ja,te({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{n.onSelect?.(),o.toggle()}},r))}var yo={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>yo.next(e==="ltr"?"rtl":"ltr",t)},Fc={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function Yf(e){const t=Tn(),n=jn(),r=Pi(),{direction:o}=ur(),i=Ge({id:t.generateId("trigger")},e),[s,a]=ke(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let u=()=>t.value();r!==void 0&&(u=()=>t.value()??s.id,r.lastValue()===void 0&&r.setLastValue(u));const c=Ri(()=>n.triggerRef(),()=>"button"),l=J(()=>c()==="a"&&n.triggerRef()?.getAttribute("href")!=null);ae(Ut(()=>r?.value(),b=>{l()&&b===u()&&n.triggerRef()?.focus()}));const d=()=>{r!==void 0?n.isOpen()?r.value()===u()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},f=b=>{nt(b,s.onPointerDown),b.currentTarget.dataset.pointerType=b.pointerType,!s.disabled&&b.pointerType!=="touch"&&b.button===0&&d()},p=b=>{nt(b,s.onClick),s.disabled||b.currentTarget.dataset.pointerType==="touch"&&d()},g=b=>{if(nt(b,s.onKeyDown),!s.disabled){if(l())switch(b.key){case"Enter":case" ":return}switch(b.key){case"Enter":case" ":case Fc.first(t.orientation()):b.stopPropagation(),b.preventDefault(),w1(b.currentTarget),n.open("first"),r?.setAutoFocusMenu(!0),r?.setValue(u);break;case Fc.last(t.orientation()):b.stopPropagation(),b.preventDefault(),n.open("last");break;case yo.next(o(),t.orientation()):if(r===void 0)break;b.stopPropagation(),b.preventDefault(),r.nextMenu();break;case yo.previous(o(),t.orientation()):if(r===void 0)break;b.stopPropagation(),b.preventDefault(),r.previousMenu();break}}},h=b=>{nt(b,s.onMouseOver),n.triggerRef()?.dataset.pointerType!=="touch"&&!s.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(u)},m=b=>{nt(b,s.onFocus),r!==void 0&&b.currentTarget.dataset.pointerType!=="touch"&&r.setValue(u)};return ae(()=>ge(n.registerTriggerId(s.id))),x(Oo,te({ref(b){var y=At(n.setTriggerRef,s.ref);typeof y=="function"&&y(b)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return s.id},get disabled(){return s.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return ce(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return u()!==void 0&&r?.value()===u()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===u()||r.lastValue()===u()?0:-1:void 0},onPointerDown:f,onMouseOver:h,onClick:p,onKeyDown:g,onFocus:m,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),a))}function Zf(e){let t;const n=Tn(),r=jn(),o=Pi(),i=qf(),{direction:s}=ur(),a=Ge({id:n.generateId(`content-${fn()}`)},e),[u,c]=ke(a,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let l=0;const d=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),f=Zy({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);Ff({trapFocus:()=>d()&&r.isOpen(),onMountAutoFocus:v=>{o===void 0&&u.onOpenAutoFocus?.(v)},onUnmountAutoFocus:u.onCloseAutoFocus},()=>t);const p=v=>{if(Wt(v.currentTarget,v.target)&&(v.key==="Tab"&&r.isOpen()&&v.preventDefault(),o!==void 0&&v.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(v.key){case yo.next(s(),n.orientation()):v.stopPropagation(),v.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case yo.previous(s(),n.orientation()):if(v.currentTarget.hasAttribute("data-closed"))break;v.stopPropagation(),v.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},g=v=>{u.onEscapeKeyDown?.(v),o?.setAutoFocusMenu(!1),r.close(!0)},h=v=>{u.onFocusOutside?.(v),n.isModal()&&v.preventDefault()},m=v=>{nt(v,u.onPointerEnter),r.isOpen()&&(r.parentMenuContext()?.listState().selectionManager().setFocused(!1),r.parentMenuContext()?.listState().selectionManager().setFocusedKey(void 0))},b=v=>{if(nt(v,u.onPointerMove),v.pointerType!=="mouse")return;const w=v.target,_=l!==v.clientX;Wt(v.currentTarget,w)&&_&&(r.setPointerDir(v.clientX>l?"right":"left"),l=v.clientX)};ae(()=>ge(r.registerContentId(u.id))),ge(()=>r.setContentRef(void 0));const y={ref:At(v=>{r.setContentRef(v),t=v},u.ref),role:"menu",get id(){return u.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:St([u.onKeyDown,f.onKeyDown,p]),onMouseDown:St([u.onMouseDown,f.onMouseDown]),onFocusIn:St([u.onFocusIn,f.onFocusIn]),onFocusOut:St([u.onFocusOut,f.onFocusOut]),onPointerEnter:m,onPointerMove:b,get"data-orientation"(){return n.orientation()}};return x(X,{get when(){return r.contentPresent()},get children(){return x(X,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return x(ut,te({as:"div"},()=>r.dataset(),y,c))},get children(){return x(kf.Positioner,{get children(){return x(zf,te({get disableOutsidePointerEvents(){return ce(()=>!!d())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return To({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},u.style)},onEscapeKeyDown:g,onFocusOutside:h,get onDismiss(){return r.close}},()=>r.dataset(),y,c))}})}})}})}function Ox(e){let t;const n=Tn(),r=jn(),[o,i]=ke(e,["ref"]);return Kf({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),x(Zf,te({ref(s){var a=At(u=>{t=u},o.ref);typeof a=="function"&&a(s)}},i))}var Xf=wt();function Nx(){const e=pt(Xf);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function eu(e){const t=Tn(),n=Ge({id:t.generateId(`group-${fn()}`)},e),[r,o]=I(),i={generateId:jr(()=>n.id),registerLabelId:nn(o)};return x(Xf.Provider,{value:i,get children(){return x(ut,te({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function Qf(e){const t=Nx(),n=Ge({id:t.generateId("label")},e),[r,o]=ke(n,["id"]);return ae(()=>ge(t.registerLabelId(r.id))),x(ut,te({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Jf(e){const t=jn(),n=Ge({children:"▼"},e);return x(ut,te({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function e0(e){return x(Ja,te({role:"menuitem",closeOnSelect:!0},e))}function t0(e){const t=Qa(),n=Ge({id:t.generateId("description")},e),[r,o]=ke(n,["id"]);return ae(()=>ge(t.registerDescription(r.id))),x(ut,te({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function n0(e){const t=Qa(),n=Ge({id:t.generateId("indicator")},e),[r,o]=ke(n,["forceMount"]);return x(X,{get when(){return r.forceMount||t.isChecked()},get children(){return x(ut,te({as:"div"},()=>t.dataset(),o))}})}function r0(e){const t=Qa(),n=Ge({id:t.generateId("label")},e),[r,o]=ke(n,["ref","id"]);return ae(()=>ge(t.registerLabel(r.id))),x(ut,te({as:"div",ref(i){var s=At(t.setLabelRef,r.ref);typeof s=="function"&&s(i)},get id(){return r.id}},()=>t.dataset(),o))}function o0(e){const t=jn();return x(X,{get when(){return t.contentPresent()},get children(){return x(pd,e)}})}var i0=wt();function Rx(){const e=pt(i0);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function s0(e){const n=Tn().generateId(`radiogroup-${fn()}`),r=Ge({id:n},e),[o,i]=ke(r,["value","defaultValue","onChange","disabled"]),[s,a]=Fi({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>o.onChange?.(c)}),u={isDisabled:()=>o.disabled,isSelectedValue:c=>c===s(),setSelectedValue:c=>a(c)};return x(i0.Provider,{value:u,get children(){return x(eu,i)}})}function a0(e){const t=Rx(),n=Ge({closeOnSelect:!1},e),[r,o]=ke(n,["value","onSelect"]);return x(Ja,te({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{r.onSelect?.(),t.setSelectedValue(r.value)}},o))}function Ix(e,t,n){const r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],s=t.clientX,a=t.clientY;switch(r){case"top":i.push([s,a+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([s-5,a]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([s,a-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([s+5,a]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function Mx(e,t){return t?v1([e.clientX,e.clientY],t):!1}function u0(e){const t=Tn(),n=Nf(),r=jf(),o=Pi(),i=qf(),s=Ge({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[a,u]=ke(s,["open","defaultOpen","onOpenChange"]);let c=0,l=null,d="right";const[f,p]=I(),[g,h]=I(),[m,b]=I(),[y,v]=I(),[w,_]=I(!0),[k,A]=I(u.placement),[S,D]=I([]),[B,R]=I([]),{DomCollectionProvider:M}=rx({items:B,onItemsChange:R}),F=Xa({open:()=>a.open,defaultOpen:()=>a.defaultOpen,onOpenChange:K=>a.onOpenChange?.(K)}),{present:O}=xi({show:()=>t.forceMount()||F.isOpen(),element:()=>y()??null}),P=Wy({selectionMode:"none",dataSource:B}),G=K=>{_(K),F.open()},L=(K=!1)=>{F.close(),K&&r&&r.close(!0)},q=K=>{_(K),F.toggle()},j=()=>{const K=y();K&&(kt(K),P.selectionManager().setFocused(!0),P.selectionManager().setFocusedKey(void 0))},N=()=>{i!=null?setTimeout(()=>j()):j()},Y=K=>{D(Ce=>[...Ce,K]);const Z=r?.registerNestedMenu(K);return()=>{D(Ce=>ga(Ce,K)),Z?.()}},ee=K=>d===l?.side&&Mx(K,l?.area),Te=K=>{ee(K)&&K.preventDefault()},Me=K=>{ee(K)||N()},Ne=K=>{ee(K)&&K.preventDefault()};Pf({isDisabled:()=>!(r==null&&F.isOpen()&&t.isModal()),targets:()=>[y(),...S()].filter(Boolean)}),ae(()=>{const K=y();if(!K||!r)return;const Z=r.registerNestedMenu(K);ge(()=>{Z()})}),ae(()=>{r===void 0&&o?.registerMenu(t.value(),[y(),...S()])}),ae(()=>{r!==void 0||o===void 0||(o.value()===t.value()?(m()?.focus(),o.autoFocusMenu()&&G(!0)):L())}),ae(()=>{r!==void 0||o===void 0||F.isOpen()&&o.setValue(t.value())}),ge(()=>{r===void 0&&o?.unregisterMenu(t.value())});const V={dataset:J(()=>({"data-expanded":F.isOpen()?"":void 0,"data-closed":F.isOpen()?void 0:""})),isOpen:F.isOpen,contentPresent:O,nestedMenus:S,currentPlacement:k,pointerGraceTimeoutId:()=>c,autoFocus:w,listState:()=>P,parentMenuContext:()=>r,triggerRef:m,contentRef:y,triggerId:f,contentId:g,setTriggerRef:b,setContentRef:v,open:G,close:L,toggle:q,focusContent:N,onItemEnter:Te,onItemLeave:Me,onTriggerLeave:Ne,setPointerDir:K=>d=K,setPointerGraceTimeoutId:K=>c=K,setPointerGraceIntent:K=>l=K,registerNestedMenu:Y,registerItemToParentDomCollection:n?.registerItem,registerTriggerId:nn(p),registerContentId:nn(h)};return x(M,{get children(){return x(Hf.Provider,{value:V,get children(){return x(X,{when:i===void 0,get fallback(){return u.children},get children(){return x(kf,te({anchorRef:m,contentRef:y,onCurrentPlacementChange:A},u))}})}})}})}function c0(e){const{direction:t}=ur();return x(u0,te({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var Lx={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function l0(e){const t=jn(),n=Tn(),[r,o]=ke(e,["onFocusOutside","onKeyDown"]),{direction:i}=ur();return x(Zf,te({onOpenAutoFocus:l=>{l.preventDefault()},onCloseAutoFocus:l=>{l.preventDefault()},onFocusOutside:l=>{r.onFocusOutside?.(l);const d=l.target;Wt(t.triggerRef(),d)||t.close()},onKeyDown:l=>{nt(l,r.onKeyDown);const d=Wt(l.currentTarget,l.target),f=Lx.close(i(),n.orientation()).includes(l.key),p=t.parentMenuContext()!=null;d&&f&&p&&(t.close(),kt(t.triggerRef()))}},o))}var Pc=["Enter"," "],$x={open:(e,t)=>e==="ltr"?[...Pc,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Pc,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function d0(e){let t;const n=Tn(),r=jn(),o=Ge({id:n.generateId(`sub-trigger-${fn()}`)},e),[i,s]=ke(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let a=null;const u=()=>{a&&window.clearTimeout(a),a=null},{direction:c}=ur(),l=()=>i.id,d=()=>{const v=r.parentMenuContext();if(v==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return v.listState().selectionManager()},f=()=>r.listState().collection(),p=()=>d().focusedKey()===l(),g=Df({key:l,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),h=v=>{nt(v,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},m=v=>{if(nt(v,i.onPointerMove),v.pointerType!=="mouse")return;const w=r.parentMenuContext();if(w?.onItemEnter(v),!v.defaultPrevented){if(i.disabled){w?.onItemLeave(v);return}!r.isOpen()&&!a&&(r.parentMenuContext()?.setPointerGraceIntent(null),a=window.setTimeout(()=>{r.open(!1),u()},100)),w?.onItemEnter(v),v.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),kt(v.currentTarget),w?.listState().selectionManager().setFocused(!0),w?.listState().selectionManager().setFocusedKey(l()))}},b=v=>{if(nt(v,i.onPointerLeave),v.pointerType!=="mouse")return;u();const w=r.parentMenuContext(),_=r.contentRef();if(_){w?.setPointerGraceIntent({area:Ix(r.currentPlacement(),v,_),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(w?.pointerGraceTimeoutId());const k=window.setTimeout(()=>{w?.setPointerGraceIntent(null)},300);w?.setPointerGraceTimeoutId(k)}else{if(w?.onTriggerLeave(v),v.defaultPrevented)return;w?.setPointerGraceIntent(null)}w?.onItemLeave(v)},y=v=>{nt(v,i.onKeyDown),!v.repeat&&(i.disabled||$x.open(c(),n.orientation()).includes(v.key)&&(v.stopPropagation(),v.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return ae(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const v=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:l(),textValue:i.textValue??t?.textContent??"",disabled:i.disabled??!1});ge(v)}),ae(Ut(()=>r.parentMenuContext()?.pointerGraceTimeoutId(),v=>{ge(()=>{window.clearTimeout(v),r.parentMenuContext()?.setPointerGraceIntent(null)})})),ae(()=>ge(r.registerTriggerId(i.id))),ge(()=>{u()}),x(ut,te({as:"div",ref(v){var w=At(_=>{r.setTriggerRef(_),t=_},i.ref);typeof w=="function"&&w(v)},get id(){return i.id},role:"menuitem",get tabIndex(){return g.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return ce(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return g.dataKey()},get"data-highlighted"(){return p()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return St([i.onPointerDown,g.onPointerDown])},get onPointerUp(){return St([i.onPointerUp,g.onPointerUp])},get onClick(){return St([h,g.onClick])},get onKeyDown(){return St([y,g.onKeyDown])},get onMouseDown(){return St([i.onMouseDown,g.onMouseDown])},get onFocus(){return St([i.onFocus,g.onFocus])},onPointerMove:m,onPointerLeave:b},()=>r.dataset(),s))}function Fx(e){const t=Pi(),n=`menu-${fn()}`,r=Ge({id:n,modal:!0},e),[o,i]=ke(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),s=Xa({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:u=>o.onOpenChange?.(u)}),a={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??a.isModal(),forceMount:()=>o.forceMount??!1,generateId:jr(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??t?.orientation()??"horizontal"};return x(Vf.Provider,{value:a,get children(){return x(u0,te({get open(){return s.isOpen()},get onOpenChange(){return s.setIsOpen}},i))}})}var Px={};Do(Px,{Root:()=>Bi,Separator:()=>f0});function Bi(e){let t;const n=Ge({orientation:"horizontal"},e),[r,o]=ke(n,["ref","orientation"]),i=Ri(()=>t,()=>"hr");return x(ut,te({as:"hr",ref(s){var a=At(u=>t=u,r.ref);typeof a=="function"&&a(s)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}var f0=Bi,Bx={};Do(Bx,{Arrow:()=>Ya,CheckboxItem:()=>Wf,Content:()=>g0,DropdownMenu:()=>qn,Group:()=>eu,GroupLabel:()=>Qf,Icon:()=>Jf,Item:()=>e0,ItemDescription:()=>t0,ItemIndicator:()=>n0,ItemLabel:()=>r0,Portal:()=>o0,RadioGroup:()=>s0,RadioItem:()=>a0,Root:()=>p0,Separator:()=>Bi,Sub:()=>c0,SubContent:()=>l0,SubTrigger:()=>d0,Trigger:()=>Yf});function g0(e){const t=Tn(),n=jn(),[r,o]=ke(e,["onCloseAutoFocus","onInteractOutside"]);let i=!1;return x(Ox,te({onCloseAutoFocus:u=>{r.onCloseAutoFocus?.(u),i||kt(n.triggerRef()),i=!1,u.preventDefault()},onInteractOutside:u=>{r.onInteractOutside?.(u),(!t.isModal()||u.detail.isContextMenu)&&(i=!0)}},o))}function p0(e){const t=`dropdownmenu-${fn()}`,n=Ge({id:t},e);return x(Fx,n)}var qn=Object.assign(p0,{Arrow:Ya,CheckboxItem:Wf,Content:g0,Group:eu,GroupLabel:Qf,Icon:Jf,Item:e0,ItemDescription:t0,ItemIndicator:n0,ItemLabel:r0,Portal:o0,RadioGroup:s0,RadioItem:a0,Separator:Bi,Sub:c0,SubContent:l0,SubTrigger:d0,Trigger:Yf});const h0=qn.Trigger;qn.Group;qn.Sub;qn.RadioGroup;const m0=e=>{const t=te({gutter:4,flip:!1},e);return x(qn,t)},b0=e=>{const[t,n]=ke(e,["class"]);return x(qn.Portal,{get children(){return x(qn.Content,te({get class(){return Jt("min-w-8rem z-50 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md transition-shadow focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring data-[expanded]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[expanded]:fade-in-0 data-[closed]:zoom-out-95 data-[expanded]:zoom-in-95",t.class)}},n))}})},_a=e=>{const[t,n]=ke(e,["class","inset"]);return x(qn.Item,te({get class(){return Jt("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t.inset&&"pl-8",t.class)}},n))};var zx={};Do(zx,{CloseButton:()=>x0,Content:()=>v0,Description:()=>w0,Dialog:()=>Bn,Overlay:()=>_0,Portal:()=>E0,Root:()=>k0,Title:()=>S0,Trigger:()=>C0,useDialogContext:()=>cr});var y0=wt();function cr(){const e=pt(y0);if(e===void 0)throw new Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}function x0(e){const t=cr(),[n,r]=ke(e,["aria-label","onClick"]);return x(Oo,te({get"aria-label"(){return n["aria-label"]||t.translations().dismiss},onClick:i=>{nt(i,n.onClick),t.close()}},r))}function v0(e){let t;const n=cr(),r=Ge({id:n.generateId("content")},e),[o,i]=ke(r,["ref","onOpenAutoFocus","onCloseAutoFocus","onPointerDownOutside","onFocusOutside","onInteractOutside"]);let s=!1,a=!1;const u=f=>{o.onPointerDownOutside?.(f),n.modal()&&f.detail.isContextMenu&&f.preventDefault()},c=f=>{o.onFocusOutside?.(f),n.modal()&&f.preventDefault()},l=f=>{o.onInteractOutside?.(f),!n.modal()&&(f.defaultPrevented||(s=!0,f.detail.originalEvent.type==="pointerdown"&&(a=!0)),Wt(n.triggerRef(),f.target)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&a&&f.preventDefault())},d=f=>{o.onCloseAutoFocus?.(f),n.modal()?(f.preventDefault(),kt(n.triggerRef())):(f.defaultPrevented||(s||kt(n.triggerRef()),f.preventDefault()),s=!1,a=!1)};return Pf({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),Kf({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),Ff({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:o.onOpenAutoFocus,onUnmountAutoFocus:d},()=>t),ae(()=>ge(n.registerContentId(i.id))),x(X,{get when(){return n.contentPresent()},get children(){return x(zf,te({ref(f){var p=At(g=>{n.setContentRef(g),t=g},o.ref);typeof p=="function"&&p(f)},role:"dialog",tabIndex:-1,get disableOutsidePointerEvents(){return ce(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?"":void 0},get"data-closed"(){return n.isOpen()?void 0:""},onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:l,get onDismiss(){return n.close}},i))}})}function w0(e){const t=cr(),n=Ge({id:t.generateId("description")},e),[r,o]=ke(n,["id"]);return ae(()=>ge(t.registerDescriptionId(r.id))),x(ut,te({as:"p",get id(){return r.id}},o))}function _0(e){const t=cr(),[n,r]=ke(e,["ref","style","onPointerDown"]),o=i=>{nt(i,n.onPointerDown),i.target===i.currentTarget&&i.preventDefault()};return x(X,{get when(){return t.overlayPresent()},get children(){return x(ut,te({as:"div",ref(i){var s=At(t.setOverlayRef,n.ref);typeof s=="function"&&s(i)},get style(){return To({"pointer-events":"auto"},n.style)},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onPointerDown:o},r))}})}function E0(e){const t=cr();return x(X,{get when(){return t.contentPresent()||t.overlayPresent()},get children(){return x(pd,e)}})}var Bc={dismiss:"Dismiss"};function k0(e){const t=`dialog-${fn()}`,n=Ge({id:t,modal:!0,translations:Bc},e),[r,o]=I(),[i,s]=I(),[a,u]=I(),[c,l]=I(),[d,f]=I(),[p,g]=I(),h=Xa({open:()=>n.open,defaultOpen:()=>n.defaultOpen,onOpenChange:w=>n.onOpenChange?.(w)}),m=()=>n.forceMount||h.isOpen(),{present:b}=xi({show:m,element:()=>c()??null}),{present:y}=xi({show:m,element:()=>d()??null}),v={translations:()=>n.translations??Bc,isOpen:h.isOpen,modal:()=>n.modal??!0,preventScroll:()=>n.preventScroll??v.modal(),contentId:r,titleId:i,descriptionId:a,triggerRef:p,overlayRef:c,setOverlayRef:l,contentRef:d,setContentRef:f,overlayPresent:b,contentPresent:y,close:h.close,toggle:h.toggle,setTriggerRef:g,generateId:jr(()=>n.id),registerContentId:nn(o),registerTitleId:nn(s),registerDescriptionId:nn(u)};return x(y0.Provider,{value:v,get children(){return n.children}})}function S0(e){const t=cr(),n=Ge({id:t.generateId("title")},e),[r,o]=ke(n,["id"]);return ae(()=>ge(t.registerTitleId(r.id))),x(ut,te({as:"h2",get id(){return r.id}},o))}function C0(e){const t=cr(),[n,r]=ke(e,["ref","onClick"]);return x(Oo,te({ref(i){var s=At(t.setTriggerRef,n.ref);typeof s=="function"&&s(i)},"aria-haspopup":"dialog",get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return ce(()=>!!t.isOpen())()?t.contentId():void 0},get"data-expanded"(){return t.isOpen()?"":void 0},get"data-closed"(){return t.isOpen()?void 0:""},onClick:i=>{nt(i,n.onClick),t.toggle()}},r))}var Bn=Object.assign(k0,{CloseButton:x0,Content:v0,Description:w0,Overlay:_0,Portal:E0,Title:S0,Trigger:C0}),Ux=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"class="h-4 w-4"><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d="M18 6L6 18M6 6l12 12"></path><title>Close'),A0=$("<div>");const tu=Bn;Bn.Trigger;const nu=e=>{const[t,n]=ke(e,["class","children"]);return x(Bn.Portal,{get children(){return[x(Bn.Overlay,{class:"fixed inset-0 z-50 bg-background/80 data-[expanded]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[expanded]:fade-in-0"}),x(Bn.Content,{get class(){return Jt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg data-[closed]:duration-200 data-[expanded]:duration-200 data-[expanded]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[expanded]:fade-in-0 data-[closed]:zoom-out-95 data-[expanded]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-[48%] data-[expanded]:slide-in-from-left-1/2 data-[expanded]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",t.class)},get children(){return[ce(()=>t.children),x(Bn.CloseButton,{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-[opacity,box-shadow] hover:opacity-100 focus:outline-none focus:ring-[1.5px] focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",get children(){return Ux()}})]}})]}})},ru=e=>{const[t,n]=ke(e,["class"]);return x(Bn.Title,te({get class(){return Jt("text-lg font-semibold text-foreground",t.class)}},n))},Kx=e=>{const[t,n]=ke(e,["class"]);return x(Bn.Description,te({get class(){return Jt(" text-muted-foreground",t.class)}},n))},ou=e=>{const[t,n]=ke(e,["class"]);return(()=>{var r=A0();return sr(r,te({get class(){return Jt("flex flex-col space-y-2 text-center sm:text-left",t.class)}},n),!1,!1),r})()},iu=e=>{const[t,n]=ke(e,["class"]);return(()=>{var r=A0();return sr(r,te({get class(){return Jt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t.class)}},n),!1,!1),r})()};var qx=$("<div><div class=sonner-spinner>"),Hx=$("<div class=sonner-loading-bar>"),jx=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"clip-rule=evenodd>'),Gx=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z"clip-rule=evenodd>'),Vx=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"clip-rule=evenodd>'),Wx=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z"clip-rule=evenodd>'),Yx=$('<svg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round><line x1=18 y1=6 x2=6 y2=18></line><line x1=6 y1=6 x2=18 y2=18>'),Zx=$("<div>"),Xx=$("<button data-close-button>"),Qx=$("<div data-icon>"),Jx=$("<div data-description>"),ev=$("<li tabindex=0 data-sonner-toast><div data-content><div data-title>"),tv=$("<button data-button data-cancel>"),nv=$("<button data-button data-action>"),rv=$('<section tabindex=-1 aria-live=polite aria-relevant="additions text"aria-atomic=false data-react-aria-top-layer>'),ov=$("<ol tabindex=-1 data-sonner-toaster style=--width:356px>");function iv(e,{insertAt:t}={}){if(typeof document>"u")return;const n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}iv(`html[dir=ltr],
|
|
7
|
-
[data-sonner-toaster][dir=ltr] {
|
|
8
|
-
--toast-icon-margin-start: -3px;
|
|
9
|
-
--toast-icon-margin-end: 4px;
|
|
10
|
-
--toast-svg-margin-start: -1px;
|
|
11
|
-
--toast-svg-margin-end: 0px;
|
|
12
|
-
--toast-button-margin-start: auto;
|
|
13
|
-
--toast-button-margin-end: 0;
|
|
14
|
-
--toast-close-button-start: 0;
|
|
15
|
-
--toast-close-button-end: unset;
|
|
16
|
-
--toast-close-button-transform: translate(-35%, -35%);
|
|
17
|
-
}
|
|
18
|
-
html[dir=rtl],
|
|
19
|
-
[data-sonner-toaster][dir=rtl] {
|
|
20
|
-
--toast-icon-margin-start: 4px;
|
|
21
|
-
--toast-icon-margin-end: -3px;
|
|
22
|
-
--toast-svg-margin-start: 0px;
|
|
23
|
-
--toast-svg-margin-end: -1px;
|
|
24
|
-
--toast-button-margin-start: 0;
|
|
25
|
-
--toast-button-margin-end: auto;
|
|
26
|
-
--toast-close-button-start: unset;
|
|
27
|
-
--toast-close-button-end: 0;
|
|
28
|
-
--toast-close-button-transform: translate(35%, -35%);
|
|
29
|
-
}
|
|
30
|
-
[data-sonner-toaster] {
|
|
31
|
-
position: fixed;
|
|
32
|
-
width: var(--width);
|
|
33
|
-
font-family:
|
|
34
|
-
ui-sans-serif,
|
|
35
|
-
system-ui,
|
|
36
|
-
-apple-system,
|
|
37
|
-
BlinkMacSystemFont,
|
|
38
|
-
Segoe UI,
|
|
39
|
-
Roboto,
|
|
40
|
-
Helvetica Neue,
|
|
41
|
-
Arial,
|
|
42
|
-
Noto Sans,
|
|
43
|
-
sans-serif,
|
|
44
|
-
Apple Color Emoji,
|
|
45
|
-
Segoe UI Emoji,
|
|
46
|
-
Segoe UI Symbol,
|
|
47
|
-
Noto Color Emoji;
|
|
48
|
-
--gray1: hsl(0, 0%, 99%);
|
|
49
|
-
--gray2: hsl(0, 0%, 97.3%);
|
|
50
|
-
--gray3: hsl(0, 0%, 95.1%);
|
|
51
|
-
--gray4: hsl(0, 0%, 93%);
|
|
52
|
-
--gray5: hsl(0, 0%, 90.9%);
|
|
53
|
-
--gray6: hsl(0, 0%, 88.7%);
|
|
54
|
-
--gray7: hsl(0, 0%, 85.8%);
|
|
55
|
-
--gray8: hsl(0, 0%, 78%);
|
|
56
|
-
--gray9: hsl(0, 0%, 56.1%);
|
|
57
|
-
--gray10: hsl(0, 0%, 52.3%);
|
|
58
|
-
--gray11: hsl(0, 0%, 43.5%);
|
|
59
|
-
--gray12: hsl(0, 0%, 9%);
|
|
60
|
-
--border-radius: 8px;
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
padding: 0;
|
|
63
|
-
margin: 0;
|
|
64
|
-
list-style: none;
|
|
65
|
-
outline: none;
|
|
66
|
-
z-index: 999999999;
|
|
67
|
-
transition: transform 400ms ease;
|
|
68
|
-
}
|
|
69
|
-
@media (hover: none) and (pointer: coarse) {
|
|
70
|
-
[data-sonner-toaster][data-lifted=true] {
|
|
71
|
-
transform: none;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
[data-sonner-toaster][data-x-position=right] {
|
|
75
|
-
right: var(--offset-right);
|
|
76
|
-
}
|
|
77
|
-
[data-sonner-toaster][data-x-position=left] {
|
|
78
|
-
left: var(--offset-left);
|
|
79
|
-
}
|
|
80
|
-
[data-sonner-toaster][data-x-position=center] {
|
|
81
|
-
left: 50%;
|
|
82
|
-
transform: translateX(-50%);
|
|
83
|
-
}
|
|
84
|
-
[data-sonner-toaster][data-y-position=top] {
|
|
85
|
-
top: var(--offset-top);
|
|
86
|
-
}
|
|
87
|
-
[data-sonner-toaster][data-y-position=bottom] {
|
|
88
|
-
bottom: var(--offset-bottom);
|
|
89
|
-
}
|
|
90
|
-
[data-sonner-toast] {
|
|
91
|
-
--y: translateY(100%);
|
|
92
|
-
--lift-amount: calc(var(--lift) * var(--gap));
|
|
93
|
-
z-index: var(--z-index);
|
|
94
|
-
position: absolute;
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transform: var(--y);
|
|
97
|
-
touch-action: none;
|
|
98
|
-
transition:
|
|
99
|
-
transform 400ms,
|
|
100
|
-
opacity 400ms,
|
|
101
|
-
height 400ms,
|
|
102
|
-
box-shadow 200ms;
|
|
103
|
-
box-sizing: border-box;
|
|
104
|
-
outline: none;
|
|
105
|
-
overflow-wrap: anywhere;
|
|
106
|
-
}
|
|
107
|
-
[data-sonner-toast][data-styled=true] {
|
|
108
|
-
padding: 16px;
|
|
109
|
-
background: var(--normal-bg);
|
|
110
|
-
border: 1px solid var(--normal-border);
|
|
111
|
-
color: var(--normal-text);
|
|
112
|
-
border-radius: var(--border-radius);
|
|
113
|
-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
|
|
114
|
-
width: var(--width);
|
|
115
|
-
font-size: 13px;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
gap: 6px;
|
|
119
|
-
}
|
|
120
|
-
[data-sonner-toast]:focus-visible {
|
|
121
|
-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
|
|
122
|
-
}
|
|
123
|
-
[data-sonner-toast][data-y-position=top] {
|
|
124
|
-
top: 0;
|
|
125
|
-
--y: translateY(-100%);
|
|
126
|
-
--lift: 1;
|
|
127
|
-
--lift-amount: calc(1 * var(--gap));
|
|
128
|
-
}
|
|
129
|
-
[data-sonner-toast][data-y-position=bottom] {
|
|
130
|
-
bottom: 0;
|
|
131
|
-
--y: translateY(100%);
|
|
132
|
-
--lift: -1;
|
|
133
|
-
--lift-amount: calc(var(--lift) * var(--gap));
|
|
134
|
-
}
|
|
135
|
-
[data-sonner-toast][data-styled=true] [data-description] {
|
|
136
|
-
font-weight: 400;
|
|
137
|
-
line-height: 1.4;
|
|
138
|
-
color: #3f3f3f;
|
|
139
|
-
}
|
|
140
|
-
[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description] {
|
|
141
|
-
color: inherit;
|
|
142
|
-
}
|
|
143
|
-
[data-sonner-toaster][data-sonner-theme=dark] [data-description] {
|
|
144
|
-
color: hsl(0, 0%, 91%);
|
|
145
|
-
}
|
|
146
|
-
[data-sonner-toast][data-styled=true] [data-title] {
|
|
147
|
-
font-weight: 500;
|
|
148
|
-
line-height: 1.5;
|
|
149
|
-
color: inherit;
|
|
150
|
-
}
|
|
151
|
-
[data-sonner-toast][data-styled=true] [data-icon] {
|
|
152
|
-
display: flex;
|
|
153
|
-
height: 16px;
|
|
154
|
-
width: 16px;
|
|
155
|
-
position: relative;
|
|
156
|
-
justify-content: flex-start;
|
|
157
|
-
align-items: center;
|
|
158
|
-
flex-shrink: 0;
|
|
159
|
-
margin-left: var(--toast-icon-margin-start);
|
|
160
|
-
margin-right: var(--toast-icon-margin-end);
|
|
161
|
-
}
|
|
162
|
-
[data-sonner-toast][data-promise=true] [data-icon] > svg {
|
|
163
|
-
opacity: 0;
|
|
164
|
-
transform: scale(0.8);
|
|
165
|
-
transform-origin: center;
|
|
166
|
-
animation: sonner-fade-in 300ms ease forwards;
|
|
167
|
-
}
|
|
168
|
-
[data-sonner-toast][data-styled=true] [data-icon] > * {
|
|
169
|
-
flex-shrink: 0;
|
|
170
|
-
}
|
|
171
|
-
[data-sonner-toast][data-styled=true] [data-icon] svg {
|
|
172
|
-
margin-left: var(--toast-svg-margin-start);
|
|
173
|
-
margin-right: var(--toast-svg-margin-end);
|
|
174
|
-
}
|
|
175
|
-
[data-sonner-toast][data-styled=true] [data-content] {
|
|
176
|
-
display: flex;
|
|
177
|
-
flex-direction: column;
|
|
178
|
-
gap: 2px;
|
|
179
|
-
}
|
|
180
|
-
[data-sonner-toast][data-styled=true] [data-button] {
|
|
181
|
-
border-radius: 4px;
|
|
182
|
-
padding-left: 8px;
|
|
183
|
-
padding-right: 8px;
|
|
184
|
-
height: 24px;
|
|
185
|
-
font-size: 12px;
|
|
186
|
-
color: var(--normal-bg);
|
|
187
|
-
background: var(--normal-text);
|
|
188
|
-
margin-left: var(--toast-button-margin-start);
|
|
189
|
-
margin-right: var(--toast-button-margin-end);
|
|
190
|
-
border: none;
|
|
191
|
-
font-weight: 500;
|
|
192
|
-
cursor: pointer;
|
|
193
|
-
outline: none;
|
|
194
|
-
display: flex;
|
|
195
|
-
align-items: center;
|
|
196
|
-
flex-shrink: 0;
|
|
197
|
-
transition: opacity 400ms, box-shadow 200ms;
|
|
198
|
-
}
|
|
199
|
-
[data-sonner-toast][data-styled=true] [data-button]:focus-visible {
|
|
200
|
-
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
|
|
201
|
-
}
|
|
202
|
-
[data-sonner-toast][data-styled=true] [data-button]:first-of-type {
|
|
203
|
-
margin-left: var(--toast-button-margin-start);
|
|
204
|
-
margin-right: var(--toast-button-margin-end);
|
|
205
|
-
}
|
|
206
|
-
[data-sonner-toast][data-styled=true] [data-cancel] {
|
|
207
|
-
color: var(--normal-text);
|
|
208
|
-
background: rgba(0, 0, 0, 0.08);
|
|
209
|
-
}
|
|
210
|
-
[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel] {
|
|
211
|
-
background: rgba(255, 255, 255, 0.3);
|
|
212
|
-
}
|
|
213
|
-
[data-sonner-toast][data-styled=true] [data-close-button] {
|
|
214
|
-
position: absolute;
|
|
215
|
-
left: var(--toast-close-button-start);
|
|
216
|
-
right: var(--toast-close-button-end);
|
|
217
|
-
top: 0;
|
|
218
|
-
height: 20px;
|
|
219
|
-
width: 20px;
|
|
220
|
-
display: flex;
|
|
221
|
-
justify-content: center;
|
|
222
|
-
align-items: center;
|
|
223
|
-
padding: 0;
|
|
224
|
-
color: var(--normal-text);
|
|
225
|
-
background: var(--normal-bg);
|
|
226
|
-
border: 1px solid var(--normal-border);
|
|
227
|
-
transform: var(--toast-close-button-transform);
|
|
228
|
-
border-radius: 50%;
|
|
229
|
-
cursor: pointer;
|
|
230
|
-
z-index: 1;
|
|
231
|
-
transition:
|
|
232
|
-
opacity 100ms,
|
|
233
|
-
background 200ms,
|
|
234
|
-
border-color 200ms;
|
|
235
|
-
}
|
|
236
|
-
[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible {
|
|
237
|
-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
|
|
238
|
-
}
|
|
239
|
-
[data-sonner-toast][data-styled=true] [data-disabled=true] {
|
|
240
|
-
cursor: not-allowed;
|
|
241
|
-
}
|
|
242
|
-
[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover {
|
|
243
|
-
background: var(--gray2);
|
|
244
|
-
border-color: var(--gray5);
|
|
245
|
-
}
|
|
246
|
-
[data-sonner-toast][data-swiping=true]::before {
|
|
247
|
-
content: "";
|
|
248
|
-
position: absolute;
|
|
249
|
-
left: -100%;
|
|
250
|
-
right: -100%;
|
|
251
|
-
height: 100%;
|
|
252
|
-
z-index: -1;
|
|
253
|
-
}
|
|
254
|
-
[data-sonner-toast][data-y-position=top][data-swiping=true]::before {
|
|
255
|
-
bottom: 50%;
|
|
256
|
-
transform: scaleY(3) translateY(50%);
|
|
257
|
-
}
|
|
258
|
-
[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before {
|
|
259
|
-
top: 50%;
|
|
260
|
-
transform: scaleY(3) translateY(-50%);
|
|
261
|
-
}
|
|
262
|
-
[data-sonner-toast][data-swiping=false][data-removed=true]::before {
|
|
263
|
-
content: "";
|
|
264
|
-
position: absolute;
|
|
265
|
-
inset: 0;
|
|
266
|
-
transform: scaleY(2);
|
|
267
|
-
}
|
|
268
|
-
[data-sonner-toast][data-expanded=true]::after {
|
|
269
|
-
content: "";
|
|
270
|
-
position: absolute;
|
|
271
|
-
left: 0;
|
|
272
|
-
height: calc(var(--gap) + 1px);
|
|
273
|
-
bottom: 100%;
|
|
274
|
-
width: 100%;
|
|
275
|
-
}
|
|
276
|
-
[data-sonner-toast][data-mounted=true] {
|
|
277
|
-
--y: translateY(0);
|
|
278
|
-
opacity: 1;
|
|
279
|
-
}
|
|
280
|
-
[data-sonner-toast][data-expanded=false][data-front=false] {
|
|
281
|
-
--scale: var(--toasts-before) * 0.05 + 1;
|
|
282
|
-
--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));
|
|
283
|
-
height: var(--front-toast-height);
|
|
284
|
-
}
|
|
285
|
-
[data-sonner-toast] > * {
|
|
286
|
-
transition: opacity 400ms;
|
|
287
|
-
}
|
|
288
|
-
[data-sonner-toast][data-x-position=right] {
|
|
289
|
-
right: 0;
|
|
290
|
-
}
|
|
291
|
-
[data-sonner-toast][data-x-position=left] {
|
|
292
|
-
left: 0;
|
|
293
|
-
}
|
|
294
|
-
[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true] > * {
|
|
295
|
-
opacity: 0;
|
|
296
|
-
}
|
|
297
|
-
[data-sonner-toast][data-visible=false] {
|
|
298
|
-
opacity: 0;
|
|
299
|
-
pointer-events: none;
|
|
300
|
-
}
|
|
301
|
-
[data-sonner-toast][data-mounted=true][data-expanded=true] {
|
|
302
|
-
--y: translateY(calc(var(--lift) * var(--offset)));
|
|
303
|
-
height: var(--initial-height);
|
|
304
|
-
}
|
|
305
|
-
[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false] {
|
|
306
|
-
--y: translateY(calc(var(--lift) * -100%));
|
|
307
|
-
opacity: 0;
|
|
308
|
-
}
|
|
309
|
-
[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true] {
|
|
310
|
-
--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));
|
|
311
|
-
opacity: 0;
|
|
312
|
-
}
|
|
313
|
-
[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false] {
|
|
314
|
-
--y: translateY(40%);
|
|
315
|
-
opacity: 0;
|
|
316
|
-
transition: transform 500ms, opacity 200ms;
|
|
317
|
-
}
|
|
318
|
-
[data-sonner-toast][data-removed=true][data-front=false]::before {
|
|
319
|
-
height: calc(var(--initial-height) + 20%);
|
|
320
|
-
}
|
|
321
|
-
[data-sonner-toast][data-swiping=true] {
|
|
322
|
-
transform: var(--y) translateY(var(--swipe-amount-y, 0px)) translateX(var(--swipe-amount-x, 0px));
|
|
323
|
-
transition: none;
|
|
324
|
-
}
|
|
325
|
-
[data-sonner-toast][data-swiped=true] {
|
|
326
|
-
-webkit-user-select: none;
|
|
327
|
-
user-select: none;
|
|
328
|
-
}
|
|
329
|
-
[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],
|
|
330
|
-
[data-sonner-toast][data-swipe-out=true][data-y-position=top] {
|
|
331
|
-
animation-duration: 200ms;
|
|
332
|
-
animation-timing-function: ease-out;
|
|
333
|
-
animation-fill-mode: forwards;
|
|
334
|
-
}
|
|
335
|
-
[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left] {
|
|
336
|
-
animation-name: swipe-out-left;
|
|
337
|
-
}
|
|
338
|
-
[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right] {
|
|
339
|
-
animation-name: swipe-out-right;
|
|
340
|
-
}
|
|
341
|
-
[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up] {
|
|
342
|
-
animation-name: swipe-out-up;
|
|
343
|
-
}
|
|
344
|
-
[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down] {
|
|
345
|
-
animation-name: swipe-out-down;
|
|
346
|
-
}
|
|
347
|
-
@keyframes swipe-out-left {
|
|
348
|
-
from {
|
|
349
|
-
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
350
|
-
opacity: 1;
|
|
351
|
-
}
|
|
352
|
-
to {
|
|
353
|
-
transform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%));
|
|
354
|
-
opacity: 0;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@keyframes swipe-out-right {
|
|
358
|
-
from {
|
|
359
|
-
transform: var(--y) translateX(var(--swipe-amount-x));
|
|
360
|
-
opacity: 1;
|
|
361
|
-
}
|
|
362
|
-
to {
|
|
363
|
-
transform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%));
|
|
364
|
-
opacity: 0;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
@keyframes swipe-out-up {
|
|
368
|
-
from {
|
|
369
|
-
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
370
|
-
opacity: 1;
|
|
371
|
-
}
|
|
372
|
-
to {
|
|
373
|
-
transform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%));
|
|
374
|
-
opacity: 0;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
@keyframes swipe-out-down {
|
|
378
|
-
from {
|
|
379
|
-
transform: var(--y) translateY(var(--swipe-amount-y));
|
|
380
|
-
opacity: 1;
|
|
381
|
-
}
|
|
382
|
-
to {
|
|
383
|
-
transform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%));
|
|
384
|
-
opacity: 0;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
@media (max-width: 600px) {
|
|
388
|
-
[data-sonner-toaster] {
|
|
389
|
-
position: fixed;
|
|
390
|
-
right: var(--mobile-offset-right);
|
|
391
|
-
left: var(--mobile-offset-left);
|
|
392
|
-
width: 100%;
|
|
393
|
-
}
|
|
394
|
-
[data-sonner-toaster][dir=rtl] {
|
|
395
|
-
left: calc(var(--mobile-offset-left) * -1);
|
|
396
|
-
}
|
|
397
|
-
[data-sonner-toaster] [data-sonner-toast] {
|
|
398
|
-
left: 0;
|
|
399
|
-
right: 0;
|
|
400
|
-
width: calc(100% - var(--mobile-offset-left) * 2);
|
|
401
|
-
}
|
|
402
|
-
[data-sonner-toaster][data-x-position=left] {
|
|
403
|
-
left: var(--mobile-offset-left);
|
|
404
|
-
}
|
|
405
|
-
[data-sonner-toaster][data-y-position=bottom] {
|
|
406
|
-
bottom: var(--mobile-offset-bottom);
|
|
407
|
-
}
|
|
408
|
-
[data-sonner-toaster][data-y-position=top] {
|
|
409
|
-
top: var(--mobile-offset-top);
|
|
410
|
-
}
|
|
411
|
-
[data-sonner-toaster][data-x-position=center] {
|
|
412
|
-
left: var(--mobile-offset-left);
|
|
413
|
-
right: var(--mobile-offset-right);
|
|
414
|
-
transform: none;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
[data-sonner-toaster][data-sonner-theme=light] {
|
|
418
|
-
--normal-bg: #fff;
|
|
419
|
-
--normal-border: var(--gray4);
|
|
420
|
-
--normal-text: var(--gray12);
|
|
421
|
-
--success-bg: hsl(143, 85%, 96%);
|
|
422
|
-
--success-border: hsl(145, 92%, 87%);
|
|
423
|
-
--success-text: hsl(140, 100%, 27%);
|
|
424
|
-
--info-bg: hsl(208, 100%, 97%);
|
|
425
|
-
--info-border: hsl(221, 91%, 93%);
|
|
426
|
-
--info-text: hsl(210, 92%, 45%);
|
|
427
|
-
--warning-bg: hsl(49, 100%, 97%);
|
|
428
|
-
--warning-border: hsl(49, 91%, 84%);
|
|
429
|
-
--warning-text: hsl(31, 92%, 45%);
|
|
430
|
-
--error-bg: hsl(359, 100%, 97%);
|
|
431
|
-
--error-border: hsl(359, 100%, 94%);
|
|
432
|
-
--error-text: hsl(360, 100%, 45%);
|
|
433
|
-
}
|
|
434
|
-
[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true] {
|
|
435
|
-
--normal-bg: #000;
|
|
436
|
-
--normal-border: hsl(0, 0%, 20%);
|
|
437
|
-
--normal-text: var(--gray1);
|
|
438
|
-
}
|
|
439
|
-
[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true] {
|
|
440
|
-
--normal-bg: #fff;
|
|
441
|
-
--normal-border: var(--gray3);
|
|
442
|
-
--normal-text: var(--gray12);
|
|
443
|
-
}
|
|
444
|
-
[data-sonner-toaster][data-sonner-theme=dark] {
|
|
445
|
-
--normal-bg: #000;
|
|
446
|
-
--normal-bg-hover: hsl(0, 0%, 12%);
|
|
447
|
-
--normal-border: hsl(0, 0%, 20%);
|
|
448
|
-
--normal-border-hover: hsl(0, 0%, 25%);
|
|
449
|
-
--normal-text: var(--gray1);
|
|
450
|
-
--success-bg: hsl(150, 100%, 6%);
|
|
451
|
-
--success-border: hsl(147, 100%, 12%);
|
|
452
|
-
--success-text: hsl(150, 86%, 65%);
|
|
453
|
-
--info-bg: hsl(215, 100%, 6%);
|
|
454
|
-
--info-border: hsl(223, 43%, 17%);
|
|
455
|
-
--info-text: hsl(216, 87%, 65%);
|
|
456
|
-
--warning-bg: hsl(64, 100%, 6%);
|
|
457
|
-
--warning-border: hsl(60, 100%, 9%);
|
|
458
|
-
--warning-text: hsl(46, 87%, 65%);
|
|
459
|
-
--error-bg: hsl(358, 76%, 10%);
|
|
460
|
-
--error-border: hsl(357, 89%, 16%);
|
|
461
|
-
--error-text: hsl(358, 100%, 81%);
|
|
462
|
-
}
|
|
463
|
-
[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button] {
|
|
464
|
-
background: var(--normal-bg);
|
|
465
|
-
border-color: var(--normal-border);
|
|
466
|
-
color: var(--normal-text);
|
|
467
|
-
}
|
|
468
|
-
[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover {
|
|
469
|
-
background: var(--normal-bg-hover);
|
|
470
|
-
border-color: var(--normal-border-hover);
|
|
471
|
-
}
|
|
472
|
-
[data-rich-colors=true][data-sonner-toast][data-type=success] {
|
|
473
|
-
background: var(--success-bg);
|
|
474
|
-
border-color: var(--success-border);
|
|
475
|
-
color: var(--success-text);
|
|
476
|
-
}
|
|
477
|
-
[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button] {
|
|
478
|
-
background: var(--success-bg);
|
|
479
|
-
border-color: var(--success-border);
|
|
480
|
-
color: var(--success-text);
|
|
481
|
-
}
|
|
482
|
-
[data-rich-colors=true][data-sonner-toast][data-type=info] {
|
|
483
|
-
background: var(--info-bg);
|
|
484
|
-
border-color: var(--info-border);
|
|
485
|
-
color: var(--info-text);
|
|
486
|
-
}
|
|
487
|
-
[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button] {
|
|
488
|
-
background: var(--info-bg);
|
|
489
|
-
border-color: var(--info-border);
|
|
490
|
-
color: var(--info-text);
|
|
491
|
-
}
|
|
492
|
-
[data-rich-colors=true][data-sonner-toast][data-type=warning] {
|
|
493
|
-
background: var(--warning-bg);
|
|
494
|
-
border-color: var(--warning-border);
|
|
495
|
-
color: var(--warning-text);
|
|
496
|
-
}
|
|
497
|
-
[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button] {
|
|
498
|
-
background: var(--warning-bg);
|
|
499
|
-
border-color: var(--warning-border);
|
|
500
|
-
color: var(--warning-text);
|
|
501
|
-
}
|
|
502
|
-
[data-rich-colors=true][data-sonner-toast][data-type=error] {
|
|
503
|
-
background: var(--error-bg);
|
|
504
|
-
border-color: var(--error-border);
|
|
505
|
-
color: var(--error-text);
|
|
506
|
-
}
|
|
507
|
-
[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button] {
|
|
508
|
-
background: var(--error-bg);
|
|
509
|
-
border-color: var(--error-border);
|
|
510
|
-
color: var(--error-text);
|
|
511
|
-
}
|
|
512
|
-
.sonner-loading-wrapper {
|
|
513
|
-
--size: 16px;
|
|
514
|
-
height: var(--size);
|
|
515
|
-
width: var(--size);
|
|
516
|
-
position: absolute;
|
|
517
|
-
inset: 0;
|
|
518
|
-
z-index: 10;
|
|
519
|
-
}
|
|
520
|
-
.sonner-loading-wrapper[data-visible=false] {
|
|
521
|
-
transform-origin: center;
|
|
522
|
-
animation: sonner-fade-out 0.2s ease forwards;
|
|
523
|
-
}
|
|
524
|
-
.sonner-spinner {
|
|
525
|
-
position: relative;
|
|
526
|
-
top: 50%;
|
|
527
|
-
left: 50%;
|
|
528
|
-
height: var(--size);
|
|
529
|
-
width: var(--size);
|
|
530
|
-
}
|
|
531
|
-
.sonner-loading-bar {
|
|
532
|
-
animation: sonner-spin 1.2s linear infinite;
|
|
533
|
-
background: var(--gray11);
|
|
534
|
-
border-radius: 6px;
|
|
535
|
-
height: 8%;
|
|
536
|
-
left: -10%;
|
|
537
|
-
position: absolute;
|
|
538
|
-
top: -3.9%;
|
|
539
|
-
width: 24%;
|
|
540
|
-
}
|
|
541
|
-
.sonner-loading-bar:nth-child(1) {
|
|
542
|
-
animation-delay: -1.2s;
|
|
543
|
-
transform: rotate(0.0001deg) translate(146%);
|
|
544
|
-
}
|
|
545
|
-
.sonner-loading-bar:nth-child(2) {
|
|
546
|
-
animation-delay: -1.1s;
|
|
547
|
-
transform: rotate(30deg) translate(146%);
|
|
548
|
-
}
|
|
549
|
-
.sonner-loading-bar:nth-child(3) {
|
|
550
|
-
animation-delay: -1s;
|
|
551
|
-
transform: rotate(60deg) translate(146%);
|
|
552
|
-
}
|
|
553
|
-
.sonner-loading-bar:nth-child(4) {
|
|
554
|
-
animation-delay: -0.9s;
|
|
555
|
-
transform: rotate(90deg) translate(146%);
|
|
556
|
-
}
|
|
557
|
-
.sonner-loading-bar:nth-child(5) {
|
|
558
|
-
animation-delay: -0.8s;
|
|
559
|
-
transform: rotate(120deg) translate(146%);
|
|
560
|
-
}
|
|
561
|
-
.sonner-loading-bar:nth-child(6) {
|
|
562
|
-
animation-delay: -0.7s;
|
|
563
|
-
transform: rotate(150deg) translate(146%);
|
|
564
|
-
}
|
|
565
|
-
.sonner-loading-bar:nth-child(7) {
|
|
566
|
-
animation-delay: -0.6s;
|
|
567
|
-
transform: rotate(180deg) translate(146%);
|
|
568
|
-
}
|
|
569
|
-
.sonner-loading-bar:nth-child(8) {
|
|
570
|
-
animation-delay: -0.5s;
|
|
571
|
-
transform: rotate(210deg) translate(146%);
|
|
572
|
-
}
|
|
573
|
-
.sonner-loading-bar:nth-child(9) {
|
|
574
|
-
animation-delay: -0.4s;
|
|
575
|
-
transform: rotate(240deg) translate(146%);
|
|
576
|
-
}
|
|
577
|
-
.sonner-loading-bar:nth-child(10) {
|
|
578
|
-
animation-delay: -0.3s;
|
|
579
|
-
transform: rotate(270deg) translate(146%);
|
|
580
|
-
}
|
|
581
|
-
.sonner-loading-bar:nth-child(11) {
|
|
582
|
-
animation-delay: -0.2s;
|
|
583
|
-
transform: rotate(300deg) translate(146%);
|
|
584
|
-
}
|
|
585
|
-
.sonner-loading-bar:nth-child(12) {
|
|
586
|
-
animation-delay: -0.1s;
|
|
587
|
-
transform: rotate(330deg) translate(146%);
|
|
588
|
-
}
|
|
589
|
-
@keyframes sonner-fade-in {
|
|
590
|
-
0% {
|
|
591
|
-
opacity: 0;
|
|
592
|
-
transform: scale(0.8);
|
|
593
|
-
}
|
|
594
|
-
100% {
|
|
595
|
-
opacity: 1;
|
|
596
|
-
transform: scale(1);
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
@keyframes sonner-fade-out {
|
|
600
|
-
0% {
|
|
601
|
-
opacity: 1;
|
|
602
|
-
transform: scale(1);
|
|
603
|
-
}
|
|
604
|
-
100% {
|
|
605
|
-
opacity: 0;
|
|
606
|
-
transform: scale(0.8);
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
@keyframes sonner-spin {
|
|
610
|
-
0% {
|
|
611
|
-
opacity: 1;
|
|
612
|
-
}
|
|
613
|
-
100% {
|
|
614
|
-
opacity: 0.15;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
@media (prefers-reduced-motion) {
|
|
618
|
-
[data-sonner-toast],
|
|
619
|
-
[data-sonner-toast] > *,
|
|
620
|
-
.sonner-loading-bar {
|
|
621
|
-
transition: none !important;
|
|
622
|
-
animation: none !important;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
.sonner-loader {
|
|
626
|
-
position: absolute;
|
|
627
|
-
top: 50%;
|
|
628
|
-
left: 50%;
|
|
629
|
-
transform: translate(-50%, -50%);
|
|
630
|
-
transform-origin: center;
|
|
631
|
-
transition: opacity 200ms, transform 200ms;
|
|
632
|
-
}
|
|
633
|
-
.sonner-loader[data-visible=false] {
|
|
634
|
-
opacity: 0;
|
|
635
|
-
transform: scale(0.8) translate(-50%, -50%);
|
|
636
|
-
}
|
|
637
|
-
`);var sv=Array(12).fill(0);function av(e){return(()=>{var t=qx(),n=t.firstChild;return E(n,x(Pt,{each:sv,children:(r,o)=>(()=>{var i=Hx();return he(()=>ve(i,"data-index",o())),i})()})),he(r=>{var o=["sonner-loading-wrapper",e.class??e.className].filter(Boolean).join(" "),i=e.visible;return o!==r.e&&dt(t,r.e=o),i!==r.t&&ve(t,"data-visible",r.t=i),r},{e:void 0,t:void 0}),t})()}function uv(){return jx()}function cv(){return Gx()}function lv(){return Vx()}function dv(){return Wx()}function fv(e){switch(e){case"success":return x(uv,{});case"info":return x(lv,{});case"warning":return x(cv,{});case"error":return x(dv,{});default:return null}}function gv(){return Yx()}function pv(){const[e,t]=I(typeof document<"u"?document.hidden:!1);return Kn(()=>{const n=()=>{t(document.hidden)};document.addEventListener("visibilitychange",n),ge(()=>{document.removeEventListener("visibilitychange",n)})}),e}var Ea=1,hv=class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{const{message:t,...n}=e,r=typeof e.id=="string"&&e.id.length>0,o=typeof e.id=="number"||r?e.id:Ea++,i=this.toasts.find(a=>a.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:t,dismissible:s}),{...a,...e,id:o,dismissible:s,title:t}):a):this.addToast({title:t,...n,dismissible:s,id:o}),o};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>{this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})):this.toasts.forEach(t=>{this.dismissedToasts.add(t.id),this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e});error=(e,t)=>this.create({...t,message:e,type:"error"});success=(e,t)=>this.create({...t,type:"success",message:e});info=(e,t)=>this.create({...t,type:"info",message:e});warning=(e,t)=>this.create({...t,type:"warning",message:e});loading=(e,t)=>this.create({...t,type:"loading",message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));const r=Promise.resolve(typeof e=="function"?e():e);let o=n!==void 0,i;const s=r.then(async u=>{if(i=["resolve",u],bv(u))o=!1,this.create({id:n,type:"default",message:u});else if(mv(u)&&!u.ok){o=!1;const c=typeof t.error=="function"?await t.error(`HTTP error! status: ${u.status}`):t.error,l=typeof t.description=="function"?await t.description(`HTTP error! status: ${u.status}`):t.description,d=Wo(c)?c:{message:c};this.create({id:n,type:"error",description:l,...d})}else if(u instanceof Error){o=!1;const c=typeof t.error=="function"?await t.error(u):t.error,l=typeof t.description=="function"?await t.description(u):t.description,d=Wo(c)?c:{message:c};this.create({id:n,type:"error",description:l,...d})}else if(t.success!==void 0){o=!1;const c=typeof t.success=="function"?await t.success(u):t.success,l=typeof t.description=="function"?await t.description(u):t.description,d=Wo(c)?c:{message:c};this.create({id:n,type:"success",description:l,...d})}}).catch(async u=>{if(i=["reject",u],t.error!==void 0){o=!1;const c=typeof t.error=="function"?await t.error(u):t.error,l=typeof t.description=="function"?await t.description(u):t.description,d=Wo(c)?c:{message:c};this.create({id:n,type:"error",description:l,...d})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),t.finally?.()}),a=()=>new Promise((u,c)=>{s.then(()=>{i[0]==="reject"?c(i[1]):u(i[1])}).catch(c)});return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})};custom=(e,t)=>{const n=t?.id||Ea++;return this.create({jsx:e(n),...t,id:n}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function mv(e){return e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number"}function Wo(e){return typeof e=="object"&&e!==null&&"message"in e}function bv(e){return typeof Node<"u"&&e instanceof Node}var Bt=new hv;function yv(e,t){const n=t?.id||Ea++;return Bt.addToast({title:e,...t,id:n}),n}var xv=yv,vv=()=>Bt.toasts,wv=()=>Bt.getActiveToasts(),Lr=Object.assign(xv,{success:Bt.success,info:Bt.info,warning:Bt.warning,error:Bt.error,custom:Bt.custom,message:Bt.message,promise:Bt.promise,dismiss:Bt.dismiss,loading:Bt.loading},{getHistory:vv,getToasts:wv});function zc(e){return typeof e=="object"&&e!==null&&"label"in e}var _v=3,Ev="24px",kv="16px",Uc=4e3,T0=14,Sv=45,Cv=200;function bn(...e){return e.filter(Boolean).join(" ")}function Yo(e){return typeof e=="function"?e():e}function Av(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}function Kc(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Tv(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",a=i?kv:Ev,u=c=>{for(const l of["top","right","bottom","left"])n[`${s}-${l}`]=typeof c=="number"?`${c}px`:c};if(typeof r=="number"||typeof r=="string"){u(r);return}if(typeof r=="object"&&r!==null){for(const c of["top","right","bottom","left"]){const l=r[c];n[`${s}-${c}`]=l===void 0?a:typeof l=="number"?`${l}px`:l}return}u(a)}),n}function ka(e,t){return e??t}function Sa(e,t){return e??t??""}function vi(e,t){return e??t??""}function Dv(e){return e!=="system"?e:typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Ov(e){const[t,n]=I(!1),[r,o]=I(!1),[i,s]=I(!1),[a,u]=I(!1),[c,l]=I(!1),[d,f]=I(null),[p,g]=I(null),[h,m]=I(0),[b,y]=I(0);let v,w=null,_=0,k=0,A=Uc;const[S,D]=I(null),B=()=>e.index===0,R=()=>e.index+1<=e.visibleToasts,M=()=>e.toast.type,F=()=>e.toast.dismissible!==!1,O=()=>ka(e.classNames,e.classes),P=()=>vi(e.className,e.class),G=()=>Sa(e.descriptionClassName,e.descriptionClass),L=()=>vi(e.toast.className,e.toast.class),q=()=>Sa(e.toast.descriptionClassName,e.toast.descriptionClass),j=()=>ka(e.toast.classNames,e.toast.classes),N=()=>e.toast.closeButton??e.closeButton,Y=()=>e.toast.duration??e.duration??Uc,ee=()=>e.toast.invert??e.invert,Te=()=>M()==="loading",Me=()=>e.swipeDirections??Av(e.position),Ne=J(()=>e.position.split("-")[0]),Pe=J(()=>e.position.split("-")[1]),V=J(()=>Math.max(0,e.heights.findIndex(oe=>oe.toastId===e.toast.id))),K=J(()=>e.heights.reduce((oe,qe,et)=>et>=V()?oe:oe+qe.height,0)),Z=J(()=>V()*(e.gap??T0)+K()),Ce=pv();ae(()=>{A=Y()});function Fe(){o(!0),m(Z()),e.setHeights(oe=>oe.filter(qe=>qe.toastId!==e.toast.id)),window.setTimeout(()=>{e.removeToast(e.toast)},Cv)}function Ye(){return e.icons?.loading?(()=>{var oe=Zx();return E(oe,()=>e.icons.loading),he(qe=>{var et=bn(O()?.loader,j()?.loader,"sonner-loader"),we=M()==="loading";return et!==qe.e&&dt(oe,qe.e=et),we!==qe.t&&ve(oe,"data-visible",qe.t=we),qe},{e:void 0,t:void 0}),oe})():x(av,{get class(){return bn(O()?.loader,j()?.loader)},get visible(){return M()==="loading"}})}const tt=()=>e.toast.icon??e.icons?.[M()]??fv(M());return Kn(()=>{if(n(!0),!v)return;const oe=v.getBoundingClientRect().height;y(oe),e.setHeights(qe=>[{toastId:e.toast.id,toasterId:e.toast.toasterId,height:oe,position:e.toast.position},...qe]),ge(()=>{e.setHeights(qe=>qe.filter(et=>et.toastId!==e.toast.id))})}),ae(()=>{if(!t()||!v)return;Yo(e.toast.title),Yo(e.toast.description);const oe=v.style.height;v.style.height="auto";const qe=v.getBoundingClientRect().height;v.style.height=oe,y(qe),e.setHeights(et=>et.find(z=>z.toastId===e.toast.id)?et.map(z=>z.toastId===e.toast.id?{...z,height:qe}:z):[{toastId:e.toast.id,toasterId:e.toast.toasterId,height:qe,position:e.toast.position},...et])}),ae(Ut(()=>[e.expanded,e.interacting,e.toast,M(),Ce(),Y()],([oe,qe,et,we])=>{if(et.promise&&we==="loading"||et.duration===Number.POSITIVE_INFINITY||we==="loading")return;let z;const me=()=>{if(k<_){const ne=new Date().getTime()-_;A-=ne}k=new Date().getTime()},Se=()=>{A!==Number.POSITIVE_INFINITY&&(_=new Date().getTime(),z=setTimeout(()=>{et.onAutoClose?.(et),Fe()},A))};oe||qe||(e.pauseWhenPageIsHidden??!0)&&Ce()?me():Se(),ge(()=>{z&&clearTimeout(z)})})),ae(Ut(()=>e.toast.delete,oe=>{oe&&(Fe(),e.toast.onDismiss?.(e.toast))})),(()=>{var oe=ev(),qe=oe.firstChild,et=qe.firstChild;oe.$$pointermove=z=>{if(!S()||!F()||(window.getSelection()?.toString().length??0)>0)return;const me=z.clientY-S().y,Se=z.clientX-S().x;!d()&&(Math.abs(Se)>1||Math.abs(me)>1)&&f(Math.abs(Se)>Math.abs(me)?"x":"y");const W={x:0,y:0},ne=fe=>1/(1.5+Math.abs(fe)/20);d()==="y"?(Me().includes("top")||Me().includes("bottom"))&&(Me().includes("top")&&me<0||Me().includes("bottom")&&me>0?W.y=me:W.y=me*ne(me)):d()==="x"&&(Me().includes("left")||Me().includes("right"))&&(Me().includes("left")&&Se<0||Me().includes("right")&&Se>0?W.x=Se:W.x=Se*ne(Se)),(Math.abs(W.x)>0||Math.abs(W.y)>0)&&l(!0),v?.style.setProperty("--swipe-amount-x",`${W.x}px`),v?.style.setProperty("--swipe-amount-y",`${W.y}px`)},oe.$$pointerup=()=>{if(a()||!F())return;D(null);const z=Number(v?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),me=Number(v?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),Se=Math.max(1,new Date().getTime()-(w?.getTime()??0)),W=d()==="x"?z:me,ne=Math.abs(W)/Se;if(Math.abs(W)>=Sv||ne>.11){m(Z()),e.toast.onDismiss?.(e.toast),d()==="x"?g(z>0?"right":"left"):g(me>0?"down":"up"),Fe(),u(!0);return}v?.style.setProperty("--swipe-amount-x","0px"),v?.style.setProperty("--swipe-amount-y","0px"),l(!1),s(!1),f(null)},oe.$$pointerdown=z=>{z.button!==2&&(Te()||!F()||z.target.closest("button")||(w=new Date,m(Z()),z.currentTarget.setPointerCapture(z.pointerId),s(!0),D({x:z.clientX,y:z.clientY})))},oe.addEventListener("dragend",()=>{s(!1),f(null),D(null)});var we=v;return typeof we=="function"?tr(we,oe):v=oe,E(oe,x(X,{get when(){return ce(()=>!!(N()&&!e.toast.jsx))()&&M()!=="loading"},get children(){var z=Xx();return z.$$click=()=>{Te()||!F()||(Fe(),e.toast.onDismiss?.(e.toast))},z.$$pointerup=me=>me.stopPropagation(),z.$$pointerdown=me=>me.stopPropagation(),E(z,()=>e.icons?.close??x(gv,{})),he(me=>{var Se=e.closeButtonAriaLabel??"Close toast",W=Te(),ne=bn(O()?.closeButton,j()?.closeButton);return Se!==me.e&&ve(z,"aria-label",me.e=Se),W!==me.t&&ve(z,"data-disabled",me.t=W),ne!==me.a&&dt(z,me.a=ne),me},{e:void 0,t:void 0,a:void 0}),z}}),qe),E(oe,x(X,{get when(){return ce(()=>!!((M()||e.toast.icon||e.toast.promise)&&e.toast.icon!==null))()&&(e.icons?.[M()]!==null||e.toast.icon)},get children(){var z=Qx();return E(z,(()=>{var me=ce(()=>!!(e.toast.promise||e.toast.type==="loading"&&!e.toast.icon));return()=>me()?e.toast.icon||Ye():null})(),null),E(z,(()=>{var me=ce(()=>e.toast.type!=="loading");return()=>me()?tt():null})(),null),he(()=>dt(z,bn(O()?.icon,j()?.icon))),z}}),qe),E(et,(()=>{var z=ce(()=>!!e.toast.jsx);return()=>z()?e.toast.jsx:Yo(e.toast.title)})()),E(qe,x(X,{get when(){return e.toast.description},get children(){var z=Jx();return E(z,()=>Yo(e.toast.description)),he(()=>dt(z,bn(G(),q(),O()?.description,j()?.description))),z}}),null),E(oe,x(X,{get when(){return e.toast.cancel},children:z=>x(X,{get when(){return!zc(z())},get fallback(){return(()=>{var me=tv();return me.$$click=Se=>{const W=z();F()&&(W.onClick?.(Se),Fe())},E(me,()=>z().label),he(Se=>{var W=e.toast.cancelButtonStyle??e.cancelButtonStyle,ne=bn(O()?.cancelButton,j()?.cancelButton);return Se.e=mr(me,W,Se.e),ne!==Se.t&&dt(me,Se.t=ne),Se},{e:void 0,t:void 0}),me})()},get children(){return z()}})}),null),E(oe,x(X,{get when(){return e.toast.action},children:z=>x(X,{get when(){return!zc(z())},get fallback(){return(()=>{var me=nv();return me.$$click=Se=>{z().onClick?.(Se),!Se.defaultPrevented&&Fe()},E(me,()=>z().label),he(Se=>{var W=e.toast.actionButtonStyle??e.actionButtonStyle,ne=bn(O()?.actionButton,j()?.actionButton);return Se.e=mr(me,W,Se.e),ne!==Se.t&&dt(me,Se.t=ne),Se},{e:void 0,t:void 0}),me})()},get children(){return z()}})}),null),he(z=>{var me=bn(P(),L(),O()?.toast,j()?.toast,O()?.default,O()?.[M()],j()?.[M()]),Se=e.toast.richColors??e.defaultRichColors,W=!(e.toast.jsx||e.toast.unstyled||e.unstyled),ne=t(),fe=!!e.toast.promise,ye=c(),_e=r(),Ee=R(),Ze=Ne(),Lt=Pe(),$t=e.index,mt=B(),qt=i(),an=F(),Nn=M(),en=ee(),Rn=a(),Ve=p(),Re=!!(e.expanded||e.expandByDefault&&t()),ct=e.toast.testId,Ot={"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${r()?h():Z()}px`,"--initial-height":e.expandByDefault?"auto":`${b()}px`,...e.style,...e.toast.style},$e=bn(O()?.content,j()?.content),at=bn(O()?.title,j()?.title);return me!==z.e&&dt(oe,z.e=me),Se!==z.t&&ve(oe,"data-rich-colors",z.t=Se),W!==z.a&&ve(oe,"data-styled",z.a=W),ne!==z.o&&ve(oe,"data-mounted",z.o=ne),fe!==z.i&&ve(oe,"data-promise",z.i=fe),ye!==z.n&&ve(oe,"data-swiped",z.n=ye),_e!==z.s&&ve(oe,"data-removed",z.s=_e),Ee!==z.h&&ve(oe,"data-visible",z.h=Ee),Ze!==z.r&&ve(oe,"data-y-position",z.r=Ze),Lt!==z.d&&ve(oe,"data-x-position",z.d=Lt),$t!==z.l&&ve(oe,"data-index",z.l=$t),mt!==z.u&&ve(oe,"data-front",z.u=mt),qt!==z.c&&ve(oe,"data-swiping",z.c=qt),an!==z.w&&ve(oe,"data-dismissible",z.w=an),Nn!==z.m&&ve(oe,"data-type",z.m=Nn),en!==z.f&&ve(oe,"data-invert",z.f=en),Rn!==z.y&&ve(oe,"data-swipe-out",z.y=Rn),Ve!==z.g&&ve(oe,"data-swipe-direction",z.g=Ve),Re!==z.p&&ve(oe,"data-expanded",z.p=Re),ct!==z.b&&ve(oe,"data-testid",z.b=ct),z.T=mr(oe,Ot,z.T),$e!==z.A&&dt(qe,z.A=$e),at!==z.O&&dt(et,z.O=at),z},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0}),oe})()}function Nv(e){const t=te({position:"bottom-right",hotkey:["altKey","KeyT"],theme:"light",gap:T0,visibleToasts:_v,dir:Kc(),containerAriaLabel:"Notifications"},e),n=Dv(t.theme),[r,o]=Dd({toasts:[]}),i=J(()=>{const R=r.toasts;return t.id?R.filter(M=>M.toasterId===t.id):R.filter(M=>!M.toasterId)}),s=J(()=>Array.from(new Set([t.position,...i().filter(R=>R.position).map(R=>R.position)]))),[a,u]=I([]),[c,l]=I(!1),[d,f]=I(!1),[p,g]=I(n),[h,m]=I(null),[b,y]=I(!1);let v;const w=()=>t.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=()=>vi(t.className,t.class),k=()=>t.toastOptions,A=()=>ka(k()?.classNames,k()?.classes),S=()=>Sa(k()?.descriptionClassName,k()?.descriptionClass),D=()=>vi(k()?.className,k()?.class),B=R=>{o("toasts",M=>(M.find(F=>F.id===R.id)?.delete||Bt.dismiss(R.id),M.filter(({id:F})=>F!==R.id)))};return Kn(()=>{const R=Bt.subscribe(M=>{if(M.dismiss){requestAnimationFrame(()=>{o("toasts",Gt(P=>{P.forEach(G=>{G.id===M.id&&(G.delete=!0)})}))});return}const F=M,O=r.toasts.findIndex(P=>P.id===F.id);if(O!==-1){o("toasts",O,dh(F));return}o("toasts",Gt(P=>{P.unshift(F)}))});ge(R)}),ae(()=>{const R=t.theme;if(R!=="system"){g(R);return}if(typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)"),F=({matches:O})=>{g(O?"dark":"light")};F(M);try{M.addEventListener("change",F),ge(()=>M.removeEventListener("change",F))}catch{M.addListener(F),ge(()=>M.removeListener(F))}}),ae(()=>{i().length<=1&&l(!1)}),Kn(()=>{const R=M=>{t.hotkey.length>0&&t.hotkey.every(O=>M[O]||M.code===O)&&(l(!0),v?.focus()),M.code==="Escape"&&(document.activeElement===v||v?.contains(document.activeElement))&&l(!1)};document.addEventListener("keydown",R),ge(()=>document.removeEventListener("keydown",R))}),ge(()=>{h()&&(h()?.focus({preventScroll:!0}),m(null),y(!1))}),(()=>{var R=rv();return E(R,x(Pt,{get each(){return s()},children:(M,F)=>{const[O,P]=M.split("-"),G=J(()=>i().filter(q=>!q.position&&F()===0||q.position===M)),L=J(()=>a().filter(q=>F()===0&&!q.position||q.position===M));return x(X,{get when(){return i().length>0},get children(){var q=ov();q.$$pointerup=()=>f(!1),q.$$pointerdown=N=>{N.target instanceof HTMLElement&&N.target.dataset.dismissible==="false"||f(!0)},q.addEventListener("dragend",()=>l(!1)),q.addEventListener("mouseleave",()=>{d()||l(!1)}),q.$$mousemove=()=>l(!0),q.addEventListener("mouseenter",()=>l(!0)),q.addEventListener("focus",N=>{N.target instanceof HTMLElement&&N.target.dataset.dismissible==="false"||b()||(y(!0),m(N.relatedTarget))}),q.addEventListener("blur",N=>{b()&&!N.currentTarget.contains(N.relatedTarget)&&(y(!1),h()&&(h()?.focus({preventScroll:!0}),m(null)))});var j=v;return typeof j=="function"?tr(j,q):v=q,ve(q,"data-y-position",O),ve(q,"data-x-position",P),E(q,x(Pt,{get each(){return G()},children:(N,Y)=>x(Ov,{get icons(){return t.icons},get index(){return Y()},toast:N,get defaultRichColors(){return t.richColors},get duration(){return k()?.duration??t.duration},get class(){return D()},get descriptionClassName(){return S()},get invert(){return!!t.invert},get visibleToasts(){return t.visibleToasts},get closeButton(){return k()?.closeButton??t.closeButton??!1},get interacting(){return d()},position:M,get style(){return k()?.style},get unstyled(){return k()?.unstyled},get classNames(){return A()},get cancelButtonStyle(){return k()?.cancelButtonStyle},get actionButtonStyle(){return k()?.actionButtonStyle},get closeButtonAriaLabel(){return k()?.closeButtonAriaLabel},removeToast:B,get toasts(){return G()},get heights(){return L()},setHeights:u,get expandByDefault(){return!!t.expand},get gap(){return t.gap},get expanded(){return c()},get swipeDirections(){return t.swipeDirections},get pauseWhenPageIsHidden(){return t.pauseWhenPageIsHidden}})})),he(N=>{var Y=t.dir==="auto"?Kc():t.dir,ee=_(),Te=p(),Me={"--front-toast-height":`${L()[0]?.height??0}px`,"--gap":`${t.gap}px`,...t.style,...Tv(t.offset,t.mobileOffset)};return Y!==N.e&&ve(q,"dir",N.e=Y),ee!==N.t&&dt(q,N.t=ee),Te!==N.a&&ve(q,"data-sonner-theme",N.a=Te),N.o=mr(q,Me,N.o),N},{e:void 0,t:void 0,a:void 0,o:void 0}),q}})}})),he(()=>ve(R,"aria-label",t.customAriaLabel??`${t.containerAriaLabel} ${w()}`)),R})()}/*!
|
|
638
|
-
* Original code by Emil Kowalski
|
|
639
|
-
* MIT Licensed, Copyright 2023 Emil Kowalski, see https://github.com/emilkowalski/sonner/blob/main/LICENSE.md for details
|
|
640
|
-
*
|
|
641
|
-
* Credits:
|
|
642
|
-
* https://github.com/emilkowalski/sonner/blob/main/src/index.tsx
|
|
643
|
-
*/Cn(["pointerdown","pointerup","pointermove","click","mousemove"]);const Rv=e=>x(Nv,te({class:"toaster group",toastOptions:{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},e)),[Iv,D0]=I(ht.language||"zh-CN"),[Mv,Lv]=I(ht.isInitialized);Fd.then(()=>{D0(ht.language||"zh-CN"),Lv(!0)});ht.on("languageChanged",e=>D0(e));function T(e,t){return ht.t(e,t)}function $v(){return{t:T,lng:J(()=>Iv()),ready:J(()=>Mv()),changeLanguage:e=>ht.changeLanguage(e)}}var Fv=$('<span class=" text-muted-foreground">'),Pv=$('<span class=" text-destructive">'),Bv=$('<div class="mt-2 flex flex-wrap items-center gap-3"><div class="flex items-center gap-2"><span class=" text-muted-foreground">'),zv=$('<ul class="mt-4 grid list-none gap-3 p-0 [grid-template-columns:repeat(auto-fill,minmax(min(100%,400px),1fr))]">'),Uv=$('<p class=" text-destructive">'),Kv=$('<section class="overflow-y-auto p-4"><header class="flex items-center justify-between"><h1 class="m-0 text-xl">'),qv=$('<p class=" text-muted-foreground">'),Hv=$('<div class="mt-4 flex flex-col items-center gap-3 rounded-xl border border-dashed bg-card p-12"><p>'),jv=$('<div class="flex items-center justify-between text-sm text-muted-foreground"><time>'),Gv=$('<h2 class="my-1.5 text-base font-semibold">'),Vv=$('<p class="m-0 mb-2 text-muted-foreground">'),Wv=$('<code class="font-mono text-sm text-muted-foreground">'),Yv=$('<li class="group relative rounded-xl border bg-card shadow transition-transform hover:-translate-y-px"><div class="absolute right-1.5 top-1.5 z-[2] opacity-0 transition-opacity group-hover:opacity-100">');const Zv={plan:"bg-stage-plan",tasks:"bg-stage-tasks",execute:"bg-stage-execute",done:"bg-stage-done"},Xv=()=>{const e=So(),t=qr(),[n,{refetch:r}]=Un(t,w=>w?Ke.listSpecs(w):Promise.resolve([])),[o,{refetch:i}]=Un(()=>Ke.listProjects()),s=J(()=>(o()??[]).find(w=>w.id===t())),a=J(()=>{const w=s();return w?.worktree?(o()??[]).some(_=>_.id===w.worktree.mainProjectId):!0}),[u,c]=I(!1),[l,d]=I(null),[f,p]=I(null),[g,h]=I(!1),[m,b]=I(null);Kn(()=>{const w=eb(()=>{(async()=>{const _=s()?.worktree?.mainProjectId??null;await i();const k=t();!k||(o()??[]).some(S=>S.id===k)||_&&e(`/${encodeURIComponent(_)}`)})()});ge(w)});async function y(){const w=s();if(!w?.worktree||!a())return;const _=`feat(${w.worktree.branch}): merge from worktree`,k=window.prompt(T("home.mergeHint"),_);if(k==null)return;const A=k.trim()||_;c(!0),d(null);try{const S=await Ke.mergeWorktreeToMain(w.id,{commitMessage:A});S.status==="merged"?(Lr.success(T("home.merged")),await i(),e(`/${encodeURIComponent(S.mainProjectId)}`)):(Lr.info(T("home.conflictDispatched")),await i(),e(`/${encodeURIComponent(S.mainProjectId)}/specs/${encodeURIComponent(S.conflictSpecId)}`))}catch(S){d(S.message)}finally{c(!1)}}async function v(w){const _=t();if(_){h(!0),b(null);try{await Ke.deleteSpec(_,w),p(null),await r()}catch(k){b(k.message)}finally{h(!1)}}}return(()=>{var w=Kv(),_=w.firstChild,k=_.firstChild;return E(k,()=>T("home.specList")),E(_,x(je,{as:zn,get href(){return Zt("specs/new")},variant:"default",size:"sm",get children(){return[x(Xu,{class:"mr-1 h-4 w-4"}),ce(()=>T("shell.newSpec"))]}}),null),E(w,x(X,{get when(){return s()?.worktree},get children(){var A=Bv(),S=A.firstChild,D=S.firstChild;return E(D,()=>T("home.mainProject"),null),E(D,()=>s().worktree.mainPath.split("/").filter(Boolean).pop()??s().worktree.mainPath,null),E(A,x(je,{variant:"default",size:"sm",onClick:()=>void y(),get disabled(){return u()||!a()},get title(){return ce(()=>!!a())()?T("home.mergeHint"):T("home.mainUnreachable")},get children(){return[x(Dm,{class:"mr-1 h-3.5 w-3.5"}),ce(()=>ce(()=>!!u())()?T("home.merging"):T("home.mergeToMain"))]}}),null),E(A,x(X,{get when(){return!a()},get children(){var B=Fv();return E(B,()=>T("home.mainUnreachable")),B}}),null),E(A,x(X,{get when(){return l()},get children(){var B=Pv();return E(B,l),B}}),null),A}}),null),E(w,x(Ti,{get fallback(){return(()=>{var A=qv();return E(A,()=>T("common.loading")),A})()},get children(){return x(X,{get when(){return(n()??[]).length>0},get fallback(){return(()=>{var A=Hv(),S=A.firstChild;return E(S,()=>T("home.noSpecs")),E(A,x(je,{as:zn,get href(){return Zt("specs/new")},variant:"default",size:"sm",get children(){return[x(Xu,{class:"mr-1 h-4 w-4"}),ce(()=>T("home.createFirst"))]}}),null),A})()},get children(){var A=zv();return E(A,x(Pt,{get each(){return n()??[]},children:S=>(()=>{var D=Yv(),B=D.firstChild;return E(D,x(zn,{get href(){return Zt(`specs/${encodeURIComponent(S.id)}`)},class:"block p-4",get children(){return[(()=>{var R=jv(),M=R.firstChild;return E(R,x(D1,{get class(){return`border-transparent ${Zv[S.stage]??"bg-muted"} text-white uppercase`},get children(){return S.stage}}),M),E(M,()=>zd(S.updated_at)),R})(),(()=>{var R=Gv();return E(R,()=>S.title||T("common.pendingAgent")),R})(),(()=>{var R=Vv();return E(R,()=>S.summary||T("common.pendingAgent")),R})(),(()=>{var R=Wv();return E(R,()=>S.id),R})()]}}),B),E(B,x(m0,{placement:"bottom-end",get children(){return[x(h0,{as:je,variant:"ghost",size:"icon",class:"h-7 w-7",get title(){return T("home.moreActions")},get children(){return x(Em,{class:"h-4 w-4"})}}),x(b0,{get children(){return x(_a,{class:"text-destructive focus:text-destructive",onSelect:()=>p(S.id),get children(){return T("common.delete")}})}})]}})),D})()})),A}})}}),null),E(w,x(tu,{get open(){return f()!==null},onOpenChange:A=>{A||(p(null),b(null))},get children(){return x(nu,{class:"max-w-sm",get children(){return[x(ou,{get children(){return x(ru,{get children(){return T("home.confirmDeleteSpec")}})}}),x(X,{get when(){return m()},get children(){var A=Uv();return E(A,m),A}}),x(iu,{get children(){return[x(je,{variant:"outline",onClick:()=>p(null),get disabled(){return g()},get children(){return T("common.cancel")}}),x(je,{variant:"destructive",onClick:()=>f()&&void v(f()),get disabled(){return g()},get children(){return ce(()=>!!g())()?T("common.deleting"):T("common.confirmDelete")}})]}})]}})}}),null),w})()},Qv=2e4,Jv=2e3,ew=1;function tw(){const[e,t]=Dd({tasks:{},order:[]}),n={unsubByRun:new Map,watchdogTimer:null};function r(h){t(Gt(m=>{const b=m.tasks[h];b&&(b.lastEventAt=Date.now())}))}function o(){for(const h of e.order){const m=e.tasks[h];if(m&&!m.dismissed&&(m.status==="pending"||m.status==="streaming"))return!0}return!1}function i(){const h=Date.now();for(const m of e.order){const b=e.tasks[m];if(!b||b.status!=="pending"&&b.status!=="streaming"||h-b.lastEventAt<=Qv)continue;const y=n.unsubByRun.get(m);if(y&&y.readyState()===ew)continue;t(Gt(w=>{const _=w.tasks[m];_&&(_.status="failed",_.error=T("errors.serverDisconnected"),_.endedAt=Date.now())}));const v=n.unsubByRun.get(m);v&&(v(),n.unsubByRun.delete(m))}o()||a()}function s(){n.watchdogTimer==null&&(n.watchdogTimer=setInterval(i,Jv))}function a(){n.watchdogTimer!=null&&(clearInterval(n.watchdogTimer),n.watchdogTimer=null)}function u(h){if(e.tasks[h.runId]){t(Gt(w=>{const _=w.tasks[h.runId];_&&(_.dismissed&&(_.dismissed=!1),h.specId.startsWith("__draft__")||(_.specId=h.specId),h.specTitle&&(_.specTitle=h.specTitle))}));return}const b=h.startedAt??Date.now(),y={runId:h.runId,projectId:h.projectId,mode:h.mode,specId:h.specId,specTitle:h.specTitle,source:h.source,status:"pending",output:"",startedAt:b,lastEventAt:Date.now(),expanded:!0,dismissed:!1};t(Gt(w=>{w.tasks[y.runId]=y,w.order.push(y.runId)}));const v=Qm(h.projectId,h.runId,{onAgentStdout:w=>{t(Gt(_=>{const k=_.tasks[h.runId];k&&(k.output+=w.chunk,k.lastEventAt=Date.now(),k.status==="pending"&&(k.status="streaming"))}))},onServerHeartbeat:()=>{r(h.runId)},onAgentExit:w=>{t(Gt(k=>{const A=k.tasks[h.runId];A&&(A.status=w.code===0?"done":"failed",A.endedAt=Date.now(),A.lastEventAt=Date.now())}));const _=n.unsubByRun.get(h.runId);_&&(_(),n.unsubByRun.delete(h.runId)),o()||a()},onAgentError:w=>{t(Gt(k=>{const A=k.tasks[h.runId];A&&(A.error=w.message,A.status="failed",A.endedAt=Date.now(),A.lastEventAt=Date.now())}));const _=n.unsubByRun.get(h.runId);_&&(_(),n.unsubByRun.delete(h.runId)),o()||a()}});n.unsubByRun.set(h.runId,v),s()}function c(h){for(const m of e.order){const b=e.tasks[m];if(!b||b.status!=="pending"&&b.status!=="streaming"||h.has(m))continue;t(Gt(v=>{const w=v.tasks[m];w&&(w.status="failed",w.error=T("errors.serverRestarted"),w.endedAt=Date.now(),w.lastEventAt=Date.now())}));const y=n.unsubByRun.get(m);y&&(y(),n.unsubByRun.delete(m))}o()||a()}function l(h){const m=e.tasks[h];m&&(m.status==="pending"||m.status==="streaming")&&rb(m.projectId,h),t(Gt(b=>{const y=b.tasks[h];y&&(y.dismissed=!0)}))}function d(h){t(Gt(m=>{const b=m.tasks[h];b&&(b.expanded=!b.expanded)}))}function f(){t(Gt(h=>{h.order=h.order.filter(m=>{const b=h.tasks[m];return b?b.status==="done"||b.status==="failed"?(delete h.tasks[m],!1):!0:!1})}))}function p(h){for(const m of e.order){const b=e.tasks[m];if(b&&b.mode==="skill-run"&&b.specId===h&&(b.status==="pending"||b.status==="streaming"))return!0}return!1}async function g(h){if(!h)return;let m=[];try{m=await nb(h)}catch{return}c(new Set(m.map(b=>b.runId)));for(const b of m){const y=b.mode==="explain"?"explain":"run";u({runId:b.runId,projectId:h,mode:b.mode,specId:b.specId,source:y,startedAt:b.startedAt})}}return{state:e,start:u,dismiss:l,toggleExpand:d,clearFinished:f,hasRunningSkillRun:p,hydrateFromActiveRuns:g,reconcileWithActive:c}}const Ft=Qn(()=>tw());var nw=$("<textarea>");const Ro=e=>{const[t,n]=ke(e,["class"]);return(()=>{var r=nw();return sr(r,te({get class(){return Jt("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 shadow-sm transition-shadow placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class)}},n),!1,!1),r})()};var rw=$("<input>");const ni=e=>{const[t,n]=ke(e,["class"]);return(()=>{var r=rw();return sr(r,te({get class(){return Jt("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 shadow-sm transition-shadow file:border-0 file:bg-transparent file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class)}},n),!1,!1),r})()};var ow=["id","name","validationState","required","disabled","readOnly"];function iw(e){const t=`form-control-${fn()}`,n=Ge({id:t},e),[r,o]=I(),[i,s]=I(),[a,u]=I(),[c,l]=I(),d=(h,m,b)=>{const y=b!=null||r()!=null;return[b,r(),y&&m!=null?h:void 0].filter(Boolean).join(" ")||void 0},f=h=>[a(),c(),h].filter(Boolean).join(" ")||void 0,p=J(()=>({"data-valid":H(n.validationState)==="valid"?"":void 0,"data-invalid":H(n.validationState)==="invalid"?"":void 0,"data-required":H(n.required)?"":void 0,"data-disabled":H(n.disabled)?"":void 0,"data-readonly":H(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>H(n.name)??H(n.id),dataset:p,validationState:()=>H(n.validationState),isRequired:()=>H(n.required),isDisabled:()=>H(n.disabled),isReadOnly:()=>H(n.readOnly),labelId:r,fieldId:i,descriptionId:a,errorMessageId:c,getAriaLabelledBy:d,getAriaDescribedBy:f,generateId:jr(()=>H(n.id)),registerLabel:nn(o),registerField:nn(s),registerDescription:nn(u),registerErrorMessage:nn(l)}}}var O0=wt();function Sr(){const e=pt(O0);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function sw(e){const t=Sr(),n=Ge({id:t.generateId("description")},e);return ae(()=>ge(t.registerDescription(n.id))),x(ut,te({as:"div"},()=>t.dataset(),n))}var aw=["id","aria-label","aria-labelledby","aria-describedby"];function uw(e){const t=Sr(),n=Ge({id:t.generateId("field")},e);return ae(()=>ge(t.registerField(H(n.id)))),{fieldProps:{id:()=>H(n.id),ariaLabel:()=>H(n["aria-label"]),ariaLabelledBy:()=>t.getAriaLabelledBy(H(n.id),H(n["aria-label"]),H(n["aria-labelledby"])),ariaDescribedBy:()=>t.getAriaDescribedBy(H(n["aria-describedby"]))}}}function cw(e){let t;const n=Sr(),r=Ge({id:n.generateId("label")},e),[o,i]=ke(r,["ref"]),s=Ri(()=>t,()=>"label");return ae(()=>ge(n.registerLabel(i.id))),x(ut,te({as:"label",ref(a){var u=At(c=>t=c,o.ref);typeof u=="function"&&u(a)},get for(){return ce(()=>s()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function lw(e,t){ae(Ut(e,n=>{if(n==null)return;const r=dw(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),ge(()=>{r.removeEventListener("reset",t)}))}))}function dw(e){return fw(e)?e.form:e.closest("form")}function fw(e){return e.matches("textarea, input, select, button")}function gw(e){const t=Sr(),n=Ge({id:t.generateId("error-message")},e),[r,o]=ke(n,["forceMount"]),i=()=>t.validationState()==="invalid";return ae(()=>{i()&&ge(t.registerErrorMessage(o.id))}),x(X,{get when(){return r.forceMount||i()},get children(){return x(ut,te({as:"div"},()=>t.dataset(),o))}})}var pw={};Do(pw,{Checkbox:()=>Jn,Control:()=>R0,Description:()=>I0,ErrorMessage:()=>M0,Indicator:()=>L0,Input:()=>$0,Label:()=>F0,Root:()=>P0,useCheckboxContext:()=>Cr});var N0=wt();function Cr(){const e=pt(N0);if(e===void 0)throw new Error("[kobalte]: `useCheckboxContext` must be used within a `Checkbox` component");return e}function R0(e){const t=Sr(),n=Cr(),r=Ge({id:n.generateId("control")},e),[o,i]=ke(r,["onClick","onKeyDown"]);return x(ut,te({as:"div",onClick:u=>{nt(u,o.onClick),n.toggle(),n.inputRef()?.focus({preventScroll:!0})},onKeyDown:u=>{nt(u,o.onKeyDown),u.key===Pa.Space&&(n.toggle(),n.inputRef()?.focus({preventScroll:!0}))}},()=>t.dataset(),()=>n.dataset(),i))}function I0(e){const t=Cr();return x(sw,te(()=>t.dataset(),e))}function M0(e){const t=Cr();return x(gw,te(()=>t.dataset(),e))}function L0(e){const t=Sr(),n=Cr(),[r,o]=I(),i=Ge({id:n.generateId("indicator")},e),[s,a]=ke(i,["ref","forceMount"]),{present:u}=xi({show:()=>s.forceMount||n.indeterminate()||n.checked(),element:()=>r()??null});return x(X,{get when(){return u()},get children(){return x(ut,te({as:"div",ref(c){var l=At(o,s.ref);typeof l=="function"&&l(c)}},()=>t.dataset(),()=>n.dataset(),a))}})}function $0(e){let t;const n=Sr(),r=Cr(),o=Ge({id:r.generateId("input")},e),[i,s,a]=ke(o,["ref","style","onChange","onFocus","onBlur"],aw),{fieldProps:u}=uw(s),[c,l]=I(!1),d=g=>{if(nt(g,i.onChange),g.stopPropagation(),!c()){const h=g.target;r.setIsChecked(h.checked),h.checked=r.checked()}l(!1)},f=g=>{nt(g,i.onFocus),r.setIsFocused(!0)},p=g=>{nt(g,i.onBlur),r.setIsFocused(!1)};return ae(Ut([()=>r.checked(),()=>r.value()],()=>{l(!0),t?.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),t?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),ae(Ut([()=>t,()=>r.indeterminate(),()=>r.checked()],([g,h])=>{g&&(g.indeterminate=h)})),x(ut,te({as:"input",ref(g){var h=At(m=>{r.setInputRef(m),t=m},i.ref);typeof h=="function"&&h(g)},type:"checkbox",get id(){return u.id()},get name(){return n.name()},get value(){return r.value()},get checked(){return r.checked()},get required(){return n.isRequired()},get disabled(){return n.isDisabled()},get readonly(){return n.isReadOnly()},get style(){return To(cf,i.style)},get"aria-label"(){return u.ariaLabel()},get"aria-labelledby"(){return u.ariaLabelledBy()},get"aria-describedby"(){return u.ariaDescribedBy()},get"aria-invalid"(){return n.validationState()==="invalid"||void 0},get"aria-required"(){return n.isRequired()},get"aria-disabled"(){return n.isDisabled()},get"aria-readonly"(){return n.isReadOnly()},onChange:d,onFocus:f,onBlur:p},()=>n.dataset(),()=>r.dataset(),a))}function F0(e){const t=Cr();return x(cw,te(()=>t.dataset(),e))}function P0(e){let t;const n=`checkbox-${fn()}`,r=Ge({value:"on",id:n},e),[o,i,s]=ke(r,["ref","children","value","checked","defaultChecked","indeterminate","onChange","onPointerDown"],ow),[a,u]=I(),[c,l]=I(!1),{formControlContext:d}=iw(i),f=Uf({isSelected:()=>o.checked,defaultIsSelected:()=>o.defaultChecked,onSelectedChange:m=>o.onChange?.(m),isDisabled:()=>d.isDisabled(),isReadOnly:()=>d.isReadOnly()});lw(()=>t,()=>f.setIsSelected(o.defaultChecked??!1));const p=m=>{nt(m,o.onPointerDown),c()&&m.preventDefault()},g=J(()=>({"data-checked":f.isSelected()?"":void 0,"data-indeterminate":o.indeterminate?"":void 0})),h={value:()=>o.value,dataset:g,checked:()=>f.isSelected(),indeterminate:()=>o.indeterminate??!1,inputRef:a,generateId:jr(()=>H(i.id)),toggle:()=>f.toggle(),setIsChecked:m=>f.setIsSelected(m),setIsFocused:l,setInputRef:u};return x(O0.Provider,{value:d,get children(){return x(N0.Provider,{value:h,get children(){return x(ut,te({as:"div",ref(m){var b=At(y=>t=y,o.ref);typeof b=="function"&&b(m)},role:"group",get id(){return H(i.id)},onPointerDown:p},()=>d.dataset(),g,s,{get children(){return x(hw,{state:h,get children(){return o.children}})}}))}})}})}function hw(e){const t=Ci(()=>{const n=e.children;return rf(n)?n(e.state):n});return ce(t)}var Jn=Object.assign(P0,{Control:R0,Description:I0,ErrorMessage:M0,Indicator:L0,Input:$0,Label:F0}),mw=$('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"class="h-4 w-4"><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round stroke-width=2 d="m5 12l5 5L20 7"></path><title>Checkbox');const B0=Jn.Label,z0=Jn;Jn.ErrorMessage;Jn.Description;const U0=e=>{const[t,n]=ke(e,["class","children"]);return[x(Jn.Input,{class:"[&:focus-visible+div]:outline-none [&:focus-visible+div]:ring-[1.5px] [&:focus-visible+div]:ring-ring [&:focus-visible+div]:ring-offset-2 [&:focus-visible+div]:ring-offset-background"}),x(Jn.Control,te({get class(){return Jt("h-4 w-4 shrink-0 rounded-sm border border-primary shadow transition-shadow focus-visible:outline-none focus-visible:ring-[1.5px] focus-visible:ring-ring data-[disabled]:cursor-not-allowed data-[checked]:bg-primary data-[checked]:text-primary-foreground data-[disabled]:opacity-50",t.class)}},n,{get children(){return x(Jn.Indicator,{class:"flex items-center justify-center text-current",get children(){return mw()}})}}))]};var bw=$('<nav class="flex items-center gap-1 text-muted-foreground"aria-label=breadcrumb>'),yw=$('<span class="truncate font-medium text-foreground">');const zi=e=>(()=>{var t=bw();return E(t,x(Pt,{get each(){return e.items},children:(n,r)=>[x(X,{get when(){return r()>0},get children(){return x(Ia,{class:"h-3.5 w-3.5 shrink-0 opacity-60"})}}),x(X,{get when(){return n.href},get fallback(){return(()=>{var o=yw();return E(o,()=>n.label),o})()},get children(){return x(zn,{class:"truncate cursor-pointer hover:text-foreground",get href(){return n.href},get children(){return n.label}})}})]})),t})();var xw=$('<span class="text-sm text-muted-foreground">'),vw=$('<ul class="absolute bottom-full left-0 right-0 z-[100] m-0 max-h-60 list-none overflow-y-auto rounded-lg border bg-card py-1 shadow-lg">'),ww=$('<ul class="m-0 grid list-none gap-2 [grid-template-columns:repeat(auto-fill,minmax(180px,1fr))]">'),_w=$('<section class="flex min-h-0 flex-1 flex-col gap-4 p-4"><header class="flex flex-col gap-1"></header><p class=" text-muted-foreground"></p><form class="flex flex-col gap-4 rounded-xl border bg-card p-4"><fieldset class="m-0 flex flex-wrap gap-2 border-0 p-0"><legend class="mb-1.5 font-medium"></legend></fieldset><label class="flex flex-col gap-1.5 font-medium"><span></span><div class="relative w-full"></div></label><section class="flex flex-col gap-2.5 rounded-lg border border-dashed bg-card p-3"><div class="flex flex-wrap items-center gap-2.5"><span class=font-semibold></span><span class="text-sm text-muted-foreground"></span><input type=file accept=image/*,application/pdf,text/plain,text/markdown,.md,.txt,.markdown multiple hidden>'),Ew=$('<label><input type=radio name=type class=hidden><strong class=" "></strong><span class="text-sm text-muted-foreground">'),kw=$("<li><button type=button>"),Sw=$('<img class="h-full w-full object-cover">'),Cw=$('<li><div class="flex h-14 w-14 items-center justify-center overflow-hidden rounded-md bg-card"></div><div class="flex min-w-0 flex-col"><span class="text-sm text-muted-foreground">'),Aw=$('<span class="rounded border border-border bg-background px-1 py-0.5 text-sm font-bold text-muted-foreground">'),Tw=$('<button type=button class="cursor-pointer overflow-hidden whitespace-nowrap border-0 bg-transparent p-0 text-left text-ellipsis hover:underline disabled:cursor-default">'),Dw=$('<p class=" text-destructive">'),Ow=$('<p class=" text-muted-foreground">');const Nw=5*1024*1024,eo=10,Rw=new Set(["application/pdf","text/plain","text/markdown"]);function Iw(e){const t=e.type;return t.startsWith("image/")?"image":t==="application/pdf"?"pdf":t==="text/plain"||t==="text/markdown"||t===""&&/\.(md|markdown|txt)$/i.test(e.name)?"text":null}function Mw(e){return e.type?e:/\.md$/i.test(e.name)||/\.markdown$/i.test(e.name)?new File([e],e.name,{type:"text/markdown"}):/\.txt$/i.test(e.name)?new File([e],e.name,{type:"text/plain"}):e}function Lw(){return Math.random().toString(36).slice(2,8)}const $w=[{value:"feat",labelKey:"newSpec.typeFeat",hintKey:"newSpec.typeFeatHint"},{value:"refct",labelKey:"newSpec.typeRefct",hintKey:"newSpec.typeRefctHint"},{value:"fix",labelKey:"newSpec.typeFix",hintKey:"newSpec.typeFixHint"}],Fw=()=>{const e=So(),t=qr(),[n,r]=I(""),[o,i]=I("feat"),[s,a]=I(null),[u,c]=I("idle"),[l,d]=I([]),[f,p]=I(null),[g,h]=I(null),[m,b]=I(""),[y,v]=I(!1),w=()=>u()==="creating",[_,k]=I(!1),[A,S]=I([]),[D,B]=I(0);let R=-1,M="",F=null,O=[],P=null,G=new Set,L="";const[q,j]=I(null);let N=!1,Y,ee;ge(()=>{P?.();for(const W of l())W.previewUrl&&URL.revokeObjectURL(W.previewUrl)}),ae(()=>{const W=q();if(!W)return;const ne=Ft.state.tasks[W];ne&&ne.status==="failed"&&(c("failed"),a(ne.error??T("newSpec.agentRunFailed")),P?.(),P=null)});async function Te(){const W=f();if(W)return W;const{draftId:ne}=await Ke.createDraft(t());return p(ne),ne}function Me(W){d(ne=>[...ne,W])}function Ne(W,ne){d(fe=>fe.map(ye=>ye.id===W?{...ye,...ne}:ye))}function Pe(W){d(ne=>{const fe=[];for(const ye of ne){if(ye.id===W){ye.previewUrl&&URL.revokeObjectURL(ye.previewUrl);continue}fe.push(ye)}return fe})}async function V(W){a(null);const ne=l(),fe=eo-ne.length;if(fe<=0){a(T("newSpec.attachmentLimit",{max:eo}));return}const ye=[];for(const _e of W.slice(0,fe)){const Ee=Mw(_e),Ze=Iw(Ee);if(!Ze){a(T("newSpec.unsupportedType",{name:Ee.name}));continue}if(Ze!=="image"&&!Rw.has(Ee.type)){a(T("newSpec.unsupportedMime",{mime:Ee.type||"(unknown)"}));continue}if(Ee.size>Nw){a(T("newSpec.fileTooLarge",{name:Ee.name}));continue}const Lt=`att-${Date.now()}-${Lw()}`,$t=Ze==="image"?URL.createObjectURL(Ee):void 0;ye.push({id:Lt,file:Ee,name:Ee.name,kind:Ze,previewUrl:$t,status:"pending"})}if(ye.length!==0){W.length>fe&&a(T("newSpec.attachmentRoomLimit",{room:fe,current:ne.length,max:eo}));for(const _e of ye)Me(_e);try{const _e=await Te();for(const Ee of ye)try{const Ze=await Ke.uploadAttachment(t(),_e,Ee.file);Ne(Ee.id,{storedName:Ze.storedName,name:Ze.storedName,status:"uploaded"})}catch(Ze){Ne(Ee.id,{status:"failed",error:Ze.message})}}catch(_e){a(_e.message);for(const Ee of ye)Ne(Ee.id,{status:"failed",error:_e.message})}}}async function K(W){const ne=W.currentTarget;if(!ne.files)return;const fe=Array.from(ne.files);ne.value="",await V(fe)}async function Z(W){const ne=W.clipboardData?.items;if(!ne)return;const fe=[];for(const ye of Array.from(ne))if(ye.kind==="file"&&ye.type.startsWith("image/")){const _e=ye.getAsFile();_e&&fe.push(_e)}fe.length!==0&&(W.preventDefault(),await V(fe))}function Ce(W){const ne=W.selectionStart,fe=W.value.slice(0,ne),ye=fe.lastIndexOf("@");if(ye===-1){Fe();return}if(ye>0&&!/\s/.test(fe[ye-1])){Fe();return}const _e=fe.slice(ye+1);if(!/^[\w./@-]*$/.test(_e)){Fe();return}R=ye,M=_e,_()||k(!0),Ye(_e)}function Fe(){k(!1),S([]),B(0),R=-1,M="",O=[],F&&(clearTimeout(F),F=null)}function Ye(W){F&&clearTimeout(F),F=setTimeout(async()=>{const ne=t();if(ne)try{const fe=await Ke.listFiles(ne,W);O=[],S(fe.items),B(0)}catch{S([])}},150)}function tt(W){const ne=n(),fe=ne.slice(0,R),ye=ne.slice(R+1+M.length),_e="@"+W,Ee=fe+_e+ye;if(r(Ee),Fe(),ee){const Ze=fe.length+_e.length;requestAnimationFrame(()=>{ee.focus(),ee.setSelectionRange(Ze,Ze)})}}function oe(){const W=O[D()];W&&W.scrollIntoView({block:"nearest"})}function qe(W){if(!_())return;const ne=A();if(ne.length!==0)if(W.key==="ArrowDown")W.preventDefault(),B(fe=>(fe+1)%ne.length),requestAnimationFrame(oe);else if(W.key==="ArrowUp")W.preventDefault(),B(fe=>(fe-1+ne.length)%ne.length),requestAnimationFrame(oe);else if(W.key==="Enter"||W.key==="Tab"){if(W.key==="Enter"&&W.isComposing)return;W.preventDefault(),tt(ne[D()])}else W.key==="Escape"&&(W.preventDefault(),Fe())}async function et(W){const ne=l().find(fe=>fe.id===W);if(ne){if(ne.storedName&&f())try{await Ke.deleteAttachment(t(),f(),ne.storedName)}catch(fe){a(fe.message)}Pe(W)}}function we(W){b(qc(W.name)),h(W.id)}async function z(W){const ne=m().trim();if(h(null),!(!ne||!W.storedName||!f())&&ne!==qc(W.name))try{const fe=await Ke.renameAttachment(t(),f(),W.storedName,ne);Ne(W.id,{storedName:fe.storedName,name:fe.storedName})}catch(fe){a(fe.message)}}async function me(){if(N)return;const W=L||t();try{const fe=(await Ke.listSpecs(W)).find(ye=>!G.has(ye.id));if(fe){N=!0;const ye=q();P?.(),P=null;const Ee=(W?`/${W}/specs/${encodeURIComponent(fe.id)}`:Zt(`specs/${encodeURIComponent(fe.id)}`))+(ye?`?runId=${encodeURIComponent(ye)}`:"");e(Ee)}}catch{}}async function Se(W){if(W.preventDefault(),u()==="creating")return;a(null);const ne=n().trim();if(ne.length<5){a(T("newSpec.descTooShort"));return}const fe=l().filter(_e=>_e.status==="failed");if(fe.length>0){a(T("newSpec.attachmentFailedCount",{count:fe.length}));return}if(l().filter(_e=>_e.status==="pending").length>0){a(T("newSpec.attachmentUploading"));return}c("creating"),N=!1;try{const _e=t();let Ee=_e;if(y()){const qt=Pw(ne);Ee=(await Ke.createWorktree(_e,{specSlug:qt})).id}L=Ee;const Ze=await Ke.listSpecs(Ee);G=new Set(Ze.map(qt=>qt.id));const Lt={type:o(),requirement:ne},$t=f();$t&&(Lt.draftId=$t);const mt=await Ke.createSpec(Ee,Lt);"draft"in mt&&mt.draft?(j(mt.runId),Ft.start({runId:mt.runId,projectId:Ee,mode:"skill-run",specId:`__draft__-${mt.runId}`,specTitle:T("newSpec.creatingSpec"),source:"draft"}),P=Jm(Ee,()=>{me()}),me()):"id"in mt&&e(`/${Ee}/specs/${encodeURIComponent(mt.id)}`)}catch(_e){a(_e.message),c("failed")}}return(()=>{var W=_w(),ne=W.firstChild,fe=ne.nextSibling,ye=fe.nextSibling,_e=ye.firstChild,Ee=_e.firstChild,Ze=_e.nextSibling,Lt=Ze.firstChild,$t=Lt.nextSibling,mt=Ze.nextSibling,qt=mt.firstChild,an=qt.firstChild,Nn=an.nextSibling,en=Nn.nextSibling;E(ne,x(zi,{get items(){return[{label:T("breadcrumb.specList"),href:Zt("")},{label:T("breadcrumb.newSpec")}]}})),E(fe,()=>T("newSpec.description")),ye.addEventListener("submit",Se),E(Ee,()=>T("newSpec.type")),E(_e,()=>$w.map(Ve=>(()=>{var Re=Ew(),ct=Re.firstChild,Ot=ct.nextSibling,$e=Ot.nextSibling;return ct.addEventListener("change",()=>i(Ve.value)),E(Ot,()=>T(Ve.labelKey)),E($e,()=>T(Ve.hintKey)),he(at=>{var Xe=`flex min-h-[44px] flex-1 cursor-pointer flex-col items-start gap-0.5 rounded-lg border p-3 transition-colors ${o()===Ve.value?"border-primary bg-primary/10":"border-border bg-background"}`,lt=w();return Xe!==at.e&&dt(Re,at.e=Xe),lt!==at.t&&(ct.disabled=at.t=lt),at},{e:void 0,t:void 0}),he(()=>ct.value=Ve.value),he(()=>ct.checked=o()===Ve.value),Re})()),null),E(ye,x(z0,{get checked(){return y()},onChange:Ve=>v(Ve),get disabled(){return w()},class:"flex flex-wrap items-center gap-2",get children(){return[x(U0,{}),x(B0,{class:"cursor-pointer font-medium",get children(){return T("newSpec.parallelWorktree")}}),(()=>{var Ve=xw();return E(Ve,()=>T("newSpec.parallelWorktreeDesc")),Ve})()]}}),Ze),E(Lt,()=>T("newSpec.requirement")),E($t,x(Ro,{ref(Ve){var Re=ee;typeof Re=="function"?Re(Ve):ee=Ve},rows:10,get value(){return n()},onInput:Ve=>{r(Ve.currentTarget.value),Ce(Ve.currentTarget)},onKeyDown:qe,onBlur:()=>setTimeout(()=>Fe(),150),onPaste:Z,get placeholder(){return T("newSpec.requirementPlaceholder")},required:!0,autofocus:!0,get disabled(){return w()},class:"resize-y"}),null),E($t,x(X,{get when(){return ce(()=>!!_())()&&A().length>0},get children(){var Ve=vw();return E(Ve,x(Pt,{get each(){return A()},children:(Re,ct)=>(()=>{var Ot=kw(),$e=Ot.firstChild;return tr(at=>O[ct()]=at,Ot),$e.$$mousedown=at=>{at.preventDefault(),tt(Re)},$e.addEventListener("mouseenter",()=>B(ct())),E($e,Re),he(()=>dt($e,`block w-full overflow-hidden whitespace-nowrap border-0 bg-transparent px-3 py-1.5 text-left text-ellipsis ${D()===ct()?"bg-primary text-primary-foreground":"text-foreground"}`)),Ot})()})),Ve}}),null),mt.addEventListener("paste",Z),E(an,()=>T("newSpec.attachments")),E(Nn,()=>T("newSpec.attachmentsHint",{count:l().length,max:eo})),E(qt,x(je,{variant:"outline",size:"sm",type:"button",onClick:()=>Y?.click(),get disabled(){return w()||l().length>=eo},get children(){return[x(Hm,{class:"mr-1 h-3.5 w-3.5"}),ce(()=>T("newSpec.importAttachment"))]}}),en),en.addEventListener("change",K);var Rn=Y;return typeof Rn=="function"?tr(Rn,en):Y=en,E(mt,x(X,{get when(){return l().length>0},get children(){var Ve=ww();return E(Ve,x(Pt,{get each(){return l()},children:Re=>(()=>{var ct=Cw(),Ot=ct.firstChild,$e=Ot.nextSibling,at=$e.firstChild;return E(Ot,x(X,{get when(){return ce(()=>Re.kind==="image")()&&Re.previewUrl},get fallback(){return(()=>{var Xe=Aw();return E(Xe,()=>Re.kind==="pdf"?"PDF":"TXT"),Xe})()},get children(){var Xe=Sw();return he(lt=>{var C=Re.previewUrl,U=Re.name;return C!==lt.e&&ve(Xe,"src",lt.e=C),U!==lt.t&&ve(Xe,"alt",lt.t=U),lt},{e:void 0,t:void 0}),Xe}})),E($e,x(X,{get when(){return g()===Re.id},get fallback(){return(()=>{var Xe=Tw();return Xe.$$click=()=>we(Re),E(Xe,()=>Re.name),he(lt=>{var C=w()||Re.status!=="uploaded",U=T("newSpec.clickToRename");return C!==lt.e&&(Xe.disabled=lt.e=C),U!==lt.t&&ve(Xe,"title",lt.t=U),lt},{e:void 0,t:void 0}),Xe})()},get children(){return x(ni,{type:"text",get value(){return m()},autofocus:!0,onInput:Xe=>b(Xe.currentTarget.value),onBlur:()=>void z(Re),onKeyDown:Xe=>{Xe.key==="Enter"?(Xe.preventDefault(),z(Re)):Xe.key==="Escape"&&h(null)},class:"h-7 py-0.5 text-sm"})}}),at),E(at,x(X,{get when(){return Re.status==="pending"},get children(){return[x(Mr,{class:"mr-0.5 inline h-3 w-3 animate-spin"}),ce(()=>T("newSpec.uploading"))]}}),null),E(at,x(X,{get when(){return Re.status==="failed"},get children(){return T("newSpec.uploadFailed",{error:Re.error})}}),null),E(at,x(X,{get when(){return Re.status==="uploaded"},get children(){return[ce(()=>Math.round(Re.file.size/1024))," KB · ",ce(()=>Re.kind)]}}),null),E(ct,x(je,{variant:"ghost",size:"icon",type:"button",class:"h-7 w-7",onClick:()=>void et(Re.id),get disabled(){return w()},get"aria-label"(){return T("newSpec.deleteAttachment",{name:Re.name})},get children(){return x(Ao,{class:"h-3.5 w-3.5"})}}),null),he(()=>dt(ct,`grid items-center gap-2 rounded-lg border bg-background p-2 [grid-template-columns:56px_1fr_auto] ${Re.status==="pending"?"opacity-75":""} ${Re.status==="failed"?"border-destructive":""}`)),ct})()})),Ve}}),null),E(ye,(()=>{var Ve=ce(()=>!!s());return()=>Ve()&&(()=>{var Re=Dw();return E(Re,s),Re})()})(),null),E(ye,x(je,{type:"submit",variant:"default",get disabled(){return w()},get children(){return ce(()=>!!w())()?T("newSpec.creating"):T("newSpec.createAndStart")}}),null),E(ye,(()=>{var Ve=ce(()=>!!w());return()=>Ve()&&(()=>{var Re=Ow();return E(Re,()=>T("newSpec.creatingHint")),Re})()})(),null),he(()=>_e.disabled=w()),W})()};function qc(e){const t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}function Pw(e){const n=(e.split(/\r?\n/)[0]??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,40);return n&&!/^[0-9]+$/.test(n)?n:`spec-${Date.now().toString(36)}`}Cn(["mousedown","click"]);const Hc={};function Bw(e){let t=Hc[e];if(t)return t;t=Hc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function zr(e,t){typeof t!="string"&&(t=zr.defaultChars);const n=Bw(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let i=0,s=r.length;i<s;i+=3){const a=parseInt(r.slice(i+1,i+3),16);if(a<128){o+=n[a];continue}if((a&224)===192&&i+3<s){const u=parseInt(r.slice(i+4,i+6),16);if((u&192)===128){const c=a<<6&1984|u&63;c<128?o+="��":o+=String.fromCharCode(c),i+=3;continue}}if((a&240)===224&&i+6<s){const u=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16);if((u&192)===128&&(c&192)===128){const l=a<<12&61440|u<<6&4032|c&63;l<2048||l>=55296&&l<=57343?o+="���":o+=String.fromCharCode(l),i+=6;continue}}if((a&248)===240&&i+9<s){const u=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16),l=parseInt(r.slice(i+10,i+12),16);if((u&192)===128&&(c&192)===128&&(l&192)===128){let d=a<<18&1835008|u<<12&258048|c<<6&4032|l&63;d<65536||d>1114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}}o+="�"}return o})}zr.defaultChars=";/?:@&=+$,#";zr.componentChars="";const jc={};function zw(e){let t=jc[e];if(t)return t;t=jc[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Io(e,t,n){typeof t!="string"&&(n=t,t=Io.defaultChars),typeof n>"u"&&(n=!0);const r=zw(t);let o="";for(let i=0,s=e.length;i<s;i++){const a=e.charCodeAt(i);if(n&&a===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){o+=e.slice(i,i+3),i+=2;continue}if(a<128){o+=r[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1<s){const u=e.charCodeAt(i+1);if(u>=56320&&u<=57343){o+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[i])}return o}Io.defaultChars=";/?:@&=+$,-_.!~*'()#";Io.componentChars="-_.!~*'()";function su(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function wi(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Uw=/^([a-z0-9.+-]+:)/i,Kw=/:[0-9]*$/,qw=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Hw=["<",">",'"',"`"," ","\r",`
|
|
644
|
-
`," "],jw=["{","}","|","\\","^","`"].concat(Hw),Gw=["'"].concat(jw),Gc=["%","/","?",";","#"].concat(Gw),Vc=["/","?","#"],Vw=255,Wc=/^[+a-z0-9A-Z_-]{0,63}$/,Ww=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Yc={javascript:!0,"javascript:":!0},Zc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function au(e,t){if(e&&e instanceof wi)return e;const n=new wi;return n.parse(e,t),n}wi.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const c=qw.exec(i);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=Uw.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=i.substr(0,2)==="//",o&&!(s&&Yc[s])&&(i=i.substr(2),this.slashes=!0)),!Yc[s]&&(o||s&&!Zc[s])){let c=-1;for(let g=0;g<Vc.length;g++)r=i.indexOf(Vc[g]),r!==-1&&(c===-1||r<c)&&(c=r);let l,d;c===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",c),d!==-1&&(l=i.slice(0,d),i=i.slice(d+1),this.auth=l),c=-1;for(let g=0;g<Gc.length;g++)r=i.indexOf(Gc[g]),r!==-1&&(c===-1||r<c)&&(c=r);c===-1&&(c=i.length),i[c-1]===":"&&c--;const f=i.slice(0,c);i=i.slice(c),this.parseHost(f),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const g=this.hostname.split(/\./);for(let h=0,m=g.length;h<m;h++){const b=g[h];if(b&&!b.match(Wc)){let y="";for(let v=0,w=b.length;v<w;v++)b.charCodeAt(v)>127?y+="x":y+=b[v];if(!y.match(Wc)){const v=g.slice(0,h),w=g.slice(h+1),_=b.match(Ww);_&&(v.push(_[1]),w.unshift(_[2])),w.length&&(i=w.join(".")+i),this.hostname=v.join(".");break}}}}this.hostname.length>Vw&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");a!==-1&&(this.hash=i.substr(a),i=i.slice(0,a));const u=i.indexOf("?");return u!==-1&&(this.search=i.substr(u),i=i.slice(0,u)),i&&(this.pathname=i),Zc[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};wi.prototype.parseHost=function(e){let t=Kw.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Yw=Object.freeze(Object.defineProperty({__proto__:null,decode:zr,encode:Io,format:su,parse:au},Symbol.toStringTag,{value:"Module"})),K0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q0=/[\0-\x1F\x7F-\x9F]/,Zw=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,uu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,H0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,j0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Xw=Object.freeze(Object.defineProperty({__proto__:null,Any:K0,Cc:q0,Cf:Zw,P:uu,S:H0,Z:j0},Symbol.toStringTag,{value:"Module"})),Qw=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Jw=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var ls;const e_=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),t_=(ls=String.fromCodePoint)!==null&&ls!==void 0?ls:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function n_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=e_.get(e))!==null&&t!==void 0?t:e}var Ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ct||(Ct={}));const r_=32;var Xn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Xn||(Xn={}));function Ca(e){return e>=Ct.ZERO&&e<=Ct.NINE}function o_(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_F||e>=Ct.LOWER_A&&e<=Ct.LOWER_F}function i_(e){return e>=Ct.UPPER_A&&e<=Ct.UPPER_Z||e>=Ct.LOWER_A&&e<=Ct.LOWER_Z||Ca(e)}function s_(e){return e===Ct.EQUALS||i_(e)}var Et;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Et||(Et={}));var Fn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Fn||(Fn={}));class a_{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Et.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Fn.Strict}startEntity(t){this.decodeMode=t,this.state=Et.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Et.EntityStart:return t.charCodeAt(n)===Ct.NUM?(this.state=Et.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Et.NamedEntity,this.stateNamedEntity(t,n));case Et.NumericStart:return this.stateNumericStart(t,n);case Et.NumericDecimal:return this.stateNumericDecimal(t,n);case Et.NumericHex:return this.stateNumericHex(t,n);case Et.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|r_)===Ct.LOWER_X?(this.state=Et.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Et.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const i=r-n;this.result=this.result*Math.pow(o,i)+parseInt(t.substr(n,i),o),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Ca(o)||o_(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(Ca(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ct.SEMI)this.consumed+=1;else if(this.decodeMode===Fn.Strict)return 0;return this.emitCodePoint(n_(this.result),this.consumed),this.errors&&(t!==Ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],i=(o&Xn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=u_(r,o,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Fn.Attribute&&(i===0||s_(s))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],i=(o&Xn.VALUE_LENGTH)>>14,i!==0){if(s===Ct.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Fn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Xn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Xn.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Et.NamedEntity:return this.result!==0&&(this.decodeMode!==Fn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Et.NumericDecimal:return this.emitNumericEntity(0,2);case Et.NumericHex:return this.emitNumericEntity(0,3);case Et.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Et.EntityStart:return 0}}}function G0(e){let t="";const n=new a_(e,r=>t+=t_(r));return function(o,i){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(i);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const u=t+o.slice(s);return t="",u}}function u_(e,t,n,r){const o=(t&Xn.BRANCH_LENGTH)>>7,i=t&Xn.JUMP_TABLE;if(o===0)return i!==0&&r===i?n:-1;if(i){const u=r-i;return u<0||u>=o?-1:e[n+u]-1}let s=n,a=s+o-1;for(;s<=a;){const u=s+a>>>1,c=e[u];if(c<r)s=u+1;else if(c>r)a=u-1;else return e[u+o]}return-1}const V0=G0(Qw);G0(Jw);function c_(e,t=Fn.Legacy){return V0(e,t)}function l_(e){return V0(e,Fn.Strict)}function d_(e){return Object.prototype.toString.call(e)}function cu(e){return d_(e)==="[object String]"}const f_=Object.prototype.hasOwnProperty;function g_(e,t){return f_.call(e,t)}function Ui(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function W0(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function lu(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function xo(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Y0=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,p_=/&([a-z#][a-z0-9]{1,31});/gi,h_=new RegExp(Y0.source+"|"+p_.source,"gi"),m_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function b_(e,t){if(t.charCodeAt(0)===35&&m_.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return lu(r)?xo(r):e}const n=c_(e);return n!==e?n:e}function y_(e){return e.indexOf("\\")<0?e:e.replace(Y0,"$1")}function Ur(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(h_,function(t,n,r){return n||b_(t,r)})}const x_=/[&<>"]/,v_=/[&<>"]/g,w_={"&":"&","<":"<",">":">",'"':"""};function __(e){return w_[e]}function ir(e){return x_.test(e)?e.replace(v_,__):e}const E_=/[.?*+^$[\]\\(){}|-]/g;function k_(e){return e.replace(E_,"\\$&")}function st(e){switch(e){case 9:case 32:return!0}return!1}function vo(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Z0(e){return uu.test(e)||H0.test(e)}function wo(e){return Z0(xo(e))}function _o(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ki(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Xc(e){return e===32||e===9||e===10||e===13}function qi(e){let t=0;for(;t<e.length&&Xc(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Xc(e.charCodeAt(n));n--);return e.slice(t,n+1)}const S_={mdurl:Yw,ucmicro:Xw},C_=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:W0,asciiTrim:qi,assign:Ui,escapeHtml:ir,escapeRE:k_,fromCodePoint:xo,has:g_,isMdAsciiPunct:_o,isPunctChar:Z0,isPunctCharCode:wo,isSpace:st,isString:cu,isValidEntityCode:lu,isWhiteSpace:vo,lib:S_,normalizeReference:Ki,unescapeAll:Ur,unescapeMd:y_},Symbol.toStringTag,{value:"Module"}));function A_(e,t,n){let r,o,i,s;const a=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===93&&(r--,r===0)){o=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)r++;else if(n)return e.pos=u,-1}}let c=-1;return o&&(c=e.pos),e.pos=u,c}function T_(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return i;if(r===62)return i.pos=o+1,i.str=Ur(e.slice(t+1,o)),i.ok=!0,i;if(r===92&&o+1<n){o+=2;continue}o++}return i}let s=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(s++,s>32))return i;if(r===41){if(s===0)break;s--}o++}return t===o||s!==0||(i.str=Ur(e.slice(t,o)),i.pos=o,i.ok=!0),i}function D_(e,t,n,r){let o,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(i>=n)return s;let a=e.charCodeAt(i);if(a!==34&&a!==39&&a!==40)return s;t++,i++,a===40&&(a=41),s.marker=a}for(;i<n;){if(o=e.charCodeAt(i),o===s.marker)return s.pos=i+1,s.str+=Ur(e.slice(t,i)),s.ok=!0,s;if(o===40&&s.marker===41)return s;o===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=Ur(e.slice(t,i)),s}const O_=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:T_,parseLinkLabel:A_,parseLinkTitle:D_},Symbol.toStringTag,{value:"Module"})),Dn={};Dn.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+ir(i.content)+"</code>"};Dn.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+ir(e[t].content)+`</code></pre>
|
|
645
|
-
`};Dn.fence=function(e,t,n,r,o){const i=e[t],s=i.info?Ur(i.info).trim():"";let a="",u="";if(s){const l=s.split(/(\s+)/g);a=l[0],u=l.slice(2).join("")}let c;if(n.highlight?c=n.highlight(i.content,a,u)||ir(i.content):c=ir(i.content),c.indexOf("<pre")===0)return c+`
|
|
646
|
-
`;if(s){const l=i.attrIndex("class"),d=i.attrs?i.attrs.slice():[];l<0?d.push(["class",n.langPrefix+a]):(d[l]=d[l].slice(),d[l][1]+=" "+n.langPrefix+a);const f={attrs:d};return`<pre><code${o.renderAttrs(f)}>${c}</code></pre>
|
|
647
|
-
`}return`<pre><code${o.renderAttrs(i)}>${c}</code></pre>
|
|
648
|
-
`};Dn.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)};Dn.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
649
|
-
`:`<br>
|
|
650
|
-
`};Dn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
651
|
-
`:`<br>
|
|
652
|
-
`:`
|
|
653
|
-
`};Dn.text=function(e,t){return ir(e[t].content)};Dn.html_block=function(e,t){return e[t].content};Dn.html_inline=function(e,t){return e[t].content};function Wr(){this.rules=Ui({},Dn)}Wr.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+ir(t.attrs[n][0])+'="'+ir(t.attrs[n][1])+'"';return o};Wr.prototype.renderToken=function(t,n,r){const o=t[n];let i="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
654
|
-
`),i+=(o.nesting===-1?"</":"<")+o.tag,i+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(i+=" /");let s=!1;if(o.block&&(s=!0,o.nesting===1&&n+1<t.length)){const a=t[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===o.tag)&&(s=!1)}return i+=s?`>
|
|
655
|
-
`:">",i};Wr.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const a=e[i].type;typeof o[a]<"u"?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r};Wr.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
|
|
656
|
-
`;break}return r};Wr.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const a=e[i].type;a==="inline"?r+=this.renderInline(e[i].children,t,n):typeof o[a]<"u"?r+=o[a](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};function Kt(){this.__rules__=[],this.__cache__=null}Kt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Kt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})};Kt.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null};Kt.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Kt.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Kt.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null};Kt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n};Kt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Kt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n};Kt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function gn(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}gn.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1};gn.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};gn.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o};gn.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r};gn.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function X0(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}X0.prototype.Token=gn;const N_=/\r\n?|\n/g,R_=/\0/g;function I_(e){let t;t=e.src.replace(N_,`
|
|
657
|
-
`),t=t.replace(R_,"�"),e.src=t}function M_(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function L_(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function $_(e){return/^<a[>\s]/i.test(e)}function F_(e){return/^<\/a\s*>/i.test(e)}function P_(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,i=0;for(let s=o.length-1;s>=0;s--){const a=o[s];if(a.type==="link_close"){for(s--;o[s].level!==a.level&&o[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&($_(a.content)&&i>0&&i--,F_(a.content)&&i++),!(i>0)&&a.type==="text"&&e.md.linkify.test(a.content)){const u=a.content;let c=e.md.linkify.match(u);const l=[];let d=a.level,f=0;c.length>0&&c[0].index===0&&s>0&&o[s-1].type==="text_special"&&(c=c.slice(1));for(let p=0;p<c.length;p++){const g=c[p].url,h=e.md.normalizeLink(g);if(!e.md.validateLink(h))continue;let m=c[p].text;c[p].schema?c[p].schema==="mailto:"&&!/^mailto:/i.test(m)?m=e.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):m=e.md.normalizeLinkText(m):m=e.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,"");const b=c[p].index;if(b>f){const _=new e.Token("text","",0);_.content=u.slice(f,b),_.level=d,l.push(_)}const y=new e.Token("link_open","a",1);y.attrs=[["href",h]],y.level=d++,y.markup="linkify",y.info="auto",l.push(y);const v=new e.Token("text","",0);v.content=m,v.level=d,l.push(v);const w=new e.Token("link_close","a",-1);w.level=--d,w.markup="linkify",w.info="auto",l.push(w),f=c[p].lastIndex}if(f<u.length){const p=new e.Token("text","",0);p.content=u.slice(f),p.level=d,l.push(p)}t[n].children=o=W0(o,s,l)}}}}const Q0=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,B_=/\((c|tm|r)\)/i,z_=/\((c|tm|r)\)/ig,U_={c:"©",r:"®",tm:"™"};function K_(e,t){return U_[t.toLowerCase()]}function q_(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(z_,K_)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function H_(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Q0.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function j_(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(B_.test(e.tokens[t].content)&&q_(e.tokens[t].children),Q0.test(e.tokens[t].content)&&H_(e.tokens[t].children))}const G_=/['"]/,Qc=/['"]/g,Jc="’";function Zo(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function V_(e,t){let n="",r=0;t.sort((o,i)=>o.pos-i.pos);for(let o=0;o<t.length;o++){const i=t[o];n+=e.slice(r,i.pos)+i.ch,r=i.pos+1}return n+e.slice(r)}function W_(e,t){let n;const r=[],o={};for(let i=0;i<e.length;i++){const s=e[i],a=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,s.type!=="text")continue;const u=s.content;let c=0;const l=u.length;e:for(;c<l;){Qc.lastIndex=c;const d=Qc.exec(u);if(!d)break;let f=!0,p=!0;c=d.index+1;const g=d[0]==="'";let h=32;if(d.index-1>=0)h=u.charCodeAt(d.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(c<l)m=u.charCodeAt(c);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const b=_o(h)||wo(h),y=_o(m)||wo(m),v=vo(h),w=vo(m);if(w?f=!1:y&&(v||b||(f=!1)),v?p=!1:b&&(w||y||(p=!1)),m===34&&d[0]==='"'&&h>=48&&h<=57&&(p=f=!1),f&&p&&(f=b,p=y),!f&&!p){g&&Zo(o,i,d.index,Jc);continue}if(p)for(n=r.length-1;n>=0;n--){let _=r[n];if(r[n].level<a)break;if(_.single===g&&r[n].level===a){_=r[n];let k,A;g?(k=t.md.options.quotes[2],A=t.md.options.quotes[3]):(k=t.md.options.quotes[0],A=t.md.options.quotes[1]),Zo(o,i,d.index,A),Zo(o,_.token,_.pos,k),r.length=n;continue e}}f?r.push({token:i,pos:d.index,single:g,level:a}):p&&g&&Zo(o,i,d.index,Jc)}}Object.keys(o).forEach(function(i){e[i].content=V_(e[i].content,o[i])})}function Y_(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!G_.test(e.tokens[t].content)||W_(e.tokens[t].children,e)}function Z_(e){let t,n;const r=e.tokens,o=r.length;for(let i=0;i<o;i++){if(r[i].type!=="inline")continue;const s=r[i].children,a=s.length;for(t=0;t<a;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<a;t++)s[t].type==="text"&&t+1<a&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const ds=[["normalize",I_],["block",M_],["inline",L_],["linkify",P_],["replacements",j_],["smartquotes",Y_],["text_join",Z_]];function du(){this.ruler=new Kt;for(let e=0;e<ds.length;e++)this.ruler.push(ds[e][0],ds[e][1])}du.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)};du.prototype.State=X0;function On(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let i=0,s=0,a=0,u=0,c=o.length,l=!1;s<c;s++){const d=o.charCodeAt(s);if(!l)if(st(d)){a++,d===9?u+=4-u%4:u++;continue}else l=!0;(d===10||s===c-1)&&(d!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(u),this.bsCount.push(0),l=!1,a=0,u=0,i=s+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}On.prototype.push=function(e,t,n){const r=new gn(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r};On.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};On.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};On.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!st(r))break}return t};On.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!st(this.src.charCodeAt(--t)))return t+1;return t};On.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t};On.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t};On.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const i=new Array(n-t);for(let s=0,a=t;a<n;a++,s++){let u=0;const c=this.bMarks[a];let l=c,d;for(a+1<n||o?d=this.eMarks[a]+1:d=this.eMarks[a];l<d&&u<r;){const f=this.src.charCodeAt(l);if(st(f))f===9?u+=4-(u+this.bsCount[a])%4:u++;else if(l-c<this.tShift[a])u++;else break;l++}u>r?i[s]=new Array(u-r+1).join(" ")+this.src.slice(l,d):i[s]=this.src.slice(l,d)}return i.join("")};On.prototype.Token=gn;const X_=65536;function fs(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function el(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,s=0,a="";for(;r<n;)o===124&&(i?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),i=o===92,r++,o=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function Q_(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(a!==124&&a!==45&&a!==58&&!st(a)||s===45&&st(a))return!1;for(;i<e.eMarks[o];){const w=e.src.charCodeAt(i);if(w!==124&&w!==45&&w!==58&&!st(w))return!1;i++}let u=fs(e,t+1),c=u.split("|");const l=[];for(let w=0;w<c.length;w++){const _=c[w].trim();if(!_){if(w===0||w===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?l.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?l.push("left"):l.push("")}if(u=fs(e,t).trim(),u.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=el(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==l.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),h=[t,0];g.map=h;const m=e.push("thead_open","thead",1);m.map=[t,t+1];const b=e.push("tr_open","tr",1);b.map=[t,t+1];for(let w=0;w<c.length;w++){const _=e.push("th_open","th",1);l[w]&&(_.attrs=[["style","text-align:"+l[w]]]);const k=e.push("inline","",0);k.content=c[w].trim(),k.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let y,v=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let w=!1;for(let k=0,A=p.length;k<A;k++)if(p[k](e,o,n,!0)){w=!0;break}if(w||(u=fs(e,o).trim(),!u)||e.sCount[o]-e.blkIndent>=4||(c=el(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),v+=d-c.length,v>X_))break;if(o===t+2){const k=e.push("tbody_open","tbody",1);k.map=y=[t+2,0]}const _=e.push("tr_open","tr",1);_.map=[o,o+1];for(let k=0;k<d;k++){const A=e.push("td_open","td",1);l[k]&&(A.attrs=[["style","text-align:"+l[k]]]);const S=e.push("inline","",0);S.content=c[k]?c[k].trim():"",S.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return y&&(e.push("tbody_close","tbody",-1),y[1]=o),e.push("table_close","table",-1),h[1]=o,e.parentType=f,e.line=o,!0}function J_(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
658
|
-
`,i.map=[t,e.line],!0}function e2(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>i)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let u=o-a;if(u<3)return!1;const c=e.src.slice(a,o),l=e.src.slice(o,i);if(s===96&&l.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(o=a=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===s&&!(e.sCount[d]-e.blkIndent>=4)&&(o=e.skipChars(o,s),!(o-a<u)&&(o=e.skipSpaces(o),!(o<i)))){f=!0;break}u=e.sCount[t],e.line=d+(f?1:0);const p=e.push("fence","code",0);return p.info=l,p.content=e.getLines(t+1,d,u,!0),p.markup=c,p.map=[t,e.line],!0}function t2(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const a=[],u=[],c=[],l=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p=!1,g;for(g=t;g<n;g++){const v=e.sCount[g]<e.blkIndent;if(o=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],o>=i)break;if(e.src.charCodeAt(o++)===62&&!v){let _=e.sCount[g]+1,k,A;e.src.charCodeAt(o)===32?(o++,_++,A=!1,k=!0):e.src.charCodeAt(o)===9?(k=!0,(e.bsCount[g]+_)%4===3?(o++,_++,A=!1):A=!0):k=!1;let S=_;for(a.push(e.bMarks[g]),e.bMarks[g]=o;o<i;){const D=e.src.charCodeAt(o);if(st(D))D===9?S+=4-(S+e.bsCount[g]+(A?1:0))%4:S++;else break;o++}p=o>=i,u.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(k?1:0),c.push(e.sCount[g]),e.sCount[g]=S-_,l.push(e.tShift[g]),e.tShift[g]=o-e.bMarks[g];continue}if(p)break;let w=!1;for(let _=0,k=d.length;_<k;_++)if(d[_](e,g,n,!0)){w=!0;break}if(w){e.lineMax=g,e.blkIndent!==0&&(a.push(e.bMarks[g]),u.push(e.bsCount[g]),l.push(e.tShift[g]),c.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}a.push(e.bMarks[g]),u.push(e.bsCount[g]),l.push(e.tShift[g]),c.push(e.sCount[g]),e.sCount[g]=-1}const h=e.blkIndent;e.blkIndent=0;const m=e.push("blockquote_open","blockquote",1);m.markup=">";const b=[t,0];m.map=b,e.md.block.tokenize(e,t,g);const y=e.push("blockquote_close","blockquote",-1);y.markup=">",e.lineMax=s,e.parentType=f,b[1]=e.line;for(let v=0;v<l.length;v++)e.bMarks[v+t]=a[v],e.tShift[v+t]=l[v],e.sCount[v+t]=c[v],e.bsCount[v+t]=u[v];return e.blkIndent=h,!0}function n2(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;i<o;){const c=e.src.charCodeAt(i++);if(c!==s&&!st(c))return!1;c===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const u=e.push("hr","hr",0);return u.map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(s)),!0}function tl(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const i=e.src.charCodeAt(r);if(!st(i))return-1}return r}function nl(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),i>=48&&i<=57){if(o-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return o<r&&(i=e.src.charCodeAt(o),!st(i))?-1:o}function r2(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function o2(e,t,n,r){let o,i,s,a,u=t,c=!0;if(e.sCount[u]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]<e.blkIndent)return!1;let l=!1;r&&e.parentType==="paragraph"&&e.sCount[u]>=e.blkIndent&&(l=!0);let d,f,p;if((p=nl(e,u))>=0){if(d=!0,s=e.bMarks[u]+e.tShift[u],f=Number(e.src.slice(s,p-1)),l&&f!==1)return!1}else if((p=tl(e,u))>=0)d=!1;else return!1;if(l&&e.skipSpaces(p)>=e.eMarks[u])return!1;if(r)return!0;const g=e.src.charCodeAt(p-1),h=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),f!==1&&(a.attrs=[["start",f]])):a=e.push("bullet_list_open","ul",1);const m=[u,0];a.map=m,a.markup=String.fromCharCode(g);let b=!1;const y=e.md.block.ruler.getRules("list"),v=e.parentType;for(e.parentType="list";u<n;){i=p,o=e.eMarks[u];const w=e.sCount[u]+p-(e.bMarks[u]+e.tShift[u]);let _=w;for(;i<o;){const P=e.src.charCodeAt(i);if(P===9)_+=4-(_+e.bsCount[u])%4;else if(P===32)_++;else break;i++}const k=i;let A;k>=o?A=1:A=_-w,A>4&&(A=1);const S=w+A;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(g);const D=[u,0];a.map=D,d&&(a.info=e.src.slice(s,p-1));const B=e.tight,R=e.tShift[u],M=e.sCount[u],F=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[u]=k-e.bMarks[u],e.sCount[u]=_,k>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||b)&&(c=!1),b=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=F,e.tShift[u]=R,e.sCount[u]=M,e.tight=B,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(g),u=e.line,D[1]=u,u>=n||e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)break;let O=!1;for(let P=0,G=y.length;P<G;P++)if(y[P](e,u,n,!0)){O=!0;break}if(O)break;if(d){if(p=nl(e,u),p<0)break;s=e.bMarks[u]+e.tShift[u]}else if(p=tl(e,u),p<0)break;if(g!==e.src.charCodeAt(p-1))break}return d?a=e.push("ordered_list_close","ol",-1):a=e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(g),m[1]=u,e.line=u,e.parentType=v,c&&r2(e,h),!0}function i2(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function a(y){const v=e.lineMax;if(y>=v||e.isEmpty(y))return null;let w=!1;if(e.sCount[y]-e.blkIndent>3&&(w=!0),e.sCount[y]<0&&(w=!0),!w){const A=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let D=!1;for(let B=0,R=A.length;B<R;B++)if(A[B](e,y,v,!0)){D=!0;break}if(e.parentType=S,D)return null}const _=e.bMarks[y]+e.tShift[y],k=e.eMarks[y];return e.src.slice(_,k+1)}let u=e.src.slice(o,i+1);i=u.length;let c=-1;for(o=1;o<i;o++){const y=u.charCodeAt(o);if(y===91)return!1;if(y===93){c=o;break}else if(y===10){const v=a(s);v!==null&&(u+=v,i=u.length,s++)}else if(y===92&&(o++,o<i&&u.charCodeAt(o)===10)){const v=a(s);v!==null&&(u+=v,i=u.length,s++)}}if(c<0||u.charCodeAt(c+1)!==58)return!1;for(o=c+2;o<i;o++){const y=u.charCodeAt(o);if(y===10){const v=a(s);v!==null&&(u+=v,i=u.length,s++)}else if(!st(y))break}const l=e.md.helpers.parseLinkDestination(u,o,i);if(!l.ok)return!1;const d=e.md.normalizeLink(l.str);if(!e.md.validateLink(d))return!1;o=l.pos;const f=o,p=s,g=o;for(;o<i;o++){const y=u.charCodeAt(o);if(y===10){const v=a(s);v!==null&&(u+=v,i=u.length,s++)}else if(!st(y))break}let h=e.md.helpers.parseLinkTitle(u,o,i);for(;h.can_continue;){const y=a(s);if(y===null)break;u+=y,o=i,i=u.length,s++,h=e.md.helpers.parseLinkTitle(u,o,i,h)}let m;for(o<i&&g!==o&&h.ok?(m=h.str,o=h.pos):(m="",o=f,s=p);o<i;){const y=u.charCodeAt(o);if(!st(y))break;o++}if(o<i&&u.charCodeAt(o)!==10&&m)for(m="",o=f,s=p;o<i;){const y=u.charCodeAt(o);if(!st(y))break;o++}if(o<i&&u.charCodeAt(o)!==10)return!1;const b=Ki(u.slice(1,c));return b?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[b]>"u"&&(e.env.references[b]={title:m,href:d}),e.line=s),!0):!1}const s2=["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"],a2="[a-zA-Z_:][a-zA-Z0-9:._-]*",u2="[^\"'=<>`\\x00-\\x20]+",c2="'[^']*'",l2='"[^"]*"',d2="(?:"+u2+"|"+c2+"|"+l2+")",f2="(?:\\s+"+a2+"(?:\\s*=\\s*"+d2+")?)",J0="<[A-Za-z][A-Za-z0-9\\-]*"+f2+"*\\s*\\/?>",eg="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",g2="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",p2="<[?][\\s\\S]*?[?]>",h2="<![A-Za-z][^>]*>",m2="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",b2=new RegExp("^(?:"+J0+"|"+eg+"|"+g2+"|"+p2+"|"+h2+"|"+m2+")"),y2=new RegExp("^(?:"+J0+"|"+eg+")"),pr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+s2.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(y2.source+"\\s*$"),/^$/,!1]];function x2(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,i),a=0;for(;a<pr.length&&!pr[a][0].test(s);a++);if(a===pr.length)return!1;if(r)return pr[a][2];let u=t+1;const c=pr[a][1].test("");if(!pr[a][1].test(s)){for(;u<n&&!(e.sCount[u]<e.blkIndent&&(c||!e.isEmpty(u)));u++)if(o=e.bMarks[u]+e.tShift[u],i=e.eMarks[u],s=e.src.slice(o,i),pr[a][1].test(s)){s.length!==0&&u++;break}}e.line=u;const l=e.push("html_block","",0);return l.map=[t,u],l.content=e.getLines(t,u,e.blkIndent,!0),!0}function v2(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=i)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o<i&&a<=6;)a++,s=e.src.charCodeAt(++o);if(a>6||o<i&&!st(s))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const u=e.skipCharsBack(i,35,o);u>o&&st(e.src.charCodeAt(u-1))&&(i=u),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const l=e.push("inline","",0);l.content=qi(e.src.slice(o,i)),l.map=[t,e.line],l.children=[];const d=e.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function w2(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i=0,s,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const g=e.eMarks[a];if(p<g&&(s=e.src.charCodeAt(p),(s===45||s===61)&&(p=e.skipChars(p,s),p=e.skipSpaces(p),p>=g))){i=s===61?1:2;break}}if(e.sCount[a]<0)continue;let f=!1;for(let p=0,g=r.length;p<g;p++)if(r[p](e,a,n,!0)){f=!0;break}if(f)break}if(!i)return e.parentType=o,!1;const u=qi(e.getLines(t,a,e.blkIndent,!1));e.line=a+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const l=e.push("inline","",0);l.content=u,l.map=[t,e.line-1],l.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup=String.fromCharCode(s),e.parentType=o,!0}function _2(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let c=!1;for(let l=0,d=r.length;l<d;l++)if(r[l](e,i,n,!0)){c=!0;break}if(c)break}const s=qi(e.getLines(t,i,e.blkIndent,!1));e.line=i;const a=e.push("paragraph_open","p",1);a.map=[t,e.line];const u=e.push("inline","",0);return u.content=s,u.map=[t,e.line],u.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const Xo=[["table",Q_,["paragraph","reference"]],["code",J_],["fence",e2,["paragraph","reference","blockquote","list"]],["blockquote",t2,["paragraph","reference","blockquote","list"]],["hr",n2,["paragraph","reference","blockquote","list"]],["list",o2,["paragraph","reference","blockquote"]],["reference",i2],["html_block",x2,["paragraph","reference","blockquote"]],["heading",v2,["paragraph","reference","blockquote"]],["lheading",w2],["paragraph",_2]];function Hi(){this.ruler=new Kt;for(let e=0;e<Xo.length;e++)this.ruler.push(Xo[e][0],Xo[e][1],{alt:(Xo[e][2]||[]).slice()})}Hi.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const u=e.line;let c=!1;for(let l=0;l<o;l++)if(c=r[l](e,s,n,!1),c){if(u>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}};Hi.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)};Hi.prototype.State=On;function Mo(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Mo.prototype.pushPending=function(){const e=new gn("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};Mo.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new gn(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r};Mo.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const m=this.src.charCodeAt(e-2);o=(m&64512)===55296?65536+(m-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const s=i-e;let a=i<n?this.src.charCodeAt(i):32;if((a&64512)===55296){const m=this.src.charCodeAt(i+1);a=(m&64512)===56320?65536+(a-55296<<10)+(m-56320):65533}else(a&64512)===56320&&(a=65533);const u=_o(o)||wo(o),c=_o(a)||wo(a),l=vo(o),d=vo(a),f=!d&&(!c||l||u),p=!l&&(!u||d||c);return{can_open:f&&(t||!p||u),can_close:p&&(t||!f||c),length:s}};Mo.prototype.Token=gn;function E2(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function k2(e,t){let n=e.pos;for(;n<e.posMax&&!E2(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const S2=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function C2(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(S2);if(!o)return!1;const i=o[1],s=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!s)return!1;let a=s.url;if(a.length<=i.length)return!1;let u=a.length;for(;u>0&&a.charCodeAt(u-1)===42;)u--;u!==a.length&&(a=a.slice(0,u));const c=e.md.normalizeLink(a);if(!e.md.validateLink(c))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const l=e.push("link_open","a",1);l.attrs=[["href",c]],l.markup="linkify",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(a);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=a.length-i.length,!0}function A2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let i=r-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&st(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const fu=[];for(let e=0;e<256;e++)fu.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){fu[e.charCodeAt(0)]=1});function T2(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!st(o));)n++;return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const a=e.src.charCodeAt(n+1);a>=56320&&a<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const a=e.push("text_special","",0);o<256&&fu[o]!==0?a.content=i:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function D2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(o,n),a=s.length;if(e.backticksScanned&&(e.backticks[a]||0)<=o)return t||(e.pending+=s),e.pos+=a,!0;let u=n,c;for(;(c=e.src.indexOf("`",u))!==-1;){for(u=c+1;u<i&&e.src.charCodeAt(u)===96;)u++;const l=u-c;if(l===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=u,!0}e.backticks[l]=c}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=a,!0}function O2(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const s=String.fromCharCode(r);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let u=0;u<i;u+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function rl(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const a=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[a.token-1].type==="text"&&e.tokens[a.token-1].content==="~"&&r.push(a.token-1)}for(;r.length;){const i=r.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function N2(e){const t=e.tokens_meta,n=e.tokens_meta.length;rl(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&rl(e,t[r].delimiters)}const tg={tokenize:O2,postProcess:N2};function R2(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let i=0;i<o.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function ol(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const i=t[o.end],s=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),u=e.tokens[o.token];u.type=s?"strong_open":"em_open",u.tag=s?"strong":"em",u.nesting=1,u.markup=s?a+a:a,u.content="";const c=e.tokens[i.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function I2(e){const t=e.tokens_meta,n=e.tokens_meta.length;ol(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ol(e,t[r].delimiters)}const ng={tokenize:R2,postProcess:I2};function M2(e,t){let n,r,o,i,s="",a="",u=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const l=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let g=p+1;if(g<d&&e.src.charCodeAt(g)===40){for(c=!1,g++;g<d&&(n=e.src.charCodeAt(g),!(!st(n)&&n!==10));g++);if(g>=d)return!1;if(u=g,o=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?g=o.pos:s="",u=g;g<d&&(n=e.src.charCodeAt(g),!(!st(n)&&n!==10));g++);if(o=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&u!==g&&o.ok)for(a=o.str,g=o.pos;g<d&&(n=e.src.charCodeAt(g),!(!st(n)&&n!==10));g++);}(g>=d||e.src.charCodeAt(g)!==41)&&(c=!0),g++}if(c){if(typeof e.env.references>"u")return!1;if(g<d&&e.src.charCodeAt(g)===91?(u=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?r=e.src.slice(u,g++):g=p+1):g=p+1,r||(r=e.src.slice(f,p)),i=e.env.references[Ki(r)],!i)return e.pos=l,!1;s=i.href,a=i.title}if(!t){e.pos=f,e.posMax=p;const h=e.push("link_open","a",1),m=[["href",s]];h.attrs=m,a&&m.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}function L2(e,t){let n,r,o,i,s,a,u,c,l="";const d=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(i=g+1,i<f&&e.src.charCodeAt(i)===40){for(i++;i<f&&(n=e.src.charCodeAt(i),!(!st(n)&&n!==10));i++);if(i>=f)return!1;for(c=i,a=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),a.ok&&(l=e.md.normalizeLink(a.str),e.md.validateLink(l)?i=a.pos:l=""),c=i;i<f&&(n=e.src.charCodeAt(i),!(!st(n)&&n!==10));i++);if(a=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<f&&c!==i&&a.ok)for(u=a.str,i=a.pos;i<f&&(n=e.src.charCodeAt(i),!(!st(n)&&n!==10));i++);else u="";if(i>=f||e.src.charCodeAt(i)!==41)return e.pos=d,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<f&&e.src.charCodeAt(i)===91?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=g+1):i=g+1,o||(o=e.src.slice(p,g)),s=e.env.references[Ki(o)],!s)return e.pos=d,!1;l=s.href,u=s.title}if(!t){r=e.src.slice(p,g);const h=[];e.md.inline.parse(r,e.md,e.env,h);const m=e.push("image","img",0),b=[["src",l],["alt",""]];m.attrs=b,m.children=h,m.content=r,u&&b.push(["title",u])}return e.pos=i,e.posMax=f,!0}const $2=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,F2=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function P2(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(r+1,n);if(F2.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}if($2.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(i);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=i.length+2,!0}return!1}function B2(e){return/^<a[>\s]/i.test(e)}function z2(e){return/^<\/a\s*>/i.test(e)}function U2(e){const t=e|32;return t>=97&&t<=122}function K2(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!U2(o))return!1;const i=e.src.slice(r).match(b2);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],B2(s.content)&&e.linkLevel++,z2(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const q2=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,H2=/^&([a-z][a-z0-9]{1,31});/i;function j2(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(q2);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),a=e.push("text_special","",0);a.content=lu(s)?xo(s):xo(65533),a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(H2);if(i){const s=l_(i[0]);if(s!==i[0]){if(!t){const a=e.push("text_special","",0);a.content=s,a.markup=i[0],a.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function il(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let s=0;s<n;s++){const a=e[s];if(i.push(0),(e[r].marker!==a.marker||o!==a.token-1)&&(r=s),o=a.token,a.length=a.length||0,!a.close)continue;t.hasOwnProperty(a.marker)||(t[a.marker]=[-1,-1,-1,-1,-1,-1]);const u=t[a.marker][(a.open?3:0)+a.length%3];let c=r-i[r]-1,l=c;for(;c>u;c-=i[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let f=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(f=!0),!f){const p=c>0&&!e[c-1].open?i[c-1]+1:0;i[s]=s-c+p,i[c]=p,a.open=!1,d.end=s,d.close=!1,l=-1,o=-2;break}}}l!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=l)}}function G2(e){const t=e.tokens_meta,n=e.tokens_meta.length;il(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&il(t[r].delimiters)}function V2(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<i&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const gs=[["text",k2],["linkify",C2],["newline",A2],["escape",T2],["backticks",D2],["strikethrough",tg.tokenize],["emphasis",ng.tokenize],["link",M2],["image",L2],["autolink",P2],["html_inline",K2],["entity",j2]],ps=[["balance_pairs",G2],["strikethrough",tg.postProcess],["emphasis",ng.postProcess],["fragments_join",V2]];function Lo(){this.ruler=new Kt;for(let e=0;e<gs.length;e++)this.ruler.push(gs[e][0],gs[e][1]);this.ruler2=new Kt;for(let e=0;e<ps.length;e++)this.ruler2.push(ps[e][0],ps[e][1])}Lo.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<o){for(let a=0;a<r;a++)if(e.level++,s=n[a](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};Lo.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let s=!1;if(e.level<o){for(let a=0;a<n;a++)if(s=t[a](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};Lo.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),s=i.length;for(let a=0;a<s;a++)i[a](o)};Lo.prototype.State=Mo;function W2(e){const t={};e=e||{},t.src_Any=K0.source,t.src_Cc=q0.source,t.src_Z=j0.source,t.src_P=uu.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Aa(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function ji(e){return Object.prototype.toString.call(e)}function Y2(e){return ji(e)==="[object String]"}function Z2(e){return ji(e)==="[object Object]"}function X2(e){return ji(e)==="[object RegExp]"}function sl(e){return ji(e)==="[object Function]"}function Q2(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function J2(e){return Object.keys(e||{}).reduce(function(t,n){return t||rg.hasOwnProperty(n)},!1)}const eE={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},tE="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",nE="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rE(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function al(){return function(e,t){t.normalize(e)}}function _i(e){const t=e.re=W2(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(tE),n.push(t.src_xn),t.src_tlds=n.join("|");function r(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function i(a,u){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+u)}Object.keys(e.__schemas__).forEach(function(a){const u=e.__schemas__[a];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[a]=c,Z2(u)){X2(u.validate)?c.validate=rE(u.validate):sl(u.validate)?c.validate=u.validate:i(a,u),sl(u.normalize)?c.normalize=u.normalize:u.normalize?i(a,u):c.normalize=al();return}if(Y2(u)){o.push(a);return}i(a,u)}),o.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:al()};const s=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(Q2).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function og(e,t,n,r){const o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function Qt(e,t){if(!(this instanceof Qt))return new Qt(e,t);t||J2(e)&&(t=e,e={}),this.__opts__=Aa({},rg,t),this.__schemas__=Aa({},eE,e),this.__compiled__={},this.__tlds__=nE,this.__tlds_replaced__=!1,this.re={},_i(this)}Qt.prototype.add=function(t,n){return this.__schemas__[t]=n,_i(this),this};Qt.prototype.set=function(t){return this.__opts__=Aa(this.__opts__,t),this};Qt.prototype.test=function(t){if(!t.length)return!1;let n,r;if(this.re.schema_test.test(t)){for(r=this.re.schema_search,r.lastIndex=0;(n=r.exec(t))!==null;)if(this.testSchemaAt(t,n[2],r.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};Qt.prototype.pretest=function(t){return this.re.pretest.test(t)};Qt.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0};Qt.prototype.match=function(t){const n=[],r=[],o=[],i=[];let s,a,u;function c(f,p){return f?p?f.index!==p.index?f.index<p.index?f:p:f.lastIndex>=p.lastIndex?f:p:f:p}if(!t.length)return null;if(this.re.schema_test.test(t))for(u=this.re.schema_search,u.lastIndex=0;(s=u.exec(t))!==null;)a=this.testSchemaAt(t,s[2],u.lastIndex),a&&r.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(u=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)o.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(u=this.re.email_fuzzy_global,u.lastIndex=0;(s=u.exec(t))!==null;)i.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const l=[0,0,0];let d=0;for(;;){const f=[r[l[0]],i[l[1]],o[l[2]]],p=c(c(f[0],f[1]),f[2]);if(!p)break;if(p===f[0]?l[0]++:p===f[1]?l[1]++:l[2]++,p.index<d)continue;const g=new og(t,p.schema,p.index,p.lastIndex);this.__compiled__[g.schema].normalize(g,this),n.push(g),d=p.lastIndex}return n.length?n:null};Qt.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);if(!r)return null;const o=new og(t,n[2],n.index+n[1].length,n.index+n[0].length+r);return this.__compiled__[o.schema].normalize(o,this),o};Qt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,i){return r!==i[o-1]}).reverse(),_i(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,_i(this),this)};Qt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Qt.prototype.onCompile=function(){};const Pr=2147483647,vn=36,gu=1,Eo=26,oE=38,iE=700,ig=72,sg=128,ag="-",sE=/^xn--/,aE=/[^\0-\x7F]/,uE=/[\x2E\u3002\uFF0E\uFF61]/g,cE={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hs=vn-gu,wn=Math.floor,ms=String.fromCharCode;function Zn(e){throw new RangeError(cE[e])}function lE(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function ug(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(uE,".");const o=e.split("."),i=lE(o,t).join(".");return r+i}function cg(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const dE=e=>String.fromCodePoint(...e),fE=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:vn},ul=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},lg=function(e,t,n){let r=0;for(e=n?wn(e/iE):e>>1,e+=wn(e/t);e>hs*Eo>>1;r+=vn)e=wn(e/hs);return wn(r+(hs+1)*e/(e+oE))},dg=function(e){const t=[],n=e.length;let r=0,o=sg,i=ig,s=e.lastIndexOf(ag);s<0&&(s=0);for(let a=0;a<s;++a)e.charCodeAt(a)>=128&&Zn("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const u=r;for(let l=1,d=vn;;d+=vn){a>=n&&Zn("invalid-input");const f=fE(e.charCodeAt(a++));f>=vn&&Zn("invalid-input"),f>wn((Pr-r)/l)&&Zn("overflow"),r+=f*l;const p=d<=i?gu:d>=i+Eo?Eo:d-i;if(f<p)break;const g=vn-p;l>wn(Pr/g)&&Zn("overflow"),l*=g}const c=t.length+1;i=lg(r-u,c,u==0),wn(r/c)>Pr-o&&Zn("overflow"),o+=wn(r/c),r%=c,t.splice(r++,0,o)}return String.fromCodePoint(...t)},fg=function(e){const t=[];e=cg(e);const n=e.length;let r=sg,o=0,i=ig;for(const u of e)u<128&&t.push(ms(u));const s=t.length;let a=s;for(s&&t.push(ag);a<n;){let u=Pr;for(const l of e)l>=r&&l<u&&(u=l);const c=a+1;u-r>wn((Pr-o)/c)&&Zn("overflow"),o+=(u-r)*c,r=u;for(const l of e)if(l<r&&++o>Pr&&Zn("overflow"),l===r){let d=o;for(let f=vn;;f+=vn){const p=f<=i?gu:f>=i+Eo?Eo:f-i;if(d<p)break;const g=d-p,h=vn-p;t.push(ms(ul(p+g%h,0))),d=wn(g/h)}t.push(ms(ul(d,0))),i=lg(o,c,a===s),o=0,++a}++o,++r}return t.join("")},gE=function(e){return ug(e,function(t){return sE.test(t)?dg(t.slice(4).toLowerCase()):t})},pE=function(e){return ug(e,function(t){return aE.test(t)?"xn--"+fg(t):t})},gg={version:"2.3.1",ucs2:{decode:cg,encode:dE},decode:dg,encode:fg,toASCII:pE,toUnicode:gE},hE={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},mE={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},bE={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},yE={default:hE,zero:mE,commonmark:bE},xE=/^(vbscript|javascript|file|data):/,vE=/^data:image\/(gif|png|jpeg|webp);/;function wE(e){const t=e.trim().toLowerCase();return xE.test(t)?vE.test(t):!0}const pg=["http:","https:","mailto:"];function _E(e){const t=au(e,!0);if(t.hostname&&(!t.protocol||pg.indexOf(t.protocol)>=0))try{t.hostname=gg.toASCII(t.hostname)}catch{}return Io(su(t))}function EE(e){const t=au(e,!0);if(t.hostname&&(!t.protocol||pg.indexOf(t.protocol)>=0))try{t.hostname=gg.toUnicode(t.hostname)}catch{}return zr(su(t),zr.defaultChars+"%")}function on(e,t){if(!(this instanceof on))return new on(e,t);t||cu(e)||(t=e||{},e="default"),this.inline=new Lo,this.block=new Hi,this.core=new du,this.renderer=new Wr,this.linkify=new Qt,this.validateLink=wE,this.normalizeLink=_E,this.normalizeLinkText=EE,this.utils=C_,this.helpers=Ui({},O_),this.options={},this.configure(e),t&&this.set(t)}on.prototype.set=function(e){return Ui(this.options,e),this};on.prototype.configure=function(e){const t=this;if(cu(e)){const n=e;if(e=yE[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};on.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this};on.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this};on.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};on.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};on.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};on.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};on.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};function hg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bs,cl;function kE(){if(cl)return bs;cl=1;var e=!0,t=!1,n=!1;bs=function(h,m){m&&(e=!m.enabled,t=!!m.label,n=!!m.labelAfter),h.core.ruler.after("inline","github-task-lists",function(b){for(var y=b.tokens,v=2;v<y.length;v++)i(y,v)&&(s(y[v],b.Token),r(y[v-2],"class","task-list-item"+(e?"":" enabled")),r(y[o(y,v-2)],"class","contains-task-list"))})};function r(h,m,b){var y=h.attrIndex(m),v=[m,b];y<0?h.attrPush(v):h.attrs[y]=v}function o(h,m){for(var b=h[m].level-1,y=m-1;y>=0;y--)if(h[y].level===b)return y;return-1}function i(h,m){return d(h[m])&&f(h[m-1])&&p(h[m-2])&&g(h[m])}function s(h,m){if(h.children.unshift(a(h,m)),h.children[1].content=h.children[1].content.slice(3),h.content=h.content.slice(3),t)if(n){h.children.pop();var b="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);h.children[0].content=h.children[0].content.slice(0,-1)+' id="'+b+'">',h.children.push(l(h.content,b,m))}else h.children.unshift(u(m)),h.children.push(c(m))}function a(h,m){var b=new m("html_inline","",0),y=e?' disabled="" ':"";return h.content.indexOf("[ ] ")===0?b.content='<input class="task-list-item-checkbox"'+y+'type="checkbox">':(h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0)&&(b.content='<input class="task-list-item-checkbox" checked=""'+y+'type="checkbox">'),b}function u(h){var m=new h("html_inline","",0);return m.content="<label>",m}function c(h){var m=new h("html_inline","",0);return m.content="</label>",m}function l(h,m,b){var y=new b("html_inline","",0);return y.content='<label class="task-list-item-label" for="'+m+'">'+h+"</label>",y.attrs=[{for:m}],y}function d(h){return h.type==="inline"}function f(h){return h.type==="paragraph_open"}function p(h){return h.type==="list_item_open"}function g(h){return h.content.indexOf("[ ] ")===0||h.content.indexOf("[x] ")===0||h.content.indexOf("[X] ")===0}return bs}var SE=kE();const CE=hg(SE);var ys,ll;function AE(){if(ll)return ys;ll=1;function e(C){return C instanceof Map?C.clear=C.delete=C.set=function(){throw new Error("map is read-only")}:C instanceof Set&&(C.add=C.clear=C.delete=function(){throw new Error("set is read-only")}),Object.freeze(C),Object.getOwnPropertyNames(C).forEach(U=>{const re=C[U],Ie=typeof re;(Ie==="object"||Ie==="function")&&!Object.isFrozen(re)&&e(re)}),C}class t{constructor(U){U.data===void 0&&(U.data={}),this.data=U.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(C){return C.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(C,...U){const re=Object.create(null);for(const Ie in C)re[Ie]=C[Ie];return U.forEach(function(Ie){for(const ft in Ie)re[ft]=Ie[ft]}),re}const o="</span>",i=C=>!!C.scope,s=(C,{prefix:U})=>{if(C.startsWith("language:"))return C.replace("language:","language-");if(C.includes(".")){const re=C.split(".");return[`${U}${re.shift()}`,...re.map((Ie,ft)=>`${Ie}${"_".repeat(ft+1)}`)].join(" ")}return`${U}${C}`};class a{constructor(U,re){this.buffer="",this.classPrefix=re.classPrefix,U.walk(this)}addText(U){this.buffer+=n(U)}openNode(U){if(!i(U))return;const re=s(U.scope,{prefix:this.classPrefix});this.span(re)}closeNode(U){i(U)&&(this.buffer+=o)}value(){return this.buffer}span(U){this.buffer+=`<span class="${U}">`}}const u=(C={})=>{const U={children:[]};return Object.assign(U,C),U};class c{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(U){this.top.children.push(U)}openNode(U){const re=u({scope:U});this.add(re),this.stack.push(re)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(U){return this.constructor._walk(U,this.rootNode)}static _walk(U,re){return typeof re=="string"?U.addText(re):re.children&&(U.openNode(re),re.children.forEach(Ie=>this._walk(U,Ie)),U.closeNode(re)),U}static _collapse(U){typeof U!="string"&&U.children&&(U.children.every(re=>typeof re=="string")?U.children=[U.children.join("")]:U.children.forEach(re=>{c._collapse(re)}))}}class l extends c{constructor(U){super(),this.options=U}addText(U){U!==""&&this.add(U)}startScope(U){this.openNode(U)}endScope(){this.closeNode()}__addSublanguage(U,re){const Ie=U.root;re&&(Ie.scope=`language:${re}`),this.add(Ie)}toHTML(){return new a(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function d(C){return C?typeof C=="string"?C:C.source:null}function f(C){return h("(?=",C,")")}function p(C){return h("(?:",C,")*")}function g(C){return h("(?:",C,")?")}function h(...C){return C.map(re=>d(re)).join("")}function m(C){const U=C[C.length-1];return typeof U=="object"&&U.constructor===Object?(C.splice(C.length-1,1),U):{}}function b(...C){return"("+(m(C).capture?"":"?:")+C.map(Ie=>d(Ie)).join("|")+")"}function y(C){return new RegExp(C.toString()+"|").exec("").length-1}function v(C,U){const re=C&&C.exec(U);return re&&re.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _(C,{joinWith:U}){let re=0;return C.map(Ie=>{re+=1;const ft=re;let gt=d(Ie),pe="";for(;gt.length>0;){const de=w.exec(gt);if(!de){pe+=gt;break}pe+=gt.substring(0,de.index),gt=gt.substring(de.index+de[0].length),de[0][0]==="\\"&&de[1]?pe+="\\"+String(Number(de[1])+ft):(pe+=de[0],de[0]==="("&&re++)}return pe}).map(Ie=>`(${Ie})`).join(U)}const k=/\b\B/,A="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",D="\\b\\d+(\\.\\d+)?",B="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",R="\\b(0b[01]+)",M="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(C={})=>{const U=/^#![ ]*\//;return C.binary&&(C.begin=h(U,/.*\b/,C.binary,/\b.*/)),r({scope:"meta",begin:U,end:/$/,relevance:0,"on:begin":(re,Ie)=>{re.index!==0&&Ie.ignoreMatch()}},C)},O={begin:"\\\\[\\s\\S]",relevance:0},P={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[O]},G={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[O]},L={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},q=function(C,U,re={}){const Ie=r({scope:"comment",begin:C,end:U,contains:[]},re);Ie.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const ft=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ie.contains.push({begin:h(/[ ]+/,"(",ft,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ie},j=q("//","$"),N=q("/\\*","\\*/"),Y=q("#","$"),ee={scope:"number",begin:D,relevance:0},Te={scope:"number",begin:B,relevance:0},Me={scope:"number",begin:R,relevance:0},Ne={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},Pe={scope:"title",begin:A,relevance:0},V={scope:"title",begin:S,relevance:0},K={begin:"\\.\\s*"+S,relevance:0};var Ce=Object.freeze({__proto__:null,APOS_STRING_MODE:P,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:Me,BINARY_NUMBER_RE:R,COMMENT:q,C_BLOCK_COMMENT_MODE:N,C_LINE_COMMENT_MODE:j,C_NUMBER_MODE:Te,C_NUMBER_RE:B,END_SAME_AS_BEGIN:function(C){return Object.assign(C,{"on:begin":(U,re)=>{re.data._beginMatch=U[1]},"on:end":(U,re)=>{re.data._beginMatch!==U[1]&&re.ignoreMatch()}})},HASH_COMMENT_MODE:Y,IDENT_RE:A,MATCH_NOTHING_RE:k,METHOD_GUARD:K,NUMBER_MODE:ee,NUMBER_RE:D,PHRASAL_WORDS_MODE:L,QUOTE_STRING_MODE:G,REGEXP_MODE:Ne,RE_STARTERS_RE:M,SHEBANG:F,TITLE_MODE:Pe,UNDERSCORE_IDENT_RE:S,UNDERSCORE_TITLE_MODE:V});function Fe(C,U){C.input[C.index-1]==="."&&U.ignoreMatch()}function Ye(C,U){C.className!==void 0&&(C.scope=C.className,delete C.className)}function tt(C,U){U&&C.beginKeywords&&(C.begin="\\b("+C.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",C.__beforeBegin=Fe,C.keywords=C.keywords||C.beginKeywords,delete C.beginKeywords,C.relevance===void 0&&(C.relevance=0))}function oe(C,U){Array.isArray(C.illegal)&&(C.illegal=b(...C.illegal))}function qe(C,U){if(C.match){if(C.begin||C.end)throw new Error("begin & end are not supported with match");C.begin=C.match,delete C.match}}function et(C,U){C.relevance===void 0&&(C.relevance=1)}const we=(C,U)=>{if(!C.beforeMatch)return;if(C.starts)throw new Error("beforeMatch cannot be used with starts");const re=Object.assign({},C);Object.keys(C).forEach(Ie=>{delete C[Ie]}),C.keywords=re.keywords,C.begin=h(re.beforeMatch,f(re.begin)),C.starts={relevance:0,contains:[Object.assign(re,{endsParent:!0})]},C.relevance=0,delete re.beforeMatch},z=["of","and","for","in","not","or","if","then","parent","list","value"],me="keyword";function Se(C,U,re=me){const Ie=Object.create(null);return typeof C=="string"?ft(re,C.split(" ")):Array.isArray(C)?ft(re,C):Object.keys(C).forEach(function(gt){Object.assign(Ie,Se(C[gt],U,gt))}),Ie;function ft(gt,pe){U&&(pe=pe.map(de=>de.toLowerCase())),pe.forEach(function(de){const De=de.split("|");Ie[De[0]]=[gt,W(De[0],De[1])]})}}function W(C,U){return U?Number(U):ne(C)?0:1}function ne(C){return z.includes(C.toLowerCase())}const fe={},ye=C=>{console.error(C)},_e=(C,...U)=>{console.log(`WARN: ${C}`,...U)},Ee=(C,U)=>{fe[`${C}/${U}`]||(console.log(`Deprecated as of ${C}. ${U}`),fe[`${C}/${U}`]=!0)},Ze=new Error;function Lt(C,U,{key:re}){let Ie=0;const ft=C[re],gt={},pe={};for(let de=1;de<=U.length;de++)pe[de+Ie]=ft[de],gt[de+Ie]=!0,Ie+=y(U[de-1]);C[re]=pe,C[re]._emit=gt,C[re]._multi=!0}function $t(C){if(Array.isArray(C.begin)){if(C.skip||C.excludeBegin||C.returnBegin)throw ye("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ze;if(typeof C.beginScope!="object"||C.beginScope===null)throw ye("beginScope must be object"),Ze;Lt(C,C.begin,{key:"beginScope"}),C.begin=_(C.begin,{joinWith:""})}}function mt(C){if(Array.isArray(C.end)){if(C.skip||C.excludeEnd||C.returnEnd)throw ye("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ze;if(typeof C.endScope!="object"||C.endScope===null)throw ye("endScope must be object"),Ze;Lt(C,C.end,{key:"endScope"}),C.end=_(C.end,{joinWith:""})}}function qt(C){C.scope&&typeof C.scope=="object"&&C.scope!==null&&(C.beginScope=C.scope,delete C.scope)}function an(C){qt(C),typeof C.beginScope=="string"&&(C.beginScope={_wrap:C.beginScope}),typeof C.endScope=="string"&&(C.endScope={_wrap:C.endScope}),$t(C),mt(C)}function Nn(C){function U(pe,de){return new RegExp(d(pe),"m"+(C.case_insensitive?"i":"")+(C.unicodeRegex?"u":"")+(de?"g":""))}class re{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(de,De){De.position=this.position++,this.matchIndexes[this.matchAt]=De,this.regexes.push([De,de]),this.matchAt+=y(de)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const de=this.regexes.map(De=>De[1]);this.matcherRe=U(_(de,{joinWith:"|"}),!0),this.lastIndex=0}exec(de){this.matcherRe.lastIndex=this.lastIndex;const De=this.matcherRe.exec(de);if(!De)return null;const _t=De.findIndex((Yr,Gi)=>Gi>0&&Yr!==void 0),bt=this.matchIndexes[_t];return De.splice(0,_t),Object.assign(De,bt)}}class Ie{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(de){if(this.multiRegexes[de])return this.multiRegexes[de];const De=new re;return this.rules.slice(de).forEach(([_t,bt])=>De.addRule(_t,bt)),De.compile(),this.multiRegexes[de]=De,De}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(de,De){this.rules.push([de,De]),De.type==="begin"&&this.count++}exec(de){const De=this.getMatcher(this.regexIndex);De.lastIndex=this.lastIndex;let _t=De.exec(de);if(this.resumingScanAtSamePosition()&&!(_t&&_t.index===this.lastIndex)){const bt=this.getMatcher(0);bt.lastIndex=this.lastIndex+1,_t=bt.exec(de)}return _t&&(this.regexIndex+=_t.position+1,this.regexIndex===this.count&&this.considerAll()),_t}}function ft(pe){const de=new Ie;return pe.contains.forEach(De=>de.addRule(De.begin,{rule:De,type:"begin"})),pe.terminatorEnd&&de.addRule(pe.terminatorEnd,{type:"end"}),pe.illegal&&de.addRule(pe.illegal,{type:"illegal"}),de}function gt(pe,de){const De=pe;if(pe.isCompiled)return De;[Ye,qe,an,we].forEach(bt=>bt(pe,de)),C.compilerExtensions.forEach(bt=>bt(pe,de)),pe.__beforeBegin=null,[tt,oe,et].forEach(bt=>bt(pe,de)),pe.isCompiled=!0;let _t=null;return typeof pe.keywords=="object"&&pe.keywords.$pattern&&(pe.keywords=Object.assign({},pe.keywords),_t=pe.keywords.$pattern,delete pe.keywords.$pattern),_t=_t||/\w+/,pe.keywords&&(pe.keywords=Se(pe.keywords,C.case_insensitive)),De.keywordPatternRe=U(_t,!0),de&&(pe.begin||(pe.begin=/\B|\b/),De.beginRe=U(De.begin),!pe.end&&!pe.endsWithParent&&(pe.end=/\B|\b/),pe.end&&(De.endRe=U(De.end)),De.terminatorEnd=d(De.end)||"",pe.endsWithParent&&de.terminatorEnd&&(De.terminatorEnd+=(pe.end?"|":"")+de.terminatorEnd)),pe.illegal&&(De.illegalRe=U(pe.illegal)),pe.contains||(pe.contains=[]),pe.contains=[].concat(...pe.contains.map(function(bt){return Rn(bt==="self"?pe:bt)})),pe.contains.forEach(function(bt){gt(bt,De)}),pe.starts&>(pe.starts,de),De.matcher=ft(De),De}if(C.compilerExtensions||(C.compilerExtensions=[]),C.contains&&C.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return C.classNameAliases=r(C.classNameAliases||{}),gt(C)}function en(C){return C?C.endsWithParent||en(C.starts):!1}function Rn(C){return C.variants&&!C.cachedVariants&&(C.cachedVariants=C.variants.map(function(U){return r(C,{variants:null},U)})),C.cachedVariants?C.cachedVariants:en(C)?r(C,{starts:C.starts?r(C.starts):null}):Object.isFrozen(C)?r(C):C}var Ve="11.11.1";class Re extends Error{constructor(U,re){super(U),this.name="HTMLInjectionError",this.html=re}}const ct=n,Ot=r,$e=Symbol("nomatch"),at=7,Xe=function(C){const U=Object.create(null),re=Object.create(null),Ie=[];let ft=!0;const gt="Could not find the language '{}', did you forget to load/include a language module?",pe={disableAutodetect:!0,name:"Plain text",contains:[]};let de={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:l};function De(Q){return de.noHighlightRe.test(Q)}function _t(Q){let xe=Q.className+" ";xe+=Q.parentNode?Q.parentNode.className:"";const He=de.languageDetectRe.exec(xe);if(He){const rt=Gn(He[1]);return rt||(_e(gt.replace("{}",He[1])),_e("Falling back to no-highlight mode for this block.",Q)),rt?He[1]:"no-highlight"}return xe.split(/\s+/).find(rt=>De(rt)||Gn(rt))}function bt(Q,xe,He){let rt="",yt="";typeof xe=="object"?(rt=Q,He=xe.ignoreIllegals,yt=xe.language):(Ee("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ee("10.7.0",`Please use highlight(code, options) instead.
|
|
659
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),yt=Q,rt=xe),He===void 0&&(He=!0);const un={code:rt,language:yt};Fo("before:highlight",un);const Vn=un.result?un.result:Yr(un.language,un.code,He);return Vn.code=un.code,Fo("after:highlight",Vn),Vn}function Yr(Q,xe,He,rt){const yt=Object.create(null);function un(ie,be){return ie.keywords[be]}function Vn(){if(!Le.keywords){Tt.addText(ot);return}let ie=0;Le.keywordPatternRe.lastIndex=0;let be=Le.keywordPatternRe.exec(ot),Be="";for(;be;){Be+=ot.substring(ie,be.index);const Qe=hn.case_insensitive?be[0].toLowerCase():be[0],Nt=un(Le,Qe);if(Nt){const[In,Kg]=Nt;if(Tt.addText(Be),Be="",yt[Qe]=(yt[Qe]||0)+1,yt[Qe]<=at&&(zo+=Kg),In.startsWith("_"))Be+=be[0];else{const qg=hn.classNameAliases[In]||In;pn(be[0],qg)}}else Be+=be[0];ie=Le.keywordPatternRe.lastIndex,be=Le.keywordPatternRe.exec(ot)}Be+=ot.substring(ie),Tt.addText(Be)}function Po(){if(ot==="")return;let ie=null;if(typeof Le.subLanguage=="string"){if(!U[Le.subLanguage]){Tt.addText(ot);return}ie=Yr(Le.subLanguage,ot,!0,_u[Le.subLanguage]),_u[Le.subLanguage]=ie._top}else ie=Vi(ot,Le.subLanguage.length?Le.subLanguage:null);Le.relevance>0&&(zo+=ie.relevance),Tt.__addSublanguage(ie._emitter,ie.language)}function Ht(){Le.subLanguage!=null?Po():Vn(),ot=""}function pn(ie,be){ie!==""&&(Tt.startScope(be),Tt.addText(ie),Tt.endScope())}function yu(ie,be){let Be=1;const Qe=be.length-1;for(;Be<=Qe;){if(!ie._emit[Be]){Be++;continue}const Nt=hn.classNameAliases[ie[Be]]||ie[Be],In=be[Be];Nt?pn(In,Nt):(ot=In,Vn(),ot=""),Be++}}function xu(ie,be){return ie.scope&&typeof ie.scope=="string"&&Tt.openNode(hn.classNameAliases[ie.scope]||ie.scope),ie.beginScope&&(ie.beginScope._wrap?(pn(ot,hn.classNameAliases[ie.beginScope._wrap]||ie.beginScope._wrap),ot=""):ie.beginScope._multi&&(yu(ie.beginScope,be),ot="")),Le=Object.create(ie,{parent:{value:Le}}),Le}function vu(ie,be,Be){let Qe=v(ie.endRe,Be);if(Qe){if(ie["on:end"]){const Nt=new t(ie);ie["on:end"](be,Nt),Nt.isMatchIgnored&&(Qe=!1)}if(Qe){for(;ie.endsParent&&ie.parent;)ie=ie.parent;return ie}}if(ie.endsWithParent)return vu(ie.parent,be,Be)}function Fg(ie){return Le.matcher.regexIndex===0?(ot+=ie[0],1):(Xi=!0,0)}function Pg(ie){const be=ie[0],Be=ie.rule,Qe=new t(Be),Nt=[Be.__beforeBegin,Be["on:begin"]];for(const In of Nt)if(In&&(In(ie,Qe),Qe.isMatchIgnored))return Fg(be);return Be.skip?ot+=be:(Be.excludeBegin&&(ot+=be),Ht(),!Be.returnBegin&&!Be.excludeBegin&&(ot=be)),xu(Be,ie),Be.returnBegin?0:be.length}function Bg(ie){const be=ie[0],Be=xe.substring(ie.index),Qe=vu(Le,ie,Be);if(!Qe)return $e;const Nt=Le;Le.endScope&&Le.endScope._wrap?(Ht(),pn(be,Le.endScope._wrap)):Le.endScope&&Le.endScope._multi?(Ht(),yu(Le.endScope,ie)):Nt.skip?ot+=be:(Nt.returnEnd||Nt.excludeEnd||(ot+=be),Ht(),Nt.excludeEnd&&(ot=be));do Le.scope&&Tt.closeNode(),!Le.skip&&!Le.subLanguage&&(zo+=Le.relevance),Le=Le.parent;while(Le!==Qe.parent);return Qe.starts&&xu(Qe.starts,ie),Nt.returnEnd?0:be.length}function zg(){const ie=[];for(let be=Le;be!==hn;be=be.parent)be.scope&&ie.unshift(be.scope);ie.forEach(be=>Tt.openNode(be))}let Bo={};function wu(ie,be){const Be=be&&be[0];if(ot+=ie,Be==null)return Ht(),0;if(Bo.type==="begin"&&be.type==="end"&&Bo.index===be.index&&Be===""){if(ot+=xe.slice(be.index,be.index+1),!ft){const Qe=new Error(`0 width match regex (${Q})`);throw Qe.languageName=Q,Qe.badRule=Bo.rule,Qe}return 1}if(Bo=be,be.type==="begin")return Pg(be);if(be.type==="illegal"&&!He){const Qe=new Error('Illegal lexeme "'+Be+'" for mode "'+(Le.scope||"<unnamed>")+'"');throw Qe.mode=Le,Qe}else if(be.type==="end"){const Qe=Bg(be);if(Qe!==$e)return Qe}if(be.type==="illegal"&&Be==="")return ot+=`
|
|
660
|
-
`,1;if(Zi>1e5&&Zi>be.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ot+=Be,Be.length}const hn=Gn(Q);if(!hn)throw ye(gt.replace("{}",Q)),new Error('Unknown language: "'+Q+'"');const Ug=Nn(hn);let Yi="",Le=rt||Ug;const _u={},Tt=new de.__emitter(de);zg();let ot="",zo=0,lr=0,Zi=0,Xi=!1;try{if(hn.__emitTokens)hn.__emitTokens(xe,Tt);else{for(Le.matcher.considerAll();;){Zi++,Xi?Xi=!1:Le.matcher.considerAll(),Le.matcher.lastIndex=lr;const ie=Le.matcher.exec(xe);if(!ie)break;const be=xe.substring(lr,ie.index),Be=wu(be,ie);lr=ie.index+Be}wu(xe.substring(lr))}return Tt.finalize(),Yi=Tt.toHTML(),{language:Q,value:Yi,relevance:zo,illegal:!1,_emitter:Tt,_top:Le}}catch(ie){if(ie.message&&ie.message.includes("Illegal"))return{language:Q,value:ct(xe),illegal:!0,relevance:0,_illegalBy:{message:ie.message,index:lr,context:xe.slice(lr-100,lr+100),mode:ie.mode,resultSoFar:Yi},_emitter:Tt};if(ft)return{language:Q,value:ct(xe),illegal:!1,relevance:0,errorRaised:ie,_emitter:Tt,_top:Le};throw ie}}function Gi(Q){const xe={value:ct(Q),illegal:!1,relevance:0,_top:pe,_emitter:new de.__emitter(de)};return xe._emitter.addText(Q),xe}function Vi(Q,xe){xe=xe||de.languages||Object.keys(U);const He=Gi(Q),rt=xe.filter(Gn).filter(bu).map(Ht=>Yr(Ht,Q,!1));rt.unshift(He);const yt=rt.sort((Ht,pn)=>{if(Ht.relevance!==pn.relevance)return pn.relevance-Ht.relevance;if(Ht.language&&pn.language){if(Gn(Ht.language).supersetOf===pn.language)return 1;if(Gn(pn.language).supersetOf===Ht.language)return-1}return 0}),[un,Vn]=yt,Po=un;return Po.secondBest=Vn,Po}function Cg(Q,xe,He){const rt=xe&&re[xe]||He;Q.classList.add("hljs"),Q.classList.add(`language-${rt}`)}function Wi(Q){let xe=null;const He=_t(Q);if(De(He))return;if(Fo("before:highlightElement",{el:Q,language:He}),Q.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",Q);return}if(Q.children.length>0&&(de.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(Q)),de.throwUnescapedHTML))throw new Re("One of your code blocks includes unescaped HTML.",Q.innerHTML);xe=Q;const rt=xe.textContent,yt=He?bt(rt,{language:He,ignoreIllegals:!0}):Vi(rt);Q.innerHTML=yt.value,Q.dataset.highlighted="yes",Cg(Q,He,yt.language),Q.result={language:yt.language,re:yt.relevance,relevance:yt.relevance},yt.secondBest&&(Q.secondBest={language:yt.secondBest.language,relevance:yt.secondBest.relevance}),Fo("after:highlightElement",{el:Q,result:yt,text:rt})}function Ag(Q){de=Ot(de,Q)}const Tg=()=>{$o(),Ee("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Dg(){$o(),Ee("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let hu=!1;function $o(){function Q(){$o()}if(document.readyState==="loading"){hu||window.addEventListener("DOMContentLoaded",Q,!1),hu=!0;return}document.querySelectorAll(de.cssSelector).forEach(Wi)}function Og(Q,xe){let He=null;try{He=xe(C)}catch(rt){if(ye("Language definition for '{}' could not be registered.".replace("{}",Q)),ft)ye(rt);else throw rt;He=pe}He.name||(He.name=Q),U[Q]=He,He.rawDefinition=xe.bind(null,C),He.aliases&&mu(He.aliases,{languageName:Q})}function Ng(Q){delete U[Q];for(const xe of Object.keys(re))re[xe]===Q&&delete re[xe]}function Rg(){return Object.keys(U)}function Gn(Q){return Q=(Q||"").toLowerCase(),U[Q]||U[re[Q]]}function mu(Q,{languageName:xe}){typeof Q=="string"&&(Q=[Q]),Q.forEach(He=>{re[He.toLowerCase()]=xe})}function bu(Q){const xe=Gn(Q);return xe&&!xe.disableAutodetect}function Ig(Q){Q["before:highlightBlock"]&&!Q["before:highlightElement"]&&(Q["before:highlightElement"]=xe=>{Q["before:highlightBlock"](Object.assign({block:xe.el},xe))}),Q["after:highlightBlock"]&&!Q["after:highlightElement"]&&(Q["after:highlightElement"]=xe=>{Q["after:highlightBlock"](Object.assign({block:xe.el},xe))})}function Mg(Q){Ig(Q),Ie.push(Q)}function Lg(Q){const xe=Ie.indexOf(Q);xe!==-1&&Ie.splice(xe,1)}function Fo(Q,xe){const He=Q;Ie.forEach(function(rt){rt[He]&&rt[He](xe)})}function $g(Q){return Ee("10.7.0","highlightBlock will be removed entirely in v12.0"),Ee("10.7.0","Please use highlightElement now."),Wi(Q)}Object.assign(C,{highlight:bt,highlightAuto:Vi,highlightAll:$o,highlightElement:Wi,highlightBlock:$g,configure:Ag,initHighlighting:Tg,initHighlightingOnLoad:Dg,registerLanguage:Og,unregisterLanguage:Ng,listLanguages:Rg,getLanguage:Gn,registerAliases:mu,autoDetection:bu,inherit:Ot,addPlugin:Mg,removePlugin:Lg}),C.debugMode=function(){ft=!1},C.safeMode=function(){ft=!0},C.versionString=Ve,C.regex={concat:h,lookahead:f,either:b,optional:g,anyNumberOfTimes:p};for(const Q in Ce)typeof Ce[Q]=="object"&&e(Ce[Q]);return Object.assign(C,Ce),C},lt=Xe({});return lt.newInstance=()=>Xe({}),ys=lt,lt.HighlightJS=lt,lt.default=lt,ys}var xs,dl;function TE(){if(dl)return xs;dl=1;function e(t){const n=t.regex,r=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=t.inherit(s,{begin:/\(/,end:/\)/}),u=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,c,u,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,a,c,u]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(r,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:l}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return xs=e,xs}var vs,fl;function DE(){if(fl)return vs;fl=1;function e(t){const n=t.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s=t.inherit(t.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,r,i]};i.contains.push(u);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,r]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=t.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],b=["true","false"],y={match:/(\/[a-z._-]+)+/},v=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],w=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],_=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:b,built_in:[...v,...w,"set","shopt",..._,...k]},contains:[g,t.SHEBANG(),h,f,s,a,y,u,c,l,d,r]}}return vs=e,vs}var ws,gl;function OE(){if(gl)return ws;gl=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="("+o+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},g=n.optional(i)+t.IDENT_RE+"\\s*\\(",b={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},y=[f,u,r,t.C_BLOCK_COMMENT_MODE,d,l],v={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:b,contains:y.concat([{begin:/\(/,end:/\)/,keywords:b,contains:y.concat(["self"]),relevance:0}]),relevance:0},w={begin:"("+a+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:b,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:b,relevance:0},{begin:g,returnBegin:!0,contains:[t.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:b,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:b,disableAutodetect:!0,illegal:"</",contains:[].concat(v,w,y,[f,{begin:t.IDENT_RE+"::",keywords:b},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},t.TITLE_MODE]}]),exports:{preprocessor:f,strings:l,keywords:b}}}return ws=e,ws}var _s,pl;function NE(){if(pl)return _s;pl=1;function e(t){const n=t.regex,r=t.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="(?!struct)("+o+"|"+n.optional(i)+"[a-zA-Z_]\\w*"+n.optional("<[^<>]+>")+")",u={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},t.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(l,{className:"string"}),{className:"string",begin:/<.*?>/},r,t.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:n.optional(i)+t.IDENT_RE,relevance:0},g=n.optional(i)+t.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],b=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],y=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],_={type:m,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:b},k={className:"function.dispatch",relevance:0,keywords:{_hint:y},begin:n.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,t.IDENT_RE,n.lookahead(/(<[^<>]+>|)\s*\(/))},A=[k,f,u,r,t.C_BLOCK_COMMENT_MODE,d,l],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:A.concat([{begin:/\(/,end:/\)/,keywords:_,contains:A.concat(["self"]),relevance:0}]),relevance:0},D={className:"function",begin:"("+a+"[\\*&\\s]+)+"+g,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:o,keywords:_,relevance:0},{begin:g,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[l,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[r,t.C_BLOCK_COMMENT_MODE,l,d,u,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",r,t.C_BLOCK_COMMENT_MODE,l,d,u]}]},u,r,t.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,D,k,A,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:_,contains:["self",u]},{begin:t.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return _s=e,_s}var Es,hl;function RE(){if(hl)return Es;hl=1;function e(t){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],o=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(s),built_in:n,literal:o},u=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),c={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},l={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=t.inherit(d,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:a},g=t.inherit(p,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,g]},m={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},b=t.inherit(m,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});p.contains=[m,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.C_BLOCK_COMMENT_MODE],g.contains=[b,h,f,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,c,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const y={variants:[l,m,h,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},u]},w=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",_={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},y,c,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},u,v,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[u,v,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+w+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[y,c,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},_]}}return Es=e,Es}var ks,ml;function IE(){if(ml)return ks;ml=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=c.regex,d=e(c),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},p="and or not only",g=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",m=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[d.BLOCK_COMMENT,f,d.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[d.BLOCK_COMMENT,d.HEXCOLOR,d.IMPORTANT,d.CSS_NUMBER_MODE,...m,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...m,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},d.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:g},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:p,attribute:o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...m,d.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return ks=u,ks}var Ss,bl;function ME(){if(bl)return Ss;bl=1;function e(t){const n=t.regex,r={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},s={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},u=/[A-Za-z][A-Za-z0-9+.-]*/,c={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n.concat(/\[.+?\]\(/,u,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},l={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=t.inherit(l,{contains:[]}),p=t.inherit(d,{contains:[]});l.contains.push(p),d.contains.push(f);let g=[r,c];return[l,d,f,p].forEach(y=>{y.contains=y.contains.concat(g)}),g=g.concat(l,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},r,s,l,d,{className:"quote",begin:"^>\\s+",contains:g,end:"$"},i,o,c,a,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}return Ss=e,Ss}var Cs,yl;function LE(){if(yl)return Cs;yl=1;function e(t){const n=t.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:n.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:n.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return Cs=e,Cs}var As,xl;function $E(){if(xl)return As;xl=1;function e(t){const n=t.regex,r="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=n.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=n.concat(o,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},u={className:"doctag",begin:"@[A-Za-z]+"},c={begin:"#<",end:">"},l=[t.COMMENT("#","$",{contains:[u]}),t.COMMENT("^=begin","^=end",{contains:[u],relevance:10}),t.COMMENT("^__END__",t.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:a},f={className:"string",contains:[t.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:n.concat(/<<[-~]?'?/,n.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[t.BACKSLASH_ESCAPE,d]})]}]},p="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},m={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},A=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[m]},{begin:t.IDENT_RE+"::"},{className:"symbol",begin:t.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:r}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+t.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[t.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(c,l),relevance:0}].concat(c,l);d.contains=A,m.contains=A;const R=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:a,contains:A}}];return l.unshift(c),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[t.SHEBANG({binary:"ruby"})].concat(R).concat(l).concat(A)}}return As=e,As}var Ts,vl;function FE(){if(vl)return Ts;vl=1;function e(t){const s={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:s,illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"string",variants:[t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[t.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,illegal:/["']/}]}]}}return Ts=e,Ts}var Ds,wl;function PE(){if(wl)return Ds;wl=1;function e(t){const n=t.regex,r=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[t.HASH_COMMENT_MODE,t.QUOTE_STRING_MODE,t.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:n.concat(r,n.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}return Ds=e,Ds}var Os,_l;function BE(){if(_l)return Os;_l=1;function e(t){const n=t.regex,r={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:t.NUMBER_RE}]},o=t.COMMENT();o.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},u={begin:/\[/,end:/\]/,contains:[o,s,i,a,r,"self"],relevance:0},c=/[A-Za-z0-9_-]+/,l=/"(\\"|[^"])*"/,d=/'[^']*'/,f=n.either(c,l,d),p=n.concat(f,"(\\s*\\.\\s*",f,")*",n.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[o,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[o,u,s,i,a,r]}}]}}return Os=e,Os}var Ns,El;function zE(){if(El)return Ns;El=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(s,a,u){return u===-1?"":s.replace(a,c=>o(s,a,u-1))}function i(s){const a=s.regex,u="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",c=u+o("(?:<"+u+"~~~(?:\\s*,\\s*"+u+"~~~)*>)?",/~~~/g,2),g={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+u,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},m={className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[s.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:g,illegal:/<\/|#/,contains:[s.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[s.BACKSLASH_ESCAPE]},s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,u],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,u),/\s+/,u,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,u],className:{1:"keyword",3:"title.class"},contains:[m,s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+c+"\\s+)",s.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:g,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[h,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,r,s.C_BLOCK_COMMENT_MODE]},s.C_LINE_COMMENT_MODE,s.C_BLOCK_COMMENT_MODE]},r,h]}}return Ns=i,Ns}var Rs,kl;function UE(){if(kl)return Rs;kl=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,r,o);function u(c){const l=c.regex,d=(V,{after:K})=>{const Z="</"+V[0].slice(1);return V.input.indexOf(Z,K)!==-1},f=e,p={begin:"<>",end:"</>"},g=/<[A-Za-z0-9\\._:-]+\s*\/>/,h={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,K)=>{const Z=V[0].length+V.index,Ce=V.input[Z];if(Ce==="<"||Ce===","){K.ignoreMatch();return}Ce===">"&&(d(V,{after:Z})||K.ignoreMatch());let Fe;const Ye=V.input.substring(Z);if(Fe=Ye.match(/^\s*=/)){K.ignoreMatch();return}if((Fe=Ye.match(/^\s+extends\s+/))&&Fe.index===0){K.ignoreMatch();return}}},m={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},b="[0-9](_?[0-9])*",y=`\\.(${b})`,v="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",w={className:"number",variants:[{begin:`(\\b(${v})((${y})|\\.)?|(${y}))[eE][+-]?(${b})\\b`},{begin:`\\b(${v})\\b((${y})\\b|\\.)?|(${y})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},k={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},A={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,_],subLanguage:"css"}},S={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,_]},R={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},M=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,k,A,S,D,{match:/\$\d+/},w];_.contains=M.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(M)});const F=[].concat(R,_.contains),O=F.concat([{begin:/(\s*)\(/,end:/\)/,keywords:m,contains:["self"].concat(F)}]),P={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:O},G={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,l.concat(f,"(",l.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:l.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...o]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[P],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(V){return l.concat("(?!",V.join("|"),")")}const ee={match:l.concat(/\b/,Y([...i,"super","import"].map(V=>`${V}\\s*\\(`)),f,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},Te={begin:l.concat(/\./,l.lookahead(l.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Me={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},P]},Ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",Pe={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(Ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[P]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,k,A,S,D,R,{match:/\$\d+/},w,L,{scope:"attr",match:f+l.lookahead(":"),relevance:0},Pe,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[R,c.REGEXP_MODE,{className:"function",begin:Ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:p.begin,end:p.end},{match:g},{begin:h.begin,"on:begin":h.isTrulyOpeningTag,end:h.end}],subLanguage:"xml",contains:[{begin:h.begin,end:h.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[P,c.inherit(c.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},Te,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[P]},ee,N,G,Me,{match:/\$[(.]/}]}}return Rs=u,Rs}var Is,Sl;function KE(){if(Sl)return Is;Sl=1;function e(t){const n={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},r={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],i={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:o},contains:[n,r,t.QUOTE_STRING_MODE,i,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return Is=e,Is}var Ms,Cl;function qE(){if(Cl)return Ms;Cl=1;var e="[0-9](_*[0-9])*",t=`\\.(${e})`,n="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b(${e})((${t})|\\.)?|(${t}))[eE][+-]?(${e})[fFdD]?\\b`},{begin:`\\b(${e})((${t})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${t})[fFdD]?\\b`},{begin:`\\b(${e})[fFdD]\\b`},{begin:`\\b0[xX]((${n})\\.?|(${n})?\\.(${n}))[pP][+-]?(${e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${n})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(i){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},u={className:"symbol",begin:i.UNDERSCORE_IDENT_RE+"@"},c={className:"subst",begin:/\$\{/,end:/\}/,contains:[i.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+i.UNDERSCORE_IDENT_RE},d={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,c]},{begin:"'",end:"'",illegal:/\n/,contains:[i.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,l,c]}]};c.contains.push(d);const f={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+i.UNDERSCORE_IDENT_RE+")?"},p={className:"meta",begin:"@"+i.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[i.inherit(d,{className:"string"}),"self"]}]},g=r,h=i.COMMENT("/\\*","\\*/",{contains:[i.C_BLOCK_COMMENT_MODE]}),m={variants:[{className:"type",begin:i.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},b=m;return b.variants[1].contains=[m],m.variants[1].contains=[b],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[i.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),i.C_LINE_COMMENT_MODE,h,a,u,f,p,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:i.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[i.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[m,i.C_LINE_COMMENT_MODE,h],relevance:0},i.C_LINE_COMMENT_MODE,h,f,p,d,i.C_NUMBER_MODE]},h]},{begin:[/class|interface|trait/,/\s+/,i.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},i.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},f,p]},d,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
661
|
-
`},g]}}return Ms=o,Ms}var Ls,Al;function HE(){if(Al)return Ls;Al=1;const e=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),u=i.concat(s).sort().reverse();function c(l){const d=e(l),f=u,p="and or not only",g="[\\w-]+",h="("+g+"|@\\{"+g+"\\})",m=[],b=[],y=function(F){return{className:"string",begin:"~?"+F+".*?"+F}},v=function(F,O,P){return{className:F,begin:O,relevance:P}},w={$pattern:/[a-z-]+/,keyword:p,attribute:o.join(" ")},_={begin:"\\(",end:"\\)",contains:b,keywords:w,relevance:0};b.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,y("'"),y('"'),d.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},d.HEXCOLOR,_,v("variable","@@?"+g,10),v("variable","@\\{"+g+"\\}"),v("built_in","~?`[^`]*?`"),{className:"attribute",begin:g+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},d.IMPORTANT,{beginKeywords:"and not"},d.FUNCTION_DISPATCH);const k=b.concat({begin:/\{/,end:/\}/,contains:m}),A={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(b)},S={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},d.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:b}}]},D={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:w,returnEnd:!0,contains:b,relevance:0}},B={className:"variable",variants:[{begin:"@"+g+"\\s*:",relevance:15},{begin:"@"+g}],starts:{end:"[;}]",returnEnd:!0,contains:k}},R={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,A,v("keyword","all\\b"),v("variable","@\\{"+g+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},d.CSS_NUMBER_MODE,v("selector-tag",h,0),v("selector-id","#"+h),v("selector-class","\\."+h,0),v("selector-tag","&",0),d.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+s.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:k},{begin:"!important"},d.FUNCTION_DISPATCH]},M={begin:g+`:(:)?(${f.join("|")})`,returnBegin:!0,contains:[R]};return m.push(l.C_LINE_COMMENT_MODE,l.C_BLOCK_COMMENT_MODE,D,B,M,S,R,A,d.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:m}}return Ls=c,Ls}var $s,Tl;function jE(){if(Tl)return $s;Tl=1;function e(t){const n="\\[=*\\[",r="\\]=*\\]",o={begin:n,end:r,contains:["self"]},i=[t.COMMENT("--(?!"+n+")","$"),t.COMMENT("--"+n,r,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:t.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[t.inherit(t.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},t.C_NUMBER_MODE,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,{className:"string",begin:n,end:r,contains:[o],relevance:5}])}}return $s=e,$s}var Fs,Dl;function GE(){if(Dl)return Fs;Dl=1;function e(t){const n={className:"variable",variants:[{begin:"\\$\\("+t.UNDERSCORE_IDENT_RE+"\\)",contains:[t.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},r={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,n]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[n,r]},i={begin:"^"+t.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},s={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[t.HASH_COMMENT_MODE,n,r,o,i,s,a]}}return Fs=e,Fs}var Ps,Ol;function VE(){if(Ol)return Ps;Ol=1;function e(t){const n=t.regex,r=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:r.join(" ")},s={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},u={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},c={scope:"variable",variants:[{begin:/\$\d/},{begin:n.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[u]},l={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[t.BACKSLASH_ESCAPE,s,c],f=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],p=(m,b,y="\\1")=>{const v=y==="\\1"?y:n.concat(y,b);return n.concat(n.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,v,/(?:\\.|[^\\\/])*?/,y,o)},g=(m,b,y)=>n.concat(n.concat("(?:",m,")"),b,/(?:\\.|[^\\\/])*?/,y,o),h=[c,t.HASH_COMMENT_MODE,t.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[t.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},l,{begin:"(\\/\\/|"+t.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[t.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:p("s|tr|y",n.either(...f,{capture:!0}))},{begin:p("s|tr|y","\\(","\\)")},{begin:p("s|tr|y","\\[","\\]")},{begin:p("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:g("(?:m|qr)?",/\//,/\//)},{begin:g("m|qr",n.either(...f,{capture:!0}),/\1/)},{begin:g("m|qr",/\(/,/\)/)},{begin:g("m|qr",/\[/,/\]/)},{begin:g("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[t.TITLE_MODE,u,l]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return s.contains=h,a.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}}return Ps=e,Ps}var Bs,Nl;function WE(){if(Nl)return Bs;Nl=1;function e(t){const n={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,u={"variable.language":["this","super"],$pattern:r,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},c={$pattern:r,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:u,illegal:"</",contains:[n,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.C_NUMBER_MODE,t.QUOTE_STRING_MODE,t.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[t.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+c.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:c,contains:[t.UNDERSCORE_TITLE_MODE]},{begin:"\\."+t.UNDERSCORE_IDENT_RE,relevance:0}]}}return Bs=e,Bs}var zs,Rl;function YE(){if(Rl)return zs;Rl=1;function e(t){const n=t.regex,r=/(?![A-Za-z0-9])(?![$])/,o=n.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),i=n.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),s=n.concat(/[A-Z]+/,r),a={scope:"variable",match:"\\$+"+o},u={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},c={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=t.inherit(t.APOS_STRING_MODE,{illegal:null}),d=t.inherit(t.QUOTE_STRING_MODE,{illegal:null,contains:t.QUOTE_STRING_MODE.contains.concat(c)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:t.QUOTE_STRING_MODE.contains.concat(c),"on:begin":(P,G)=>{G.data._beginMatch=P[1]||P[2]},"on:end":(P,G)=>{G.data._beginMatch!==P[1]&&G.ignoreMatch()}},p=t.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),g=`[
|
|
662
|
-
]`,h={scope:"string",variants:[d,l,f,p]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},b=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],v=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],_={keyword:y,literal:(P=>{const G=[];return P.forEach(L=>{G.push(L),L.toLowerCase()===L?G.push(L.toUpperCase()):G.push(L.toLowerCase())}),G})(b),built_in:v},k=P=>P.map(G=>G.replace(/\|\d+$/,"")),A={variants:[{match:[/new/,n.concat(g,"+"),n.concat("(?!",k(v).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},S=n.concat(o,"\\b(?!\\()"),D={variants:[{match:[n.concat(/::/,n.lookahead(/(?!class\b)/)),S],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,n.concat(/::/,n.lookahead(/(?!class\b)/)),S],scope:{1:"title.class",3:"variable.constant"}},{match:[i,n.concat("::",n.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},B={scope:"attr",match:n.concat(o,n.lookahead(":"),n.lookahead(/(?!::)/))},R={relevance:0,begin:/\(/,end:/\)/,keywords:_,contains:[B,a,D,t.C_BLOCK_COMMENT_MODE,h,m,A]},M={relevance:0,match:[/\b/,n.concat("(?!fn\\b|function\\b|",k(y).join("\\b|"),"|",k(v).join("\\b|"),"\\b)"),o,n.concat(g,"*"),n.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[R]};R.contains.push(M);const F=[B,D,t.C_BLOCK_COMMENT_MODE,h,m,A],O={begin:n.concat(/#\[\s*\\?/,n.either(i,s)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:b,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:b,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",variants:[{match:i},{match:s}]}]};return{case_insensitive:!1,keywords:_,contains:[O,t.HASH_COMMENT_MODE,t.COMMENT("//","$"),t.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:t.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},u,{scope:"variable.language",match:/\$this\b/},a,M,D,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},A,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},t.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:_,contains:["self",O,a,D,t.C_BLOCK_COMMENT_MODE,h,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[t.inherit(t.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},t.UNDERSCORE_TITLE_MODE]},h,m]}}return zs=e,zs}var Us,Il;function ZE(){if(Il)return Us;Il=1;function e(t){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},t.inherit(t.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return Us=e,Us}var Ks,Ml;function XE(){if(Ml)return Ks;Ml=1;function e(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return Ks=e,Ks}var qs,Ll;function QE(){if(Ll)return qs;Ll=1;function e(t){const n=t.regex,r=/[\p{XID_Start}_]\p{XID_Continue}*/u,o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],u={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:u,illegal:/#/},d={begin:/\{\{/,relevance:0},f={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,l]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",g=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,h=`\\b|${o.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${g}))[eE][+-]?(${p})[jJ]?(?=${h})`},{begin:`(${g})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${p})[jJ](?=${h})`}]},b={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:u,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:["self",c,m,f,t.HASH_COMMENT_MODE]}]};return l.contains=[f,m,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:u,illegal:/(<\/|\?)|=>/,contains:[c,m,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,b,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,y,f]}]}}return qs=e,qs}var Hs,$l;function JE(){if($l)return Hs;$l=1;function e(t){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return Hs=e,Hs}var js,Fl;function ek(){if(Fl)return js;Fl=1;function e(t){const n=t.regex,r=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=n.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,s=n.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:r,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[t.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:n.lookahead(n.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:r},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),t.HASH_COMMENT_MODE,{scope:"string",contains:[t.BACKSLASH_ESCAPE],variants:[t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),t.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[s,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[r,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:s},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return js=e,js}var Gs,Pl;function tk(){if(Pl)return Gs;Pl=1;function e(t){const n=t.regex,r=/(r#)?/,o=n.concat(r,t.UNDERSCORE_IDENT_RE),i=n.concat(r,t.IDENT_RE),s={className:"title.function.invoke",relevance:0,begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,n.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",u=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],c=["true","false","Some","None","Ok","Err"],l=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:t.IDENT_RE+"!?",type:d,keyword:u,literal:c,built_in:l},illegal:"</",contains:[t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*","\\*/",{contains:["self"]}),t.inherit(t.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:t.IDENT_RE+"::",keywords:{keyword:"Self",built_in:l,type:d}},{className:"punctuation",begin:"->"},s]}}return Gs=e,Gs}var Vs,Bl;function nk(){if(Bl)return Vs;Bl=1;const e=c=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:c.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:c.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],n=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],r=[...t,...n],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),a=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function u(c){const l=e(c),d=s,f=i,p="@[a-z-]+",g="and or not only",m={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[c.C_LINE_COMMENT_MODE,c.C_BLOCK_COMMENT_MODE,l.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+f.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+d.join("|")+")"},m,{begin:/\(/,end:/\)/,contains:[l.CSS_NUMBER_MODE]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+a.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[l.BLOCK_COMMENT,m,l.HEXCOLOR,l.CSS_NUMBER_MODE,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.IMPORTANT,l.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:p,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:g,attribute:o.join(" ")},contains:[{begin:p,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},m,c.QUOTE_STRING_MODE,c.APOS_STRING_MODE,l.HEXCOLOR,l.CSS_NUMBER_MODE]},l.FUNCTION_DISPATCH]}}return Vs=u,Vs}var Ws,zl;function rk(){if(zl)return Ws;zl=1;function e(t){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return Ws=e,Ws}var Ys,Ul;function ok(){if(Ul)return Ys;Ul=1;function e(t){const n=t.regex,r=t.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},s=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],u=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],g=d,h=[...l,...c].filter(k=>!d.includes(k)),m={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},b={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:n.concat(/\b/,n.either(...g),/\s*\(/),relevance:0,keywords:{built_in:g}};function v(k){return n.concat(/\b/,n.either(...k.map(A=>A.replace(/\s+/,"\\s+"))),/\b/)}const w={scope:"keyword",match:v(p),relevance:0};function _(k,{exceptions:A,when:S}={}){const D=S;return A=A||[],k.map(B=>B.match(/\|\d+$/)||A.includes(B)?B:D(B)?`${B}|0`:B)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(h,{when:k=>k.length<3}),literal:s,type:u,built_in:f},contains:[{scope:"type",match:v(a)},w,y,m,o,i,t.C_NUMBER_MODE,t.C_BLOCK_COMMENT_MODE,r,b]}}return Ys=e,Ys}var Zs,Kl;function ik(){if(Kl)return Zs;Kl=1;function e(S){return S?typeof S=="string"?S:S.source:null}function t(S){return n("(?=",S,")")}function n(...S){return S.map(B=>e(B)).join("")}function r(S){const D=S[S.length-1];return typeof D=="object"&&D.constructor===Object?(S.splice(S.length-1,1),D):{}}function o(...S){return"("+(r(S).capture?"":"?:")+S.map(R=>e(R)).join("|")+")"}const i=S=>n(/\b/,S,/\w$/.test(S)?/\b/:/\B/),s=["Protocol","Type"].map(i),a=["init","self"].map(i),u=["Any","Self"],c=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],l=["false","nil","true"],d=["assignment","associativity","higherThan","left","lowerThan","none","right"],f=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],g=o(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),h=o(g,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),m=n(g,h,"*"),b=o(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=o(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=n(b,y,"*"),w=n(/[A-Z]/,y,"*"),_=["attached","autoclosure",n(/convention\(/,o("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",n(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],k=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function A(S){const D={match:/\s+/,relevance:0},B=S.COMMENT("/\\*","\\*/",{contains:["self"]}),R=[S.C_LINE_COMMENT_MODE,B],M={match:[/\./,o(...s,...a)],className:{2:"keyword"}},F={match:n(/\./,o(...c)),relevance:0},O=c.filter($e=>typeof $e=="string").concat(["_|0"]),P=c.filter($e=>typeof $e!="string").concat(u).map(i),G={variants:[{className:"keyword",match:o(...P,...a)}]},L={$pattern:o(/\b\w+/,/#\w+/),keyword:O.concat(f),literal:l},q=[M,F,G],j={match:n(/\./,o(...p)),relevance:0},N={className:"built_in",match:n(/\b/,o(...p),/(?=\()/)},Y=[j,N],ee={match:/->/,relevance:0},Te={className:"operator",relevance:0,variants:[{match:m},{match:`\\.(\\.|${h})+`}]},Me=[ee,Te],Ne="([0-9]_*)+",Pe="([0-9a-fA-F]_*)+",V={className:"number",relevance:0,variants:[{match:`\\b(${Ne})(\\.(${Ne}))?([eE][+-]?(${Ne}))?\\b`},{match:`\\b0x(${Pe})(\\.(${Pe}))?([pP][+-]?(${Ne}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},K=($e="")=>({className:"subst",variants:[{match:n(/\\/,$e,/[0\\tnr"']/)},{match:n(/\\/,$e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),Z=($e="")=>({className:"subst",match:n(/\\/,$e,/[\t ]*(?:[\r\n]|\r\n)/)}),Ce=($e="")=>({className:"subst",label:"interpol",begin:n(/\\/,$e,/\(/),end:/\)/}),Fe=($e="")=>({begin:n($e,/"""/),end:n(/"""/,$e),contains:[K($e),Z($e),Ce($e)]}),Ye=($e="")=>({begin:n($e,/"/),end:n(/"/,$e),contains:[K($e),Ce($e)]}),tt={className:"string",variants:[Fe(),Fe("#"),Fe("##"),Fe("###"),Ye(),Ye("#"),Ye("##"),Ye("###")]},oe=[S.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[S.BACKSLASH_ESCAPE]}],qe={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:oe},et=$e=>{const at=n($e,/\//),Xe=n(/\//,$e);return{begin:at,end:Xe,contains:[...oe,{scope:"comment",begin:`#(?!.*${Xe})`,end:/$/}]}},we={scope:"regexp",variants:[et("###"),et("##"),et("#"),qe]},z={match:n(/`/,v,/`/)},me={className:"variable",match:/\$\d+/},Se={className:"variable",match:`\\$${y}+`},W=[z,me,Se],ne={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:k,contains:[...Me,V,tt]}]}},fe={scope:"keyword",match:n(/@/,o(..._),t(o(/\(/,/\s+/)))},ye={scope:"meta",match:n(/@/,v)},_e=[ne,fe,ye],Ee={match:t(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:n(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:w,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:n(/\s+&\s+/,t(w)),relevance:0}]},Ze={begin:/</,end:/>/,keywords:L,contains:[...R,...q,..._e,ee,Ee]};Ee.contains.push(Ze);const Lt={match:n(v,/\s*:/),keywords:"_|0",relevance:0},$t={begin:/\(/,end:/\)/,relevance:0,keywords:L,contains:["self",Lt,...R,we,...q,...Y,...Me,V,tt,...W,..._e,Ee]},mt={begin:/</,end:/>/,keywords:"repeat each",contains:[...R,Ee]},qt={begin:o(t(n(v,/\s*:/)),t(n(v,/\s+/,v,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:v}]},an={begin:/\(/,end:/\)/,keywords:L,contains:[qt,...R,...q,...Me,V,tt,..._e,Ee,$t],endsParent:!0,illegal:/["']/},Nn={match:[/(func|macro)/,/\s+/,o(z.match,v,m)],className:{1:"keyword",3:"title.function"},contains:[mt,an,D],illegal:[/\[/,/%/]},en={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[mt,an,D],illegal:/\[|%/},Rn={match:[/operator/,/\s+/,m],className:{1:"keyword",3:"title"}},Ve={begin:[/precedencegroup/,/\s+/,w],className:{1:"keyword",3:"title"},contains:[Ee],keywords:[...d,...l],end:/}/},Re={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ct={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Ot={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,v,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:L,contains:[mt,...q,{begin:/:/,end:/\{/,keywords:L,contains:[{scope:"title.class.inherited",match:w},...q],relevance:0}]};for(const $e of tt.variants){const at=$e.contains.find(lt=>lt.label==="interpol");at.keywords=L;const Xe=[...q,...Y,...Me,V,tt,...W];at.contains=[...Xe,{begin:/\(/,end:/\)/,contains:["self",...Xe]}]}return{name:"Swift",keywords:L,contains:[...R,Nn,en,Re,ct,Ot,Rn,Ve,{beginKeywords:"import",end:/$/,contains:[...R],relevance:0},we,...q,...Y,...Me,V,tt,...W,..._e,Ee,$t]}}return Zs=A,Zs}var Xs,ql;function sk(){if(ql)return Xs;ql=1;function e(t){const n="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},s={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,i]},u=t.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},b=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},p,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},h,m,s,a],y=[...b];return y.pop(),y.push(u),g.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}return Xs=e,Xs}var Qs,Hl;function ak(){if(Hl)return Qs;Hl=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],i=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(i,r,o);function u(l){const d=l.regex,f=(K,{after:Z})=>{const Ce="</"+K[0].slice(1);return K.input.indexOf(Ce,Z)!==-1},p=e,g={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,m={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(K,Z)=>{const Ce=K[0].length+K.index,Fe=K.input[Ce];if(Fe==="<"||Fe===","){Z.ignoreMatch();return}Fe===">"&&(f(K,{after:Ce})||Z.ignoreMatch());let Ye;const tt=K.input.substring(Ce);if(Ye=tt.match(/^\s*=/)){Z.ignoreMatch();return}if((Ye=tt.match(/^\s+extends\s+/))&&Ye.index===0){Z.ignoreMatch();return}}},b={$pattern:e,keyword:t,literal:n,built_in:a,"variable.language":s},y="[0-9](_?[0-9])*",v=`\\.(${y})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${w})((${v})|\\.)?|(${v}))[eE][+-]?(${y})\\b`},{begin:`\\b(${w})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},k={className:"subst",begin:"\\$\\{",end:"\\}",keywords:b,contains:[]},A={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,k],subLanguage:"xml"}},S={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,k],subLanguage:"css"}},D={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[l.BACKSLASH_ESCAPE,k],subLanguage:"graphql"}},B={className:"string",begin:"`",end:"`",contains:[l.BACKSLASH_ESCAPE,k]},M={className:"comment",variants:[l.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:p+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),l.C_BLOCK_COMMENT_MODE,l.C_LINE_COMMENT_MODE]},F=[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,A,S,D,B,{match:/\$\d+/},_];k.contains=F.concat({begin:/\{/,end:/\}/,keywords:b,contains:["self"].concat(F)});const O=[].concat(M,k.contains),P=O.concat([{begin:/(\s*)\(/,end:/\)/,keywords:b,contains:["self"].concat(O)}]),G={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:P},L={variants:[{match:[/class/,/\s+/,p,/\s+/,/extends/,/\s+/,d.concat(p,"(",d.concat(/\./,p),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,p],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...r,...o]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,p,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},Y={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ee(K){return d.concat("(?!",K.join("|"),")")}const Te={match:d.concat(/\b/,ee([...i,"super","import"].map(K=>`${K}\\s*\\(`)),p,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},Me={begin:d.concat(/\./,d.lookahead(d.concat(p,/(?![0-9A-Za-z$_(])/))),end:p,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ne={match:[/get|set/,/\s+/,p,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},Pe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+l.UNDERSCORE_IDENT_RE+")\\s*=>",V={match:[/const|var|let/,/\s+/,p,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(Pe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:b,exports:{PARAMS_CONTAINS:P,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[l.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,l.APOS_STRING_MODE,l.QUOTE_STRING_MODE,A,S,D,B,M,{match:/\$\d+/},_,q,{scope:"attr",match:p+d.lookahead(":"),relevance:0},V,{begin:"("+l.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[M,l.REGEXP_MODE,{className:"function",begin:Pe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:l.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:b,contains:P}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:h},{begin:m.begin,"on:begin":m.isTrulyOpeningTag,end:m.end}],subLanguage:"xml",contains:[{begin:m.begin,end:m.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+l.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,l.inherit(l.TITLE_MODE,{begin:p,className:"title.function"})]},{match:/\.\.\./,relevance:0},Me,{match:"\\$"+p,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},Te,Y,L,Ne,{match:/\$[(.]/}]}}function c(l){const d=l.regex,f=u(l),p=e,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,l.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},m={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[f.exports.CLASS_REFERENCE]},b={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},y=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],v={$pattern:e,keyword:t.concat(y),literal:n,built_in:a.concat(g),"variable.language":s},w={className:"meta",begin:"@"+p},_=(D,B,R)=>{const M=D.contains.findIndex(F=>F.label===B);if(M===-1)throw new Error("can not find mode to replace");D.contains.splice(M,1,R)};Object.assign(f.keywords,v),f.exports.PARAMS_CONTAINS.push(w);const k=f.contains.find(D=>D.scope==="attr"),A=Object.assign({},k,{match:d.concat(p,d.lookahead(/\s*\?:/))});f.exports.PARAMS_CONTAINS.push([f.exports.CLASS_REFERENCE,k,A]),f.contains=f.contains.concat([w,h,m,A]),_(f,"shebang",l.SHEBANG()),_(f,"use_strict",b);const S=f.contains.find(D=>D.label==="func.def");return S.relevance=0,Object.assign(f,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),f}return Qs=c,Qs}var Js,jl;function uk(){if(jl)return Js;jl=1;function e(t){const n=t.regex,r={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,s=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,u=/\d{1,2}(:\d{1,2}){1,2}/,c={className:"literal",variants:[{begin:n.concat(/# */,n.either(s,i),/ *#/)},{begin:n.concat(/# */,u,/ *#/)},{begin:n.concat(/# */,a,/ *#/)},{begin:n.concat(/# */,n.either(s,i),/ +/,n.either(a,u),/ *#/)}]},l={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},f=t.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),p=t.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[r,o,c,l,d,f,p,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[p]}]}}return Js=e,Js}var ea,Gl;function ck(){if(Gl)return ea;Gl=1;function e(t){t.regex;const n=t.COMMENT(/\(;/,/;\)/);n.contains.push("self");const r=t.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},s={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},u={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},c={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},l={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[r,n,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},s,a,i,t.QUOTE_STRING_MODE,c,l,u]}}return ea=e,ea}var ta,Vl;function lk(){if(Vl)return ta;Vl=1;var e=AE();return e.registerLanguage("xml",TE()),e.registerLanguage("bash",DE()),e.registerLanguage("c",OE()),e.registerLanguage("cpp",NE()),e.registerLanguage("csharp",RE()),e.registerLanguage("css",IE()),e.registerLanguage("markdown",ME()),e.registerLanguage("diff",LE()),e.registerLanguage("ruby",$E()),e.registerLanguage("go",FE()),e.registerLanguage("graphql",PE()),e.registerLanguage("ini",BE()),e.registerLanguage("java",zE()),e.registerLanguage("javascript",UE()),e.registerLanguage("json",KE()),e.registerLanguage("kotlin",qE()),e.registerLanguage("less",HE()),e.registerLanguage("lua",jE()),e.registerLanguage("makefile",GE()),e.registerLanguage("perl",VE()),e.registerLanguage("objectivec",WE()),e.registerLanguage("php",YE()),e.registerLanguage("php-template",ZE()),e.registerLanguage("plaintext",XE()),e.registerLanguage("python",QE()),e.registerLanguage("python-repl",JE()),e.registerLanguage("r",ek()),e.registerLanguage("rust",tk()),e.registerLanguage("scss",nk()),e.registerLanguage("shell",rk()),e.registerLanguage("sql",ok()),e.registerLanguage("swift",ik()),e.registerLanguage("yaml",sk()),e.registerLanguage("typescript",ak()),e.registerLanguage("vbnet",uk()),e.registerLanguage("wasm",ck()),e.HighlightJS=e,e.default=e,ta=e,ta}var dk=lk();const Wl=hg(dk),sn=new on({html:!0,linkify:!0,breaks:!1,highlight(e,t){if(t&&Wl.getLanguage(t))try{const n=Wl.highlight(e,{language:t}).value;return`<pre><code class="hljs language-${t}">${n}</code></pre>`}catch{}return""}}),fk=/^<\/?(?:details|summary)>$/i,gk=/^<details\s+open\s*>$/i,pk=/^<input class="task-list-item-checkbox"(?: checked="")? disabled="" type="checkbox">$/;function hk(e){return fk.test(e)||gk.test(e)||pk.test(e)}function mg(e){const t=sn.utils.escapeHtml;let n="",r=0;const o=/<[^>]*>/g;let i;for(;(i=o.exec(e))!==null;){n+=t(e.slice(r,i.index));const s=i[0];n+=hk(s)?s:t(s),r=i.index+s.length}return n+=t(e.slice(r)),n}sn.renderer.rules.html_block=(e,t)=>mg(e[t].content);sn.renderer.rules.html_inline=(e,t)=>mg(e[t].content);const mk=sn.renderer.rules.image??((e,t,n,r,o)=>o.renderToken(e,t,n)),bk=sn.renderer.rules.link_open??((e,t,n,r,o)=>o.renderToken(e,t,n)),yk=sn.renderer.rules.fence??((e,t,n,r,o)=>o.renderToken(e,t,n));function bg(e,t,n){if(!e||/^([a-z]+:)?\/\//i.test(e)||e.startsWith("/")||e.startsWith("#"))return e;const r=e.match(/^attachments\/(.+)$/);return!r||!n?e:`/api/projects/${encodeURIComponent(n)}/specs/${encodeURIComponent(t)}/attachments/${encodeURIComponent(r[1])}`}sn.renderer.rules.image=function(e,t,n,r,o){const i=r,s=i?.specId;if(s){const u=e[t].attrs?.find(([c])=>c==="src");u&&(u[1]=bg(u[1],s,i?.projectId))}return mk(e,t,n,r,o)};sn.renderer.rules.link_open=function(e,t,n,r,o){const i=r,s=i?.specId;if(s){const a=e[t],u=a.attrs?.find(([c])=>c==="href");if(u){const c=bg(u[1],s,i?.projectId);if(c!==u[1]){u[1]=c;const l=a.attrs?.find(([d])=>d==="target");l?l[1]="_blank":a.attrs?.push(["target","_blank"]),a.attrs?.push(["rel","noopener noreferrer"])}}}return bk(e,t,n,r,o)};sn.renderer.rules.fence=function(e,t,n,r,o){const i=e[t];if(i.info.trim()==="mermaid"){const a=i.content;return`<div class="mermaid" data-mermaid-source="${a.replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}">${a}</div>`}return yk(e,t,n,r,o)};sn.use(CE,{enabled:!1,label:!1});function yg(e,t={}){if(!t.specId)return sn.render(e,{});const n={specId:t.specId};return t.projectId&&(n.projectId=t.projectId),sn.render(e,n)}const xk="modulepreload",vk=function(e){return"/"+e},Yl={},wk=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(l=>Promise.resolve(l).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");o=s(n.map(c=>{if(c=vk(c),c in Yl)return;Yl[c]=!0;const l=c.endsWith(".css"),d=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":xk,l||(f.as="script"),f.crossOrigin="",f.href=c,u&&f.setAttribute("nonce",u),document.head.appendChild(f),l)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};let na=null;async function _k(){return na||(na=wk(()=>import("./mermaid.core-Qqp0pI8e.js").then(e=>e.bp),[]).then(e=>e.default)),na}function Ek(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"default"}async function kk(e){const t=e.querySelectorAll(".mermaid");if(t.length===0)return()=>{};const n=await _k();async function r(){const i=Ek();n.initialize({startOnLoad:!1,theme:i}),t.forEach(s=>{const a=s.getAttribute("data-mermaid-source");a&&(s.removeAttribute("data-processed"),s.textContent=a)});try{await n.run({nodes:Array.from(t)})}catch(s){console.error("[mermaid] render error:",s)}}r();const o=window.matchMedia("(prefers-color-scheme: dark)");return o.addEventListener("change",r),()=>{o.removeEventListener("change",r)}}function Sk(e,t){let n=e;for(;n&&n!==t;){if(n.nodeType===1){const o=n.tagName;if(o==="H2"||o==="H3")return n}let r=n.previousSibling;if(!r){n=n.parentNode;continue}for(;r?.lastChild;)r=r.lastChild;n=r}return null}function Ck(e,t){return t.contains(e.startContainer)&&t.contains(e.endContainer)&&t.contains(e.commonAncestorContainer)}function Ak(e,t,n={}){const r=n.throttleMs??50;let o,i="";const s=()=>{window.clearTimeout(o),o=window.setTimeout(()=>{const a=window.getSelection();if(!a||a.rangeCount===0||a.isCollapsed){i!==""&&(i="",t(null));return}const u=a.getRangeAt(0);if(!Ck(u,e)){i!==""&&(i="",t(null));return}const c=a.toString();if(!c.trim()){i!==""&&(i="",t(null));return}const l=u.getBoundingClientRect(),d=Sk(u.startContainer,e),f=T("selection.noSection"),p=d&&d.textContent?.trim()||f;i=c,t({text:c,rect:l,sectionPath:p})},r)};return document.addEventListener("selectionchange",s),()=>{document.removeEventListener("selectionchange",s),window.clearTimeout(o)}}const Tk=/^##\s+(?:\d+(?:\.\d+)*\.?\s+)?待确认问题\s*$/,Zl=/^##\s+/,xg=/^###\s+(?:\d+(?:\.\d+)*\s+)?(.+\S)\s*$/,Dk=/^\d+\.\s+(.*\S)\s*$/,Ok=/^\s*$/,Xl=/\s*[((]推荐[))]\s*$/,Ql=/\s*(自由文本)\s*$/;function Nk(e){const t=e.split(`
|
|
663
|
-
`);let n=0;for(;n<t.length&&!Tk.test(t[n]);)n+=1;if(n>=t.length)return[];n+=1;const r=[];for(;n<t.length;){const o=t[n];if(Zl.test(o))break;const i=Rk(o);if(!i){n+=1;continue}const s=Ql.test(i),a=s?i.replace(Ql,"").trim():i,u=[];let c=0;for(n+=1;n<t.length;){const l=t[n];if(Ok.test(l)){n+=1;continue}if(Zl.test(l)||xg.test(l))break;const d=Ik(l);if(d===null){n+=1;continue}const f=Xl.test(d),p=f?d.replace(Xl,"").trim():d.trim();p&&(f&&(c+=1),u.push({id:Lk(r.length,u.length,p),label:p,recommended:f&&c===1})),n+=1}c>=2&&console.warn(`[question-parse] 问题 "${a}" 含 ${c} 个 (推荐),已保留首个,其余降级`),r.push({id:Mk(r.length,a),text:a,options:u,isFreeform:s||u.length===0})}return r}function Rk(e){const t=xg.exec(e);return t?t[1]:null}function Ik(e){const t=Dk.exec(e);return t?t[1]:null}function Mk(e,t){return`q-${e}-${vg(t)}`}function Lk(e,t,n){return`q-${e}-o-${t}-${vg(n)}`}function vg(e){let t=0;for(let n=0;n<e.length;n+=1)t=t*31+e.charCodeAt(n)|0;return(t>>>0).toString(36)}var $k=$('<div class="selection-menu fixed z-50 flex gap-1 rounded-md border bg-popover p-1 shadow-md">');const Fk=36,Pk=140,Bk=e=>{const t=()=>{const n=e.snap;if(!n)return{top:0,left:0,visible:!1};const r=n.rect.top-Fk-8,o=n.rect.left,i=r<8?n.rect.bottom+8:r,s=Math.min(Math.max(8,o),window.innerWidth-Pk-8);return{top:i,left:s,visible:!0}};return x(X,{get when(){return e.snap},children:n=>{const r=t();return(()=>{var o=$k();return o.$$mousedown=i=>i.preventDefault(),E(o,x(je,{variant:"ghost",size:"sm",onClick:()=>e.onAnnotate(n()),get children(){return T("selectionMenu.annotate")}}),null),E(o,x(je,{variant:"ghost",size:"sm",onClick:()=>e.onExplain(n()),get children(){return T("selectionMenu.explain")}}),null),he(i=>{var s=`${r.top}px`,a=`${r.left}px`;return s!==i.e&&ai(o,"top",i.e=s),a!==i.t&&ai(o,"left",i.t=a),i},{e:void 0,t:void 0}),o})()}})};Cn(["mousedown"]);var zk=$('<div class="fixed z-[60] flex max-h-[calc(100vh-16px)] flex-col gap-2.5 overflow-auto rounded-lg border bg-card p-3.5 shadow-xl"style=width:500px><header class="flex flex-col gap-0.5"><strong></strong></header><blockquote class="m-0 border-l-2 border-border bg-background px-2.5 py-1.5 text-[0.9em] text-muted-foreground"><em></em> <!> "<!>"</blockquote><form><div class="flex justify-end gap-2">'),Uk=$('<p class="text-destructive ">');const Kk=500,Yn=8,qk=e=>{const[t,n]=I(""),[r,o]=I(!1),[i,s]=I(null),[a,u]=I(0),c=()=>{const d=e.snap;if(!d)return{top:0,left:0};const f=a()||260,p=window.innerHeight,g=d.rect.bottom+Yn,h=d.rect.top-Yn-f;let m;g+f<=p-Yn?m=g:h>=Yn?m=h:m=Math.max(Yn,p-f-Yn);const b=Math.min(Math.max(Yn,d.rect.left),window.innerWidth-Kk-Yn);return{top:m,left:b}};async function l(d){if(d.preventDefault(),!!t().trim()){o(!0),s(null);try{await e.onSubmit(t().trim()),n(""),e.onCancel()}catch(f){s(f.message)}finally{o(!1)}}}return x(X,{get when(){return ce(()=>!!e.open)()&&e.snap},get children(){var d=zk(),f=d.firstChild,p=f.firstChild,g=f.nextSibling,h=g.firstChild,m=h.nextSibling,b=m.nextSibling,y=b.nextSibling,v=y.nextSibling;v.nextSibling;var w=g.nextSibling,_=w.firstChild;return d.$$mousedown=k=>k.stopPropagation(),tr(k=>{queueMicrotask(()=>{k.offsetHeight!==a()&&u(k.offsetHeight)})},d),E(p,()=>T("annotate.title")),E(h,()=>e.snap?.sectionPath),E(g,()=>T("annotate.inSection"),b),E(g,()=>(e.snap?.text??"").slice(0,200),v),w.addEventListener("submit",l),E(w,x(Ro,{rows:3,get value(){return t()},onInput:k=>n(k.currentTarget.value),get placeholder(){return T("annotate.placeholder")},class:"resize-y min-h-[64px]",autofocus:!0}),_),E(w,(()=>{var k=ce(()=>!!i());return()=>k()&&(()=>{var A=Uk();return E(A,i),A})()})(),_),E(_,x(je,{variant:"outline",type:"button",get onClick(){return e.onCancel},get children(){return T("common.cancel")}}),null),E(_,x(je,{variant:"default",type:"submit",get disabled(){return r()},get children(){return ce(()=>!!r())()?T("common.submitting"):T("annotate.submit")}}),null),he(k=>{var A=`${c().top}px`,S=`${c().left}px`;return A!==k.e&&ai(d,"top",k.e=A),S!==k.t&&ai(d,"left",k.t=S),k},{e:void 0,t:void 0}),d}})};Cn(["mousedown"]);var Hk=$("<div><span class=text-muted-foreground></span><code class=font-mono>"),jk=$('<blockquote class="m-0 border-l-2 border-border pl-2 text-muted-foreground">'),Gk=$('<div class="flex flex-col gap-1 text-sm">'),Vk=$('<p class="text-destructive ">'),Wk=$('<div class="append-dialog-backdrop fixed inset-0 z-50"><div class="append-dialog fixed z-50 flex w-96 max-w-[calc(100vw-2rem)] flex-col gap-3 rounded-xl border bg-card p-4 shadow-lg"role=dialog><header class="flex flex-col gap-0.5"><strong class=" "></strong><span class="text-sm text-muted-foreground"></span></header><form class="flex flex-col gap-3"><fieldset class="m-0 flex flex-col gap-1.5 border-0 p-0"><legend class="mb-1 font-medium"></legend></fieldset><label class="flex flex-col gap-1 "><span></span></label><div class="flex items-center justify-end gap-2">'),Yk=$('<label class="flex cursor-pointer items-center gap-1.5 "><input type=radio name=append-kind><span>');const Zk={feat:"appendTask.kindFeat",refct:"appendTask.kindRefct",fix:"appendTask.kindFix"},Xk=e=>{const[t,n]=I("fix"),[r,o]=I(""),[i,s]=I(!1),[a,u]=I(null),[c,l]=I(null);ae(()=>{if(!e.open){l(null);return}const g=e.anchorEl;if(!g)return;const h=g.getBoundingClientRect(),b=Math.max(16,Math.min(h.left,window.innerWidth-384-16));l({top:h.bottom+8,left:b})}),ae(()=>{if(!e.open)return;const g=h=>{h.key==="Escape"&&(h.preventDefault(),p())};window.addEventListener("keydown",g),ge(()=>window.removeEventListener("keydown",g))});function d(){n("fix"),o(""),u(null)}async function f(g){g.preventDefault();const h=r().trim();if(!h){u(T("appendTask.descRequired"));return}s(!0),u(null);try{await e.onSubmit({kind:t(),description:h,sectionPath:e.sectionPath,quote:e.quote}),d(),e.onCancel()}catch(m){u(m.message)}finally{s(!1)}}function p(){e.onCancel()}return x(X,{get when(){return e.open},get children(){var g=Wk(),h=g.firstChild,m=h.firstChild,b=m.firstChild,y=b.nextSibling,v=m.nextSibling,w=v.firstChild,_=w.firstChild,k=w.nextSibling,A=k.firstChild,S=k.nextSibling;return g.$$mousedown=p,h.$$mousedown=D=>D.stopPropagation(),E(b,()=>T("appendTask.title")),E(y,()=>T("appendTask.hint")),v.addEventListener("submit",f),E(_,()=>T("appendTask.type")),E(w,()=>["feat","refct","fix"].map(D=>(()=>{var B=Yk(),R=B.firstChild,M=R.nextSibling;return R.addEventListener("change",()=>n(D)),R.value=D,E(M,()=>T(Zk[D])),he(()=>R.disabled=i()),he(()=>R.checked=t()===D),B})()),null),E(A,()=>T("appendTask.description")),E(k,x(Ro,{rows:5,get value(){return r()},onInput:D=>o(D.currentTarget.value),get placeholder(){return T("appendTask.descPlaceholder")},autofocus:!0,get disabled(){return i()}}),null),E(v,x(X,{get when(){return e.sectionPath||e.quote},get children(){var D=Gk();return E(D,x(X,{get when(){return e.sectionPath},get children(){var B=Hk(),R=B.firstChild,M=R.nextSibling;return E(R,()=>T("appendTask.refSection")),E(M,()=>e.sectionPath),B}}),null),E(D,x(X,{get when(){return e.quote},get children(){var B=jk();return E(B,()=>e.quote?.slice(0,200)),B}}),null),D}}),S),E(v,x(X,{get when(){return a()},get children(){var D=Vk();return E(D,a),D}}),S),E(S,x(je,{type:"button",variant:"ghost",size:"sm",onClick:p,get disabled(){return i()},get children(){return[x(Ao,{class:"mr-1 h-3.5 w-3.5"}),ce(()=>T("common.cancel"))]}}),null),E(S,x(je,{type:"submit",variant:"default",size:"sm",get disabled(){return i()},get children(){return ce(()=>!!i())()?T("common.submitting"):T("appendTask.submit")}}),null),he(D=>{var B=T("appendTask.title"),R=c()?{top:`${c().top}px`,left:`${c().left}px`}:void 0,M=i();return B!==D.e&&ve(h,"aria-label",D.e=B),D.t=mr(h,R,D.t),M!==D.a&&(w.disabled=D.a=M),D},{e:void 0,t:void 0,a:void 0}),g}})};Cn(["mousedown"]);const so="__freeform__";function Qk(e,t){const n=(t.note??"").trim();if(e.isFreeform)return n?{questionId:e.id,questionText:e.text,note:n}:null;const r=t.selectedOptionLabel;return r===so?n?{questionId:e.id,questionText:e.text,note:n}:null:r?{questionId:e.id,questionText:e.text,selectedOptionLabel:r}:null}var Jk=$('<p class="text-destructive mx-3 mt-1 ">'),e3=$('<aside class="flex min-w-0 flex-[4] flex-col overflow-hidden rounded-lg border bg-card shadow-lg"data-testid=question-confirm-panel><header class="grid [grid-template-columns:auto_1fr] gap-x-2 gap-y-1.5 border-b bg-background px-3 py-2.5"><strong class=font-semibold></strong><span class="text-muted-foreground text-right"> <span class="font-semibold text-accent"></span> / </span><div class="col-span-full flex gap-1.5"></div></header><ul class="m-0 flex min-h-0 min-w-0 list-none flex-1 flex-col gap-2 overflow-auto p-2">'),t3=$('<ul class="m-0 flex list-none flex-col gap-1 p-0"><li><label class="qcp-option-freeform flex cursor-pointer items-start gap-1.5 px-1 py-0.5 rounded-md hover:bg-primary/5"><input type=radio><span>'),n3=$('<li class="flex min-w-0 flex-col gap-2 rounded-lg border bg-background p-2.5"><p class="qcp-question m-0 font-medium break-words">'),r3=$('<em class="text-accent text-sm not-italic"> '),o3=$('<li><label class="flex cursor-pointer items-start gap-1.5 px-1 py-0.5 rounded-md hover:bg-primary/5"><input type=radio><span class="min-w-0 break-words">'),i3=$('<li class="flex min-w-0 flex-col gap-2 rounded-lg border border-accent/60 bg-background p-2.5"><header class="text-muted-foreground flex items-center justify-between text-sm"><strong></strong></header><blockquote class="border-border bg-card m-0 border-l-2 px-2 py-1 text-sm text-muted-foreground break-words"><em></em> <!> "<!>"</blockquote><p class="m-0 whitespace-pre-wrap break-words">!!!');const s3=e=>{const t=()=>{const f={};for(const p of e.questions){const g=p.options.find(h=>h.recommended);f[p.id]={selectedOptionLabel:g?.label??p.options[0]?.label,note:""}}return f},[n,r]=I(t()),[o,i]=I(!1),[s,a]=I(null);function u(f,p){r(g=>({...g,[f]:{...g[f],selectedOptionLabel:p}}))}function c(f,p){r(g=>({...g,[f]:{...g[f],note:p}}))}const l=J(()=>{const f=n();let p=0;for(const g of e.questions){const h=f[g.id];if(!h){p+=1;continue}const m=h.note??"";g.isFreeform||h.selectedOptionLabel===so?m.trim()||(p+=1):h.selectedOptionLabel||(p+=1)}return p});async function d(){i(!0),a(null);try{const f=n(),p=[];for(const h of e.questions){const m=f[h.id]??{note:""},b=Qk(h,m);b&&p.push(b)}const g={answers:p,freeformAnnotations:e.freeforms.map(h=>({sectionPath:h.sectionPath,quote:h.quote,note:h.note}))};if(g.answers.length===0&&g.freeformAnnotations.length===0){a(T("questionConfirm.noAnswers"));return}await e.onSubmit(g)}catch(f){a(f.message)}finally{i(!1)}}return(()=>{var f=e3(),p=f.firstChild,g=p.firstChild,h=g.nextSibling,m=h.firstChild,b=m.nextSibling;b.nextSibling;var y=h.nextSibling,v=p.nextSibling;return E(g,()=>T("questionConfirm.title")),E(h,()=>T("questionConfirm.unanswered"),m),E(b,l),E(h,()=>e.questions.length,null),E(y,x(je,{get disabled(){return o()||e.running},onClick:d,get children(){return ce(()=>!!o())()?T("common.submitting"):ce(()=>!!e.running)()?T("questionConfirm.running"):T("questionConfirm.submitAll")}})),E(f,x(X,{get when(){return s()},get children(){var w=Jk();return E(w,s),w}}),v),E(v,x(Pt,{get each(){return e.questions},children:w=>{const _=()=>n()[w.id]??{note:""},k=()=>w.isFreeform||_().selectedOptionLabel===so;return(()=>{var A=n3(),S=A.firstChild;return E(S,()=>w.text),E(A,x(X,{get when(){return!w.isFreeform},get children(){var D=t3(),B=D.firstChild,R=B.firstChild,M=R.firstChild,F=M.nextSibling;return E(D,x(Pt,{get each(){return w.options},children:O=>(()=>{var P=o3(),G=P.firstChild,L=G.firstChild,q=L.nextSibling;return L.addEventListener("change",()=>u(w.id,O.label)),E(q,()=>O.label,null),E(q,x(X,{get when(){return O.recommended},get children(){var j=r3();return j.firstChild,E(j,()=>T("questionConfirm.recommended"),null),j}}),null),he(()=>ve(L,"name",`q-${w.id}`)),he(()=>L.checked=_().selectedOptionLabel===O.label),P})()}),B),M.addEventListener("change",()=>u(w.id,so)),E(F,()=>T("questionConfirm.freeformLabel")),he(()=>ve(M,"name",`q-${w.id}`)),he(()=>M.checked=_().selectedOptionLabel===so),D}}),null),E(A,x(X,{get when(){return k()},get children(){return x(Ro,{class:"qcp-note",rows:2,get placeholder(){return T("questionConfirm.notePlaceholder")},get value(){return _().note},onInput:D=>c(w.id,D.currentTarget.value)})}}),null),A})()}}),null),E(v,x(Pt,{get each(){return e.freeforms},children:w=>(()=>{var _=i3(),k=_.firstChild,A=k.firstChild,S=k.nextSibling,D=S.firstChild,B=D.nextSibling,R=B.nextSibling,M=R.nextSibling,F=M.nextSibling;F.nextSibling;var O=S.nextSibling;return O.firstChild,E(A,()=>T("questionConfirm.selectionAnnotation")),E(k,x(je,{variant:"ghost",size:"icon",class:"h-6 w-6",onClick:()=>e.onRemoveFreeform(w.id),"aria-label":"remove",get children(){return x(Ao,{class:"h-4 w-4"})}}),null),E(D,()=>w.sectionPath),E(S,()=>T("questionConfirm.quoteConnector"),R),E(S,()=>w.quote.slice(0,200),F),E(O,()=>w.note,null),_})()}),null),f})()};var a3=$('<section class="flex min-h-0 flex-1 flex-col gap-4 p-4">'),Jl=$("<p class=text-muted-foreground>"),u3=$('<header class="flex flex-col items-start justify-between gap-2"><div><p class=" text-muted-foreground"></p></div><div class="flex items-center gap-2 text-muted-foreground"><select><option value=plan>plan</option><option value=tasks>tasks</option><option value=execute>execute</option><option value=done>done</option></select><time>'),c3=$('<p class="text-destructive ">'),l3=$('<div class="flex min-h-0 flex-1 items-stretch gap-4"><article class="markdown spec-main flex-[6] min-w-0 overflow-auto rounded-xl border bg-card p-4 shadow">');const d3={plan:"bg-stage-plan",tasks:"bg-stage-tasks",execute:"bg-stage-execute",done:"bg-stage-done"},f3=()=>{const e=Di(),t=qr(),[n,r]=Kp(),[o,i]=I(0),[s]=Un(()=>[t(),e.id,o()],async([j,N])=>Ke.getSpec(j,N)),[a,u]=I(null),[c,l]=I(!1),[d,f]=I(null),[p,g]=I(null),[h,m]=I(null),[b,y]=I([]),[v,w]=I(!1),[_,k]=I(null);let A;const S=J(()=>{const j=s();return j?Nk(j.body):[]}),D=J(()=>{const j=s();return!j||j.frontmatter.stage!=="plan"?!1:S().length>0||b().length>0});ae(()=>{const j=e.id,N=t();if(!j||!N)return;const Y=Xm(N,j,{onUpdated:()=>i(ee=>ee+1)});ge(Y)}),ae(()=>{const j=n.runId;if(!j)return;const N=s()?.frontmatter.summary;Ft.start({runId:j,projectId:t(),mode:"skill-run",specId:e.id,specTitle:N,source:"draft"}),r({runId:void 0},{replace:!0})}),ae(()=>{const j=h();if(!j)return;const N=Ak(j,u);ge(N)}),ae(()=>{const j=h();if(!j)return;let N=!0,Y;kk(j).then(ee=>{N?Y=ee:ee()}),ge(()=>{N=!1,Y?.()})});async function B(){g(null);try{const j=t(),{runId:N}=await Ke.runAgent(j,e.id);Ft.start({runId:N,projectId:j,mode:"skill-run",specId:e.id,specTitle:s()?.frontmatter.summary,source:"run"})}catch(j){g(j.message)}}async function R(j){g(null);try{await Ke.setStage(t(),e.id,j),i(N=>N+1)}catch(N){g(N.message)}}function M(j){f(j),l(!0)}async function F(j){const N=d();if(!N)return;if(s()?.frontmatter.stage==="plan"){y(ee=>[...ee,{id:`f-${Date.now()}-${ee.length}`,sectionPath:N.sectionPath,quote:N.text,note:j}]);return}await Ke.appendAnnotation(t(),e.id,{sectionPath:N.sectionPath,quote:N.text,note:j})}function O(j){y(N=>N.filter(Y=>Y.id!==j))}async function P(j){await Ke.submitQuestionAnswers(t(),e.id,j),y([]),await B()}function G(){k(a()),w(!0)}async function L(j){const N=t(),Y=await Ke.appendItem(N,e.id,j);Y.runId&&Ft.start({runId:Y.runId,projectId:N,mode:"skill-run",specId:e.id,specTitle:s()?.frontmatter.summary,source:"run"})}async function q(j){try{const N=t(),{runId:Y}=await Ke.explain(N,e.id,j.text);Ft.start({runId:Y,projectId:N,mode:"explain",specId:e.id,specTitle:s()?.frontmatter.summary,source:"explain"})}catch(N){g(N.message)}}return(()=>{var j=a3();return E(j,x(Ti,{get fallback(){return(()=>{var N=Jl();return E(N,()=>T("common.loading")),N})()},get children(){return x(X,{get when(){return s()},get fallback(){return(()=>{var N=Jl();return E(N,()=>T("specDetail.notFound")),N})()},children:N=>{const Y=()=>Ft.hasRunningSkillRun(e.id);return[(()=>{var ee=u3(),Te=ee.firstChild,Me=Te.firstChild,Ne=Te.nextSibling,Pe=Ne.firstChild,V=Pe.nextSibling;return E(ee,x(zi,{get items(){return[{label:T("breadcrumb.specList"),href:Zt("")},{label:N().id}]}}),Te),E(Me,()=>N().frontmatter.summary||T("common.pendingAgent")),Pe.addEventListener("change",K=>R(K.currentTarget.value)),E(V,()=>zd(N().frontmatter.updated_at)),E(Ne,x(je,{variant:"outline",size:"sm",class:"append-btn",ref(K){var Z=A;typeof Z=="function"?Z(K):A=K},onClick:G,get children(){return T("specDetail.appendTask")}}),null),E(Ne,x(zn,{class:"inline-flex h-8 cursor-pointer items-center justify-center rounded-md px-3 font-medium hover:bg-accent hover:text-accent-foreground",get href(){return Zt(`specs/${N().id}/agent-logs`)},get children(){return T("specDetail.agentLogs")}}),null),E(Ne,x(zn,{class:"inline-flex h-8 cursor-pointer items-center justify-center rounded-md px-3 font-medium hover:bg-accent hover:text-accent-foreground",get href(){return Zt(`specs/${N().id}/review`)},get children(){return T("specDetail.review")}}),null),E(Ne,x(je,{variant:"default",size:"sm",onClick:B,get disabled(){return Y()},get class(){return Y()?"opacity-85":""},get children(){return ce(()=>!!Y())()?T("specDetail.running"):T("specDetail.runAgent")}}),null),he(K=>{var Z=`cursor-pointer appearance-none rounded-full border-0 px-2.5 py-0.5 text-sm font-semibold uppercase text-white ${d3[N().frontmatter.stage]??"bg-muted"}`,Ce=T("specDetail.forceStage");return Z!==K.e&&dt(Pe,K.e=Z),Ce!==K.t&&ve(Pe,"title",K.t=Ce),K},{e:void 0,t:void 0}),he(()=>Pe.value=N().frontmatter.stage),ee})(),x(X,{get when(){return p()},get children(){var ee=c3();return E(ee,p),ee}}),(()=>{var ee=l3(),Te=ee.firstChild;return E(ee,x(X,{get when(){return D()},get children(){return x(s3,{get questions(){return S()},get freeforms(){return b()},get running(){return Y()},onRemoveFreeform:O,onSubmit:P})}}),Te),tr(m,Te),he(()=>Te.innerHTML=yg(N().body,{specId:N().id,projectId:t()||void 0})),ee})(),x(Bk,{get snap(){return ce(()=>!!c())()?null:a()},onAnnotate:M,onExplain:q}),x(qk,{get open(){return c()},get snap(){return d()},onCancel:()=>l(!1),onSubmit:F}),x(Xk,{get open(){return v()},get sectionPath(){return _()?.sectionPath},get quote(){return _()?.text},anchorEl:A,onCancel:()=>w(!1),onSubmit:L})]}})}})),j})()},g3=e=>{const[t,n]=ke(e,["class"]);return x(f0,te({get class(){return Jt("shrink-0 bg-border data-[orientation=horizontal]:h-[1px] data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-[1px]",t.class)}},n))};var p3=$("<span>"),h3=$('<header class="flex items-start justify-between"><div class="flex flex-col gap-1"><p class=" text-muted-foreground"></p></div><div class=" text-muted-foreground">'),m3=$('<div class="flex min-h-0 flex-1 flex-col gap-1 overflow-auto rounded-xl border"><div class="sticky top-0 flex items-center gap-2 border-b bg-card px-2 py-1"><span class=" text-muted-foreground">'),b3=$('<p class=" text-muted-foreground">'),y3=$('<p class="text-destructive ">'),x3=$('<p class=" text-muted-foreground">(runId: <code></code>)'),ed=$("<p class=text-muted-foreground>"),v3=$('<div class="flex min-h-0 flex-1 gap-4"><section class="flex min-h-0 flex-[4] min-w-0 flex-col gap-3"><div class="flex flex-wrap items-center gap-2"></div><div class="flex gap-4"><label class="flex cursor-pointer items-center gap-1.5 "><input type=radio name=fileMode></label><label class="flex cursor-pointer items-center gap-1.5 "><input type=radio name=fileMode></label></div></section><section class="flex min-h-0 min-w-0 flex-[6] flex-col gap-2">'),w3=$('<section class="flex min-h-0 flex-1 flex-col gap-4 p-4">'),_3=$('<label class="flex cursor-pointer items-center gap-2 px-2 py-0.5 "><input type=checkbox><span></span><span class="truncate font-mono text-sm">'),E3=$('<article class="markdown review-md flex-1 overflow-auto rounded-xl border bg-card p-4 shadow">'),k3=$('<div class="flex flex-1 items-center justify-center text-muted-foreground">');const S3={commit:"review.commit",discard:"review.discard",stash:"review.stash"},Qo={review:"review.reviewing",commit:"review.committing",discard:"review.discarding",stash:"review.stashing"},Jo={review:"review.reviewChanges",commit:"review.commit",discard:"review.discard",stash:"review.stash"},C3=["review","commit","discard","stash"],A3={M:"text-yellow-600",A:"text-green-600",D:"text-red-600","??":"text-blue-600",R:"text-purple-600"},T3=()=>{const e=Di(),t=qr(),[n]=Un(()=>[t(),e.id],([V,K])=>Ke.getSpec(V,K)),[r,o]=I(0),[i]=Un(()=>[t(),e.id,r()],async([V,K])=>Ke.getReview(V,K)),[s,a]=I([]),[u,c]=I("manual"),[l,d]=I(new Set),[f,p]=I(""),[g,h]=I(!1),[m,b]=I(null),[y,v]=I(null),[w,_]=I(null),[k,A]=I(null),[S,D]=I({});let B;function R(V){V&&(V.style.height="auto",V.style.height=`${V.scrollHeight}px`)}const M=J(()=>{const V=i()?.text??"";return V.trim()?yg(V,{specId:e.id,projectId:t()}):""}),F=J(()=>D3(i()?.text??"")),O=J(()=>{const V=e.id.split("."),K=V.length>=2?V[1]:"feat",Z=n()?.frontmatter.summary??"";return Z?`${K}: ${Z}`:`${K}: update`});ae(()=>{const V=O();V&&!g()&&p(V)}),ae(Ut(f,()=>{R(B)})),Kn(()=>R(B)),ae(()=>{const V=t(),K=e.id;if(!V||!K)return;const Z=tb(V,K,Ce=>{a(Ce),d(Fe=>{const Ye=new Set(Ce.map(oe=>oe.path)),tt=new Set;for(const oe of Fe)Ye.has(oe)&&tt.add(oe);return tt})});ge(()=>Z())});function P(V){const K=S()[V];if(!K)return!1;const Z=Ft.state.tasks[K];return Z?Z.status==="pending"||Z.status==="streaming":!1}const G=J(()=>{for(const V of C3)if(P(V))return V;return null}),L=J(()=>y()!==null||G()!==null||m()!==null);ae(V=>{const K=S().review;if(!K)return;const Z=Ft.state.tasks[K]?.status;return(V==="pending"||V==="streaming")&&(Z==="done"||Z==="failed")&&o(Ce=>Ce+1),Z},void 0);function q(){return u()==="agent"?s().map(V=>V.path):[...l()]}async function j(V){if(L())return;_(null);const K=q();if(K.length===0){_(T("review.selectAtLeastOne"));return}if(!(V==="discard"&&!window.confirm(T("review.confirmDiscard")))){b(V);try{if(V==="commit"){const Z=f().trim();if(!Z){_(T("review.enterCommitMsg"));return}await Ke.directCommit(t(),e.id,{message:Z,paths:K})}else V==="discard"?await Ke.directDiscard(t(),e.id,{paths:K}):V==="stash"&&await Ke.directStash(t(),e.id,{message:f().trim()||`yorz:${e.id}`,paths:K})}catch(Z){_(Z.message)}finally{b(null)}}}async function N(V){if(!L()&&(_(null),!(V==="discard"&&!window.confirm(T("review.confirmDiscardAll"))))){v(V);try{const K=V==="review"?await Ke.triggerReview(t(),e.id):await Ke.gitOp(t(),e.id,V);A({kind:V,runId:K.runId}),D(Z=>({...Z,[V]:K.runId})),Ft.start({runId:K.runId,projectId:t(),mode:V==="review"?"review":"git-ops",specId:e.id,specTitle:n()?.frontmatter.summary,source:"run"})}catch(K){_(K.message)}finally{v(null)}}}async function Y(V){u()==="manual"?await j(V):await N(V)}function ee(V){return P(V)||y()===V||m()===V}function Te(V){d(K=>{const Z=new Set(K);return Z.has(V)?Z.delete(V):Z.add(V),Z})}function Me(){s().every(V=>l().has(V.path))?d(new Set):d(new Set(s().map(V=>V.path)))}const Ne=J(()=>s().length>0&&s().every(V=>l().has(V.path))),Pe=J(()=>u()==="manual"&&l().size===0);return(()=>{var V=w3();return E(V,x(Ti,{get fallback(){return(()=>{var K=ed();return E(K,()=>T("common.loading")),K})()},get children(){return[(()=>{var K=h3(),Z=K.firstChild,Ce=Z.firstChild,Fe=Z.nextSibling;return E(Z,x(zi,{get items(){return[{label:T("breadcrumb.specList"),href:Zt("")},{label:e.id,href:Zt(`specs/${e.id}`)},{label:T("specDetail.review")}]}}),Ce),E(Ce,()=>n()?.frontmatter.summary||T("common.pendingAgent")),E(Fe,x(X,{get when(){return F()},get children(){var Ye=p3();return E(Ye,()=>T("review.lastReview",{time:F()})),Ye}})),K})(),(()=>{var K=v3(),Z=K.firstChild,Ce=Z.firstChild,Fe=Ce.nextSibling,Ye=Fe.firstChild,tt=Ye.firstChild,oe=Ye.nextSibling,qe=oe.firstChild,et=Z.nextSibling;return E(Ce,x(je,{variant:"default",size:"sm",get disabled(){return L()||Pe()},onClick:()=>Y("commit"),get children(){return[x(X,{get when(){return ee("commit")},get children(){return x(Mr,{class:"mr-1 h-3 w-3 animate-spin"})}}),ce(()=>ce(()=>!!ee("commit"))()?T(Qo.commit):T(Jo.commit))]}}),null),E(Ce,x(je,{variant:"ghost",size:"sm",class:"text-destructive",get disabled(){return L()||Pe()},onClick:()=>Y("discard"),get children(){return[x(X,{get when(){return ee("discard")},get children(){return x(Mr,{class:"mr-1 h-3 w-3 animate-spin"})}}),ce(()=>ce(()=>!!ee("discard"))()?T(Qo.discard):T(Jo.discard))]}}),null),E(Ce,x(je,{variant:"ghost",size:"sm",get disabled(){return L()||Pe()},onClick:()=>Y("stash"),get children(){return[x(X,{get when(){return ee("stash")},get children(){return x(Mr,{class:"mr-1 h-3 w-3 animate-spin"})}}),ce(()=>ce(()=>!!ee("stash"))()?T(Qo.stash):T(Jo.stash))]}}),null),E(Ce,x(g3,{orientation:"vertical",class:"h-6"}),null),E(Ce,x(je,{variant:"ghost",size:"sm",get title(){return T("review.reviewHint")},get disabled(){return L()||s().length===0},onClick:()=>N("review"),get children(){return[x(X,{get when(){return ee("review")},get children(){return x(Mr,{class:"mr-1 h-3 w-3 animate-spin"})}}),ce(()=>ce(()=>!!ee("review"))()?T(Qo.review):T(Jo.review))]}}),null),E(Z,x(Ro,{ref(we){var z=B;typeof z=="function"?z(we):B=we},get placeholder(){return T("review.commitPlaceholder")},get value(){return f()},onInput:we=>{h(!0),p(we.currentTarget.value),R(B)},get disabled(){return L()},rows:2,class:"resize-none"}),Fe),tt.addEventListener("change",()=>c("manual")),E(Ye,()=>T("review.manualSelect"),null),qe.addEventListener("change",()=>c("agent")),E(oe,()=>T("review.agentSelect"),null),E(Z,x(X,{get when(){return ce(()=>u()==="manual")()&&s().length>0},get children(){var we=m3(),z=we.firstChild,me=z.firstChild;return E(z,x(je,{variant:"ghost",size:"sm",onClick:Me,get disabled(){return L()},get children(){return ce(()=>!!Ne())()?T("review.deselectAll"):T("review.selectAll")}}),me),E(me,()=>T("review.fileCount",{selected:l().size,total:s().length})),E(we,x(Pt,{get each(){return s()},children:Se=>(()=>{var W=_3(),ne=W.firstChild,fe=ne.nextSibling,ye=fe.nextSibling;return ne.addEventListener("change",()=>Te(Se.path)),E(fe,()=>Se.status),E(ye,()=>Se.path),he(_e=>{var Ee=L(),Ze=`inline-block w-6 text-center text-sm font-bold ${A3[Se.status]??""}`;return Ee!==_e.e&&(ne.disabled=_e.e=Ee),Ze!==_e.t&&dt(fe,_e.t=Ze),_e},{e:void 0,t:void 0}),he(()=>ne.checked=l().has(Se.path)),W})()}),null),we}}),null),E(Z,x(X,{get when(){return ce(()=>u()==="manual")()&&s().length===0},get children(){var we=b3();return E(we,()=>T("review.noChanges")),we}}),null),E(Z,x(X,{get when(){return w()},get children(){var we=y3();return E(we,w),we}}),null),E(Z,x(X,{get when(){return k()},get children(){var we=x3(),z=we.firstChild,me=z.nextSibling;return E(we,()=>T("review.dispatched"),z),E(we,(()=>{var Se=ce(()=>k().kind==="review");return()=>Se()?T("review.reviewChanges"):T(S3[k().kind])})(),z),E(me,()=>k().runId.slice(0,8)),we}}),null),E(et,x(X,{get when(){return i.loading},get fallback(){return x(X,{get when(){return M()},get fallback(){return(()=>{var we=k3();return E(we,()=>T("review.noReport")),we})()},get children(){var we=E3();return he(()=>we.innerHTML=M()),we}})},get children(){var we=ed();return E(we,()=>T("common.loading")),we}})),he(we=>{var z=L(),me=L();return z!==we.e&&(tt.disabled=we.e=z),me!==we.t&&(qe.disabled=we.t=me),we},{e:void 0,t:void 0}),he(()=>tt.checked=u()==="manual"),he(()=>qe.checked=u()==="agent"),K})()]}})),V})()};function D3(e){if(!e)return"";const t=e.split(/\r?\n/);for(let n=0;n<t.length;n++){const r=/^##\s+(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2}:\d{2})\s*$/.exec(t[n]??"");if(r)return r[1]??""}return""}var O3=$('<header class="flex flex-col items-start justify-between gap-4"><div class="flex flex-col gap-1"><p class=" text-muted-foreground"></p></div><div class="flex items-center gap-2 text-muted-foreground">'),N3=$('<ul class="m-0 flex list-none flex-col gap-2 p-0">'),R3=$('<section class="flex flex-col gap-2"><h2 class="text-base font-semibold">'),I3=$('<section class="flex min-h-0 flex-1 flex-col gap-4 p-4">'),Ei=$("<p class=text-muted-foreground>"),M3=$('<p class="text-sm text-muted-foreground">'),L3=$('<p class=" text-destructive">'),$3=$('<pre class="m-0 max-h-60 overflow-auto whitespace-pre-wrap bg-background p-3 font-mono text-sm">'),F3=$('<div class="border-t p-3">'),P3=$('<li class="overflow-hidden rounded-lg border bg-card"><button type=button class="flex w-full cursor-pointer items-center gap-2 border-0 bg-transparent px-3 py-2 text-left hover:bg-muted/50"><time class="text-sm text-muted-foreground"></time><span class="rounded bg-muted px-1.5 py-0.5 text-sm font-medium"></span><span></span><span class=text-sm></span><span class="text-sm text-muted-foreground">');const B3=()=>{const e=Di(),t=qr(),[n]=Un(()=>[t(),e.id],([u,c])=>Ke.getSpec(u,c)),[r,o]=I(0),[i]=Un(()=>[t(),e.id,r()],async([u,c])=>Ke.listAgentLogs(u,c)),s=J(()=>i()??[]),a=J(()=>!i.loading&&s().length===0);return(()=>{var u=I3();return E(u,x(Ti,{get fallback(){return(()=>{var c=Ei();return E(c,()=>T("common.loading")),c})()},get children(){return[(()=>{var c=O3(),l=c.firstChild,d=l.firstChild,f=l.nextSibling;return E(l,x(zi,{get items(){return[{label:T("breadcrumb.specList"),href:Zt("")},{label:e.id,href:Zt(`specs/${e.id}`)},{label:T("specDetail.agentLogs")}]}}),d),E(d,()=>n()?.frontmatter.summary||T("common.pendingAgent")),E(f,x(je,{variant:"ghost",size:"sm",onClick:()=>o(p=>p+1),get disabled(){return i.loading},get children(){return[x(Pd,{get class(){return`mr-1 h-3 w-3 ${i.loading?"animate-spin":""}`}}),ce(()=>ce(()=>!!i.loading)()?T("common.refreshing"):T("common.refresh"))]}})),c})(),(()=>{var c=R3(),l=c.firstChild;return E(l,()=>T("agentLogs.listTitle",{count:s().length})),E(c,x(X,{get when(){return!a()},get fallback(){return(()=>{var d=Ei();return E(d,()=>T("agentLogs.empty")),d})()},get children(){var d=N3();return E(d,x(Pt,{get each(){return s()},children:f=>x(z3,{meta:f})})),d}}),null),c})()]}})),u})()},z3=e=>{const t=qr(),[n,r]=I(!1),[o,i]=I({content:"",truncated:!1,loading:!1,error:null});let s=!1;async function a(){const u=!n();if(r(u),u&&!s&&!o().loading){i({content:"",truncated:!1,loading:!0,error:null});try{const c=await Ke.getAgentLog(t(),e.meta.specId,e.meta.runId);s=!0,i({content:c.content,truncated:c.truncated,loading:!1,error:null})}catch(c){i({content:"",truncated:!1,loading:!1,error:c.message})}}}return(()=>{var u=P3(),c=u.firstChild,l=c.firstChild,d=l.nextSibling,f=d.nextSibling,p=f.nextSibling,g=p.nextSibling;return c.$$click=a,E(c,(()=>{var h=ce(()=>!!n());return()=>h()?x(Ra,{class:"h-3 w-3"}):x(Ia,{class:"h-3 w-3"})})(),l),E(l,()=>K3(e.meta.startedAt)),E(d,()=>U3(e.meta)),E(f,()=>H3(e.meta)),E(p,()=>j3(e.meta)),E(g,()=>G3(e.meta.sizeBytes)),E(u,x(X,{get when(){return n()},get children(){var h=F3();return E(h,x(X,{get when(){return o().truncated},get children(){var m=M3();return E(m,()=>T("agentLogs.truncated")),m}}),null),E(h,x(X,{get when(){return o().loading},get children(){var m=Ei();return E(m,()=>T("common.loading")),m}}),null),E(h,x(X,{get when(){return o().error},get children(){var m=L3();return E(m,()=>o().error),m}}),null),E(h,x(X,{get when(){return ce(()=>!o().loading&&!o().error)()&&o().content},get children(){var m=$3();return E(m,()=>o().content),m}}),null),E(h,x(X,{get when(){return ce(()=>!o().loading&&!o().error)()&&!o().content},get children(){var m=Ei();return E(m,()=>T("agentLogs.emptyLog")),m}}),null),h}}),null),he(h=>{var m=n(),b=`text-sm font-medium ${q3(e.meta)}`;return m!==h.e&&ve(c,"aria-expanded",h.e=m),b!==h.t&&dt(f,h.t=b),h},{e:void 0,t:void 0}),u})()};function U3(e){switch(e.mode){case"skill-run":return"Run";case"explain":return"Explain";case"review":return"Review";case"git-ops":switch(e.action){case"commit":return"GitCommit";case"discard":return"GitDiscard";case"stash":return"GitStash";default:return"GitOps"}default:return String(e.mode)}}function K3(e){try{return new Date(e).toLocaleString()}catch{return String(e)}}function q3(e){return e.exitCode===0?"text-green-600":e.exitCode===null&&e.endedAt===null?"text-primary":"text-destructive"}function H3(e){return e.exitCode===0?T("agentLogs.success"):e.exitCode===null&&e.endedAt===null?T("agentLogs.notFinished"):T("agentLogs.failed",{code:e.exitCode??"n/a"})}function j3(e){if(e.endedAt===null)return"—";const t=Math.max(0,e.endedAt-e.startedAt);if(t<1e3)return`${t}ms`;const n=Math.round(t/100)/10;if(n<60)return`${n}s`;const r=Math.floor(n/60),o=Math.round(n-r*60);return`${r}m${o}s`}function G3(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(2)}MB`}Cn(["click"]);var V3=$('<section class=p-8><header class=mb-4><h1 class="text-2xl font-bold"></h1></header><p class=text-muted-foreground></p><p class="mt-4 text-muted-foreground"><code class="ml-1 rounded bg-muted px-1.5 py-0.5 font-mono text-sm">yorz add <path>');const wg=()=>(()=>{var e=V3(),t=e.firstChild,n=t.firstChild,r=t.nextSibling,o=r.nextSibling,i=o.firstChild;return E(n,()=>T("welcome.title")),E(r,()=>T("welcome.description")),E(o,()=>T("welcome.addHint"),i),e})();var W3=$('<p class="p-8 text-muted-foreground">');const Y3=()=>{const[e]=Un(()=>Ke.listProjects());return x(X,{get when(){return!e.loading},get fallback(){return(()=>{var t=W3();return E(t,()=>T("common.loading")),t})()},get children(){return x(X,{get when(){return(e()??[]).length>0},get fallback(){return x(wg,{})},get children(){return(()=>{const n=(e()??[])[0];return n?x(sh,{get href(){return`/${encodeURIComponent(n.id)}`}}):null})()}})}})};var Z3=$('<pre class="m-0 max-h-48 overflow-auto bg-background p-2 font-mono text-sm whitespace-pre-wrap border-t">'),X3=$('<div class="px-2 py-1 text-sm text-muted-foreground">'),Q3=$('<div class="px-2 py-1 text-sm text-destructive">'),J3=$('<div class="flex flex-col border rounded-md bg-background"><div class="flex items-center gap-2 px-2 py-1.5 cursor-pointer hover:bg-muted/50"><span></span><span class="flex-1 truncate "></span><span>'),eS=$("<em class=text-muted-foreground>"),tS=$("<span class=text-muted-foreground>"),nS=$('<div class="flex max-h-64 flex-col-reverse gap-1 overflow-y-auto p-1.5">'),rS=$('<div class="flex flex-col border-t bg-card shadow-lg"><div class="flex items-center justify-between border-b px-3 py-1.5"><button type=button class="flex items-center gap-2 bg-transparent border-0 cursor-pointer"><span class=" font-semibold"></span></button><div class="flex items-center gap-2"><div class="flex items-center gap-0.5 text-sm text-muted-foreground"><span class="font-semibold text-primary"></span><span class=text-muted-foreground/50>/</span><span class=text-green-600></span><span class=text-muted-foreground/50>/</span><span class=text-destructive>');const oS={run:"agentDock.sourceRun",explain:"agentDock.sourceExplain",draft:"agentDock.sourceDraft"},iS={pending:"agentDock.statusPending",streaming:"agentDock.statusStreaming",done:"agentDock.statusDone",failed:"agentDock.statusFailed"},sS={pending:"text-muted-foreground",streaming:"text-primary",done:"text-green-600",failed:"text-destructive"},aS={run:"text-primary",explain:"text-accent-foreground",draft:"text-purple-600"},uS=3,_g="yorz.agentDock.collapsed",cS=32;let Ta=!1;function lS(){try{if(typeof window>"u")return!1;const e=window.localStorage.getItem(_g);return e==="1"||e==="0"?(Ta=!0,e==="1"):!1}catch{return!1}}function td(e){try{typeof window<"u"&&window.localStorage.setItem(_g,e?"1":"0")}catch{}}const dS=e=>{const[t,n]=I(e.task.status!=="done"),[r,o]=I(!1);let i;const s=()=>{const d=i;d&&o(d.scrollTop+d.clientHeight>=d.scrollHeight-cS)},a=()=>{const d=i;d&&(d.scrollTop=d.scrollHeight)};J(()=>{e.task.output,!(!t()||!r())&&queueMicrotask(a)}),J(()=>{e.task.status,e.task.status==="streaming"&&!r()&&queueMicrotask(a)}),ge(()=>{window.removeEventListener("resize",s)});const u=d=>{d.stopPropagation(),Ft.dismiss(e.task.runId)},c=()=>e.task.specId.startsWith("__draft__"),l=()=>n(d=>!d);return(()=>{var d=J3(),f=d.firstChild,p=f.firstChild,g=p.nextSibling,h=g.nextSibling;return f.$$click=l,E(f,x(X,{get when(){return t()},get fallback(){return x(Ia,{class:"h-4 w-4 shrink-0 text-muted-foreground"})},get children(){return x(Ra,{class:"h-4 w-4 shrink-0 text-muted-foreground"})}}),p),E(p,()=>T(oS[e.task.source])),E(g,x(X,{get when(){return!c()},get fallback(){return(()=>{var m=eS();return E(m,()=>e.task.specTitle??T("common.pendingAgent")),m})()},get children(){return x(zn,{get href(){return Zt(`specs/${encodeURIComponent(e.task.specId)}`)},class:"hover:underline",onClick:m=>m.stopPropagation(),get children(){return e.task.specTitle??e.task.specId}})}})),E(h,()=>T(iS[e.task.status])),E(f,x(X,{get when(){return e.task.status==="streaming"||e.task.status==="pending"},get children(){return x(Mr,{class:"h-3.5 w-3.5 animate-spin text-primary"})}}),null),E(f,x(je,{variant:"ghost",size:"icon",class:"h-6 w-6",onClick:u,get children(){return x(Ao,{class:"h-3.5 w-3.5"})}}),null),E(d,x(X,{get when(){return t()},get children(){return[(()=>{var m=Z3();m.addEventListener("scroll",s);var b=i;return typeof b=="function"?tr(b,m):i=m,E(m,x(X,{get when(){return e.task.output},get fallback(){return(()=>{var y=tS();return E(y,()=>T("agentDock.waitingOutput")),y})()},get children(){return e.task.output}})),m})(),x(X,{get when(){return e.task.status==="pending"},get children(){var m=X3();return E(m,()=>T("agentDock.creatingNew")),m}}),x(X,{get when(){return ce(()=>e.task.status==="failed")()&&e.task.error},get children(){var m=Q3();return E(m,()=>e.task.error),m}})]}}),null),he(m=>{var b=`text-sm font-medium ${aS[e.task.source]}`,y=`text-sm font-medium ${sS[e.task.status]}`;return b!==m.e&&dt(p,m.e=b),y!==m.t&&dt(h,m.t=y),m},{e:void 0,t:void 0}),d})()},fS=()=>{const[e,t]=I(lS()),n=J(()=>Ft.state.order.map(c=>Ft.state.tasks[c]).filter(c=>!!c&&!c.dismissed)),r=J(()=>n().some(c=>c.status==="done"||c.status==="failed")),o=J(()=>n().filter(c=>c.status==="pending"||c.status==="streaming").length),i=J(()=>n().filter(c=>c.status==="done").length),s=J(()=>n().filter(c=>c.status==="failed").length);J(()=>{!Ta&&n().length>uS&&!e()&&(t(!0),td(!0),Ta=!0)});const a=()=>{t(c=>{const l=!c;return td(l),l})},u=()=>{Ft.clearFinished()};return x(X,{get when(){return n().length>0},get children(){var c=rS(),l=c.firstChild,d=l.firstChild,f=d.firstChild,p=d.nextSibling,g=p.firstChild,h=g.firstChild,m=h.nextSibling,b=m.nextSibling,y=b.nextSibling,v=y.nextSibling;return d.$$click=a,E(d,x(X,{get when(){return e()},get fallback(){return x(Ra,{class:"h-4 w-4 text-muted-foreground"})},get children(){return x(dm,{class:"h-4 w-4 text-muted-foreground"})}}),f),E(f,()=>T("agentDock.title")),E(h,o),E(b,i),E(v,s),E(p,x(X,{get when(){return r()},get children(){return x(je,{variant:"ghost",size:"sm",onClick:u,get children(){return T("agentDock.clearFinished")}})}}),null),E(c,x(X,{get when(){return!e()},get children(){var w=nS();return E(w,x(Pt,{get each(){return n()},children:_=>x(dS,{task:_})})),w}}),null),he(w=>{var _=T("agentDock.panelLabel"),k=!e(),A=T("agentDock.title");return _!==w.e&&ve(c,"aria-label",w.e=_),k!==w.t&&ve(d,"aria-expanded",w.t=k),A!==w.a&&ve(d,"aria-label",w.a=A),w},{e:void 0,t:void 0,a:void 0}),c}})};Cn(["click"]);var nd=$('<label class="flex flex-col gap-1 font-medium"><span>'),gS=$('<form class="flex flex-col gap-4"><fieldset class="m-0 flex flex-wrap gap-2 border-0 p-0"><legend class="mb-1.5 font-medium"></legend></fieldset><label class="flex flex-col gap-1 font-medium"><span></span><span class="text-sm text-muted-foreground">'),pS=$('<p class=" text-muted-foreground">'),hS=$('<label class="flex cursor-pointer items-center gap-1.5 "><input type=radio name=project-config-agent><span>'),mS=$('<p class=" text-destructive">');const bS={claude:"ClaudeCode",opencode:"OpenCode",codex:"Codex",custom:T("projectConfig.custom")},to=".yorz/specs",yS=e=>{const[t,n]=I("claude"),[r,o]=I(""),[i,s]=I(""),[a,u]=I(to),[c,l]=I(to),[d,f]=I(!1),[p,g]=I(!1),[h,m]=I(null);ae(()=>{e.open&&(m(null),f(!0),(async()=>{try{const _=await Ke.getProjectConfig(e.projectId);b(_)}catch(_){m(_.message)}finally{f(!1)}})())});function b(_){n(_.agent.kind),_.agent.kind==="custom"?(o(_.agent.cmd),s(_.agent.args.join(" "))):(o(""),s(""));const k=_.specsDir||to;u(k),l(k)}function y(_){return _.split(/\s+/).map(k=>k.trim()).filter(Boolean)}function v(){const _=t();if(_==="claude")return{kind:"claude"};if(_==="opencode")return{kind:"opencode"};if(_==="codex")return{kind:"codex"};const k=r().trim();return k?{kind:"custom",cmd:k,args:y(i())}:{error:T("projectConfig.cmdRequired")}}async function w(_){_.preventDefault(),m(null);const k=v();if("error"in k){m(k.error);return}const A=a().trim()||to;if(A.split(/[\\/]/).some(S=>S==="..")){m(T("projectConfig.invalidPath"));return}g(!0);try{await Ke.updateProjectConfig(e.projectId,{agent:k,specsDir:A});let S=T("projectConfig.saved");A!==c()&&(S+=T("projectConfig.oldSpecsHint")),e.onSaved?.(S),e.onClose()}catch(S){m(S.message)}finally{g(!1)}}return x(tu,{get open(){return e.open},onOpenChange:_=>!_&&e.onClose(),get children(){return x(nu,{class:"max-w-[480px]",get children(){return[x(ou,{get children(){return x(ru,{get children(){return[ce(()=>T("projectConfig.title"))," · ",ce(()=>e.projectName)]}})}}),x(X,{get when(){return!d()},get fallback(){return(()=>{var _=pS();return E(_,()=>T("common.loading")),_})()},get children(){var _=gS(),k=_.firstChild,A=k.firstChild,S=k.nextSibling,D=S.firstChild,B=D.nextSibling;return _.addEventListener("submit",w),E(A,()=>T("projectConfig.agent")),E(k,()=>["claude","opencode","codex","custom"].map(R=>(()=>{var M=hS(),F=M.firstChild,O=F.nextSibling;return F.addEventListener("change",()=>n(R)),F.value=R,E(O,()=>bS[R]),he(()=>F.disabled=p()),he(()=>F.checked=t()===R),M})()),null),E(_,x(X,{get when(){return t()==="custom"},get children(){return[(()=>{var R=nd(),M=R.firstChild;return E(M,()=>T("projectConfig.cmd")),E(R,x(ni,{type:"text",get value(){return r()},onInput:F=>o(F.currentTarget.value),get placeholder(){return T("projectConfig.cmdPlaceholder")},get disabled(){return p()}}),null),R})(),(()=>{var R=nd(),M=R.firstChild;return E(M,()=>T("projectConfig.args")),E(R,x(ni,{type:"text",get value(){return i()},onInput:F=>s(F.currentTarget.value),placeholder:"--flag value",get disabled(){return p()}}),null),R})()]}}),S),E(D,()=>T("projectConfig.specsDir")),E(S,x(ni,{type:"text",get value(){return a()},onInput:R=>u(R.currentTarget.value),placeholder:to,get disabled(){return p()}}),B),E(B,()=>T("projectConfig.specsDirHint")),E(_,(()=>{var R=ce(()=>!!h());return()=>R()&&(()=>{var M=mS();return E(M,h),M})()})(),null),E(_,x(iu,{get children(){return[x(je,{type:"button",variant:"outline",get onClick(){return e.onClose},get disabled(){return p()},get children(){return T("common.cancel")}}),x(je,{type:"submit",get disabled(){return p()},get children(){return ce(()=>!!p())()?T("common.saving"):T("projectConfig.save")}})]}}),null),_}})]}})}})};var xS=$('<span class=" font-semibold tracking-wide">'),vS=$('<div class="flex items-center gap-1">'),wS=$('<ul class="m-0 flex-1 list-none overflow-y-auto py-1.5">'),_S=$('<p class="m-0 text-sm leading-relaxed text-muted-foreground break-words"><code class="mt-0.5 inline-block rounded bg-muted px-1 py-0.5 font-mono text-[0.85em] break-all">'),ES=$('<div class="absolute right-0 top-0 z-[2] h-full w-1 cursor-col-resize bg-transparent hover:bg-accent/40"role=separator aria-orientation=vertical>'),kS=$("<aside><header></header><footer>"),SS=$('<p class="px-2.5 py-2 text-muted-foreground">'),CS=$('<span class="block truncate">'),AS=$('<span class="ml-1 inline-flex items-center gap-0.5 text-sm text-muted-foreground">'),TS=$('<button type=button class="absolute right-6 top-1/2 -translate-y-1/2 p-1 text-muted-foreground opacity-0 transition-opacity hover:text-accent-foreground group-hover:opacity-100">'),DS=$('<button type=button class="absolute right-1.5 top-1/2 -translate-y-1/2 p-1 text-muted-foreground opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100">'),OS=$('<li class="group relative flex items-center">'),NS=$('<span class="inline-block font-semibold">'),RS=$('<span class="flex h-5 w-5 items-center justify-center rounded bg-muted text-muted-foreground">'),IS=$('<p class="mt-1 text-sm text-destructive break-words">'),MS=$('<p class="break-all font-semibold">');const Eg="yorz.projectsSidebar.collapsed",kg="yorz.projectsSidebar.width",ao=220,LS=160,$S=480;function FS(){try{return typeof window<"u"&&window.localStorage.getItem(Eg)==="1"}catch{return!1}}function PS(e){try{typeof window<"u"&&window.localStorage.setItem(Eg,e?"1":"0")}catch{}}function pu(e){return Number.isFinite(e)?Math.min($S,Math.max(LS,Math.round(e))):ao}function BS(){try{if(typeof window>"u")return ao;const e=window.localStorage.getItem(kg);if(!e)return ao;const t=Number(e);return Number.isFinite(t)?pu(t):ao}catch{return ao}}function zS(e){try{typeof window<"u"&&window.localStorage.setItem(kg,String(pu(e)))}catch{}}function rd(e){if(!e.worktree)return e.name;const t=e.worktree.mainPath.split("/").filter(Boolean).pop()??e.worktree.mainPath,n=e.worktree.cleanSlug??e.worktree.branch.replace(/^wt\//,"");return`${t} · ${n}`}const US=()=>{const[e,t]=I(FS()),[n,r]=I(BS()),[o,{refetch:i}]=Un(()=>Ke.listProjects()),[s,a]=I(null),[u,c]=I(null),[l,d]=I(null),[f,p]=I(!1),[g,h]=I(!1),m=So(),b=Co(),y=J(()=>{const O=b.pathname.match(/^\/([^/]+)/);return O&&O[1]!=="api"?O[1]:""});function v(){const O=!e();t(O),PS(O)}let w=null,_=null,k=null;function A(O){e()||(O.preventDefault(),w={startX:O.clientX,startW:n(),raf:null},document.body.classList.add("is-resizing"),_=P=>{if(!w)return;const G=P.clientX-w.startX,L=pu(w.startW+G);w.raf==null&&(w.raf=requestAnimationFrame(()=>{w&&(w.raf=null,r(L))}))},k=()=>{w?.raf!=null&&cancelAnimationFrame(w.raf),w=null,document.body.classList.remove("is-resizing"),_&&document.removeEventListener("mousemove",_),k&&document.removeEventListener("mouseup",k),_=null,k=null,zS(n())},document.addEventListener("mousemove",_),document.addEventListener("mouseup",k))}ge(()=>{_&&document.removeEventListener("mousemove",_),k&&document.removeEventListener("mouseup",k),document.body.classList.remove("is-resizing")});function S(O,P){P.preventDefault(),P.stopPropagation(),c(O)}function D(O,P="success"){P==="error"?Lr.error(O):Lr.success(O)}function B(O,P){P.preventDefault(),P.stopPropagation(),p(!1),d(O)}async function R(){const O=l();if(O){h(!0);try{f()&&O.worktree?await Ke.removeProjectWithFiles(O.id):await Ke.removeProject(O.id),await i(),y()===O.id&&m("/"),d(null)}catch(P){const G=P.message;G.includes("409")?(Lr.error(T("sidebar.uncommittedChanges")),d(null)):(a(G),Lr.error(G))}finally{h(!1)}}}function M(){i()}const F=()=>e()?void 0:{width:`${n()}px`};return(()=>{var O=kS(),P=O.firstChild,G=P.nextSibling;return E(P,x(X,{get when(){return!e()},get fallback(){return x(je,{variant:"outline",size:"sm",class:"h-7 w-7 p-0",onClick:v,get title(){return T("sidebar.expand")},get children(){return x(bm,{class:"h-4 w-4"})}})},get children(){return[(()=>{var L=xS();return E(L,()=>T("sidebar.title")),L})(),(()=>{var L=vS();return E(L,x(je,{variant:"outline",size:"sm",class:"h-7 w-7 p-0",onClick:M,get disabled(){return o.loading},get title(){return T("sidebar.refreshList")},get children(){return x(Pd,{get class(){return`h-3.5 w-3.5 ${o.loading?"animate-spin":""}`}})}}),null),E(L,x(je,{variant:"outline",size:"sm",class:"h-7 w-7 p-0",onClick:v,get title(){return T("sidebar.collapse")},get children(){return x(pm,{class:"h-4 w-4"})}}),null),L})()]}})),E(O,x(X,{get when(){return o()!==void 0},get fallback(){return(()=>{var L=SS();return E(L,()=>T("common.loading")),L})()},get children(){var L=wS();return E(L,x(Pt,{get each(){return o()??[]},children:q=>{const j=()=>y()===q.id;return(()=>{var N=OS();return E(N,x(zn,{get href(){return`/${encodeURIComponent(q.id)}`},get class(){return`flex-1 truncate px-2.5 py-1.5 no-underline ${j()?"bg-background font-semibold":"hover:bg-background"} ${e()?"px-0 text-center":""}`},get title(){return q.path},get children(){return x(X,{get when(){return!e()},get fallback(){return(()=>{var Y=NS();return E(Y,()=>(q.name[0]??"?").toUpperCase()),Y})()},get children(){return[(()=>{var Y=CS();return E(Y,()=>rd(q)),Y})(),x(X,{get when(){return q.worktree},get children(){var Y=AS();return E(Y,x(Cm,{class:"h-3 w-3"}),null),E(Y,()=>T("sidebar.worktreeBadge"),null),he(()=>ve(Y,"title",`worktree of ${q.worktree.mainPath}`)),Y}})]}})}}),null),E(N,x(X,{get when(){return!e()},get children(){return[(()=>{var Y=TS();return Y.$$click=ee=>S(q,ee),E(Y,x(Fm,{class:"h-3.5 w-3.5"})),he(ee=>{var Te=T("sidebar.configure",{name:q.name}),Me=T("sidebar.projectConfig");return Te!==ee.e&&ve(Y,"aria-label",ee.e=Te),Me!==ee.t&&ve(Y,"title",ee.t=Me),ee},{e:void 0,t:void 0}),Y})(),(()=>{var Y=DS();return Y.$$click=ee=>void B(q,ee),E(Y,x(Ao,{class:"h-3.5 w-3.5"})),he(ee=>{var Te=T("sidebar.removeProject",{name:q.name}),Me=T("sidebar.deleteProject");return Te!==ee.e&&ve(Y,"aria-label",ee.e=Te),Me!==ee.t&&ve(Y,"title",ee.t=Me),ee},{e:void 0,t:void 0}),Y})()]}}),null),N})()}})),L}}),G),E(G,x(X,{get when(){return!e()},get fallback(){return(()=>{var L=RS();return E(L,x(vm,{class:"h-3.5 w-3.5"})),he(()=>ve(L,"title",`${T("sidebar.addHint")}${T("sidebar.addCmd")}`)),L})()},get children(){var L=_S(),q=L.firstChild;return E(L,()=>T("sidebar.addHint"),q),E(q,()=>T("sidebar.addCmd")),L}}),null),E(G,(()=>{var L=ce(()=>!!s());return()=>L()&&(()=>{var q=IS();return E(q,s),he(()=>ve(q,"title",s())),q})()})(),null),E(O,x(X,{get when(){return!e()},get children(){var L=ES();return L.$$mousedown=A,he(()=>ve(L,"aria-label",T("sidebar.resizeHint"))),L}}),null),E(O,x(X,{get when(){return u()},children:L=>x(yS,{open:!0,get projectId(){return L().id},get projectName(){return L().name},onClose:()=>c(null),onSaved:q=>D(q)})}),null),E(O,x(tu,{get open(){return l()!==null},onOpenChange:L=>!L&&!g()&&d(null),get children(){return x(nu,{class:"max-w-sm",get children(){return[x(ou,{get children(){return[x(ru,{get children(){return T("sidebar.deleteProject")}}),x(Kx,{get children(){return T("sidebar.deleteDesc")}})]}}),x(X,{get when(){return l()},children:L=>[(()=>{var q=MS();return E(q,()=>rd(L())),q})(),x(X,{get when(){return L().worktree},get children(){return x(z0,{get checked(){return f()},onChange:q=>p(q),class:"flex items-center gap-2 text-destructive",get children(){return[x(U0,{}),x(B0,{get children(){return T("sidebar.deleteFiles")}})]}})}})]}),x(iu,{get children(){return[x(je,{variant:"outline",onClick:()=>d(null),get disabled(){return g()},get children(){return T("common.cancel")}}),x(je,{variant:"destructive",onClick:()=>void R(),get disabled(){return g()},get children(){return ce(()=>!!g())()?T("common.deleting"):T("common.confirmDelete")}})]}})]}})}}),null),he(L=>{var q=`relative flex flex-col border-r bg-card shrink-0 ${e()?"w-9 transition-[width] duration-150":""}`,j=F(),N=`flex items-center border-b ${e()?"justify-center py-2":"justify-between px-2.5 py-2"}`,Y=`border-t ${e()?"flex justify-center py-2":"p-2"}`;return q!==L.e&&dt(O,L.e=q),L.t=mr(O,j,L.t),N!==L.a&&dt(P,L.a=N),Y!==L.o&&dt(G,L.o=Y),L},{e:void 0,t:void 0,a:void 0,o:void 0}),O})()};Cn(["mousedown","click"]);var KS=$('<div class="flex h-full flex-col"><header class="flex h-12 shrink-0 items-center gap-2 border-b bg-card px-4"><div class=ml-auto></div></header><div class="flex min-h-0 flex-1"><main class="flex min-h-0 min-w-0 flex-1 flex-col overflow-auto">');const qS=e=>{const t=Co(),{lng:n,changeLanguage:r}=$v();function o(s){s!==n()&&(r(s),window.location.reload())}ae(()=>{const s=t.pathname.match(/^\/([^/]+)/);Vm(s&&s[1]!=="api"?s[1]:"")});const i=new Set;return ae(()=>{const s=Ma();!s||i.has(s)||(i.add(s),Ft.hydrateFromActiveRuns(s))}),(()=>{var s=KS(),a=s.firstChild,u=a.firstChild,c=a.nextSibling,l=c.firstChild;return E(a,x(zn,{href:"/",class:"text-lg font-bold",children:"YorZ"}),u),E(u,x(m0,{placement:"bottom-end",get children(){return[x(h0,{as:je,variant:"ghost",size:"icon",get title(){return T("shell.languageSwitch")},get children(){return x(Rm,{class:"h-4 w-4"})}}),x(b0,{get children(){return[x(_a,{onSelect:()=>o("zh-CN"),get children(){return[x(Zu,{get class(){return`mr-2 h-4 w-4 ${n()==="zh-CN"?"opacity-100":"opacity-0"}`}}),ce(()=>T("shell.langZh"))]}}),x(_a,{onSelect:()=>o("en"),get children(){return[x(Zu,{get class(){return`mr-2 h-4 w-4 ${n()==="en"?"opacity-100":"opacity-0"}`}}),ce(()=>T("shell.langEn"))]}})]}})]}})),E(c,x(US,{}),l),E(l,()=>e.children),E(s,x(fS,{}),null),E(s,x(Rv,{position:"top-center"}),null),s})()},Sg=document.getElementById("app");if(!Sg)throw new Error("missing #app root");mp(()=>x(oh,{root:qS,get children(){return[x(dr,{path:"/",component:Y3}),x(dr,{path:"/:projectId",component:Xv}),x(dr,{path:"/:projectId/specs/new",component:Fw}),x(dr,{path:"/:projectId/specs/:id",component:f3}),x(dr,{path:"/:projectId/specs/:id/review",component:T3}),x(dr,{path:"/:projectId/specs/:id/agent-logs",component:B3}),x(dr,{path:"*",component:wg})]}}),Sg);queueMicrotask(()=>{const e=document.body,t=document.documentElement;console.log("[body-overflow-diagnostic]",{bodyScrollHeight:e.scrollHeight,bodyClientHeight:e.clientHeight,docScrollHeight:t.scrollHeight,docClientHeight:t.clientHeight,windowInnerHeight:window.innerHeight,bodyOverflowing:e.scrollHeight>e.clientHeight,docOverflowing:t.scrollHeight>t.clientHeight})});export{wk as _,hg as g};
|