pulls.review 0.3.2 → 0.3.3

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.
Files changed (106) hide show
  1. package/dist/client/assets/ActionButton-BYTohOMA.js +1 -0
  2. package/dist/client/assets/ActionIconButton-B2taMg1G.js +1 -0
  3. package/dist/client/assets/ChatMessage-BRtxpV-j.js +80 -0
  4. package/dist/client/assets/ChatWidget-DGoJBAHG.js +1 -0
  5. package/dist/client/assets/DisplayFileIcon-CgcKzuIF.js +151 -0
  6. package/dist/client/assets/LandingHero-BcDLrBWu.js +1 -0
  7. package/dist/client/assets/LocalAgentSettings-DnWX-4ja.js +1 -0
  8. package/dist/client/assets/MarkdownMermaid-CZsnBTo5.js +134 -0
  9. package/dist/client/assets/ModelPicker-DJOF4_oE.js +3 -0
  10. package/dist/client/assets/SelectViewport-CLu2vHZ1.js +1 -0
  11. package/dist/client/assets/_repo_-B9Xsfdgp.js +22 -0
  12. package/dist/client/assets/analyze-Dt4HsiiL.js +1 -0
  13. package/dist/client/assets/{core-messages-E0LWb5xA.js → core-messages-BKVsL0s6.js} +1 -1
  14. package/dist/client/assets/dark-BBICmi9u.js +1 -0
  15. package/dist/client/assets/de-X0_7KOpR.js +1 -0
  16. package/dist/client/assets/decode-BMLx_QAi.js +1 -0
  17. package/dist/client/assets/{diagnostics-DundJi2s.js → diagnostics-FPncUZ9A.js} +1 -1
  18. package/dist/client/assets/diff-BVBdGkpM.js +37 -0
  19. package/dist/client/assets/diff-CNjyt43T.js +1 -0
  20. package/dist/client/assets/diffs-store-M5WP-Rye.js +1432 -0
  21. package/dist/client/assets/dist-B3ulq7dg.js +3 -0
  22. package/dist/client/assets/en-4wf48bhl.js +1 -0
  23. package/dist/client/assets/es-z_aJuLEM.js +1 -0
  24. package/dist/client/assets/fr-BSSnc845.js +1 -0
  25. package/dist/client/assets/i18n-BaWfCCFj.js +2 -0
  26. package/dist/client/assets/id-DpmfJDwA.js +1 -0
  27. package/dist/client/assets/index-B346Vuj9.css +1 -0
  28. package/dist/client/assets/index-DAczNoU5.js +2 -0
  29. package/dist/client/assets/install-BtceKESn.js +4 -0
  30. package/dist/client/assets/it-DnvTXQOp.js +1 -0
  31. package/dist/client/assets/ja-EKD3f8pB.js +1 -0
  32. package/dist/client/assets/ko-3WANYsbE.js +1 -0
  33. package/dist/client/assets/llm-DwxQbGwE.js +88 -0
  34. package/dist/client/assets/llm-store-CBiRLoQj.js +1 -0
  35. package/dist/client/assets/local-agents-Bhc2OYII.js +1 -0
  36. package/dist/client/assets/pages-IPE7GMm2.js +1 -0
  37. package/dist/client/assets/pages-local-B-qUAdMG.js +1 -0
  38. package/dist/client/assets/pages-web-CV7QqqdA.js +21 -0
  39. package/dist/client/assets/portalTarget-DKryvPGY.js +1 -0
  40. package/dist/client/assets/pt-BR-BC7-mMJ3.js +1 -0
  41. package/dist/client/assets/rpc-backends-Bm_fmyjf.js +1 -0
  42. package/dist/client/assets/ru-ChI2XEFF.js +1 -0
  43. package/dist/client/assets/runtime-dom.esm-bundler-D9VhaAqy.js +2 -0
  44. package/dist/client/assets/{source-CvnvCX42.js → source-BWADV8Aq.js} +1 -1
  45. package/dist/client/assets/time-ago-CMSCAiQn.js +1 -0
  46. package/dist/client/assets/upload-riZ3DIfL.js +1 -0
  47. package/dist/client/assets/useCommitView-CgsbPEnq.js +1 -0
  48. package/dist/client/assets/useDocumentTitle-D1Q-0ufQ.js +92 -0
  49. package/dist/client/assets/useNonce-AntPf6d2.js +1 -0
  50. package/dist/client/assets/useTypeahead-DtM58Ahg.js +1 -0
  51. package/dist/client/assets/utils-DaMPgnza.js +1 -0
  52. package/dist/client/assets/vue-i18n-X72ILEtz.js +3 -0
  53. package/dist/client/assets/zh-CN-DXr4JfHY.js +1 -0
  54. package/dist/client/assets/zh-TW-CmCU_HxU.js +1 -0
  55. package/dist/client/index.html +9 -8
  56. package/dist/{devframe-Z3sgjlMJ.mjs → devframe-C2cyQ64F.mjs} +1 -1
  57. package/dist/devframe.mjs +1 -1
  58. package/dist/index.mjs +6 -2
  59. package/package.json +2 -2
  60. package/dist/client/assets/ActionButton-wEgApzce.js +0 -1
  61. package/dist/client/assets/ActionIconButton-wh9iuTi4.js +0 -1
  62. package/dist/client/assets/ChatMessage-wZOblr2O.js +0 -80
  63. package/dist/client/assets/ChatWidget-Dbic6F6V.js +0 -1
  64. package/dist/client/assets/DisplayFileIcon-DffhOXN6.js +0 -151
  65. package/dist/client/assets/GithubAvatar-eLlc5vap.js +0 -1
  66. package/dist/client/assets/LandingHero-Bb_CGwOP.js +0 -1
  67. package/dist/client/assets/LocalAgentSettings-CWvSCuNr.js +0 -1
  68. package/dist/client/assets/ModelPicker-CLoBWotf.js +0 -3
  69. package/dist/client/assets/SelectViewport-Dt28PIGK.js +0 -1
  70. package/dist/client/assets/_repo_-BIF9MuRW.js +0 -22
  71. package/dist/client/assets/analyze-B3YV6_zK.js +0 -1
  72. package/dist/client/assets/de-BfUc2exP.js +0 -1
  73. package/dist/client/assets/diff-BwixkBTz.js +0 -1
  74. package/dist/client/assets/diff-Coo81SbJ.js +0 -37
  75. package/dist/client/assets/diffs-store-BPvgHGVY.js +0 -1431
  76. package/dist/client/assets/en-OkC_9BLh.js +0 -1
  77. package/dist/client/assets/es-DuVRv3jP.js +0 -1
  78. package/dist/client/assets/fr-BI5_M_ty.js +0 -1
  79. package/dist/client/assets/i18n-DtZTpAlH.js +0 -2
  80. package/dist/client/assets/id-BU9INgNZ.js +0 -1
  81. package/dist/client/assets/index-Buksdj5x.js +0 -2
  82. package/dist/client/assets/index-m8kW8Q0V.css +0 -1
  83. package/dist/client/assets/install-BrSGg9K8.js +0 -4
  84. package/dist/client/assets/it-C2TUiK_A.js +0 -1
  85. package/dist/client/assets/ja-BQDWzjgo.js +0 -1
  86. package/dist/client/assets/ko-Ca7kDPia.js +0 -1
  87. package/dist/client/assets/llm-5e9k-gOP.js +0 -88
  88. package/dist/client/assets/llm-store-1j45N-6d.js +0 -1
  89. package/dist/client/assets/local-agents-0SHBuj0A.js +0 -1
  90. package/dist/client/assets/pages-hDJHVoGR.js +0 -1
  91. package/dist/client/assets/pages-local-0BoMyVi4.js +0 -1
  92. package/dist/client/assets/pages-web-QiNoFNlt.js +0 -21
  93. package/dist/client/assets/portalTarget-I9JDQCD2.js +0 -1
  94. package/dist/client/assets/pt-BR-DcjGEP2y.js +0 -1
  95. package/dist/client/assets/rpc-backends-arDnFRtp.js +0 -1
  96. package/dist/client/assets/ru-DhCHBcLb.js +0 -1
  97. package/dist/client/assets/runtime-dom.esm-bundler-DL194Z-s.js +0 -2
  98. package/dist/client/assets/time-ago-Bdao9Hh1.js +0 -1
  99. package/dist/client/assets/upload-Bi-0MPhd.js +0 -1
  100. package/dist/client/assets/useDocumentTitle-DSsMzDvH.js +0 -92
  101. package/dist/client/assets/useNonce-DujRSGP5.js +0 -1
  102. package/dist/client/assets/useTypeahead-CV0JPPYe.js +0 -1
  103. package/dist/client/assets/utils-bzkWQhBP.js +0 -1
  104. package/dist/client/assets/vue-i18n-B4RRzKT-.js +0 -5
  105. package/dist/client/assets/zh-CN-DKqrk-nJ.js +0 -1
  106. package/dist/client/assets/zh-TW-CXhwUL4C.js +0 -1
@@ -1 +0,0 @@
1
- import{Cn as e,Dt as t,G as n,Ht as r,J as i,Jt as a,K as o,Kn as s,P as c,W as l,_ as u,et as d,fn as f,kr as p,ln as m,q as h,rt as g,tt as _,xn as v}from"./vue-i18n-B4RRzKT-.js";import{x as y}from"./runtime-dom.esm-bundler-DL194Z-s.js";import{t as b}from"./ActionButton-wEgApzce.js";import{t as x}from"./ActionIconButton-wh9iuTi4.js";import{t as S}from"./ChatMessage-wZOblr2O.js";var C={class:`fixed bottom-4 right-4 z-dropdown`},w={key:1,class:`h-140 max-h-[calc(100vh-2rem)] max-w-[calc(100vw-2rem)] w-100 flex flex-col overflow-hidden border border-base rounded-lg bg-base shadow-xl`},T={class:`flex items-center gap-2 border-b border-base px-3 py-2`},E={class:`flex-auto text-sm font-semibold`},D={key:0,class:`flex flex-auto items-center justify-center p-6 text-center text-sm op-mute`},O={key:0,class:`flex items-center gap-1.5 text-xs op-mute`,role:`status`},k={key:0,class:`break-words px-3 pb-2 text-xs text-red-500`},A={class:`flex items-end gap-2 border-t border-base p-2`},j=[`placeholder`,`aria-label`,`disabled`],M=g({__name:`ChatWidget`,props:t({store:{}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:[`update:open`],setup(t){let g=t,M=l(()=>g.store.llm.chat),N=m(t,`open`),P=s(``),F=l(()=>M.value.isStreaming||g.store.llm.isAnalyzing),I=l(()=>M.value.messages.length-1),L=l(()=>{let e=M.value.messages.at(-1);return e?.role===`assistant`&&e.stopReason===`error`}),R=l(()=>{if(!M.value.isStreaming)return!1;let e=M.value.messages.at(-1),t=e?.role===`assistant`?e.content.at(-1):void 0;return!(t?.type===`text`&&t.text.trim())}),z=f(`listEl`),B=f(`contentEl`),V=s(!0);function H(){let e=z.value;e&&(V.value=e.scrollHeight-e.scrollTop-e.clientHeight<40)}u(B,()=>{V.value&&z.value&&(z.value.scrollTop=z.value.scrollHeight)});async function U(){let e=P.value;e.trim()&&!F.value&&(P.value=``,V.value=!0,await M.value.send(e))}function W(e){e.key!==`Enter`||e.shiftKey||e.isComposing||(e.preventDefault(),U())}return(t,s)=>(r(),i(`div`,C,[N.value?(r(),i(`div`,w,[n(`div`,T,[s[7]||=n(`span`,{class:`i-ph:chat-circle-dots-duotone op-mute`,"aria-hidden":`true`},null,-1),n(`span`,E,p(t.$t(`chat.title`)),1),M.value.available?(r(),o(b,{key:0,size:`sm`,variant:`text`,onClick:s[1]||=e=>M.value.clear()},{default:v(()=>[d(p(t.$t(`common.clear`)),1)]),_:1})):h(``,!0),_(x,{compact:``,icon:`i-ph:caret-down`,tooltip:t.$t(`chat.collapse`),onClick:s[2]||=e=>N.value=!1},null,8,[`tooltip`])]),M.value.available?(r(),i(c,{key:1},[n(`div`,{ref_key:`listEl`,ref:z,class:`min-w-0 flex-auto overflow-y-auto overscroll-contain p-3`,onScroll:H},[n(`div`,{ref_key:`contentEl`,ref:B,class:`flex flex-col gap-3`},[(r(!0),i(c,null,a(M.value.messages,(e,t)=>(r(),o(S,{key:t,message:e,retryable:t===I.value&&!M.value.isStreaming,onRetry:s[3]||=e=>M.value.retry()},null,8,[`message`,`retryable`]))),128)),R.value?(r(),i(`div`,O,[s[8]||=n(`span`,{class:`i-ph:spinner-duotone animate-spin`,"aria-hidden":`true`},null,-1),d(` `+p(t.$t(`chat.thinking`)),1)])):h(``,!0)],512)],544),M.value.error&&!L.value?(r(),i(`p`,k,p(M.value.error.message),1)):h(``,!0),n(`div`,A,[e(n(`textarea`,{"onUpdate:modelValue":s[4]||=e=>P.value=e,rows:`2`,placeholder:t.$t(`chat.placeholder`),"aria-label":t.$t(`chat.title`),disabled:F.value,class:`flex-auto resize-none border border-base rounded bg-raised p-2 text-sm outline-none disabled:op-mute focus-visible:ring-2 focus-visible:ring-primary-500/40`,onKeydown:W},null,40,j),[[y,P.value]]),M.value.isStreaming?(r(),o(b,{key:0,size:`sm`,icon:`i-ph:stop-duotone`,onClick:s[5]||=e=>M.value.stop()},{default:v(()=>[d(p(t.$t(`common.stop`)),1)]),_:1})):(r(),o(b,{key:1,size:`sm`,variant:`primary`,icon:`i-ph:paper-plane-right-duotone`,disabled:F.value||!P.value.trim(),onClick:s[6]||=e=>U()},{default:v(()=>[d(p(t.$t(`common.send`)),1)]),_:1},8,[`disabled`]))])],64)):(r(),i(`div`,D,p(t.$t(`chat.reanalyzeToEnable`)),1))])):(r(),o(x,{key:0,icon:`i-ph:chat-circle-dots-duotone`,title:t.$t(`chat.title`),label:t.$t(`chat.title`),class:`border border-base bg-base text-xl shadow-lg`,onClick:s[0]||=e=>N.value=!0},null,8,[`title`,`label`]))]))}});export{M as default};
@@ -1,151 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./typescript-BTGs5etX.js","./rolldown-runtime-Dd_uD5pT.js","./javascript-DcMHgNcu.js","./jsx-BUUYi3qs.js","./tsx-DvWhG4dC.js","./vue-BbYmdtmv.js","./css-DlBQoFxe.js","./html-BC8aFsRK.js","./json-qhed-kSA.js","./vue-html-BXjKVtKk.js","./glimmer-js-BheR6Tf0.js","./glimmer-ts-B3Q3-uij.js","./handlebars-qjPKy-PP.js","./yaml-rwi0_p6S.js","./scss-C-_0yqZd.js","./xml-BsprbK0m.js","./java-D7h0NA_A.js","./c-BNQJhXlP.js","./cpp-7GgD5o7L.js","./ruby-CaMjWH7T.js","./graphql-ki1Ij_uk.js","./lua-DCW0Dwo5.js","./sql-BsFa4tDR.js","./shellscript-CLZ0U2zV.js","./php-BahmaYs0.js","./perl-C8GHouAq.js","./elixir-D3n0XgqJ.js","./nginx-C4fSytnP.js"])))=>i.map(i=>d[i]);
2
- import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{G as t,Ht as n,J as r,Or as i,Tr as a,W as o,nr as s,rt as c}from"./vue-i18n-B4RRzKT-.js";import{t as l}from"./preload-helper-BaNbYf_w.js";import{A as u,B as d,C as f,D as p,E as m,F as h,I as g,L as ee,M as te,N as ne,O as re,P as ie,R as ae,T as oe,W as se,j as ce,k as le,w as ue,z as _}from"./useDocumentTitle-DSsMzDvH.js";var de=new Map,fe=new Map,pe=new Map,me=new Set;function he(e){for(let t of Array.isArray(e)?e:[e])if(t!==`text`&&t!==`ansi`&&!me.has(t))return!1;return!0}function ge(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(me.has(n.name))continue;let e=de.get(n.name);e??(e=n,de.set(n.name,e));let r=e.data.find(t=>t.name===e.name||t.aliases?.includes(e.name)===!0);if(r==null)throw Error(`attachResolvedLanguages: No returned grammar declares "${e.name}" as its name or an alias.`);t.loadLanguageSync(e.data);try{t.getLanguage(e.name)}catch{throw Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${e.name}". Load the alias first or give the grammar a unique name.`)}me.add(e.name)}}function _e(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var ve=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],ye=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ye.prototype.normal={},ye.prototype.property={},ye.prototype.space=void 0;function be(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ye(n,r,t)}function xe(e){return e.toLowerCase()}var v=class{constructor(e,t){this.attribute=t,this.property=e}};v.prototype.attribute=``,v.prototype.booleanish=!1,v.prototype.boolean=!1,v.prototype.commaOrSpaceSeparated=!1,v.prototype.commaSeparated=!1,v.prototype.defined=!1,v.prototype.mustUseProperty=!1,v.prototype.number=!1,v.prototype.overloadedBoolean=!1,v.prototype.property=``,v.prototype.spaceSeparated=!1,v.prototype.space=void 0;var Se=e({boolean:()=>y,booleanish:()=>b,commaOrSpaceSeparated:()=>w,commaSeparated:()=>C,number:()=>x,overloadedBoolean:()=>we,spaceSeparated:()=>S}),Ce=0,y=T(),b=T(),we=T(),x=T(),S=T(),C=T(),w=T();function T(){return 2**++Ce}var Te=Object.keys(Se),Ee=class extends v{constructor(e,t,n,r){let i=-1;if(super(e,t),De(this,`space`,r),typeof n==`number`)for(;++i<Te.length;){let e=Te[i];De(this,Te[i],(n&Se[e])===Se[e])}}};Ee.prototype.defined=!0;function De(e,t,n){n&&(e[t]=n)}function E(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Ee(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[xe(r)]=r,n[xe(a.attribute)]=r}return new ye(t,n,e.space)}var Oe=E({properties:{ariaActiveDescendant:null,ariaAtomic:b,ariaAutoComplete:null,ariaBusy:b,ariaChecked:b,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:S,ariaCurrent:null,ariaDescribedBy:S,ariaDetails:null,ariaDisabled:b,ariaDropEffect:S,ariaErrorMessage:null,ariaExpanded:b,ariaFlowTo:S,ariaGrabbed:b,ariaHasPopup:null,ariaHidden:b,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:S,ariaLevel:x,ariaLive:null,ariaModal:b,ariaMultiLine:b,ariaMultiSelectable:b,ariaOrientation:null,ariaOwns:S,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:b,ariaReadOnly:b,ariaRelevant:null,ariaRequired:b,ariaRoleDescription:S,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:b,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ke(e,t){return t in e?e[t]:t}function Ae(e,t){return ke(e,t.toLowerCase())}var je=E({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:C,acceptCharset:S,accessKey:S,action:null,allow:null,allowFullScreen:y,allowPaymentRequest:y,allowUserMedia:y,alpha:y,alt:null,as:null,async:y,autoCapitalize:null,autoComplete:S,autoFocus:y,autoPlay:y,blocking:S,capture:null,charSet:null,checked:y,cite:null,className:S,closedBy:null,colorSpace:null,cols:x,colSpan:x,command:null,commandFor:null,content:null,contentEditable:b,controls:y,controlsList:S,coords:x|C,crossOrigin:null,data:null,dateTime:null,decoding:null,default:y,defer:y,dir:null,dirName:null,disabled:y,download:we,draggable:b,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:y,formTarget:null,headers:S,height:x,hidden:we,high:x,href:null,hrefLang:null,htmlFor:S,httpEquiv:S,id:null,imageSizes:null,imageSrcSet:null,inert:y,inputMode:null,integrity:null,is:null,isMap:y,itemId:null,itemProp:S,itemRef:S,itemScope:y,itemType:S,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:y,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:y,muted:y,name:null,nonce:null,noModule:y,noValidate:y,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:y,optimum:x,pattern:null,ping:S,placeholder:null,playsInline:y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:y,referrerPolicy:null,rel:S,required:y,reversed:y,rows:x,rowSpan:x,sandbox:S,scope:null,scoped:y,seamless:y,selected:y,shadowRootClonable:y,shadowRootCustomElementRegistry:y,shadowRootDelegatesFocus:y,shadowRootMode:null,shadowRootSerializable:y,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:b,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:y,useMap:null,value:b,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:S,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:y,declare:y,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:y,noHref:y,noShade:y,noWrap:y,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:b,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:y,disablePictureInPicture:y,disableRemotePlayback:y,exportParts:C,part:S,prefix:null,property:null,results:x,security:null,unselectable:null},space:`html`,transform:Ae}),Me=E({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:w,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:S,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:y,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:C,g2:C,glyphName:C,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:w,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:S,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:w,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:w,rev:w,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:w,requiredFeatures:w,requiredFonts:w,requiredFormats:w,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:w,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:w,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:w,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ke}),Ne=E({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Pe=E({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Ae}),Fe=E({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ie=/[A-Z]/g,Le=/-[a-z]/g,Re=/^data[-\w.:]+$/i;function ze(e,t){let n=xe(t),r=t,i=v;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Re.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Le,Ve);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Le.test(e)){let n=e.replace(Ie,Be);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Ee}return new i(r,t)}function Be(e){return`-`+e.toLowerCase()}function Ve(e){return e.charAt(1).toUpperCase()}var He=be([Oe,je,Ne,Pe,Fe],`html`),Ue=be([Oe,Me,Ne,Pe,Fe],`svg`),We={}.hasOwnProperty;function Ge(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&We.call(t,e)){let n=String(t[e]);i=We.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Ke=/["&'<>`]/g,qe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Je=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ye=/[|\\{}()[\]^$+*?.]/g,Xe=new WeakMap;function Ze(e,t){return e=e.replace(t.subset?Qe(t.subset):Ke,r),t.subset||t.escapeOnly?e:e.replace(qe,n).replace(Je,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Qe(e){let t=Xe.get(e);return t||(t=$e(e),Xe.set(e,t)),t}function $e(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Ye,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var et=/[\dA-Fa-f]/;function tt(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!et.test(String.fromCharCode(t))?r:r+`;`}var nt=/\d/;function rt(e,t,n){let r=`&#`+String(e);return n&&t&&!nt.test(String.fromCharCode(t))?r:r+`;`}var it=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),at={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},ot=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],st={}.hasOwnProperty,ct={},lt;for(lt in at)st.call(at,lt)&&(ct[at[lt]]=lt);var ut=/[^\dA-Za-z]/;function dt(e,t,n,r){let i=String.fromCharCode(e);if(st.call(ct,i)){let e=ct[i],a=`&`+e;return n&&it.includes(e)&&!ot.includes(e)&&(!r||t&&t!==61&&ut.test(String.fromCharCode(t)))?a:a+`;`}return``}function ft(e,t,n){let r=tt(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=dt(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=rt(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function D(e,t){return Ze(e,Object.assign({format:ft},t))}var pt=/^>|^->|<!--|-->|--!>|<!-$/g,mt=[`>`],ht=[`<`,`>`];function gt(e,t,n,r){return r.settings.bogusComments?`<?`+D(e.value,Object.assign({},r.settings.characterReferences,{subset:mt}))+`>`:`<!--`+e.value.replace(pt,i)+`-->`;function i(e){return D(e,Object.assign({},r.settings.characterReferences,{subset:ht}))}}function _t(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function vt(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function yt(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function bt(e){return e.join(` `).trim()}var xt=/[ \t\n\f\r]/g;function St(e){return typeof e==`object`?e.type===`text`&&Ct(e.value):Ct(e)}function Ct(e){return e.replace(xt,``)===``}var O=Et(1),wt=Et(-1),Tt=[];function Et(e){return t;function t(t,n,r){let i=t?t.children:Tt,a=(n||0)+e,o=i[a];if(!r)for(;o&&St(o);)a+=e,o=i[a];return o}}var Dt={}.hasOwnProperty;function Ot(e){return t;function t(t,n,r){return Dt.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var kt=Ot({body:Mt,caption:At,colgroup:At,dd:It,dt:Ft,head:At,html:jt,li:Pt,optgroup:Rt,option:zt,p:Nt,rp:Lt,rt:Lt,tbody:Vt,td:Wt,tfoot:Ht,th:Wt,thead:Bt,tr:Ut});function At(e,t,n){let r=O(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&St(r.value.charAt(0)))}function jt(e,t,n){let r=O(n,t);return!r||r.type!==`comment`}function Mt(e,t,n){let r=O(n,t);return!r||r.type!==`comment`}function Nt(e,t,n){let r=O(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||n.type!==`element`||n.tagName!==`a`&&n.tagName!==`audio`&&n.tagName!==`del`&&n.tagName!==`ins`&&n.tagName!==`map`&&n.tagName!==`noscript`&&n.tagName!==`video`}function Pt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&r.tagName===`li`}function Ft(e,t,n){let r=O(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function It(e,t,n){let r=O(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function Lt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function Rt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function zt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Bt(e,t,n){let r=O(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function Vt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Ht(e,t,n){return!O(n,t)}function Ut(e,t,n){let r=O(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Wt(e,t,n){let r=O(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var Gt=Ot({body:Jt,colgroup:Yt,head:qt,html:Kt,tbody:Xt});function Kt(e){let t=O(e,-1);return!t||t.type!==`comment`}function qt(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Jt(e){let t=O(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&St(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function Yt(e,t,n){let r=wt(n,t),i=O(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&kt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Xt(e,t,n){let r=wt(n,t),i=O(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&kt(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Zt={name:[[`
3
- \f\r &/=>`.split(``),`
4
- \f\r "&'/=>\``.split(``)],[`\0
5
- \f\r "&'/<=>`.split(``),`\0
6
- \f\r "&'/<=>\``.split(``)]],unquoted:[[`
7
- \f\r &>`.split(``),`\0
8
- \f\r "&'<=>\``.split(``)],[`\0
9
- \f\r "&'<=>\``.split(``),`\0
10
- \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Qt(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Ue);let l=$t(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!Gt(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!kt(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function $t(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=en(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function en(e,t,n){let r=ze(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=D(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Zt.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?yt:bt)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=D(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Zt.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&vt(n,o)>vt(n,e.alternative)&&(o=e.alternative),s=o+D(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Zt.single:Zt.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var tn=[`<`,`&`];function nn(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:D(e.value,Object.assign({},r.settings.characterReferences,{subset:tn}))}function rn(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nn(e,t,n,r)}function an(e,t,n,r){return r.all(e)}var on=Ge(`type`,{invalid:sn,unknown:cn,handlers:{comment:gt,doctype:_t,element:Qt,raw:rn,root:an,text:nn}});function sn(e){throw Error("Expected node, not `"+e+"`")}function cn(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var ln={},un={},dn=[];function fn(e,t){let n=t||ln,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:pn,all:mn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ve,characterReferences:n.characterReferences||un,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Ue:He,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function pn(e,t,n){return on(e,t,n,this)}function mn(e){let t=[],n=e&&e.children||dn,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var hn=/\s+/g;function gn(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(hn)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(hn);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function _n(e){let t=ae(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var vn=[`color`,`background-color`];function yn(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function bn(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function xn(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=bn(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return yn(e,a)})):e}function Sn(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>Cn(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&vn.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,f=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${f})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function Cn(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&_.Italic&&(t[`font-style`]=`italic`),e.fontStyle&_.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&_.Underline&&n.push(`underline`),e.fontStyle&_.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function wn(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function Tn(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=_n(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new d(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new d(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new d(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));En(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return xn(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new d(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=Dn(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new d(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new d(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&gn(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function En(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new d(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new d(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function Dn(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(Dn).join(``):``}var On=[Tn()];function kn(e){let t=An(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...On]}function An(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var k=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],jn={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Mn(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Nn(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Pn(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)jn[r]&&t.push({type:`setDecoration`,value:jn[r]});else if(r<=29){let e=jn[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:k[r-30]}});else if(r===38){let n=Nn(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:k[r-40]}});else if(r===48){let n=Nn(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:k[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:k[r-100+8]}})}}return t}function Fn(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Mn(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Pn(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var In={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function Ln(e=In){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<k.length;e++)r.push(t(k[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Rn=/#([0-9a-f]{3,8})/i,zn=/var\((--[\w-]+-ansi-[\w-]+)\)/,Bn={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function Vn(e,t,n){let r=g(e,n),i=ae(t),a=Ln(Object.fromEntries(k.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Bn[t]]}))),o=Fn();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=m(i,r),o=m(o,r),n.decorations.has(`dim`)&&(i=Hn(i));let s=_.None;return n.decorations.has(`bold`)&&(s|=_.Bold),n.decorations.has(`italic`)&&(s|=_.Italic),n.decorations.has(`underline`)&&(s|=_.Underline),n.decorations.has(`strikethrough`)&&(s|=_.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Hn(e){let t=e.match(Rn);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(zn);return n?`var(${n[1]}-dim)`:e}function Un(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!ne(r)&&!te(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Vn(r,t,n)}return p(e,t,n)}function Wn(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:f=`css-vars`}=n,p=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(p.length===0)throw new d("`themes` option must not be empty");let m=re(e,t,n,Un);if(c=ce(m),l&&l!==`light-dark()`&&!p.some(e=>e.color===l))throw new d(`\`themes\` option must contain the defaultColor key \`${l}\``);let h=p.map(t=>e.getTheme(t.theme)),te=p.map(e=>e.color);a=m.map(e=>e.map(e=>Sn(e,te,u,l,f))),c&&ee(a,c);let ne=p.map(e=>g(e.theme,n));i=Gn(p,h,ne,u,l,`fg`,f),r=Gn(p,h,ne,u,l,`bg`,f),o=`shiki-themes ${h.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=g(n.theme,n);a=Un(e,t,n);let l=e.getTheme(n.theme);r=m(l.bg,s),i=m(l.fg,s),o=l.name,c=ce(a)}else throw new d("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Gn(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=m(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new d('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${m(t[r][a],n[r])||`inherit`}, ${m(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Kn=/^\s+$/,qn=/^(\s*)(.*?)(\s*)$/;function Jn(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Jn(e,t,n),codeToTokens:(t,n)=>Wn(e,t,n)}){let i=t;for(let e of kn(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Wn(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Xn(a):d===`never`&&(a=Zn(a)),f&&(a=Qn(a));let p={...r,get source(){return i}};for(let e of kn(n))a=e.tokens?.call(p,a)||a;return Yn(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Yn(e,t,n,r=ce(e)){let i=kn(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:gn,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
11
- `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=wn(a.htmlStyle||Cn(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&ee(m,r),m}function Xn(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&_.Underline||i.fontStyle&_.Strikethrough));o&&Kn.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Zn(e){return e.map(e=>e.flatMap(e=>{if(Kn.test(e.content))return e;let t=e.content.match(qn);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Qn(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=wn(e.htmlStyle||Cn(e)),i=wn(n.htmlStyle||Cn(n)),a=e.fontStyle&&(e.fontStyle&_.Underline||e.fontStyle&_.Strikethrough),o=n.fontStyle&&(n.fontStyle&_.Underline||n.fontStyle&_.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var $n=fn;function er(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Jn(e,t,n),codeToTokens:(t,n)=>Wn(e,t,n)},i=$n(Jn(e,t,n,r));for(let e of kn(n))i=e.postprocess?.call(r,i,n)||i;return i}async function tr(e){let t=await le(e);return{getLastGrammarState:(...e)=>u(t,...e),codeToTokensBase:(e,n)=>Un(t,e,n),codeToTokensWithThemes:(e,n)=>re(t,e,n),codeToTokens:(e,n)=>Wn(t,e,n),codeToHast:(e,n)=>Jn(t,e,n),codeToHtml:(e,n)=>er(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function nr(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,ie(n))return[];let r=t[n];if(!r)throw new d(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(h(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new d(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await tr({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}var rr=4294967295;function ir(e){return!e.sticky&&!e.rawOptions?.strategy}function ar(e,t){return{index:e,captureIndices:t.map(e=>e==null?{start:rr,end:rr,length:0}:{start:e[0],end:e[1],length:e[1]-e[0]})}}var or=class{patterns;options;regexps;lastSearches;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:n=!1,cache:r,regexConstructor:i}=t;if(!i)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if(typeof e!=`string`)return e;let t=r?.get(e);if(t){if(t instanceof RegExp)return t;if(n)return null;throw t}try{let t=i(e);return r?.set(e,t),t}catch(t){if(r?.set(e,t),n)return null;throw t}}),this.lastSearches=this.regexps.map(e=>e&&ir(e)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){let r=typeof e==`string`?e:e.content,i=typeof e==`string`?0:e.id||0,a=-1,o=0,s=null;for(let e=0;e<this.regexps.length;e++){let n=this.regexps[e];if(n)try{let c=i?this.lastSearches[e]:null,l,u;if(c&&c.strId===i&&c.searchedFrom<=t&&(c.matchIndex===-1||c.matchIndex>=t))l=c.matchIndex,u=c.indices;else{n.lastIndex=t;let e=n.exec(r);l=e?e.index:-1,u=e?e.indices:null,c&&(c.strId=i,c.searchedFrom=t,c.matchIndex=l,c.indices=u)}if(l===-1)continue;if(l===t)return ar(e,u);(a===-1||l<o)&&(a=e,o=l,s=u)}catch(e){if(this.options.forgiving)continue;throw e}}return a===-1?null:ar(a,s)}},sr=0;function cr(e){return{content:e,id:++sr}}function A(e){if([...e].length!==1)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function lr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}var ur=new Set([`alnum`,`alpha`,`ascii`,`blank`,`cntrl`,`digit`,`graph`,`lower`,`print`,`punct`,`space`,`upper`,`word`,`xdigit`]),j=String.raw;function M(e,t){if(e==null)throw Error(t??`Value expected`);return e}var dr=j`\[\^?`,fr=`c.? | C(?:-.?)?|${j`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${j`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${j`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${j`o\{[^\}]*\}?`}|${j`\d{1,3}`}`,pr=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,mr=new RegExp(j`
12
- \\ (?:
13
- ${fr}
14
- | [gk]<[^>]*>?
15
- | [gk]'[^']*'?
16
- | .
17
- )
18
- | \( (?:
19
- \? (?:
20
- [:=!>({]
21
- | <[=!]
22
- | <[^>]*>
23
- | '[^']*'
24
- | ~\|?
25
- | #(?:[^)\\]|\\.?)*
26
- | [^:)]*[:)]
27
- )?
28
- | \*[^\)]*\)?
29
- )?
30
- | (?:${pr.source})+
31
- | ${dr}
32
- | .
33
- `.replace(/\s+/g,``),`gsu`),hr=new RegExp(j`
34
- \\ (?:
35
- ${fr}
36
- | .
37
- )
38
- | \[:(?:\^?\p{Alpha}+|\^):\]
39
- | ${dr}
40
- | &&
41
- | .
42
- `.replace(/\s+/g,``),`gsu`);function gr(e,t={}){let n={flags:``,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!=`string`)throw Error(`String expected as pattern`);let r=Wr(n.flags),i=[r.extended],a={captureGroup:n.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(e){i.push(e)},replaceCurrentModX(e){i[i.length-1]=e},singleline:n.rules.singleline},o=[],s;for(mr.lastIndex=0;s=mr.exec(e);){let t=_r(a,e,s[0],mr.lastIndex);t.tokens?o.push(...t.tokens):t.token&&o.push(t.token),t.lastIndex!==void 0&&(mr.lastIndex=t.lastIndex)}let c=[],l=0;o.filter(e=>e.type===`GroupOpen`).forEach(e=>{e.kind===`capturing`?e.number=++l:e.raw===`(`&&c.push(e)}),l||c.forEach((e,t)=>{e.kind=`capturing`,e.number=t+1});let u=l||c.length;return{tokens:o.map(e=>e.type===`EscapedNumber`?Kr(e,u):e).flat(),flags:r}}function _r(e,t,n,r){let[i,a]=n;if(n===`[`||n===`[^`){let e=vr(t,n,r);return{tokens:e.tokens,lastIndex:e.lastIndex}}if(i===`\\`){if(`AbBGyYzZ`.includes(a))return{token:Sr(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Pr(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw Error(`Invalid group name "${n}"`);return{token:Cr(n)}}if(a===`K`)return{token:Or(`keep`,n)};if(a===`N`||a===`R`)return{token:P(`newline`,n,{negate:a===`N`})};if(a===`O`)return{token:P(`any`,n)};if(a===`X`)return{token:P(`text_segment`,n)};let e=br(n,{inCharClass:!1});return Array.isArray(e)?{tokens:e}:{token:e}}if(i===`(`){if(a===`*`)return{token:zr(n)};if(n===`(?{`)throw Error(`Unsupported callout "${n}"`);if(n.startsWith(`(?#`)){if(t[r]!==`)`)throw Error(`Unclosed comment group "(?#"`);return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Rr(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n===`(`&&!e.captureGroup||n===`(?:`)return{token:jr(`group`,n)};if(n===`(?>`)return{token:jr(`atomic`,n)};if(n===`(?=`||n===`(?!`||n===`(?<=`||n===`(?<!`)return{token:jr(n[2]===`<`?`lookbehind`:`lookahead`,n,{negate:n.endsWith(`!`)})};if(n===`(`&&e.captureGroup||n.startsWith(`(?<`)&&n.endsWith(`>`)||n.startsWith(`(?'`)&&n.endsWith(`'`))return{token:jr(`capturing`,n,{...n!==`(`&&{name:n.slice(3,-1)}})};if(n.startsWith(`(?~`)){if(n===`(?~|`)throw Error(`Unsupported absence function kind "${n}"`);return{token:jr(`absence_repeater`,n)}}throw Error(n===`(?(`?`Unsupported conditional "${n}"`:`Invalid or unsupported group option "${n}"`)}if(n===`)`){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw Error(`Unmatched ")"`);return{token:Ar(n)}}if(e.getCurrentModX()){if(n===`#`){let e=t.indexOf(`
43
- `,r);return{lastIndex:e===-1?t.length:e}}if(/^\s$/.test(n)){let e=/\s+/y;return e.lastIndex=r,{lastIndex:e.exec(t)?e.lastIndex:r}}}return n===`.`?{token:P(`dot`,n)}:n===`^`||n===`$`?{token:Sr(e.singleline?{"^":j`\A`,$:j`\Z`}[n]:n,n)}:n===`|`?{token:xr(n)}:pr.test(n)?{tokens:qr(n)}:{token:N(A(n),n)}}function vr(e,t,n){let r=[Dr(t[1]===`^`,t)],i=1,a;for(hr.lastIndex=n;a=hr.exec(e);){let e=a[0];if(e[0]===`[`&&e[1]!==`:`)i++,r.push(Dr(e[1]===`^`,e));else if(e===`]`){if(r.at(-1).type===`CharacterClassOpen`)r.push(N(93,e));else if(i--,r.push(wr(e)),!i)break}else{let t=yr(e);Array.isArray(t)?r.push(...t):r.push(t)}}return{tokens:r,lastIndex:hr.lastIndex||e.length}}function yr(e){if(e[0]===`\\`)return br(e,{inCharClass:!0});if(e[0]===`[`){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!ur.has(t.groups.name))throw Error(`Invalid POSIX class "${e}"`);return P(`posix`,e,{value:t.groups.name,negate:!!t.groups.negate})}return e===`-`?Tr(e):e===`&&`?Er(e):N(A(e),e)}function br(e,{inCharClass:t}){let n=e[1];if(n===`c`||n===`C`)return Lr(e);if(`dDhHsSwW`.includes(n))return Vr(e);if(e.startsWith(j`\o{`))throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw Error(`Incomplete or invalid Unicode property "${e}"`);return Hr(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let t=e.split(/\\x/).slice(1).map(e=>parseInt(e,16)),n=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(t)),r=new TextEncoder;return[...n].map(e=>{let t=[...r.encode(e)].map(e=>`\\x${e.toString(16)}`).join(``);return N(A(e),t)})}catch{throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n===`u`||n===`x`)return N(Gr(e),e);if(Ir.has(n))return N(Ir.get(n),e);if(/\d/.test(n))return kr(t,e);if(e===`\\`)throw Error(j`Incomplete escape "\"`);if(n===`M`)throw Error(`Unsupported meta "${e}"`);if([...e].length===2)return N(e.codePointAt(1),e);throw Error(`Unexpected escape "${e}"`)}function xr(e){return{type:`Alternator`,raw:e}}function Sr(e,t){return{type:`Assertion`,kind:e,raw:t}}function Cr(e){return{type:`Backreference`,raw:e}}function N(e,t){return{type:`Character`,value:e,raw:t}}function wr(e){return{type:`CharacterClassClose`,raw:e}}function Tr(e){return{type:`CharacterClassHyphen`,raw:e}}function Er(e){return{type:`CharacterClassIntersector`,raw:e}}function Dr(e,t){return{type:`CharacterClassOpen`,negate:e,raw:t}}function P(e,t,n={}){return{type:`CharacterSet`,kind:e,...n,raw:t}}function Or(e,t,n={}){return e===`keep`?{type:`Directive`,kind:e,raw:t}:{type:`Directive`,kind:e,flags:M(n.flags),raw:t}}function kr(e,t){return{type:`EscapedNumber`,inCharClass:e,raw:t}}function Ar(e){return{type:`GroupClose`,raw:e}}function jr(e,t,n={}){return{type:`GroupOpen`,kind:e,...n,raw:t}}function Mr(e,t,n,r){return{type:`NamedCallout`,kind:e,tag:t,arguments:n,raw:r}}function Nr(e,t,n,r){return{type:`Quantifier`,kind:e,min:t,max:n,raw:r}}function Pr(e){return{type:`Subroutine`,raw:e}}var Fr=new Set([`COUNT`,`CMP`,`ERROR`,`FAIL`,`MAX`,`MISMATCH`,`SKIP`,`TOTAL_COUNT`]),Ir=new Map([[`a`,7],[`b`,8],[`e`,27],[`f`,12],[`n`,10],[`r`,13],[`t`,9],[`v`,11]]);function Lr(e){let t=e[1]===`c`?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw Error(`Unsupported control character "${e}"`);return N(A(t.toUpperCase())-64,e)}function Rr(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??=``;let i=(t.getCurrentModX()||n.includes(`x`))&&!r.includes(`x`),a=Ur(n),o=Ur(r),s={};if(a&&(s.enable=a),o&&(s.disable=o),e.endsWith(`)`))return t.replaceCurrentModX(i),Or(`flags`,e,{flags:s});if(e.endsWith(`:`))return t.pushModX(i),t.numOpenGroups++,jr(`group`,e,{...(a||o)&&{flags:s}});throw Error(`Unexpected flag modifier "${e}"`)}function zr(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw Error(`Incomplete or invalid named callout "${e}"`);let{name:n,tag:r,args:i}=t.groups;if(!n)throw Error(`Invalid named callout "${e}"`);if(r===``)throw Error(`Named callout tag with empty value not allowed "${e}"`);let a=i?i.split(`,`).filter(e=>e!==``).map(e=>/^[+-]?\d+$/.test(e)?+e:e):[],[o,s,c]=a,l=Fr.has(n)?n.toLowerCase():`custom`;switch(l){case`fail`:case`mismatch`:case`skip`:if(a.length>0)throw Error(`Named callout arguments not allowed "${a}"`);break;case`error`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(typeof o==`string`)throw Error(`Named callout argument must be a number "${o}"`);break;case`max`:if(!a.length||a.length>2)throw Error(`Named callout must have one or two arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(a.length===2&&(typeof s==`number`||!/^[<>X]$/.test(s)))throw Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case`count`:case`total_count`:if(a.length>1)throw Error(`Named callout allows only one argument "${a}"`);if(a.length===1&&(typeof o==`number`||!/^[<>X]$/.test(o)))throw Error(`Named callout optional argument must be '<', '>', or 'X' "${o}"`);break;case`cmp`:if(a.length!==3)throw Error(`Named callout must have three arguments "${a}"`);if(typeof o==`string`&&!/^[A-Za-z_]\w*$/.test(o))throw Error(`Named callout argument one must be a tag or number "${o}"`);if(typeof s==`number`||!/^(?:[<>!=]=|[<>])$/.test(s))throw Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c==`string`&&!/^[A-Za-z_]\w*$/.test(c))throw Error(`Named callout argument three must be a tag or number "${c}"`);break;case`custom`:throw Error(`Undefined callout name "${n}"`);default:throw Error(`Unexpected named callout kind "${l}"`)}return Mr(l,r??null,i?.split(`,`)??null,e)}function Br(e){let t=null,n,r;if(e[0]===`{`){let{minStr:i,maxStr:a}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,o=1e5;if(+i>o||a&&+a>o)throw Error(`Quantifier value unsupported in Oniguruma`);if(n=+i,r=a===void 0?+i:a===``?1/0:+a,n>r&&(t=`possessive`,[n,r]=[r,n]),e.endsWith(`?`)){if(t===`possessive`)throw Error(`Unsupported possessive interval quantifier chain with "?"`);t=`lazy`}else t||=`greedy`}else n=+(e[0]===`+`),r=e[0]===`?`?1:1/0,t=e[1]===`+`?`possessive`:e[1]===`?`?`lazy`:`greedy`;return Nr(t,n,r,e)}function Vr(e){let t=e[1].toLowerCase();return P({d:`digit`,h:`hex`,s:`space`,w:`word`}[t],e,{negate:e[1]!==t})}function Hr(e){let{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return P(`property`,e,{value:r,negate:t===`P`&&!n||t===`p`&&!!n})}function Ur(e){let t={};return e.includes(`i`)&&(t.ignoreCase=!0),e.includes(`m`)&&(t.dotAll=!0),e.includes(`x`)&&(t.extended=!0),Object.keys(t).length?t:null}function Wr(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){let r=e[n];if(!`imxDPSWy`.includes(r))throw Error(`Invalid flag "${r}"`);if(r===`y`){if(!/^y{[gw]}/.test(e.slice(n)))throw Error(`Invalid or unspecified flag "y" mode`);t.textSegmentMode=e[n+2]===`g`?`grapheme`:`word`,n+=3;continue}t[{i:`ignoreCase`,m:`dotAll`,x:`extended`,D:`digitIsAscii`,P:`posixIsAscii`,S:`spaceIsAscii`,W:`wordIsAscii`}[r]]=!0}return t}function Gr(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw Error(`Incomplete or invalid escape "${e}"`);let t=e[2]===`{`?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function Kr(e,t){let{raw:n,inCharClass:r}=e,i=n.slice(1);if(!r&&(i!==`0`&&i.length===1||i[0]!==`0`&&+i<=t))return[Cr(n)];let a=[],o=i.match(/^[0-7]+|\d/g);for(let e=0;e<o.length;e++){let t=o[e],r;if(e===0&&t!==`8`&&t!==`9`){if(r=parseInt(t,8),r>127)throw Error(j`Octal encoded byte above 177 unsupported "${n}"`)}else r=A(t);a.push(N(r,(e===0?`\\`:``)+t))}return a}function qr(e){let t=[],n=new RegExp(pr,`gy`),r;for(;r=n.exec(e);){let e=r[0];if(e[0]===`{`){let r=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(e);if(r){let{min:i,max:a}=r.groups;if(+i>+a&&e.endsWith(`?`)){n.lastIndex--,t.push(Br(e.slice(0,-1)));continue}}}t.push(Br(e))}return t}function Jr(e,t){if(!Array.isArray(e.body))throw Error(`Expected node with body array`);if(e.body.length!==1)return!1;let n=e.body[0];return!t||Object.keys(t).every(e=>t[e]===n[e])}function Yr(e){return Xr.has(e.type)}var Xr=new Set([`AbsenceFunction`,`Backreference`,`CapturingGroup`,`Character`,`CharacterClass`,`CharacterSet`,`Group`,`Quantifier`,`Subroutine`]);function Zr(e,t={}){let n={flags:``,normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=gr(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),i=(e,t)=>{let n=r.tokens[a.nextIndex];switch(a.parent=e,a.nextIndex++,n.type){case`Alternator`:return F();case`Assertion`:return Qr(n);case`Backreference`:return $r(n,a);case`Character`:return ui(n.value,{useLastValid:!!t.isCheckingRangeEnd});case`CharacterClassHyphen`:return ei(n,a,t);case`CharacterClassOpen`:return ti(n,a,t);case`CharacterSet`:return ni(n,a);case`Directive`:return mi(n.kind,{flags:n.flags});case`GroupOpen`:return ri(n,a,t);case`NamedCallout`:return gi(n.kind,n.tag,n.arguments);case`Quantifier`:return ii(n,a);case`Subroutine`:return ai(n,a);default:throw Error(`Unexpected token type "${n.type}"`)}},a={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:i},o=yi(hi(r.flags)),s=o.body[0];for(;a.nextIndex<r.tokens.length;){let e=i(s,{});e.type===`Alternative`?(o.body.push(e),s=e):s.body.push(e)}let{capturingGroups:c,hasNumberedRef:l,namedGroupsByName:u,subroutines:d}=a;if(l&&u.size&&!n.rules.captureGroup)throw Error(`Numbered backref/subroutine not allowed when using named capture`);for(let{ref:e}of d)if(typeof e==`number`){if(e>c.length)throw Error(`Subroutine uses a group number that's not defined`);e&&(c[e-1].isSubroutined=!0)}else if(u.has(e)){if(u.get(e).length>1)throw Error(j`Subroutine uses a duplicate group name "\g<${e}>"`);u.get(e)[0].isSubroutined=!0}else throw Error(j`Subroutine uses a group name that's not defined "\g<${e}>"`);return o}function Qr({kind:e}){return si(M({"^":`line_start`,$:`line_end`,"\\A":`string_start`,"\\b":`word_boundary`,"\\B":`word_boundary`,"\\G":`search_start`,"\\y":`text_segment_boundary`,"\\Y":`text_segment_boundary`,"\\z":`string_end`,"\\Z":`string_end_newline`}[e],`Unexpected assertion kind "${e}"`),{negate:e===j`\B`||e===j`\Y`})}function $r({raw:e},t){let n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),i=(n,r=!1)=>{let i=t.capturingGroups.length,a=!1;if(n>i){if(t.skipBackrefValidation)a=!0;else throw Error(`Not enough capturing groups defined to the left "${e}"`)}return t.hasNumberedRef=!0,ci(r?i+1-n:n,{orphan:a})};if(n){let n=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(n)return i(+n.groups.num,!!n.groups.sign);if(/[-+]/.test(r))throw Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw Error(`Group name not defined to the left "${e}"`);return ci(r)}return i(+r)}function ei(e,t,n){let{tokens:r,walk:i}=t,a=t.parent,o=a.body.at(-1),s=r[t.nextIndex];if(!n.isCheckingRangeEnd&&o&&o.type!==`CharacterClass`&&o.type!==`CharacterClassRange`&&s&&s.type!==`CharacterClassOpen`&&s.type!==`CharacterClassClose`&&s.type!==`CharacterClassIntersector`){let e=i(a,{...n,isCheckingRangeEnd:!0});if(o.type===`Character`&&e.type===`Character`)return a.body.pop(),fi(o,e);throw Error(`Invalid character class range`)}return ui(A(`-`))}function ti({negate:e},t,n){let{tokens:r,walk:i}=t,a=[di()],o=r[t.nextIndex],s=ki(o);for(;s.type!==`CharacterClassClose`;){if(s.type===`CharacterClassIntersector`)a.push(di()),t.nextIndex++;else{let e=a.at(-1);e.body.push(i(e,n))}s=ki(r[t.nextIndex],o)}let c=di({negate:e});return a.length===1?c.body=a[0].body:(c.kind=`intersection`,c.body=a.map(e=>e.body.length===1?e.body[0]:e)),t.nextIndex++,c}function ni({kind:e,negate:t,value:n},r){let{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o}=r;if(e===`property`){let r=Oi(n);if(ur.has(r)&&!o?.has(r))e=`posix`,n=r;else return R(n,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:a,unicodePropertyMap:o})}return e===`posix`?_i(n,{negate:t}):pi(e,{negate:t})}function ri(e,t,n){let{tokens:r,capturingGroups:i,namedGroupsByName:a,skipLookbehindValidation:o,walk:s}=t,c=xi(e),l=c.type===`AbsenceFunction`,u=Ti(c),d=u&&c.negate;if(c.type===`CapturingGroup`&&(i.push(c),c.name&&lr(a,c.name,[]).push(c)),l&&n.isInAbsenceFunction)throw Error(`Nested absence function not supported by Oniguruma`);let f=Ai(r[t.nextIndex]);for(;f.type!==`GroupClose`;){if(f.type===`Alternator`)c.body.push(F()),t.nextIndex++;else{let e=c.body.at(-1),t=s(e,{...n,isInAbsenceFunction:n.isInAbsenceFunction||l,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||d});if(e.body.push(t),(u||n.isInLookbehind)&&!o){let e=`Lookbehind includes a pattern not allowed by Oniguruma`;if(d||n.isInNegLookbehind){if(wi(t)||t.type===`CapturingGroup`)throw Error(e)}else if(wi(t)||Ti(t)&&t.negate)throw Error(e)}}f=Ai(r[t.nextIndex])}return t.nextIndex++,c}function ii({kind:e,min:t,max:n},r){let i=r.parent,a=i.body.at(-1);if(!a||!Yr(a))throw Error(`Quantifier requires a repeatable token`);let o=vi(e,t,n,a);return i.body.pop(),o}function ai({raw:e},t){let{capturingGroups:n,subroutines:r}=t,i=e.slice(3,-1),a=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(a){let e=+a.groups.num,r=n.length;if(t.hasNumberedRef=!0,i={"":e,"+":r+e,"-":r+1-e}[a.groups.sign],i<1)throw Error(`Invalid subroutine number`)}else i===`0`&&(i=0);let o=bi(i);return r.push(o),o}function oi(e,t){if(e!==`repeater`)throw Error(`Unexpected absence function kind "${e}"`);return{type:`AbsenceFunction`,kind:e,body:Si(t?.body)}}function F(e){return{type:`Alternative`,body:Ci(e?.body)}}function si(e,t){let n={type:`Assertion`,kind:e};return(e===`word_boundary`||e===`text_segment_boundary`)&&(n.negate=!!t?.negate),n}function ci(e,t){let n=!!t?.orphan;return{type:`Backreference`,ref:e,...n&&{orphan:n}}}function li(e,t){let n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!Ei(n.name))throw Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:`CapturingGroup`,number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Si(t?.body)}}function ui(e,t){let n={useLastValid:!1,...t};if(e>1114111){let t=e.toString(16);if(n.useLastValid)e=1114111;else throw Error(e>1310719?`Invalid code point out of range "\\x{${t}}"`:`Invalid code point out of range in JS "\\x{${t}}"`)}return{type:`Character`,value:e}}function di(e){let t={kind:`union`,negate:!1,...e};return{type:`CharacterClass`,kind:t.kind,negate:t.negate,body:Ci(e?.body)}}function fi(e,t){if(t.value<e.value)throw Error(`Character class range out of order`);return{type:`CharacterClassRange`,min:e,max:t}}function pi(e,t){let n=!!t?.negate,r={type:`CharacterSet`,kind:e};return(e===`digit`||e===`hex`||e===`newline`||e===`space`||e===`word`)&&(r.negate=n),(e===`text_segment`||e===`newline`&&!n)&&(r.variableLength=!0),r}function mi(e,t={}){if(e===`keep`)return{type:`Directive`,kind:e};if(e===`flags`)return{type:`Directive`,kind:e,flags:M(t.flags)};throw Error(`Unexpected directive kind "${e}"`)}function hi(e){return{type:`Flags`,...e}}function I(e){let t=e?.atomic,n=e?.flags;if(t&&n)throw Error(`Atomic group cannot have flags`);return{type:`Group`,...t&&{atomic:t},...n&&{flags:n},body:Si(e?.body)}}function L(e){let t={behind:!1,negate:!1,...e};return{type:`LookaroundAssertion`,kind:t.behind?`lookbehind`:`lookahead`,negate:t.negate,body:Si(e?.body)}}function gi(e,t,n){return{type:`NamedCallout`,kind:e,tag:t,arguments:n}}function _i(e,t){let n=!!t?.negate;if(!ur.has(e))throw Error(`Invalid POSIX class "${e}"`);return{type:`CharacterSet`,kind:`posix`,value:e,negate:n}}function vi(e,t,n,r){if(t>n)throw Error(`Invalid reversed quantifier range`);return{type:`Quantifier`,kind:e,min:t,max:n,body:r}}function yi(e,t){return{type:`Regex`,body:Si(t?.body),flags:e}}function bi(e){return{type:`Subroutine`,ref:e}}function R(e,t){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},r=n.unicodePropertyMap?.get(Oi(e));if(!r){if(n.normalizeUnknownPropertyNames)r=Di(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw Error(j`Invalid Unicode property "\p{${e}}"`)}return{type:`CharacterSet`,kind:`property`,value:r??e,negate:n.negate}}function xi({flags:e,kind:t,name:n,negate:r,number:i}){switch(t){case`absence_repeater`:return oi(`repeater`);case`atomic`:return I({atomic:!0});case`capturing`:return li(i,{name:n});case`group`:return I({flags:e});case`lookahead`:case`lookbehind`:return L({behind:t===`lookbehind`,negate:r});default:throw Error(`Unexpected group kind "${t}"`)}}function Si(e){if(e===void 0)e=[F()];else if(!Array.isArray(e)||!e.length||!e.every(e=>e.type===`Alternative`))throw Error(`Invalid body; expected array of one or more Alternative nodes`);return e}function Ci(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(e=>!!e.type))throw Error(`Invalid body; expected array of nodes`);return e}function wi(e){return e.type===`LookaroundAssertion`&&e.kind===`lookahead`}function Ti(e){return e.type===`LookaroundAssertion`&&e.kind===`lookbehind`}function Ei(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Di(e){return e.trim().replace(/[- _]+/g,`_`).replace(/[A-Z][a-z]+(?=[A-Z])/g,`$&_`).replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Oi(e){return e.replace(/[- _]+/g,``).toLowerCase()}function ki(e,t){let n=t;return M(e,`Unclosed character class${n?.type===`Character`&&n.value===93&&n.raw===`]`?` (started with "]")`:``}`)}function Ai(e){return M(e,`Unclosed group`)}function ji(e,t,n=null){function r(e,t){for(let n=0;n<e.length;n++){let r=i(e[n],t,n,e);n=Math.max(-1,n+r)}}function i(a,o=null,s=null,c=null){let l=0,u=!1,d={node:a,parent:o,key:s,container:c,root:e,remove(){Mi(c).splice(Math.max(0,z(s)+l),1),l--,u=!0},removeAllNextSiblings(){return Mi(c).splice(z(s)+1)},removeAllPrevSiblings(){let e=z(s)+l;return l-=e,Mi(c).splice(0,Math.max(0,e))},replaceWith(e,t={}){let n=!!t.traverse;c?c[Math.max(0,z(s)+l)]=e:M(o,`Can't replace root node`)[s]=e,n&&i(e,o,s,c),u=!0},replaceWithMultiple(e,t={}){let n=!!t.traverse;if(Mi(c).splice(Math.max(0,z(s)+l),1,...e),l+=e.length-1,n){let t=0;for(let n=0;n<e.length;n++)t+=i(e[n],o,z(s)+n+t,c)}u=!0},skip(){u=!0}},{type:f}=a,p=t[`*`],m=t[f],h=typeof p==`function`?p:p?.enter,g=typeof m==`function`?m:m?.enter;if(h?.(d,n),g?.(d,n),!u)switch(f){case`AbsenceFunction`:case`Alternative`:case`CapturingGroup`:case`CharacterClass`:case`Group`:case`LookaroundAssertion`:r(a.body,a);break;case`Assertion`:case`Backreference`:case`Character`:case`CharacterSet`:case`Directive`:case`Flags`:case`NamedCallout`:case`Subroutine`:break;case`CharacterClassRange`:i(a.min,a,`min`),i(a.max,a,`max`);break;case`Quantifier`:i(a.body,a,`body`);break;case`Regex`:r(a.body,a),i(a.flags,a,`flags`);break;default:throw Error(`Unexpected node type "${f}"`)}return m?.exit?.(d,n),p?.exit?.(d,n),l}return i(e),e}function Mi(e){if(!Array.isArray(e))throw Error(`Container expected`);return e}function z(e){if(typeof e!=`number`)throw Error(`Numeric key expected`);return e}var Ni=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Pi(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Fi(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}var B=Object.freeze({DEFAULT:`DEFAULT`,CHAR_CLASS:`CHAR_CLASS`});function Ii(e,t,n,r){let i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,`gsu`),a=[!1],o=0,s=``;for(let t of e.matchAll(i)){let{0:e,groups:{$skip:i}}=t;if(!i&&(!r||r===B.DEFAULT==!o)){n instanceof Function?s+=n(t,{context:o?B.CHAR_CLASS:B.DEFAULT,negated:a[a.length-1]}):s+=n;continue}e[0]===`[`?(o++,a.push(e[1]===`^`)):e===`]`&&o&&(o--,a.pop()),s+=e}return s}function Li(e,t,n,r){Ii(e,t,n,r)}function Ri(e,t,n=0,r){if(!new RegExp(t,`su`).test(e))return null;let i=RegExp(`${t}|(?<$skip>\\\\?.)`,`gsu`);i.lastIndex=n;let a=0,o;for(;o=i.exec(e);){let{0:e,groups:{$skip:t}}=o;if(!t&&(!r||r===B.DEFAULT==!a))return o;e===`[`?a++:e===`]`&&a&&a--,i.lastIndex==o.index&&i.lastIndex++}return null}function zi(e,t,n){return!!Ri(e,t,0,n)}function Bi(e,t){let n=/\\?./gsu;n.lastIndex=t;let r=e.length,i=0,a=1,o;for(;o=n.exec(e);){let[e]=o;if(e===`[`)i++;else if(i)e===`]`&&i--;else if(e===`(`)a++;else if(e===`)`&&(a--,!a)){r=o.index;break}}return e.slice(t,r)}var Vi=new RegExp(String.raw`(?<noncapturingStart>${Ni})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,`gsu`);function Hi(e,t){let n=t?.hiddenCaptures??[],r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};let i=[0],a=[],o=0,s=0,c=NaN,l;do{l=!1;let t=0,u=0,d=!1,f;for(Vi.lastIndex=Number.isNaN(c)?0:c+7;f=Vi.exec(e);){let{0:p,index:m,groups:{capturingStart:h,noncapturingStart:g}}=f;if(p===`[`)t++;else if(t)p===`]`&&t--;else if(p===`(?>`&&!d)c=m,d=!0;else if(d&&g)u++;else if(h)d?u++:(o++,i.push(o+s));else if(p===`)`&&d){if(!u){s++;let t=o+s;if(e=`${e.slice(0,c)}(?:(?=(${e.slice(c+3,m)}))<$$${t}>)${e.slice(m+1)}`,l=!0,a.push(t),Pi(n,t),r.size){let e=new Map;r.forEach((n,r)=>{e.set(r>=t?r+1:r,n.map(e=>e>=t?e+1:e))}),r=e}break}u--}}}while(l);return n.push(...a),e=Ii(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:n}})=>{if(t){let n=+t;if(n>i.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${i[n]}`}return`\\${n}`},B.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}var Ui=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Wi=new RegExp(String.raw`
44
- \\(?: \d+
45
- | c[A-Za-z]
46
- | [gk]<[^>]+>
47
- | [pPu]\{[^\}]+\}
48
- | u[A-Fa-f\d]{4}
49
- | x[A-Fa-f\d]{2}
50
- )
51
- | \((?: \? (?: [:=!>]
52
- | <(?:[=!]|[^>]+>)
53
- | [A-Za-z\-]+:
54
- | \(DEFINE\)
55
- ))?
56
- | (?<qBase>${Ui})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
57
- | \\?.
58
- `.replace(/\s+/g,``),`gsu`);function Gi(e){if(!RegExp(`${Ui}\\+`).test(e))return{pattern:e};let t=[],n=null,r=null,i=``,a=0,o;for(Wi.lastIndex=0;o=Wi.exec(e);){let{0:s,index:c,groups:{qBase:l,qMod:u,invalidQ:d}}=o;if(s===`[`)a||(r=c),a++;else if(s===`]`)a?a--:r=null;else if(!a){if(u===`+`&&i&&!i.startsWith(`(`)){if(d)throw Error(`Invalid quantifier "${s}"`);let t=-1;if(/^\{\d+\}$/.test(l))e=Fi(e,c+l.length,u,``);else{if(i===`)`||i===`]`){let t=i===`)`?n:r;if(t===null)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,c)}${l})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-i.length)}(?>${i}${l})${e.slice(c+s.length)}`;t+=4}Wi.lastIndex+=t}else s[0]===`(`?t.push(c):s===`)`&&(n=t.length?t.pop():null)}i=s}return{pattern:e}}var V=String.raw,Ki=V`\(\?R=(?<rDepth>[^\)]+)\)|${V`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`,qi=V`\(\?<(?![=!])(?<captureName>[^>]+)>`,Ji=V`${qi}|(?<unnamed>\()(?!\?)`,H=new RegExp(V`${qi}|${Ki}|\(\?|\\?.`,`gsu`),Yi=`Cannot use multiple overlapping recursions`;function Xi(e,t){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:`plugin`,...t},i=t?.captureTransfers??new Map;if(!new RegExp(Ki,`su`).test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if(r===`plugin`&&zi(e,V`\(\?\(DEFINE\)`,B.DEFAULT))throw Error(`DEFINE groups cannot be used with recursion`);let a=[],o=zi(e,V`\\[1-9]`,B.DEFAULT),s=new Map,c=[],l=!1,u=0,d=0,f;for(H.lastIndex=0;f=H.exec(e);){let{0:t,groups:{captureName:p,rDepth:m,gRNameOrNum:h,gRDepth:g}}=f;if(t===`[`)u++;else if(u)t===`]`&&u--;else{if(m){if(Zi(m),l)throw Error(Yi);if(o)throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with global recursion`);let t=e.slice(0,f.index),s=e.slice(H.lastIndex);if(zi(s,Ki,B.DEFAULT))throw Error(Yi);let c=m-1;e=Qi(t,s,c,!1,n,a,d),i=ta(i,t,c,a.length,0,d);break}if(h){Zi(g);let u=!1;for(let e of c)if(e.name===h||e.num===+h){if(u=!0,e.hasRecursedWithin)throw Error(Yi);break}if(!u)throw Error(V`Recursive \g cannot be used outside the referenced group "${r===`external`?h:V`\g<${h}&R=${g}>`}"`);let p=s.get(h),m=Bi(e,p);if(o&&zi(m,V`${qi}|\((?!\?)`,B.DEFAULT))throw Error(`${r===`external`?`Backrefs`:`Numbered backrefs`} cannot be used with recursion of capturing groups`);let ee=e.slice(p,f.index),te=m.slice(ee.length+t.length),ne=a.length,re=g-1,ie=Qi(ee,te,re,!0,n,a,d);i=ta(i,ee,re,a.length-ne,ne,d),e=`${e.slice(0,p)}${ie}${e.slice(p+m.length)}`,H.lastIndex+=ie.length-t.length-ee.length-te.length,c.forEach(e=>e.hasRecursedWithin=!0),l=!0}else if(p)d++,s.set(String(d),H.lastIndex),s.set(p,H.lastIndex),c.push({num:d,name:p});else if(t[0]===`(`){let e=t===`(`;e&&(d++,s.set(String(d),H.lastIndex)),c.push(e?{num:d}:{})}else t===`)`&&c.pop()}}return n.push(...a),{pattern:e,captureTransfers:i,hiddenCaptures:n}}function Zi(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e)||(e=+e,e<2||e>100))throw Error(t)}function Qi(e,t,n,r,i,a,o){let s=new Set;r&&Li(e+t,qi,({groups:{captureName:e}})=>{s.add(e)},B.DEFAULT);let c=[n,r?s:null,i,a,o];return`${e}${$i(`(?:${e}`,`forward`,...c)}(?:)${$i(`${t})`,`backward`,...c)}${t}`}function $i(e,t,n,r,i,a,o){let s=e=>t===`forward`?e+2:n-e+2-1,c=``;for(let t=0;t<n;t++){let n=s(t);c+=Ii(e,V`${Ji}|\\k<(?<backref>[^>]+)>`,({0:e,groups:{captureName:t,unnamed:s,backref:c}})=>{if(c&&r&&!r.has(c))return e;let l=`_$${n}`;if(s||t){let n=o+a.length+1;return a.push(n),ea(i,n),s?e:`(?<${t}${l}>`}return V`\k<${c}${l}>`},B.DEFAULT)}return c}function ea(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function ta(e,t,n,r,i,a){if(e.size&&r){let o=0;Li(t,Ji,()=>o++,B.DEFAULT);let s=a-o+i,c=new Map;return e.forEach((e,t)=>{let i=(r-o*n)/n,a=o*n,l=t>s+o?t+r:t,u=[];for(let t of e)if(t<=s)u.push(t);else if(t>s+o+i)u.push(t+r);else if(t<=s+o)for(let e=0;e<=n;e++)u.push(t+o*e);else for(let e=0;e<=n;e++)u.push(t+a+i*e);c.set(l,u)}),c}return e}var U=String.fromCodePoint,W=String.raw,G={},na=globalThis.RegExp;G.flagGroups=(()=>{try{new na(`(?i:)`)}catch{return!1}return!0})(),G.unicodeSets=(()=>{try{new na(`[[]]`,`v`)}catch{return!1}return!0})(),G.bugFlagVLiteralHyphenIsRange=G.unicodeSets?(()=>{try{new na(W`[\d\-a]`,`v`)}catch{return!0}return!1})():!1,G.bugNestedClassIgnoresNegation=G.unicodeSets&&new na(`[[^a]]`,`v`).test(`a`);function ra(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function ia(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function aa(e,t){return sa[e]>=sa[t]}function oa(e,t){if(e==null)throw Error(t??`Value expected`);return e}var sa={ES2025:2025,ES2024:2024,ES2018:2018},ca={auto:`auto`,ES2025:`ES2025`,ES2024:`ES2024`,ES2018:`ES2018`};function la(e={}){if({}.toString.call(e)!==`[object Object]`)throw Error(`Unexpected options`);if(e.target!==void 0&&!ca[e.target])throw Error(`Unexpected target "${e.target}"`);let t={accuracy:`default`,avoidSubclass:!1,flags:``,global:!1,hasIndices:!1,lazyCompileLength:1/0,target:`auto`,verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target===`auto`&&(t.target=G.flagGroups?`ES2025`:G.unicodeSets?`ES2024`:`ES2018`),t}var ua=`[ -\r ]`,da=new Set([U(304),U(305)]),K=W`[\p{L}\p{M}\p{N}\p{Pc}]`;function fa(e){if(da.has(e))return[e];let t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),i=ga.get(n),a=ma.get(n),o=ha.get(n);return[...r].length===1&&t.add(r),o&&t.add(o),i&&t.add(i),t.add(n),a&&t.add(a),[...t]}var pa=new Map(`C Other
59
- Cc Control cntrl
60
- Cf Format
61
- Cn Unassigned
62
- Co Private_Use
63
- Cs Surrogate
64
- L Letter
65
- LC Cased_Letter
66
- Ll Lowercase_Letter
67
- Lm Modifier_Letter
68
- Lo Other_Letter
69
- Lt Titlecase_Letter
70
- Lu Uppercase_Letter
71
- M Mark Combining_Mark
72
- Mc Spacing_Mark
73
- Me Enclosing_Mark
74
- Mn Nonspacing_Mark
75
- N Number
76
- Nd Decimal_Number digit
77
- Nl Letter_Number
78
- No Other_Number
79
- P Punctuation punct
80
- Pc Connector_Punctuation
81
- Pd Dash_Punctuation
82
- Pe Close_Punctuation
83
- Pf Final_Punctuation
84
- Pi Initial_Punctuation
85
- Po Other_Punctuation
86
- Ps Open_Punctuation
87
- S Symbol
88
- Sc Currency_Symbol
89
- Sk Modifier_Symbol
90
- Sm Math_Symbol
91
- So Other_Symbol
92
- Z Separator
93
- Zl Line_Separator
94
- Zp Paragraph_Separator
95
- Zs Space_Separator
96
- ASCII
97
- ASCII_Hex_Digit AHex
98
- Alphabetic Alpha
99
- Any
100
- Assigned
101
- Bidi_Control Bidi_C
102
- Bidi_Mirrored Bidi_M
103
- Case_Ignorable CI
104
- Cased
105
- Changes_When_Casefolded CWCF
106
- Changes_When_Casemapped CWCM
107
- Changes_When_Lowercased CWL
108
- Changes_When_NFKC_Casefolded CWKCF
109
- Changes_When_Titlecased CWT
110
- Changes_When_Uppercased CWU
111
- Dash
112
- Default_Ignorable_Code_Point DI
113
- Deprecated Dep
114
- Diacritic Dia
115
- Emoji
116
- Emoji_Component EComp
117
- Emoji_Modifier EMod
118
- Emoji_Modifier_Base EBase
119
- Emoji_Presentation EPres
120
- Extended_Pictographic ExtPict
121
- Extender Ext
122
- Grapheme_Base Gr_Base
123
- Grapheme_Extend Gr_Ext
124
- Hex_Digit Hex
125
- IDS_Binary_Operator IDSB
126
- IDS_Trinary_Operator IDST
127
- ID_Continue IDC
128
- ID_Start IDS
129
- Ideographic Ideo
130
- Join_Control Join_C
131
- Logical_Order_Exception LOE
132
- Lowercase Lower
133
- Math
134
- Noncharacter_Code_Point NChar
135
- Pattern_Syntax Pat_Syn
136
- Pattern_White_Space Pat_WS
137
- Quotation_Mark QMark
138
- Radical
139
- Regional_Indicator RI
140
- Sentence_Terminal STerm
141
- Soft_Dotted SD
142
- Terminal_Punctuation Term
143
- Unified_Ideograph UIdeo
144
- Uppercase Upper
145
- Variation_Selector VS
146
- White_Space space
147
- XID_Continue XIDC
148
- XID_Start XIDS`.split(/\s/).map(e=>[Oi(e),e])),ma=new Map([[`s`,U(383)],[U(383),`s`]]),ha=new Map([[U(223),U(7838)],[U(107),U(8490)],[U(229),U(8491)],[U(969),U(8486)]]),ga=new Map([q(453),q(456),q(459),q(498),...ya(8072,8079),...ya(8088,8095),...ya(8104,8111),q(8124),q(8140),q(8188)]),_a=new Map([[`alnum`,W`[\p{Alpha}\p{Nd}]`],[`alpha`,W`\p{Alpha}`],[`ascii`,W`\p{ASCII}`],[`blank`,W`[\p{Zs}\t]`],[`cntrl`,W`\p{Cc}`],[`digit`,W`\p{Nd}`],[`graph`,W`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],[`lower`,W`\p{Lower}`],[`print`,W`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],[`punct`,W`[\p{P}\p{S}]`],[`space`,W`\p{space}`],[`upper`,W`\p{Upper}`],[`word`,W`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],[`xdigit`,W`\p{AHex}`]]);function va(e,t){let n=[];for(let r=e;r<=t;r++)n.push(r);return n}function q(e){let t=U(e);return[t.toLowerCase(),t]}function ya(e,t){return va(e,t).map(e=>q(e))}var ba=new Set([`Lower`,`Lowercase`,`Upper`,`Uppercase`,`Ll`,`Lowercase_Letter`,`Lt`,`Titlecase_Letter`,`Lu`,`Uppercase_Letter`]);function xa(e,t){let n={accuracy:`default`,asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:`ES2025`,...t};Ta(e);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:aa(n.bestEffortTarget,`ES2024`),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ji(e,Sa,r);let i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},a={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};return ji(e,Ca,a),ji(e,wa,{groupsByName:a.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:a.reffedNodesByReferencer}),e._originMap=a.groupOriginByCopy,e._strategy=r.strategy,e}var Sa={AbsenceFunction({node:e,parent:t,replaceWith:n}){let{body:r,kind:i}=e;if(i===`repeater`){let e=I();e.body[0].body.push(L({negate:!0,body:r}),R(`Any`));let i=I();i.body[0].body.push(vi(`greedy`,0,1/0,e)),n(X(i,t),{traverse:!0})}else throw Error(`Unsupported absence function "(?~|"`)},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){let i=e.body.filter(e=>e.kind===`flags`);for(let e=n+1;e<t.body.length;e++){let n=t.body[e];ia(r,n,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let n=Ma(t.get(e));if(n){let t=I({flags:n});t.body[0].body=e.body,e.body=[X(t,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:i,remove:a,replaceWith:o},s){let{kind:c,negate:l}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:f,wordIsAscii:p}=s;if(c===`text_segment_boundary`)throw Error(`Unsupported text segment boundary "\\${l?`Y`:`y`}"`);if(c===`line_end`)o(X(L({body:[F({body:[si(`string_end`)]}),F({body:[ui(10)]})]}),t));else if(c===`line_start`)o(X(J(W`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c===`search_start`){if(f.has(e))i.flags.sticky=!0,a();else{let e=r[n-1];if(e&&Ra(e))o(X(L({negate:!0}),t));else if(d)throw Error(W`Uses "\G" in a way that requires a subclass`);else o(Y(si(`string_start`),t)),s.strategy=`clip_search`}}else if(c!==`string_end`&&c!==`string_start`){if(c===`string_end_newline`)o(X(J(W`(?=\n?\z)`),t));else if(c===`word_boundary`){if(!p&&!u){let e=`(?:(?<=${K})(?!${K})|(?<!${K})(?=${K}))`,n=`(?:(?<=${K})(?=${K})|(?<!${K})(?!${K}))`;o(X(J(l?n:e),t))}}else throw Error(`Unexpected assertion kind "${c}"`)}},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Ba(n)&&(n=ja(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ba(r)&&(r=ja(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){t.kind===`intersection`&&n(X(di({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:i,digitIsAscii:a,spaceIsAscii:o,wordIsAscii:s}){let{kind:c,negate:l,value:u}=e;if(a&&(c===`digit`||u===`digit`)){n(Y(pi(`digit`,{negate:l}),t));return}if(o&&(c===`space`||u===`space`)){n(X(Va(J(ua),l),t));return}if(s&&(c===`word`||u===`word`)){n(Y(pi(`word`,{negate:l}),t));return}if(c===`any`)n(Y(R(`Any`),t));else if(c===`digit`)n(Y(R(`Nd`,{negate:l}),t));else if(c!==`dot`){if(c===`text_segment`){if(r===`strict`)throw Error(W`Use of "\X" requires non-strict accuracy`);let e=`\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?`,a=W`\p{RI}{2}|${e}(?:\u200D${e})*`;n(X(J(W`(?>\r\n|${i?W`\p{RGI_Emoji}`:a}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c===`hex`)n(Y(R(`AHex`,{negate:l}),t));else if(c===`newline`)n(X(J(l?`[^
149
- ]`:`(?>\r
150
- ?|[
151
- \v\f…\u2028\u2029])`),t));else if(c===`posix`){if(!i&&(u===`graph`||u===`print`)){if(r===`strict`)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:`!-~`,print:` -~`}[u];l&&(e=`\0-${U(e.codePointAt(0)-1)}${U(e.codePointAt(2)+1)}-\u{10FFFF}`),n(X(J(`[${e}]`),t))}else n(X(Va(J(_a.get(u)),l),t))}else if(c===`property`)pa.has(Oi(u))||(e.key=`sc`);else if(c===`space`)n(Y(R(`space`,{negate:l}),t));else if(c===`word`)n(X(Va(J(K),l),t));else throw Error(`Unexpected character set kind "${c}"`)}},Directive({node:e,parent:t,root:n,remove:r,replaceWith:i,removeAllPrevSiblings:a,removeAllNextSiblings:o}){let{kind:s,flags:c}=e;if(s===`flags`){if(!c.enable&&!c.disable)r();else{let e=I({flags:c});e.body[0].body=o(),i(X(e,t),{traverse:!0})}}else if(s===`keep`){let e=n.body[0],r=n.body.length===1&&Jr(e,{type:`Group`})&&e.body[0].body.length===1?e.body[0]:n;if(t.parent!==r||r.body.length>1)throw Error(W`Uses "\K" in a way that's unsupported`);let o=L({behind:!0});o.body[0].body=a(),i(X(o,t))}else throw Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error(`Unsupported flag "P"`);if(e.textSegmentMode===`word`)throw Error(`Unsupported flag "y{w}"`);[`digitIsAscii`,`extended`,`posixIsAscii`,`spaceIsAscii`,`wordIsAscii`,`textSegmentMode`].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:n}=e.flags;t?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&n?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:n}=e;n===`lookbehind`&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){let{kind:r}=e;if(r===`fail`)n(X(L({negate:!0}),t));else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type===`Quantifier`){let t=I();t.body[0].body.push(e.body),e.body=X(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let n=[],r=!1,i=!1;for(let t of e.body)if(t.body.length===1&&t.body[0].kind===`search_start`)t.body.pop();else{let e=Fa(t.body);e?(r=!0,Array.isArray(e)?n.push(...e):n.push(e)):i=!0}r&&!i&&n.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t===`strict`&&n&&r)throw Error(W`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n==`string`&&!Ba(n)&&(n=ja(n,t),e.ref=n)}},Ca={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){let{orphan:r,ref:i}=e;r||n.set(e,[...t.get(i).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:i,groupsByName:a,multiplexCapturesToLeftByRef:o,openRefs:s,reffedNodesByReferencer:c}){let l=i.get(e);if(l&&s.has(e.number)){let r=Y(ka(e.number),t);c.set(r,s.get(e.number)),n(r);return}s.set(e.number,e),o.set(e.number,[]),e.name&&ia(o,e.name,[]);let u=o.get(e.name??e.number);for(let t=0;t<u.length;t++){let n=u[t];if(l===n.node||l&&l===n.origin||e===n.origin){u.splice(t,1);break}}if(o.get(e.number).push({node:e,origin:l}),e.name&&o.get(e.name).push({node:e,origin:l}),e.name){let t=ia(a,e.name,new Map),n=!1;if(l)n=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){n=!0;break}a.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:n})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=ra(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){let{isRecursive:i,ref:a}=e;if(i){let n=t;for(;(n=n.parent)&&(n.type!==`CapturingGroup`||n.name!==a&&n.number!==a););r.reffedNodesByReferencer.set(e,n);return}let o=r.subroutineRefMap.get(a),s=a===0,c=s?ka(0):Oa(o,r.groupOriginByCopy,null),l=c;if(!s){let e=Ma(Aa(o,e=>e.type===`Group`&&!!e.flags)),t=e?ra(r.globalFlags,e):r.globalFlags;Ea(t,r.currentFlags)||(l=I({flags:Na(t)}),l.body[0].body.push(c))}n(X(l,t),{traverse:!s})}},wa={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}let i=r.reffedNodesByReferencer.get(e).filter(t=>Da(t,e));i.length?i.length>1?n(X(I({atomic:!0,body:i.reverse().map(e=>F({body:[ci(e.number)]}))}),t)):e.ref=i[0].number:n(X(L({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<n;t++){let t=li();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&e.ref!==0&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Ta(e){ji(e,{"*"({node:e,parent:t}){e.parent=t}})}function Ea(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Da(e,t){let n=t;do{if(n.type===`Regex`)return!1;if(n.type===`Alternative`)continue;if(n===e)return!1;let t=Pa(n.parent);for(let r of t){if(r===n)break;if(r===e||Ia(r,e))return!0}}while(n=n.parent);throw Error(`Unexpected path`)}function Oa(e,t,n,r){let i=Array.isArray(e)?[]:{};for(let[a,o]of Object.entries(e))a===`parent`?i.parent=Array.isArray(n)?r:n:o&&typeof o==`object`?i[a]=Oa(o,t,i,n):(a===`type`&&o===`CapturingGroup`&&t.set(i,t.get(e)??e),i[a]=o);return i}function ka(e){let t=bi(e);return t.isRecursive=!0,t}function Aa(e,t){let n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function ja(e,t){if(t.has(e))return t.get(e);let n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu,`_`)}`;return t.set(e,n),n}function Ma(e){let t=[`dotAll`,`ignoreCase`],n={enable:{},disable:{}};return e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete n.disable[t],n.enable[t]=!0),e.disable?.[t]&&(n.disable[t]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Na({dotAll:e,ignoreCase:t}){let n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function Pa(e){if(!e)throw Error(`Node expected`);let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Fa(e){let t=e.find(e=>e.kind===`search_start`||za(e,{negate:!1})||!La(e));if(!t)return null;if(t.kind===`search_start`)return t;if(t.type===`LookaroundAssertion`)return t.body[0].body[0];if(t.type===`CapturingGroup`||t.type===`Group`){let e=[];for(let n of t.body){let t=Fa(n.body);if(!t)return null;Array.isArray(t)?e.push(...t):e.push(t)}return e}return null}function Ia(e,t){let n=Pa(e)??[];for(let e of n)if(e===t||Ia(e,t))return!0;return!1}function La({type:e}){return e===`Assertion`||e===`Directive`||e===`LookaroundAssertion`}function Ra(e){let t=[`Character`,`CharacterClass`,`CharacterSet`];return t.includes(e.type)||e.type===`Quantifier`&&e.min&&t.includes(e.body.type)}function za(e,t){let n={negate:null,...t};return e.type===`LookaroundAssertion`&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Jr(e.body[0],{type:`Assertion`,kind:`search_start`})}function Ba(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function J(e,t){let n=Zr(e,{...t,unicodePropertyMap:pa}).body;return n.length>1||n[0].body.length>1?I({body:n}):n[0].body[0]}function Va(e,t){return e.negate=t,e}function Y(e,t){return e.parent=t,e}function X(e,t){return Ta(e),e.parent=t,e}function Ha(e,t){let n=la(t),r=aa(n.target,`ES2024`),i=aa(n.target,`ES2025`),a=n.rules.recursionLimit;if(!Number.isInteger(a)||a<2||a>20)throw Error(`Invalid recursionLimit; use 2-20`);let o=null,s=null;if(!i){let t=[e.flags.ignoreCase];ji(e,Ua,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?o=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!(!e.flags.ignoreCase&&!o||s)},l=e,u={accuracy:n.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:e._originMap,recursionLimit:a,useAppliedIgnoreCase:!!(!i&&o&&s),useFlagMods:i,useFlagV:r,verbose:n.verbose};function d(e){return u.lastNode=l,l=e,oa(Wa[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let f={pattern:e.body.map(d).join(`|`),flags:d(e.flags),options:{...e.options}};return r||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&f._hiddenCaptures.push(t),e.transferTo&&ia(f._captureTransfers,e.transferTo,[]).push(t)}),f}var Ua={"*":{enter({node:e},t){if(no(e)){let n=t.getCurrentModI();t.pushModI(e.flags?ra({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){no(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){Xa(U(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Za(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind===`property`&&ba.has(e.value)&&t.setHasCasedChar()}},Wa={Alternative({body:e},t,n){return e.map(n).join(``)},Assertion({kind:e,negate:t}){if(e===`string_end`)return`$`;if(e===`string_start`)return`^`;if(e===`word_boundary`)return t?W`\B`:W`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!=`number`)throw Error(`Unexpected named backref in transformed AST`);if(!t.useFlagMods&&t.accuracy===`strict`&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error(`Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy`);return`\\`+e},CapturingGroup(e,t,n){let{body:r,name:i,number:a}=e,o={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(o.hidden=!0,a>s.number&&(o.transferTo=s.number)),t.captureMap.set(a,o),`(${i?`?<${i}>`:``}${r.map(n).join(`|`)})`},Character({value:e},t){let n=U(e),r=Qa(e,{escDigit:t.lastNode.type===`Backreference`,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&Xa(n)){let e=fa(n);return t.inCharClass?e.join(``):e.length>1?`[${e.join(``)}]`:e[0]}return n},CharacterClass(e,t,n){let{kind:r,negate:i,parent:a}=e,{body:o}=e;if(r===`intersection`&&!t.useFlagV)throw Error(`Use of character class intersection requires min target ES2024`);G.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&o.some(io)&&(o=[ui(45),...o.filter(e=>!io(e))]);let s=()=>`[${i?`^`:``}${o.map(n).join(r===`intersection`?`&&`:``)}]`;if(!t.inCharClass){if((!t.useFlagV||G.bugNestedClassIgnoresNegation)&&!i){let t=o.filter(e=>e.type===`CharacterClass`&&e.kind===`union`&&e.negate);if(t.length){let r=I(),i=r.body[0];return r.parent=a,i.parent=r,o=o.filter(e=>!t.includes(e)),e.body=o,o.length?(e.parent=i,i.body.push(e)):r.body.pop(),t.forEach(e=>{let t=F({body:[e]});e.parent=t,t.parent=r,r.body.push(t)}),n(r)}}t.inCharClass=!0;let r=s();return t.inCharClass=!1,r}let c=o[0];if(r===`union`&&!i&&c&&((!t.useFlagV||!t.verbose)&&a.kind===`union`&&!(G.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&a.kind===`intersection`&&o.length===1&&c.type!==`CharacterClassRange`))return o.map(n).join(``);if(!t.useFlagV&&a.type===`CharacterClass`)throw Error(`Uses nested character class in a way that requires min target ES2024`);return s()},CharacterClassRange(e,t){let n=e.min.value,r=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},a=Qa(n,i),o=Qa(r,i),s=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&$a(Za(e)).forEach(e=>{s.add(Array.isArray(e)?`${Qa(e[0],i)}-${Qa(e[1],i)}`:Qa(e,i))}),`${a}-${o}${[...s].join(``)}`},CharacterSet({kind:e,negate:t,value:n,key:r},i){if(e===`dot`)return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?`.`:`[^]`:W`[^\n]`;if(e===`digit`)return t?W`\D`:W`\d`;if(e===`property`){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&ba.has(n))throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?W`\P`:W`\p`}{${r?`${r}=`:``}${n}}`}if(e===`word`)return t?W`\W`:W`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?`i`:``)+(e.dotAll?`s`:``)+(e.sticky?`y`:``)},Group({atomic:e,body:t,flags:n,parent:r},i,a){let o=i.currentFlags;n&&(i.currentFlags=ra(o,n));let s=t.map(a).join(`|`),c=!i.verbose&&t.length===1&&r.type!==`Quantifier`&&!e&&(!i.useFlagMods||!n)?s:`(?${eo(e,n,i.useFlagMods)}${s})`;return i.currentFlags=o,c},LookaroundAssertion({body:e,kind:t,negate:n},r,i){return`(?${`${t===`lookahead`?``:`<`}${n?`!`:`=`}`}${e.map(i).join(`|`)})`},Quantifier(e,t,n){return n(e.body)+to(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw Error(`Unexpected non-recursive subroutine in transformed AST`);let r=n.recursionLimit;return t===0?`(?R=${r})`:W`\g<${t}&R=${r}>`}},Ga=new Set([`$`,`(`,`)`,`*`,`+`,`.`,`?`,`[`,`\\`,`]`,`^`,`{`,`|`,`}`]),Ka=new Set([`-`,`\\`,`]`,`^`,`[`]),qa=new Set("()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split(``)),Ja=new Map([[9,W`\t`],[10,W`\n`],[11,W`\v`],[12,W`\f`],[13,W`\r`],[8232,W`\u2028`],[8233,W`\u2029`],[65279,W`\uFEFF`]]),Ya=/^\p{Cased}$/u;function Xa(e){return Ya.test(e)}function Za(e,t){let n=!!t?.firstOnly,r=e.min.value,i=e.max.value,a=[];if(r<65&&(i===65535||i>=131071)||r===65536&&i>=131071)return a;for(let e=r;e<=i;e++){let t=U(e);if(!Xa(t))continue;let o=fa(t).filter(e=>{let t=e.codePointAt(0);return t<r||t>i});if(o.length&&(a.push(...o),n))break}return a}function Qa(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(Ja.has(e))return Ja.get(e);if(e<32||e>126&&e<160||e>262143||t&&ro(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,`0`)}`;let i=n?r?qa:Ka:Ga,a=U(e);return(i.has(a)?`\\`:``)+a}function $a(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),n=[],r=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?r??=t[e]:r===null?n.push(t[e]):(n.push([r,t[e]]),r=null);return n}function eo(e,t,n){if(e)return`>`;let r=``;if(t&&n){let{enable:e,disable:n}=t;r=(e?.ignoreCase?`i`:``)+(e?.dotAll?`s`:``)+(n?`-`:``)+(n?.ignoreCase?`i`:``)+(n?.dotAll?`s`:``)}return`${r}:`}function to({kind:e,max:t,min:n}){let r;return r=!n&&t===1?`?`:!n&&t===1/0?`*`:n===1&&t===1/0?`+`:n===t?`{${n}}`:`{${n},${t===1/0?``:t}}`,r+{greedy:``,lazy:`?`,possessive:`+`}[e]}function no({type:e}){return e===`CapturingGroup`||e===`Group`||e===`LookaroundAssertion`}function ro(e){return e>47&&e<58}function io({type:e,value:t}){return e===`Character`&&t===45}var ao=class e extends RegExp{#e=new Map;#t=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||`(?:)`}constructor(t,n,r){let i=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw Error(`Cannot provide options when copying a regexp`);let i=t;super(i,n),this.#n=i.source,i instanceof e&&(this.#e=i.#e,this.#r=i.#r,this.#i=i.#i,this.rawOptions=i.rawOptions)}else{let e={hiddenCaptures:[],strategy:null,transfers:[],...r};super(i?``:t,n),this.#n=t,this.#e=so(e.hiddenCaptures,e.transfers),this.#i=e.strategy,this.rawOptions=r??{}}i||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...n}=this.rawOptions;this.#t=new e(this.#n,this.flags,n)}let n=this.global||this.sticky,r=this.lastIndex;if(this.#i===`clip_search`&&n&&r){this.lastIndex=0;let e=this.#a(t.slice(r));return e&&(oo(e,r,t,this.hasIndices),this.lastIndex+=r),e}return this.#a(t)}#a(e){this.#t.lastIndex=this.lastIndex;let t=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!t||!this.#e.size)return t;let n=[...t];t.length=1;let r;this.hasIndices&&(r=[...t.indices],t.indices.length=1);let i=[0];for(let e=1;e<n.length;e++){let{hidden:a,transferTo:o}=this.#e.get(e)??{};if(a?i.push(null):(i.push(t.length),t.push(n[e]),this.hasIndices&&t.indices.push(r[e])),o&&n[e]!==void 0){let a=i[o];if(!a)throw Error(`Invalid capture transfer to "${a}"`);if(t[a]=n[e],this.hasIndices&&(t.indices[a]=r[e]),t.groups){this.#r||=co(this.source);let i=this.#r.get(o);i&&(t.groups[i]=n[e],this.hasIndices&&(t.indices.groups[i]=r[e]))}}}return t}};function oo(e,t,n,r){if(e.index+=t,e.input=n,r){let n=e.indices;for(let e=0;e<n.length;e++){let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])}let r=n.groups;r&&Object.keys(r).forEach(e=>{let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])})}}function so(e,t){let n=new Map;for(let t of e)n.set(t,{hidden:!0});for(let[e,r]of t)for(let t of r)ia(n,t,{}).transferTo=e;return n}function co(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,i=0,a;for(;a=t.exec(e);){let{0:e,groups:{capture:t,name:o}}=a;e===`[`?r++:r?e===`]`&&r--:t&&(i++,o&&n.set(i,o))}return n}function lo(e,t){let n=uo(e,t);return n.options?new ao(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function uo(e,t){let n=la(t),r=xa(Zr(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:pa}),{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),i=Ha(r,n),a=Xi(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:`external`}),o=Hi(Gi(a.pattern).pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),s={pattern:o.pattern,flags:`${n.hasIndices?`d`:``}${n.global?`g`:``}${i.flags}${i.options.disable.v?`u`:`v`}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw Error(`Lazy compilation requires subclass`)}else{let e=o.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(o.captureTransfers),i=r._strategy,a=s.pattern.length>=n.lazyCompileLength;(e.length||t.length||i||a)&&(s.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...i&&{strategy:i},...a&&{lazyCompile:a}})}return s}function fo(e,t){return lo(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function po(e={}){let t={target:`auto`,cache:new Map,...e};return t.regexConstructor||=e=>fo(e,{target:t.target}),{createScanner(e){return new or(e,t)},createString:cr}}var Z={typescript:()=>l(()=>import(`./typescript-BTGs5etX.js`).then(e=>e.n),__vite__mapDeps([0,1]),import.meta.url),javascript:()=>l(()=>import(`./javascript-DcMHgNcu.js`).then(e=>e.n),__vite__mapDeps([2,1]),import.meta.url),jsx:()=>l(()=>import(`./jsx-BUUYi3qs.js`).then(e=>e.n),__vite__mapDeps([3,1]),import.meta.url),tsx:()=>l(()=>import(`./tsx-DvWhG4dC.js`).then(e=>e.n),__vite__mapDeps([4,1]),import.meta.url),vue:()=>l(()=>import(`./vue-BbYmdtmv.js`),__vite__mapDeps([5,6,1,2,7,0,8]),import.meta.url),"vue-html":()=>l(()=>import(`./vue-html-BXjKVtKk.js`),__vite__mapDeps([9,2,1]),import.meta.url),"glimmer-js":()=>l(()=>import(`./glimmer-js-BheR6Tf0.js`),__vite__mapDeps([10,6,1,2,7,0]),import.meta.url),"glimmer-ts":()=>l(()=>import(`./glimmer-ts-B3Q3-uij.js`),__vite__mapDeps([11,6,1,2,7,0]),import.meta.url),handlebars:()=>l(()=>import(`./handlebars-qjPKy-PP.js`),__vite__mapDeps([12,6,1,2,7,13]),import.meta.url),json:()=>l(()=>import(`./json-qhed-kSA.js`),[],import.meta.url),jsonc:()=>l(()=>import(`./jsonc-CYpm1nAK.js`),[],import.meta.url),yaml:()=>l(()=>import(`./yaml-rwi0_p6S.js`),[],import.meta.url),toml:()=>l(()=>import(`./toml-CcmNWLt0.js`),[],import.meta.url),markdown:()=>l(()=>import(`./markdown-BYOwaDjH.js`),[],import.meta.url),mdx:()=>l(()=>import(`./mdx-DQZ5AkYe.js`),[],import.meta.url),css:()=>l(()=>import(`./css-DlBQoFxe.js`).then(e=>e.n),__vite__mapDeps([6,1]),import.meta.url),scss:()=>l(()=>import(`./scss-C-_0yqZd.js`),__vite__mapDeps([14,6,1]),import.meta.url),less:()=>l(()=>import(`./less-DVTAwKKz.js`),[],import.meta.url),html:()=>l(()=>import(`./html-BC8aFsRK.js`),__vite__mapDeps([7,6,1,2]),import.meta.url),xml:()=>l(()=>import(`./xml-BsprbK0m.js`),__vite__mapDeps([15,16,1]),import.meta.url),python:()=>l(()=>import(`./python-gzcpVVnB.js`),[],import.meta.url),go:()=>l(()=>import(`./go-rLFTqkRN.js`),[],import.meta.url),rust:()=>l(()=>import(`./rust-Cfkwpbl8.js`),[],import.meta.url),java:()=>l(()=>import(`./java-D7h0NA_A.js`).then(e=>e.n),__vite__mapDeps([16,1]),import.meta.url),kotlin:()=>l(()=>import(`./kotlin-DhhofPvG.js`),[],import.meta.url),c:()=>l(()=>import(`./c-BNQJhXlP.js`).then(e=>e.n),__vite__mapDeps([17,1]),import.meta.url),cpp:()=>l(()=>import(`./cpp-7GgD5o7L.js`),__vite__mapDeps([18,17,1]),import.meta.url),csharp:()=>l(()=>import(`./csharp-oqKa8noW.js`),[],import.meta.url),ruby:()=>l(()=>import(`./ruby-CaMjWH7T.js`),__vite__mapDeps([19,17,1,18,6,2,7,20,0,3,4,13,21,15,16,22,23]),import.meta.url),php:()=>l(()=>import(`./php-BahmaYs0.js`),__vite__mapDeps([24,6,1,2,7,8,15,16,22]),import.meta.url),swift:()=>l(()=>import(`./swift-CyEgAFGc.js`),[],import.meta.url),shellscript:()=>l(()=>import(`./shellscript-CLZ0U2zV.js`),[],import.meta.url),sql:()=>l(()=>import(`./sql-BsFa4tDR.js`),[],import.meta.url),docker:()=>l(()=>import(`./docker-IyjqRm3v.js`),[],import.meta.url),make:()=>l(()=>import(`./make-Dixweg8N.js`),[],import.meta.url),graphql:()=>l(()=>import(`./graphql-ki1Ij_uk.js`),__vite__mapDeps([20,2,1,0,3,4]),import.meta.url),diff:()=>l(()=>import(`./diff-woXpYk--.js`),[],import.meta.url),ini:()=>l(()=>import(`./ini-B5eOa1yu.js`),[],import.meta.url),perl:()=>l(()=>import(`./perl-C8GHouAq.js`),__vite__mapDeps([25,6,1,2,7,15,16,22]),import.meta.url),lua:()=>l(()=>import(`./lua-DCW0Dwo5.js`),__vite__mapDeps([21,17,1]),import.meta.url),r:()=>l(()=>import(`./r-C5FwQflr.js`),[],import.meta.url),scala:()=>l(()=>import(`./scala-BiFt_7mu.js`),[],import.meta.url),elixir:()=>l(()=>import(`./elixir-D3n0XgqJ.js`),__vite__mapDeps([26,7,6,1,2]),import.meta.url),haskell:()=>l(()=>import(`./haskell-D8IpX4py.js`),[],import.meta.url),clojure:()=>l(()=>import(`./clojure-DqKBuwfJ.js`),[],import.meta.url),groovy:()=>l(()=>import(`./groovy-CacY0gHj.js`),[],import.meta.url),"objective-c":()=>l(()=>import(`./objective-c-D1A_Heim.js`),[],import.meta.url),"objective-cpp":()=>l(()=>import(`./objective-cpp-BsSzOQcm.js`),[],import.meta.url),proto:()=>l(()=>import(`./proto-DB4EqR-F.js`),[],import.meta.url),terraform:()=>l(()=>import(`./terraform-DswuEJGm.js`),[],import.meta.url),nginx:()=>l(()=>import(`./nginx-C4fSytnP.js`),__vite__mapDeps([27,21,17,1]),import.meta.url)},mo={ts:Z.typescript,cts:Z.typescript,mts:Z.typescript,js:Z.javascript,cjs:Z.javascript,mjs:Z.javascript,gjs:Z[`glimmer-js`],gts:Z[`glimmer-ts`],hbs:Z.handlebars,yml:Z.yaml,md:Z.markdown,py:Z.python,rs:Z.rust,kt:Z.kotlin,kts:Z.kotlin,"c++":Z.cpp,"c#":Z.csharp,cs:Z.csharp,rb:Z.ruby,bash:Z.shellscript,sh:Z.shellscript,shell:Z.shellscript,zsh:Z.shellscript,dockerfile:Z.docker,makefile:Z.make,gql:Z.graphql,properties:Z.ini,hs:Z.haskell,clj:Z.clojure,objc:Z[`objective-c`],protobuf:Z.proto,tf:Z.terraform,tfvars:Z.terraform},ho={...Z,...mo},go={};function _o(){throw Error(`Oniguruma engine is not available in this build.`)}var vo=nr({langs:ho,themes:go,engine:()=>po()});async function yo(e){if(_e())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=fe.get(e);if(t!=null)return t;try{let t=pe.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(ho,e)&&(t=ho[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return de.has(e)||de.set(e,n),n});return fe.set(e,n),await n}finally{fe.delete(e)}}function bo(e){return de.get(e)??yo(e)}function xo(e=se){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}var So=new Set;function Co(e){for(let t of xo(e))if(!So.has(t))return!1;return!0}var wo=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},To=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},Eo=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}};function Do(){let e=new Map,t=new Map,n=new Map,r=0;function i(t,n){if(e.has(t))throw new wo(t);e.set(t,n)}function a(t,n){return!e.has(t)&&(e.set(t,n),!0)}function o(t){return e.has(t)}function s(i){let a=t.get(i);if(a!==void 0)return Promise.resolve(a);let o=n.get(i);if(o!==void 0)return o;let s=e.get(i);if(s===void 0)return Promise.reject(new To(i));let c=r,l=s().then(e=>{let a=oe(e);return c===r&&t.set(i,a),n.get(i)===l&&n.delete(i),a}).catch(e=>{throw n.get(i)===l&&n.delete(i),e});return n.set(i,l),l}function c(e){return Promise.all(e.map(e=>s(e)))}function l(e,n){t.set(e,n)}function u(e){for(let[t,n]of e)l(t,n)}function d(e){return t.get(e)}function f(e){let n=[];for(let r of e){let e=t.get(r);if(e===void 0)throw new Eo(r);n.push(e)}return n}function p(e){return t.has(e)}function m(e){for(let n of e)if(!t.has(n))return!1;return!0}function h(e){let n=t.get(e);return n===void 0?s(e):n}function g(){r++,t.clear(),n.clear()}return{clearResolvedThemes:g,getResolvedOrResolveTheme:h,getResolvedTheme:d,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:a,resolveTheme:s,resolveThemes:c,seedResolvedTheme:l,seedResolvedThemes:u}}var Q=Do();function Oo(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=Q.getResolvedTheme(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,Q.getResolvedTheme(n)??Q.seedResolvedTheme(n,e);So.has(n)||(So.add(n),t.loadThemeSync(e))}}function ko(e){if(_e())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(Q.hasRegisteredTheme(e))return;let t=f.getTheme(e);if(t!=null){Q.registerThemeIfAbsent(t.name,t.load);return}throw Error(`No valid theme loader registered for "${e}"`)}function Ao(e,t){if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function jo(e){ko(e);let t=await Q.resolveTheme(e);return Ao(e,t),t}function Mo(e){return Q.getResolvedTheme(e)??jo(e)}var $;async function No({themes:e,langs:t,preferredHighlighter:n=`shiki-js`}){$??=vo({themes:[],langs:[`text`],engine:n===`shiki-wasm`?_o(l(()=>import(`./shiki-wasm-noop-Gxv9UHE7.js`),[],import.meta.url)):po()});let r=Fo($)?await $:$;$=r;let i=[];for(let e of Array.from(new Set(t))){if(e===`text`||e===`ansi`)continue;let t=bo(e);`then`in t?i.push(t):ge(t,r)}let a=[];for(let t of e){let e=Mo(t);`then`in e?a.push(e):Oo(e,$)}return(i.length>0||a.length>0)&&await Promise.all([Promise.all(i).then(e=>{ge(e,r)}),Promise.all(a).then(e=>{Oo(e,r)})]),r}function Po(e){if(!($==null||`then`in $)&&(e==null||Co(e.theme)&&he(e.lang)))return $}function Fo(e=$){return e!=null&&`then`in e}for(let e of ue.getThemes())Q.registerThemeIfAbsent(e.name,e.load);function Io(e,t,n){return Math.min(n,Math.max(t,e))}var Lo=[`width`,`height`,`viewBox`],Ro=[`cx`,`cy`,`r`,`stroke-width`],zo=[`cx`,`cy`,`r`,`stroke-width`,`stroke-dasharray`,`stroke-dashoffset`],Bo=c({__name:`DisplayDonut`,props:{value:{},size:{default:36},thickness:{default:4},color:{}},setup(e){let s=e,c=o(()=>(s.size-s.thickness)/2),l=o(()=>2*Math.PI*c.value),u=o(()=>l.value*(1-Io(s.value,0,1)));return(o,s)=>(n(),r(`svg`,{width:e.size,height:e.size,viewBox:`0 0 ${e.size} ${e.size}`,class:`-rotate-90`},[t(`circle`,{cx:e.size/2,cy:e.size/2,r:c.value,fill:`none`,"stroke-width":e.thickness,class:`op-mute stroke-current`},null,8,Ro),t(`circle`,{cx:e.size/2,cy:e.size/2,r:c.value,fill:`none`,"stroke-width":e.thickness,"stroke-dasharray":l.value,"stroke-dashoffset":u.value,"stroke-linecap":`round`,class:a([`transition-all stroke-current`,{"color-active":!e.color}]),style:i(e.color?{color:e.color}:void 0)},null,14,zo)],8,Lo))}}),Vo={ui:`i-ph-compass-tool-duotone`,api:`i-ph:plugs-connected-duotone`,core:`i-ph-code-duotone`,data:`i-ph:database-duotone`,cli:`i-ph-terminal-duotone`,security:`i-ph:shield-check-duotone`,tests:`i-ph:flask-duotone`,docs:`i-ph:book-open-duotone`,examples:`i-ph:play-circle-duotone`,deps:`i-ph:package-duotone`,build:`i-ph:hammer-duotone`,scripts:`i-ph:wrench-duotone`,config:`i-ph:sliders-horizontal-duotone`,i18n:`i-ph:translate-duotone`,assets:`i-ph:image-duotone`,other:`i-ph:dots-three-circle-duotone`},Ho={ui:`color-pink-800 dark:color-pink-300`,api:`color-blue-800 dark:color-blue-300`,core:`color-violet-800 dark:color-violet-300`,data:`color-amber-800 dark:color-amber-300`,cli:`color-lime-800 dark:color-lime-300`,security:`color-red-800 dark:color-red-300`,tests:`color-green-800 dark:color-green-300`,docs:`color-sky-800 dark:color-sky-300`,examples:`color-cyan-800 dark:color-cyan-300`,deps:`color-orange-800 dark:color-orange-300`,build:`color-yellow-800 dark:color-yellow-300`,scripts:`color-emerald-800 dark:color-emerald-300`,config:`color-teal-800 dark:color-teal-300`,i18n:`color-indigo-800 dark:color-indigo-300`,assets:`color-fuchsia-800 dark:color-fuchsia-300`,other:`color-neutral-800 dark:color-neutral-300`},Uo=[`title`],Wo=c({__name:`GroupCategoryIcon`,props:{category:{}},setup(e){return(t,i)=>(n(),r(`span`,{class:a([[s(Vo)[e.category],s(Ho)[e.category]],`shrink-0`]),title:t.$t(`category.${e.category}`)},null,10,Uo))}}),Go=[{match:/\.vue$/,name:`vue`,icon:`i-catppuccin:vue icon-catppuccin`},{match:/\.tsx$/,name:`tsx`,icon:`i-catppuccin:typescript-react icon-catppuccin`},{match:/\.jsx$/,name:`jsx`,icon:`i-catppuccin:javascript-react icon-catppuccin`},{match:/\.d\.[cm]?ts$/,name:`dts`,icon:`i-catppuccin:typescript-def icon-catppuccin`},{match:/\.[cm]?ts$/,name:`ts`,icon:`i-catppuccin:typescript icon-catppuccin`},{match:/\.[cm]?js$/,name:`js`,icon:`i-catppuccin:javascript icon-catppuccin`},{match:/\.json5?$/,name:`json`,icon:`i-catppuccin:json icon-catppuccin`},{match:/\.ya?ml$/,name:`yaml`,icon:`i-catppuccin:yaml icon-catppuccin`},{match:/\.toml$/,name:`toml`,icon:`i-catppuccin:toml icon-catppuccin`},{match:/\.md$/,name:`markdown`,icon:`i-catppuccin:markdown icon-catppuccin`},{match:/\.html?$/,name:`html`,icon:`i-catppuccin:html icon-catppuccin`},{match:/\.(?:css|postcss)$/,name:`css`,icon:`i-catppuccin:css icon-catppuccin`},{match:/\.s[ac]ss$/,name:`sass`,icon:`i-catppuccin:sass icon-catppuccin`},{match:/\.svg$/,name:`svg`,icon:`i-catppuccin:svg icon-catppuccin`},{match:/\.(?:png|jpe?g|gif|webp|avif|ico)$/,name:`image`,icon:`i-catppuccin:image icon-catppuccin`},{match:/\.(?:woff2?|ttf|otf|eot)$/,name:`font`,icon:`i-catppuccin:font icon-catppuccin`},{match:/\.wasm$/,name:`wasm`,icon:`i-catppuccin:webassembly icon-catppuccin`},{match:/package\.json$/,name:`npm`,icon:`i-catppuccin:npm icon-catppuccin`},{match:/\.(?:test|spec)\.[cm]?[jt]sx?$/,name:`test`,icon:`i-catppuccin:typescript-test icon-catppuccin`}],Ko=`i-catppuccin:file`;function qo(e){return e.replace(/[?#].*$/,``)}function Jo(e,t=Go){let n=qo(e);for(let e of t)if(e.match.test(n))return{name:e.name,icon:e.icon,description:e.description};return{name:`file`,icon:Ko}}function Yo(e,t){return Jo(e,t).icon}var Xo=`i-catppuccin:folder`,Zo=`i-catppuccin:folder-open`,Qo={src:`i-catppuccin:folder-src`,dist:`i-catppuccin:folder-dist`,node_modules:`i-catppuccin:folder-node`,test:`i-catppuccin:folder-tests`,tests:`i-catppuccin:folder-tests`,public:`i-catppuccin:folder-public`,components:`i-catppuccin:folder-components`,utils:`i-catppuccin:folder-utils`,config:`i-catppuccin:folder-config`,assets:`i-catppuccin:folder-images`,scripts:`i-catppuccin:folder-scripts`,styles:`i-catppuccin:folder-styles`,lib:`i-catppuccin:folder-lib`};function $o(e,t=!1,n=Qo){return t?Zo:(e?n[e.toLowerCase()]:void 0)??Xo}var es=[`title`],ts=c({__name:`DisplayFileIcon`,props:{path:{},rules:{},directory:{type:Boolean},open:{type:Boolean},folderRules:{}},setup(e){let t=e,i=o(()=>{if(t.directory){let e=t.path.replace(/\/+$/,``).split(`/`).pop()||`folder`;return{name:e,icon:$o(e,t.open,t.folderRules)}}return Jo(t.path,t.rules)});return(e,t)=>(n(),r(`span`,{class:a([`icon-catppuccin`,i.value.icon]),title:i.value.name,"aria-hidden":`true`},null,10,es))}});export{Bo as a,Co as c,he as d,Ho as i,xo as l,Yo as n,Po as o,Wo as r,No as s,ts as t,fn as u};
@@ -1 +0,0 @@
1
- import{Ht as e,J as t,Kn as n,Or as r,W as i,gn as a,kr as o,n as s,q as c,rt as l}from"./vue-i18n-B4RRzKT-.js";var u={class:`whitespace-nowrap text-xs tabular-nums`},d={key:0,class:`color-success-500`},f={key:1,class:`ml-1 color-error-500`},p=l({__name:`DiffStats`,props:{additions:{},deletions:{}},setup(n){let{locale:r}=s(),i=e=>e.toLocaleString(r.value);return(r,a)=>(e(),t(`span`,u,[n.additions?(e(),t(`span`,d,`+`+o(i(n.additions)),1)):c(``,!0),n.deletions?(e(),t(`span`,f,`-`+o(i(n.deletions)),1)):c(``,!0)]))}}),m=[`aria-label`],h=[`src`],g={key:1,"aria-hidden":`true`,class:`text-xs font-medium leading-none op-fade`},_=l({__name:`GithubAvatar`,props:{login:{},avatarUrl:{},size:{default:20}},setup(s){let c=s,l=n(!1),u=i(()=>c.avatarUrl||`https://github.com/${c.login.replace(/\[bot\]$/,``)}.png?size=${c.size*2}`);return a(u,()=>{l.value=!1}),(n,i)=>(e(),t(`span`,{role:`img`,"aria-label":n.$t(`common.avatar`,{login:s.login}),style:r({width:`${s.size}px`,height:`${s.size}px`}),class:`inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-raised`},[l.value?(e(),t(`span`,g,o(s.login.charAt(0).toUpperCase()||`?`),1)):(e(),t(`img`,{key:0,src:u.value,alt:``,class:`h-full w-full object-cover`,onError:i[0]||=e=>l.value=!0},null,40,h))],12,m))}});export{p as n,_ as t};
@@ -1 +0,0 @@
1
- import{$ as e,G as t,Ht as n,J as r,K as i,Kn as a,Tr as o,Xt as s,Yt as c,d as l,et as u,kr as d,q as f,rt as p,tt as m,xn as h}from"./vue-i18n-B4RRzKT-.js";import{n as g,r as _}from"./useDocumentTitle-DSsMzDvH.js";import{c as v}from"./index-Buksdj5x.js";import{t as y}from"./ActionIconButton-wh9iuTi4.js";var b={},x={class:`flex items-center justify-center gap-2 px-6 py-6 text-xs op-fade`};function S(t,i){return n(),r(`footer`,x,[...i[0]||=[e(`<span>made by <a href="https://github.com/antfu" target="_blank" rel="noopener" class="color-base hover:underline">@antfu</a></span><span>·</span><span>supported by <a href="https://vercel.com" target="_blank" rel="noopener" class="color-base hover:underline">▲ Vercel</a> and <a href="https://github.com/sponsors/antfu" target="_blank" rel="noopener" class="color-base hover:underline">sponsors</a></span><span>·</span><span>MIT</span><span>·</span><a href="https://github.com/antfu/pulls.review" target="_blank" rel="noopener" class="transition hover:color-base hover:op100">GitHub</a>`,7)]])}var C=v(b,[[`render`,S]]),w=p({__name:`AppHeader`,props:{document:{}},setup(e){let i=e,c=a(0);return l(()=>i.document??document,`scroll`,e=>{c.value=e.target instanceof Element?e.target.scrollTop:window.scrollY},{capture:!0}),(e,i)=>{let a=s(`RouterLink`);return n(),r(`header`,{class:o([`sticky top-0 z-nav h-14 flex items-center gap-3 border-b bg-base bg-glass px-4 transition-all`,c.value>10?`border-base`:`border-transparent`])},[m(a,{to:`/`,class:`shrink-0 text-lg font-mono`},{default:h(()=>[...i[0]||=[t(`span`,{class:`color-accent-magenta`},`+`,-1),u(`pulls`,-1),t(`span`,{class:`color-accent-orange`},`.`,-1),t(`span`,{class:`color-accent-teal`},`review`,-1)]]),_:1}),i[1]||=t(`div`,{class:`flex-1`},null,-1),m(_,null,{default:h(()=>[m(y,{href:`https://github.com/antfu/pulls.review`,target:`_blank`,rel:`noopener`,icon:`i-carbon-logo-github`,label:e.$t(`common.githubRepository`),tooltip:`GitHub`},null,8,[`label`])]),_:1})],2)}}}),T={class:`whitespace-nowrap font-medium`},E={key:0,class:`op-fade`},D=p({__name:`DiffPill`,props:{to:{},parent:{},label:{},state:{},title:{}},setup(e){return(a,o)=>{let l=s(`RouterLink`);return n(),i(l,{to:e.to,title:e.title,class:`max-w-full flex items-center gap-2 border border-base rounded-full px-3 py-1.5 text-sm transition hover:border-accent-teal-400/50 hover:bg-hover`},{default:h(()=>[e.state?(n(),i(g,{key:0,state:e.state,class:`text-sm`},null,8,[`state`])):f(``,!0),t(`span`,T,[u(d(e.parent),1),e.label?(n(),r(`span`,E,d(e.parent?` `:``)+d(e.label),1)):f(``,!0)]),c(a.$slots,`default`)]),_:3},8,[`to`,`title`])}}}),O={},k={class:`text-[clamp(2.25rem,4.6vw,4rem)] font-medium leading-[1.05] tracking-tight font-mono`};function A(t,i){return n(),r(`h1`,k,[...i[0]||=[e(`<span class="block"><span class="color-accent-orange" aria-hidden="true">@@</span> pull</span><span class="block">reviews<span class="color-accent-magenta" aria-hidden="true">:</span></span><span class="block"><span class="color-accent-teal" aria-hidden="true">+</span> made<span class="color-accent-orange" aria-hidden="true">{}</span></span><span class="block"><span class="color-accent-magenta" aria-hidden="true">&gt;&gt;&gt;</span>clear<span class="i-ph-check-bold inline-block translate-y-2 text-[0.8em] color-accent-teal" aria-hidden="true"></span></span>`,4)]])}var j=v(O,[[`render`,A]]);export{C as i,D as n,w as r,j as t};
@@ -1 +0,0 @@
1
- import{G as e,Ht as t,J as n,Jt as r,K as i,P as a,Tr as o,W as s,Xt as c,et as l,fn as u,kr as d,nr as f,q as p,rt as m,tt as h,xn as g}from"./vue-i18n-B4RRzKT-.js";import{j as _,t as v}from"./ModelPicker-CLoBWotf.js";import{a as y,c as b,i as x,l as S,n as C,o as w,r as T,s as E,t as D,u as O}from"./SelectViewport-Dt28PIGK.js";import{n as k}from"./local-agents-0SHBuj0A.js";var A={key:0,class:`flex items-center gap-2 text-sm color-faint`},j={key:1,class:`text-sm color-faint`},M={class:`flex items-center gap-2`},N={key:1,class:`text-xs op-mute`},P={class:`text-xs op-mute`},F=m({__name:`LocalAgentSettings`,props:{llmSettings:{},models:{},modelsLoading:{type:Boolean},modelsError:{}},emits:[`update:llmSettings`],setup(m,{emit:F}){let I=m,L=F,R={claude:`i-simple-icons-claudecode`,opencode:`i-simple-icons-opencode`,pi:`i-ph:terminal-window-duotone`,codex:`i-simple-icons-openai`},z=u(`host`),B=k(),V=s(()=>B?.value),H=s(()=>V.value?.find(e=>e.name===I.llmSettings.agent));function U(e){L(`update:llmSettings`,{...I.llmSettings,agent:e,agentModel:``})}let W=s({get:()=>I.llmSettings.agentModel,set:e=>L(`update:llmSettings`,{...I.llmSettings,agentModel:e})});return(s,u)=>{let k=c(`i18n-t`);return t(),n(a,null,[h(_,{label:s.$t(`settings.llm.agent`)},{description:g(()=>[h(k,{keypath:`settings.llm.agentHint`,scope:`global`},{claude:g(()=>[...u[5]||=[e(`a`,{href:`https://docs.anthropic.com/en/docs/claude-code`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Claude Code`,-1)]]),opencode:g(()=>[...u[6]||=[e(`a`,{href:`https://opencode.ai`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`OpenCode`,-1)]]),codex:g(()=>[...u[7]||=[e(`a`,{href:`https://developers.openai.com/codex/cli`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Codex`,-1)]]),pi:g(()=>[...u[8]||=[e(`a`,{href:`https://github.com/earendil-works/pi`,target:`_blank`,rel:`noopener`,class:`hover:underline`},`Pi`,-1)]]),_:1})]),default:g(()=>[V.value?V.value.length?(t(),n(`div`,{key:2,ref_key:`host`,ref:z,class:`relative`},[h(f(O),{"model-value":m.llmSettings.agent,"onUpdate:modelValue":u[0]||=e=>U(e)},{default:g(()=>[h(f(T),{class:`h-9 min-w-56 inline-flex items-center justify-between gap-2 border border-base rounded bg-raised px-2.5 text-sm outline-none transition focus-visible:ring-2 focus-visible:ring-primary-500/40`},{default:g(()=>[e(`span`,M,[H.value?(t(),n(`span`,{key:0,class:o(R[H.value.name]),"aria-hidden":`true`},null,2)):p(``,!0),h(f(C),{placeholder:s.$t(`settings.llm.agentPick`)},null,8,[`placeholder`]),H.value?(t(),n(`span`,N,d(H.value.version),1)):p(``,!0)]),h(f(b),{class:`op-fade`},{default:g(()=>[...u[3]||=[e(`span`,{class:`i-ph:caret-down`,"aria-hidden":`true`},null,-1)]]),_:1})]),_:1}),h(f(x),{to:z.value??void 0},{default:g(()=>[h(f(S),{position:`popper`,"side-offset":6,class:`z-dropdown min-w-[--reka-select-trigger-width] overflow-hidden border border-base rounded-lg bg-glass:75 shadow-lg`},{default:g(()=>[h(f(D),{class:`p-1`},{default:g(()=>[(t(!0),n(a,null,r(V.value,n=>(t(),i(f(E),{key:n.name,value:n.name,class:`relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pl-7 pr-2 text-sm color-base outline-none transition data-[highlighted]:bg-hover`},{default:g(()=>[h(f(w),{class:`absolute left-1.5 inline-flex items-center color-active`},{default:g(()=>[...u[4]||=[e(`span`,{class:`i-ph:check-bold`,"aria-hidden":`true`},null,-1)]]),_:1}),e(`span`,{class:o(R[n.name]),"aria-hidden":`true`},null,2),h(f(y),null,{default:g(()=>[l(d(n.label),1)]),_:2},1024),e(`span`,P,d(n.version),1)]),_:2},1032,[`value`]))),128))]),_:1})]),_:1})]),_:1},8,[`to`])]),_:1},8,[`model-value`])],512)):(t(),n(`p`,j,d(s.$t(`settings.llm.agentNone`)),1)):(t(),n(`p`,A,[u[2]||=e(`span`,{class:`i-ph:circle-notch animate-spin`,"aria-hidden":`true`},null,-1),l(` `+d(s.$t(`settings.llm.agentDetecting`)),1)]))]),_:1},8,[`label`]),m.llmSettings.agent?(t(),i(_,{key:0,label:s.$t(`settings.llm.model`)},{default:g(()=>[h(v,{modelValue:W.value,"onUpdate:modelValue":u[1]||=e=>W.value=e,models:m.models,loading:m.modelsLoading,error:m.modelsError},null,8,[`modelValue`,`models`,`loading`,`error`])]),_:1},8,[`label`])):p(``,!0)],64)}}});export{F as default};
@@ -1,3 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,$n as n,$t as r,A as i,An as a,Ar as o,At as s,B as c,Bn as l,Bt as u,C as d,Cn as f,Ct as p,D as m,Dn as h,Dr as g,Dt as ee,En as _,Et as v,F as y,Fn as b,Ft as te,G as x,Gn as ne,Gt as re,H as ie,Hn as ae,Ht as S,I as oe,In as se,It as ce,J as C,Jn as w,Jt as le,K as T,Kn as E,Kt as ue,L as de,Ln as fe,Lt as pe,M as me,Mn as he,Mt as ge,N as _e,Nn as ve,Nt as ye,On as be,Or as xe,Ot as D,P as Se,Pn as Ce,Pt as we,Q as Te,Qn as Ee,Qt as De,R as Oe,Rn as ke,Rt as Ae,S as je,Sn as Me,St as Ne,T as Pe,Tn as Fe,Tr as O,Tt as Ie,U as Le,Un as Re,Ut as ze,V as Be,Vn as Ve,Vt as He,W as k,Wn as Ue,Wt as We,X as Ge,Xn as Ke,Xt as qe,Y as Je,Yn as Ye,Yt as A,Z as Xe,Zn as Ze,Zt as Qe,_n as j,_t as $e,an as et,ar as tt,at as nt,bn as rt,bt as it,cn as at,ct as ot,d as st,dn as ct,dt as M,en as lt,er as N,et as P,fn as ut,ft as dt,gn as F,gt as ft,h as pt,hn as mt,ht,i as gt,in as _t,it as vt,j as yt,jn as bt,jt as xt,k as St,kn as Ct,kr as I,kt as L,ln as wt,lt as Tt,mn as Et,mt as R,n as Dt,nn as Ot,nr as z,nt as kt,o as At,on as jt,or as Mt,ot as Nt,pn as Pt,pt as Ft,q as B,qn as It,qt as Lt,rn as Rt,rt as V,s as H,sn as zt,st as Bt,tn as Vt,tr as Ht,tt as U,un as Ut,ut as Wt,vn as Gt,vt as Kt,w as qt,wn as Jt,wt as Yt,x as Xt,xn as W,xt as Zt,y as Qt,yn as $t,yt as en,z as tn,zn as nn,zt as rn}from"./vue-i18n-B4RRzKT-.js";import{C as an,S as on,_ as sn,a as cn,b as ln,c as un,d as dn,f as fn,g as pn,h as mn,i as hn,l as gn,m as _n,n as vn,o as yn,p as bn,r as xn,s as Sn,t as Cn,u as wn,v as Tn,w as En,x as Dn,y as On}from"./runtime-dom.esm-bundler-DL194Z-s.js";import{a as kn,c as An,d as jn,i as Mn,l as Nn,o as Pn,p as Fn,r as In,s as Ln,t as Rn,u as zn}from"./floating-ui.dom-CfpSQvPs.js";var Bn=e({BaseTransition:()=>St,BaseTransitionPropsValidators:()=>i,Comment:()=>yt,DeprecationTypes:()=>null,EffectScope:()=>_,ErrorCodes:()=>me,ErrorTypeStrings:()=>_e,Fragment:()=>Se,KeepAlive:()=>y,ReactiveEffect:()=>h,Static:()=>oe,Suspense:()=>de,Teleport:()=>Oe,Text:()=>tn,TrackOpTypes:()=>be,Transition:()=>Cn,TransitionGroup:()=>vn,TriggerOpTypes:()=>Ct,VueElement:()=>xn,assertNumber:()=>c,callWithAsyncErrorHandling:()=>Be,callWithErrorHandling:()=>ie,camelize:()=>tt,capitalize:()=>Mt,cloneVNode:()=>Le,compatUtils:()=>null,compile:()=>Vn,computed:()=>k,createApp:()=>hn,createBlock:()=>T,createCommentVNode:()=>B,createElementBlock:()=>C,createElementVNode:()=>x,createHydrationRenderer:()=>Je,createPropsRestProxy:()=>Ge,createRenderer:()=>Xe,createSSRApp:()=>cn,createSlots:()=>Te,createStaticVNode:()=>t,createTextVNode:()=>P,createVNode:()=>U,customRef:()=>a,defineAsyncComponent:()=>kt,defineComponent:()=>V,defineCustomElement:()=>yn,defineEmits:()=>vt,defineExpose:()=>nt,defineModel:()=>Nt,defineOptions:()=>Bt,defineProps:()=>ot,defineSSRCustomElement:()=>Sn,defineSlots:()=>Tt,devtools:()=>Wt,effect:()=>bt,effectScope:()=>he,getCurrentInstance:()=>M,getCurrentScope:()=>ve,getCurrentWatcher:()=>Ce,getTransitionRawChildren:()=>dt,guardReactiveProps:()=>Ft,h:()=>R,handleError:()=>ht,hasInjectionContext:()=>ft,hydrate:()=>un,hydrateOnIdle:()=>$e,hydrateOnInteraction:()=>Kt,hydrateOnMediaQuery:()=>en,hydrateOnVisible:()=>it,initCustomFormatter:()=>Zt,initDirectivesForSSR:()=>gn,inject:()=>Ne,isMemoSame:()=>p,isProxy:()=>b,isReactive:()=>se,isReadonly:()=>fe,isRef:()=>ke,isRuntimeOnly:()=>Yt,isShallow:()=>nn,isVNode:()=>Ie,markRaw:()=>l,mergeDefaults:()=>v,mergeModels:()=>ee,mergeProps:()=>D,nextTick:()=>L,nodeOps:()=>wn,normalizeClass:()=>O,normalizeProps:()=>g,normalizeStyle:()=>xe,onActivated:()=>s,onBeforeMount:()=>xt,onBeforeUnmount:()=>ge,onBeforeUpdate:()=>ye,onDeactivated:()=>we,onErrorCaptured:()=>te,onMounted:()=>ce,onRenderTracked:()=>pe,onRenderTriggered:()=>Ae,onScopeDispose:()=>Ve,onServerPrefetch:()=>rn,onUnmounted:()=>u,onUpdated:()=>He,onWatcherCleanup:()=>ae,openBlock:()=>S,patchProp:()=>dn,popScopeId:()=>ze,provide:()=>We,proxyRefs:()=>Re,pushScopeId:()=>re,queuePostFlushCb:()=>ue,reactive:()=>Ue,readonly:()=>ne,ref:()=>E,registerRuntimeCompiler:()=>Lt,render:()=>fn,renderList:()=>le,renderSlot:()=>A,resolveComponent:()=>qe,resolveDirective:()=>Qe,resolveDynamicComponent:()=>De,resolveFilter:()=>null,resolveTransitionHooks:()=>r,setBlockTracking:()=>lt,setDevtoolsHook:()=>Vt,setTransitionHooks:()=>Ot,shallowReactive:()=>It,shallowReadonly:()=>w,shallowRef:()=>Ye,ssrContextKey:()=>Rt,ssrUtils:()=>_t,stop:()=>Ke,toDisplayString:()=>I,toHandlerKey:()=>o,toHandlers:()=>et,toRaw:()=>Ze,toRef:()=>Ee,toRefs:()=>n,toValue:()=>N,transformVNodeArgs:()=>jt,triggerRef:()=>Ht,unref:()=>z,useAttrs:()=>zt,useCssModule:()=>bn,useCssVars:()=>_n,useHost:()=>mn,useId:()=>at,useModel:()=>wt,useSSRContext:()=>Ut,useShadowRoot:()=>pn,useSlots:()=>ct,useTemplateRef:()=>ut,useTransitionState:()=>Pt,vModelCheckbox:()=>sn,vModelDynamic:()=>Tn,vModelRadio:()=>On,vModelSelect:()=>ln,vModelText:()=>Dn,vShow:()=>on,version:()=>Et,warn:()=>mt,watch:()=>F,watchEffect:()=>j,watchPostEffect:()=>Gt,watchSyncEffect:()=>$t,withAsyncContext:()=>rt,withCtx:()=>W,withDefaults:()=>Me,withDirectives:()=>f,withKeys:()=>an,withMemo:()=>Jt,withModifiers:()=>En,withScopeId:()=>Fe}),Vn=()=>{},Hn={class:`flex flex-col gap-1`},Un=[`for`],Wn={key:0,class:`text-red-500`,"aria-hidden":`true`},Gn={key:1,class:`text-sm color-faint`},Kn={key:2,role:`alert`,class:`text-sm text-red-600 dark:text-red-400`},qn=V({__name:`FormField`,props:{label:{},description:{},error:{},required:{type:Boolean},id:{}},setup(e){return(t,n)=>(S(),C(`div`,Hn,[e.label||t.$slots.label?(S(),C(`label`,{key:0,for:e.id,class:`text-sm color-base font-medium`},[A(t.$slots,`label`,{},()=>[P(I(e.label),1),e.required?(S(),C(`span`,Wn,`\xA0*`)):B(``,!0)])],8,Un)):B(``,!0),A(t.$slots,`default`),e.description||t.$slots.description?(S(),C(`p`,Gn,[A(t.$slots,`description`,{},()=>[P(I(e.description),1)])])):B(``,!0),e.error||t.$slots.error?(S(),C(`p`,Kn,[A(t.$slots,`error`,{},()=>[P(I(e.error),1)])])):B(``,!0)]))}});function Jn(e){return typeof e==`string`?`'${e}'`:new Qn().serialize(e)}var Yn=` _-,;:!?.'"()[]{}@*/\\&#%\`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz`,Xn=(function(){let e=new Uint8Array(128);for(let t=0;t<69;t++)e[Yn.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Zn(e,t){if(e===t)return 0;let n=Math.min(e.length,t.length),r=0;for(let i=0;i<n;i++){let n=e.charCodeAt(i),a=t.charCodeAt(i);if(n===a)continue;let o=n<128&&Xn[n]?Xn[n]:n+128,s=a<128&&Xn[a]?Xn[a]:a+128;if(o!==s)return o<s?-1:1;r===0&&(r=n>a?-1:1)}return e.length===t.length?r:e.length<t.length?-1:1}var Qn=(function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?Zn(e,t):n===`number`&&r===`number`?e-t:Zn(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(`toJSON`in e&&typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}let i=Object.keys(e).sort(Zn),a=`${r}{`;for(let t=0;t<i.length;t++){let n=i[t];a+=`${n}:${this.serialize(e[n])}`,t<i.length-1&&(a+=`,`)}return a+`}`}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e})();function $n(e,t){return e===t||Jn(e)===Jn(t)}function G(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=Ne(r,t);if(n||n===null)return n;throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`)},e=>(We(r,e),e)]}function K(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function er(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function tr(e){return e==null}function nr(e){return e?e.flatMap(e=>e.type===Se?nr(e.children):[e]):[]}var[rr,ir]=G(`ConfigProvider`),q=Ue({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function ar(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function or(e,t,n=`.`,r){if(!ar(t))return or(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(i[t]=Array.isArray(a)&&Array.isArray(i[t])?[...a,...i[t]]:ar(a)&&ar(i[t])?or(a,i[t],(n?`${n}.`:``)+t.toString(),r):a))}return i}function sr(e){return(...t)=>t.reduce((t,n)=>or(t,n,``,e),{})}var cr=sr(),lr=je(()=>{let e=E(new Map),t=E(),n=k(()=>{for(let t of e.value.values())if(t)return!0;return!1}),r=rr({scrollBody:E(!0)}),i=null,a=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,q.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=``),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=t.value??``,qt&&i?.(),t.value=void 0};return F(n,(e,o)=>{if(!d)return;if(!e){o&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);let s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},l=r.scrollBody?.value?typeof r.scrollBody.value==`object`?cr({padding:r.scrollBody.value.padding===!0?s:r.scrollBody.value.padding,margin:r.scrollBody.value.margin===!0?s:r.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof l.padding==`number`?`${l.padding}px`:String(l.padding),document.body.style.marginRight=typeof l.margin==`number`?`${l.margin}px`:String(l.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${s}px`),document.body.style.overflow=`hidden`),qt&&(i=st(document,`touchmove`,e=>fr(e),{passive:!1})),L(()=>{n.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),e});function ur(e){let t=Math.random().toString(36).substring(2,7),n=lr();n.value.set(t,e??!1);let r=k({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return m(()=>{n.value.delete(t)}),r}function dr(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:dr(t)}}function fr(e){let t=e||window.event,n=t.target;return n instanceof Element&&dr(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function pr(e){let t=rr({dir:E(`ltr`)});return k(()=>e?.value||t.dir?.value||`ltr`)}function mr(e){let t=M(),n=t?.type.emits,r={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(t=>{r[o(tt(t))]=(...n)=>e(t,...n)}),r}var hr=0;function gr(){j(e=>{if(!d)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??_r()),document.body.insertAdjacentElement(`beforeend`,t[1]??_r()),hr++,e(()=>{hr===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),hr--})})}function _r(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function vr(e){return k(()=>!N(e)||!!H(e)?.closest(`form`))}function J(){let e=M(),t=E(),n=k(()=>r());He(()=>{n.value!==r()&&Ht(t)});function r(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:H(t)}let i=Object.assign({},e.exposed),a={};for(let t in e.props)Object.defineProperty(a,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(i).length>0)for(let e in i)Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>i[e]});Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=a;function o(n){if(t.value=n,n&&(Object.defineProperty(a,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},a);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:o,currentRef:t,currentElement:n}}function yr(e){let t=M(),n=Object.keys(t?.type.props??{}).reduce((e,n)=>{let r=(t?.type.props[n]).default;return r!==void 0&&(e[n]=r),e},{}),r=Ee(e);return k(()=>{let e={},i=t?.vnode.props??{};return Object.keys(i).forEach(t=>{e[tt(t)]=i[t]}),Object.keys({...n,...e}).reduce((e,t)=>(r.value[t]!==void 0&&(e[t]=r.value[t]),e),{})})}function br(e,t){let n=yr(e),r=t?mr(t):{};return k(()=>({...n.value,...r}))}var xr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Y=new WeakMap,Sr=new WeakMap,Cr={},wr=0,Tr=function(e){return e&&(e.host||Tr(e.parentNode))},Er=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Tr(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Dr=function(e,t,n,r){var i=Er(t,Array.isArray(e)?e:[e]);Cr[n]||(Cr[n]=new WeakMap);var a=Cr[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Y.get(e)||0)+1,l=(a.get(e)||0)+1;Y.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Sr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),wr++,function(){o.forEach(function(e){var t=Y.get(e)-1,i=a.get(e)-1;Y.set(e,t),a.set(e,i),t||(Sr.has(e)||e.removeAttribute(r),Sr.delete(e)),i||e.removeAttribute(n)}),wr--,wr||(Y=new WeakMap,Y=new WeakMap,Sr=new WeakMap,Cr={})}},Or=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||xr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Dr(r,i,n,`aria-hidden`)):function(){return null}};function kr(e){let t;F(()=>H(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=Or(e):t&&t()}),u(()=>{t&&t()})}var Ar=0;function jr(e,t=`reka`){if(e)return e;let n,r=rr({useId:void 0});return n=r.useId?r.useId():`useId`in Bn?at?.():`${++Ar}`,t?`${t}-${n}`:n}function Mr(e){let t=E(),n=k(()=>t.value?.width??0),r=k(()=>t.value?.height??0),i;return ce(()=>{let n=H(e);n?(t.value={width:n.offsetWidth,height:n.offsetHeight},i=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let r=e[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=n.offsetWidth,a=n.offsetHeight;t.value={width:i,height:a}}),i.observe(n,{box:`border-box`})):t.value=void 0}),u(()=>{i?.disconnect(),i=void 0}),{width:n,height:r}}function Nr(e,t){let n=E(e);function r(e){return t[n.value][e]??n.value}return{state:n,dispatch:e=>{n.value=r(e)}}}function Pr(e,t){let n=E({}),r=E(`none`),i=E(e),a=e.value?`mounted`:`unmounted`,o,s=t.value?.ownerDocument.defaultView??gt,{state:c,dispatch:l}=Nr(a,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}}),f=e=>{if(d){let n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(n)}};F(e,async(e,i)=>{let a=i!==e;if(await L(),a){let a=r.value,o=Fr(t.value);e?(l(`MOUNT`),f(`enter`),o===`none`&&f(`after-enter`)):o===`none`||o===`undefined`||n.value?.display===`none`?(l(`UNMOUNT`),f(`leave`),f(`after-leave`)):i&&a!==o?(l(`ANIMATION_OUT`),f(`leave`)):(l(`UNMOUNT`),f(`after-leave`))}},{immediate:!0});let p=e=>{if(e.target!==t.value)return;let n=Fr(t.value),r=n.includes(CSS.escape(e.animationName)),a=c.value===`mounted`?`enter`:`leave`;if(r&&(f(`after-${a}`),l(`ANIMATION_END`),!i.value)){let e=t.value.style.animationFillMode;t.value.style.animationFillMode=`forwards`,o=s?.setTimeout(()=>{t.value?.style.animationFillMode===`forwards`&&(t.value.style.animationFillMode=e)})}n===`none`&&l(`ANIMATION_END`)},m=e=>{e.target===t.value&&(r.value=Fr(t.value))},h=F(t,(e,t)=>{e?(n.value=getComputedStyle(e),e.addEventListener(`animationstart`,m),e.addEventListener(`animationcancel`,p),e.addEventListener(`animationend`,p)):(l(`ANIMATION_END`),o!==void 0&&s?.clearTimeout(o),t?.removeEventListener(`animationstart`,m),t?.removeEventListener(`animationcancel`,p),t?.removeEventListener(`animationend`,p))},{immediate:!0}),g=F(c,()=>{let e=Fr(t.value);r.value=c.value===`mounted`?e:`none`});return u(()=>{h(),g(),t.value&&(t.value.removeEventListener(`animationstart`,m),t.value.removeEventListener(`animationcancel`,p),t.value.removeEventListener(`animationend`,p)),o!==void 0&&s?.clearTimeout(o)}),{isPresent:k(()=>[`mounted`,`unmountSuspended`].includes(c.value))}}function Fr(e){return e&&getComputedStyle(e).animationName||`none`}var Ir=V({name:`Presence`,props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:r}){let{present:i,forceMount:a}=n(e),o=E(),{isPresent:s}=Pr(i,o);r({present:s});let c=t.default({present:s.value});c=nr(c||[]);let l=M();if(c&&c?.length>1){let e=l?.parent?.type.name?`<${l.parent.type.name} />`:`component`;throw Error([`Detected an invalid children for \`${e}\` for \`Presence\` component.`,``,"Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",`You can apply a few solutions:`,["Provide a single child element so that `presence` directive attach correctly.",`Ensure the first child is an actual element instead of a raw text node or comment node.`].map(e=>` - ${e}`).join(`
2
- `)].join(`
3
- `))}return()=>a.value||i.value||s.value?R(t.default({present:s.value})[0],{ref:e=>{let t=H(e);return t?.hasAttribute===void 0||(t?.hasAttribute(`data-reka-popper-content-wrapper`)?o.value=t.firstElementChild:o.value=t),t}}):null}}),Lr=V({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=nr(n.default()),r=e.findIndex(e=>e.type!==yt);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?D(t,i.props):t,o=Le({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Rr=[`area`,`img`,`input`],X=V({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Rr.includes(r)?()=>R(r,t):r===`template`?()=>R(Lr,t,{default:n.default}):()=>R(e.as,t,{default:n.default})}});function zr(){let e=E();return{primitiveElement:e,currentElement:k(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:H(e))}}var Br=`dismissableLayer.pointerDownOutside`,Vr=`dismissableLayer.focusOutside`;function Hr(e,t){if(!(t instanceof Element))return!1;if(e.contains(t))return!0;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function Ur(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=E(!1),a=E(()=>{});return j(o=>{if(!d||!N(n))return;let s=async n=>{let o=n.target;if(t?.value&&o){if(Hr(t.value,o)){r.removeEventListener(`click`,a.value),i.value=!1;return}if(n.target&&!i.value){let t={originalEvent:n};function i(){er(Br,e,t)}n.pointerType===`touch`?(r.removeEventListener(`click`,a.value),a.value=i,r.addEventListener(`click`,a.value,{once:!0})):i()}else r.removeEventListener(`click`,a.value);i.value=!1}},c=window.setTimeout(()=>{r.addEventListener(`pointerdown`,s)},0);o(()=>{window.clearTimeout(c),r.removeEventListener(`pointerdown`,s),r.removeEventListener(`click`,a.value)})}),{onPointerDownCapture:()=>{N(n)&&(i.value=!0)}}}function Wr(e,t,n=!0){let r=t?.value?.ownerDocument??globalThis?.document,i=E(!1);return j(a=>{if(!d||!N(n))return;let o=async n=>{if(!t?.value)return;await L(),await L();let r=n.target;t.value&&r&&!Hr(t.value,r)&&n.target&&!i.value&&er(Vr,e,{originalEvent:n})};r.addEventListener(`focusin`,o),a(()=>r.removeEventListener(`focusin`,o))}),{onFocusCapture:()=>{N(n)&&(i.value=!0)},onBlurCapture:()=>{N(n)&&(i.value=!1)}}}var Gr=V({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:t}){let n=e,r=t,{forwardRef:i,currentElement:a}=J(),o=k(()=>a.value?.ownerDocument??globalThis.document),s=k(()=>q.layersRoot),c=k(()=>a.value?Array.from(s.value).indexOf(a.value):-1),l=k(()=>q.layersWithOutsidePointerEventsDisabled.size>0),u=k(()=>{let e=Array.from(s.value),[t]=[...q.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return c.value>=n}),d=Ur(async e=>{let t=[...q.branches].some(t=>t?.contains(e.target));n.present&&u.value&&!t&&(r(`pointerDownOutside`,e),r(`interactOutside`,e),await L(),e.defaultPrevented||r(`dismiss`))},a,()=>n.present),f=Wr(e=>{let t=[...q.branches].some(t=>t?.contains(e.target));n.present&&!t&&(r(`focusOutside`,e),r(`interactOutside`,e),e.defaultPrevented||r(`dismiss`))},a);return At(`Escape`,e=>{n.present&&c.value===s.value.size-1&&(r(`escapeKeyDown`,e),e.defaultPrevented||r(`dismiss`))}),F([a,()=>n.disableOutsidePointerEvents,()=>n.present],([e,t,n],r,i)=>{e&&n&&t&&(q.layersWithOutsidePointerEventsDisabled.size===0&&(q.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents=`none`),q.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{q.layersWithOutsidePointerEventsDisabled.delete(e),q.layersWithOutsidePointerEventsDisabled.size===0&&!tr(q.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=q.originalBodyPointerEvents)}))},{immediate:!0}),F([a,()=>n.present],([e,t],n,r)=>{e&&t&&(s.value.add(e),r(()=>{s.value.delete(e)}))},{immediate:!0}),j(e=>{e(()=>{a.value&&(s.value.delete(a.value),q.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(e,t)=>(S(),T(z(X),{ref:z(i),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:xe({pointerEvents:l.value?u.value?`auto`:`none`:void 0}),onFocusCapture:z(f).onFocusCapture,onBlurCapture:z(f).onBlurCapture,onPointerdownCapture:z(d).onPointerDownCapture},{default:W(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),Kr=Xt(()=>E([]));function qr(){let e=Kr();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=Jr(e.value,t),e.value.unshift(t)},remove(t){e.value=Jr(e.value,t),e.value[0]?.resume()}}}function Jr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var Yr=`focusScope.autoFocusOnMount`,Xr=`focusScope.autoFocusOnUnmount`,Zr={bubbles:!1,cancelable:!0};function Qr(e,{select:t=!1}={}){let n=K();for(let r of e)if(Z(r,{select:t}),K()!==n)return!0}function $r(e){let t=ei(e);return[ti(t,e),ti(t.reverse(),e)]}function ei(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ti(e,t){for(let n of e)if(!ni(n,{upTo:t}))return n}function ni(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function ri(e){return e instanceof HTMLInputElement&&`select`in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){let n=K();e.focus({preventScroll:!0}),e!==n&&ri(e)&&t&&e.select()}}var ii=V({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(e,{emit:t}){let n=e,r=t,{currentRef:i,currentElement:a}=J(),o=E(null),s=qr(),c=Ue({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});j(e=>{if(!d)return;let t=a.value;if(!n.trapped)return;function r(e){if(c.paused||!t)return;let n=e.target;t.contains(n)?o.value=n:Z(o.value,{select:!0})}function i(e){if(c.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||Z(o.value,{select:!0}))}function s(e){let n=o.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=K();r&&t.contains(r)||t.contains(n)||Z(t)}document.addEventListener(`focusin`,r),document.addEventListener(`focusout`,i);let l=new MutationObserver(s);t&&l.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,r),document.removeEventListener(`focusout`,i),l.disconnect()})});function l(e,t){let n=new CustomEvent(Yr,Zr),i=e=>r(`mountAutoFocus`,e);e.addEventListener(Yr,i),e.dispatchEvent(n),e.removeEventListener(Yr,i),n.defaultPrevented||(Qr(ei(e),{select:!0}),K()===t&&Z(e))}j(async e=>{let t=a.value;if(await L(),!t)return;n.present!==!1&&s.add(c);let i=K();!t.contains(i)&&n.present!==!1&&l(t,i),e(()=>{let e=new CustomEvent(Xr,Zr),n=e=>{r(`unmountAutoFocus`,e)};t.addEventListener(Xr,n),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||Z(i??document.body,{select:!0}),t.removeEventListener(Xr,n),s.remove(c),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),F(()=>n.present,async(e,t)=>{if(!d)return;if(e===!1&&t===!0){s.remove(c);return}if(e!==!0||t!==!1)return;s.add(c),await L();let n=a.value;if(!n)return;let r=K();n.contains(r)||l(n,r)});function u(e){if(!n.loop&&!n.trapped||c.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=K();if(t&&r){let t=e.currentTarget,[i,a]=$r(t);i&&a?!e.shiftKey&&r===a?(e.preventDefault(),n.loop&&Z(i,{select:!0})):e.shiftKey&&r===i&&(e.preventDefault(),n.loop&&Z(a,{select:!0})):r===t&&e.preventDefault()}}return(e,t)=>(S(),T(z(X),{ref_key:`currentRef`,ref:i,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:u},{default:W(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),ai=V({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=rr({}),r=k(()=>t.to??n.teleportTo?.value??`body`),i=pt();return(e,t)=>z(i)||e.forceMount?(S(),T(Oe,{key:0,to:r.value,disabled:e.disabled,defer:e.defer},[A(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):B(`v-if`,!0)}}),oi=`data-reka-collection-item`;function si(e={}){let{key:t=``,isProvider:n=!1}=e,r=`${t}CollectionProvider`,i;if(n){let e=E(new Map);i={collectionRef:E(),itemMap:e},We(r,i)}else i=Ne(r);let a=(e,t=!1)=>{if(!i.collectionRef.value)return;let n=i.itemMap.value.get(e);return n&&(t||n.ref.dataset.disabled!==``)?n:void 0},o=(e=!1)=>{let t=i.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${oi}]`)),r=new Map(n.map((e,t)=>[e,t])),a=Array.from(i.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?a:a.filter(e=>e.ref.dataset.disabled!==``)},s=V({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=zr();return F(a,()=>{i.collectionRef.value=a.value}),()=>R(Lr,{ref:r,...n},t)}}),c=V({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=zr();return j(t=>{if(a.value){let n=l(a.value);i.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>i.itemMap.value.delete(n))}}),()=>R(Lr,{...n,[oi]:``,ref:r},t)}});return{getItems:o,getItem:a,reactiveItems:k(()=>Array.from(i.itemMap.value.values())),itemMapSize:k(()=>i.itemMap.value.size),CollectionSlot:s,CollectionItem:c}}var ci=V({__name:`VisuallyHidden`,props:{feature:{type:String,required:!1,default:`focusable`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){return(e,t)=>(S(),T(z(X),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature===`focusable`||e.feature===`fully-hidden`?`true`:void 0,"data-hidden":e.feature===`fully-hidden`?``:void 0,tabindex:e.feature===`fully-hidden`?`-1`:void 0,style:{position:`absolute`,border:0,width:`1px`,height:`1px`,padding:0,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,clipPath:`inset(50%)`,whiteSpace:`nowrap`,wordWrap:`normal`,top:`-1px`,left:`-1px`}},{default:W(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-hidden`,`data-hidden`,`tabindex`]))}}),[li,ui]=G(`PopperRoot`),di=V({inheritAttrs:!1,__name:`PopperRoot`,setup(e){let t=E();return ui({anchor:t,onAnchorChange:e=>t.value=e}),(e,t)=>A(e.$slots,`default`)}}),fi=V({__name:`PopperAnchor`,props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:r}=J(),i=li();return Gt(()=>{i.onAnchorChange(t.reference??r.value)}),(e,t)=>(S(),T(z(X),{ref:z(n),as:e.as,"as-child":e.asChild},{default:W(()=>[A(e.$slots,`default`)]),_:3},8,[`as`,`as-child`]))}});function pi(e){return e!==null}function mi(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=hi(n),u={start:e.dir===`rtl`?`100%`:`0%`,center:`50%`,end:e.dir===`rtl`?`0%`:`100%`}[l],d={start:`0%`,center:`50%`,end:`100%`}[l],f=(i.arrow?.x??0)+o/2,p=(i.arrow?.y??0)+s/2,m=``,h=``;return c===`bottom`?(m=a?u:`${f}px`,h=`${-s}px`):c===`top`?(m=a?u:`${f}px`,h=`${r.floating.height+s}px`):c===`right`?(m=`${-s}px`,h=a?d:`${p}px`):c===`left`&&(m=`${r.floating.width+s}px`,h=a?d:`${p}px`),{data:{x:m,y:h}}}}}function hi(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function gi(e){return typeof e==`object`&&!!e&&`$el`in e}function _i(e){if(gi(e)){let t=e.$el;return Fn(t)&&jn(t)===`#comment`?null:t}return e}function Q(e){return typeof e==`function`?e():z(e)}function vi(e){return{name:`arrow`,options:e,fn(t){let n=_i(Q(e.element));return n==null?{}:Rn({element:n,padding:e.padding}).fn(t)}}}function yi(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bi(e,t){let n=yi(e);return Math.round(t*n)/n}function xi(e,t,n){n===void 0&&(n={});let r=n.whileElementsMounted,i=k(()=>Q(n.open)??!0),a=k(()=>Q(n.middleware)),o=k(()=>Q(n.placement)??`bottom`),s=k(()=>Q(n.strategy)??`absolute`),c=k(()=>Q(n.transform)??!0),l=k(()=>_i(e.value)),u=k(()=>_i(t.value)),d=E(0),f=E(0),p=E(s.value),m=E(o.value),h=Ye({}),g=E(!1),ee=k(()=>{let e={position:p.value,left:`0`,top:`0`};if(!u.value)return e;let t=bi(u.value,d.value),n=bi(u.value,f.value);return c.value?{...e,transform:`translate(`+t+`px, `+n+`px)`,...yi(u.value)>=1.5&&{willChange:`transform`}}:{position:p.value,left:t+`px`,top:n+`px`}}),_;function v(){if(l.value==null||u.value==null)return;let e=i.value;Mn(l.value,u.value,{middleware:a.value,placement:o.value,strategy:s.value}).then(t=>{d.value=t.x,f.value=t.y,p.value=t.strategy,m.value=t.placement,h.value=t.middlewareData,g.value=e!==!1})}function y(){typeof _==`function`&&(_(),_=void 0)}function b(){if(y(),r===void 0){v();return}if(l.value!=null&&u.value!=null){_=r(l.value,u.value,v);return}}function te(){i.value||(g.value=!1)}return F([a,o,s,i],v,{flush:`sync`}),F([l,u],b,{flush:`sync`}),F(i,te,{flush:`sync`}),ve()&&Ve(y),{x:w(d),y:w(f),strategy:w(p),placement:w(m),middlewareData:w(h),isPositioned:w(g),floatingStyles:ee,update:v}}var Si=[`dir`],Ci={side:`bottom`,sideOffset:0,sideFlip:!0,align:`center`,alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:`partial`,hideWhenDetached:!1,positionStrategy:`fixed`,updatePositionStrategy:`optimized`,prioritizePosition:!1},[wi,Ti]=G(`PopperContent`),Ei=V({inheritAttrs:!1,__name:`PopperContent`,props:v({memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...Ci}),emits:[`placed`],setup(e,{emit:t}){let n=e,r=t,i=li(),{forwardRef:a,currentElement:o}=J(),s=pr(k(()=>n.dir)),c=E(),l=E(),{width:u,height:d}=Mr(l),f=k(()=>n.side+(n.align===`center`?``:`-${n.align}`)),p=k(()=>typeof n.collisionPadding==`number`?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),m=k(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=k(()=>({padding:p.value,boundary:m.value.filter(pi),altBoundary:m.value.length>0})),g=k(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),ee=k(()=>[An({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&kn({...h.value,...g.value}),n.avoidCollisions&&Nn({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky===`partial`?Ln():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&kn({...h.value,...g.value}),zn({...h.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--reka-popper-available-width`,`${n}px`),o.setProperty(`--reka-popper-available-height`,`${r}px`),o.setProperty(`--reka-popper-anchor-width`,`${i}px`),o.setProperty(`--reka-popper-anchor-height`,`${a}px`)}}),l.value&&vi({element:l.value,padding:n.arrowPadding}),mi({arrowWidth:u.value,arrowHeight:d.value,dir:s.value}),n.hideWhenDetached&&Pn({strategy:`referenceHidden`,...h.value})]),{floatingStyles:_,placement:v,isPositioned:y,middlewareData:b,update:te}=xi(k(()=>n.reference??i.anchor.value),c,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...e)=>In(...e,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy===`always`}),middleware:ee}),x=k(()=>hi(v.value)[0]),ne=k(()=>hi(v.value)[1]);Gt(()=>{y.value&&r(`placed`)});let re=k(()=>{let e=b.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&e}),ie=E(``);return j(()=>{o.value&&(ie.value=window.getComputedStyle(o.value).zIndex)}),Ti({placedSide:x,onArrowChange:e=>l.value=e,arrowX:k(()=>b.value.arrow?.x??0),arrowY:k(()=>b.value.arrow?.y??0),shouldHideArrow:re}),(e,t)=>(S(),C(`div`,{ref_key:`floatingRef`,ref:c,"data-reka-popper-content-wrapper":``,dir:z(s),style:xe({...z(_),transform:z(y)?z(_).transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ie.value,"--reka-popper-transform-origin":[z(b).transformOrigin?.x,z(b).transformOrigin?.y].join(` `),...z(b).hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}})},[n.memoDependencies?Jt([n.asChild,n.as,x.value,ne.value,z(y),...Object.values(e.$attrs),...n.memoDependencies],()=>(S(),T(z(X),D({key:0,ref:z(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":x.value,"data-align":ne.value,style:{animation:z(y)?void 0:`none`}}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`style`])),t,0):(S(),T(z(X),D({key:1,ref:z(a)},e.$attrs,{"as-child":n.asChild,as:n.as,"data-side":x.value,"data-align":ne.value,dir:z(s),style:{animation:z(y)?void 0:`none`}}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16,[`as-child`,`as`,`data-side`,`data-align`,`dir`,`style`]))],12,Si))}}),[$,Di]=G(`PopoverRoot`),Oi=V({__name:`PopoverRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:[`update:open`],setup(e,{emit:t}){let r=e,i=t,{modal:a}=n(r),o=Qt(r,`open`,i,{defaultValue:r.defaultOpen,passive:r.open===void 0});return Di({contentId:``,triggerId:``,modal:a,open:o,onOpenChange:e=>{o.value=e},onOpenToggle:()=>{o.value=!o.value},triggerElement:E(),hasCustomAnchor:E(!1)}),(e,t)=>(S(),T(z(di),null,{default:W(()=>[A(e.$slots,`default`,{open:z(o),close:()=>o.value=!1})]),_:3}))}}),ki=V({__name:`PopoverContentImpl`,props:{trapFocus:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=yr(Pe(n,`trapFocus`,`disableOutsidePointerEvents`)),{forwardRef:a}=J(),o=$();return gr(),(e,t)=>(S(),T(z(ii),{"as-child":``,loop:``,trapped:e.trapFocus,onMountAutoFocus:t[5]||=e=>r(`openAutoFocus`,e),onUnmountAutoFocus:t[6]||=e=>r(`closeAutoFocus`,e)},{default:W(()=>[U(z(Gr),{"as-child":``,"disable-outside-pointer-events":e.disableOutsidePointerEvents,onPointerDownOutside:t[0]||=e=>r(`pointerDownOutside`,e),onInteractOutside:t[1]||=e=>r(`interactOutside`,e),onEscapeKeyDown:t[2]||=e=>r(`escapeKeyDown`,e),onFocusOutside:t[3]||=e=>r(`focusOutside`,e),onDismiss:t[4]||=e=>z(o).onOpenChange(!1)},{default:W(()=>[U(z(Ei),D(z(i),{id:z(o).contentId,ref:z(a),"data-state":z(o).open.value?`open`:`closed`,"aria-labelledby":z(o).triggerId,style:{"--reka-popover-content-transform-origin":`var(--reka-popper-transform-origin)`,"--reka-popover-content-available-width":`var(--reka-popper-available-width)`,"--reka-popover-content-available-height":`var(--reka-popper-available-height)`,"--reka-popover-trigger-width":`var(--reka-popper-anchor-width)`,"--reka-popover-trigger-height":`var(--reka-popper-anchor-height)`},role:`dialog`}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`aria-labelledby`])]),_:3},8,[`disable-outside-pointer-events`])]),_:3},8,[`trapped`]))}}),Ai=V({__name:`PopoverContentModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=$(),a=E(!1);ur(!0);let o=br(n,r),{forwardRef:s,currentElement:c}=J();return kr(c),(e,t)=>(S(),T(ki,D(z(o),{ref:z(s),"trap-focus":z(i).open.value,"disable-outside-pointer-events":``,onCloseAutoFocus:t[0]||=En(e=>{r(`closeAutoFocus`,e),a.value||z(i).triggerElement.value?.focus()},[`prevent`]),onPointerDownOutside:t[1]||=e=>{r(`pointerDownOutside`,e);let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,i=t.button===2||n;a.value=i},onFocusOutside:t[2]||=En(()=>{},[`prevent`])}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16,[`trap-focus`]))}}),ji=V({__name:`PopoverContentNonModal`,props:{memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=$(),a=E(!1),o=E(!1),s=br(n,r);return(e,t)=>(S(),T(ki,D(z(s),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:t[0]||=e=>{r(`closeAutoFocus`,e),e.defaultPrevented||(a.value||z(i).triggerElement.value?.focus(),e.preventDefault()),a.value=!1,o.value=!1},onInteractOutside:t[1]||=async e=>{r(`interactOutside`,e),e.defaultPrevented||(a.value=!0,e.detail.originalEvent.type===`pointerdown`&&(o.value=!0));let t=e.target;z(i).triggerElement.value?.contains(t)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o.value&&e.preventDefault()}}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16))}}),Mi=V({__name:`PopoverContent`,props:{forceMount:{type:Boolean,required:!1},memoDependencies:{type:Array,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(e,{emit:t}){let n=e,r=t,i=$(),a=br(n,r),{forwardRef:o}=J();return i.contentId||=jr(void 0,`reka-popover-content`),(e,t)=>(S(),T(z(Ir),{present:e.forceMount||z(i).open.value},{default:W(()=>[z(i).modal.value?(S(),T(Ai,D({key:0},z(a),{ref:z(o)}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16)):(S(),T(ji,D({key:1},z(a),{ref:z(o)}),{default:W(()=>[A(e.$slots,`default`)]),_:3},16))]),_:3},8,[`present`]))}}),Ni=V({__name:`PopoverPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(S(),T(z(ai),g(Ft(t)),{default:W(()=>[A(e.$slots,`default`)]),_:3},16))}}),Pi=V({__name:`PopoverTrigger`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=$(),{forwardRef:r,currentElement:i}=J();return n.triggerId||=jr(void 0,`reka-popover-trigger`),n.contentId||=jr(void 0,`reka-popover-content`),ce(()=>{n.triggerElement.value=i.value}),(e,i)=>(S(),T(De(z(n).hasCustomAnchor.value?z(X):z(fi)),{"as-child":``},{default:W(()=>[U(z(X),{id:z(n).triggerId,ref:z(r),type:e.as===`button`?`button`:void 0,"aria-haspopup":`dialog`,"aria-expanded":z(n).open.value,"aria-controls":z(n).open.value?z(n).contentId:void 0,"data-state":z(n).open.value?`open`:`closed`,as:e.as,"as-child":t.asChild,onClick:z(n).onOpenToggle},{default:W(()=>[A(e.$slots,`default`)]),_:3},8,[`id`,`type`,`aria-expanded`,`aria-controls`,`data-state`,`as`,`as-child`,`onClick`])]),_:3}))}}),Fi=[`type`,`placeholder`,`disabled`,`aria-invalid`],Ii=V({__name:`FormTextInput`,props:ee({icon:{},clearable:{type:Boolean},placeholder:{},type:{default:`text`},size:{default:`md`},disabled:{type:Boolean},invalid:{type:Boolean}},{modelValue:{default:``},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=wt(e,`modelValue`);return(n,r)=>(S(),C(`label`,{class:O([`px-2 border rounded bg-raised inline-flex gap-2 transition items-center focus-within:ring-2`,[e.size===`sm`?`h-7 text-sm`:`h-9`,e.invalid?`border-red-500/60 focus-within:ring-red-500/40`:`border-base focus-within:ring-primary-500/40`,{"op50 pointer-events-none":e.disabled}]])},[e.icon?(S(),C(`span`,{key:0,class:O([e.icon,`op-fade shrink-0`]),"aria-hidden":`true`},null,2)):B(``,!0),A(n.$slots,`prefix`),f(x(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:e.type,placeholder:e.placeholder,disabled:e.disabled,"aria-invalid":e.invalid||void 0,class:`color-base outline-none bg-transparent flex-1 min-w-0 placeholder:op-mute`},null,8,Fi),[[Tn,t.value]]),e.clearable&&t.value?(S(),C(`button`,{key:1,type:`button`,class:`op-fade shrink-0 transition hover:op100`,"aria-label":`Clear`,onClick:r[1]||=e=>t.value=``},[...r[2]||=[x(`span`,{class:`i-ph:x`,"aria-hidden":`true`},null,-1)]])):B(``,!0),A(n.$slots,`suffix`)],2))}}),Li={key:0,class:`flex items-center gap-2 op-fade`},Ri={key:1,class:`min-w-0 flex items-center gap-2 color-base`},zi={class:`truncate`},Bi=[`title`],Vi={class:`p-1.5`},Hi={class:`max-h-56 of-y-auto pb-1`,role:`listbox`},Ui={key:0,class:`px-3 py-4 text-center text-sm op-mute`},Wi={key:1,class:`px-3 py-4 text-center text-sm op-mute`},Gi=[`aria-selected`,`onClick`],Ki={class:`min-w-0 flex-1 truncate`},qi=[`title`],Ji={key:1,class:`i-ph:check shrink-0 text-xs`,"aria-hidden":`true`},Yi={class:`min-w-0 flex-1 truncate`},Xi=V({__name:`ModelPicker`,props:ee({models:{},loading:{type:Boolean},error:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=wt(e,`modelValue`),{t:r}=Dt(),i=E(!1),a=E(``),o=ut(`host`);F(i,()=>a.value=``);let s=k(()=>t.models?.find(e=>e.id===n.value)),c=k(()=>{let e=a.value.trim().toLowerCase(),n=t.models??[];return e?n.filter(t=>t.name.toLowerCase().includes(e)||t.id.toLowerCase().includes(e)):n}),l=k(()=>{let e=a.value.trim();if(e&&!t.models?.some(t=>t.id===e))return e});function u(e){n.value=e,i.value=!1}function d(e){return`$${e>=1&&Number.isInteger(e)?e:e.toFixed(2)}`}function f(e){if(e.pricing)return e.pricing.input===0&&e.pricing.output===0?r(`settings.models.free`):`${d(e.pricing.input)} / ${d(e.pricing.output)}`}function p(e){if(e.pricing)return r(`settings.models.priceTitle`,{input:d(e.pricing.input),output:d(e.pricing.output)})}return(t,r)=>e.error?(S(),T(Ii,{key:0,modelValue:n.value,"onUpdate:modelValue":r[0]||=e=>n.value=e,placeholder:t.$t(`settings.models.placeholder`)},null,8,[`modelValue`,`placeholder`])):(S(),C(`div`,{key:1,ref_key:`host`,ref:o,class:`relative`},[U(z(Oi),{open:i.value,"onUpdate:open":r[3]||=e=>i.value=e},{default:W(()=>[U(z(Pi),{class:`h-9 w-full inline-flex items-center justify-between gap-2 border border-base rounded bg-raised px-2.5 text-sm outline-none transition focus-visible:ring-2 focus-visible:ring-primary-500/40`},{default:W(()=>[e.loading?(S(),C(`span`,Li,[r[4]||=x(`span`,{class:`i-ph:circle-notch animate-spin`,"aria-hidden":`true`},null,-1),P(` `+I(t.$t(`settings.models.loading`)),1)])):(S(),C(`span`,Ri,[x(`span`,zi,I(s.value?.name??n.value),1),s.value&&f(s.value)?(S(),C(`span`,{key:0,class:`shrink-0 text-xs tabular-nums op-mute`,title:p(s.value)},I(f(s.value)),9,Bi)):B(``,!0)])),x(`span`,{class:O([i.value?`i-ph:caret-up`:`i-ph:caret-down`,`shrink-0 op-fade`]),"aria-hidden":`true`},null,2)]),_:1}),U(z(Ni),{to:o.value??void 0},{default:W(()=>[U(z(Mi),{align:`start`,"side-offset":6,class:`z-dropdown w-[--reka-popover-trigger-width] flex flex-col overflow-hidden border border-base rounded-lg bg-glass:75 shadow-lg outline-none`},{default:W(()=>[x(`div`,Vi,[U(Ii,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,size:`sm`,icon:`i-ph:magnifying-glass`,placeholder:t.$t(`settings.models.search`),clearable:``,class:`w-full`},null,8,[`modelValue`,`placeholder`])]),x(`div`,Hi,[e.loading?(S(),C(`div`,Ui,I(t.$t(`settings.models.loading`)),1)):!c.value.length&&!l.value?(S(),C(`div`,Wi,I(t.$t(`settings.models.noMatch`)),1)):B(``,!0),(S(!0),C(Se,null,le(c.value,e=>(S(),C(`button`,{key:e.id,type:`button`,role:`option`,"aria-selected":e.id===n.value,class:O([`w-full flex items-center gap-2 px-3 py-1.5 text-left text-sm outline-none transition focus-visible:bg-hover`,e.id===n.value?`color-active bg-active`:`op-fade hover:op100 hover:bg-hover`]),onClick:t=>u(e.id)},[x(`span`,Ki,I(e.name),1),f(e)?(S(),C(`span`,{key:0,class:O([`shrink-0 text-xs tabular-nums`,e.pricing?.input===0&&e.pricing.output===0?`color-active`:`op-mute`]),title:p(e)},I(f(e)),11,qi)):B(``,!0),e.id===n.value?(S(),C(`span`,Ji)):B(``,!0)],10,Gi))),128)),l.value?(S(),C(`button`,{key:2,type:`button`,class:`w-full flex items-center gap-2 px-3 py-1.5 text-left text-sm op-fade outline-none transition focus-visible:bg-hover hover:bg-hover hover:op100`,onClick:r[2]||=e=>u(l.value)},[r[5]||=x(`span`,{class:`i-ph:plus shrink-0 text-xs`,"aria-hidden":`true`},null,-1),x(`span`,Yi,I(t.$t(`settings.models.useCustom`,{id:l.value})),1)])):B(``,!0)])]),_:1})]),_:1},8,[`to`])]),_:1},8,[`open`])],512))}});export{$n as A,pr as C,er as D,tr as E,K as O,mr as S,rr as T,br as _,fi as a,vr as b,si as c,Gr as d,zr as f,kr as g,jr as h,Ei as i,qn as j,G as k,ai as l,Ir as m,Ii as n,di as o,X as p,Ci as r,ci as s,Xi as t,ii as u,yr as v,ur as w,gr as x,J as y};