@vokril/ui-solid 0.33.4 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +40 -0
- package/dist/{StatusBarNotificationBell-DE1jIaBt.js → StatusBarNotificationBell-Lps0FfKd.js} +4241 -4154
- package/dist/StatusBarNotificationBell-pBGZ_2eb.cjs +53 -0
- package/dist/_internal/contract/browser/workspace.d.cts +5 -0
- package/dist/_internal/contract/browser/workspace.d.ts +5 -0
- package/dist/_internal/contract/notification.d.cts +30 -4
- package/dist/_internal/contract/notification.d.ts +30 -4
- package/dist/_internal/contract/notificationCatalog.d.cts +15 -1
- package/dist/_internal/contract/notificationCatalog.d.ts +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/createNotificationPreviewRuntime.d.cts +1 -0
- package/dist/notifications/createNotificationPreviewRuntime.d.ts +1 -0
- package/dist/notifications/fireNotification.d.cts +14 -7
- package/dist/notifications/fireNotification.d.ts +14 -7
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/notifications/nativeEngine.d.cts +8 -1
- package/dist/notifications/nativeEngine.d.ts +8 -1
- package/dist/notifications/notificationService.d.cts +2 -1
- package/dist/notifications/notificationService.d.ts +2 -1
- package/dist/notifications/notifications.notifications.d.cts +0 -1
- package/dist/notifications/notifications.notifications.d.ts +0 -1
- package/dist/notifications/toast.d.cts +19 -3
- package/dist/notifications/toast.d.ts +19 -3
- package/dist/notifications/toastFilterPolicy.d.cts +15 -1
- package/dist/notifications/toastFilterPolicy.d.ts +15 -1
- package/dist/server/StatusBarNotificationBell-D0UzYPs6.cjs +52 -0
- package/dist/server/{StatusBarNotificationBell-y5cPAlMY.js → StatusBarNotificationBell-DiVJ-EnY.js} +4255 -4168
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +4 -3
- package/dist/solid/notifications/catalogAdapter.js +8 -9
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +34 -18
- package/dist/solid/notifications/fireNotification.js +9 -5
- package/dist/solid/notifications/notificationOverlaySnapshot.js +1 -0
- package/dist/solid/notifications/notificationService.js +1 -0
- package/dist/solid/notifications/notifications.notifications.js +8 -0
- package/dist/solid/notifications/toast.js +70 -31
- package/dist/solid/notifications/toastFilterPolicy.js +8 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/StatusBarNotificationBell-CLrNtOO9.cjs +0 -50
- package/dist/server/StatusBarNotificationBell-fLacxZ0X.cjs +0 -49
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";var fc=Object.defineProperty;var dc=(e,t,n)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var me=(e,t,n)=>dc(e,typeof t!="symbol"?t+"":t,n);const st=require("./electronBridge-cT0xww92.cjs"),Ro=require("./bugIndicatingError-D2X5Hfgg.cjs"),K=require("./useSettingsSubscription-DKjCwmRd.cjs"),C=require("./i18n-D3s-a2a0.cjs"),Nt=require("./errorHandler-DoDAPpv2.cjs"),a=require("solid-js/web"),m=require("solid-js"),Gu=require("solid-js/store"),Xr=require("./createDialogShellFocus-usbhq9Av.cjs"),Xu=require("./OverlayScrollArea-DuwGRSMm.cjs"),Ti=require("./HostPortal-CwyePpDX.cjs"),Io=require("./HostWindowContext-_VZCt7xE.cjs"),Sn=require("./kitHost-u0-mKvEK.cjs"),vt=require("./builtins-DM7FDxEt.cjs"),pc=require("./window-_BfSgFGO.cjs"),Lr=require("./tokens/menu-density/index.cjs"),Oo=require("./isOneOf-9EXOSYJu.cjs"),yo=require("./prefersReducedMotion-DYR56SKZ.cjs"),mn=require("./keys-GMxY2wcl.cjs"),xo=require("./mainRealmDom-BuGEeM_r.cjs"),jr=require("./Input-UX0Hk53M.cjs"),ft=require("./notificationCatalog-CEDltsJS.cjs"),Ln=require("./GuidedTour-DCoB90h1.cjs"),Zr=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),Fe=require("./Button-DHefmmYz.cjs"),Bn=require("./DateRangePicker-BeByF_wt.cjs"),Ce=require("./VpTrash-DiczWhwm.cjs"),hc=require("./VpDots-ZiJ27JK9.cjs"),gc=require("./VpCheck-CGTZXiSk.cjs"),Ec=require("./VpCopy-DsiWuj67.cjs"),bc=require("./VpMinus-DUPk_dTT.cjs"),Tn=require("./Popover-BBDBIpT6.cjs"),_c=require("./windowRegistry-CxXtP-iY.cjs"),hr=require("./iconScale.module-CzmKG1rf.cjs"),Do=require("./VpAlertTriangle-BqDp6ZRi.cjs"),Mr=require("./VpClose-O8jHAcCB.cjs"),mc=require("./dialogFocusRestore-DP5b1bDo.cjs"),Ac="vk_bar_iSxMW",Tc="vk_barCompact_SCRfr",Sc="vk_search_P2Oii",Cc="vk_dateBtn_v3RN1",Ou={bar:Ac,barCompact:Tc,search:Sc,dateBtn:Cc};var Nc=['<div class="','">',"","","</div>"];function ko(e){return a.ssr(Nc,`${a.escape(Ou.bar,!0)} ${e.compact?a.escape(Ou.barCompact,!0):""} ${a.escape(e.class??"",!0)}`,a.escape(a.createComponent(jr.Input,{type:"text",get class(){return Ou.search},get placeholder(){return e.searchPlaceholder??C.t("Search…")},get value(){return e.searchValue},onInput:t=>e.onSearchInput(t.currentTarget.value)})),a.escape(a.createComponent(m.Show,{get when(){return e.onDateRangeChange},get children(){return a.createComponent(Bn.DateRangePicker,a.mergeProps({get value(){return e.dateRange??null},onChange:t=>{var n;return(n=e.onDateRangeChange)==null?void 0:n.call(e,t)},get triggerClass(){return Ou.dateBtn}},()=>e.dateRangeAlign?{align:e.dateRangeAlign}:{}))}})),a.escape(e.children))}const Qr=["general","vendor-error","sql-execution","connection","ssh","schema","users","tablespaces","locking","monitoring","source-control","file-system","settings","rss","plugins","workspace","dev"];function vo(e){return Oo.isOneOf(Qr,e)}const yu={dispose:()=>{}};function wo(e){return e.id===""}function hu(e,t){if(e.durationMs!==void 0)return e.durationMs;switch(e.severity){case"info":return t.infoDurationMs;case"success":return t.successDurationMs;case"warning":return t.warningDurationMs;case"error":return t.errorDurationMs}}function gu(e,t){if(e.sticky||e.priority==="urgent"||e.priority==="acknowledgment-required"||e.progress&&!e.progress.done||e.severity==="error"&&t.errorsAlwaysSticky||e.severity==="warning"&&t.warningsAlwaysSticky)return!0;const n=e.durationMs;return n!==void 0&&(!Number.isFinite(n)||n<=0)}function kt(e){return e.progress!==void 0&&e.progress.done!==!0&&e.isolated!==!0}function Jr(e){return e.priority!=="acknowledgment-required"&&e.hidden!==!0}function Lo(e){return e.flatMap(t=>t.outOfSightSince!==void 0&&kt(t)?[{item:t,since:t.outOfSightSince}]:[]).reverse().sort((t,n)=>n.since-t.since).map(({item:t})=>t)}function Rc(e,t){if(t!==void 0)return{...e,outOfSightSince:t};const{outOfSightSince:n,...u}=e;return u}function ei(e){const{getSettings:t,warn:n}=e,u=e.isSilenced??(()=>!1),r=e.isTurnedDown??(()=>!1),i=e.centerReachable??(()=>!0),s=e.now??(()=>Date.now()),o=e.setTimeout??((S,U)=>window.setTimeout(S,U)),c=e.clearTimeout??(S=>window.clearTimeout(S)),l=e.recordAutoFade,d=new Map,h=new Set,E=new Map,_=new Map,g=new Map;function N(){return[...d.values()].sort((S,U)=>S.createdAt-U.createdAt)}function R(){const S=N().filter(Jr),U=Math.max(1,t().maxVisibleNotifications);return new Set(S.slice(0,Math.max(0,S.length-U)).map(({id:Q})=>Q))}function y(S){return t().pauseTimerWhileHidden&&R().has(S)}function D(){const S=R();for(const Q of g.keys())d.has(Q)||g.delete(Q);let U=!1;for(const[Q,se]of d){se.hidden!==!0&&!S.has(Q)?g.delete(Q):g.has(Q)||g.set(Q,s());const _e=g.get(Q);se.outOfSightSince!==_e&&(d.set(Q,Rc(se,_e)),U=!0)}return U}function L(){for(const S of d.keys()){if(E.has(S)){y(S)&&ie(S);continue}ue(S)}}function v(){D();const S=N();for(const U of Array.from(h))try{U(S)}catch(Q){n("a notification engine listener threw:",Q)}L(),G()}let w=0;function M(S){var U;return w>0?!0:S.priority==="acknowledgment-required"?((U=N().find(Q=>Q.priority==="acknowledgment-required"))==null?void 0:U.id)===S.id:S.outOfSightSince===void 0}function G(){for(const[S,U]of _){const Q=d.get(S);if(Q===void 0)continue;const se=M(Q);U.visible!==se&&(U.visible=se,U.visibility.fire(se))}}function Z(S){return!!(gu(S,t())||S.hovered||S.focused)}function re(S){return hu(S,t())}function ie(S){const U=E.get(S);U!==void 0&&(c(U),E.delete(S))}function le(S){const U=_.get(S);if(U)return U;const Q={state:"open",changed:new st.Emitter,visible:!1,visibility:new st.Emitter};return _.set(S,Q),Q}function $(S,U){const Q=_.get(S);return _.delete(S),Q&&(Q.state=U),Q}function te(S){S&&(S.visible&&(S.visible=!1,S.visibility.fire(!1)),S.changed.fire(S.state),S.changed.dispose(),S.visibility.dispose())}function X(S,U){if(ie(S),!d.delete(S))return;const Q=$(S,U);v(),te(Q)}function ne(S){return{...S,hidden:!0,hovered:!1,focused:!1}}function k(S){return{...S,hidden:!1,createdAt:s()}}function V(S,U){const Q=d.get(S);if(!Q)return;const se={...Q,...U},_e=kt(Q)&&!kt(se);if(_e&&u(se)){X(S,"suppressed");return}d.set(S,_e&&se.hidden?k(se):se),v(),ue(S)}function ue(S){ie(S);const U=d.get(S);if(!U||Z(U)||y(S))return;const Q=re(U);if(!Number.isFinite(Q)||Q<=0)return;const se=o(()=>{E.delete(S);const _e=d.get(S);if(!_e||Z(_e))return;l(_e.source??"general"),d.delete(S);const ve=$(S,"closed");v(),te(ve)},Q);E.set(S,se)}let Ae=0;function pe(){return Ae+=1,`n-${s().toString(36)}-${Ae.toString(36)}`}const xe=800,Te=3,Ge=[];function rt(){const S=s();for(;Ge.length>0&&(Ge[0]??0)<S-xe;)Ge.shift();return Ge.length>=Te}function It(){Ge.push(s())}function be(S){return!S||S.length===0?"":S.filter(U=>U.primary).map(U=>`${U.id??""}::${U.label}`).sort().join("|")}function B(S){const U=S.source??"",Q=be(S.actions);for(const[se,_e]of d)if((_e.source??"")===U&&_e.title===S.title&&be(_e.actions)===Q)return se;return null}function Ue(S){const U=S.id,Q=U??B(S),se=Q===null;if(se&&!U&&rt())return{id:"",update:()=>{},setProgress:()=>{},close:()=>{},state:()=>"suppressed",onDidChangeState:()=>yu,visible:()=>!1,onDidChangeVisibility:()=>yu};const _e=Q??pe(),ve=d.get(_e),Je={...S,id:_e,createdAt:(ve==null?void 0:ve.createdAt)??s(),expanded:(ve==null?void 0:ve.expanded)??!1,hovered:(ve==null?void 0:ve.hovered)??!1,focused:(ve==null?void 0:ve.focused)??!1},Ye=kt(Je)&&u(Je)?ne(Je):ve!=null&&ve.hidden?k(Je):Je;d.set(_e,Ye);const et=le(_e);return se&&It(),v(),ue(_e),{id:_e,update(je){V(_e,je)},setProgress(je){V(_e,{progress:je})},close(){X(_e,"closed")},state:()=>et.state,onDidChangeState:(je,mt)=>et.state==="open"?et.changed.event(je,mt):yu,visible:()=>et.visible,onDidChangeVisibility:(je,mt)=>et.state==="open"?et.visibility.event(je,mt):yu}}function Be(S){return h.add(S),S(N()),()=>{h.delete(S)}}function qe(S,U){const Q=d.get(S);!Q||Q.hovered===U||(d.set(S,{...Q,hovered:U}),v(),U?ie(S):ue(S))}function We(S,U){const Q=d.get(S);!Q||Q.focused===U||(d.set(S,{...Q,focused:U}),v(),U?ie(S):ue(S))}function Xe(S){const U=d.get(S);U&&(d.set(S,{...U,expanded:!U.expanded}),v(),ue(S))}function Ot(S){X(S,"closed")}function pn(S){const U=d.get(S);if(U){if(!kt(U)||r(U)){X(S,"dismissed");return}U.hidden||!i()||(d.set(S,ne(U)),v())}}function jt(S){const U=[...d.values()].filter(se=>se.hidden!==!0&&S(se));if(U.length===0)return;for(const se of U.filter(kt))d.set(se.id,ne(se));const Q=U.filter(se=>!kt(se)).map(({id:se})=>(ie(se),d.delete(se),$(se,"suppressed")));v();for(const se of Q)te(se)}function Ie(S){var U;((U=d.get(S))==null?void 0:U.priority)!=="acknowledgment-required"&&X(S,"suppressed")}function $t(){D()&&v()}function Oe(){w+=1,G();let S=!0;return{dispose:()=>{S&&(S=!1,w-=1,G())}}}function zt(){for(const U of E.keys())ie(U);const S=[..._.keys()].map(U=>$(U,"closed"));d.clear(),g.clear(),h.clear();for(const U of S)te(U)}return{notify:Ue,subscribe:Be,setHover:qe,setFocus:We,toggleExpanded:Xe,close:Ot,dismiss:pn,suppress:jt,reject:Ie,refresh:$t,registerShownCenter:Oe,dispose:zt}}function $u(e,t){return t.vendorError===void 0?null:st.resolveVendorError(e,t.vendorError)}function tu(e){if(e)return[{label:e.label,onClick:e.onClick,primary:!0}]}const Ic=200;class Mo{constructor(t){me(this,"entries",[]);me(this,"listeners",new Set);me(this,"unreadSeq",0);me(this,"seenSeq",0);me(this,"unreadListeners",new Set);me(this,"lastSyncedBadge",-1);this.deps=t}add(t,n,u="general",r="default",i,s){if(!t.trim())return;const o={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:Nt.scrubSecrets(t),tone:n,createdAt:Date.now(),source:u,priority:r,...i&&i.length>0?{actions:i}:{},...s?{vendorError:s}:{}};this.write([o,...this.entries]),this.unreadSeq+=1,this.notifyUnread()}subscribe(t){return this.listeners.add(t),t([...this.entries]),()=>{this.listeners.delete(t)}}subscribeUnread(t){return this.unreadListeners.add(t),t(this.unreadCount()),()=>{this.unreadListeners.delete(t)}}find(t){return this.entries.find(n=>n.id===t)}markSeen(){this.seenSeq!==this.unreadSeq&&(this.seenSeq=this.unreadSeq,this.notifyUnread())}clear(){this.write([])}dismiss(t){this.write(this.entries.filter(n=>n.id!==t))}dismissMany(t){if(t.length===0)return;const n=new Set(t);this.write(this.entries.filter(u=>!n.has(u.id)))}dismissBySource(t){this.write(this.entries.filter(n=>n.source!==t))}togglePin(t){this.write(this.entries.map(n=>{if(n.id!==t)return n;const{pinnedAt:u,...r}=n;return n.pinned?{...r,pinned:!1}:{...r,pinned:!0,pinnedAt:Date.now()}}))}refreshBadge(){this.lastSyncedBadge=-1,this.syncBadge(this.unreadCount())}unreadCount(){return Math.max(0,this.unreadSeq-this.seenSeq)}write(t){const n=[...t].sort((o,c)=>c.createdAt-o.createdAt),u=n.filter(o=>o.pinned===!0),i=n.filter(o=>o.pinned!==!0).slice(0,Math.max(0,Ic-u.length)),s=[...u].sort((o,c)=>(c.pinnedAt??c.createdAt)-(o.pinnedAt??o.createdAt));this.entries=[...s,...i];for(const o of Array.from(this.listeners))try{o(this.entries)}catch(c){this.deps.warn("a timeline listener threw:",c)}}notifyUnread(){const t=this.unreadCount();for(const n of Array.from(this.unreadListeners))try{n(t)}catch(u){this.deps.warn("an unread count listener threw:",u)}this.syncBadge(t)}syncBadge(t){const n=K.notificationSettings.get(),u=n.badgeCountEnabled?Math.min(t,n.badgeCountMax):0;u!==this.lastSyncedBadge&&(this.lastSyncedBadge=u,this.deps.setBadgeCount(u))}}class Oc{constructor(){me(this,"stats",new Map)}recordFire(t,n,u){const r=this.bucket(t);r.total+=1,n&&(r.shown+=1),u&&(r.muted+=1)}recordClick(t){this.bucket(t).clicked+=1}recordDismiss(t){this.bucket(t).dismissed+=1}recordAutoFade(t){this.bucket(t).autoFaded+=1}snapshot(){return[...this.stats.values()].map(t=>({...t})).sort((t,n)=>n.total-t.total)}reset(){this.stats.clear()}bucket(t){let n=this.stats.get(t);return n||(n={source:t,total:0,shown:0,clicked:0,dismissed:0,autoFaded:0,muted:0},this.stats.set(t,n)),n}}class yc{constructor(t){me(this,"dataUrls",new Map);me(this,"inFlight",new Map);this.readAudioAsDataUrl=t}async load(t){const n=this.dataUrls.get(t);if(n)return n;let u=this.inFlight.get(t);return u||(u=this.readAudioAsDataUrl(t).then(r=>(this.inFlight.delete(t),r&&this.dataUrls.set(t,r),r)),this.inFlight.set(t,u)),await u??void 0}invalidate(){this.dataUrls.clear(),this.inFlight.clear()}}const Fo={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},xc={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Dc={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function Po(e,t,n){if(!t[xc[e]]||t.quietHoursMutesSounds&&n)return null;const u=t[Dc[e]].trim();if(u)return{kind:"custom",path:u};const r=Fo[e];return{kind:"builtin",freq:r.freq,ms:r.ms}}class kc{constructor(t,n){me(this,"context",null);me(this,"contextFailed",!1);this.sounds=t,this.log=n}playQueryCompletedCue(){this.playTone(800,200)}playSeverityToneIfEnabled(t,n){const u=Po(t,K.notificationSettings.get(),n);if(u){if(u.kind==="custom"){this.playCustomSound(u.path);return}this.playTone(u.freq,u.ms)}}dispose(){const t=this.context;this.context=null,t&&t.close().catch(n=>{this.log.warn("AudioContext could not be closed:",n)})}audioContext(){if(this.contextFailed)return null;if(this.context)return this.context;try{const t=window.AudioContext??window.webkitAudioContext;return t?(this.context=new t,this.context):(this.contextFailed=!0,null)}catch(t){return this.contextFailed=!0,this.log.warn("AudioContext could not be created; notification sounds are off:",t),null}}async playCustomSound(t){const n=await this.sounds.load(t);if(n)try{const u=new Audio(n);u.volume=.6,await u.play()}catch(u){this.log.warn("Custom notification sound could not be played:",u)}}playTone(t,n){const u=this.audioContext();if(u)try{const r=u.currentTime,i=u.createOscillator(),s=u.createGain();i.connect(s),s.connect(u.destination),i.frequency.value=t,s.gain.setValueAtTime(.3,r),s.gain.exponentialRampToValueAtTime(.01,r+n/1e3),i.start(r),i.stop(r+n/1e3)}catch(r){this.log.warn("Notification tone could not be played:",r)}}}const Fr="notification.emailDigestSmtpPass",Pr="notification.webhook.url.";function iu(e){return`${Pr}${e}`}function Uo(e){return e.get(Fr)}async function vc(e,t){t?await e.set(Fr,t):await e.delete(Fr)}function Bo(e,t){return e.get(iu(t))}async function wc(e,t,n){n?await e.set(iu(t),n):await e.delete(iu(t))}function Lc(e,t){return e.delete(iu(t))}async function Mc(e,t){const n=new Set(t),u=(await e.keys()).filter(r=>r.startsWith(Pr)).map(r=>r.slice(Pr.length)).filter(r=>!n.has(r));await Promise.all(u.map(r=>e.delete(iu(r))))}const Fc={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},Pc={info:1668818,success:3046706,warning:16088064,error:12986408};function Uc(e,t){const{severities:n,priorities:u,sources:r}=e.filters;return!(n.length>0&&!n.includes(t.severity)||u.length>0&&!u.includes(t.priority)||r.length>0&&!r.includes(t.source))}function Bc(e,t){switch(e.type){case"slack":return{text:t.title,attachments:[{color:Fc[t.severity],fields:[{title:"Source",value:t.source,short:!0},{title:"Severity",value:t.severity,short:!0},{title:"Priority",value:t.priority,short:!0}],text:t.body??""}]};case"discord":return{embeds:[{title:t.title,description:t.body??"",color:Pc[t.severity],fields:[{name:"Source",value:t.source,inline:!0},{name:"Severity",value:t.severity,inline:!0},{name:"Priority",value:t.priority,inline:!0}]}]};case"generic":default:return{title:t.title,body:t.body??"",severity:t.severity,priority:t.priority,source:t.source,timestamp:Date.now()}}}class Hc{constructor(t,n){this.secrets=t,this.log=n}dispatch(t){const n=K.notificationSettings.get().webhooks.filter(u=>u.enabled&&Uc(u,t));for(const u of n)this.deliver(u,t)}async deliver(t,n){try{const u=await Bo(this.secrets,t.id)??"";if(!u)return;await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Bc(t,n))})}catch(u){this.log.warn("Webhook delivery failed:",u)}}}const Si=500,Ci={info:0,success:1,warning:2,error:3},xu=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function Gc(e,t){const n=t.map(u=>`<tr>
|
|
2
|
-
<td style="padding:4px 8px">${new Date(u.at).toISOString().slice(11,19)}</td>
|
|
3
|
-
<td style="padding:4px 8px"><strong>${u.severity}</strong></td>
|
|
4
|
-
<td style="padding:4px 8px">${xu(u.source)}</td>
|
|
5
|
-
<td style="padding:4px 8px">${xu(u.title)}${u.body?`<br><small>${xu(u.body)}</small>`:""}</td>
|
|
6
|
-
</tr>`).join(`
|
|
7
|
-
`);return`<!doctype html>
|
|
8
|
-
<html><body>
|
|
9
|
-
<h2>${e?`${xu(e)} notification digest`:"Notification digest"}</h2>
|
|
10
|
-
<p>${t.length} notification(s) since the last digest.</p>
|
|
11
|
-
<table style="border-collapse:collapse">
|
|
12
|
-
<thead><tr style="background:#eee">
|
|
13
|
-
<th style="padding:4px 8px;text-align:left">Time (UTC)</th>
|
|
14
|
-
<th style="padding:4px 8px;text-align:left">Severity</th>
|
|
15
|
-
<th style="padding:4px 8px;text-align:left">Source</th>
|
|
16
|
-
<th style="padding:4px 8px;text-align:left">Message</th>
|
|
17
|
-
</tr></thead>
|
|
18
|
-
<tbody>
|
|
19
|
-
${n}
|
|
20
|
-
</tbody></table>
|
|
21
|
-
</body></html>`}function $c(e){const t=e.map(n=>`[${new Date(n.at).toISOString()}] ${n.severity.toUpperCase()} (${n.source}): ${n.title}${n.body?` — ${n.body}`:""}`);return`${e.length} notification(s):
|
|
22
|
-
|
|
23
|
-
${t.join(`
|
|
24
|
-
`)}`}function zc(e){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return!1;const n=e.getHours(),u=e.getMinutes(),r=e.getDay();switch(t.emailDigestSchedule){case"hourly":return u===0;case"daily-9am":return n===9&&u===0;case"daily-5pm":return n===17&&u===0;case"weekly-mon-9am":return r===1&&n===9&&u===0}}class Vc{constructor(t){me(this,"queue",[]);me(this,"lastSentMinute",0);me(this,"scheduler");this.deps=t,this.scheduler=setInterval(()=>this.tick(),6e4)}enqueue(t){const n=K.notificationSettings.get();n.emailDigestEnabled&&(Ci[t.severity]<Ci[n.emailDigestMinSeverity]||(this.queue.push(t),this.queue.length>Si&&this.queue.splice(0,this.queue.length-Si)))}async flush(){const t=K.notificationSettings.get();if(!t.emailDigestEnabled)return{kind:"not-sent",reason:{kind:"disabled"}};if(this.queue.length===0)return{kind:"sent",count:0};if(!t.emailDigestSmtpHost||!t.emailDigestFrom||!t.emailDigestTo)return{kind:"not-sent",reason:{kind:"smtp-incomplete"}};const n=this.queue.splice(0,this.queue.length),u=this.deps.appName;try{const r=await Uo(this.deps.secrets)??"";return await this.deps.send({smtp:{host:t.emailDigestSmtpHost,port:t.emailDigestSmtpPort,secure:t.emailDigestSmtpSecure,user:t.emailDigestSmtpUser,pass:r},from:t.emailDigestFrom,to:t.emailDigestTo,subject:`${u?`[${u}] `:""}${n.length} notification(s)`,html:Gc(u,n),text:$c(n)}),{kind:"sent",count:n.length}}catch(r){return this.queue.unshift(...n),{kind:"not-sent",reason:{kind:"send-failed",error:r}}}}notSentText(t){switch(t.kind){case"disabled":return C.t("Email digest is turned off.");case"smtp-incomplete":return C.t("SMTP host, sender and recipient are required.");case"send-failed":return this.deps.errorText(t.error,C.t("The digest could not be sent."))}}dispose(){clearInterval(this.scheduler)}tick(){const t=new Date;if(!zc(t))return;const n=Math.floor(t.getTime()/6e4);n!==this.lastSentMinute&&(this.lastSentMinute=n,this.flush().then(u=>{u.kind==="not-sent"&&u.reason.kind==="send-failed"&&this.deps.log.warn("scheduled email digest failed",u.reason.error)}))}}const Fu=new Map;function Ho(){Fu.clear()}function qc(e){if(Fu.has(e))return Fu.get(e)??null;let t;try{t=new RegExp(e,"i")}catch{t=null}return Fu.set(e,t),t}function Wc(e,t){const n=e.conditions;if(n.source&&n.source!==t.source||n.severities&&n.severities.length>0&&!n.severities.includes(t.severity))return!1;if(n.titleRegex){const u=qc(n.titleRegex);if(!u||!u.test(t.title))return!1}return!0}function ti(e,t){if(t.length===0)return e;let n={...e};for(const u of t)if(u.enabled&&Wc(u,n)){if(u.actions.suppress===!0)return null;if(u.actions.setSeverity&&(n={...n,severity:u.actions.setSeverity}),u.actions.setPriority&&(n={...n,priority:u.actions.setPriority}),u.actions.addPrefix){const r=u.actions.addPrefix.trim();r&&(n={...n,title:`${r} ${n.title}`})}}return n}function Ur(e){const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),u=Number(t[2]);return n>23||u>59?null:n*60+u}function ou(e,t){if(!e.quietHoursEnabled||!e.quietHoursWeekdays.includes(t.getDay()))return!1;const n=Ur(e.quietHoursStart),u=Ur(e.quietHoursEnd);if(n===null||u===null||n===u)return!1;const r=t.getHours()*60+t.getMinutes();return n<u?r>=n&&r<u:r>=n||r<u}function Go(e,t){if(!e.quietHoursEnabled)return null;const n=Ur(e.quietHoursStart);if(n===null)return null;for(let u=0;u<=7;u++)for(const r of n===0?[0]:[0,n]){const i=new Date(t.getFullYear(),t.getMonth(),t.getDate()+u,0,r);if(i.getTime()<=t.getTime())continue;const s=new Date(i.getTime()-6e4);if(ou(e,i)&&!ou(e,s))return i}return null}function ni(e,t,n){return n==="errors-only"&&(e==="default"||e==="optional")&&t!=="error"?"silent":e}function ju(e,t){return`__remind:${e}:${t}`}function ui(e){return e.remindKey??e.neverShowAgainKey??ju(e.source??"general",e.title)}function su(e,t,n){const{priority:u}=e,r=e.recordTimeline!==!1;if(!t.notificationsEnabled)return{showToast:!1,recordTimeline:!1};if(n.dismissed)return{showToast:!1,recordTimeline:!1};if(n.remindSuppressed)return{showToast:!1,recordTimeline:!1};if(u==="silent")return{showToast:!1,recordTimeline:r};const i=u==="urgent"||u==="acknowledgment-required";return t.doNotDisturb&&(!i||u==="urgent"&&t.dndBlocksUrgent)?{showToast:!1,recordTimeline:r}:n.inQuietHours&&(!i||u==="urgent"&&t.quietHoursBlocksUrgent)?{showToast:!1,recordTimeline:r}:i?t.urgentRoutesToCenterOnly&&u==="urgent"?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}:n.sourceMuted?{showToast:!1,recordTimeline:r}:{showToast:!0,recordTimeline:r}}function Yc(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Br={info:0,success:1,warning:2,error:3};function $o(e,t){return t.osNativeEnabled?e.priority==="urgent"&&t.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Br[e.severity]<Br[t.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:t.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Kc={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function Xc(e,t){if(t)return t;if(e!==void 0)return Kc[e]}function dn(e){return K.notificationSettings.get().mutedSources.includes(e)}function ri(e){return K.notificationSettings.get().dontShowAgainKeys.includes(e)}function nu(e){const t=Date.now();return K.notificationSettings.get().remindersUntil.some(u=>u.key===e&&u.remindAt>t)}async function zo(e,t){if(!e||t<=0)return;const n=K.notificationSettings.get(),u=Date.now()+t,i=[...n.remindersUntil.filter(s=>s.key!==e),{key:e,remindAt:u}];K.notificationSettings.applyFromBroadcast({...n,remindersUntil:i}),await K.notificationSettings.update({...n,remindersUntil:i})}async function Vo(e,t){const n=K.notificationSettings.get(),u=t?Array.from(new Set([...n.mutedSources,e])):n.mutedSources.filter(r=>r!==e);K.notificationSettings.applyFromBroadcast({...n,mutedSources:u}),await K.notificationSettings.update({...n,mutedSources:u})}async function qo(e){const t=K.notificationSettings.get();if(t.dontShowAgainKeys.includes(e))return;const n=[...t.dontShowAgainKeys,e];K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function jc(e){const t=K.notificationSettings.get();if(!t.dontShowAgainKeys.includes(e))return;const n=t.dontShowAgainKeys.filter(u=>u!==e);K.notificationSettings.applyFromBroadcast({...t,dontShowAgainKeys:n}),await K.notificationSettings.update({...t,dontShowAgainKeys:n})}async function Zc(){const e=K.notificationSettings.get();e.dontShowAgainKeys.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,dontShowAgainKeys:[]}),await K.notificationSettings.update({...e,dontShowAgainKeys:[]}))}async function Qc(){const e=K.notificationSettings.get();e.mutedSources.length!==0&&(K.notificationSettings.applyFromBroadcast({...e,mutedSources:[]}),await K.notificationSettings.update({...e,mutedSources:[]}))}function ii(){return ou(K.notificationSettings.get(),new Date)}function Wo(e,t,n){const{dontShowAgainKey:u,remindKey:r}=n;return{dismissed:u!==void 0&&ri(u),remindSuppressed:r!==void 0?nu(r):u!==void 0&&nu(u)||nu(ju(e,t))}}function Jn(e){return su({priority:ni(e.priority,e.severity,e.filter),recordTimeline:e.recordTimeline},K.notificationSettings.get(),{...Wo(e.source,e.title,e),sourceMuted:dn(e.source),inQuietHours:ii()})}function Jc(e,t,n){const u=Wo(e,t,n);return u.dismissed||u.remindSuppressed}function ea(e){const t=e.neverShowAgainKey;return t!==void 0&&ri(t)||nu(ui(e))}function ta(e,t,n,u){return!su({priority:ni(n,t,u),recordTimeline:void 0},K.notificationSettings.get(),{dismissed:!1,remindSuppressed:!1,sourceMuted:dn(e),inQuietHours:ii()}).showToast}function na(e,t,n,u,r){return{label:t.label,primary:r,keepOpen:t.expireOnAction===!1,onClick:()=>{e.analytics.recordClick(u);try{t.onClick()}finally{const i=n();t.expireOnAction!==!1&&i&&e.engine.close(i)}}}}function Yo(e,t,n,u,r){return[...t?[t]:[],...n??[]].map((i,s)=>na(e,i,u,r,s===0))}function Ko(e){var r,i;const t=((r=e.subtitle)==null?void 0:r.trim())||((i=e.description)==null?void 0:i.trim()),n=e.markdown??K.notificationSettings.get().markdownEnabled,u=Xc(e.source,e.defaultRoute);return{...t?{body:t}:{},...n?{markdown:!0}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.dontShowAgainKey?{neverShowAgainKey:e.dontShowAgainKey}:{},...e.remindKey?{remindKey:e.remindKey}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...u?{defaultRoute:u}:{}}}function Pu(e,t){const n=t.options.source??"general";if(e.analytics.recordFire(n,t.decision.showToast,dn(n)),!t.decision.showToast)return null;e.audio.playSeverityToneIfEnabled(t.severity,ii());const{options:u}=t,r=Ko(u),i=r.body,s=u.id!==void 0?String(u.id):void 0;let o=null;const c=Yo(e,t.primaryAction,u.actions,()=>o==null?void 0:o.id,n),l=e.engine.notify({severity:t.severity,title:t.title,...r,source:u.source??"general",priority:u.priority??"default",...s?{id:s}:{},...t.vendorError?{vendorError:t.vendorError}:{},...c.length>0?{actions:c}:{}});if(o=l,wo(l)||u.inAppOnly)return l;const d=Nt.scrubSecrets(t.title),h=i?Nt.scrubSecrets(i):void 0,E={title:d,...h?{body:h}:{},severity:t.severity,priority:u.priority??"default",source:u.source??"general"};return ua(e,E),e.webhooks.dispatch(E),e.digest.enqueue({...E,at:Date.now()}),l}function ua(e,t){const n=$o(t,K.notificationSettings.get());n.fire&&e.osNotify({title:t.title,...t.body?{body:t.body}:{},severity:t.severity,urgent:t.priority==="urgent",onlyWhenUnfocused:n.onlyWhenUnfocused})}function wn(e){return typeof e=="string"?e:e instanceof Error?e.message:e==null?"":String(e)}function oi(e,t,n,u){var d,h,E;const r=wn(e),i=(d=t.title)==null?void 0:d.trim(),s=((h=t.subtitle)==null?void 0:h.trim())||((E=t.description)==null?void 0:E.trim());let o=i??r,c=s;if(n&&!i){const _=n.helpers.formatCode(n.code),g=new RegExp(`^\\s*${Yc(_)}\\s*[:-]\\s*(.+)$`,"i"),N=r.match(g);if(N!=null&&N[1]){o=_;const R=N[1].trim();c=c?`${R}
|
|
25
|
-
|
|
26
|
-
${c}`:R}}let l=t.action;if(!l&&n){const _=n.helpers.docsUrl(n.code);_&&(l={label:`${n.helpers.formatCode(n.code)} ${n.helpers.docsLinkLabel}`,onClick:()=>u(_)})}return{text:r,displayText:o,bodyText:c,primaryAction:l}}const Xo={update:()=>{},success:()=>{},fail:()=>{},dismiss:()=>{},updateActions:()=>{},state:()=>"suppressed",onDidChangeState:()=>({dispose:()=>{}}),visible:()=>!1,onDidChangeVisibility:()=>({dispose:()=>{}})};function eu(e){return{dontShowAgainKey:e.dontShowAgainKey,remindKey:e.remindKey}}function Hr(e){return ti(e,K.notificationSettings.get().notificationRules)}function ra(e){const{sinks:t,timeline:n}=e;return{success(u,r={}){const i=wn(u),s=K.notificationSettings.get(),o=Hr({severity:"success",title:i,priority:r.priority??"default",source:r.source??"general"});if(!o)return"";const c=Jn({source:o.source,title:o.title,severity:o.severity,priority:o.priority,recordTimeline:r.recordTimeline,filter:e.filter(),...eu(r)});if(c.recordTimeline&&n.add(o.title,o.severity,o.source,o.priority,tu(r.action)),!s.showSuccessToasts&&o.priority!=="urgent")return"";const l=Pu(t,{severity:o.severity,title:o.title,options:{...r,source:o.source,priority:o.priority},decision:c,...r.action?{primaryAction:r.action}:{}});return(l==null?void 0:l.id)??""},error(u,r={}){const i=wn(u),s=r.vendorError===void 0?null:st.resolveVendorError(e.vendorErrors,r.vendorError),o=oi(i,r,s,e.openExternal),c=s!==null,l=o.bodyText,d=l?`${o.displayText}
|
|
27
|
-
${l}`:i,h=c&&K.notificationSettings.get().vendorCodesAreUrgent,E=Hr({severity:"error",title:o.displayText,priority:r.priority??(h?"urgent":"default"),source:r.source??(c?"vendor-error":"general")});if(!E)return"";const{source:_,priority:g}=E,N=Jn({source:_,title:E.title,severity:E.severity,priority:g,recordTimeline:r.recordTimeline,filter:e.filter(),...eu(r)});N.recordTimeline&&n.add(d,E.severity,_,g,tu(r.action),r.vendorError);const R=Pu(t,{severity:E.severity,title:E.title,options:{...r,source:_,priority:g,...l?{description:l}:{}},decision:N,...o.primaryAction?{primaryAction:o.primaryAction}:{},...r.vendorError?{vendorError:r.vendorError}:{}});return(R==null?void 0:R.id)??""},info(u,r={}){return Ni(e,"info",u,r)},warning(u,r={}){return Ni(e,"warning",u,r)},queryCompleted(u,r={}){const i=wn(u),s=K.notificationSettings.get(),o=r.source??"sql-execution",c=r.priority??"default",l=Jn({source:o,title:i,severity:"success",priority:c,recordTimeline:r.recordTimeline,filter:e.filter(),...eu(r)});if(l.recordTimeline&&n.add(i,"success",o,c,tu(r.action)),s.notificationsEnabled&&s.soundOnQueryCompletion&&!(s.quietHoursMutesSounds&&ou(s,new Date))&&t.audio.playQueryCompletedCue(),!s.showSuccessToasts&&c!=="urgent")return"";const d=Pu(t,{severity:"success",title:i,options:{...r,source:o,priority:c},decision:l,...r.action?{primaryAction:r.action}:{}});return(d==null?void 0:d.id)??""},progress(u,r={}){const i=wn(u),s=r.onCancel,o=r.source??"general",c=r.priority??"default",l=r.id!==void 0?String(r.id):void 0,d=eu(r),h=Jn({source:o,title:i,severity:"info",priority:c,recordTimeline:r.recordTimeline,filter:e.filter(),...d});if(h.recordTimeline&&n.add(i,"info",o,c),!h.showToast&&(Jc(o,i,d)||c==="acknowledgment-required"))return l!==void 0&&t.engine.reject(l),Xo;const E=l??`progress-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,_=R=>Yo(t,R.action,R.actions,()=>E,o),g=_(r),N=t.engine.notify({id:E,severity:"info",title:i,...Ko({...r,source:o}),source:o,priority:c,sticky:!0,progress:s?{onCancel:s}:{},remindKey:d.remindKey??d.dontShowAgainKey??ju(o,i),...g.length>0?{actions:g}:{}});return{update:(R,y)=>{N.update({title:R}),y!==void 0&&N.setProgress({value:Math.max(0,Math.min(1,y)),...s?{onCancel:s}:{}})},success:R=>{const y=R??i;h.recordTimeline&&n.add(y,"success",o,c),N.update({title:y,severity:"success",sticky:!1,progress:{done:!0}})},fail:R=>{const y=R??i;h.recordTimeline&&n.add(y,"error",o,c),N.update({title:y,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0})},dismiss:()=>N.close(),updateActions:R=>{const y=_(R);N.update({actions:y.length>0?y:void 0})},state:()=>N.state(),onDidChangeState:N.onDidChangeState,visible:()=>N.visible(),onDidChangeVisibility:N.onDidChangeVisibility}}}}function Ni(e,t,n,u){const r=Hr({severity:t,title:wn(n),priority:u.priority??"default",source:u.source??"general"});if(!r)return"";const i=Jn({source:r.source,title:r.title,severity:r.severity,priority:r.priority,recordTimeline:u.recordTimeline,filter:e.filter(),...eu(u)});i.recordTimeline&&e.timeline.add(r.title,r.severity,r.source,r.priority,tu(u.action));const s=Pu(e.sinks,{severity:r.severity,title:r.title,options:{...u,source:r.source,priority:r.priority},decision:i,...u.action?{primaryAction:u.action}:{}});return(s==null?void 0:s.id)??""}function jo(e,t,n){if(!("cause"in e))return e;const{cause:u,...r}=e,i=t(u).map(n);return i.length===0?r:{...r,actions:[...r.actions??[],...i]}}function ia(e){return t=>({label:t.label,onClick:()=>{Promise.resolve().then(()=>t.run()).catch(e)}})}function Ri(e,t){return{...e.severity==="error"&&e.source==="general"?{}:{source:e.source},...e.severity==="error"&&e.priority==="default"?{}:{priority:e.priority},...t.subtitle?{subtitle:t.subtitle}:{},...t.description?{description:t.description}:{},...t.action?{action:t.action}:{},...t.actions?{actions:t.actions}:{},...t.duration!==void 0?{duration:t.duration}:{},...t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t.remindKey?{remindKey:t.remindKey}:{},...t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t.icon?{icon:t.icon}:{},...t.markdown!==void 0?{markdown:t.markdown}:{},...t.recordTimeline!==void 0?{recordTimeline:t.recordTimeline}:{},...t.id!==void 0?{id:t.id}:{},...t.announce!==void 0?{announce:t.announce}:{},...e.delivery==="in-app-only"?{inAppOnly:!0}:{}}}function oa(e){const t=ia(e.onActionFailed),n=u=>jo(u,e.errorActions,t);return{notify(u,r){const i=n(r);if(u.delivery==="os-only"){const o=i.title??i.message,c=i.description??i.subtitle??(i.title?i.message:void 0);return e.osNotify({title:o,...c?{body:c}:{},severity:u.severity,urgent:u.priority==="urgent",onlyWhenUnfocused:!1}),""}const s=Ri(u,i);if(u.kind==="query-completed")return e.toast.queryCompleted(i.message,s);switch(u.severity){case"success":return e.toast.success(i.message,s);case"error":{const o={...s,...i.title?{title:i.title}:{},...i.vendorError?{vendorError:i.vendorError}:{}};return e.toast.error(i.message,o)}case"warning":return e.toast.warning(i.message,s);case"info":return e.toast.info(i.message,s)}},progress(u,r){const i=n(r);if(u.delivery==="os-only")throw new Ro.BugIndicatingError("Progress notifications require an in-app catalog definition.");return e.toast.progress(i.message,{...Ri(u,i),...i.onCancel?{onCancel:i.onCancel}:{}})}}}function si(e,t,n,u){return e==="error"&&t==="default"&&n&&u?"urgent":t}function sa(e,t,n){var d;const u=n.vendorError===void 0?null:st.resolveVendorError(e.vendorErrors,n.vendorError),r=t.severity==="error"?oi(n.message,{...n.title?{title:n.title}:{},...n.subtitle?{subtitle:n.subtitle}:{},...n.description?{description:n.description}:{},...n.action?{action:n.action}:{}},u,e.openExternal):null,i=(r==null?void 0:r.displayText)??n.title??n.message,s=(r==null?void 0:r.bodyText)??n.subtitle??n.description,o=(r==null?void 0:r.primaryAction)??n.action,c=t.severity==="error"&&t.source==="general"&&u!==null?"vendor-error":t.source,l=si(t.severity,t.priority,u!==null,K.notificationSettings.get().vendorCodesAreUrgent);return e.engine.notify({severity:t.severity,title:Nt.scrubSecrets(i),...s?{body:Nt.scrubSecrets(s)}:{},source:c,priority:l,isolated:!0,...n.duration!==void 0?{durationMs:n.duration}:{},...n.id!==void 0?{id:`dev-preview:${n.id}`}:{},...n.icon?{icon:n.icon}:{},...n.markdown?{markdown:!0}:{},...t.kind==="progress"?{sticky:!0,progress:{done:!1}}:{},...o||(d=n.actions)!=null&&d.length?{actions:[o,...n.actions??[]].filter(h=>h!==void 0).map((h,E)=>({id:`dev-preview-action-${E}`,label:h.label,primary:E===0,onClick:()=>{h.onClick()}}))}:{}}).id}function Zu(e,t){return{message:e,...t!=null&&t.title?{title:t.title}:{},...t!=null&&t.subtitle?{subtitle:t.subtitle}:{},...t!=null&&t.description?{description:t.description}:{},...t!=null&&t.action?{action:t.action}:{},...(t==null?void 0:t.duration)!==void 0?{duration:t.duration}:{},...t!=null&&t.dontShowAgainKey?{dontShowAgainKey:t.dontShowAgainKey}:{},...t!=null&&t.defaultRoute?{defaultRoute:t.defaultRoute}:{},...t!=null&&t.icon?{icon:t.icon}:{},...(t==null?void 0:t.markdown)!==void 0?{markdown:t.markdown}:{},...(t==null?void 0:t.recordTimeline)!==void 0?{recordTimeline:t.recordTimeline}:{},...(t==null?void 0:t.id)!==void 0?{id:t.id}:{},...t!=null&&t.onCancel?{onCancel:t.onCancel}:{}}}const ca=ft.defineNotification({id:"notifications.timeline.replay.error",source:"general",severity:"error",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Zu(e,t)),aa=ft.defineNotification({id:"notifications.timeline.replay.warning",source:"general",severity:"warning",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Zu(e,t)),la=ft.defineNotification({id:"notifications.timeline.replay.success",source:"general",severity:"success",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Zu(e,t)),fa=ft.defineNotification({id:"notifications.timeline.replay.info",source:"general",severity:"info",priority:"urgent",delivery:"in-app",kind:"message"},({timelineMessage:e,options:t})=>Zu(e,t)),da=ft.defineNotification({id:"notifications.timeline.exported",source:"general",severity:"success",priority:"default",delivery:"in-app",kind:"message"},({entryCount:e})=>({message:C.t("Exported {count} notifications",{count:e})})),pa=ft.defineNotification({id:"notifications.timeline.export.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:C.t("Export failed: {message}",{message:t(e,C.t("Operation failed."))}),cause:e})),ha=ft.defineNotification({id:"notifications.errorAction.failed",source:"general",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:C.t("The action could not be completed: {message}",{message:t(e,C.t("Operation failed."))}),cause:e})),Zo=ft.defineNotification({id:"notifications.settings.update.failed",source:"settings",severity:"error",priority:"default",delivery:"in-app",kind:"message"},({cause:e},{errorText:t})=>({message:t(e,C.t("Operation failed.")),cause:e})),ga=60*6e4;function Ii(e,t){return!e.isolated&&e.priority!=="acknowledgment-required"&&ta(e.source??"general",e.severity,e.priority??"default",t)}class Ea{constructor(t){me(this,"renderHost");me(this,"toast");me(this,"stack");me(this,"timeline");me(this,"onDidRequestNavigation");me(this,"onDidChangeFilter");me(this,"filter","off");me(this,"filterChange",new st.Emitter);me(this,"engine");me(this,"analytics",new Oc);me(this,"sounds");me(this,"audio");me(this,"digest");me(this,"delivery");me(this,"navigation",new st.Emitter);me(this,"log");me(this,"onSettingsChanged");me(this,"stopWatchingCards");me(this,"watchingQuietHours",!1);me(this,"quietHoursTimer");this.deps=t;const n=t.log.withTag("Notifications");this.log=n,this.renderHost={errorText:t.errorPresenter.text},this.engine=ei({getSettings:()=>K.notificationSettings.get(),recordAutoFade:r=>this.analytics.recordAutoFade(r),warn:(r,i)=>n.warn(r,i),isSilenced:r=>Ii(r,this.filter),isTurnedDown:ea,centerReachable:t.centerReachable}),this.stack=this.engine,this.timeline=new Mo({setBadgeCount:r=>this.unawaited("the OS badge could not be set",t.desktop.setBadgeCount(r)),warn:(r,i)=>n.warn(r,i)}),this.sounds=new yc(r=>t.desktop.readAudioAsDataUrl(r).catch(i=>(n.warn("custom sound could not be read",{filePath:r,error:i}),null))),this.audio=new kc(this.sounds,n),this.digest=new Vc({secrets:t.secrets,send:t.sendEmailDigest,appName:t.appName,errorText:t.errorPresenter.text,log:n});const u=r=>this.unawaited("the OS notification was not shown",t.desktop.osNotify(r));this.toast=ra({sinks:{engine:this.engine,analytics:this.analytics,audio:this.audio,webhooks:new Hc(t.secrets,n),digest:this.digest,osNotify:u},timeline:this.timeline,vendorErrors:t.vendorErrors,openExternal:r=>st.openExternalUrl(t.desktop,n,r),filter:()=>this.filter}),this.delivery=oa({toast:this.toast,osNotify:u,errorActions:t.errorPresenter.actions,onActionFailed:r=>this.notify(ha,{cause:r})}),this.onDidRequestNavigation=this.navigation.event,this.onDidChangeFilter=this.filterChange.event,this.onSettingsChanged=()=>{Ho(),this.sounds.invalidate(),this.timeline.refreshBadge(),this.takeBackSilencedCards(),this.engine.refresh(),this.watchingQuietHours&&this.watchQuietHoursStart()},window.addEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards=this.engine.subscribe(r=>{r.length===0?this.stopWatchingQuietHours():this.watchingQuietHours||this.watchQuietHoursStart()})}notify(t,n){return this.delivery.notify(t,t.build(n,this.renderHost))}progress(t,n){if(t.kind!=="progress")throw new Ro.BugIndicatingError("notifications: a message definition cannot be delivered as progress.");return this.delivery.progress(t,t.build(n,this.renderHost))}showPreview(t,n){return sa({engine:this.engine,vendorErrors:this.deps.vendorErrors,openExternal:u=>st.openExternalUrl(this.deps.desktop,this.log,u)},t,n)}dismissEntry(t){const n=this.timeline.find(t);n!==void 0&&(this.analytics.recordDismiss(n.source),this.timeline.dismiss(t))}flushDigest(){return this.digest.flush()}digestNotSentText(t){return this.digest.notSentText(t)}getStatsSnapshot(){return this.analytics.snapshot()}resetStats(){this.analytics.reset()}requestNavigation(t){this.navigation.fire(t)}getFilter(){return this.filter}setFilter(t){t!==this.filter&&(this.filter=t,this.takeBackSilencedCards(),this.filterChange.fire(t))}dispose(){window.removeEventListener(K.notificationSettings.changeEvent,this.onSettingsChanged),this.stopWatchingCards(),this.stopWatchingQuietHours(),this.digest.dispose(),this.audio.dispose(),this.engine.dispose(),this.navigation.dispose(),this.filterChange.dispose()}takeBackSilencedCards(){this.engine.suppress(t=>Ii(t,this.filter))}watchQuietHoursStart(){this.stopWatchingQuietHours(),this.watchingQuietHours=!0;const t=Go(K.notificationSettings.get(),new Date);if(t===null)return;const n=Math.max(0,t.getTime()-Date.now());this.quietHoursTimer=setTimeout(()=>{this.quietHoursTimer=void 0,this.takeBackSilencedCards(),this.watchingQuietHours&&this.watchQuietHoursStart()},Math.min(n,ga))}stopWatchingQuietHours(){clearTimeout(this.quietHoursTimer),this.quietHoursTimer=void 0,this.watchingQuietHours=!1}unawaited(t,n){Promise.resolve(n).catch(u=>this.log.debug(t,u))}}function Qo(e,t){const n=e.trim();if(!n)return null;if(t)try{const u=new RegExp(n,"i");return{test:r=>u.test(r)}}catch{return Oi(n)}return Oi(n)}function Oi(e){const t=e.toLowerCase();return{test:n=>n.toLowerCase().includes(t)}}function Jo(e,t){const{tones:n,sources:u,priorities:r,dateBounds:i,searchMatcher:s}=t;return e.filter(o=>!(n.size>0&&!n.has(o.tone)||u.size>0&&!u.has(o.source)||r.size>0&&!r.has(o.priority)||i&&(o.createdAt<i.start||o.createdAt>i.end)||s&&!s.test(`${o.message} ${o.source}`)))}const ba="acknowledgment-required";function es(e){return e.filter(t=>t.priority!==ba).map(t=>t.id)}const _a={general:{label:"General",description:"Uncategorized notifications. Default for callers that do not pass a source."},"vendor-error":{label:"Database errors",description:"Errors carrying a recognised vendor code (Oracle ORA-NNNNN, PG SQLSTATE, MSSQL Msg N, …). Treated as urgent when the matching setting is enabled."},"sql-execution":{label:"SQL execution",description:"Query completion / cancellation / failure notifications."},connection:{label:"Connection",description:"Connect, disconnect, test, vault credential events."},ssh:{label:"SSH & terminal",description:"SSH dock, tunnels, terminal lifecycle."},schema:{label:"Schema browser",description:"DDL extraction, copy-name, refresh."},users:{label:"Users",description:"User management — create, unlock, alter."},tablespaces:{label:"Tablespaces",description:"Tablespace creation, quota warnings."},locking:{label:"Locking",description:"Blocking sessions and deadlock alerts."},monitoring:{label:"Monitoring",description:"Threshold alerts — CPU, blocked sessions, long-running ops, invalid objects, failed logins."},"source-control":{label:"Source control",description:"Git commit / pull / push outcomes."},"file-system":{label:"File system",description:"Save, copy, paste, image clipboard."},settings:{label:"Settings",description:"Preference saves, layout reset, import/export."},rss:{label:"RSS feeds",description:"Feed refresh, post counts."},plugins:{label:"Plugins",description:"Plugin install, activation, marketplace and sandbox events."},workspace:{label:"Workspace",description:"Workspace tabs, session restore and layout events."},dev:{label:"Developer",description:"Dev test surface and internal diagnostics."}},Qu=Qr.map(e=>({id:e,..._a[e]})),yi=new Map(Qu.map(e=>[e.id,e]));function an(e){if(e){const t=yi.get(e);if(t)return t}return yi.get("general")??Qu[0]}function ma(){return Qu}function ts(e,t){const n=[];let u=0;for(;u<e.length;){const r=e[u];if(!r)break;if(r.pinned===!0){n.push({type:"entry",id:r.id,entry:r}),u+=1;continue}const i=t==="source"?r.source:`${r.source}|${r.tone}`;let s=u+1;for(;s<e.length;){const c=e[s];if(!c||c.pinned===!0||(t==="source"?c.source:`${c.source}|${c.tone}`)!==i)break;s+=1}const o=s-u;o===1?n.push({type:"entry",id:r.id,entry:r}):n.push({type:"group",id:`group:${i}:${r.id}`,groupKey:i,groupCount:o,groupSource:r.source,groupTone:r.tone,groupItems:e.slice(u,s)}),u=s}return n}function Aa(e,t){return(e+t).indexOf(t)<e.length}const Ta=/^[=+\-@\t\r]/,Sa=/^[+-]?\d[\d.,' \u00A0\u202F]*(?:[eE][+-]?\d+)?$/,Ca=/^[ \t]|[ \t]$/;function ns(e){return Ta.test(e)}function Na(e,t){return ns(e)?t==="quotePrefix"?`'${e}`:` ${e}`:e}function Ra(e,t,n={}){if(e==null)return"";const u=String(e),r=n.numeric===!0&&Sa.test(u),i=r?u:Na(u,t.policy),s=n.forceQuote===!0,o=t.quoteChar,c=t.escape==="backslash";return t.alwaysQuote||s||Ca.test(u)||!r&&t.policy==="tabPrefix"&&ns(u)||Aa(i,t.delimiter)||i.includes(o)||i.includes(`
|
|
28
|
-
`)||i.includes("\r")||c&&i.includes("\\")?Ia(i,o,t.escape):i}function Ia(e,t,n){const u=n==="backslash"?e.replace(/\\/g,"\\\\").split(t).join(`\\${t}`):e.split(t).join(t+t);return`${t}${u}${t}`}const Oa=e=>e==="crlf"?`\r
|
|
29
|
-
`:`
|
|
30
|
-
`,ya="\uFEFF",xa=Object.freeze({cell:Object.freeze({delimiter:",",quoteChar:'"',escape:"double",alwaysQuote:!1,policy:"quotePrefix"}),lineEnd:"crlf",byteOrderMark:!0});function Da(e,t){const n=e instanceof Date?e.toISOString():e;return Ra(n,t,{numeric:typeof e=="number"})}function ka(e,t,n){const u=Oa(n.lineEnd),r=i=>i.map(s=>Da(s,n.cell)).join(n.cell.delimiter)+u;return r(t.map(i=>i.header))+e.map(i=>r(t.map(s=>s.value(i)))).join("")}function va(e,t,n){return(n.byteOrderMark?ya:"")+ka(e,t,n)}const wa=[{header:"timestamp",value:e=>new Date(e.createdAt)},{header:"source",value:e=>e.source},{header:"tone",value:e=>e.tone},{header:"priority",value:e=>e.priority},{header:"pinned",value:e=>e.pinned===!0},{header:"message",value:e=>e.message}];function us(e){return va(e,wa,xa)}function rs(e){return JSON.stringify(e,null,2)}function La(e,t){return{update:(n,u)=>{e.update({title:n}),u!==void 0&&e.setProgress({value:Math.max(0,Math.min(1,u)),...t.onCancel?{onCancel:t.onCancel}:{}})},success:n=>e.update({title:n??t.message,severity:"success",sticky:!1,progress:{done:!0}}),fail:n=>e.update({title:n??t.message,severity:"error",sticky:!0,progress:{done:!0},durationMs:1/0}),dismiss:()=>e.close(),updateActions:n=>{var u;return e.update({actions:Gr(n.action?uu(n.action):void 0,(u=n.actions)==null?void 0:u.map(uu),()=>e.close())})},state:()=>e.state(),onDidChangeState:e.onDidChangeState,visible:()=>e.visible(),onDidChangeVisibility:e.onDidChangeVisibility}}const is=()=>{};function uu(e){return{label:e.label,onClick:is,...e.expireOnAction!==void 0?{expireOnAction:e.expireOnAction}:{}}}function Gr(e,t,n){const u=[e,...t??[]].filter(r=>r!==void 0);if(u.length!==0)return u.map((r,i)=>({label:r.label,primary:i===0,keepOpen:r.expireOnAction===!1,onClick:()=>{r.onClick(),r.expireOnAction!==!1&&n()}}))}function xi(e,t){return{...t?{body:Nt.scrubSecrets(t)}:{},...e.duration!==void 0?{durationMs:e.duration}:{},...e.icon?{icon:e.icon}:{},...e.markdown?{markdown:!0}:{},...e.announce?{announce:e.announce}:{}}}function Di(e,t){const n=jo(e,t,uu);return{...n,...n.action?{action:uu(n.action)}:{},...n.actions?{actions:n.actions.map(uu)}:{},...n.onCancel?{onCancel:is}:{}}}function Ma(e,t){return t.vendorError===void 0?null:st.resolveVendorError(e,t.vendorError)}function Fa(e){let t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:!1,remindSuppressed:!1,sourceMuted:!1,inQuietHours:!1};const u=[],r=ei({getSettings:()=>t,recordAutoFade:()=>{},warn:(l,d)=>e.log.warn(l,d)});let i=[];const s=r.subscribe(l=>{i=l}),o={close:l=>r.dismiss(l),setFocus:(l,d)=>r.setFocus(l,d),setHover:(l,d)=>r.setHover(l,d),toggleExpanded:l=>r.toggleExpanded(l),isSticky:l=>gu(l,t),duration:l=>hu(l,t),resolveVendorError:l=>st.resolveVendorError(e.vendorErrors,l),openExternal:e.openExternal,announcer:e.announcer};return{host:{notify(l,d){const h=Di(d,e.errorActions),E=Ma(e.vendorErrors,h),_=l.severity==="error"?oi(h.message,{...h.title?{title:h.title}:{},...h.subtitle?{subtitle:h.subtitle}:{},...h.description?{description:h.description}:{},...h.action?{action:h.action}:{}},E,e.openExternal):null,g=l.severity==="error"&&l.source==="general"&&E!==null?"vendor-error":l.source,N=si(l.severity,l.priority,E!==null,t.vendorCodesAreUrgent),R=ti({severity:l.severity,title:(_==null?void 0:_.displayText)??h.title??h.message,priority:N,source:g},t.notificationRules),y=R===null?{showToast:!1,recordTimeline:!1}:su({priority:R.priority,recordTimeline:h.recordTimeline},t,n),D=l.delivery==="os-only"?"mock-os":y.showToast?"shown":y.recordTimeline?"timeline-only":"suppressed",L={definition:l,payload:{...h,message:Nt.scrubSecrets(h.message),...h.title?{title:Nt.scrubSecrets(h.title)}:{},...h.description?{description:Nt.scrubSecrets(h.description)}:{}},channel:l.delivery,decision:y,outcome:D};if(l.delivery==="os-only"||R===null||!y.showToast)return u.push(L),"";const v=(_==null?void 0:_.bodyText)??h.subtitle??h.description;let w;const M=Gr((_==null?void 0:_.primaryAction)??h.action,h.actions,()=>w==null?void 0:w.close()),G=r.notify({severity:R.severity,title:Nt.scrubSecrets(R.title),...xi(h,v),source:R.source,priority:R.priority,isolated:!0,...h.id!==void 0?{id:String(h.id)}:{},...M?{actions:M}:{}});return w=G,u.push(G.id?L:{...L,outcome:"spam-dropped"}),G.id},progress(l,d){const h=Di(d,e.errorActions),E=su({priority:l.priority,recordTimeline:h.recordTimeline},t,n);u.push({definition:l,payload:h,channel:l.delivery,decision:E,outcome:E.showToast?"shown":E.recordTimeline?"timeline-only":"suppressed"});const _=h.id!==void 0?String(h.id):void 0;if(!E.showToast)return _!==void 0&&r.suppress(y=>y.id===_),Xo;let g;const N=Gr(h.action,h.actions,()=>g==null?void 0:g.close()),R=r.notify({severity:l.severity,title:Nt.scrubSecrets(h.message),...xi(h,h.subtitle??h.description),source:l.source,priority:l.priority,isolated:!0,sticky:!0,progress:h.onCancel?{onCancel:h.onCancel}:{},..._!==void 0?{id:_}:{},...N?{actions:N}:{}});return g=R,La(R,h)}},controller:o,deliveries:u,setBehavior:l=>{t={...K.DEFAULT_NOTIFICATION_SETTINGS},n={dismissed:l==="dismissed",remindSuppressed:l==="reminder",sourceMuted:l==="source-muted",inQuietHours:l==="quiet-hours"},l==="dnd"?t={...t,doNotDisturb:!0}:l==="rule-transform"?t={...t,notificationRules:[{id:"preview-transform",name:"Preview transform",enabled:!0,conditions:{source:"dev"},actions:{setSeverity:"warning",setPriority:"urgent",addPrefix:"[RULE]"}}]}:l==="rule-suppress"&&(t={...t,notificationRules:[{id:"preview-suppress",name:"Preview suppress",enabled:!0,conditions:{source:"dev"},actions:{suppress:!0}}]})},subscribe:l=>r.subscribe(l),clear:()=>{for(const l of i)r.close(l.id);u.splice(0,u.length)},dispose:()=>{s(),r.dispose()}}}function os(e,t){const n=e.notifications.stack;return{close:u=>n.dismiss(u),setFocus:(u,r)=>n.setFocus(u,r),setHover:(u,r)=>n.setHover(u,r),toggleExpanded:u=>n.toggleExpanded(u),isSticky:u=>gu(u,t()),duration:u=>hu(u,t()),resolveVendorError:u=>st.resolveVendorError(e.vendorErrors,u),openExternal:u=>st.openExternalUrl(e.desktop,e.log,u),announcer:e.announcer}}function ci(e){const t=n=>{n.catch(u=>e.notifications.notify(Zo,{cause:u}))};return{remindLaterEnabled:()=>K.notificationSettings.get().remindLaterEnabled,isSourceMuted:dn,setSourceMuted:(n,u)=>t(Vo(n,u)),dismissKey:n=>t(qo(n)),remindLater:(n,u)=>t(zo(n,u)),openSettings:()=>e.openNotificationSettings(),navigate:n=>e.notifications.requestNavigation(n)}}const Pa=3e4,[Ua,ki]=m.createSignal(Date.now());let Uu=0,ru;function Ba(){Uu+=1,ru===void 0&&(typeof window>"u"||(ki(Date.now()),ru=setInterval(()=>ki(Date.now()),Pa)))}function Ha(){Uu=Math.max(0,Uu-1),!(Uu>0||ru===void 0)&&(clearInterval(ru),ru=void 0)}function Ga(){return Ba(),m.onCleanup(Ha),Ua}const $a=1e3,za=6e4,Va=60,qa=60,vi=24,Wa=30;function Ya(e){const t=Math.max(0,e);if(Math.floor(t/$a)<Wa)return{key:"now"};const u=Math.floor(t/za);if(u<1)return{key:"now"};if(u<qa)return{key:"{n}m ago",values:{n:u}};const r=Math.floor(u/Va);return r<vi?{key:"{n}h ago",values:{n:r}}:{key:"{n}d ago",values:{n:Math.floor(r/vi)}}}const wi={};function Ka(e){let t=wi[e];if(t)return t;t=wi[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function Pn(e,t){typeof t!="string"&&(t=Pn.defaultChars);const n=Ka(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let i=0,s=u.length;i<s;i+=3){const o=parseInt(u.slice(i+1,i+3),16);if(o<128){r+=n[o];continue}if((o&224)===192&&i+3<s){const c=parseInt(u.slice(i+4,i+6),16);if((c&192)===128){const l=o<<6&1984|c&63;l<128?r+="��":r+=String.fromCharCode(l),i+=3;continue}}if((o&240)===224&&i+6<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16);if((c&192)===128&&(l&192)===128){const d=o<<12&61440|c<<6&4032|l&63;d<2048||d>=55296&&d<=57343?r+="���":r+=String.fromCharCode(d),i+=6;continue}}if((o&248)===240&&i+9<s){const c=parseInt(u.slice(i+4,i+6),16),l=parseInt(u.slice(i+7,i+9),16),d=parseInt(u.slice(i+10,i+12),16);if((c&192)===128&&(l&192)===128&&(d&192)===128){let h=o<<18&1835008|c<<12&258048|l<<6&4032|d&63;h<65536||h>1114111?r+="����":(h-=65536,r+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}}r+="�"}return r})}Pn.defaultChars=";/?:@&=+$,#";Pn.componentChars="";const Li={};function Xa(e){let t=Li[e];if(t)return t;t=Li[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Eu(e,t,n){typeof t!="string"&&(n=t,t=Eu.defaultChars),typeof n>"u"&&(n=!0);const u=Xa(t);let r="";for(let i=0,s=e.length;i<s;i++){const o=e.charCodeAt(i);if(n&&o===37&&i+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3))){r+=e.slice(i,i+3),i+=2;continue}if(o<128){r+=u[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&i+1<s){const c=e.charCodeAt(i+1);if(c>=56320&&c<=57343){r+=encodeURIComponent(e[i]+e[i+1]),i++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[i])}return r}Eu.defaultChars=";/?:@&=+$,-_.!~*'()#";Eu.componentChars="-_.!~*'()";function ai(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function zu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ja=/^([a-z0-9.+-]+:)/i,Za=/:[0-9]*$/,Qa=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ja=["<",">",'"',"`"," ","\r",`
|
|
31
|
-
`," "],el=["{","}","|","\\","^","`"].concat(Ja),tl=["'"].concat(el),Mi=["%","/","?",";","#"].concat(tl),Fi=["/","?","#"],nl=255,Pi=/^[+a-z0-9A-Z_-]{0,63}$/,ul=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ui={javascript:!0,"javascript:":!0},Bi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function li(e,t){if(e&&e instanceof zu)return e;const n=new zu;return n.parse(e,t),n}zu.prototype.parse=function(e,t){let n,u,r,i=e;if(i=i.trim(),!t&&e.split("#").length===1){const l=Qa.exec(i);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let s=ja.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=i.substr(0,2)==="//",r&&!(s&&Ui[s])&&(i=i.substr(2),this.slashes=!0)),!Ui[s]&&(r||s&&!Bi[s])){let l=-1;for(let g=0;g<Fi.length;g++)u=i.indexOf(Fi[g]),u!==-1&&(l===-1||u<l)&&(l=u);let d,h;l===-1?h=i.lastIndexOf("@"):h=i.lastIndexOf("@",l),h!==-1&&(d=i.slice(0,h),i=i.slice(h+1),this.auth=d),l=-1;for(let g=0;g<Mi.length;g++)u=i.indexOf(Mi[g]),u!==-1&&(l===-1||u<l)&&(l=u);l===-1&&(l=i.length),i[l-1]===":"&&l--;const E=i.slice(0,l);i=i.slice(l),this.parseHost(E),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const g=this.hostname.split(/\./);for(let N=0,R=g.length;N<R;N++){const y=g[N];if(y&&!y.match(Pi)){let D="";for(let L=0,v=y.length;L<v;L++)y.charCodeAt(L)>127?D+="x":D+=y[L];if(!D.match(Pi)){const L=g.slice(0,N),v=g.slice(N+1),w=y.match(ul);w&&(L.push(w[1]),v.unshift(w[2])),v.length&&(i=v.join(".")+i),this.hostname=L.join(".");break}}}}this.hostname.length>nl&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const o=i.indexOf("#");o!==-1&&(this.hash=i.substr(o),i=i.slice(0,o));const c=i.indexOf("?");return c!==-1&&(this.search=i.substr(c),i=i.slice(0,c)),i&&(this.pathname=i),Bi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};zu.prototype.parseHost=function(e){let t=Za.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const rl=Object.freeze(Object.defineProperty({__proto__:null,decode:Pn,encode:Eu,format:ai,parse:li},Symbol.toStringTag,{value:"Module"})),ss=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cs=/[\0-\x1F\x7F-\x9F]/,il=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,fi=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,as=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,ls=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ol=Object.freeze(Object.defineProperty({__proto__:null,Any:ss,Cc:cs,Cf:il,P:fi,S:as,Z:ls},Symbol.toStringTag,{value:"Module"})),sl=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),cl=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var gr;const al=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ll=(gr=String.fromCodePoint)!==null&&gr!==void 0?gr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function fl(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=al.get(e))!==null&&t!==void 0?t:e}var nt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(nt||(nt={}));const dl=32;var ln;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ln||(ln={}));function $r(e){return e>=nt.ZERO&&e<=nt.NINE}function pl(e){return e>=nt.UPPER_A&&e<=nt.UPPER_F||e>=nt.LOWER_A&&e<=nt.LOWER_F}function hl(e){return e>=nt.UPPER_A&&e<=nt.UPPER_Z||e>=nt.LOWER_A&&e<=nt.LOWER_Z||$r(e)}function gl(e){return e===nt.EQUALS||hl(e)}var tt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(tt||(tt={}));var Xt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Xt||(Xt={}));class El{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Xt.Strict}startEntity(t){this.decodeMode=t,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case tt.EntityStart:return t.charCodeAt(n)===nt.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(t,n));case tt.NumericStart:return this.stateNumericStart(t,n);case tt.NumericDecimal:return this.stateNumericDecimal(t,n);case tt.NumericHex:return this.stateNumericHex(t,n);case tt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|dl)===nt.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const i=u-n;this.result=this.result*Math.pow(r,i)+parseInt(t.substr(n,i),r),this.consumed+=i}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if($r(r)||pl(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if($r(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===nt.SEMI)this.consumed+=1;else if(this.decodeMode===Xt.Strict)return 0;return this.emitCodePoint(fl(this.result),this.consumed),this.errors&&(t!==nt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],i=(r&ln.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=bl(u,r,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===Xt.Attribute&&(i===0||gl(s))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],i=(r&ln.VALUE_LENGTH)>>14,i!==0){if(s===nt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Xt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&ln.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~ln.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==Xt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}}}function fs(e){let t="";const n=new El(e,u=>t+=ll(u));return function(r,i){let s=0,o=0;for(;(o=r.indexOf("&",o))>=0;){t+=r.slice(s,o),n.startEntity(i);const l=n.write(r,o+1);if(l<0){s=o+n.end();break}s=o+l,o=l===0?s+1:s}const c=t+r.slice(s);return t="",c}}function bl(e,t,n,u){const r=(t&ln.BRANCH_LENGTH)>>7,i=t&ln.JUMP_TABLE;if(r===0)return i!==0&&u===i?n:-1;if(i){const c=u-i;return c<0||c>=r?-1:e[n+c]-1}let s=n,o=s+r-1;for(;s<=o;){const c=s+o>>>1,l=e[c];if(l<u)s=c+1;else if(l>u)o=c-1;else return e[c+r]}return-1}const ds=fs(sl);fs(cl);function _l(e,t=Xt.Legacy){return ds(e,t)}function ml(e){return ds(e,Xt.Strict)}function Al(e){return Object.prototype.toString.call(e)}function di(e){return Al(e)==="[object String]"}const Tl=Object.prototype.hasOwnProperty;function Sl(e,t){return Tl.call(e,t)}function Ju(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function Cl(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function pi(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function cu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ps=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Nl=/&([a-z#][a-z0-9]{1,31});/gi,Rl=new RegExp(ps.source+"|"+Nl.source,"gi"),Il=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ol(e,t){if(t.charCodeAt(0)===35&&Il.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return pi(u)?cu(u):e}const n=_l(e);return n!==e?n:e}function yl(e){return e.indexOf("\\")<0?e:e.replace(ps,"$1")}function Un(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Rl,function(t,n,u){return n||Ol(t,u)})}const xl=/[&<>"]/,Dl=/[&<>"]/g,kl={"&":"&","<":"<",">":">",'"':"""};function vl(e){return kl[e]}function fn(e){return xl.test(e)?e.replace(Dl,vl):e}const wl=/[.?*+^$[\]\\(){}|-]/g;function Ll(e){return e.replace(wl,"\\$&")}function Pe(e){switch(e){case 9:case 32:return!0}return!1}function au(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function hs(e){return fi.test(e)||as.test(e)}function lu(e){return hs(cu(e))}function fu(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function er(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Hi(e){return e===32||e===9||e===10||e===13}function tr(e){let t=0;for(;t<e.length&&Hi(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Hi(e.charCodeAt(n));n--);return e.slice(t,n+1)}const Ml={mdurl:rl,ucmicro:ol},Fl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Cl,asciiTrim:tr,assign:Ju,escapeHtml:fn,escapeRE:Ll,fromCodePoint:cu,has:Sl,isMdAsciiPunct:fu,isPunctChar:hs,isPunctCharCode:lu,isSpace:Pe,isString:di,isValidEntityCode:pi,isWhiteSpace:au,lib:Ml,normalizeReference:er,unescapeAll:Un,unescapeMd:yl},Symbol.toStringTag,{value:"Module"}));function Pl(e,t,n){let u,r,i,s;const o=e.posMax,c=e.pos;for(e.pos=t+1,u=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===93&&(u--,u===0)){r=!0;break}if(s=e.pos,e.md.inline.skipToken(e),i===91){if(s===e.pos-1)u++;else if(n)return e.pos=c,-1}}let l=-1;return r&&(l=e.pos),e.pos=c,l}function Ul(e,t,n){let u,r=t;const i={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return i;if(u===62)return i.pos=r+1,i.str=Un(e.slice(t+1,r)),i.ok=!0,i;if(u===92&&r+1<n){r+=2;continue}r++}return i}let s=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32){r++;continue}r+=2;continue}if(u===40&&(s++,s>32))return i;if(u===41){if(s===0)break;s--}r++}return t===r||s!==0||(i.str=Un(e.slice(t,r)),i.pos=r,i.ok=!0),i}function Bl(e,t,n,u){let r,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)s.str=u.str,s.marker=u.marker;else{if(i>=n)return s;let o=e.charCodeAt(i);if(o!==34&&o!==39&&o!==40)return s;t++,i++,o===40&&(o=41),s.marker=o}for(;i<n;){if(r=e.charCodeAt(i),r===s.marker)return s.pos=i+1,s.str+=Un(e.slice(t,i)),s.ok=!0,s;if(r===40&&s.marker===41)return s;r===92&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=Un(e.slice(t,i)),s}const Hl=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Ul,parseLinkLabel:Pl,parseLinkTitle:Bl},Symbol.toStringTag,{value:"Module"})),Ht={};Ht.code_inline=function(e,t,n,u,r){const i=e[t];return"<code"+r.renderAttrs(i)+">"+fn(i.content)+"</code>"};Ht.code_block=function(e,t,n,u,r){const i=e[t];return"<pre"+r.renderAttrs(i)+"><code>"+fn(e[t].content)+`</code></pre>
|
|
32
|
-
`};Ht.fence=function(e,t,n,u,r){const i=e[t],s=i.info?Un(i.info).trim():"";let o="",c="";if(s){const d=s.split(/(\s+)/g);o=d[0],c=d.slice(2).join("")}let l;if(n.highlight?l=n.highlight(i.content,o,c)||fn(i.content):l=fn(i.content),l.indexOf("<pre")===0)return l+`
|
|
33
|
-
`;if(s){const d=i.attrIndex("class"),h=i.attrs?i.attrs.slice():[];d<0?h.push(["class",n.langPrefix+o]):(h[d]=h[d].slice(),h[d][1]+=" "+n.langPrefix+o);const E={attrs:h};return`<pre><code${r.renderAttrs(E)}>${l}</code></pre>
|
|
34
|
-
`}return`<pre><code${r.renderAttrs(i)}>${l}</code></pre>
|
|
35
|
-
`};Ht.image=function(e,t,n,u,r){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=r.renderInlineAsText(i.children,n,u),r.renderToken(e,t,n)};Ht.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
36
|
-
`:`<br>
|
|
37
|
-
`};Ht.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
38
|
-
`:`<br>
|
|
39
|
-
`:`
|
|
40
|
-
`};Ht.text=function(e,t){return fn(e[t].content)};Ht.html_block=function(e,t){return e[t].content};Ht.html_inline=function(e,t){return e[t].content};function Hn(){this.rules=Ju({},Ht)}Hn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+fn(t.attrs[n][0])+'="'+fn(t.attrs[n][1])+'"';return r};Hn.prototype.renderToken=function(t,n,u){const r=t[n];let i="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(i+=`
|
|
41
|
-
`),i+=(r.nesting===-1?"</":"<")+r.tag,i+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(i+=" /");let s=!1;if(r.block&&(s=!0,r.nesting===1&&n+1<t.length)){const o=t[n+1];(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===r.tag)&&(s=!1)}return i+=s?`>
|
|
42
|
-
`:">",i};Hn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t)}return u};Hn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,i=e.length;r<i;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
|
|
43
|
-
`;break}return u};Hn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let i=0,s=e.length;i<s;i++){const o=e[i].type;o==="inline"?u+=this.renderInline(e[i].children,t,n):typeof r[o]<"u"?u+=r[o](e,i,t,n,this):u+=this.renderToken(e,i,t,n)}return u};function Et(){this.__rules__=[],this.__cache__=null}Et.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};Et.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};Et.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null};Et.prototype.before=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Et.prototype.after=function(e,t,n,u){const r=this.__find__(e),i=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null};Et.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};Et.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n};Et.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};Et.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n};Et.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function wt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}wt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1};wt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};wt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r};wt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};wt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function gs(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}gs.prototype.Token=wt;const Gl=/\r\n?|\n/g,$l=/\0/g;function zl(e){let t;t=e.src.replace(Gl,`
|
|
44
|
-
`),t=t.replace($l,"�"),e.src=t}function Vl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function ql(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Wl(e){return/^<a[>\s]/i.test(e)}function Yl(e){return/^<\/a\s*>/i.test(e)}function Kl(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;const r=t[n].children,i=[];let s=0;for(let o=r.length-1;o>=0;o--){const c=r[o];if(c.type==="link_close"){for(o--;r[o].level!==c.level&&r[o].type!=="link_open";)o--;continue}if(c.type==="html_inline"&&(Wl(c.content)&&s>0&&s--,Yl(c.content)&&s++),!(s>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const l=c.content;let d=e.md.linkify.match(l);const h=[];let E=c.level,_=0;d.length>0&&d[0].index===0&&o>0&&r[o-1].type==="text_special"&&(d=d.slice(1));for(let g=0;g<d.length;g++){const N=d[g].url,R=e.md.normalizeLink(N);if(!e.md.validateLink(R))continue;let y=d[g].text;d[g].schema?d[g].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,"");const D=d[g].index;if(D>_){const M=new e.Token("text","",0);M.content=l.slice(_,D),M.level=E,h.push(M)}const L=new e.Token("link_open","a",1);L.attrs=[["href",R]],L.level=E++,L.markup="linkify",L.info="auto",h.push(L);const v=new e.Token("text","",0);v.content=y,v.level=E,h.push(v);const w=new e.Token("link_close","a",-1);w.level=--E,w.markup="linkify",w.info="auto",h.push(w),_=d[g].lastIndex}if(_<l.length){const g=new e.Token("text","",0);g.content=l.slice(_),g.level=E,h.push(g)}i.push({index:o,nodes:h})}}if(i.length>0){let o=r.length;for(const h of i)o+=h.nodes.length-1;const c=new Array(o);let l=0,d=0;i.reverse();for(let h=0;h<r.length;h++){const E=i[l];if((E==null?void 0:E.index)===h){for(const _ of E.nodes)c[d++]=_;l++}else c[d++]=r[h]}t[n].children=c}}}const Es=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Xl=/\((c|tm|r)\)/i,jl=/\((c|tm|r)\)/ig,Zl={c:"©",r:"®",tm:"™"};function Ql(e,t){return Zl[t.toLowerCase()]}function Jl(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(jl,Ql)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function e0(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Es.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function t0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Xl.test(e.tokens[t].content)&&Jl(e.tokens[t].children),Es.test(e.tokens[t].content)&&e0(e.tokens[t].children))}const n0=/['"]/,Gi=/['"]/g,$i="’",u0=1e3;function zi(e,t,n){for(;e.length>n;){const u=e.pop();u.isSingleQuote?t.single=u.prevSameQuoteIdx:t.double=u.prevSameQuoteIdx}}function Du(e,t,n,u){e[t]||(e[t]=[]),e[t].push({pos:n,ch:u})}function r0(e,t){let n="",u=0;t.sort((r,i)=>r.pos-i.pos);for(let r=0;r<t.length;r++){const i=t[r];n+=e.slice(u,i.pos)+i.ch,u=i.pos+1}return n+e.slice(u)}function i0(e,t){let n;const u=[],r={single:-1,double:-1},i={};for(let s=0;s<e.length;s++){const o=e[s],c=e[s].level;for(n=u.length-1;n>=0&&!(u[n].level<=c);n--);if(zi(u,r,n+1),o.type!=="text")continue;const l=o.content;let d=0;const h=l.length;e:for(;d<h;){Gi.lastIndex=d;const E=Gi.exec(l);if(!E)break;let _=!0,g=!0;d=E.index+1;const N=E[0]==="'";let R=32;if(E.index-1>=0)R=l.charCodeAt(E.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){R=e[n].content.charCodeAt(e[n].content.length-1);break}let y=32;if(d<h)y=l.charCodeAt(d);else for(n=s+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){y=e[n].content.charCodeAt(0);break}const D=fu(R)||lu(R),L=fu(y)||lu(y),v=au(R),w=au(y);if(w?_=!1:L&&(v||D||(_=!1)),v?g=!1:D&&(w||L||(g=!1)),y===34&&E[0]==='"'&&R>=48&&R<=57&&(g=_=!1),_&&g&&(_=D,g=L),!_&&!g){N&&Du(i,s,E.index,$i);continue}if(g&&(n=N?r.single:r.double,n>=0&&u[n].level===c)){const M=u[n];let G,Z;N?(G=t.md.options.quotes[2],Z=t.md.options.quotes[3]):(G=t.md.options.quotes[0],Z=t.md.options.quotes[1]),Du(i,s,E.index,Z),Du(i,M.tokenIdx,M.contentPos,G),zi(u,r,n);continue e}if(_){if(u.length>=u0)return;u.push({tokenIdx:s,contentPos:E.index,isSingleQuote:N,level:c,prevSameQuoteIdx:N?r.single:r.double}),N?r.single=u.length-1:r.double=u.length-1}else g&&N&&Du(i,s,E.index,$i)}}Object.keys(i).forEach(function(s){e[s].content=r0(e[s].content,i[s])})}function o0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!n0.test(e.tokens[t].content)||i0(e.tokens[t].children,e)}function s0(e){let t,n;const u=e.tokens,r=u.length;for(let i=0;i<r;i++){if(u[i].type!=="inline")continue;const s=u[i].children,o=s.length;for(t=0;t<o;t++)s[t].type==="text_special"&&(s[t].type="text");for(t=n=0;t<o;t++)s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}}const Er=[["normalize",zl],["block",Vl],["inline",ql],["linkify",Kl],["replacements",t0],["smartquotes",o0],["text_join",s0]];function hi(){this.ruler=new Et;for(let e=0;e<Er.length;e++)this.ruler.push(Er[e][0],Er[e][1])}hi.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};hi.prototype.State=gs;function Gt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let i=0,s=0,o=0,c=0,l=r.length,d=!1;s<l;s++){const h=r.charCodeAt(s);if(!d)if(Pe(h)){o++,h===9?c+=4-c%4:c++;continue}else d=!0;(h===10||s===l-1)&&(h!==10&&s++,this.bMarks.push(i),this.eMarks.push(s),this.tShift.push(o),this.sCount.push(c),this.bsCount.push(0),d=!1,o=0,c=0,i=s+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Gt.prototype.push=function(e,t,n){const u=new wt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};Gt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Gt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};Gt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Pe(u))break}return t};Gt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Pe(this.src.charCodeAt(--t)))return t+1;return t};Gt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};Gt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Gt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const i=new Array(n-t);for(let s=0,o=t;o<n;o++,s++){let c=0;const l=this.bMarks[o];let d=l,h;for(o+1<n||r?h=this.eMarks[o]+1:h=this.eMarks[o];d<h&&c<u;){const E=this.src.charCodeAt(d);if(Pe(E))E===9?c+=4-(c+this.bsCount[o])%4:c++;else if(d-l<this.tShift[o])c++;else break;d++}c>u?i[s]=new Array(c-u+1).join(" ")+this.src.slice(d,h):i[s]=this.src.slice(d,h)}return i.join("")};Gt.prototype.Token=wt;const c0=65536;function br(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Vi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),i=!1,s=0,o="";for(;u<n;)r===124&&(i?(o+=e.substring(s,u-1),s=u):(t.push(o+e.substring(s,u)),o="",s=u+1)),i=r===92,u++,r=e.charCodeAt(u);return t.push(o+e.substring(s)),t}function a0(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let i=e.bMarks[r]+e.tShift[r];if(i>=e.eMarks[r])return!1;const s=e.src.charCodeAt(i++);if(s!==124&&s!==45&&s!==58||i>=e.eMarks[r])return!1;const o=e.src.charCodeAt(i++);if(o!==124&&o!==45&&o!==58&&!Pe(o)||s===45&&Pe(o))return!1;for(;i<e.eMarks[r];){const v=e.src.charCodeAt(i);if(v!==124&&v!==45&&v!==58&&!Pe(v))return!1;i++}let c=br(e,t+1),l=c.split("|");const d=[];for(let v=0;v<l.length;v++){const w=l[v].trim();if(!w){if(v===0||v===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?d.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?d.push("left"):d.push("")}if(c=br(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;l=Vi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const h=l.length;if(h===0||h!==d.length)return!1;if(u)return!0;const E=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),N=[t,0];g.map=N;const R=e.push("thead_open","thead",1);R.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let v=0;v<l.length;v++){const w=e.push("th_open","th",1);d[v]&&(w.attrs=[["style","text-align:"+d[v]]]);const M=e.push("inline","",0);M.content=l[v].trim(),M.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let D,L=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let v=!1;for(let M=0,G=_.length;M<G;M++)if(_[M](e,r,n,!0)){v=!0;break}if(v||(c=br(e,r).trim(),!c)||e.sCount[r]-e.blkIndent>=4||(l=Vi(c),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),L+=h-l.length,L>c0))break;if(r===t+2){const M=e.push("tbody_open","tbody",1);M.map=D=[t+2,0]}const w=e.push("tr_open","tr",1);w.map=[r,r+1];for(let M=0;M<h;M++){const G=e.push("td_open","td",1);d[M]&&(G.attrs=[["style","text-align:"+d[M]]]);const Z=e.push("inline","",0);Z.content=l[M]?l[M].trim():"",Z.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return D&&(e.push("tbody_close","tbody",-1),D[1]=r),e.push("table_close","table",-1),N[1]=r,e.parentType=E,e.line=r,!0}function l0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const i=e.push("code_block","code",0);return i.content=e.getLines(t,r,4+e.blkIndent,!1)+`
|
|
45
|
-
`,i.map=[t,e.line],!0}function f0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>i)return!1;const s=e.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let o=r;r=e.skipChars(r,s);let c=r-o;if(c<3)return!1;const l=e.src.slice(o,r),d=e.src.slice(r,i);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(u)return!0;let h=t,E=!1;for(;h++,!(h>=n||(r=o=e.bMarks[h]+e.tShift[h],i=e.eMarks[h],r<i&&e.sCount[h]<e.blkIndent));)if(e.src.charCodeAt(r)===s&&!(e.sCount[h]-e.blkIndent>=4)&&(r=e.skipChars(r,s),!(r-o<c)&&(r=e.skipSpaces(r),!(r<i)))){E=!0;break}c=e.sCount[t],e.line=h+(E?1:0);const _=e.push("fence","code",0);return _.info=d,_.content=e.getLines(t+1,h,c,!0),_.markup=l,_.map=[t,e.line],!0}function d0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const o=[],c=[],l=[],d=[],h=e.md.block.ruler.getRules("blockquote"),E=e.parentType;e.parentType="blockquote";let _=!1,g;for(g=t;g<n;g++){const L=e.sCount[g]<e.blkIndent;if(r=e.bMarks[g]+e.tShift[g],i=e.eMarks[g],r>=i)break;if(e.src.charCodeAt(r++)===62&&!L){let w=e.sCount[g]+1,M,G;e.src.charCodeAt(r)===32?(r++,w++,G=!1,M=!0):e.src.charCodeAt(r)===9?(M=!0,(e.bsCount[g]+w)%4===3?(r++,w++,G=!1):G=!0):M=!1;let Z=w;for(o.push(e.bMarks[g]),e.bMarks[g]=r;r<i;){const re=e.src.charCodeAt(r);if(Pe(re))re===9?Z+=4-(Z+e.bsCount[g]+(G?1:0))%4:Z++;else break;r++}_=r>=i,c.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(M?1:0),l.push(e.sCount[g]),e.sCount[g]=Z-w,d.push(e.tShift[g]),e.tShift[g]=r-e.bMarks[g];continue}if(_)break;let v=!1;for(let w=0,M=h.length;w<M;w++)if(h[w](e,g,n,!0)){v=!0;break}if(v){e.lineMax=g,e.blkIndent!==0&&(o.push(e.bMarks[g]),c.push(e.bsCount[g]),d.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]-=e.blkIndent);break}o.push(e.bMarks[g]),c.push(e.bsCount[g]),d.push(e.tShift[g]),l.push(e.sCount[g]),e.sCount[g]=-1}const N=e.blkIndent;e.blkIndent=0;const R=e.push("blockquote_open","blockquote",1);R.markup=">";const y=[t,0];R.map=y,e.md.block.tokenize(e,t,g);const D=e.push("blockquote_close","blockquote",-1);D.markup=">",e.lineMax=s,e.parentType=E,y[1]=e.line;for(let L=0;L<d.length;L++)e.bMarks[L+t]=o[L],e.tShift[L+t]=d[L],e.sCount[L+t]=l[L],e.bsCount[L+t]=c[L];return e.blkIndent=N,!0}function p0(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(s!==42&&s!==45&&s!==95)return!1;let o=1;for(;i<r;){const l=e.src.charCodeAt(i++);if(l!==s&&!Pe(l))return!1;l===s&&o++}if(o<3)return!1;if(u)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(s)),!0}function qi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const i=e.src.charCodeAt(u);if(!Pe(i))return-1}return u}function Wi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let i=e.src.charCodeAt(r++);if(i<48||i>57)return-1;for(;;){if(r>=u)return-1;if(i=e.src.charCodeAt(r++),i>=48&&i<=57){if(r-n>=10)return-1;continue}if(i===41||i===46)break;return-1}return r<u&&(i=e.src.charCodeAt(r),!Pe(i))?-1:r}function h0(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function g0(e,t,n,u){let r,i,s,o,c=t,l=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let d=!1;u&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(d=!0);let h,E,_;if((_=Wi(e,c))>=0){if(h=!0,s=e.bMarks[c]+e.tShift[c],E=Number(e.src.slice(s,_-1)),d&&E!==1)return!1}else if((_=qi(e,c))>=0)h=!1;else return!1;if(d&&e.skipSpaces(_)>=e.eMarks[c])return!1;if(u)return!0;const g=e.src.charCodeAt(_-1),N=e.tokens.length;h?(o=e.push("ordered_list_open","ol",1),E!==1&&(o.attrs=[["start",E]])):o=e.push("bullet_list_open","ul",1);const R=[c,0];o.map=R,o.markup=String.fromCharCode(g);let y=!1;const D=e.md.block.ruler.getRules("list"),L=e.parentType;for(e.parentType="list";c<n;){i=_,r=e.eMarks[c];const v=e.sCount[c]+_-(e.bMarks[c]+e.tShift[c]);let w=v;for(;i<r;){const ne=e.src.charCodeAt(i);if(ne===9)w+=4-(w+e.bsCount[c])%4;else if(ne===32)w++;else break;i++}const M=i;let G;M>=r?G=1:G=w-v,G>4&&(G=1);const Z=v+G;o=e.push("list_item_open","li",1),o.markup=String.fromCharCode(g);const re=[c,0];o.map=re,h&&(o.info=e.src.slice(s,_-1));const ie=e.tight,le=e.tShift[c],$=e.sCount[c],te=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Z,e.tight=!0,e.tShift[c]=M-e.bMarks[c],e.sCount[c]=w,M>=r&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||y)&&(l=!1),y=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=te,e.tShift[c]=le,e.sCount[c]=$,e.tight=ie,o=e.push("list_item_close","li",-1),o.markup=String.fromCharCode(g),c=e.line,re[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let X=!1;for(let ne=0,k=D.length;ne<k;ne++)if(D[ne](e,c,n,!0)){X=!0;break}if(X)break;if(h){if(_=Wi(e,c),_<0)break;s=e.bMarks[c]+e.tShift[c]}else if(_=qi(e,c),_<0)break;if(g!==e.src.charCodeAt(_-1))break}return h?o=e.push("ordered_list_close","ol",-1):o=e.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(g),R[1]=c,e.line=c,e.parentType=L,l&&h0(e,N),!0}function E0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function o(D){const L=e.lineMax;if(D>=L||e.isEmpty(D))return null;let v=!1;if(e.sCount[D]-e.blkIndent>3&&(v=!0),e.sCount[D]<0&&(v=!0),!v){const G=e.md.block.ruler.getRules("reference"),Z=e.parentType;e.parentType="reference";let re=!1;for(let ie=0,le=G.length;ie<le;ie++)if(G[ie](e,D,L,!0)){re=!0;break}if(e.parentType=Z,re)return null}const w=e.bMarks[D]+e.tShift[D],M=e.eMarks[D];return e.src.slice(w,M+1)}let c=e.src.slice(r,i+1);i=c.length;let l=-1;for(r=1;r<i;r++){const D=c.charCodeAt(r);if(D===91)return!1;if(D===93){l=r;break}else if(D===10){const L=o(s);L!==null&&(c+=L,i=c.length,s++)}else if(D===92&&(r++,r<i&&c.charCodeAt(r)===10)){const L=o(s);L!==null&&(c+=L,i=c.length,s++)}}if(l<0||c.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<i;r++){const D=c.charCodeAt(r);if(D===10){const L=o(s);L!==null&&(c+=L,i=c.length,s++)}else if(!Pe(D))break}const d=e.md.helpers.parseLinkDestination(c,r,i);if(!d.ok)return!1;const h=e.md.normalizeLink(d.str);if(!e.md.validateLink(h))return!1;r=d.pos;const E=r,_=s,g=r;for(;r<i;r++){const D=c.charCodeAt(r);if(D===10){const L=o(s);L!==null&&(c+=L,i=c.length,s++)}else if(!Pe(D))break}let N=e.md.helpers.parseLinkTitle(c,r,i);for(;N.can_continue;){const D=o(s);if(D===null)break;c+=D,r=i,i=c.length,s++,N=e.md.helpers.parseLinkTitle(c,r,i,N)}let R;for(r<i&&g!==r&&N.ok?(R=N.str,r=N.pos):(R="",r=E,s=_);r<i;){const D=c.charCodeAt(r);if(!Pe(D))break;r++}if(r<i&&c.charCodeAt(r)!==10&&R)for(R="",r=E,s=_;r<i;){const D=c.charCodeAt(r);if(!Pe(D))break;r++}if(r<i&&c.charCodeAt(r)!==10)return!1;const y=er(c.slice(1,l));return y?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:R,href:h}),e.line=s),!0):!1}const b0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],_0="[a-zA-Z_:][a-zA-Z0-9:._-]*",m0="[^\"'=<>`\\x00-\\x20]+",A0="'[^']*'",T0='"[^"]*"',S0="(?:"+m0+"|"+A0+"|"+T0+")",C0="(?:\\s+"+_0+"(?:\\s*=\\s*"+S0+")?)",bs="<[A-Za-z][A-Za-z0-9\\-]*"+C0+"*\\s*\\/?>",_s="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",N0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",R0="<[?][\\s\\S]*?[?]>",I0="<![A-Za-z][^>]*>",O0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",y0=new RegExp("^(?:"+bs+"|"+_s+"|"+N0+"|"+R0+"|"+I0+"|"+O0+")"),x0=new RegExp("^(?:"+bs+"|"+_s+")"),_n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+b0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(x0.source+"\\s*$"),/^$/,!1]];function D0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let s=e.src.slice(r,i),o=0;for(;o<_n.length&&!_n[o][0].test(s);o++);if(o===_n.length)return!1;if(u)return _n[o][2];let c=t+1;const l=_n[o][1].test("");if(!_n[o][1].test(s)){for(;c<n&&!(e.sCount[c]<e.blkIndent&&(l||!e.isEmpty(c)));c++)if(r=e.bMarks[c]+e.tShift[c],i=e.eMarks[c],s=e.src.slice(r,i),_n[o][1].test(s)){s.length!==0&&c++;break}}e.line=c;const d=e.push("html_block","",0);return d.map=[t,c],d.content=e.getLines(t,c,e.blkIndent,!0),!0}function k0(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(r);if(s!==35||r>=i)return!1;let o=1;for(s=e.src.charCodeAt(++r);s===35&&r<i&&o<=6;)o++,s=e.src.charCodeAt(++r);if(o>6||r<i&&!Pe(s))return!1;if(u)return!0;i=e.skipSpacesBack(i,r);const c=e.skipCharsBack(i,35,r);c>r&&Pe(e.src.charCodeAt(c-1))&&(i=c),e.line=t+1;const l=e.push("heading_open","h"+String(o),1);l.markup="########".slice(0,o),l.map=[t,e.line];const d=e.push("inline","",0);d.content=tr(e.src.slice(r,i)),d.map=[t,e.line],d.children=[];const h=e.push("heading_close","h"+String(o),-1);return h.markup="########".slice(0,o),!0}function v0(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let i=0,s,o=t+1;for(;o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3)continue;if(e.sCount[o]>=e.blkIndent){let _=e.bMarks[o]+e.tShift[o];const g=e.eMarks[o];if(_<g&&(s=e.src.charCodeAt(_),(s===45||s===61)&&(_=e.skipChars(_,s),_=e.skipSpaces(_),_>=g))){i=s===61?1:2;break}}if(e.sCount[o]<0)continue;let E=!1;for(let _=0,g=u.length;_<g;_++)if(u[_](e,o,n,!0)){E=!0;break}if(E)break}if(!i)return e.parentType=r,!1;const c=tr(e.getLines(t,o,e.blkIndent,!1));e.line=o+1;const l=e.push("heading_open","h"+String(i),1);l.markup=String.fromCharCode(s),l.map=[t,e.line];const d=e.push("inline","",0);d.content=c,d.map=[t,e.line-1],d.children=[];const h=e.push("heading_close","h"+String(i),-1);return h.markup=String.fromCharCode(s),e.parentType=r,!0}function w0(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3||e.sCount[i]<0)continue;let l=!1;for(let d=0,h=u.length;d<h;d++)if(u[d](e,i,n,!0)){l=!0;break}if(l)break}const s=tr(e.getLines(t,i,e.blkIndent,!1));e.line=i;const o=e.push("paragraph_open","p",1);o.map=[t,e.line];const c=e.push("inline","",0);return c.content=s,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const ku=[["table",a0,["paragraph","reference"]],["code",l0],["fence",f0,["paragraph","reference","blockquote","list"]],["blockquote",d0,["paragraph","reference","blockquote","list"]],["hr",p0,["paragraph","reference","blockquote","list"]],["list",g0,["paragraph","reference","blockquote"]],["reference",E0],["html_block",D0,["paragraph","reference","blockquote"]],["heading",k0,["paragraph","reference","blockquote"]],["lheading",v0],["paragraph",w0]];function nr(){this.ruler=new Et;for(let e=0;e<ku.length;e++)this.ruler.push(ku[e][0],ku[e][1],{alt:(ku[e][2]||[]).slice()})}nr.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,i=e.md.options.maxNesting;let s=t,o=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n||e.sCount[s]<e.blkIndent));){if(e.level>=i){e.line=n;break}const c=e.line;let l=!1;for(let d=0;d<r;d++)if(l=u[d](e,s,n,!1),l){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),s=e.line,s<n&&e.isEmpty(s)&&(o=!0,s++,e.line=s)}};nr.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)};nr.prototype.State=Gt;function bu(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}bu.prototype.pushPending=function(){const e=new wt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};bu.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new wt(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u};bu.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e);let r;if(e===0)r=32;else if(e===1)r=this.src.charCodeAt(0),(r&63488)===55296&&(r=65533);else if(r=this.src.charCodeAt(e-1),(r&64512)===56320){const R=this.src.charCodeAt(e-2);r=(R&64512)===55296?65536+(R-55296<<10)+(r-56320):65533}else(r&64512)===55296&&(r=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===u;)i++;const s=i-e;let o=i<n?this.src.charCodeAt(i):32;if((o&64512)===55296){const R=this.src.charCodeAt(i+1);o=(R&64512)===56320?65536+(o-55296<<10)+(R-56320):65533}else(o&64512)===56320&&(o=65533);const c=fu(r)||lu(r),l=fu(o)||lu(o),d=au(r),h=au(o),E=!h&&(!l||d||c),_=!d&&(!c||h||l);return{can_open:E&&(t||!_||c),can_close:_&&(t||!E||l),length:s}};bu.prototype.Token=wt;function L0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function M0(e,t){let n=e.pos;for(;n<e.posMax&&!L0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function F0(e){return e>=65&&e<=90||e>=97&&e<=122}function P0(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function U0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=n-Math.min(10,e.pending.length,n);let i=n;for(;i>r&&P0(e.src.charCodeAt(i-1));)i--;if(i===n||!F0(e.src.charCodeAt(i)))return!1;const s=n-i,o=e.md.linkify.matchAtStart(e.src.slice(i));if(!o)return!1;let c=o.url;if(c.length<=s)return!1;let l=c.length;for(;l>0&&c.charCodeAt(l-1)===42;)l--;l!==c.length&&(c=c.slice(0,l));const d=e.md.normalizeLink(c);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s);const h=e.push("link_open","a",1);h.attrs=[["href",d]],h.markup="linkify",h.info="auto";const E=e.push("text","",0);E.content=e.md.normalizeLinkText(c);const _=e.push("link_close","a",-1);_.markup="linkify",_.info="auto"}return e.pos+=c.length-s,!0}function B0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let i=u-1;for(;i>=1&&e.pending.charCodeAt(i-1)===32;)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&Pe(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const gi=[];for(let e=0;e<256;e++)gi.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){gi[e.charCodeAt(0)]=1});function H0(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!Pe(r));)n++;return e.pos=n,!0}if(r===32){if(!t){const o=e.push("text_special","",0);o.content="\\",o.markup="\\",o.info="escape"}return e.pos=n,!0}let i=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const o=e.src.charCodeAt(n+1);o>=56320&&o<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const o=e.push("text_special","",0);r<256&&gi[r]!==0?o.content=i:o.content=s,o.markup=s,o.info="escape"}return e.pos=n+1,!0}function G0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const i=e.posMax;for(;n<i&&e.src.charCodeAt(n)===96;)n++;const s=e.src.slice(r,n),o=s.length;if(e.backticksScanned&&(e.backticks[o]||0)<=r)return t||(e.pending+=s),e.pos+=o,!0;let c=n,l;for(;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;const d=c-l;if(d===o){if(!t){const h=e.push("code_inline","code",0);h.markup=s,h.content=e.src.slice(n,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[d]=l}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=o,!0}function $0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let i=r.length;const s=String.fromCharCode(u);if(i<2)return!1;let o;i%2&&(o=e.push("text","",0),o.content=s,i--);for(let c=0;c<i;c+=2)o=e.push("text","",0),o.content=s+s,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Yi(e,t){let n;const u=[],r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.marker!==126||s.end===-1)continue;const o=t[s.end];n=e.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[o.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[o.token-1].type==="text"&&e.tokens[o.token-1].content==="~"&&u.push(o.token-1)}for(;u.length;){const i=u.pop();let s=i+1;for(;s<e.tokens.length&&e.tokens[s].type==="s_close";)s++;s--,i!==s&&(n=e.tokens[s],e.tokens[s]=e.tokens[i],e.tokens[i]=n)}}function z0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Yi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Yi(e,t[u].delimiters)}const ms={tokenize:$0,postProcess:z0};function V0(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let i=0;i<r.length;i++){const s=e.push("text","",0);s.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Ki(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const i=t[r.end],s=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===i.token+1,o=String.fromCharCode(r.marker),c=e.tokens[r.token];c.type=s?"strong_open":"em_open",c.tag=s?"strong":"em",c.nesting=1,c.markup=s?o+o:o,c.content="";const l=e.tokens[i.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?o+o:o,l.content="",s&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function q0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ki(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Ki(e,t[u].delimiters)}const As={tokenize:V0,postProcess:q0};function W0(e,t){let n,u,r,i,s="",o="",c=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,h=e.posMax,E=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let g=_+1;if(g<h&&e.src.charCodeAt(g)===40){for(l=!1,g++;g<h&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);if(g>=h)return!1;if(c=g,r=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),r.ok){for(s=e.md.normalizeLink(r.str),e.md.validateLink(s)?g=r.pos:s="",c=g;g<h&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);if(r=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<h&&c!==g&&r.ok)for(o=r.str,g=r.pos;g<h&&(n=e.src.charCodeAt(g),!(!Pe(n)&&n!==10));g++);}(g>=h||e.src.charCodeAt(g)!==41)&&(l=!0),g++}if(l){if(typeof e.env.references>"u")return!1;if(g<h&&e.src.charCodeAt(g)===91?(c=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?u=e.src.slice(c,g++):g=_+1):g=_+1,u||(u=e.src.slice(E,_)),i=e.env.references[er(u)],!i)return e.pos=d,!1;s=i.href,o=i.title}if(!t){e.pos=E,e.posMax=_;const N=e.push("link_open","a",1),R=[["href",s]];N.attrs=R,o&&R.push(["title",o]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=h,!0}function Y0(e,t){let n,u,r,i,s,o,c,l,d="";const h=e.pos,E=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(i=g+1,i<E&&e.src.charCodeAt(i)===40){for(i++;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);if(i>=E)return!1;for(l=i,o=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),o.ok&&(d=e.md.normalizeLink(o.str),e.md.validateLink(d)?i=o.pos:d=""),l=i;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);if(o=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<E&&l!==i&&o.ok)for(c=o.str,i=o.pos;i<E&&(n=e.src.charCodeAt(i),!(!Pe(n)&&n!==10));i++);else c="";if(i>=E||e.src.charCodeAt(i)!==41)return e.pos=h,!1;i++}else{if(typeof e.env.references>"u")return!1;if(i<E&&e.src.charCodeAt(i)===91?(l=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?r=e.src.slice(l,i++):i=g+1):i=g+1,r||(r=e.src.slice(_,g)),s=e.env.references[er(r)],!s)return e.pos=h,!1;d=s.href,c=s.title}if(!t){u=e.src.slice(_,g);const N=[];e.md.inline.parse(u,e.md,e.env,N);const R=e.push("image","img",0),y=[["src",d],["alt",""]];R.attrs=y,R.children=N,R.content=u,c&&y.push(["title",c])}return e.pos=i,e.posMax=E,!0}const K0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,X0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function j0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const i=e.src.slice(u+1,n);if(X0.test(i)){const s=e.md.normalizeLink(i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}if(K0.test(i)){const s=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(s))return!1;if(!t){const o=e.push("link_open","a",1);o.attrs=[["href",s]],o.markup="autolink",o.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(i);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=i.length+2,!0}return!1}function Z0(e){return/^<a[>\s]/i.test(e)}function Q0(e){return/^<\/a\s*>/i.test(e)}function J0(e){const t=e|32;return t>=97&&t<=122}function ef(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!J0(r))return!1;const i=e.src.slice(u).match(y0);if(!i)return!1;if(!t){const s=e.push("html_inline","",0);s.content=i[0],Z0(s.content)&&e.linkLevel++,Q0(s.content)&&e.linkLevel--}return e.pos+=i[0].length,!0}const tf=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,nf=/^&([a-z][a-z0-9]{1,31});/i;function uf(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const i=e.src.slice(n).match(tf);if(i){if(!t){const s=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=pi(s)?cu(s):cu(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{const i=e.src.slice(n).match(nf);if(i){const s=ml(i[0]);if(s!==i[0]){if(!t){const o=e.push("text_special","",0);o.content=s,o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}}return!1}function Xi(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const i=[];for(let s=0;s<n;s++){const o=e[s];if(i.push(0),(e[u].marker!==o.marker||r!==o.token-1)&&(u=s),r=o.token,o.length=o.length||0,!o.close)continue;t.hasOwnProperty(o.marker)||(t[o.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[o.marker][(o.open?3:0)+o.length%3];let l=u-i[u]-1,d=l;for(;l>c;l-=i[l]+1){const h=e[l];if(h.marker===o.marker&&h.open&&h.end<0){let E=!1;if((h.close||o.open)&&(h.length+o.length)%3===0&&(h.length%3!==0||o.length%3!==0)&&(E=!0),!E){const _=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+_,i[l]=_,o.open=!1,h.end=s,h.close=!1,d=-1,r=-2;break}}}d!==-1&&(t[o.marker][(o.open?3:0)+(o.length||0)%3]=d)}}function rf(e){const t=e.tokens_meta,n=e.tokens_meta.length;Xi(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Xi(t[u].delimiters)}function of(e){let t,n,u=0;const r=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const _r=[["text",M0],["linkify",U0],["newline",B0],["escape",H0],["backticks",G0],["strikethrough",ms.tokenize],["emphasis",As.tokenize],["link",W0],["image",Y0],["autolink",j0],["html_inline",ef],["entity",uf]],mr=[["balance_pairs",rf],["strikethrough",ms.postProcess],["emphasis",As.postProcess],["fragments_join",of]];function _u(){this.ruler=new Et;for(let e=0;e<_r.length;e++)this.ruler.push(_r[e][0],_r[e][1]);this.ruler2=new Et;for(let e=0;e<mr.length;e++)this.ruler2.push(mr[e][0],mr[e][1])}_u.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,i=e.cache;if(typeof i[t]<"u"){e.pos=i[t];return}let s=!1;if(e.level<r){for(let o=0;o<u;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos};_u.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const i=e.pos;let s=!1;if(e.level<r){for(let o=0;o<n;o++)if(s=t[o](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};_u.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const i=this.ruler2.getRules(""),s=i.length;for(let o=0;o<s;o++)i[o](r)};_u.prototype.State=bu;function sf(e){const t={};e=e||{},t.src_Any=ss.source,t.src_Cc=cs.source,t.src_Z=ls.source,t.src_P=fi.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+`|${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+`|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+`|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function zr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function ur(e){return Object.prototype.toString.call(e)}function cf(e){return ur(e)==="[object String]"}function af(e){return ur(e)==="[object Object]"}function lf(e){return ur(e)==="[object RegExp]"}function ji(e){return ur(e)==="[object Function]"}function ff(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ts={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function df(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ts.hasOwnProperty(n)},!1)}const pf={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},hf="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",gf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Ef(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Zi(){return function(e,t){t.normalize(e)}}function Vu(e){const t=e.re=sf(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(hf),n.push(t.src_xn),t.src_tlds=n.join("|");function u(o){return o.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(u(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(u(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(u(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function i(o,c){throw new Error(`(LinkifyIt) Invalid schema "${o}": ${c}`)}Object.keys(e.__schemas__).forEach(function(o){const c=e.__schemas__[o];if(c===null)return;const l={validate:null,link:null};if(e.__compiled__[o]=l,af(c)){lf(c.validate)?l.validate=Ef(c.validate):ji(c.validate)?l.validate=c.validate:i(o,c),ji(c.normalize)?l.normalize=c.normalize:c.normalize?i(o,c):l.normalize=Zi();return}if(cf(c)){r.push(o);return}i(o,c)}),r.forEach(function(o){e.__compiled__[e.__schemas__[o]]&&(e.__compiled__[o].validate=e.__compiled__[e.__schemas__[o]].validate,e.__compiled__[o].normalize=e.__compiled__[e.__schemas__[o]].normalize)}),e.__compiled__[""]={validate:null,normalize:Zi()};const s=Object.keys(e.__compiled__).filter(function(o){return o.length>0&&e.__compiled__[o]}).map(ff).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function Ss(e,t,n,u){const r=e.slice(n,u);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=u,this.raw=r,this.text=r,this.url=r}function _t(e,t){if(!(this instanceof _t))return new _t(e,t);t||df(e)&&(t=e,e={}),this.__opts__=zr({},Ts,t),this.__schemas__=zr({},pf,e),this.__compiled__={},this.__tlds__=gf,this.__tlds_replaced__=!1,this.re={},Vu(this)}_t.prototype.add=function(t,n){return this.__schemas__[t]=n,Vu(this),this};_t.prototype.set=function(t){return this.__opts__=zr(this.__opts__,t),this};_t.prototype.test=function(t){if(!t.length)return!1;let n,u;if(this.re.schema_test.test(t)){for(u=this.re.schema_search,u.lastIndex=0;(n=u.exec(t))!==null;)if(this.testSchemaAt(t,n[2],u.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};_t.prototype.pretest=function(t){return this.re.pretest.test(t)};_t.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};_t.prototype.match=function(t){const n=[],u=[],r=[],i=[];let s,o,c;function l(E,_){return E?_?E.index!==_.index?E.index<_.index?E:_:E.lastIndex>=_.lastIndex?E:_:E:_}if(!t.length)return null;if(this.re.schema_test.test(t))for(c=this.re.schema_search,c.lastIndex=0;(s=c.exec(t))!==null;)o=this.testSchemaAt(t,s[2],c.lastIndex),o&&u.push({schema:s[2],index:s.index+s[1].length,lastIndex:s.index+s[0].length+o});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(c=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)r.push({schema:"",index:s.index+s[1].length,lastIndex:s.index+s[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(c=this.re.email_fuzzy_global,c.lastIndex=0;(s=c.exec(t))!==null;)i.push({schema:"mailto:",index:s.index+s[1].length,lastIndex:s.index+s[0].length});const d=[0,0,0];let h=0;for(;;){const E=[u[d[0]],i[d[1]],r[d[2]]],_=l(l(E[0],E[1]),E[2]);if(!_)break;if(_===E[0]?d[0]++:_===E[1]?d[1]++:d[2]++,_.index<h)continue;const g=new Ss(t,_.schema,_.index,_.lastIndex);this.__compiled__[g.schema].normalize(g,this),n.push(g),h=_.lastIndex}return n.length?n:null};_t.prototype.matchAtStart=function(t){if(!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);if(!u)return null;const r=new Ss(t,n[2],n.index+n[1].length,n.index+n[0].length+u);return this.__compiled__[r.schema].normalize(r,this),r};_t.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,i){return u!==i[r-1]}).reverse(),Vu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Vu(this),this)};_t.prototype.normalize=function(t){t.schema||(t.url=`http://${t.url}`),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url=`mailto:${t.url}`)};_t.prototype.onCompile=function(){};const Mn=2147483647,Ut=36,Ei=1,du=26,bf=38,_f=700,Cs=72,Ns=128,Rs="-",mf=/^xn--/,Af=/[^\0-\x7F]/,Tf=/[\x2E\u3002\uFF0E\uFF61]/g,Sf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ar=Ut-Ei,Bt=Math.floor,Tr=String.fromCharCode;function cn(e){throw new RangeError(Sf[e])}function Cf(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function Is(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Tf,".");const r=e.split("."),i=Cf(r,t).join(".");return u+i}function Os(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((r&1023)<<10)+(i&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const Nf=e=>String.fromCodePoint(...e),Rf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ut},Qi=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ys=function(e,t,n){let u=0;for(e=n?Bt(e/_f):e>>1,e+=Bt(e/t);e>Ar*du>>1;u+=Ut)e=Bt(e/Ar);return Bt(u+(Ar+1)*e/(e+bf))},xs=function(e){const t=[],n=e.length;let u=0,r=Ns,i=Cs,s=e.lastIndexOf(Rs);s<0&&(s=0);for(let o=0;o<s;++o)e.charCodeAt(o)>=128&&cn("not-basic"),t.push(e.charCodeAt(o));for(let o=s>0?s+1:0;o<n;){const c=u;for(let d=1,h=Ut;;h+=Ut){o>=n&&cn("invalid-input");const E=Rf(e.charCodeAt(o++));E>=Ut&&cn("invalid-input"),E>Bt((Mn-u)/d)&&cn("overflow"),u+=E*d;const _=h<=i?Ei:h>=i+du?du:h-i;if(E<_)break;const g=Ut-_;d>Bt(Mn/g)&&cn("overflow"),d*=g}const l=t.length+1;i=ys(u-c,l,c==0),Bt(u/l)>Mn-r&&cn("overflow"),r+=Bt(u/l),u%=l,t.splice(u++,0,r)}return String.fromCodePoint(...t)},Ds=function(e){const t=[];e=Os(e);const n=e.length;let u=Ns,r=0,i=Cs;for(const c of e)c<128&&t.push(Tr(c));const s=t.length;let o=s;for(s&&t.push(Rs);o<n;){let c=Mn;for(const d of e)d>=u&&d<c&&(c=d);const l=o+1;c-u>Bt((Mn-r)/l)&&cn("overflow"),r+=(c-u)*l,u=c;for(const d of e)if(d<u&&++r>Mn&&cn("overflow"),d===u){let h=r;for(let E=Ut;;E+=Ut){const _=E<=i?Ei:E>=i+du?du:E-i;if(h<_)break;const g=h-_,N=Ut-_;t.push(Tr(Qi(_+g%N,0))),h=Bt(g/N)}t.push(Tr(Qi(h,0))),i=ys(r,l,o===s),r=0,++o}++r,++u}return t.join("")},If=function(e){return Is(e,function(t){return mf.test(t)?xs(t.slice(4).toLowerCase()):t})},Of=function(e){return Is(e,function(t){return Af.test(t)?"xn--"+Ds(t):t})},ks={version:"2.3.1",ucs2:{decode:Os,encode:Nf},decode:xs,encode:Ds,toASCII:Of,toUnicode:If},yf={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},xf={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Df={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},kf={default:yf,zero:xf,commonmark:Df},vf=/^(vbscript|javascript|file|data):/,wf=/^data:image\/(gif|png|jpeg|webp);/;function Lf(e){const t=e.trim().toLowerCase();return vf.test(t)?wf.test(t):!0}const vs=["http:","https:","mailto:"];function Mf(e){const t=li(e,!0);if(t.hostname&&(!t.protocol||vs.indexOf(t.protocol)>=0))try{t.hostname=ks.toASCII(t.hostname)}catch{}return Eu(ai(t))}function Ff(e){const t=li(e,!0);if(t.hostname&&(!t.protocol||vs.indexOf(t.protocol)>=0))try{t.hostname=ks.toUnicode(t.hostname)}catch{}return Pn(ai(t),Pn.defaultChars+"%")}function Rt(e,t){if(!(this instanceof Rt))return new Rt(e,t);t||di(e)||(t=e||{},e="default"),this.inline=new _u,this.block=new nr,this.core=new hi,this.renderer=new Hn,this.linkify=new _t,this.validateLink=Lf,this.normalizeLink=Mf,this.normalizeLinkText=Ff,this.utils=Fl,this.helpers=Ju({},Hl),this.options={},this.configure(e),t&&this.set(t)}Rt.prototype.set=function(e){return Ju(this.options,e),this};Rt.prototype.configure=function(e){const t=this;if(di(e)){const n=e;if(e=kf[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Rt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};Rt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};Rt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Rt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Rt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Rt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Rt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */function Ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,u=Array(t);n<t;n++)u[n]=e[n];return u}function Pf(e){if(Array.isArray(e))return e}function Uf(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var u,r,i,s,o=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(u=i.call(n)).done)&&(o.push(u.value),o.length!==t);c=!0);}catch(d){l=!0,r=d}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}function Bf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function Hf(e,t){return Pf(e)||Uf(e,t)||Gf(e,t)||Bf()}function Gf(e,t){if(e){if(typeof e=="string")return Ji(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ji(e,t):void 0}}const ws=Object.entries,eo=Object.setPrototypeOf,$f=Object.isFrozen,Ls=Object.getPrototypeOf,Ms=Object.getOwnPropertyDescriptor;let ut=Object.freeze,ct=Object.seal,vn=Object.create,Fs=typeof Reflect<"u"&&Reflect,Vr=Fs.apply,qr=Fs.construct;ut||(ut=function(t){return t});ct||(ct=function(t){return t});Vr||(Vr=function(t,n){for(var u=arguments.length,r=new Array(u>2?u-2:0),i=2;i<u;i++)r[i-2]=arguments[i];return t.apply(n,r)});qr||(qr=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return new t(...u)});const Yt=He(Array.prototype.forEach),zf=He(Array.prototype.lastIndexOf),to=He(Array.prototype.pop),Kn=He(Array.prototype.push),Vf=He(Array.prototype.slice),qf=He(Array.prototype.splice),Fn=Array.isArray,Sr=Ps(Set),Cr=He(Set.prototype.add),Xn=He(Set.prototype.has),An=He(String.prototype.toLowerCase),Nr=He(String.prototype.toString),no=He(String.prototype.match),jn=He(String.prototype.replace),uo=He(String.prototype.indexOf),Wf=He(String.prototype.trim),Yf=He(Number.prototype.toString),Kf=He(Boolean.prototype.toString),ro=typeof BigInt>"u"?null:He(BigInt.prototype.toString),io=typeof Symbol>"u"?null:He(Symbol.prototype.toString),gt=He(Object.prototype.hasOwnProperty),Zn=He(Object.prototype.toString),ot=He(RegExp.prototype.test),Kt=Ps(TypeError);function He(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return Vr(e,t,u)}}function Ps(e){return function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];return qr(e,n)}}function Se(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;if(eo&&eo(e,null),!Fn(t))return e;let u=t.length;for(;u--;){let r=t[u];if(typeof r=="string"){const i=n(r);i!==r&&($f(t)||(t[u]=i),r=i)}e[r]=!0}return e}function Xf(e){for(let t=0;t<e.length;t++)gt(e,t)||(e[t]=null);return e}function bt(e){const t=vn(null);for(const u of ws(e)){var n=Hf(u,2);const r=n[0],i=n[1];gt(e,r)&&(Fn(i)?t[r]=Xf(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=bt(i):t[r]=i)}return t}function jf(e){switch(typeof e){case"string":return e;case"number":return Yf(e);case"boolean":return Kf(e);case"bigint":return ro?ro(e):"0";case"symbol":return io?io(e):"Symbol()";case"undefined":return Zn(e);case"function":case"object":{if(e===null)return Zn(e);const t=e,n=Ct(t,"toString");if(typeof n=="function"){const u=n(t);return typeof u=="string"?u:Zn(u)}return Zn(e)}default:return Zn(e)}}function Ct(e,t){for(;e!==null;){const u=Ms(e,t);if(u){if(u.get)return He(u.get);if(typeof u.value=="function")return He(u.value)}e=Ls(e)}function n(){return null}return n}function Zf(e,t){for(;e!==null;){const n=Ms(e,t);if(n)return n.get?He(n.get):null;e=Ls(e)}return null}function Qf(e){try{return ot(e,""),!0}catch{return!1}}const oo=ut(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Rr=ut(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ir=ut(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jf=ut(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Or=ut(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ed=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),so=ut(["#text"]),co=ut(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),yr=ut(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ao=ut(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),vu=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),td=ct(/{{[\w\W]*|^[\w\W]*}}/g),nd=ct(/<%[\w\W]*|^[\w\W]*%>/g),ud=ct(/\${[\w\W]*/g),rd=ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),id=ct(/^aria-[\-\w]+$/),lo=ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),od=ct(/^(?:\w+script|data):/i),sd=ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cd=ct(/^html$/i),ad=ct(/^[a-z][.\w]*(-[.\w]+)+$/i),xr=ct(/<[/\w!]/g),fo=ct(/<[/\w]/g),ld=ct(/<\/no(script|embed|frames)/i),po=ct(/\/>/i),Ke={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},fd=ut(Se({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),dd=function(){return typeof window>"u"?null:window},pd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let u=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(u=n.getAttribute(r));const i="dompurify"+(u?"#"+u:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ho=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},on=function(t,n,u,r){return gt(t,n)&&Fn(t[n])?Se(r.base?bt(r.base):{},t[n],r.transform):u},Dr=function(t,n,u){const r=gt(t,n)?t[n]:void 0;return r&&typeof r=="object"?bt(r):u()};function Us(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dd();const t=x=>Us(x);if(t.version="3.4.17",t.removed=[],!e||!e.document||e.document.nodeType!==Ke.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const u=n,r=u.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,s=e.Node,o=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const l=e.DOMParser,d=e.trustedTypes,h=o.prototype,E=Ct(h,"cloneNode"),_=Ct(h,"remove"),g=Ct(h,"removeAttributeNode"),N=Ct(h,"nextSibling"),R=Ct(h,"childNodes"),y=Ct(h,"parentNode"),D=Ct(h,"shadowRoot"),L=Ct(h,"attributes"),v=s&&s.prototype?Ct(s.prototype,"nodeType"):null,w=s&&s.prototype?Ct(s.prototype,"nodeName"):null,M=s&&s.prototype?Ct(s.prototype,"ownerDocument"):null,G=function(f){return v?v(f):f.nodeType},Z=function(f){return w?w(f):f.nodeName},re=Zf(h,"namespaceURI"),ie=function(f){return re?re(f):f.namespaceURI};if(typeof i=="function"){const x=n.createElement("template");x.content&&x.content.ownerDocument&&(n=x.content.ownerDocument)}let le,$="",te,X=!1,ne=0;const k=function(){if(ne>0)throw Kt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},V=function(f){k(),ne++;try{return le.createHTML(f)}finally{ne--}},ue=function(f){k(),ne++;try{return le.createScriptURL(f)}finally{ne--}},Ae=function(){return X||(te=pd(d,r),X=!0),te},pe=n,xe=pe.implementation,Te=pe.createNodeIterator,Ge=pe.createDocumentFragment,rt=pe.getElementsByTagName,It=u.importNode;let be=ho();t.isSupported=typeof ws=="function"&&typeof y=="function"&&xe&&xe.createHTMLDocument!==void 0;const B=td,Ue=nd,Be=ud,qe=rd,We=id,Xe=od,Ot=sd,pn=ad;let jt=lo,Ie=null;const $t=Se({},[...oo,...Rr,...Ir,...Or,...so]);let Oe=null;const zt=Se({},[...co,...yr,...ao,...vu]);let S=Object.seal(vn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,Q=null;const se=Object.seal(vn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,ve=!0,Je=!1,yt=!0,Ye=!1,et=!0,je=!1,mt=!1,Vt=null,Zt=null,Qt=!1,Lt=!1,Mt=!1,qt=!1,Jt=!0,en=!1;const hn="user-content-";let tn=!0,T=!1,J=null,p={},A=null;const F=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let j=null;const Ne=Se({},["audio","video","img","source","image","track"]);let we=null;const W=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),z="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",De="http://www.w3.org/1999/xhtml";let ke=De,Wt=!1,gn=null;const Gn=Se({},[z,oe,De],Nr),mu=ut(["mi","mo","mn","ms","mtext"]);let En=Se({},mu);const Au=ut(["annotation-xml"]);let $n=Se({},Au);const rr=Se({},["title","style","font","a","script"]);let nn=null;const Cn=["application/xhtml+xml","text/html"],ir="text/html";let $e=null,un=null;const Ft=n.createElement("form"),zn=function(f){return f instanceof RegExp||f instanceof Function},Nn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(un&&un===f)return;(!f||typeof f!="object")&&(f={}),f=bt(f),nn=Cn.indexOf(f.PARSER_MEDIA_TYPE)===-1?ir:f.PARSER_MEDIA_TYPE,$e=nn==="application/xhtml+xml"?Nr:An,Ie=on(f,"ALLOWED_TAGS",$t,{transform:$e}),Oe=on(f,"ALLOWED_ATTR",zt,{transform:$e}),gn=on(f,"ALLOWED_NAMESPACES",Gn,{transform:Nr}),we=on(f,"ADD_URI_SAFE_ATTR",W,{transform:$e,base:W}),j=on(f,"ADD_DATA_URI_TAGS",Ne,{transform:$e,base:Ne}),A=on(f,"FORBID_CONTENTS",F,{transform:$e}),U=on(f,"FORBID_TAGS",bt({}),{transform:$e}),Q=on(f,"FORBID_ATTR",bt({}),{transform:$e}),p=gt(f,"USE_PROFILES")?f.USE_PROFILES&&typeof f.USE_PROFILES=="object"?bt(f.USE_PROFILES):f.USE_PROFILES:!1,_e=f.ALLOW_ARIA_ATTR!==!1,ve=f.ALLOW_DATA_ATTR!==!1,Je=f.ALLOW_UNKNOWN_PROTOCOLS||!1,yt=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ye=f.SAFE_FOR_TEMPLATES||!1,et=f.SAFE_FOR_XML!==!1,je=f.WHOLE_DOCUMENT||!1,Lt=f.RETURN_DOM||!1,Mt=f.RETURN_DOM_FRAGMENT||!1,qt=f.RETURN_TRUSTED_TYPE||!1,Qt=f.FORCE_BODY||!1,Jt=f.SANITIZE_DOM!==!1,en=f.SANITIZE_NAMED_PROPS||!1,tn=f.KEEP_CONTENT!==!1,T=f.IN_PLACE||!1,jt=Qf(f.ALLOWED_URI_REGEXP)?f.ALLOWED_URI_REGEXP:lo,ke=typeof f.NAMESPACE=="string"?f.NAMESPACE:De,En=Dr(f,"MATHML_TEXT_INTEGRATION_POINTS",()=>Se({},mu)),$n=Dr(f,"HTML_INTEGRATION_POINTS",()=>Se({},Au));const b=Dr(f,"CUSTOM_ELEMENT_HANDLING",()=>vn(null));if(S=vn(null),gt(b,"tagNameCheck")&&zn(b.tagNameCheck)&&(S.tagNameCheck=b.tagNameCheck),gt(b,"attributeNameCheck")&&zn(b.attributeNameCheck)&&(S.attributeNameCheck=b.attributeNameCheck),gt(b,"allowCustomizedBuiltInElements")&&typeof b.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=b.allowCustomizedBuiltInElements),ct(S),Ye&&(ve=!1),Mt&&(Lt=!0),p&&(Ie=Se({},so),Oe=vn(null),p.html===!0&&(Se(Ie,oo),Se(Oe,co)),p.svg===!0&&(Se(Ie,Rr),Se(Oe,yr),Se(Oe,vu)),p.svgFilters===!0&&(Se(Ie,Ir),Se(Oe,yr),Se(Oe,vu)),p.mathMl===!0&&(Se(Ie,Or),Se(Oe,ao),Se(Oe,vu))),se.tagCheck=null,se.attributeCheck=null,gt(f,"ADD_TAGS")&&(typeof f.ADD_TAGS=="function"?se.tagCheck=f.ADD_TAGS:Fn(f.ADD_TAGS)&&(Ie===$t&&(Ie=bt(Ie)),Se(Ie,f.ADD_TAGS,$e))),gt(f,"ADD_ATTR")&&(typeof f.ADD_ATTR=="function"?se.attributeCheck=f.ADD_ATTR:Fn(f.ADD_ATTR)&&(Oe===zt&&(Oe=bt(Oe)),Se(Oe,f.ADD_ATTR,$e))),gt(f,"ADD_FORBID_CONTENTS")&&Fn(f.ADD_FORBID_CONTENTS)&&(A===F&&(A=bt(A)),Se(A,f.ADD_FORBID_CONTENTS,$e)),tn&&(Ie["#text"]=!0),je&&Se(Ie,["html","head","body"]),Ie.table&&(Se(Ie,["tbody"]),delete U.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const I=le;le=f.TRUSTED_TYPES_POLICY;try{$=V("")}catch(O){throw le=I,O}}else f.TRUSTED_TYPES_POLICY===null?(le=void 0,$=""):(le===void 0&&(le=Ae()),le&&typeof $=="string"&&($=V("")));ut&&ut(f),un=f},Tu=Se({},[...Rr,...Ir,...Jf]),Su=Se({},[...Or,...ed]),or=function(f,b,I){return b.namespaceURI===De?f==="svg":b.namespaceURI===z?f==="svg"&&(I==="annotation-xml"||En[I]):!!Tu[f]},Rn=function(f,b,I){return b.namespaceURI===De?f==="math":b.namespaceURI===oe?f==="math"&&$n[I]:!!Su[f]},sr=function(f,b,I){return b.namespaceURI===oe&&!$n[I]||b.namespaceURI===z&&!En[I]?!1:!Su[f]&&(rr[f]||!Tu[f])},P=function(f){const b=ie(f),I=An(Z(f)),O=y(f);let ee,ae;return O&&G(O)===Ke.element?(ee={namespaceURI:ie(O)},ae=An(Z(O))):(ee={namespaceURI:ke},ae="template"),gn[b]?b===oe?or(I,ee,ae):b===z?Rn(I,ee,ae):b===De?sr(I,ee,ae):!!(nn==="application/xhtml+xml"&&gn[b]):!1},q=function(f){Kn(t.removed,{element:f});try{y(f).removeChild(f)}catch{if(_(f),!y(f))throw Kt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},he=function(f,b,I){try{g(f,b)}catch{try{f.removeAttribute(I)}catch{}}},ye=function(f){rn(f);const b=R(f);b&&Yt(Vf(b),O=>{try{_(O)}catch{}});const I=G(f)===Ke.element?L(f):null;if(I)for(let O=I.length-1;O>=0;--O){const ee=I[O],ae=ee&&ee.name;typeof ae=="string"&&he(f,ee,ae)}},Le=function(f,b,I){if(!I)try{I=b.getAttributeNode(f)}catch{I=null}Kn(t.removed,{attribute:I||null,from:b});try{I?g(b,I):b.removeAttribute(f)}catch{try{b.removeAttribute(f)}catch{}}if(f==="is")if(Lt||Mt)try{q(b)}catch{}else try{b.setAttribute(f,"")}catch{}},dt=function(f){const b=L(f);if(b)for(let I=b.length-1;I>=0;--I){const O=b[I],ee=O&&O.name;typeof ee!="string"||Oe[$e(ee)]||he(f,O,ee)}},At=function(f,b){let I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const O=[f];for(;O.length>0;){const ee=O.pop();if(b(ee)===!1)continue;if(I&&G(ee)===Ke.element){const Ee=D(ee);xt(Ee)&&O.push(Ee)}const ae=R(ee);if(ae)for(let Ee=ae.length-1;Ee>=0;--Ee)O.push(ae[Ee])}},rn=function(f){At(f,b=>{G(b)===Ke.element&&dt(b)})},it=function(f){const b=[];return At(f,I=>{b.push(I)},!0),b},Tt=function(f,b){const I=Sr();Yt(it(f),O=>{G(O)===Ke.element&&Cr(I,O)}),Yt(b,O=>{G(O)===Ke.element&&!Xn(I,O)&&dt(O)})},Vn=function(f,b){let I=!1;return Yt(t.removed,O=>{O.element&&(I=I||O.element===f,rn(O.element))}),Tt(f,b),I},Cu=8,Nu=function(f,b){const I=J;let O=null;const ee=()=>(O||(O=Sr(),Yt(b,ae=>{Cr(O,ae)})),O);for(let ae=0;;ae++){const Ee=it(f),Qe=[f];let Pt=!1;if(Yt(Ee,lt=>{G(lt)===Ke.documentFragment?Kn(Qe,lt):!Pt&&!Xn(I,lt)&&(Pt=Xn(ee(),lt))}),!Pt)return;if(ae>=Cu)throw Kt("the tree kept changing during in-place sanitization; refusing to return it");Yt(Qe,(lt,pt)=>{cr(lt,pt>0,f,ee())})}},cr=function(f,b,I,O){const ee=In(f);let ae;for(;ae=ee.nextNode();)!Xn(O,ae)||Xn(J,ae)||(b&&ge(be.uponSanitizeShadowNode,ae,null),Y(ae,I),dr(ae,I),xt(ae.content)&&Yn(ae.content))},ar=function(f){J&&Cr(J,f)},Ru=function(f,b){return et?f==="patchsrc"?!0:f==="for"&&b!=="label"&&b!=="output":!1},lr=function(f){et&&At(f,b=>{const I=G(b);if(I===Ke.processingInstruction||I===Ke.comment&&ot(fo,b.data)){try{_(b)}catch{}return!1}if(I===Ke.element){const O=b,ee=$e(Z(b));try{O.hasAttribute&&O.hasAttribute("patchsrc")&&O.removeAttribute("patchsrc"),O.hasAttribute&&O.hasAttribute("for")&&Ru("for",ee)&&O.removeAttribute("for")}catch{}}return!0})},bn=function(f){let b=null,I=null;if(Qt)f="<remove></remove>"+f;else{const ae=no(f,/^[\r\n\t ]+/);I=ae&&ae[0]}nn==="application/xhtml+xml"&&ke===De&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const O=le?V(f):f;if(ke===De)try{b=new l().parseFromString(O,nn)}catch{}if(!b||!b.documentElement){b=xe.createDocument(ke,"template",null);try{b.documentElement.innerHTML=Wt?$:O}catch{}}const ee=b.body||b.documentElement;return f&&I&&ee.insertBefore(n.createTextNode(I),ee.childNodes[0]||null),ke===De?rt.call(b,je?"html":"body")[0]:je?b.documentElement:ee},In=function(f){const b=M?M(f):f.ownerDocument;return Te.call(b||f,f,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},at=function(f){return f=jn(f,B," "),f=jn(f,Ue," "),f=jn(f,Be," "),f},qn=function(f){var b;On(f);const I=(b=f.querySelectorAll)===null||b===void 0?void 0:b.call(f,"template");I&&Yt(I,O=>{xt(O.content)&&qn(O.content)})},On=function(f){f.normalize();const b=M?M(f):f.ownerDocument,I=Te.call(b||f,f,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let O=I.nextNode();for(;O;)O.data=at(O.data),O=I.nextNode()},ce=function(f){const b=w?w(f):null;return typeof b!="string"||$e(b)!=="form"?!1:typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||f.attributes!==L(f)||typeof f.removeAttribute!="function"||typeof f.removeAttributeNode!="function"||typeof f.getAttributeNode!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function"||f.nodeType!==v(f)||f.childNodes!==R(f)},xt=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return v(f)===Ke.documentFragment}catch{return!1}},ze=function(f){if(!v||typeof f!="object"||f===null)return!1;try{return typeof v(f)=="number"}catch{return!1}};function ge(x,f,b){x.length!==0&&Yt(x,I=>{I.call(t,f,b,un)})}const yn=function(f,b){return!!(et&&f.hasChildNodes()&&!ze(f.firstElementChild)&&ot(xr,f.textContent)&&ot(xr,f.innerHTML)||et&&fd[b]&&G(f)===Ke.element&&ie(f)===De&&(ze(f.firstElementChild)||typeof f.textContent=="string"&&ot(xr,f.textContent))||f.nodeType===Ke.processingInstruction||et&&f.nodeType===Ke.comment&&ot(fo,f.data))},St=function(f,b){if(f instanceof RegExp)return ot(f,b);if(f instanceof Function){for(var I=arguments.length,O=new Array(I>2?I-2:0),ee=2;ee<I;ee++)O[ee-2]=arguments[ee];return!!f(b,...O)}return!1},Wn=function(f,b,I){if(!U[b]&&Ze(b)&&St(S.tagNameCheck,b))return!1;if(tn&&!A[b]&&!A[An(b)]){const O=y(f),ee=R(f);if(ee&&O){const ae=ee.length;for(let Ee=ae-1;Ee>=0;--Ee){const Qe=f===I?E(ee[Ee],!0):ee[Ee];O.insertBefore(Qe,N(f))}}}return q(f),!0},xn=function(f,b,I,O){return f.length===0?b:b===I||b===O?bt(b):b},H=function(f,b){return f===b||y(f)!==null?!1:(T&&rn(f),!0)},Y=function(f,b){if(ar(f),ge(be.beforeSanitizeElements,f,null),H(f,b))return!0;if(ce(f))return q(f),!0;const I=$e(Z(f));if(Ie=xn(be.uponSanitizeElement,Ie,$t,Vt),ge(be.uponSanitizeElement,f,{tagName:I,allowedTags:Ie}),H(f,b))return!0;if(yn(f,I))return q(f),!0;if(U[I]||!(se.tagCheck instanceof Function&&se.tagCheck(I))&&!Ie[I]){const O=Wn(f,I,b);return O===!1&&(ge(be.afterSanitizeElements,f,null),H(f,b))?!0:O}if(G(f)===Ke.element&&!P(f)||(I==="noscript"||I==="noembed"||I==="noframes")&&ot(ld,f.innerHTML))return q(f),!0;if(Ye&&f.nodeType===Ke.text){const O=at(f.textContent);f.textContent!==O&&(Kn(t.removed,{element:f.cloneNode()}),f.textContent=O)}return ge(be.afterSanitizeElements,f,null),H(f,b)},de=function(f,b,I){if(Q[b]||Ru(b,f)||Jt&&(b==="id"||b==="name")&&(I in n||I in Ft))return!1;const O=Oe[b]||se.attributeCheck instanceof Function&&se.attributeCheck(b,f);return ve&&ot(qe,b)||_e&&ot(We,b)?!0:O?we[b]||ot(jt,jn(I,Ot,""))||(b==="src"||b==="xlink:href"||b==="href")&&f!=="script"&&uo(I,"data:")===0&&j[f]||Je&&!ot(Xe,jn(I,Ot,""))?!0:!I:Ze(f)&&St(S.tagNameCheck,f)&&St(S.attributeNameCheck,b,f)||b==="is"&&S.allowCustomizedBuiltInElements&&St(S.tagNameCheck,I)},Re=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ze=function(f){return!Re[An(f)]&&ot(pn,f)},Dt=function(f,b,I,O){if(le&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!I)switch(d.getAttributeType(f,b)){case"TrustedHTML":return V(O);case"TrustedScriptURL":return ue(O)}return O},fr=function(f,b,I,O){try{return I?f.setAttributeNS(I,b,O):f.setAttribute(b,O),ce(f)?(q(f),!1):!0}catch{return Le(b,f),!1}},Iu=function(f,b){return et&&ot(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,b)?!0:An(f)==="attributename"&&no(b,"href")!==null},dr=function(f,b){if(ge(be.beforeSanitizeAttributes,f,null),H(f,b))return;const I=f.attributes;if(!I||ce(f))return;Oe=xn(be.uponSanitizeAttribute,Oe,zt,Zt);const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe,forceKeepAttr:void 0};let ee=I.length;const ae=$e(f.nodeName);for(;ee--;){const Ee=I[ee],Qe=Ee.name,Pt=Ee.namespaceURI,lt=Ee.value,pt=$e(Qe),Dn=lt;let ht=Qe==="value"?Dn:Wf(Dn),Ai=!1;if(O.attrName=pt,O.attrValue=ht,O.keepAttr=!0,O.forceKeepAttr=void 0,ge(be.uponSanitizeAttribute,f,O),ht=O.attrValue,en&&(pt==="id"||pt==="name")&&uo(ht,hn)!==0&&(Le(Qe,f,Ee),ht=hn+ht,Ai=!0),Iu(Qe,ht)){Le(Qe,f,Ee);continue}if(!O.forceKeepAttr){if(!O.keepAttr){Le(Qe,f,Ee);continue}if(!yt&&ot(po,ht)){Le(Qe,f,Ee);continue}if(Ye&&(ht=at(ht)),!de(ae,pt,ht)){Le(Qe,f,Ee);continue}ht=Dt(ae,pt,Pt,ht),ht!==Dn&&fr(f,Qe,Pt,ht)&&Ai&&to(t.removed)}}ge(be.afterSanitizeAttributes,f,null),H(f,b)},Yn=function(f){let b=null;const I=In(f);for(ge(be.beforeSanitizeShadowDOM,f,null);b=I.nextNode();)if(ge(be.uponSanitizeShadowNode,b,null),Y(b,f),dr(b,f),xt(b.content)&&Yn(b.content),G(b)===Ke.element){const O=D(b);xt(O)&&(pr(O),Yn(O))}Ye&&On(f),ge(be.afterSanitizeShadowDOM,f,null)},pr=function(f){const b=[{node:f,shadow:null}];for(;b.length>0;){const I=b.pop();if(I.shadow){Yn(I.shadow);continue}const O=I.node,ee=G(O)===Ke.element,ae=R(O);if(ae)for(let Ee=ae.length-1;Ee>=0;--Ee)b.push({node:ae[Ee],shadow:null});if(ee){const Ee=w?w(O):null;if(typeof Ee=="string"&&$e(Ee)==="template"){const Qe=O.content;xt(Qe)&&b.push({node:Qe,shadow:null})}}if(ee){const Ee=D(O);xt(Ee)&&b.push({node:null,shadow:Ee},{node:Ee,shadow:null})}}};return t.sanitize=function(x){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,I=null,O=null,ee=null;if(Wt=!x,Wt&&(x="<!-->"),typeof x!="string"&&!ze(x)&&(x=jf(x),typeof x!="string"))throw Kt("dirty is not a string, aborting");if(!t.isSupported)return x;mt?(Ie=Vt,Oe=Zt):Nn(f),(be.uponSanitizeElement.length>0||be.uponSanitizeAttribute.length>0)&&(Ie=bt(Ie)),be.uponSanitizeAttribute.length>0&&(Oe=bt(Oe)),t.removed=[];const ae=T&&typeof x!="string"&&ze(x);let Ee=[];const Qe=J;if(ae){lr(x);const pt=Z(x);if(typeof pt=="string"){const Dn=$e(pt);if(!Ie[Dn]||U[Dn])throw ye(x),Kt("root node is forbidden and cannot be sanitized in-place")}if(ce(x))throw ye(x),Kt("root node is clobbered and cannot be sanitized in-place");Ee=it(x),J=Sr()}else if(ze(x))b=bn("<!---->"),I=b.ownerDocument.importNode(x,!0),I.nodeType===Ke.element&&I.nodeName==="BODY"||I.nodeName==="HTML"?b=I:b.appendChild(I),pr(b);else{if(!Lt&&!Ye&&!je&&x.indexOf("<")===-1)return le&&qt?V(x):x;if(b=bn(x),!b)return Lt?null:qt?$:""}b&&Qt&&q(b.firstChild);const Pt=ae?x:b;try{ae&&pr(x);const pt=In(Pt);for(;O=pt.nextNode();)Y(O,Pt),dr(O,Pt),xt(O.content)&&Yn(O.content);ae&&Nu(x,Ee)}catch(pt){throw ae&&(ye(x),Vn(x,Ee)),pt}finally{J=Qe}if(ae){if(Vn(x,Ee))throw Kt("a node selected for removal could not be safely returned; refusing to sanitize in place");return Ye&&qn(x),x}if(Lt){if(Ye&&qn(b),Mt)for(ee=Ge.call(b.ownerDocument);b.firstChild;)ee.appendChild(b.firstChild);else ee=b;return(Oe.shadowroot||Oe.shadowrootmode)&&(ee=It.call(u,ee,!0)),ee}let lt=je?b.outerHTML:b.innerHTML;return je&&Ie["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&ot(cd,b.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
|
|
47
|
-
`+lt),Ye&&(lt=at(lt)),le&&qt?V(lt):lt},t.setConfig=function(){let x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nn(x),mt=!0,Vt=Ie,Zt=Oe},t.clearConfig=function(){un=null,mt=!1,Vt=null,Zt=null,le=te,$=""},t.isValidAttribute=function(x,f,b){un||Nn({});const I=$e(x),O=$e(f);return typeof b=="string"&&(Iu(f,b)||!yt&&ot(po,b))?!1:de(I,O,b)},t.addHook=function(x,f){typeof f=="function"&>(be,x)&&Kn(be[x],f)},t.removeHook=function(x,f){if(gt(be,x)){if(f!==void 0){const b=zf(be[x],f);return b===-1?void 0:qf(be[x],b,1)[0]}return to(be[x])}},t.removeHooks=function(x){gt(be,x)&&(be[x]=[])},t.removeAllHooks=function(){be=ho()},t}var hd=Us();function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kr,go;function Ed(){if(go)return kr;go=1;function e(p){return p instanceof Map?p.clear=p.delete=p.set=function(){throw new Error("map is read-only")}:p instanceof Set&&(p.add=p.clear=p.delete=function(){throw new Error("set is read-only")}),Object.freeze(p),Object.getOwnPropertyNames(p).forEach(A=>{const F=p[A],j=typeof F;(j==="object"||j==="function")&&!Object.isFrozen(F)&&e(F)}),p}class t{constructor(A){A.data===void 0&&(A.data={}),this.data=A.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(p){return p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(p,...A){const F=Object.create(null);for(const j in p)F[j]=p[j];return A.forEach(function(j){for(const Ne in j)F[Ne]=j[Ne]}),F}const r="</span>",i=p=>!!p.scope,s=(p,{prefix:A})=>{if(p.startsWith("language:"))return p.replace("language:","language-");if(p.includes(".")){const F=p.split(".");return[`${A}${F.shift()}`,...F.map((j,Ne)=>`${j}${"_".repeat(Ne+1)}`)].join(" ")}return`${A}${p}`};class o{constructor(A,F){this.buffer="",this.classPrefix=F.classPrefix,A.walk(this)}addText(A){this.buffer+=n(A)}openNode(A){if(!i(A))return;const F=s(A.scope,{prefix:this.classPrefix});this.span(F)}closeNode(A){i(A)&&(this.buffer+=r)}value(){return this.buffer}span(A){this.buffer+=`<span class="${A}">`}}const c=(p={})=>{const A={children:[]};return Object.assign(A,p),A};class l{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(A){this.top.children.push(A)}openNode(A){const F=c({scope:A});this.add(F),this.stack.push(F)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(A){return this.constructor._walk(A,this.rootNode)}static _walk(A,F){return typeof F=="string"?A.addText(F):F.children&&(A.openNode(F),F.children.forEach(j=>this._walk(A,j)),A.closeNode(F)),A}static _collapse(A){typeof A!="string"&&A.children&&(A.children.every(F=>typeof F=="string")?A.children=[A.children.join("")]:A.children.forEach(F=>{l._collapse(F)}))}}class d extends l{constructor(A){super(),this.options=A}addText(A){A!==""&&this.add(A)}startScope(A){this.openNode(A)}endScope(){this.closeNode()}__addSublanguage(A,F){const j=A.root;F&&(j.scope=`language:${F}`),this.add(j)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function h(p){return p?typeof p=="string"?p:p.source:null}function E(p){return N("(?=",p,")")}function _(p){return N("(?:",p,")*")}function g(p){return N("(?:",p,")?")}function N(...p){return p.map(F=>h(F)).join("")}function R(p){const A=p[p.length-1];return typeof A=="object"&&A.constructor===Object?(p.splice(p.length-1,1),A):{}}function y(...p){return"("+(R(p).capture?"":"?:")+p.map(j=>h(j)).join("|")+")"}function D(p){return new RegExp(p.toString()+"|").exec("").length-1}function L(p,A){const F=p&&p.exec(A);return F&&F.index===0}const v=new RegExp(y(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./));function w(p,{joinWith:A}){let F=0;return p.map(j=>{F+=1;const Ne=F;let we=h(j),W="";for(;we.length>0;){const z=v.exec(we);if(!z){W+=we;break}W+=we.substring(0,z.index),we=we.substring(z.index+z[0].length),z[0][0]==="\\"&&z[1]?W+="\\"+String(Number(z[1])+Ne):(W+=z[0],(z[0]==="("||/^\(\?[<']/.test(z[0]))&&F++)}return W}).map(j=>`(${j})`).join(A)}const M=/\b\B/,G="[a-zA-Z]\\w*",Z="[a-zA-Z_]\\w*",re="\\b\\d+(\\.\\d+)?",ie="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",le="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",te=(p={})=>{const A=/^#![ ]*\//;return p.binary&&(p.begin=N(A,/.*\b/,p.binary,/\b.*/)),u({scope:"meta",begin:A,end:/$/,relevance:0,"on:begin":(F,j)=>{F.index!==0&&j.ignoreMatch()}},p)},X={begin:"\\\\[\\s\\S]",relevance:0},ne={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[X]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[X]},V={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ue=function(p,A,F={}){const j=u({scope:"comment",begin:p,end:A,contains:[]},F);j.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Ne=y("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return j.contains.push({begin:N(/[ ]+/,"(",Ne,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),j},Ae=ue("//","$"),pe=ue("/\\*","\\*/"),xe=ue("#","$"),Te={scope:"number",begin:re,relevance:0},Ge={scope:"number",begin:ie,relevance:0},rt={scope:"number",begin:le,relevance:0},It={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[X,{begin:/\[/,end:/\]/,relevance:0,contains:[X]}]},be={scope:"title",begin:G,relevance:0},B={scope:"title",begin:Z,relevance:0},Ue={begin:"\\.\\s*"+Z,relevance:0};var qe=Object.freeze({__proto__:null,APOS_STRING_MODE:ne,BACKSLASH_ESCAPE:X,BINARY_NUMBER_MODE:rt,BINARY_NUMBER_RE:le,COMMENT:ue,C_BLOCK_COMMENT_MODE:pe,C_LINE_COMMENT_MODE:Ae,C_NUMBER_MODE:Ge,C_NUMBER_RE:ie,END_SAME_AS_BEGIN:function(p){return Object.assign(p,{"on:begin":(A,F)=>{F.data._beginMatch=A[1]},"on:end":(A,F)=>{F.data._beginMatch!==A[1]&&F.ignoreMatch()}})},HASH_COMMENT_MODE:xe,IDENT_RE:G,MATCH_NOTHING_RE:M,METHOD_GUARD:Ue,NUMBER_MODE:Te,NUMBER_RE:re,PHRASAL_WORDS_MODE:V,QUOTE_STRING_MODE:k,REGEXP_MODE:It,RE_STARTERS_RE:$,SHEBANG:te,TITLE_MODE:be,UNDERSCORE_IDENT_RE:Z,UNDERSCORE_TITLE_MODE:B});function We(p,A){p.input[p.index-1]==="."&&A.ignoreMatch()}function Xe(p,A){p.className!==void 0&&(p.scope=p.className,delete p.className)}function Ot(p,A){A&&p.beginKeywords&&(p.begin="\\b("+p.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",p.__beforeBegin=We,p.keywords=p.keywords||p.beginKeywords,delete p.beginKeywords,p.relevance===void 0&&(p.relevance=0))}function pn(p,A){Array.isArray(p.illegal)&&(p.illegal=y(...p.illegal))}function jt(p,A){if(p.match){if(p.begin||p.end)throw new Error("begin & end are not supported with match");p.begin=p.match,delete p.match}}function Ie(p,A){p.relevance===void 0&&(p.relevance=1)}const $t=(p,A)=>{if(!p.beforeMatch)return;if(p.starts)throw new Error("beforeMatch cannot be used with starts");const F=Object.assign({},p);Object.keys(p).forEach(j=>{delete p[j]}),p.keywords=F.keywords,p.begin=N(F.beforeMatch,E(F.begin)),p.starts={relevance:0,contains:[Object.assign(F,{endsParent:!0})]},p.relevance=0,delete F.beforeMatch},Oe=["of","and","for","in","not","or","if","then","parent","list","value"],zt="keyword";function S(p,A,F=zt){const j=Object.create(null);return typeof p=="string"?Ne(F,p.split(" ")):Array.isArray(p)?Ne(F,p):Object.keys(p).forEach(function(we){Object.assign(j,S(p[we],A,we))}),j;function Ne(we,W){A&&(W=W.map(z=>z.toLowerCase())),W.forEach(function(z){const oe=z.split("|");j[oe[0]]=[we,U(oe[0],oe[1])]})}}function U(p,A){return A?Number(A):Q(p)?0:1}function Q(p){return Oe.includes(p.toLowerCase())}const se={},_e=p=>{console.error(p)},ve=(p,...A)=>{console.log(`WARN: ${p}`,...A)},Je=(p,A)=>{se[`${p}/${A}`]||(console.log(`Deprecated as of ${p}. ${A}`),se[`${p}/${A}`]=!0)},yt=new Error;function Ye(p,A,{key:F}){let j=0;const Ne=p[F],we={},W={};for(let z=1;z<=A.length;z++)W[z+j]=Ne[z],we[z+j]=!0,j+=D(A[z-1]);p[F]=W,p[F]._emit=we,p[F]._multi=!0}function et(p){if(Array.isArray(p.begin)){if(p.skip||p.excludeBegin||p.returnBegin)throw _e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),yt;if(typeof p.beginScope!="object"||p.beginScope===null)throw _e("beginScope must be object"),yt;Ye(p,p.begin,{key:"beginScope"}),p.begin=w(p.begin,{joinWith:""})}}function je(p){if(Array.isArray(p.end)){if(p.skip||p.excludeEnd||p.returnEnd)throw _e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),yt;if(typeof p.endScope!="object"||p.endScope===null)throw _e("endScope must be object"),yt;Ye(p,p.end,{key:"endScope"}),p.end=w(p.end,{joinWith:""})}}function mt(p){p.scope&&typeof p.scope=="object"&&p.scope!==null&&(p.beginScope=p.scope,delete p.scope)}function Vt(p){mt(p),typeof p.beginScope=="string"&&(p.beginScope={_wrap:p.beginScope}),typeof p.endScope=="string"&&(p.endScope={_wrap:p.endScope}),et(p),je(p)}function Zt(p){function A(W,z){return new RegExp(h(W),"m"+(p.case_insensitive?"i":"")+(p.unicodeRegex?"u":"")+(z?"g":""))}class F{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(z,oe){oe.position=this.position++,this.matchIndexes[this.matchAt]=oe,this.regexes.push([oe,z]),this.matchAt+=D(z)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const z=this.regexes.map(oe=>oe[1]);this.matcherRe=A(w(z,{joinWith:"|"}),!0),this.lastIndex=0}exec(z){this.matcherRe.lastIndex=this.lastIndex;const oe=this.matcherRe.exec(z);if(!oe)return null;const De=oe.findIndex((Wt,gn)=>gn>0&&Wt!==void 0),ke=this.matchIndexes[De];return oe.splice(0,De),Object.assign(oe,ke)}}class j{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(z){if(this.multiRegexes[z])return this.multiRegexes[z];const oe=new F;return this.rules.slice(z).forEach(([De,ke])=>oe.addRule(De,ke)),oe.compile(),this.multiRegexes[z]=oe,oe}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(z,oe){this.rules.push([z,oe]),oe.type==="begin"&&this.count++}exec(z){const oe=this.getMatcher(this.regexIndex);oe.lastIndex=this.lastIndex;let De=oe.exec(z);if(this.resumingScanAtSamePosition()&&!(De&&De.index===this.lastIndex)){const ke=this.getMatcher(0);ke.lastIndex=this.lastIndex+1,De=ke.exec(z)}return De&&(this.regexIndex+=De.position+1,this.regexIndex===this.count&&this.considerAll()),De}}function Ne(W){const z=new j;return W.contains.forEach(oe=>z.addRule(oe.begin,{rule:oe,type:"begin"})),W.terminatorEnd&&z.addRule(W.terminatorEnd,{type:"end"}),W.illegal&&z.addRule(W.illegal,{type:"illegal"}),z}function we(W,z){const oe=W;if(W.isCompiled)return oe;[Xe,jt,Vt,$t].forEach(ke=>ke(W,z)),p.compilerExtensions.forEach(ke=>ke(W,z)),W.__beforeBegin=null,[Ot,pn,Ie].forEach(ke=>ke(W,z)),W.isCompiled=!0;let De=null;return typeof W.keywords=="object"&&W.keywords.$pattern&&(W.keywords=Object.assign({},W.keywords),De=W.keywords.$pattern,delete W.keywords.$pattern),De=De||/\w+/,W.keywords&&(W.keywords=S(W.keywords,p.case_insensitive)),oe.keywordPatternRe=A(De,!0),z&&(W.begin||(W.begin=/\B|\b/),oe.beginRe=A(oe.begin),!W.end&&!W.endsWithParent&&(W.end=/\B|\b/),W.end&&(oe.endRe=A(oe.end)),oe.terminatorEnd=h(oe.end)||"",W.endsWithParent&&z.terminatorEnd&&(oe.terminatorEnd+=(W.end?"|":"")+z.terminatorEnd)),W.illegal&&(oe.illegalRe=A(W.illegal)),W.contains||(W.contains=[]),W.contains=[].concat(...W.contains.map(function(ke){return Lt(ke==="self"?W:ke)})),W.contains.forEach(function(ke){we(ke,oe)}),W.starts&&we(W.starts,z),oe.matcher=Ne(oe),oe}if(p.compilerExtensions||(p.compilerExtensions=[]),p.contains&&p.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return p.classNameAliases=u(p.classNameAliases||{}),we(p)}function Qt(p){return p?p.endsWithParent||Qt(p.starts):!1}function Lt(p){return p.variants&&!p.cachedVariants&&(p.cachedVariants=p.variants.map(function(A){return u(p,{variants:null},A)})),p.cachedVariants?p.cachedVariants:Qt(p)?u(p,{starts:p.starts?u(p.starts):null}):Object.isFrozen(p)?u(p):p}var Mt="11.12.0";class qt extends Error{constructor(A,F){super(A),this.name="HTMLInjectionError",this.html=F}}const Jt=n,en=u,hn=Symbol("nomatch"),tn=7,T=function(p){const A=Object.create(null),F=Object.create(null),j=[];let Ne=!0;const we="Could not find the language '{}', did you forget to load/include a language module?",W={disableAutodetect:!0,name:"Plain text",contains:[]};let z={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function oe(P){return z.noHighlightRe.test(P)}function De(P){let q=P.className+" ";q+=P.parentNode?P.parentNode.className:"";const he=z.languageDetectRe.exec(q);if(he){const ye=Ft(he[1]);return ye||(ve(we.replace("{}",he[1])),ve("Falling back to no-highlight mode for this block.",P)),ye?he[1]:"no-highlight"}return q.split(/\s+/).find(ye=>oe(ye)||Ft(ye))}function ke(P,q,he){let ye="",Le="";typeof q=="object"?(ye=P,he=q.ignoreIllegals,Le=q.language):(Je("10.7.0","highlight(lang, code, ...args) has been deprecated."),Je("10.7.0",`Please use highlight(code, options) instead.
|
|
48
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Le=P,ye=q),he===void 0&&(he=!0);const dt={code:ye,language:Le};Rn("before:highlight",dt);const At=dt.result?dt.result:Wt(dt.language,dt.code,he);return At.code=dt.code,Rn("after:highlight",At),At}function Wt(P,q,he,ye){const Le=Object.create(null);function dt(H,Y){return H.keywords[Y]}function At(){if(!ce.keywords){ze.addText(ge);return}let H=0;ce.keywordPatternRe.lastIndex=0;let Y=ce.keywordPatternRe.exec(ge),de="";for(;Y;){de+=ge.substring(H,Y.index);const Re=at.case_insensitive?Y[0].toLowerCase():Y[0],Ze=dt(ce,Re);if(Ze){const[Dt,fr]=Ze;if(ze.addText(de),de="",Le[Re]=(Le[Re]||0)+1,Le[Re]<=tn&&(yn+=fr),Dt.startsWith("_"))de+=Y[0];else{const Iu=at.classNameAliases[Dt]||Dt;Tt(Y[0],Iu)}}else de+=Y[0];H=ce.keywordPatternRe.lastIndex,Y=ce.keywordPatternRe.exec(ge)}de+=ge.substring(H),ze.addText(de)}function rn(){if(ge==="")return;let H=null;if(typeof ce.subLanguage=="string"){if(!A[ce.subLanguage]){ze.addText(ge);return}H=Wt(ce.subLanguage,ge,!0,xt[ce.subLanguage]),xt[ce.subLanguage]=H._top}else H=Gn(ge,ce.subLanguage.length?ce.subLanguage:null);ce.relevance>0&&(yn+=H.relevance),ze.__addSublanguage(H._emitter,H.language)}function it(){ce.subLanguage!=null?rn():At(),ge=""}function Tt(H,Y){H!==""&&(ze.startScope(Y),ze.addText(H),ze.endScope())}function Vn(H,Y){let de=1;const Re=Y.length-1;for(;de<=Re;){if(!H._emit[de]){de++;continue}const Ze=at.classNameAliases[H[de]]||H[de],Dt=Y[de];Ze?Tt(Dt,Ze):(ge=Dt,At(),ge=""),de++}}function Cu(H,Y){return H.scope&&typeof H.scope=="string"&&ze.openNode(at.classNameAliases[H.scope]||H.scope),H.beginScope&&(H.beginScope._wrap?(Tt(ge,at.classNameAliases[H.beginScope._wrap]||H.beginScope._wrap),ge=""):H.beginScope._multi&&(Vn(H.beginScope,Y),ge="")),ce=Object.create(H,{parent:{value:ce}}),ce}function Nu(H,Y,de){let Re=L(H.endRe,de);if(Re){if(H["on:end"]){const Ze=new t(H);H["on:end"](Y,Ze),Ze.isMatchIgnored&&(Re=!1)}if(Re){for(;H.endsParent&&H.parent;)H=H.parent;return H}}if(H.endsWithParent)return Nu(H.parent,Y,de)}function cr(H){return ce.matcher.regexIndex===0?(ge+=H[0],1):(xn=!0,0)}function ar(H){const Y=H[0],de=H.rule,Re=new t(de),Ze=[de.__beforeBegin,de["on:begin"]];for(const Dt of Ze)if(Dt&&(Dt(H,Re),Re.isMatchIgnored))return cr(Y);return de.skip?ge+=Y:(de.excludeBegin&&(ge+=Y),it(),!de.returnBegin&&!de.excludeBegin&&(ge=Y)),Cu(de,H),de.returnBegin?0:Y.length}function Ru(H){const Y=H[0],de=q.substring(H.index),Re=Nu(ce,H,de);if(!Re)return hn;const Ze=ce;ce.endScope&&ce.endScope._wrap?(it(),Tt(Y,ce.endScope._wrap)):ce.endScope&&ce.endScope._multi?(it(),Vn(ce.endScope,H)):Ze.skip?ge+=Y:(Ze.returnEnd||Ze.excludeEnd||(ge+=Y),it(),Ze.excludeEnd&&(ge=Y));do ce.scope&&ze.closeNode(),!ce.skip&&!ce.subLanguage&&(yn+=ce.relevance),ce=ce.parent;while(ce!==Re.parent);return Re.starts&&Cu(Re.starts,H),Ze.returnEnd?0:Y.length}function lr(){const H=[];for(let Y=ce;Y!==at;Y=Y.parent)Y.scope&&H.unshift(Y.scope);H.forEach(Y=>ze.openNode(Y))}let bn={};function In(H,Y){const de=Y&&Y[0];if(ge+=H,de==null)return it(),0;if(bn.type==="begin"&&Y.type==="end"&&bn.index===Y.index&&de===""){if(ge+=q.slice(Y.index,Y.index+1),!Ne){const Re=new Error(`0 width match regex (${P})`);throw Re.languageName=P,Re.badRule=bn.rule,Re}return 1}if(bn=Y,Y.type==="begin")return ar(Y);if(Y.type==="illegal"&&!he){const Re=new Error('Illegal lexeme "'+de+'" for mode "'+(ce.scope||"<unnamed>")+'"');throw Re.mode=ce,Re}else if(Y.type==="end"){const Re=Ru(Y);if(Re!==hn)return Re}if(Y.type==="illegal"&&de==="")return Y.index===q.length||(ge+=`
|
|
49
|
-
`),1;if(Wn>1e5&&Wn>Y.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ge+=de,de.length}const at=Ft(P);if(!at)throw _e(we.replace("{}",P)),new Error('Unknown language: "'+P+'"');const qn=Zt(at);let On="",ce=ye||qn;const xt={},ze=new z.__emitter(z);lr();let ge="",yn=0,St=0,Wn=0,xn=!1;try{if(at.__emitTokens)at.__emitTokens(q,ze);else{for(ce.matcher.considerAll();;){Wn++,xn?xn=!1:ce.matcher.considerAll(),ce.matcher.lastIndex=St;const H=ce.matcher.exec(q);if(!H)break;const Y=q.substring(St,H.index),de=In(Y,H);St=H.index+de}In(q.substring(St))}return ze.finalize(),On=ze.toHTML(),{language:P,value:On,relevance:yn,illegal:!1,_emitter:ze,_top:ce}}catch(H){if(H.message&&H.message.includes("Illegal"))return{language:P,value:Jt(q),illegal:!0,relevance:0,_illegalBy:{message:H.message,index:St,context:q.slice(St-100,St+100),mode:H.mode,resultSoFar:On},_emitter:ze};if(Ne)return{language:P,value:Jt(q),illegal:!1,relevance:0,errorRaised:H,_emitter:ze,_top:ce};throw H}}function gn(P){const q={value:Jt(P),illegal:!1,relevance:0,_top:W,_emitter:new z.__emitter(z)};return q._emitter.addText(P),q}function Gn(P,q){q=q||z.languages||Object.keys(A);const he=gn(P),ye=q.filter(Ft).filter(Nn).map(it=>Wt(it,P,!1));ye.unshift(he);const Le=ye.sort((it,Tt)=>{if(it.relevance!==Tt.relevance)return Tt.relevance-it.relevance;if(it.language&&Tt.language){if(Ft(it.language).supersetOf===Tt.language)return 1;if(Ft(Tt.language).supersetOf===it.language)return-1}return 0}),[dt,At]=Le,rn=dt;return rn.secondBest=At,rn}function mu(P,q,he){const ye=q&&F[q]||he;P.classList.add("hljs"),P.classList.add(`language-${ye}`)}function En(P){let q=null;const he=De(P);if(oe(he))return;if(Rn("before:highlightElement",{el:P,language:he}),P.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",P);return}if(P.children.length>0&&(z.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(P)),z.throwUnescapedHTML))throw new qt("One of your code blocks includes unescaped HTML.",P.innerHTML);q=P;const ye=q.textContent,Le=he?ke(ye,{language:he,ignoreIllegals:!0}):Gn(ye);P.innerHTML=Le.value,P.dataset.highlighted="yes",mu(P,he,Le.language),P.result={language:Le.language,re:Le.relevance,relevance:Le.relevance},Le.secondBest&&(P.secondBest={language:Le.secondBest.language,relevance:Le.secondBest.relevance}),Rn("after:highlightElement",{el:P,result:Le,text:ye})}function Au(P){z=en(z,P)}const $n=()=>{Cn(),Je("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function rr(){Cn(),Je("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let nn=!1;function Cn(){function P(){Cn()}if(document.readyState==="loading"){nn||window.addEventListener("DOMContentLoaded",P,!1),nn=!0;return}document.querySelectorAll(z.cssSelector).forEach(En)}function ir(P,q){let he=null;try{he=q(p)}catch(ye){if(_e("Language definition for '{}' could not be registered.".replace("{}",P)),Ne)_e(ye);else throw ye;he=W}he.name||(he.name=P),A[P]=he,he.rawDefinition=q.bind(null,p),he.aliases&&zn(he.aliases,{languageName:P})}function $e(P){delete A[P];for(const q of Object.keys(F))F[q]===P&&delete F[q]}function un(){return Object.keys(A)}function Ft(P){return P=(P||"").toLowerCase(),A[P]||A[F[P]]}function zn(P,{languageName:q}){typeof P=="string"&&(P=[P]),P.forEach(he=>{F[he.toLowerCase()]=q})}function Nn(P){const q=Ft(P);return q&&!q.disableAutodetect}function Tu(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=q=>{P["before:highlightBlock"](Object.assign({block:q.el},q))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=q=>{P["after:highlightBlock"](Object.assign({block:q.el},q))})}function Su(P){Tu(P),j.push(P)}function or(P){const q=j.indexOf(P);q!==-1&&j.splice(q,1)}function Rn(P,q){const he=P;j.forEach(function(ye){ye[he]&&ye[he](q)})}function sr(P){return Je("10.7.0","highlightBlock will be removed entirely in v12.0"),Je("10.7.0","Please use highlightElement now."),En(P)}Object.assign(p,{highlight:ke,highlightAuto:Gn,highlightAll:Cn,highlightElement:En,highlightBlock:sr,configure:Au,initHighlighting:$n,initHighlightingOnLoad:rr,registerLanguage:ir,unregisterLanguage:$e,listLanguages:un,getLanguage:Ft,registerAliases:zn,autoDetection:Nn,inherit:en,addPlugin:Su,removePlugin:or}),p.debugMode=function(){Ne=!1},p.safeMode=function(){Ne=!0},p.versionString=Mt,p.regex={concat:N,lookahead:E,either:y,optional:g,anyNumberOfTimes:_};for(const P in qe)typeof qe[P]=="object"&&e(qe[P]);return Object.assign(p,qe),p},J=T({});return J.newInstance=()=>T({}),kr=J,J.HighlightJS=J,J.default=J,kr}var bd=Ed();const pu=gd(bd);function _d(e){const t=e.regex,n=e.COMMENT("--","$"),u={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],c=["add","asc","collation","desc","final","first","last","view"],l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],E=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],_=d,g=[...l,...c].filter(w=>!d.includes(w)),N={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},y={match:t.concat(/\b/,t.either(..._),/\s*\(/),relevance:0,keywords:{built_in:_}};function D(w){return t.concat(/\b/,t.either(...w.map(M=>M.replace(/\s+/,"\\s+"))),/\b/)}const L={scope:"keyword",match:D(E),relevance:0};function v(w,{exceptions:M,when:G}={}){const Z=G;return M=M||[],w.map(re=>re.match(/\|\d+$/)||M.includes(re)?re:Z(re)?`${re}|0`:re)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:v(g,{when:w=>w.length<3}),literal:i,type:o,built_in:h},contains:[{scope:"type",match:D(s)},L,y,N,u,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,R]}}function md(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",u="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",r="<<\\s*"+n+"\\s*>>",i="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",s="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",o="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",c="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",l=c.trim().split(" ").map(function(N){return N.split("|")[0]}).join("|"),d="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",h="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",E="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",g="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(N){return N.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:i+o+s,built_in:d+h+E},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+g+")\\s*\\("},{begin:"\\.("+l+")\\b"},{begin:"\\b("+l+")\\s+PATH\\b",keywords:{keyword:"PATH",type:c.replace("PATH ","")}},{className:"type",begin:"\\b("+l+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:u,end:u,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:r,relevance:10}]}}const Eo="[A-Za-z$_][0-9A-Za-z$_]*",Ad=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Td=["true","false","null","undefined","NaN","Infinity"],Bs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Hs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Gs=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Sd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Cd=[].concat(Gs,Bs,Hs);function Nd(e){const t=e.regex,n=(ue,{after:Ae})=>{const pe="</"+ue[0].slice(1);return ue.input.indexOf(pe,Ae)!==-1},u=Eo,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,Ae)=>{const pe=ue[0].length+ue.index,xe=ue.input[pe];if(xe==="<"||xe===","){Ae.ignoreMatch();return}xe===">"&&(n(ue,{after:pe})||Ae.ignoreMatch());let Te;const Ge=ue.input.substring(pe);if(Te=Ge.match(/^\s*=/)){Ae.ignoreMatch();return}if((Te=Ge.match(/^\s+extends\s+/))&&Te.index===0){Ae.ignoreMatch();return}}},o={$pattern:Eo,keyword:Ad,literal:Td,built_in:Cd,"variable.language":Sd},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},D={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,R,{match:/\$\d+/},h];E.contains=L.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(L)});const v=[].concat(D,E.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(v)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:w},G={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Bs,...Hs]}},re={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ie={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return t.concat("(?!",ue.join("|"),")")}const te={match:t.concat(/\b/,$([...Gs,"super","import","await"].map(ue=>`${ue}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",V={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:Z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),re,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,R,D,{match:/\$\d+/},h,Z,{scope:"attr",match:u+t.lookahead(":"),relevance:0},V,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,e.REGEXP_MODE,{className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},ie,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},te,le,G,ne,{match:/\$[(.]/}]}}const qu="[A-Za-z$_][0-9A-Za-z$_]*",$s=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],zs=["true","false","null","undefined","NaN","Infinity"],Vs=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],qs=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ws=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ys=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","self","global"],Ks=[].concat(Ws,Vs,qs);function Rd(e){const t=e.regex,n=(ue,{after:Ae})=>{const pe="</"+ue[0].slice(1);return ue.input.indexOf(pe,Ae)!==-1},u=qu,r={begin:"<>",end:"</>"},i=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,Ae)=>{const pe=ue[0].length+ue.index,xe=ue.input[pe];if(xe==="<"||xe===","){Ae.ignoreMatch();return}xe===">"&&(n(ue,{after:pe})||Ae.ignoreMatch());let Te;const Ge=ue.input.substring(pe);if(Te=Ge.match(/^\s*=/)){Ae.ignoreMatch();return}if((Te=Ge.match(/^\s+extends\s+/))&&Te.index===0){Ae.ignoreMatch();return}}},o={$pattern:qu,keyword:$s,literal:zs,built_in:Ks,"variable.language":Ys},c="[0-9](_?[0-9])*",l=`\\.(${c})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${d})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${d})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},_={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"css"}},N={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,E],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,E]},D={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:u+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},L=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,R,{match:/\$\d+/},h];E.contains=L.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(L)});const v=[].concat(D,E.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(v)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:w},G={variants:[{match:[/class/,/\s+/,u,/\s+/,/extends/,/\s+/,t.concat(u,"(",t.concat(/\./,u),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,u],scope:{1:"keyword",3:"title.class"}}]},Z={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Vs,...qs]}},re={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},ie={variants:[{match:[/function/,/\s+/,u,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},le={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return t.concat("(?!",ue.join("|"),")")}const te={match:t.concat(/\b/,$([...Ws,"super","import","await"].map(ue=>`${ue}\\s*\\(`)),u,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},X={begin:t.concat(/\./,t.lookahead(t.concat(u,/(?![0-9A-Za-z$_(])/))),end:u,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ne={match:[/get|set/,/\s+/,u,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},k="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",V={match:[/const|var|let/,/\s+/,u,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(k)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:Z},illegal:/#(?![$_A-Za-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),re,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,g,N,R,D,{match:/\$\d+/},h,Z,{scope:"attr",match:u+t.lookahead(":"),relevance:0},V,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,e.REGEXP_MODE,{className:"function",begin:k,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:i},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},ie,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,e.inherit(e.TITLE_MODE,{begin:u,className:"title.function"})]},{match:/\.\.\./,relevance:0},X,{match:"\\$"+u,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},te,le,G,ne,{match:/\$[(.]/}]}}function Id(e){const t=e.regex,n=Rd(e),u=qu,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],l={$pattern:qu,keyword:$s.concat(c),literal:zs,built_in:Ks.concat(r),"variable.language":Ys},d={className:"meta",begin:"@"+u},h=(N,R,y)=>{const D=N.contains.findIndex(L=>L.label===R);if(D===-1)throw new Error("can not find mode to replace");N.contains.splice(D,1,y)};Object.assign(n.keywords,l),n.exports.PARAMS_CONTAINS.push(d);const E=n.contains.find(N=>N.scope==="attr"),_=Object.assign({},E,{match:t.concat(u,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,E,_]),n.contains=n.contains.concat([d,i,s,_]),h(n,"shebang",e.SHEBANG()),h(n,"use_strict",o);const g=n.contains.find(N=>N.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const Od="([-+]?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)|NaN|[-+]?Infinity",yd={scope:"number",match:Od,relevance:0};function xd(e){const t={className:"attr",begin:/(("(\\.|[^\\"\r\n])*")|('(\\.|[^\\'\r\n])*'))(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},u=["true","false","null"],r={scope:"literal",beginKeywords:u.join(" ")};return{name:"JSON",aliases:["jsonc","json5"],keywords:{literal:u},contains:[t,n,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,yd,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Dd(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),u=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(i,{begin:/\(/,end:/\)/}),o=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[i,c,o,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,s,c,o]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:"css"}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:"javascript"}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function kd(e){const t=e.regex,n={},u={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},u]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(o);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},d={match:/\\'/},h={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},E=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],_=e.SHEBANG({binary:`(${E.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},N=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],R=["true","false"],y={match:/(\/[a-z._-]+)+/},D=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],L=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],v=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],w=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:N,literal:R,built_in:[...D,...L,"set","shopt",...v,...w]},contains:[_,e.SHEBANG(),g,h,i,s,y,o,c,l,d,n]}}function vd(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),u=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","lazy","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:u,built_in:["__import__","abs","aiter","all","anext","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozendict","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","sentinel","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},c={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},d={begin:/\{\{/,relevance:0},h={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c],relevance:10},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,c,d,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,l]},{begin:/([fFtT][rR]|[rR][fFtT]|[fFtT])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,l]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E="[0-9](_?[0-9])*",_=`(\\b(${E}))?\\.(${E})|\\b(${E})\\.`,g=`\\b|${u.join("|")}`,N={className:"number",relevance:0,variants:[{begin:`(\\b(${E})|(${_}))[eE][+-]?(${E})[jJ]?(?=${g})`},{begin:`(${_})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${E})[jJ](?=${g})`}]},R={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},y={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",c,N,h,e.HASH_COMMENT_MODE]}]};return l.contains=[h,N,c],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[c,N,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},h,R,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[y]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[N,y,h]}]}}function wd(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",u={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},o=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),E={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},_={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},g={begin:/\{/,end:/\}/,contains:[_],illegal:"\\n",relevance:0},N={begin:"\\[",end:"\\]",contains:[_],illegal:"\\n",relevance:0},R=[u,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},E,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,N,i,s],y=[...R];return y.pop(),y.push(o),_.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}function Ld(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}const Md={sql:_d,pgsql:md,javascript:Nd,typescript:Id,json:xd,xml:Dd,bash:kd,python:vd,yaml:wd,plaintext:Ld};for(const[e,t]of Object.entries(Md))pu.registerLanguage(e,t);const Xs=[];function Fd(e,t){Xs.push({aliases:e,languageName:t}),pu.registerAliases([...e],{languageName:t})}let vr=null;function Pd(){for(const{aliases:e,languageName:t}of Xs)pu.registerAliases([...e],{languageName:t})}const Ud=/text-align:\s*(left|center|right)/;function Bd(e){for(const t of["th_open","td_open"]){const n=e.renderer.rules[t]??((r,i,s,o,c)=>c.renderToken(r,i,s)),u=(r,i,s,o,c)=>{var h,E;const l=r[i],d=(l==null?void 0:l.attrIndex("style"))??-1;if(l&&l.attrs&&d>=0){const _=((h=l.attrs[d])==null?void 0:h[1])??"",g=(E=Ud.exec(_))==null?void 0:E[1];l.attrs.splice(d,1),g&&l.attrSet("data-align",g)}return n(r,i,s,o,c)};e.renderer.rules[t]=u}}function Hd(){if(vr)return vr;Pd();const e=new Rt({html:!1,linkify:!0,breaks:!0,typographer:!1,highlight:(n,u)=>{if(u&&pu.getLanguage(u))try{const r=pu.highlight(n,{language:u,ignoreIllegals:!0}).value;return`<pre class="hljs"><code class="hljs language-${u}">${r}</code></pre>`}catch(r){Nt.bestEffortFailed("fall through to markdown-it's escaped default",r)}return""}}),t=e.renderer.rules.link_open??((n,u,r,i,s)=>s.renderToken(n,u,r));return e.renderer.rules.link_open=(n,u,r,i,s)=>{const o=n[u];return o&&(o.attrSet("target","_blank"),o.attrSet("rel","noopener noreferrer")),t(n,u,r,i,s)},Bd(e),vr=e,e}const bo=["a","p","br","strong","em","code","pre","kbd","s","del","ul","ol","li","blockquote","hr","h1","h2","h3","h4","h5","h6","span","table","thead","tbody","tr","th","td"],Gd="img",$d=["href","target","rel","src","alt","title","width","height","class"],zd=/^(?:https?:|mailto:|tel:|data:image\/(?:png|jpe?g|gif|webp|svg\+xml);base64,)/i,Vd=["target","rel"];function qd(e,t){if(!e)return"";const n=Hd().render(e);return hd.sanitize(n,{ALLOWED_TAGS:t!=null&&t.allowImages?[...bo,Gd]:bo,ALLOWED_ATTR:$d,ALLOWED_URI_REGEXP:zd,ADD_URI_SAFE_ATTR:Vd})}function Wd(e,t=!0){return qd(e,{allowImages:t})}const bi={info:"Info",success:"Success",warning:"Warning",error:"Error"},js="data-notification-entry",Zs="data-notification-list",_i={[js]:""},Yd={[Zs]:""},mi=`[${js}]`,Wr=`[${Zs}]`;function Wu(e){return Array.from(e.querySelectorAll(mi))}function Kd(e){const t=e;return typeof t.matches=="function"&&t.matches(Wr)?e:e.querySelector(Wr)??void 0}function Qs(e,t){const n=Wu(e)[0]??Kd(e);return n===void 0?!1:(n.focus(t),n.ownerDocument.activeElement===n)}function Js(e,t,n,u){if(n===0)return null;switch(mn.namedKeyOf(e)){case"ArrowDown":return t===null?0:Math.min(n-1,t+1);case"ArrowUp":return t===null?n-1:Math.max(0,t-1);case"Home":return 0;case"End":return n-1;case"PageUp":return u==="ends"?0:u(t,-1);case"PageDown":return u==="ends"?n-1:u(t,1);default:return null}}function _o(e,t){let n=0;return e.extents.forEach((u,r)=>{u.bottom<=t&&(n=r)}),n}function mo(e,t){if(t<=0)return 0;const n=e.extents.findIndex(u=>u.top>=t);return n<0?e.extents.length-1:n}function Xd(e,t,n){const u=e.extents.length-1;if(n===1){const s=_o(e,e.scrollTop+e.height);if(t===null||s>t)return s;const o=Math.min(e.maxScrollTop,e.scrollTop+e.height);return o<=e.scrollTop||t>=u?t:Math.min(u,Math.max(t+1,_o(e,o+e.height)))}const r=mo(e,e.scrollTop);if(t===null||r<t)return r;const i=Math.max(0,e.scrollTop-e.height);return i>=e.scrollTop||t<=0?t:Math.max(0,Math.min(t-1,mo(e,i)))}function jd(e,t){const n=e.getBoundingClientRect().top+e.clientTop-e.scrollTop;return{extents:t.map(u=>{const r=u.getBoundingClientRect();return{top:r.top-n,bottom:r.bottom-n}}),scrollTop:e.scrollTop,height:e.clientHeight,maxScrollTop:Math.max(0,e.scrollHeight-e.clientHeight)}}function Zd(e){const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||e.isContentEditable}function ec(e,t){if(e.defaultPrevented)return;const n=e.target;if(n===null||typeof n.closest!="function"||Zd(n))return;const u=Wu(t),r=n.closest(mi);let i;if(r!==null){if(i=u.indexOf(r),i<0)return}else if(n===t&&n.matches(Wr))i=null;else return;const s=Js(e,i,u.length,(c,l)=>Xd(jd(t,u),c,l));if(s===null)return;e.preventDefault(),e.stopPropagation();const o=u[s];o!==void 0&&(o.focus({preventScroll:!0}),o.scrollIntoView({block:"nearest"}))}function tc(e){let t=!1,n=null,u=-1;const r=(i,s)=>{n=s.closest(mi),u=n===null?-1:Wu(i).indexOf(n)};return m.onMount(()=>{const i=e.container();if(i===void 0)return;const s=i.ownerDocument,o=c=>{const l=c.target;t=l!==null&&typeof l.closest=="function"&&i.contains(l),t&&l!==null&&r(i,l)};s.addEventListener("focusin",o,!0),m.onCleanup(()=>s.removeEventListener("focusin",o,!0))}),m.createEffect(m.on(e.drawn,()=>{const i=e.container();if(i===void 0||!t)return;const s=i.ownerDocument,o=s.activeElement;if(o!==null&&i.contains(o)){r(i,o);return}if(o!==null&&o!==s.body)return;const c=Wu(i),l=n!==null&&c.includes(n)?n:c[u-1]??c[0];l!==void 0?l.focus():e.fallback(i)},{defer:!0})),{holdsFocus:()=>t}}function nc(e){const t=C.t("{severity}: {title}",{severity:C.t(bi[e.tone]),title:e.message}),n=C.t("Source: {source}",{source:an(e.source).label});return`${t}, ${n}`}function uc(e){return e==="top-right"||e==="top-left"?"top":"bottom"}function Qd(e){return e==="above"?Tn.AnchorPosition.ABOVE:Tn.AnchorPosition.BELOW}function Jd(e){return e==="right"?Tn.AnchorAlignment.RIGHT:Tn.AnchorAlignment.LEFT}function rc(e,t={}){const n=e.getBoundingClientRect();return{ownerWindow:_c.getWindow(e),triggerEl:e,anchor:{top:n.top,left:n.left,width:n.width,height:n.height},anchorAlignment:Jd(t.horizontal),anchorPosition:Qd(t.vertical)}}const e1="vk_item_iu5b9",t1="vk_itemExiting_1AEmJ",n1="vk_closeFuse_uJM3j",u1="vk_subtitleCollapse_TrzAH",r1="vk_detailsCollapse_nY1gW",i1="vk_subtitle_XM9-h",o1="vk_detailsRow_QOjtY",s1="vk_chevron_8399G",c1="vk_mainRow_Or-HS",a1="vk_icon_tpHzZ",l1="vk_body_M1AsL",f1="vk_titleRow_P14EL",d1="vk_title_LULCY",p1="vk_timestamp_oi-zj",h1="vk_subtitleViewport_-M4DV",g1="vk_toolbar_Pojzw",E1="vk_actions_c2fy8",b1="vk_source_0ZwCJ",_1="vk_progressRow_HGeTR vk_rowCenter_saaBE",m1="vk_progress_oqKTw",A1="vk_progressCancel_d41du",T1="vk_closeWrapper_al-7O",S1="vk_closeButton_PbZLT",C1="vk_fuseTrack_oN787",N1="vk_fusePath_vX094",Me={item:e1,itemExiting:t1,closeFuse:n1,subtitleCollapse:u1,detailsCollapse:r1,subtitle:i1,detailsRow:o1,chevron:s1,mainRow:c1,icon:a1,body:l1,titleRow:f1,title:d1,timestamp:p1,subtitleViewport:h1,toolbar:g1,actions:E1,source:b1,progressRow:_1,progress:m1,progressCancel:A1,closeWrapper:T1,closeButton:S1,fuseTrack:C1,fusePath:N1};function R1(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var Ao=["<span",">","</span>"],I1=["<div",' tabindex="-1">',"</div>"],To=["<div",">","","</div>"],O1=["<div","><span",' aria-hidden="true">','</span><div class="','"><div','><span class="','">',"</span>","</div>","</div>","</div>"],y1=["<div",">","</div>"],x1=["<div","><div",">","","</div></div>"],D1=["<svg",' viewBox="0 0 100 100" aria-hidden="true"',' style="','"><path',' d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path><path',' pathLength="100" stroke-dasharray="100 100" stroke-dashoffset="0" d="M 50 3 H 79 A 18 18 0 0 1 97 21 V 79 A 18 18 0 0 1 79 97 H 21 A 18 18 0 0 1 3 79 V 21 A 18 18 0 0 1 21 3 Z"></path></svg>'];const wr=new WeakMap;function k1(e,t){const n=Ya(t-e);return C.t(n.key,n.values)}function v1(e){try{return Bn.formatDateTime(new Date(e))}catch{return new Date(e).toISOString()}}const w1={info:Ce.VpInfoCircle,warning:Do.VpAlertTriangle,error:Ce.VpCircleX,success:Ce.VpCircleCheck},So={plug:Ce.VpPlug,key:Ce.VpKey,cloud:Ce.VpCloud,database:Ce.VpDatabase,"git-merge":Ce.VpGitMerge,terminal:Ce.VpTerminal,rocket:Ce.VpRocket,bell:Ce.VpBell,lock:Ce.VpLock},Yu=e=>{const t=m.createMemo(()=>e.controller),n=m.createMemo(()=>e.item),u=m.createMemo(()=>e.shell),r=Ga(),i=m.useContext(Zr.DesktopContextMenuContext),[s,o]=m.createSignal(!1);let c;m.onCleanup(()=>{c!==void 0&&clearTimeout(c)});const l=m.createMemo(()=>!kt(n())),d=()=>{if(!s()){if(!l()||yo.prefersReducedMotion(document)){t().close(n().id);return}o(!0),c!==void 0&&clearTimeout(c),c=setTimeout(()=>t().close(n().id),180)}},h=()=>t().toggleExpanded(n().id),E=m.createMemo(()=>{const k=n().icon;return k&&So[k]?So[k]:w1[n().severity]}),_=m.createMemo(()=>k1(n().createdAt,r())),g=m.createMemo(()=>v1(n().createdAt)),N=m.createMemo(()=>t().isSticky(n())),R=m.createMemo(()=>t().duration(n())),y=m.createMemo(()=>{if(N())return!1;const k=R();return Number.isFinite(k)&&k>0}),[D,L]=m.createSignal(!1),[v,w]=m.createSignal(!1);m.onCleanup(()=>{const k=D(),V=v();if(!k&&!V)return;const ue=n();if(ue===void 0)return;const{id:Ae}=ue,pe=t();queueMicrotask(()=>{k&&pe.setHover(Ae,!1),V&&pe.setFocus(Ae,!1)})});const[M,G]=m.createSignal(0),Z=m.createMemo(()=>D()||v()||!!(n().hovered||n().focused));let re=!1;m.createEffect(()=>{const k=Z();re&&!k&&G(V=>V+1),re=k});let ie=n().expanded;m.createEffect(()=>{const k=n().expanded;k!==ie&&(ie=k,G(V=>V+1))});const le=m.createMemo(()=>y()?`${n().id}-${R()}-${M()}`:null),$=()=>n().announce??(n().severity==="error"?"assertive":"polite");m.createEffect(()=>{if(e.inCenter)return;const k=n().title,V=n().body,ue=V?`${k}: ${V}`:k;$()==="assertive"?t().announcer.assertive(ue):t().announcer.polite(ue)});const te=m.createMemo(()=>{const k=n().body;return k?n().markdown?Wd(k,u()!==null):R1(k).replace(/\n/g,"<br>"):""}),X=k=>{const V=u();if(V===null||!i)return;if(k.preventDefault(),k.stopPropagation(),i.state()&&wr.get(i)===n().id){i.close(),wr.set(i,null);return}wr.set(i,n().id);const ue=k.currentTarget,Ae=n().source,pe=n().neverShowAgainKey,xe=ui(n()),Te=[];if(pe&&Te.push({label:C.t("Don't show again"),onSelect:()=>{V.dismissKey(pe),d()}}),V.remindLaterEnabled()){const be=()=>{const B=new Date;return B.setDate(B.getDate()+1),B.setHours(9,0,0,0),B.getTime()-Date.now()};Te.push({label:C.t("Remind me in 15 minutes"),onSelect:()=>{V.remindLater(xe,15*6e4),d()}}),Te.push({label:C.t("Remind me in 1 hour"),onSelect:()=>{V.remindLater(xe,36e5),d()}}),Te.push({label:C.t("Remind me tomorrow morning"),onSelect:()=>{V.remindLater(xe,be()),d()}})}if(Ae&&Ae!=="general"){const rt=V.isSourceMuted(Ae);Te.push({label:rt?C.t("Unmute notifications from this source"):C.t("Mute notifications from this source"),onSelect:()=>V.setSourceMuted(Ae,!rt)})}const Ge=n().secondaryActions;if(Ge&&Ge.length>0){Te.length>0&&Te.push({type:"separator"});for(const rt of Ge)Te.push({label:rt.label,onSelect:()=>{rt.onClick()}})}Te.length>0&&Te.push({type:"separator"}),Te.push({label:C.t("Notification settings…"),onSelect:()=>V.openSettings()}),i.openWithPlacement(rc(ue,{vertical:"auto",horizontal:"auto"}),Te)},ne=async k=>{try{await k.onClick()}finally{k.keepOpen||d()}};return a.ssrElement("div",a.mergeProps({get class(){return`${Me.item} card ${s()?Me.itemExiting:""}`},get id(){return e.inCenter?void 0:`notification-card-${n().id}`},tabIndex:-1,get"data-severity"(){return n().severity},get"data-expanded"(){return n().expanded},get"data-edge"(){return e.corner===void 0?void 0:uc(e.corner)},get"data-has-actions"(){return e.item.actions&&e.item.actions.length>0?"true":"false"},get"data-has-timer"(){return y()?"true":"false"}},()=>e.inCenter?_i:{"aria-live":$()},{get"aria-atomic"(){return e.inCenter?void 0:"true"},get"aria-label"(){return C.t("{severity}: {title}",{severity:C.t(bi[n().severity]),title:n().title})}}),[a.ssr(O1,a.ssrAttribute("class",a.escape(Me.mainRow,!0),!1),a.ssrAttribute("class",a.escape(Me.icon,!0),!1)+a.ssrAttribute("data-severity",a.escape(n().severity,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return E()},size:16})),`${a.escape(Me.body,!0)} body`,a.ssrAttribute("class",a.escape(Me.titleRow,!0),!1),`${a.escape(Me.title,!0)} title`,a.escape(n().title),a.escape(a.createComponent(Xr.HoverTooltip,{get content(){return g()},delayMs:400,get children(){return a.ssr(Ao,a.ssrAttribute("class",a.escape(Me.timestamp,!0),!1),a.escape(_()))}})),a.escape(a.createComponent(m.Show,{get when(){return n().body},get children(){return a.createComponent(Xu.OverlayScrollArea,{get rootClass(){return Me.subtitleCollapse},get viewportClass(){return Me.subtitleViewport},hideHorizontal:!0,get children(){return a.ssr(I1,a.ssrAttribute("class",a.escape(Me.subtitle,!0),!1),te())}})}})),a.escape(a.createComponent(Ln.Panel.Toolbar,{get class(){return Me.toolbar},get children(){return[a.createComponent(m.Show,{get when(){return n().body},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return a.memo(()=>!!n().expanded)()?C.t("Collapse"):C.t("Expand")},get title(){return a.memo(()=>!!n().expanded)()?C.t("Collapse"):C.t("Expand")},onClick:h,get children(){return a.createComponent(Tn.VpChevronDown,{get class(){return`${hr.iconScale.iconMd} ${Me.chevron}`}})}})}}),a.createComponent(m.Show,{get when(){return u()!==null},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get"aria-label"(){return C.t("More actions")},get title(){return C.t("More actions")},onMouseDown:k=>k.stopPropagation(),onClick:X,get children(){return a.createComponent(Ce.VpSettings,{get class(){return hr.iconScale.iconMd}})}})}}),a.createComponent(m.Show,{get when(){return l()},get children(){return a.ssr(To,a.ssrAttribute("class",a.escape(Me.closeWrapper,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get class(){return`${Me.closeButton} close-btn`},"data-testid":"notification-close-btn",get"aria-label"(){return C.t("Close")},get title(){return C.t("Close")},onClick:d,get children(){return a.createComponent(Mr.VpClose,{get class(){return hr.iconScale.iconMd}})}})),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return le()},children:k=>a.ssr(D1,a.ssrAttribute("class",a.escape(Me.closeFuse,!0),!1),a.ssrAttribute("data-fuse-key",a.escape(k,!0),!1),a.ssrStyleProperty("--fuse-duration:",`${a.escape(R(),!0)}ms`),a.ssrAttribute("class",a.escape(Me.fuseTrack,!0),!1),a.ssrAttribute("class",a.escape(Me.fusePath,!0),!1))})))}})]}}))),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0||typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general"&&e.item.source!=="undefined"},get children(){return a.ssr(x1,a.ssrAttribute("class",a.escape(Me.detailsCollapse,!0),!1),a.ssrAttribute("class",a.escape(Me.detailsRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.actions)()&&e.item.actions.length>0},get children(){return a.ssr(y1,a.ssrAttribute("class",a.escape(Me.actions,!0),!1),a.escape(a.createComponent(m.For,{get each(){return n().actions},children:k=>a.createComponent(Fe.Button,{get variant(){return k.primary?"primary":"secondary"},size:"sm",get class(){return`${k.primary?"primary ":""}btn`},onClick:()=>void ne(k),get children(){return k.label}})})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>typeof e.item.source=="string"&&e.item.source.length>0&&e.item.source!=="general")()&&e.item.source!=="undefined"},get children(){return a.ssr(Ao,a.ssrAttribute("class",a.escape(Me.source,!0),!1),a.escape(C.t("Source: {source}",{source:String(n().source)})))}})))}})),a.escape(a.createComponent(m.Show,{get when(){return a.memo(()=>!!e.item.progress)()&&!e.item.progress.done},get children(){return a.ssr(To,a.ssrAttribute("class",a.escape(Me.progressRow,!0),!1),a.escape(a.createComponent(m.Show,{get when(){var k;return typeof((k=n().progress)==null?void 0:k.value)=="number"},get fallback(){return a.createComponent(ft.Progress,{indeterminate:!0,size:"2xs",get class(){return Me.progress},get ariaLabel(){return C.t("Progress")}})},get children(){return a.createComponent(ft.Progress,{get value(){var k;return((k=n().progress)==null?void 0:k.value)??0},max:1,size:"2xs",get class(){return Me.progress},get ariaLabel(){return C.t("Progress")}})}})),a.escape(a.createComponent(m.Show,{get when(){var k;return(k=n().progress)==null?void 0:k.onCancel},get children(){return a.createComponent(Fe.Button,{iconOnly:!0,variant:"ghost",size:"sm",get class(){return Me.progressCancel},get title(){return C.t("Cancel")},get"aria-label"(){return C.t("Cancel")},onClick:()=>{var k,V;return(V=(k=n().progress)==null?void 0:k.onCancel)==null?void 0:V.call(k)},get children(){return a.createComponent(Mr.VpClose,{})}})}})))}}))],!1)},wu=200,Yr="notification.acceptPrimaryAction",Kr="notification.clear",Bu="notifications.hideToasts",L1=`${vt.ACCESSIBILITY_MODE_ENABLED_KEY} && (${vt.FOCUS_CONTEXT_KEYS.notificationFocus} || ${vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible})`,M1=vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,F1=`${vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible} && ${vt.FOCUS_CONTEXT_KEYS.notificationFocus}`;function ic(e,t){const n=[e.commands.register({id:Yr,handler:()=>t.acceptPrimaryAction(),metadata:{label:"Accept Notification Primary Action",category:"Notifications"}}),e.bindings.register({command:Yr,key:"CmdOrCtrl+Shift+A",when:L1,weight:wu+1,source:"core"}),e.commands.register({id:Kr,handler:()=>t.clearFocused(),metadata:{label:"Clear Notification",category:"Notifications"}}),e.bindings.register({command:Kr,key:"Delete",mac:"Cmd+Backspace",when:vt.FOCUS_CONTEXT_KEYS.notificationFocus,weight:wu,source:"core"}),e.commands.register({id:Bu,handler:()=>t.hideToasts(),metadata:{label:"Hide notifications",category:"Notifications"}}),e.bindings.register({command:Bu,key:"Escape",when:M1,weight:wu-50,source:"core"}),e.bindings.register({command:Bu,key:"Escape",when:F1,weight:wu+100,source:"core"})];return()=>{for(const u of n.reverse())u()}}const oc={kind:"none"};function sc(e){const t=e.notificationOverlay(pc.getMainWindow().window);return t?{kind:"native",port:t}:oc}function Hu(e){return e&&e.width>0&&e.height>0?{x:e.x,y:e.y,width:e.width,height:e.height}:void 0}function P1(e){var t;return[(t=e.progress)==null?void 0:t.onCancel,e.defaultRoute,e.source,e.neverShowAgainKey,...(e.actions??[]).flatMap(n=>[n.id,n.label,n.primary,n.keepOpen,n.onClick]),...(e.secondaryActions??[]).flatMap(n=>[n.label,n.onClick])]}function U1(e){return{...e.value!==void 0?{value:e.value}:{},done:e.done??!1,hasCancel:typeof e.onCancel=="function"}}function B1(e){return e.map(t=>({label:t.label,...t.id?{id:t.id}:{},...t.primary!==void 0?{primary:t.primary}:{},...t.keepOpen!==void 0?{keepOpen:t.keepOpen}:{}}))}function H1(e,t){const n=hu(e,t.settings);return{id:e.id,itemRevision:t.revision,severity:e.severity,title:e.title,...e.body?{body:e.body}:{},...e.markdown!==void 0?{markdown:e.markdown}:{},...e.icon?{icon:e.icon}:{},...e.announce?{announce:e.announce}:{},...e.expanded!==void 0?{expanded:e.expanded}:{},...e.progress?{progress:U1(e.progress)}:{},duration:Number.isFinite(n)?n:0,sticky:gu(e,t.settings),hovered:e.hovered,focused:e.focused,sourceMuted:e.source?dn(e.source):!1,...t.bounds?{bounds:t.bounds}:{},...e.source?{source:e.source}:{},...e.neverShowAgainKey?{neverShowAgainKey:e.neverShowAgainKey}:{},...e.remindKey?{remindKey:e.remindKey}:{},...e.defaultRoute?{defaultRoute:e.defaultRoute}:{},...e.actions?{actions:B1(e.actions)}:{},...e.secondaryActions?{secondaryActions:e.secondaryActions.map(u=>({label:u.label}))}:{},createdAt:e.createdAt}}const G1=["class","style","data-theme","data-palette",Lr.MENU_DENSITY_ATTRIBUTE];function $1(e,t){const n={};for(let r=0;r<e.style.length;r++){const i=e.style.item(r);i.startsWith("--")&&(n[i]=e.style.getPropertyValue(i))}const u=e.getAttribute(Lr.MENU_DENSITY_ATTRIBUTE);return{cssVariables:n,fontFamily:t.fontFamily,fontSize:t.fontSize,theme:e.classList.contains("light")?"light":"dark",...Oo.isOneOf(Lr.MENU_DENSITIES,u)?{menuDensity:u}:{}}}function z1(e){return{visible:e.visible,position:e.position,width:e.width,theme:e.theme,language:e.language,...e.appearance??{},generation:e.generation,reduceMotion:e.reduceMotion,animationDuration:e.animationDuration,remindLaterEnabled:e.remindLaterEnabled,sequence:e.sequence,...e.bounds?{bounds:e.bounds}:{},...e.clipBounds?{clipBounds:e.clipBounds}:{},items:e.items}}function V1(){const e=new Map;let t=0;return{revisionOf(n){const u=P1(n),r=e.get(n.id);if(r&&r.callbacks.length===u.length&&u.every((s,o)=>s===r.callbacks[o]))return r.revision;const i=++t;return e.set(n.id,{revision:i,callbacks:u}),i},current:n=>{var u;return(u=e.get(n))==null?void 0:u.revision},prune(n){for(const u of e.keys())n.some(r=>r.id===u)||e.delete(u)}}}function q1(e){const t=Math.min(...e.map(i=>i.x)),n=Math.min(...e.map(i=>i.y)),u=Math.max(...e.map(i=>i.x+i.width)),r=Math.max(...e.map(i=>i.y+i.height));return{x:t,y:n,width:u-t,height:r-n}}function W1(e,t){return!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}function Y1(e){return e?{x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height)}:void 0}function K1(e){const t=i=>{var h,E;const s=e.hostEl(),o=(s==null?void 0:s.getBoundingClientRect())??i.getBoundingClientRect();let c=0,l=0,d=i;for(;d&&d!==s;)c+=d.offsetLeft,l+=d.offsetTop,d=d.offsetParent;return{x:o.x+c-(((h=e.scrollEl())==null?void 0:h.scrollLeft)??0),y:o.y+l-(((E=e.scrollEl())==null?void 0:E.scrollTop)??0),width:i.offsetWidth,height:i.offsetHeight}},n=()=>{const i=e.hostEl();if(!i)return;const s=e.cards().map(t).filter(o=>o.width>0&&o.height>0);return s.length>0?q1(s):Hu(i.getBoundingClientRect())},[u,r]=m.createSignal();return m.createEffect(()=>{const i=e.hostEl(),s=e.hostWindow.ResizeObserver;if(!i||!s)return;const o=()=>{const d=n();d&&r(d)},c=new s(o),l=e.scrollEl();l==null||l.addEventListener("scroll",o),l&&c.observe(l),c.observe(i),o(),m.onCleanup(()=>{c.disconnect(),l==null||l.removeEventListener("scroll",o)})}),{cardBounds:t,stackBounds:n,hostRect:u}}function X1(e,t){return m.createMemo(()=>{const n=st.getVisibleBrowsers(e.hostWindow);if(n.length===0)return!1;const u=e.hostEl();if(!u)return!1;const r=t.hostRect()??t.stackBounds()??u.getBoundingClientRect();return r.width<=0||r.height<=0?!1:n.some(i=>W1(i.bounds,r))})}function j1(e,t,n){var r,i;if(t.actionType==="secondary"){const s=(r=e==null?void 0:e.secondaryActions)==null?void 0:r[t.actionIndex];s&&s.onClick();return}const u=(i=e==null?void 0:e.actions)==null?void 0:i[t.actionIndex];u&&(u.onClick(),u.keepOpen||n.close(t.id))}function Z1(e,t,n){var u,r,i;switch(e.type){case"scroll-stack":(u=n.scrollEl())==null||u.scrollBy({top:e.deltaY});break;case"open-settings":n.shell.openSettings();break;case"cancel-progress":(i=(r=t.progress)==null?void 0:r.onCancel)==null||i.call(r);break;case"navigate":t.defaultRoute&&n.shell.navigate(t.defaultRoute);break;case"open-external":n.controller.openExternal(e.url);break;case"dismiss-key":n.shell.dismissKey(e.key);break;case"remind-later":n.shell.remindLater(e.key,e.ttlMs);break;case"mute-source":n.shell.setSourceMuted(e.source,e.muted);break}}function Q1(e,t){const n=r=>t.items().find(i=>i.id===r),{controller:u}=t;m.onCleanup(e.onNotificationOverlayClose(r=>{t.isCurrent(r)&&u.close(r.id)})),m.onCleanup(e.onNotificationOverlayAction(r=>{t.isCurrent(r,!0)&&j1(n(r.id),r,u)})),m.onCleanup(e.onNotificationOverlayHover(r=>{t.isCurrent(r)&&u.setHover(r.id,r.hovered)})),m.onCleanup(e.onNotificationOverlayFocus(r=>{t.isCurrent(r)&&u.setFocus(r.id,r.focused)})),m.onCleanup(e.onNotificationOverlayPresented(t.onPresented)),m.onCleanup(e.onNotificationOverlayToggleExpanded(r=>{t.isCurrent(r)&&u.toggleExpanded(r.id)})),m.onCleanup(e.onNotificationOverlayCommand(r=>{if(!t.isCurrent(r,r.type!=="scroll-stack"))return;const i=n(r.id);i&&Z1(r,i,t)}))}function J1(e,t){for(const n of e)n.hovered&&t.setHover(n.id,!1),n.focused&&t.setFocus(n.id,!1)}function ep(e,t,n,u){var o,c,l;const r=e.hostEl(),i=r?t.stackBounds()??t.hostRect()??r.getBoundingClientRect():void 0,s=d=>{const h=r==null?void 0:r.ownerDocument.getElementById(`notification-card-${d}`);return Hu(h?t.cardBounds(h):void 0)};return z1({visible:u.active,position:e.position(),width:e.width(),theme:((o=e.appearance())==null?void 0:o.theme)??((l=(c=e.hostWindow.document)==null?void 0:c.documentElement)!=null&&l.classList.contains("light")?"light":"dark"),language:C.appI18n.language,appearance:e.appearance(),generation:u.generation,sequence:u.sequence,reduceMotion:e.reduceMotion(),animationDuration:e.animationDuration(),remindLaterEnabled:e.settings().remindLaterEnabled,bounds:Y1(Hu(i)),clipBounds:Hu(r==null?void 0:r.getBoundingClientRect()),items:e.visible().map(d=>H1(d,{revision:n.revisionOf(d),settings:e.settings(),bounds:s(d.id)}))})}function tp(e){const t=e.channel;if(t.kind==="none")return{nativeRendered:()=>!1};const n=t.port,u=Math.floor(performance.timeOrigin*1e3+performance.now());let r=0,i=!1;const s=V1(),o=K1(e),c=X1(e,o),[l,d]=m.createSignal(!1),h=(E,_=!1)=>e.ownsDisplay()&&i&&E.generation===u&&E.sequence<=r&&(!_||s.current(E.id)===E.itemRevision);return m.onMount(()=>Q1(n,{...e,isCurrent:h,onPresented:E=>{E.generation!==u||E.sequence>r||d(i&&E.visible)}})),m.createEffect(()=>{const E=e.visible(),_=e.ownsDisplay()&&!e.isCenterOpen()&&E.length>0,g=c()&&_,N=i;i=g,N&&!g&&queueMicrotask(()=>{i||J1(e.items(),e.controller)}),s.prune(e.items()),g||d(!1),n.setNotificationOverlay(ep(e,o,s,{active:g,generation:u,sequence:++r}))}),m.onCleanup(()=>{n.setNotificationOverlay({visible:!1,position:e.position(),width:e.width(),items:[],generation:u,sequence:++r})}),{nativeRendered:l}}const np="vk_host_-dTTD",up="vk_scrollArea_FaEtH",rp="vk_stack_4LHtI",ip="vk_enter_GAjwE",op="vk_ackOverlay_1dc3n",sp="vk_ackCenterWrap_ZPFTX",cp="vk_ackQueueHint_HL0SL",sn={host:np,scrollArea:up,stack:rp,enter:ip,ackOverlay:op,ackCenterWrap:sp,ackQueueHint:cp};var ap=["<div",">","</div>"],lp=["<p",">","</p>"],fp=["<div",' role="alertdialog" aria-modal="true" aria-labelledby="','"',"><div",' id="','">',"","</div></div>"];const dp=e=>{var be;const t=Io.useHostWindow().window,n=Sn.useKitHost(),u=n.notifications.stack,r=n.displayOwner.register(t);m.onCleanup(r.dispose);const[i,s]=Gu.createStore({items:[]}),o=K.notificationSettings.get(),[c,l]=m.createSignal(o),[d,h]=m.createSignal(),[E,_]=m.createSignal(o.toastPosition),g=()=>E(),[N,R]=m.createSignal(o.notificationWidth),[y,D]=m.createSignal(o.animationDuration),[L,v]=m.createSignal(o.reduceMotion),[w,M]=m.createSignal(),[G,Z]=m.createSignal(),[re,ie]=m.createSignal(null),le=os(n,c),$=ci(n),te=()=>i.items.filter(B=>B.priority==="acknowledgment-required"),X=()=>i.items.filter(B=>Jr(B)&&B.outOfSightSince===void 0),ne=()=>te()[0]??null,k=()=>e.centerOpen(),V=B=>{B&&(l(Ue=>({...Ue,...B})),B.toastPosition&&_(B.toastPosition),typeof B.notificationWidth=="number"&&R(B.notificationWidth),(B.animationDuration==="fast"||B.animationDuration==="normal"||B.animationDuration==="slow")&&D(B.animationDuration),typeof B.reduceMotion=="boolean"&&v(B.reduceMotion))},ue=()=>{var We;const B=X(),Ue=re(),Be=Ue!==null?B[Ue]:B[0],qe=(We=Be==null?void 0:Be.actions)==null?void 0:We.find(Xe=>Xe.primary);!Be||!qe||(qe.onClick(),qe.keepOpen||u.close(Be.id))},Ae=()=>{const B=X(),Ue=re();if(Ue===null)return;const Be=B[Ue];!Be||kt(Be)||(u.dismiss(Be.id),ie(B.length<=1?null:Math.min(Ue,B.length-2)))},pe=()=>{X().length!==0&&(es(i.items).forEach(B=>u.dismiss(B)),ie(null))},xe=vt.useKeybindingsOptional(),Te=xe===null,Ge=/Mac OS X|Macintosh/i.test(((be=t.navigator)==null?void 0:be.userAgent)??""),rt=B=>{var Ot;const Ue=X();if(Ue.length===0)return;if(Te&&!B.defaultPrevented&&mn.isKey(B,"Escape")){B.preventDefault(),pe();return}const Be=B.target;if(!Be||typeof Be.nodeType!="number"||!((Ot=w())!=null&&Ot.contains(Be)))return;const qe=re(),We=Js(B,qe,Ue.length,"ends");if(We!==null){B.preventDefault(),ie(We);return}if(qe===null)return;const Xe=Ue[qe];if(Xe){if(mn.isKey(B,"ArrowRight")&&!Xe.expanded){B.preventDefault(),u.toggleExpanded(Xe.id);return}if(mn.isKey(B,"ArrowLeft")&&Xe.expanded){B.preventDefault(),u.toggleExpanded(Xe.id);return}if(Te&&!B.defaultPrevented&&(mn.isKey(B,"Delete")||Ge&&mn.isKey(B,"Backspace")&&B.metaKey)){B.preventDefault(),Ae();return}(B.key===" "||mn.isKey(B,"Enter"))&&(B.preventDefault(),u.toggleExpanded(Xe.id))}};K.useSettingsSubscription(K.notificationSettings,V),xe&&(vt.createFocusContextKey({contextKeys:xe.contextKeys,key:vt.FOCUS_CONTEXT_KEYS.notificationFocus,containerRef:w}),m.createRenderEffect(()=>{xe.contextKeys.setContext(vt.FOCUS_CONTEXT_KEYS.notificationToastsVisible,r.ownsDisplay()&&!k()&&X().length>0)}),m.onCleanup(ic(xe,{acceptPrimaryAction:ue,clearFocused:Ae,hideToasts:pe}))),m.onMount(()=>{const B=t.document.documentElement,Ue=()=>{const We=$1(B,t.getComputedStyle(B));h(Xe=>JSON.stringify(Xe)===JSON.stringify(We)?Xe:We)};Ue();const Be=new t.MutationObserver(Ue);Be.observe(B,{attributes:!0,attributeFilter:[...G1]}),m.onCleanup(()=>Be.disconnect());const qe=u.subscribe(We=>{s("items",Gu.reconcile(We,{key:"id",merge:!0}))});t.addEventListener("keydown",rt),m.onCleanup(()=>{qe(),t.removeEventListener("keydown",rt)})}),m.createEffect(()=>{var B;(B=w())==null||B.style.setProperty("--notif-width",`${N()}px`)});const It=tp({channel:e.overlay??sc(n.desktop),hostWindow:t,ownsDisplay:r.ownsDisplay,items:()=>i.items,visible:X,isCenterOpen:k,hostEl:w,scrollEl:G,cards:()=>{var B;return[...((B=w())==null?void 0:B.querySelectorAll(`.${sn.enter}`))??[]]},position:E,width:N,appearance:d,reduceMotion:L,animationDuration:y,settings:c,controller:le,shell:$});return m.createEffect(()=>{const B=w();if(B){if(L()){B.style.setProperty("--notif-anim-duration","0ms");return}switch(y()){case"fast":B.style.setProperty("--notif-anim-duration","100ms");break;case"normal":B.style.setProperty("--notif-anim-duration","220ms");break;case"slow":B.style.setProperty("--notif-anim-duration","400ms");break}}}),Xr.createDialogShellFocus({open:()=>r.ownsDisplay()&&ne()!==null,onDismiss:()=>{},ownerDocument:()=>globalThis.document,dismissDisabled:()=>!0}),[a.createComponent(Ti.HostPortal,{element:()=>w(),type:"toast",open:()=>!!(r.ownsDisplay()&&!k()&&X().length>0),idPrefix:"notification-toast",get children(){return a.createComponent(m.Show,{get when(){return a.memo(()=>!!r.ownsDisplay())()&&!k()},get children(){return a.ssrElement("div",a.mergeProps(()=>yo.modalBackgroundExemption("notifications"),{get class(){return sn.host},get"data-position"(){return g()},get"data-presenter"(){return It.nativeRendered()?"native":"dom"},"aria-label":"Notifications",tabIndex:-1}),a.escape(a.createComponent(Xu.OverlayScrollArea,{get rootClass(){return sn.scrollArea},get viewportClass(){return sn.stack},viewportRef:Z,hideHorizontal:!0,get children(){return a.createComponent(m.For,{get each(){return X()},children:(B,Ue)=>a.ssr(ap,a.ssrAttribute("class",a.escape(sn.enter,!0),!1)+a.ssrAttribute("data-focused",re()===Ue()?"true":"false",!1),a.escape(a.createComponent(Yu,{item:B,controller:le,get shell(){return B.isolated?null:$},get corner(){return g()}})))})}})),!1)}})}}),a.createComponent(Ti.HostPortal,{modal:!0,open:()=>!!(r.ownsDisplay()&&ne()),idPrefix:"notification-ack",get children(){return a.createComponent(m.Show,{keyed:!0,get when(){return a.memo(()=>!!r.ownsDisplay())()?ne():null},children:B=>a.ssr(fp,a.ssrAttribute("class",a.escape(sn.ackOverlay,!0),!1),`notif-ack-${a.escape(B.id,!0)}`,a.ssrAttribute("data-ack-queue-size",te().length>1?a.escape(te().length,!0):a.escape(void 0,!0),!1),a.ssrAttribute("class",a.escape(sn.ackCenterWrap,!0),!1),`notif-ack-${a.escape(B.id,!0)}`,a.escape(a.createComponent(Yu,{item:B,controller:le,get shell(){return B.isolated?null:$}})),a.escape(a.createComponent(m.Show,{get when(){return te().length>1},get children(){return a.ssr(lp,a.ssrAttribute("class",a.escape(sn.ackQueueHint,!0),!1),a.escape(C.t("+{count} pending acknowledgment",{count:te().length-1})))}})))})}})]},pp=ft.defineNotification({id:"onboarding.PageTourHost.info.1",source:"general",severity:"info",priority:"default",delivery:"in-app",kind:"message"},()=>({message:C.t("You can reopen this tour from Help → Page tours.")}));function Ku(e){return e.getClientRects().length>0&&e.getBoundingClientRect().width>0&&e.getBoundingClientRect().height>0}function Lu(e){return t=>t.matches(e)&&Ku(t)?t:Array.from(t.querySelectorAll(e)).find(Ku)??null}var hp=["<span hidden","></span>"];function gp(e){const t=m.createMemo(()=>e.definition),n=m.useContext(st.ToolWindowContext),{tours:u,notifications:r,log:i}=Sn.useKitHost(),s=i.withTag("PageTour");let o;const[c,l]=m.createSignal(!1),[d,h]=m.createSignal(0),[E,_]=m.createSignal([]);let g=!1,N=!1,R=!1;const y={},D=()=>o.parentElement,L=()=>Ku(D()),v=(G,Z=!0)=>{var re;l(!1),u.release(y),u.setActive(null),(re=e.onTourActiveChange)==null||re.call(e,!1);try{u.writeStatus(t().pageId,G?"completed":"skipped")}catch(ie){s.warn("Could not save tour progress",ie)}g&&Z&&r.notify(pp,{}),g=!1},w=()=>{u.setNeverShowAgain(!0),v(!1,!1)},M=(G=!1)=>{var re;if(!L()||!u.claim(y))return;N=!1;const Z=t().steps.filter(ie=>{var le;return((le=ie.available)==null?void 0:le.call(ie))!==!1});if(!Z.length){u.release(y);return}_(Z),h(0),g=G;try{u.writeStatus(t().pageId,"shown")}catch(ie){s.warn("Could not save tour progress",ie)}u.setActive(t().pageId),(re=e.onTourActiveChange)==null||re.call(e,!0),l(!0)};return m.onMount(()=>{const G=D(),Z=G.hasAttribute("tabindex");Z||(G.tabIndex=-1),m.onCleanup(()=>{Z||G.removeAttribute("tabindex")});const ie=o.ownerDocument.defaultView;if(!ie)return;const le=()=>Array.from(o.ownerDocument.querySelectorAll('[role="dialog"], [role="alertdialog"]')).some(k=>Ku(k)&&!k.contains(D()));let $=0;const te=()=>{var k;if(!L()){$=0,c()&&v(!1,!1);return}if(!(c()||le()||((k=n==null?void 0:n.isReady)==null?void 0:k.call(n))===!1)&&!(++$<2)){if(u.consumeRequest(t().pageId)&&(N=!0),N){M();return}if(!R&&!u.skipWelcome())try{u.readStatus(t().pageId)||M(!0)}catch(V){R=!0,s.warn("Could not read tour progress",V)}}},X=u.registerHost({page:t().pageId,document:()=>o.ownerDocument,visible:L,start:()=>{N=!0,(c()||!le())&&M()},dismiss:()=>{c()&&v(!1,!1)}}),ne=ie.setInterval(te,250);m.onCleanup(()=>{var k;ie.clearInterval(ne),X(),u.release(y),u.activePage()===t().pageId&&(u.setActive(null),(k=e.onTourActiveChange)==null||k.call(e,!1))})}),[a.ssr(hp,a.ssrAttribute("data-page-tour-host",a.escape(t().pageId,!0),!1)),a.createComponent(m.Show,{get when(){return c()},get children(){return a.createComponent(Ln.GuidedTour,{get document(){return o.ownerDocument},focusFallback:()=>L()?D():null,get steps(){return E()},get index(){return d()},target:()=>{var G;return((G=E()[d()])==null?void 0:G.target(D()))??null},onSelect:h,onClose:v,onNeverShowAgain:w})}})]}const Ep={id:"notifications",pageId:"notifications",version:1,steps:[{id:"panel",title:"Notification Center",description:"Stay informed on database events, completed exports, query execution errors, and background system alerts.",target:Lu('[data-tour-target="notifications-panel"]')},{id:"actions",title:"Timeline Actions & Filter Options",description:"Search notifications, filter by priority or notification source, pin important entries, and export history to CSV or JSON.",target:Lu('[data-tour-target="notifications-actions"]')},{id:"settings",title:"Notification Settings & DND",description:"Open the notification menu to configure do-not-disturb, quiet hours, and notification delivery preferences.",target:Lu('[data-tour-target="notifications-settings"]')},{id:"timeline",title:"Interactive Timeline Cards",description:"Click notification entries to expand stack traces, inspect vendor error codes, or navigate directly to affected queries.",target:Lu('[data-tour-target="notifications-timeline"]')}]},bp=e=>kt(e)&&e.priority!=="acknowledgment-required";function cc(){const{stack:e}=Sn.useKitHost().notifications,[t,n]=Gu.createStore({items:[]});return m.onMount(()=>{const u=e.subscribe(r=>{n("items",Gu.reconcile(r.filter(bp),{key:"id",merge:!0}))});m.onCleanup(u)}),()=>t.items}function ac(e){const t=Sn.useKitHost(),n=os(t,()=>K.notificationSettings.get()),u=ci(t);return a.createComponent(m.For,{get each(){return e.items},children:r=>a.createComponent(Yu,{item:r,controller:n,shell:u,inCenter:!0,get corner(){return e.corner}})})}function _p(e,t,n,u,r=2){return e<=0||e>n?0:Math.min(t,r+Math.floor((n-e)/u))}function Qn(e,t){e(n=>{const u=new Set(n);return u.has(t)?u.delete(t):u.add(t),u})}function mp(e){if(!e.isConnected)return!1;const t=e.getBoundingClientRect();return t.width>0&&t.height>0}function Ap(e,t){var s;let n;const u=()=>{const o=mp(e);if(o&&n===void 0)n=t();else if(!o&&n!==void 0){const c=n;n=void 0,c.dispose()}},r=(s=e.ownerDocument.defaultView)==null?void 0:s.ResizeObserver,i=r===void 0?void 0:new r(u);return i==null||i.observe(e),u(),()=>{i==null||i.disconnect();const o=n;n=void 0,o==null||o.dispose()}}const Tp="vk_rightRail_HtYMh",Sp="vk_notificationPanel_nrSZl",Cp="vk_filterBar_WTQg3",Np="vk_notificationPanelHeader_aHtxT vk_headerRail_CLLzD",Rp="vk_notificationPanelTitleWrap_cOfAP vk_titleWrapRail_b0Czp",Ip="vk_notificationPanelTitle_9iMrQ vk_titleSmMargin_PPvAx",Op="vk_notificationPanelActions_7fRj6 vk_actionsRail_QqUv8",yp="vk_notificationActionIcon_d5EzT",xp="vk_notificationTimeline_K-mMI",Dp="vk_notificationEmpty_IU6kY",kp="vk_notificationItem_tm8HP",vp="vk_notificationGroup_4hkdy",wp="vk_notificationGroupToggle_Opmmd",Lp="vk_notificationGroupBody_nlrmq",Mp="vk_notificationItemSelected_DspyF",Fp="vk_notificationItemCheckbox_knWVX",Pp="vk_bulkActionBar_6MHEY",Up="vk_bulkActionCount_Mb4tN",Bp="vk_notificationItemTop_Mt0D7",Hp="vk_notificationToneDot_Z-LOj",Gp="vk_notificationToneInfo_rxKOj",$p="vk_notificationToneSuccess_Bxc9E",zp="vk_notificationToneWarning_uBK0T",Vp="vk_notificationToneError_p9EYY",qp="vk_notificationItemTime_WT4cd",Wp="vk_notificationItemCopyDone_P39uT",Yp="vk_notificationItemMessage_G2mnV",Kp="vk_notificationItemMeta_xdFUH",Xp="vk_notificationSourceLabel_VvB0i",jp="vk_priorityBadgeIcon_UaJX0",fe={rightRail:Tp,notificationPanel:Sp,filterBar:Cp,notificationPanelHeader:Np,notificationPanelTitleWrap:Rp,notificationPanelTitle:Ip,notificationPanelActions:Op,notificationActionIcon:yp,notificationTimeline:xp,notificationEmpty:Dp,notificationItem:kp,notificationGroup:vp,notificationGroupToggle:wp,notificationGroupBody:Lp,notificationItemSelected:Mp,notificationItemCheckbox:Fp,bulkActionBar:Pp,bulkActionCount:Up,notificationItemTop:Bp,notificationToneDot:Hp,notificationToneInfo:Gp,notificationToneSuccess:$p,notificationToneWarning:zp,notificationToneError:Vp,notificationItemTime:qp,notificationItemCopyDone:Wp,notificationItemMessage:Yp,notificationItemMeta:Kp,notificationSourceLabel:Xp,priorityBadgeIcon:jp};var Zp=["<h3",">","</h3>"],Qp=["<div",' data-tour-target="notifications-actions">',"</div>"],Jp=["<div",' role="toolbar"',"><span",">","</span>","","","","</div>"],eh=["<span",">📌 ","</span>"],th=["<aside",' tabindex="-1"><section',' data-tour-target="notifications-panel">',"","","","","</section></aside>"],Co=["<p",">","</p>"],nh=['<span class="','"></span>'],uh=["<span",">","</span>"],rh=["<div",">",'<span class="','"></span><time',">","</time>","","","","</div>"],ih=["<div","><span",">","</span>","","","</div>"];function oh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function sh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function No(e){switch(e){case"success":return fe.notificationToneSuccess;case"error":return fe.notificationToneError;case"warning":return fe.notificationToneWarning;default:return fe.notificationToneInfo}}const Mu=["error","warning","info","success"],ch=189,ah=27;function lh(e){const t=m.createMemo(()=>e.notificationTimeline),n=()=>t()(),u=Io.useHostDocument(),r=Sn.useKitHost(),{notifications:i}=r,s=i.timeline,o=r.log.withTag("NotificationPanel"),c=T=>st.openExternalUrl(r.desktop,o,T),l=T=>$u(r.vendorErrors,T),[d,h]=m.createSignal(null),[E,_]=m.createSignal(0),[g,N]=m.createSignal(""),[R,y]=m.createSignal(null),[D,L]=m.createSignal(new Set),[v,w]=m.createSignal(!1),[M,G]=m.createSignal(new Set),[Z,re]=m.createSignal(new Set),[ie,le]=m.createSignal(new Set),[$,te]=m.createSignal(!1),[X,ne]=m.createSignal(0);let k=null;const V=Zr.useDesktopContextMenu(),ue=cc(),Ae=m.createMemo(()=>Qo(g(),$())),pe=m.createMemo(()=>Jo(n(),{tones:D(),sources:Z(),priorities:ie(),dateBounds:R(),searchMatcher:Ae()})),xe=m.createMemo(()=>{const T=new Set;for(const J of n())T.add(J.source);return Array.from(T).sort()}),Te=m.createMemo(()=>pe().filter(T=>T.pinned===!0)),[Ge,rt]=m.createSignal(0);K.useSettingsSubscription(K.notificationSettings,()=>{rt(T=>T+1)});const[It,be]=m.createSignal(new Set),B=m.createMemo(()=>{Ge();const T=K.notificationSettings.get();return T.timelineGroupingEnabled?ts(pe(),T.timelineGroupBy):pe().map(J=>({type:"entry",id:J.id,entry:J}))});let Ue,Be;tc({container:()=>Be,drawn:()=>[ue(),B(),It()],fallback:T=>T.focus()});const qe=T=>{Qn(be,T)},We=()=>g().trim()!==""||R()!==null||D().size>0||Z().size>0||ie().size>0,Xe=()=>{N(""),y(null),L(new Set),re(new Set),le(new Set)},Ot=T=>{Qn(re,T)},pn=T=>{Qn(le,T)},jt=["urgent","acknowledgment-required","default","optional","silent"],Ie=T=>{if(T.preventDefault(),T.stopPropagation(),V.state()!==null){V.close();return}const p=T.currentTarget.getBoundingClientRect(),A=xe(),F={urgent:C.t("Urgent"),"acknowledgment-required":C.t("Acknowledgment required"),default:C.t("Default"),optional:C.t("Optional"),silent:C.t("Silent")};V.open(p.left,p.bottom+4,[{label:C.t("Use regex in search"),checked:()=>$(),keepOpenOnSelect:!0,onSelect:()=>{te(j=>!j)}},{type:"separator"},{label:C.t("Filter by priority"),submenu:jt.map(j=>({label:F[j],checked:()=>ie().has(j),keepOpenOnSelect:!0,onSelect:()=>pn(j)}))},...A.length>0?[{label:C.t("Filter by source"),submenu:A.map(j=>({label:an(j).label,checked:()=>Z().has(j),keepOpenOnSelect:!0,onSelect:()=>Ot(j)}))}]:[],{type:"separator"},{label:C.t("Clear advanced filters"),disabled:Z().size===0&&ie().size===0,onSelect:()=>{re(new Set),le(new Set)}}])},$t=T=>{Qn(L,T)},Oe=()=>{const T=D();return T.size===0||T.size===Mu.length?C.t("All tones"):Array.from(T).join(", ")},zt=T=>{if(T.preventDefault(),T.stopPropagation(),V.state()!==null){V.close();return}const p=T.currentTarget.getBoundingClientRect();V.open(p.left,p.bottom+4,[...Mu.map(A=>({label:C.t(bi[A]),checked:()=>D().has(A),keepOpenOnSelect:!0,onSelect:()=>$t(A)})),{type:"separator"},...D().size===Mu.length?[{label:C.t("Select none"),onSelect:()=>{L(new Set)}}]:[{label:C.t("Select all"),onSelect:()=>{L(new Set(Mu))}}]])};m.onMount(()=>{const T=s.subscribeUnread(_),J=Ap(Ue,()=>i.stack.registerShownCenter());m.onCleanup(()=>{T(),J()})});const S=T=>i.dismissEntry(T),U=T=>{const J={source:vo(T.source)?T.source:"general",priority:"urgent",recordTimeline:!1},p=T.tone;p==="error"?i.notify(ca,{timelineMessage:T.message,options:J}):p==="warning"?i.notify(aa,{timelineMessage:T.message,options:J}):p==="success"?i.notify(la,{timelineMessage:T.message,options:J}):i.notify(fa,{timelineMessage:T.message,options:J})},Q=T=>{const J=l(T);J&&c(J.helpers.docsUrl(J.code))},se=()=>s.clear(),_e=T=>{Qn(G,T)},ve=()=>{w(!0),G(new Set)},Je=()=>{w(!1),G(new Set)},yt=()=>{G(new Set(pe().map(T=>T.id)))},Ye=()=>M().size,et=()=>{const T=M();return pe().filter(J=>T.has(J.id)).map(J=>J.id)},je=()=>{const T=et();T.length!==0&&(s.dismissMany(T),Je())},mt=T=>{const J=M(),p=n().filter(A=>J.has(A.id));for(const A of p)(A.pinned??!1)!==T&&s.togglePin(A.id)},Vt=async T=>{const J=pe();if(J.length===0)return;const p=r.desktop.fs,F=`notifications-${new Date().toISOString().replace(/[:T]/g,"-").slice(0,19)}.${T}`,j=T==="csv"?[{name:"CSV",extensions:["csv"]}]:[{name:"JSON",extensions:["json"]}];try{const Ne=await p.showSaveDialog({title:C.t("Export notifications"),defaultPath:F,filters:j});if(!(Ne!=null&&Ne.filePath))return;const we=T==="csv"?us(J):rs(J);await p.writeFile(Ne.filePath,we),i.notify(da,{entryCount:J.length})}catch(Ne){i.notify(pa,{cause:Ne})}},Zt=()=>r.openNotificationSettings(),Qt=T=>{if(T.preventDefault(),T.stopPropagation(),V.state()!==null){V.close();return}const p=T.currentTarget.getBoundingClientRect(),A=pe().length===0;V.open(p.left,p.bottom+4,[{label:C.t("Export"),disabled:A,submenu:[{label:C.t("Export as CSV"),onSelect:()=>{Vt("csv")}},{label:C.t("Export as JSON"),onSelect:()=>{Vt("json")}}]},{type:"separator"},{label:C.t("Notification settings…"),onSelect:Zt}])},Lt=async T=>{var p;const J=T.message.trim();if(J)try{if((p=navigator.clipboard)!=null&&p.writeText)await navigator.clipboard.writeText(J);else{const A=u,F=xo.createElement("textarea");F.value=J,F.setAttribute("readonly","true"),F.style.position="fixed",F.style.opacity="0",A.body.appendChild(F),F.select(),A.execCommand("copy"),A.body.removeChild(F)}h(T.id),k!==null&&window.clearTimeout(k),k=window.setTimeout(()=>{h(A=>A===T.id?null:A),k=null},1400)}catch(A){o.warn("Timeline entry could not be copied:",A)}};m.onCleanup(()=>{k!==null&&window.clearTimeout(k)}),m.onMount(()=>{});const Mt=m.createMemo(()=>[{id:"select",icon:()=>a.createComponent(Ce.VpSquareCheck,{get class(){return fe.notificationActionIcon}}),label:()=>C.t("Select multiple notifications"),disabled:()=>pe().length===0,onSelect:ve},{id:"mark-read",icon:()=>a.createComponent(Ce.VpMailOpened,{get class(){return fe.notificationActionIcon}}),label:()=>C.t("Mark all as read"),disabled:()=>E()===0,onSelect:()=>s.markSeen()},{id:"clear",icon:()=>a.createComponent(Ce.VpTrash,{get class(){return fe.notificationActionIcon}}),label:()=>C.t("Clear all notifications"),disabled:()=>n().length===0,onSelect:se}]),qt=m.createMemo(()=>_p(X(),Mt().length,ch,ah)),Jt=m.createMemo(()=>{const T=Mt();return T.slice(0,T.length-qt())}),en=m.createMemo(()=>{const T=Mt();return T.slice(T.length-qt())}),hn=T=>{if(T.preventDefault(),T.stopPropagation(),V.state()!==null){V.close();return}V.openWithPlacement(rc(T.currentTarget,{horizontal:"right"}),en().map(J=>({label:J.label(),icon:J.icon(),disabled:J.disabled(),onSelect:J.onSelect})))};return a.ssr(th,a.ssrAttribute("class",a.escape(fe.rightRail,!0),!1),a.ssrAttribute("class",a.escape(fe.notificationPanel,!0),!1),a.escape(a.createComponent(Ln.Panel.Header,{get class(){return fe.notificationPanelHeader},get children(){return[a.createComponent(jr.PressableSurface,{type:"button",get class(){return fe.notificationPanelTitleWrap},"data-tour-target":"notifications-settings",onClick:Qt,get title(){return C.t("Notification menu")},"aria-haspopup":"menu",get children(){return[a.ssr(Zp,a.ssrAttribute("class",a.escape(fe.notificationPanelTitle,!0),!1),a.escape(C.t("Notifications"))),a.createComponent(m.Show,{get when(){return E()>0},get children(){return a.createComponent(ft.Badge,{tone:"danger",size:"sm",get tooltip(){return C.t("{count} unread",{count:E()})},get children(){return E()>99?"99+":E()}})}})]}}),a.ssr(Qp,a.ssrAttribute("class",a.escape(fe.notificationPanelActions,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return!v()},get fallback(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:Je,get title(){return C.t("Exit selection mode")},get children(){return C.t("Cancel")}})},get children(){return[a.createComponent(m.For,{get each(){return Jt()},children:T=>a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return T.onSelect},get disabled(){return T.disabled()},get title(){return T.label()},get"aria-label"(){return T.label()},get children(){return T.icon()}})}),a.createComponent(m.Show,{get when(){return en().length>0},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:hn,get title(){return C.t("More actions")},get"aria-label"(){return C.t("More actions")},get children(){return a.createComponent(hc.VpDots,{get class(){return fe.notificationActionIcon}})}})}})]}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.ssr(Jp,a.ssrAttribute("class",a.escape(fe.bulkActionBar,!0),!1),a.ssrAttribute("aria-label",a.escape(C.t("Bulk actions"),!0),!1),a.ssrAttribute("class",a.escape(fe.bulkActionCount,!0),!1),a.escape(C.t("{count} selected",{count:Ye()})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:yt,get disabled(){return pe().length===0||Ye()===pe().length},get title(){return C.t("Select all visible")},get children(){return C.t("Select all")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:()=>mt(!0),get disabled(){return Ye()===0},get title(){return C.t("Pin selected")},get children(){return C.t("Pin")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:()=>mt(!1),get disabled(){return Ye()===0},get title(){return C.t("Unpin selected")},get children(){return C.t("Unpin")}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:je,get disabled(){return Ye()===0},get title(){return C.t("Delete selected")},get leadingIcon(){return a.createComponent(Ce.VpTrash,{get class(){return fe.notificationActionIcon}})},get children(){return C.t("Delete")}})))}})),a.escape(a.createComponent(ko,{get class(){return fe.filterBar},get searchValue(){return g()},onSearchInput:N,get searchPlaceholder(){return C.t("Search notifications…")},get dateRange(){return R()},onDateRangeChange:y,dateRangeAlign:"end",get children(){return[a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return D().size>0},onClick:zt,get title(){return a.memo(()=>D().size===0)()?C.t("Filter by tone"):C.t("Tone filter: {tones}",{tones:Oe()})},get children(){return a.createComponent(Ce.VpFilter,{get class(){return fe.notificationActionIcon}})}}),a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return Z().size>0||ie().size>0||$()},onClick:Ie,get title(){return C.t("Advanced filters (source, priority, regex)")},get children(){return a.createComponent(Ce.VpAdjustments,{get class(){return fe.notificationActionIcon}})}}),a.createComponent(m.Show,{get when(){return We()},get children(){return a.createComponent(Fe.Button,{variant:"ghost",size:"sm",onClick:Xe,get title(){return C.t("Clear filters")},get children(){return C.t("Clear")}})}})]}})),a.escape(a.createComponent(Xu.OverlayScrollArea,a.mergeProps({get viewportClass(){return fe.notificationTimeline},viewportRef:T=>{Be=T}},Yd,{role:"group",tabIndex:0,get"aria-label"(){return C.t("Notifications")},"data-tour-target":"notifications-timeline",onKeyDown:T=>ec(T,T.currentTarget),get children(){return[a.createComponent(ac,{get items(){return ue()}}),a.createComponent(m.Show,{get when(){return pe().length>0},get fallback(){return a.createComponent(m.Show,{get when(){return We()||ue().length===0},get children(){return a.ssr(Co,a.ssrAttribute("class",a.escape(fe.notificationEmpty,!0),!1),We()?a.escape(C.t("No notifications match the current filter.")):a.escape(C.t("No notifications yet.")))}})},get children(){return[a.createComponent(m.Show,{get when(){return Te().length>0},get children(){return a.createComponent(Ln.Panel.Header,{get class(){return fe.notificationItemTop},get children(){return a.ssr(eh,a.ssrAttribute("class",a.escape(fe.notificationSourceLabel,!0),!1),a.escape(C.t("Pinned ({count})",{count:Te().length})))}})}}),a.createComponent(m.For,{get each(){return B()},children:T=>{if(T.type==="group"&&T.groupItems){const J=()=>It().has(T.id);return a.createComponent(Ln.Disclosure,{get class(){return fe.notificationGroup},get toggleClass(){return fe.notificationGroupToggle},get open(){return J()},onToggle:()=>qe(T.id),get bodyClass(){return fe.notificationGroupBody},get title(){return[a.ssr(nh,`${a.escape(fe.notificationToneDot,!0)} ${a.escape(No(T.groupTone??"info"),!0)}`),a.ssr(uh,a.ssrAttribute("class",a.escape(fe.notificationItemMessage,!0),!1),a.escape(C.t('{count} from "{source}"',{count:T.groupCount??0,source:an(T.groupSource??"").label})))]},get children(){return a.createComponent(m.For,{get each(){return T.groupItems},children:p=>tn(p)})}})}return T.type==="entry"&&T.entry?tn(T.entry):null}})]}})]}}))),a.escape(a.createComponent(gp,{definition:Ep})));function tn(T){const J=()=>l(T);return a.ssrElement("article",a.mergeProps(_i,{get class(){return`${fe.notificationItem} ${v()&&M().has(T.id)?fe.notificationItemSelected:""}`},tabIndex:-1,get"aria-label"(){return nc(T)}}),[a.ssr(rh,a.ssrAttribute("class",a.escape(fe.notificationItemTop,!0),!1),a.escape(a.createComponent(m.Show,{get when(){return v()},get children(){return a.createComponent(Xr.Checkbox,{get class(){return fe.notificationItemCheckbox},get checked(){return M().has(T.id)},onChange:()=>_e(T.id),get ariaLabel(){return C.t("Select notification")}})}})),`${a.escape(fe.notificationToneDot,!0)} ${a.escape(No(T.tone),!0)}`,a.ssrAttribute("class",a.escape(fe.notificationItemTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date(T.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(sh(T.createdAt),!0),!1),a.escape(oh(T.createdAt)),a.escape(a.createComponent(m.Show,{keyed:!0,get when(){return J()},children:p=>a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{Q(T)},get title(){return C.t("Open {vendor} ({code})",{vendor:p.helpers.docsLinkLabel,code:p.helpers.formatCode(p.code)})},get"aria-label"(){return C.t("Open {vendor} ({code})",{vendor:p.helpers.docsLinkLabel,code:p.helpers.formatCode(p.code)})},get leadingIcon(){return a.createComponent(Ce.VpBook,{get class(){return fe.notificationActionIcon}})}})})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>U(T),get title(){return C.t("Show as toast again")},get"aria-label"(){return C.t("Show as toast again")},get leadingIcon(){return a.createComponent(Ce.VpBellRinging,{get class(){return fe.notificationActionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,get class(){return a.memo(()=>d()===T.id)()?fe.notificationItemCopyDone:void 0},onClick:()=>{Lt(T)},get title(){return a.memo(()=>d()===T.id)()?C.t("Copied"):C.t("Copy log message")},get"aria-label"(){return a.memo(()=>d()===T.id)()?C.t("Copied"):C.t("Copy log message")},get children(){return a.createComponent(m.Show,{get when(){return d()===T.id},get fallback(){return a.createComponent(Ec.VpCopy,{get class(){return fe.notificationActionIcon}})},get children(){return a.createComponent(gc.VpCheck,{get class(){return fe.notificationActionIcon}})}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"2xs",iconOnly:!0,onClick:()=>{S(T.id)},get title(){return C.t("Remove notification")},get"aria-label"(){return C.t("Remove notification")},get leadingIcon(){return a.createComponent(bc.VpMinus,{get class(){return fe.notificationActionIcon}})}}))),a.ssr(Co,a.ssrAttribute("class",a.escape(fe.notificationItemMessage,!0),!1),a.escape(T.message)),a.ssr(ih,a.ssrAttribute("class",a.escape(fe.notificationItemMeta,!0),!1),a.ssrAttribute("class",a.escape(fe.notificationSourceLabel,!0),!1)+a.ssrAttribute("title",a.escape(an(T.source).description,!0),!1),a.escape(an(T.source).label),a.escape(a.createComponent(m.Show,{get when(){return T.priority==="urgent"},get children(){return a.createComponent(ft.Badge,{tone:"danger",size:"sm",children:"urgent"})}})),a.escape(a.createComponent(m.Show,{get when(){return T.priority==="silent"},get children(){return a.createComponent(ft.Badge,{tone:"neutral",size:"sm",get icon(){return a.createComponent(Ce.VpBellOff,{get class(){return fe.priorityBadgeIcon}})},get tooltip(){return C.t("Silent — timeline only")},children:"silent"})}})),a.escape(a.createComponent(m.Show,{get when(){return dn(T.source)},get children(){return a.createComponent(ft.Badge,{tone:"warning",size:"sm",get tooltip(){return C.t("Source muted")},children:"muted"})}})))],!1)}}const fh="vk_center_5Vlx7",dh="vk_header_vo883",ph="vk_title_JpYEU",hh="vk_actions_ErJgC",gh="vk_actionIcon_-JWZ1",Eh="vk_list_YLy-l",bh="vk_card_-fwSa",_h="vk_cardIcon_RBj-W",mh="vk_cardBody_z8pxK",Ah="vk_cardMessage_aN-yw",Th="vk_cardMeta_XQ3my",Sh="vk_cardButtons_1PXZE",Ch="vk_cardSource_Z8c0M",Nh="vk_cardTime_OXbCq",Rh="vk_cardActions_QOc1i",Ve={center:fh,header:dh,title:ph,actions:hh,actionIcon:gh,list:Eh,card:bh,cardIcon:_h,cardBody:mh,cardMessage:Ah,cardMeta:Th,cardButtons:Sh,cardSource:Ch,cardTime:Nh,cardActions:Rh};var Ih=["<h3",">","","</h3>"],Oh=["<div",">","","","","</div>"],yh=["<section",' tabindex="-1"'," data-notification-center>","","</section>"],xh=["<span",' aria-hidden="true">',"</span>"],Dh=["<div"," data-notification-card-actions>","</div>"],kh=["<div","><p",">","</p><div","><span",">","</span><time",">","</time></div>","</div>"],vh=["<div",">","","</div>"];const wh={info:Ce.VpInfoCircle,warning:Do.VpAlertTriangle,error:Ce.VpCircleX,success:Ce.VpCircleCheck};function Lh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}function Mh(e){return new Intl.DateTimeFormat(Bn.systemFormatLocale(),{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date(e))}function lc(e){const t=Sn.useKitHost(),{notifications:n}=t,u=ci(t),r=()=>e.corner??"bottom-right",i=t.log.withTag("NotificationsCenter"),s=$=>st.openExternalUrl(t.desktop,i,$),[o,c]=m.createSignal([]),[l,d]=m.createSignal(K.notificationSettings.get().doNotDisturb),[h,E]=m.createSignal(n.getFilter()!=="off"),_=Zr.useDesktopContextMenu(),g=cc();m.onMount(()=>{const $=n.timeline.subscribe(c),te=n.onDidChangeFilter(ne=>E(ne!=="off")),X=n.stack.registerShownCenter();m.onCleanup(()=>{$(),te.dispose(),X.dispose()})}),K.useSettingsSubscription(K.notificationSettings,()=>{d(K.notificationSettings.get().doNotDisturb)});const N=()=>l()||h(),R=m.createMemo(N);m.createEffect(m.on(R,($,te)=>{te===!1&&$&&e.onHide()}));const y=m.createMemo(()=>[...o()].sort(($,te)=>te.createdAt-$.createdAt));let D;const L=tc({container:()=>D,drawn:()=>[g(),y()],fallback:$=>$.focus({preventScroll:!0})});m.onMount(()=>{const $=D.ownerDocument,te=$.activeElement,X=te===$.body?null:te;let ne=!0;queueMicrotask(()=>{ne&&(Qs(D,{preventScroll:!0})||D.focus({preventScroll:!0}))}),m.onCleanup(()=>{ne=!1,L.holdsFocus()&&mc.restoreFocusTo(X)})});const v=()=>g().length+y().length;m.createEffect(m.on(v,($,te)=>{te!==void 0&&te>0&&$===0&&e.onHide()}));const w=$=>wh[$],M=$=>{const te=K.notificationSettings.get();K.notificationSettings.update({...te,doNotDisturb:$}).catch(X=>{n.notify(Zo,{cause:X})})},G=()=>{if(!N()){M(!0);return}n.setFilter("off"),l()&&M(!1)},Z=()=>t.openNotificationSettings(),re=$=>{const te=[...$.actions??[]],X=$u(t.vendorErrors,$);if(X){const ne=X.helpers.docsUrl(X.code);if(ne){const k=`${X.helpers.formatCode(X.code)} ${X.helpers.docsLinkLabel}`;te.some(V=>V.label===k)||te.push({label:k,onClick:()=>s(ne)})}}return te},ie=$=>{var X;const te=$.message.trim();te&&((X=navigator.clipboard)==null||X.writeText(te).catch(ne=>{i.warn("notification message could not be copied",ne)}))},le=($,te,X)=>{if(_.state()!==null){_.close();return}const ne=an(X.source),k=dn(ne.id),V=$u(t.vendorErrors,X);_.open($,te,[{label:C.t("Copy log message"),onSelect:()=>ie(X)},...V?[{label:C.t("Open {vendor} ({code})",{vendor:V.helpers.docsLinkLabel,code:V.helpers.formatCode(V.code)}),onSelect:()=>s(V.helpers.docsUrl(V.code))}]:[],{type:"separator"},{label:k?C.t('Unmute "{source}"',{source:ne.label}):C.t('Mute "{source}"',{source:ne.label}),onSelect:()=>u.setSourceMuted(ne.id,!k)},{type:"separator"},{label:C.t("Remove notification"),danger:!0,onSelect:()=>n.dismissEntry(X.id)},{label:C.t('Remove all from "{source}"',{source:ne.label}),danger:!0,onSelect:()=>n.timeline.dismissBySource(ne.id)}])};return a.ssr(yh,a.ssrAttribute("class",a.escape(Ve.center,!0),!1),a.ssrAttribute("aria-label",a.escape(C.t("Notifications"),!0),!1),a.escape(a.createComponent(Ln.Panel.Header,{get class(){return Ve.header},get children(){return[a.ssr(Ih,a.ssrAttribute("class",a.escape(Ve.title,!0),!1),a.escape(C.t("Notifications")),a.escape(a.createComponent(m.Show,{get when(){return y().length>0},get children(){return` (${y().length})`}}))),a.ssr(Oh,a.ssrAttribute("class",a.escape(Ve.actions,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.timeline.clear(),get disabled(){return y().length===0},get title(){return C.t("Clear all notifications")},get"aria-label"(){return C.t("Clear all notifications")},get children(){return a.createComponent(Ce.VpTrash,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get active(){return N()},onClick:G,get title(){return a.memo(()=>!!N())()?C.t("Disable Do Not Disturb"):C.t("Enable Do Not Disturb")},get"aria-label"(){return a.memo(()=>!!N())()?C.t("Disable Do Not Disturb"):C.t("Enable Do Not Disturb")},get children(){return a.createComponent(m.Show,{get when(){return N()},get fallback(){return a.createComponent(Ce.VpBell,{get class(){return Ve.actionIcon}})},get children(){return a.createComponent(Ce.VpBellOff,{get class(){return Ve.actionIcon}})}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:Z,get title(){return C.t("Notification settings")},get"aria-label"(){return C.t("Notification settings")},get children(){return a.createComponent(Ce.VpSettings,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,get onClick(){return e.onHide},get title(){return C.t("Hide notifications")},get"aria-label"(){return C.t("Hide notifications")},get children(){return a.createComponent(m.Show,{get when(){return uc(r())==="top"},get fallback(){return a.createComponent(Tn.VpChevronDown,{get class(){return Ve.actionIcon}})},get children(){return a.createComponent(Ce.VpChevronUp,{get class(){return Ve.actionIcon}})}})}})))]}})),a.escape(a.createComponent(m.Show,{get when(){return g().length>0||y().length>0},get fallback(){return a.createComponent(xo.EmptyState,{size:"sm",get title(){return C.t("No new notifications")}})},get children(){return a.createComponent(Xu.OverlayScrollArea,{get viewportClass(){return Ve.list},onKeyDown:$=>ec($,$.currentTarget),get children(){return[a.createComponent(ac,{get items(){return g()},get corner(){return r()}}),a.createComponent(m.For,{get each(){return y()},children:$=>{const te=an($.source),X=re($);return a.ssrElement("article",a.mergeProps(_i,{get class(){return Ve.card},tabIndex:-1,get"aria-label"(){return nc($)}}),[a.ssr(xh,a.ssrAttribute("class",a.escape(Ve.cardIcon,!0),!1)+a.ssrAttribute("data-tone",a.escape($.tone,!0),!1),a.escape(a.createComponent(a.Dynamic,{get component(){return w($.tone)}}))),a.ssr(kh,a.ssrAttribute("class",a.escape(Ve.cardBody,!0),!1),a.ssrAttribute("class",a.escape(Ve.cardMessage,!0),!1),a.escape($.message),a.ssrAttribute("class",a.escape(Ve.cardMeta,!0),!1),a.ssrAttribute("class",a.escape(Ve.cardSource,!0),!1)+a.ssrAttribute("title",a.escape(te.description,!0),!1),a.escape(C.t("Source: {source}",{source:te.label})),a.ssrAttribute("class",a.escape(Ve.cardTime,!0),!1)+a.ssrAttribute("datetime",a.escape(new Date($.createdAt).toISOString(),!0),!1)+a.ssrAttribute("title",a.escape(Mh($.createdAt),!0),!1),a.escape(Lh($.createdAt)),a.escape(a.createComponent(m.Show,{get when(){return X.length>0},get children(){return a.ssr(Dh,a.ssrAttribute("class",a.escape(Ve.cardButtons,!0),!1),a.escape(a.createComponent(m.For,{each:X,children:ne=>a.createComponent(Fe.Button,{get variant(){return ne.primary?"primary":"secondary"},size:"sm",onClick:()=>ne.onClick(),get children(){return ne.label}})})))}}))),a.ssr(vh,a.ssrAttribute("class",a.escape(Ve.cardActions,!0),!1),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:ne=>{const k=ne.currentTarget.getBoundingClientRect();le(k.left,k.bottom+4,$)},get title(){return C.t("More actions")},get"aria-label"(){return C.t("More actions")},get children(){return a.createComponent(Ce.VpSettings,{get class(){return Ve.actionIcon}})}})),a.escape(a.createComponent(Fe.Button,{variant:"ghost",size:"sm",iconOnly:!0,onClick:()=>n.dismissEntry($.id),get title(){return C.t("Remove notification")},get"aria-label"(){return C.t("Remove notification")},get children(){return a.createComponent(Mr.VpClose,{get class(){return Ve.actionIcon}})}})))],!1)}})]}})}})))}const Fh="vk_bell_tx9ag vk_buttonReset_3WpyU",Ph="vk_bellIcon_w6Lmy",Uh="vk_badge_2L8Eg",Bh="vk_progressDot_yphKG",Hh="vk_centerPopover_48x5p",kn={bell:Fh,bellIcon:Ph,badge:Uh,progressDot:Bh,centerPopover:Hh};var Gh=["<span",">","</span>"],$h=["<span",' aria-hidden="true"></span>'];function zh(e){const t=m.createMemo(()=>e.open),n=Sn.useKitHost().notifications,{timeline:u,stack:r}=n,[i,s]=m.createSignal(!1),o=()=>t()??i(),[c,l]=m.createSignal(0),[d,h]=m.createSignal(K.notificationSettings.get().doNotDisturb),[E,_]=m.createSignal(n.getFilter()!=="off"),[g,N]=m.createSignal(0);let R;m.onMount(()=>{const M=u.subscribeUnread(l),G=r.subscribe(re=>N(Lo(re).length)),Z=n.onDidChangeFilter(re=>_(re!=="off"));m.onCleanup(()=>{M(),G(),Z.dispose()})}),K.useSettingsSubscription(K.notificationSettings,()=>{h(K.notificationSettings.get().doNotDisturb)});const y=()=>d()||E(),D=M=>{var G;M!==o()&&(t()===void 0&&s(M),(G=e.onOpenChange)==null||G.call(e,M))};m.createEffect(m.on(o,M=>{M&&u.markSeen()})),m.onCleanup(()=>D(!1));const L=()=>o()?0:g(),v=()=>{const M=L();return y()?M>0?C.t("Notifications (Do Not Disturb on, {count} in progress)",{count:M}):C.t("Notifications (Do Not Disturb on)"):o()?C.t("Hide notifications"):M>0?C.t("Notifications ({count} in progress)",{count:M}):C.t("Show notifications")},w=()=>c()>99?"99+":String(c());return[a.createComponent(jr.PressableSurface,{type:"button",get class(){return kn.bell},"data-status-bar-bell":!0,get"data-open"(){return o()?"true":"false"},onClick:()=>D(!o()),get title(){return v()},get"aria-label"(){return v()},"aria-haspopup":"dialog",get"aria-expanded"(){return o()},get children(){return[a.createComponent(m.Show,{get when(){return y()},get fallback(){return a.createComponent(Ce.VpBell,{get class(){return kn.bellIcon}})},get children(){return a.createComponent(Ce.VpBellOff,{get class(){return kn.bellIcon}})}}),a.createComponent(m.Show,{get when(){return c()>0},get fallback(){return a.createComponent(m.Show,{get when(){return L()>0},get children(){return a.ssr($h,a.ssrAttribute("class",a.escape(kn.progressDot,!0),!1))}})},get children(){return a.ssr(Gh,a.ssrAttribute("class",a.escape(kn.badge,!0),!1),a.escape(w()))}})]}}),a.createComponent(Tn.Popover,{get open(){return o()},onClose:()=>D(!1),anchor:()=>R,placement:"top-end",gap:6,role:"dialog",get ariaLabel(){return C.t("Notifications")},get class(){return kn.centerPopover},get children(){return a.createComponent(lc,{onHide:()=>D(!1)})}})]}exports.ACCEPT_PRIMARY_ACTION_NOTIFICATION=Yr;exports.CLEAR_NOTIFICATION=Kr;exports.HIDE_NOTIFICATION_TOASTS=Bu;exports.LogFilterBar=ko;exports.NOTIFICATION_SOURCES=Qu;exports.NOTIFICATION_SOURCE_IDS=Qr;exports.NO_NOTIFICATION_OVERLAY=oc;exports.NotificationHost=dp;exports.NotificationItem=Yu;exports.NotificationPanel=lh;exports.NotificationService=Ea;exports.NotificationTimeline=Mo;exports.NotificationsCenter=lc;exports.SEVERITY_ORDER=Br;exports.SEVERITY_TONES=Fo;exports.StatusBarNotificationBell=zh;exports.appWindowNotificationOverlay=sc;exports.applyNotificationRules=ti;exports.cardRemindKey=ui;exports.clearCompiledRuleRegexCache=Ho;exports.compileNotificationSearchMatcher=Qo;exports.createNativeNotificationEngine=ei;exports.createNotificationPreviewRuntime=Fa;exports.decideFilter=su;exports.deleteWebhookUrl=Lc;exports.deriveImplicitRemindKey=ju;exports.dismissKey=qo;exports.dismissableToastIds=es;exports.entryVendorMatch=$u;exports.exportTimelineAsCsv=us;exports.exportTimelineAsJson=rs;exports.filterNotificationTimeline=Jo;exports.filteredPriority=ni;exports.focusFirstNotificationEntry=Qs;exports.getSmtpPass=Uo;exports.getWebhookUrl=Bo;exports.groupTimelineEntries=ts;exports.hiddenRunningProgress=Lo;exports.isInQuietHours=ou;exports.isKeyDismissed=ri;exports.isKeyRemindSuppressed=nu;exports.isNotificationSourceId=vo;exports.isNotificationSticky=gu;exports.isOnToastStack=Jr;exports.isProgressRunning=kt;exports.isSourceMuted=dn;exports.isSpamDropHandle=wo;exports.listNotificationSources=ma;exports.nextQuietHoursStart=Go;exports.pruneOrphanWebhookSecrets=Mc;exports.registerFenceAliases=Fd;exports.registerNotificationCommands=ic;exports.remindLater=zo;exports.resolveCatalogPreviewPriority=si;exports.resolveNotificationDuration=hu;exports.resolveNotificationSource=an;exports.resolveSeverityTone=Po;exports.restoreAllKeys=Zc;exports.restoreKey=jc;exports.setSmtpPass=vc;exports.setSourceMuted=Vo;exports.setWebhookUrl=wc;exports.shouldFireOsNative=$o;exports.toTimelineActions=tu;exports.unmuteAllSources=Qc;
|