@n8n/chat 0.45.0 → 0.46.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/dist/chat.umd.js CHANGED
@@ -1,18 +1,497 @@
1
- (function(Ae,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(Ae=typeof globalThis<"u"?globalThis:Ae||self,u(Ae.N8nChat={},Ae.Vue))})(this,function(Ae,u){"use strict";const Le={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",loadPreviousSession:!0,chatInputKey:"chatInput",chatSessionKey:"sessionId",defaultLanguage:"en",showWelcomeScreen:!1,initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question..",closeButtonTooltip:"Close chat"}},theme:{}},Zo="#n8n-chat",Tt="n8n-chat/sessionId",qt="Chat",Nt="ChatOptions";for(var ae=[],Qe=0;Qe<256;++Qe)ae.push((Qe+256).toString(16).slice(1));function Ko(c,n=0){return(ae[c[n+0]]+ae[c[n+1]]+ae[c[n+2]]+ae[c[n+3]]+"-"+ae[c[n+4]]+ae[c[n+5]]+"-"+ae[c[n+6]]+ae[c[n+7]]+"-"+ae[c[n+8]]+ae[c[n+9]]+"-"+ae[c[n+10]]+ae[c[n+11]]+ae[c[n+12]]+ae[c[n+13]]+ae[c[n+14]]+ae[c[n+15]]).toLowerCase()}var Pe,Wo=new Uint8Array(16);function Yo(){if(!Pe&&(Pe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Pe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pe(Wo)}var Jo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Lt={randomUUID:Jo};function Be(c,n,o){if(Lt.randomUUID&&!c)return Lt.randomUUID();c=c||{};var e=c.random||(c.rng||Yo)();return e[6]=e[6]&15|64,e[8]=e[8]&63|128,Ko(e)}async function Xo(){return""}async function en(...c){var r,s;const n=await Xo(),o=(r=c[1])==null?void 0:r.body,e={...n?{authorization:`Bearer ${n}`}:{},...(s=c[1])==null?void 0:s.headers};return o instanceof FormData?delete e["Content-Type"]:e["Content-Type"]="application/json",await(await fetch(c[0],{...c[1],mode:"cors",cache:"no-cache",headers:e})).json()}async function Bt(c,n={},o={}){let e=c;return Object.keys(n).length>0&&(e=`${e}?${new URLSearchParams(n).toString()}`),await en(e,{...o,method:"GET"})}async function Mt(c,n={},o={}){return await en(c,{...o,method:"POST",body:JSON.stringify(n)})}async function Qo(c,n={},o=[],e={}){const t=new FormData;for(const r in n)t.append(r,n[r]);for(const r of o)t.append("files",r);return await en(c,{...e,method:"POST",body:t})}async function es(c,n){var e,t;return await(((e=n.webhookConfig)==null?void 0:e.method)==="POST"?Mt:Bt)(`${n.webhookUrl}`,{action:"loadPreviousSession",[n.chatSessionKey]:c,...n.metadata?{metadata:n.metadata}:{}},{headers:(t=n.webhookConfig)==null?void 0:t.headers})}async function ns(c,n,o,e){var r,s,i;return n.length>0?await Qo(`${e.webhookUrl}`,{action:"sendMessage",[e.chatSessionKey]:o,[e.chatInputKey]:c,...e.metadata?{metadata:e.metadata}:{}},n,{headers:(r=e.webhookConfig)==null?void 0:r.headers}):await(((s=e.webhookConfig)==null?void 0:s.method)==="POST"?Mt:Bt)(`${e.webhookUrl}`,{action:"sendMessage",[e.chatSessionKey]:o,[e.chatInputKey]:c,...e.metadata?{metadata:e.metadata}:{}},{headers:(i=e.webhookConfig)==null?void 0:i.headers})}function ts(){const c=new Map;function n(t,r){const s=c.get(t);s&&s.splice(s.indexOf(r)>>>0,1)}function o(t,r){let s=c.get(t);return s?s.push(r):s=[r],c.set(t,s),()=>n(t,r)}function e(t,r){const s=c.get(t);s&&s.slice().forEach(async i=>{await i(r)})}return{on:o,off:n,emit:e}}function rs(c){if(!document.querySelector(c)){const o=document.createElement("div");c.startsWith("#")&&(o.id=c.replace("#","")),c.startsWith(".")&&o.classList.add(c.replace(".","")),document.body.appendChild(o)}}const pe=ts(),os={install(c,n){c.provide(Nt,n);const o=u.ref([]),e=u.ref(null),t=u.ref(!1),r=u.computed(()=>(n.initialMessages??[]).map(p=>({id:Be(),text:p,sender:"bot"})));async function s(p,f=[]){const g={id:Be(),text:p,sender:"user",files:f};o.value.push(g),t.value=!0,u.nextTick(()=>{pe.emit("scrollToBottom")});const h=await ns(p,f,e.value,n);let b=h.output??h.text??"";if(b===""&&Object.keys(h).length>0)try{b=JSON.stringify(h,null,2)}catch{}const E={id:Be(),text:b,sender:"bot"};o.value.push(E),t.value=!1,u.nextTick(()=>{pe.emit("scrollToBottom")})}async function i(){if(!n.loadPreviousSession)return;const p=localStorage.getItem(Tt)??Be(),f=await es(p,n);return o.value=((f==null?void 0:f.data)||[]).map((g,h)=>({id:`${h}`,text:g.kwargs.content,sender:g.id.includes("HumanMessage")?"user":"bot"})),o.value.length&&(e.value=p),p}async function a(){e.value=Be(),localStorage.setItem(Tt,e.value)}const l={initialMessages:r,messages:o,currentSessionId:e,waitingForResponse:t,loadPreviousSession:i,startNewSession:a,sendMessage:s};c.provide(qt,l),c.config.globalProperties.$chat=l}};function nn(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}function ss(c){if(Object.prototype.hasOwnProperty.call(c,"__esModule"))return c;var n=c.default;if(typeof n=="function"){var o=function e(){return this instanceof e?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(c).forEach(function(e){var t=Object.getOwnPropertyDescriptor(c,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return c[e]}})}),o}var tn,It;function cs(){if(It)return tn;It=1;function c(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(A=>{const q=d[A],V=typeof q;(V==="object"||V==="function")&&!Object.isFrozen(q)&&c(q)}),d}class n{constructor(A){A.data===void 0&&(A.data={}),this.data=A.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function e(d,...A){const q=Object.create(null);for(const V in d)q[V]=d[V];return A.forEach(function(V){for(const te in V)q[te]=V[te]}),q}const t="</span>",r=d=>!!d.scope,s=(d,{prefix:A})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const q=d.split(".");return[`${A}${q.shift()}`,...q.map((V,te)=>`${V}${"_".repeat(te+1)}`)].join(" ")}return`${A}${d}`};class i{constructor(A,q){this.buffer="",this.classPrefix=q.classPrefix,A.walk(this)}addText(A){this.buffer+=o(A)}openNode(A){if(!r(A))return;const q=s(A.scope,{prefix:this.classPrefix});this.span(q)}closeNode(A){r(A)&&(this.buffer+=t)}value(){return this.buffer}span(A){this.buffer+=`<span class="${A}">`}}const a=(d={})=>{const A={children:[]};return Object.assign(A,d),A};class l{constructor(){this.rootNode=a(),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 q=a({scope:A});this.add(q),this.stack.push(q)}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,q){return typeof q=="string"?A.addText(q):q.children&&(A.openNode(q),q.children.forEach(V=>this._walk(A,V)),A.closeNode(q)),A}static _collapse(A){typeof A!="string"&&A.children&&(A.children.every(q=>typeof q=="string")?A.children=[A.children.join("")]:A.children.forEach(q=>{l._collapse(q)}))}}class p extends l{constructor(A){super(),this.options=A}addText(A){A!==""&&this.add(A)}startScope(A){this.openNode(A)}endScope(){this.closeNode()}__addSublanguage(A,q){const V=A.root;q&&(V.scope=`language:${q}`),this.add(V)}toHTML(){return new i(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function f(d){return d?typeof d=="string"?d:d.source:null}function g(d){return E("(?=",d,")")}function h(d){return E("(?:",d,")*")}function b(d){return E("(?:",d,")?")}function E(...d){return d.map(q=>f(q)).join("")}function v(d){const A=d[d.length-1];return typeof A=="object"&&A.constructor===Object?(d.splice(d.length-1,1),A):{}}function k(...d){return"("+(v(d).capture?"":"?:")+d.map(V=>f(V)).join("|")+")"}function x(d){return new RegExp(d.toString()+"|").exec("").length-1}function m(d,A){const q=d&&d.exec(A);return q&&q.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:A}){let q=0;return d.map(V=>{q+=1;const te=q;let re=f(V),O="";for(;re.length>0;){const M=_.exec(re);if(!M){O+=re;break}O+=re.substring(0,M.index),re=re.substring(M.index+M[0].length),M[0][0]==="\\"&&M[1]?O+="\\"+String(Number(M[1])+te):(O+=M[0],M[0]==="("&&q++)}return O}).map(V=>`(${V})`).join(A)}const w=/\b\B/,B="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",T="\\b\\d+(\\.\\d+)?",R="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",G="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(d={})=>{const A=/^#![ ]*\//;return d.binary&&(d.begin=E(A,/.*\b/,d.binary,/\b.*/)),e({scope:"meta",begin:A,end:/$/,relevance:0,"on:begin":(q,V)=>{q.index!==0&&V.ignoreMatch()}},d)},C={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[C]},U={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[C]},W={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/},j=function(d,A,q={}){const V=e({scope:"comment",begin:d,end:A,contains:[]},q);V.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 te=k("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 V.contains.push({begin:E(/[ ]+/,"(",te,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),V},Y=j("//","$"),F=j("/\\*","\\*/"),se=j("#","$"),ue={scope:"number",begin:T,relevance:0},de={scope:"number",begin:R,relevance:0},sa={scope:"number",begin:I,relevance:0},ca={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[C,{begin:/\[/,end:/\]/,relevance:0,contains:[C]}]},ia={scope:"title",begin:B,relevance:0},aa={scope:"title",begin:S,relevance:0},la={begin:"\\.\\s*"+S,relevance:0};var je=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:C,BINARY_NUMBER_MODE:sa,BINARY_NUMBER_RE:I,COMMENT:j,C_BLOCK_COMMENT_MODE:F,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:de,C_NUMBER_RE:R,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(A,q)=>{q.data._beginMatch=A[1]},"on:end":(A,q)=>{q.data._beginMatch!==A[1]&&q.ignoreMatch()}})},HASH_COMMENT_MODE:se,IDENT_RE:B,MATCH_NOTHING_RE:w,METHOD_GUARD:la,NUMBER_MODE:ue,NUMBER_RE:T,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:U,REGEXP_MODE:ca,RE_STARTERS_RE:G,SHEBANG:Q,TITLE_MODE:ia,UNDERSCORE_IDENT_RE:S,UNDERSCORE_TITLE_MODE:aa});function ua(d,A){d.input[d.index-1]==="."&&A.ignoreMatch()}function fa(d,A){d.className!==void 0&&(d.scope=d.className,delete d.className)}function pa(d,A){A&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=ua,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function ha(d,A){Array.isArray(d.illegal)&&(d.illegal=k(...d.illegal))}function da(d,A){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function ga(d,A){d.relevance===void 0&&(d.relevance=1)}const ma=(d,A)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const q=Object.assign({},d);Object.keys(d).forEach(V=>{delete d[V]}),d.keywords=q.keywords,d.begin=E(q.beforeMatch,g(q.begin)),d.starts={relevance:0,contains:[Object.assign(q,{endsParent:!0})]},d.relevance=0,delete q.beforeMatch},ba=["of","and","for","in","not","or","if","then","parent","list","value"],_a="keyword";function qo(d,A,q=_a){const V=Object.create(null);return typeof d=="string"?te(q,d.split(" ")):Array.isArray(d)?te(q,d):Object.keys(d).forEach(function(re){Object.assign(V,qo(d[re],A,re))}),V;function te(re,O){A&&(O=O.map(M=>M.toLowerCase())),O.forEach(function(M){const $=M.split("|");V[$[0]]=[re,ka($[0],$[1])]})}}function ka(d,A){return A?Number(A):Ea(d)?0:1}function Ea(d){return ba.includes(d.toLowerCase())}const No={},Se=d=>{console.error(d)},Lo=(d,...A)=>{console.log(`WARN: ${d}`,...A)},qe=(d,A)=>{No[`${d}/${A}`]||(console.log(`Deprecated as of ${d}. ${A}`),No[`${d}/${A}`]=!0)},Ze=new Error;function Bo(d,A,{key:q}){let V=0;const te=d[q],re={},O={};for(let M=1;M<=A.length;M++)O[M+V]=te[M],re[M+V]=!0,V+=x(A[M-1]);d[q]=O,d[q]._emit=re,d[q]._multi=!0}function ya(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ze;if(typeof d.beginScope!="object"||d.beginScope===null)throw Se("beginScope must be object"),Ze;Bo(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function xa(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ze;if(typeof d.endScope!="object"||d.endScope===null)throw Se("endScope must be object"),Ze;Bo(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function wa(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function va(d){wa(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),ya(d),xa(d)}function Aa(d){function A(O,M){return new RegExp(f(O),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(M?"g":""))}class q{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(M,$){$.position=this.position++,this.matchIndexes[this.matchAt]=$,this.regexes.push([$,M]),this.matchAt+=x(M)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const M=this.regexes.map($=>$[1]);this.matcherRe=A(y(M,{joinWith:"|"}),!0),this.lastIndex=0}exec(M){this.matcherRe.lastIndex=this.lastIndex;const $=this.matcherRe.exec(M);if(!$)return null;const ie=$.findIndex((Fe,vt)=>vt>0&&Fe!==void 0),oe=this.matchIndexes[ie];return $.splice(0,ie),Object.assign($,oe)}}class V{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(M){if(this.multiRegexes[M])return this.multiRegexes[M];const $=new q;return this.rules.slice(M).forEach(([ie,oe])=>$.addRule(ie,oe)),$.compile(),this.multiRegexes[M]=$,$}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(M,$){this.rules.push([M,$]),$.type==="begin"&&this.count++}exec(M){const $=this.getMatcher(this.regexIndex);$.lastIndex=this.lastIndex;let ie=$.exec(M);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const oe=this.getMatcher(0);oe.lastIndex=this.lastIndex+1,ie=oe.exec(M)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function te(O){const M=new V;return O.contains.forEach($=>M.addRule($.begin,{rule:$,type:"begin"})),O.terminatorEnd&&M.addRule(O.terminatorEnd,{type:"end"}),O.illegal&&M.addRule(O.illegal,{type:"illegal"}),M}function re(O,M){const $=O;if(O.isCompiled)return $;[fa,da,va,ma].forEach(oe=>oe(O,M)),d.compilerExtensions.forEach(oe=>oe(O,M)),O.__beforeBegin=null,[pa,ha,ga].forEach(oe=>oe(O,M)),O.isCompiled=!0;let ie=null;return typeof O.keywords=="object"&&O.keywords.$pattern&&(O.keywords=Object.assign({},O.keywords),ie=O.keywords.$pattern,delete O.keywords.$pattern),ie=ie||/\w+/,O.keywords&&(O.keywords=qo(O.keywords,d.case_insensitive)),$.keywordPatternRe=A(ie,!0),M&&(O.begin||(O.begin=/\B|\b/),$.beginRe=A($.begin),!O.end&&!O.endsWithParent&&(O.end=/\B|\b/),O.end&&($.endRe=A($.end)),$.terminatorEnd=f($.end)||"",O.endsWithParent&&M.terminatorEnd&&($.terminatorEnd+=(O.end?"|":"")+M.terminatorEnd)),O.illegal&&($.illegalRe=A(O.illegal)),O.contains||(O.contains=[]),O.contains=[].concat(...O.contains.map(function(oe){return Ca(oe==="self"?O:oe)})),O.contains.forEach(function(oe){re(oe,$)}),O.starts&&re(O.starts,M),$.matcher=te($),$}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=e(d.classNameAliases||{}),re(d)}function Mo(d){return d?d.endsWithParent||Mo(d.starts):!1}function Ca(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(A){return e(d,{variants:null},A)})),d.cachedVariants?d.cachedVariants:Mo(d)?e(d,{starts:d.starts?e(d.starts):null}):Object.isFrozen(d)?e(d):d}var Sa="11.9.0";class Da extends Error{constructor(A,q){super(A),this.name="HTMLInjectionError",this.html=q}}const wt=o,Io=e,Oo=Symbol("nomatch"),Ra=7,Fo=function(d){const A=Object.create(null),q=Object.create(null),V=[];let te=!0;const re="Could not find the language '{}', did you forget to load/include a language module?",O={disableAutodetect:!0,name:"Plain text",contains:[]};let M={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:p};function $(D){return M.noHighlightRe.test(D)}function ie(D){let z=D.className+" ";z+=D.parentNode?D.parentNode.className:"";const K=M.languageDetectRe.exec(z);if(K){const ee=we(K[1]);return ee||(Lo(re.replace("{}",K[1])),Lo("Falling back to no-highlight mode for this block.",D)),ee?K[1]:"no-highlight"}return z.split(/\s+/).find(ee=>$(ee)||we(ee))}function oe(D,z,K){let ee="",ce="";typeof z=="object"?(ee=D,K=z.ignoreIllegals,ce=z.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
2
- https://github.com/highlightjs/highlight.js/issues/2277`),ce=D,ee=z),K===void 0&&(K=!0);const ge={code:ee,language:ce};We("before:highlight",ge);const ve=ge.result?ge.result:Fe(ge.language,ge.code,K);return ve.code=ge.code,We("after:highlight",ve),ve}function Fe(D,z,K,ee){const ce=Object.create(null);function ge(L,P){return L.keywords[P]}function ve(){if(!H.keywords){le.addText(ne);return}let L=0;H.keywordPatternRe.lastIndex=0;let P=H.keywordPatternRe.exec(ne),Z="";for(;P;){Z+=ne.substring(L,P.index);const X=ke.case_insensitive?P[0].toLowerCase():P[0],fe=ge(H,X);if(fe){const[ye,Za]=fe;if(le.addText(Z),Z="",ce[X]=(ce[X]||0)+1,ce[X]<=Ra&&(Xe+=Za),ye.startsWith("_"))Z+=P[0];else{const Ka=ke.classNameAliases[ye]||ye;_e(P[0],Ka)}}else Z+=P[0];L=H.keywordPatternRe.lastIndex,P=H.keywordPatternRe.exec(ne)}Z+=ne.substring(L),le.addText(Z)}function Ye(){if(ne==="")return;let L=null;if(typeof H.subLanguage=="string"){if(!A[H.subLanguage]){le.addText(ne);return}L=Fe(H.subLanguage,ne,!0,jo[H.subLanguage]),jo[H.subLanguage]=L._top}else L=At(ne,H.subLanguage.length?H.subLanguage:null);H.relevance>0&&(Xe+=L.relevance),le.__addSublanguage(L._emitter,L.language)}function he(){H.subLanguage!=null?Ye():ve(),ne=""}function _e(L,P){L!==""&&(le.startScope(P),le.addText(L),le.endScope())}function $o(L,P){let Z=1;const X=P.length-1;for(;Z<=X;){if(!L._emit[Z]){Z++;continue}const fe=ke.classNameAliases[L[Z]]||L[Z],ye=P[Z];fe?_e(ye,fe):(ne=ye,ve(),ne=""),Z++}}function Vo(L,P){return L.scope&&typeof L.scope=="string"&&le.openNode(ke.classNameAliases[L.scope]||L.scope),L.beginScope&&(L.beginScope._wrap?(_e(ne,ke.classNameAliases[L.beginScope._wrap]||L.beginScope._wrap),ne=""):L.beginScope._multi&&($o(L.beginScope,P),ne="")),H=Object.create(L,{parent:{value:H}}),H}function Ho(L,P,Z){let X=m(L.endRe,Z);if(X){if(L["on:end"]){const fe=new n(L);L["on:end"](P,fe),fe.isMatchIgnored&&(X=!1)}if(X){for(;L.endsParent&&L.parent;)L=L.parent;return L}}if(L.endsWithParent)return Ho(L.parent,P,Z)}function $a(L){return H.matcher.regexIndex===0?(ne+=L[0],1):(Rt=!0,0)}function Va(L){const P=L[0],Z=L.rule,X=new n(Z),fe=[Z.__beforeBegin,Z["on:begin"]];for(const ye of fe)if(ye&&(ye(L,X),X.isMatchIgnored))return $a(P);return Z.skip?ne+=P:(Z.excludeBegin&&(ne+=P),he(),!Z.returnBegin&&!Z.excludeBegin&&(ne=P)),Vo(Z,L),Z.returnBegin?0:P.length}function Ha(L){const P=L[0],Z=z.substring(L.index),X=Ho(H,L,Z);if(!X)return Oo;const fe=H;H.endScope&&H.endScope._wrap?(he(),_e(P,H.endScope._wrap)):H.endScope&&H.endScope._multi?(he(),$o(H.endScope,L)):fe.skip?ne+=P:(fe.returnEnd||fe.excludeEnd||(ne+=P),he(),fe.excludeEnd&&(ne=P));do H.scope&&le.closeNode(),!H.skip&&!H.subLanguage&&(Xe+=H.relevance),H=H.parent;while(H!==X.parent);return X.starts&&Vo(X.starts,L),fe.returnEnd?0:P.length}function Ga(){const L=[];for(let P=H;P!==ke;P=P.parent)P.scope&&L.unshift(P.scope);L.forEach(P=>le.openNode(P))}let Je={};function Go(L,P){const Z=P&&P[0];if(ne+=L,Z==null)return he(),0;if(Je.type==="begin"&&P.type==="end"&&Je.index===P.index&&Z===""){if(ne+=z.slice(P.index,P.index+1),!te){const X=new Error(`0 width match regex (${D})`);throw X.languageName=D,X.badRule=Je.rule,X}return 1}if(Je=P,P.type==="begin")return Va(P);if(P.type==="illegal"&&!K){const X=new Error('Illegal lexeme "'+Z+'" for mode "'+(H.scope||"<unnamed>")+'"');throw X.mode=H,X}else if(P.type==="end"){const X=Ha(P);if(X!==Oo)return X}if(P.type==="illegal"&&Z==="")return 1;if(Dt>1e5&&Dt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ne+=Z,Z.length}const ke=we(D);if(!ke)throw Se(re.replace("{}",D)),new Error('Unknown language: "'+D+'"');const ja=Aa(ke);let St="",H=ee||ja;const jo={},le=new M.__emitter(M);Ga();let ne="",Xe=0,De=0,Dt=0,Rt=!1;try{if(ke.__emitTokens)ke.__emitTokens(z,le);else{for(H.matcher.considerAll();;){Dt++,Rt?Rt=!1:H.matcher.considerAll(),H.matcher.lastIndex=De;const L=H.matcher.exec(z);if(!L)break;const P=z.substring(De,L.index),Z=Go(P,L);De=L.index+Z}Go(z.substring(De))}return le.finalize(),St=le.toHTML(),{language:D,value:St,relevance:Xe,illegal:!1,_emitter:le,_top:H}}catch(L){if(L.message&&L.message.includes("Illegal"))return{language:D,value:wt(z),illegal:!0,relevance:0,_illegalBy:{message:L.message,index:De,context:z.slice(De-100,De+100),mode:L.mode,resultSoFar:St},_emitter:le};if(te)return{language:D,value:wt(z),illegal:!1,relevance:0,errorRaised:L,_emitter:le,_top:H};throw L}}function vt(D){const z={value:wt(D),illegal:!1,relevance:0,_top:O,_emitter:new M.__emitter(M)};return z._emitter.addText(D),z}function At(D,z){z=z||M.languages||Object.keys(A);const K=vt(D),ee=z.filter(we).filter(Uo).map(he=>Fe(he,D,!1));ee.unshift(K);const ce=ee.sort((he,_e)=>{if(he.relevance!==_e.relevance)return _e.relevance-he.relevance;if(he.language&&_e.language){if(we(he.language).supersetOf===_e.language)return 1;if(we(_e.language).supersetOf===he.language)return-1}return 0}),[ge,ve]=ce,Ye=ge;return Ye.secondBest=ve,Ye}function Ta(D,z,K){const ee=z&&q[z]||K;D.classList.add("hljs"),D.classList.add(`language-${ee}`)}function Ct(D){let z=null;const K=ie(D);if($(K))return;if(We("before:highlightElement",{el:D,language:K}),D.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",D);return}if(D.children.length>0&&(M.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(D)),M.throwUnescapedHTML))throw new Da("One of your code blocks includes unescaped HTML.",D.innerHTML);z=D;const ee=z.textContent,ce=K?oe(ee,{language:K,ignoreIllegals:!0}):At(ee);D.innerHTML=ce.value,D.dataset.highlighted="yes",Ta(D,K,ce.language),D.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(D.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),We("after:highlightElement",{el:D,result:ce,text:ee})}function qa(D){M=Io(M,D)}const Na=()=>{Ke(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function La(){Ke(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Po=!1;function Ke(){if(document.readyState==="loading"){Po=!0;return}document.querySelectorAll(M.cssSelector).forEach(Ct)}function Ba(){Po&&Ke()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Ba,!1);function Ma(D,z){let K=null;try{K=z(d)}catch(ee){if(Se("Language definition for '{}' could not be registered.".replace("{}",D)),te)Se(ee);else throw ee;K=O}K.name||(K.name=D),A[D]=K,K.rawDefinition=z.bind(null,d),K.aliases&&zo(K.aliases,{languageName:D})}function Ia(D){delete A[D];for(const z of Object.keys(q))q[z]===D&&delete q[z]}function Oa(){return Object.keys(A)}function we(D){return D=(D||"").toLowerCase(),A[D]||A[q[D]]}function zo(D,{languageName:z}){typeof D=="string"&&(D=[D]),D.forEach(K=>{q[K.toLowerCase()]=z})}function Uo(D){const z=we(D);return z&&!z.disableAutodetect}function Fa(D){D["before:highlightBlock"]&&!D["before:highlightElement"]&&(D["before:highlightElement"]=z=>{D["before:highlightBlock"](Object.assign({block:z.el},z))}),D["after:highlightBlock"]&&!D["after:highlightElement"]&&(D["after:highlightElement"]=z=>{D["after:highlightBlock"](Object.assign({block:z.el},z))})}function Pa(D){Fa(D),V.push(D)}function za(D){const z=V.indexOf(D);z!==-1&&V.splice(z,1)}function We(D,z){const K=D;V.forEach(function(ee){ee[K]&&ee[K](z)})}function Ua(D){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),Ct(D)}Object.assign(d,{highlight:oe,highlightAuto:At,highlightAll:Ke,highlightElement:Ct,highlightBlock:Ua,configure:qa,initHighlighting:Na,initHighlightingOnLoad:La,registerLanguage:Ma,unregisterLanguage:Ia,listLanguages:Oa,getLanguage:we,registerAliases:zo,autoDetection:Uo,inherit:Io,addPlugin:Pa,removePlugin:za}),d.debugMode=function(){te=!1},d.safeMode=function(){te=!0},d.versionString=Sa,d.regex={concat:E,lookahead:g,either:k,optional:b,anyNumberOfTimes:h};for(const D in je)typeof je[D]=="object"&&c(je[D]);return Object.assign(d,je),d},Ne=Fo({});return Ne.newInstance=()=>Fo({}),tn=Ne,Ne.HighlightJS=Ne,Ne.default=Ne,tn}var is=cs();const Ee=nn(is),Ot="[A-Za-z$_][0-9A-Za-z$_]*",as=["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"],ls=["true","false","null","undefined","NaN","Infinity"],Ft=["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"],Pt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],zt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],us=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],fs=[].concat(zt,Ft,Pt);function Ut(c){const n=c.regex,o=(j,{after:Y})=>{const F="</"+j[0].slice(1);return j.input.indexOf(F,Y)!==-1},e=Ot,t={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(j,Y)=>{const F=j[0].length+j.index,se=j.input[F];if(se==="<"||se===","){Y.ignoreMatch();return}se===">"&&(o(j,{after:F})||Y.ignoreMatch());let ue;const de=j.input.substring(F);if(ue=de.match(/^\s*=/)){Y.ignoreMatch();return}if((ue=de.match(/^\s+extends\s+/))&&ue.index===0){Y.ignoreMatch();return}}},i={$pattern:Ot,keyword:as,literal:ls,built_in:fs,"variable.language":us},a="[0-9](_?[0-9])*",l=`\\.(${a})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${p})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${p})\\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},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},b={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,g]},x={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:e+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},m=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,h,b,E,v,{match:/\$\d+/},f];g.contains=m.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(m)});const _=[].concat(x,g.contains),y=_.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(_)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:y},B={variants:[{match:[/class/,/\s+/,e,/\s+/,/extends/,/\s+/,n.concat(e,"(",n.concat(/\./,e),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,e],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:n.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:{_:[...Ft,...Pt]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,e,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(j){return n.concat("(?!",j.join("|"),")")}const Q={match:n.concat(/\b/,G([...zt,"super","import"]),e,n.lookahead(/\(/)),className:"title.function",relevance:0},C={begin:n.concat(/\./,n.lookahead(n.concat(e,/(?![0-9A-Za-z$_(])/))),end:e,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,e,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,e,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,h,b,E,v,x,{match:/\$\d+/},f,S,{className:"attr",begin:e+n.lookahead(":"),relevance:0},W,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,c.REGEXP_MODE,{className:"function",begin:U,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:r},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,c.inherit(c.TITLE_MODE,{begin:e,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+e,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},Q,I,B,N,{match:/\$[(.]/}]}}function $t(c){const n=c.regex,o=n.concat(/[\p{L}_]/u,n.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),e=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=c.inherit(r,{begin:/\(/,end:/\)/}),i=c.inherit(c.APOS_STRING_MODE,{className:"string"}),a=c.inherit(c.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:e,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{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:[r,a,i,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,s,a,i]}]}]},c.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n.concat(/</,n.lookahead(n.concat(o,n.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:l}]},{className:"tag",begin:n.concat(/<\//,n.lookahead(n.concat(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ze=(c,n)=>{const o=c.__vccOpts||c;for(const[e,t]of n)o[e]=t;return o},ps={},hs={class:"chat-button"};function ds(c,n){return u.openBlock(),u.createElementBlock("button",hs,[u.renderSlot(c.$slots,"default")])}const gs=ze(ps,[["render",ds]]),ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function bs(c,n){return u.openBlock(),u.createElementBlock("svg",ms,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)]))}const _s={name:"mdi-close",render:bs};function rn(){return u.inject(qt)}function Me(){return{options:u.inject(Nt)}}function Ue(){const{options:c}=Me(),n=(c==null?void 0:c.defaultLanguage)??"en";function o(t){var s,i;const r=(i=(s=c==null?void 0:c.i18n)==null?void 0:s[n])==null?void 0:i[t];return u.isRef(r)?r.value:r??t}function e(t){var r,s;return!!((s=(r=c==null?void 0:c.i18n)==null?void 0:r[n])!=null&&s[t])}return{t:o,te:e}}const ks={class:"chat-get-started"},Es=u.defineComponent({__name:"GetStarted",setup(c){const{t:n}=Ue();return(o,e)=>(u.openBlock(),u.createElementBlock("div",ks,[u.createVNode(gs,{onClick:e[0]||(e[0]=t=>o.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(n)("getStarted")),1)]),_:1})]))}}),ys={},xs={class:"chat-powered-by"};function ws(c,n){return u.openBlock(),u.createElementBlock("div",xs,n[0]||(n[0]=[u.createTextVNode(" Powered by "),u.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1)]))}const vs=ze(ys,[["render",ws]]),As={class:"chat-get-started-footer"},Cs={key:0},Ss=u.defineComponent({__name:"GetStartedFooter",setup(c){const{t:n,te:o}=Ue();return(e,t)=>(u.openBlock(),u.createElementBlock("div",As,[u.unref(o)("footer")?(u.openBlock(),u.createElementBlock("div",Cs,u.toDisplayString(u.unref(n)("footer")),1)):u.createCommentVNode("",!0),u.createVNode(vs)]))}});function Ds(c){return u.getCurrentScope()?(u.onScopeDispose(c),!0):!1}function Rs(){const c=new Set,n=t=>{c.delete(t)};return{on:t=>{c.add(t);const r=()=>n(t);return Ds(r),{off:r}},off:n,trigger:(...t)=>Promise.all(Array.from(c).map(r=>r(...t)))}}const Ts=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qs=(c,n)=>Object.prototype.hasOwnProperty.call(c,n),Ns=Ts?window.document:void 0,Ls={multiple:!0,accept:"*",reset:!1,directory:!1};function Bs(c={}){const{document:n=Ns}=c,o=u.ref(null),{on:e,trigger:t}=Rs();let r;n&&(r=n.createElement("input"),r.type="file",r.onchange=a=>{const l=a.target;o.value=l.files,t(o.value)});const s=()=>{o.value=null,r&&r.value&&(r.value="",t(null))},i=a=>{if(!r)return;const l={...Ls,...c,...a};r.multiple=l.multiple,r.accept=l.accept,r.webkitdirectory=l.directory,qs(l,"capture")&&(r.capture=l.capture),l.reset&&s(),r.click()};return{files:u.readonly(o),open:i,reset:s,onChange:e}}const Ms={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Is(c,n){return u.openBlock(),u.createElementBlock("svg",Ms,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M16.5 6v11.5a4 4 0 0 1-4 4a4 4 0 0 1-4-4V5A2.5 2.5 0 0 1 11 2.5A2.5 2.5 0 0 1 13.5 5v10.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1V6H10v9.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5V5a4 4 0 0 0-4-4a4 4 0 0 0-4 4v12.5a5.5 5.5 0 0 0 5.5 5.5a5.5 5.5 0 0 0 5.5-5.5V6z"},null,-1)]))}const Os={name:"mdi-paperclip",render:Is},Fs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ps(c,n){return u.openBlock(),u.createElementBlock("svg",Fs,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2z"},null,-1)]))}const zs={name:"mdi-send",render:Ps},Us={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $s(c,n){return u.openBlock(),u.createElementBlock("svg",Us,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12z"},null,-1)]))}const Vs={name:"mdi-closeThick",render:$s},Hs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Gs(c,n){return u.openBlock(),u.createElementBlock("svg",Hs,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m0 18h12v-8l-4 4l-2-2zM8 9a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2"},null,-1)]))}const js={name:"mdi-fileImage",render:Gs},Zs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ks(c,n){return u.openBlock(),u.createElementBlock("svg",Zs,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 11h-2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2c.4 0 .7.1 1 .3V11h3zm0-4V3.5L18.5 9z"},null,-1)]))}const Ws={name:"mdi-fileMusic",render:Ks},Ys={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Js(c,n){return u.openBlock(),u.createElementBlock("svg",Ys,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m9 16v-2H6v2zm3-4v-2H6v2z"},null,-1)]))}const Vt={name:"mdi-fileText",render:Js},Xs={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Qs(c,n){return u.openBlock(),u.createElementBlock("svg",Xs,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m11 17v-6l-3 2.2V13H7v6h7v-2.2z"},null,-1)]))}const ec={name:"mdi-fileVideo",render:Qs},nc={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function tc(c,n){return u.openBlock(),u.createElementBlock("svg",nc,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M14 3v2h3.59l-9.83 9.83l1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2z"},null,-1)]))}const rc={name:"mdi-openInNew",render:tc},oc={class:"chat-file-name"},Ht=ze(u.defineComponent({__name:"ChatFile",props:{file:{},isRemovable:{type:Boolean},isPreviewable:{type:Boolean}},emits:["remove"],setup(c,{emit:n}){const o=c,e=n,t={document:Vt,audio:Ws,image:js,video:ec},r=u.computed(()=>{var l;const a=(l=o.file)==null?void 0:l.type.split("/")[0];return t[a]||Vt});function s(){o.isPreviewable&&window.open(URL.createObjectURL(o.file))}function i(){e("remove",o.file)}return(a,l)=>(u.openBlock(),u.createElementBlock("div",{class:"chat-file",onClick:s},[u.createVNode(u.unref(r)),u.createElementVNode("p",oc,u.toDisplayString(a.file.name),1),a.isRemovable?(u.openBlock(),u.createElementBlock("span",{key:0,class:"chat-file-delete",onClick:u.withModifiers(i,["stop"])},[u.createVNode(u.unref(Vs))])):a.isPreviewable?(u.openBlock(),u.createBlock(u.unref(rc),{key:1,class:"chat-file-preview"})):u.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e0d57af7"]]),sc={class:"chat-inputs"},cc={key:0,class:"chat-input-left-panel"},ic=["disabled","placeholder"],ac={class:"chat-inputs-controls"},lc=["disabled"],uc=["disabled"],fc={key:0,class:"chat-files"},pc=ze(u.defineComponent({__name:"Input",props:{placeholder:{default:"inputPlaceholder"}},emits:["arrowKeyDown"],setup(c,{emit:n}){const o=c,{t:e}=Ue(),t=n,{options:r}=Me(),s=rn(),{waitingForResponse:i}=s,a=u.ref(null),l=u.ref(null),p=u.ref(""),f=u.ref(!1),g=u.ref(null),h=u.computed(()=>{var N;return p.value===""||u.unref(i)||((N=r.disabled)==null?void 0:N.value)===!0}),b=u.computed(()=>{var N;return((N=r.disabled)==null?void 0:N.value)===!0}),E=u.computed(()=>{var N;return v.value&&u.unref(i)&&!((N=r.disabled)!=null&&N.value)}),v=u.computed(()=>u.unref(r.allowFileUploads)===!0),k=u.computed(()=>u.unref(r.allowedFilesMimeTypes)),x=u.computed(()=>({"--controls-count":v.value?2:1})),{open:m,reset:_,onChange:y}=Bs({multiple:!0,reset:!1});y(N=>{if(!N)return;const U=new DataTransfer;if(a.value)for(let W=0;W<a.value.length;W++)U.items.add(a.value[W]);for(let W=0;W<N.length;W++)U.items.add(N[W]);a.value=U.files}),u.onMounted(()=>{pe.on("focusInput",B),pe.on("blurInput",w),pe.on("setInputValue",S),l.value&&(g.value=new ResizeObserver(N=>{for(const U of N)U.target===l.value&&C()}),g.value.observe(l.value))}),u.onUnmounted(()=>{pe.off("focusInput",B),pe.off("blurInput",w),pe.off("setInputValue",S),g.value&&(g.value.disconnect(),g.value=null)});function w(){l.value&&l.value.blur()}function B(){l.value&&l.value.focus()}function S(N){p.value=N,B()}async function T(N){if(N.preventDefault(),h.value)return;const U=p.value;p.value="",f.value=!0,await s.sendMessage(U,Array.from(a.value??[])),f.value=!1,_(),a.value=null}async function R(N){N.shiftKey||(await T(N),C())}function I(N){if(!a.value)return;const U=new DataTransfer;for(let W=0;W<a.value.length;W++){const j=a.value[W];N.name!==j.name&&U.items.add(j)}_(),a.value=U.files}function G(N){(N.key==="ArrowUp"||N.key==="ArrowDown")&&(N.preventDefault(),t("arrowKeyDown",{key:N.key,currentInputValue:p.value}))}function Q(){E.value||m({accept:u.unref(k)})}function C(){const N=l.value;if(!N)return;N.style.height="var(--chat--textarea--height)";const U=Math.min(N.scrollHeight,480);N.style.height=`${U}px`}return(N,U)=>{var W;return u.openBlock(),u.createElementBlock("div",{class:"chat-input",style:u.normalizeStyle(x.value),onKeydown:u.withModifiers(G,["stop"])},[u.createElementVNode("div",sc,[N.$slots.leftPanel?(u.openBlock(),u.createElementBlock("div",cc,[u.renderSlot(N.$slots,"leftPanel",{},void 0,!0)])):u.createCommentVNode("",!0),u.withDirectives(u.createElementVNode("textarea",{ref_key:"chatTextArea",ref:l,"onUpdate:modelValue":U[0]||(U[0]=j=>p.value=j),"data-test-id":"chat-input",disabled:b.value,placeholder:u.unref(e)(o.placeholder),onKeydown:u.withKeys(R,["enter"]),onInput:C,onMousedown:C,onFocus:C},null,40,ic),[[u.vModelText,p.value]]),u.createElementVNode("div",ac,[v.value?(u.openBlock(),u.createElementBlock("button",{key:0,disabled:E.value,class:"chat-input-file-button","data-test-id":"chat-attach-file-button",onClick:Q},[u.createVNode(u.unref(Os),{height:"24",width:"24"})],8,lc)):u.createCommentVNode("",!0),u.createElementVNode("button",{disabled:h.value,class:"chat-input-send-button",onClick:T},[u.createVNode(u.unref(zs),{height:"24",width:"24"})],8,uc)])]),(W=a.value)!=null&&W.length&&!f.value?(u.openBlock(),u.createElementBlock("div",fc,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.value,j=>(u.openBlock(),u.createBlock(Ht,{key:j.name,file:j,"is-removable":!0,"is-previewable":!0,onRemove:I},null,8,["file"]))),128))])):u.createCommentVNode("",!0)],36)}}}),[["__scopeId","data-v-31e29ba2"]]),hc={class:"chat-layout"},dc={key:0,class:"chat-header"},gc={key:2,class:"chat-footer"},mc=u.defineComponent({__name:"Layout",setup(c){const n=u.ref(null);function o(){const e=n.value;e&&(e.scrollTop=e.scrollHeight)}return u.onMounted(()=>{pe.on("scrollToBottom",o),window.addEventListener("resize",o)}),u.onBeforeUnmount(()=>{pe.off("scrollToBottom",o),window.removeEventListener("resize",o)}),(e,t)=>(u.openBlock(),u.createElementBlock("main",hc,[e.$slots.header?(u.openBlock(),u.createElementBlock("div",dc,[u.renderSlot(e.$slots,"header")])):u.createCommentVNode("",!0),e.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,ref_key:"chatBodyRef",ref:n,class:"chat-body"},[u.renderSlot(e.$slots,"default")],512)):u.createCommentVNode("",!0),e.$slots.footer?(u.openBlock(),u.createElementBlock("div",gc,[u.renderSlot(e.$slots,"footer")])):u.createCommentVNode("",!0)]))}});function bc(c){const n=c.regex,o={},e={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[o]}]};Object.assign(o,{className:"variable",variants:[{begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},e]});const t={className:"subst",begin:/\$\(/,end:/\)/,contains:[c.BACKSLASH_ESCAPE]},r={begin:/<<-?\s*(?=\w+)/,starts:{contains:[c.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,o,t]};t.contains.push(s);const i={match:/\\"/},a={className:"string",begin:/'/,end:/'/},l={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},c.NUMBER_MODE,o]},f=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=c.SHEBANG({binary:`(${f.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[c.inherit(c.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],E=["true","false"],v={match:/(\/[a-z._-]+)+/},k=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],x=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],m=["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"],_=["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"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:E,built_in:[...k,...x,"set","shopt",...m,..._]},contains:[g,c.SHEBANG(),h,p,c.HASH_COMMENT_MODE,r,v,s,i,a,l,o]}}function _c(c){const n=c.regex,o=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),e=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:e,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},a={className:"meta",begin:/^(>>>|\.\.\.) /},l={className:"subst",begin:/\{/,end:/\}/,keywords:i,illegal:/#/},p={begin:/\{\{/,relevance:0},f={className:"string",contains:[c.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[c.BACKSLASH_ESCAPE,a,p,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[c.BACKSLASH_ESCAPE,a,p,l]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[c.BACKSLASH_ESCAPE,p,l]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[c.BACKSLASH_ESCAPE,p,l]},c.APOS_STRING_MODE,c.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",h=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,b=`\\b|${e.join("|")}`,E={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${h}))[eE][+-]?(${g})[jJ]?(?=${b})`},{begin:`(${h})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${b})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${b})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${b})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${b})`},{begin:`\\b(${g})[jJ](?=${b})`}]},v={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:i,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},k={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:["self",a,E,f,c.HASH_COMMENT_MODE]}]};return l.contains=[f,E,a],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:i,illegal:/(<\/|\?)|=>/,contains:[a,E,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},f,v,c.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,o],scope:{1:"keyword",3:"title.function"},contains:[k]},{variants:[{match:[/\bclass/,/\s+/,o,/\s*/,/\(\s*/,o,/\s*\)/]},{match:[/\bclass/,/\s+/,o]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[E,k,f]}]}}const $e="[A-Za-z$_][0-9A-Za-z$_]*",Gt=["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"],jt=["true","false","null","undefined","NaN","Infinity"],Zt=["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"],Kt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jt=[].concat(Wt,Zt,Kt);function kc(c){const n=c.regex,o=(j,{after:Y})=>{const F="</"+j[0].slice(1);return j.input.indexOf(F,Y)!==-1},e=$e,t={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(j,Y)=>{const F=j[0].length+j.index,se=j.input[F];if(se==="<"||se===","){Y.ignoreMatch();return}se===">"&&(o(j,{after:F})||Y.ignoreMatch());let ue;const de=j.input.substring(F);if(ue=de.match(/^\s*=/)){Y.ignoreMatch();return}if((ue=de.match(/^\s+extends\s+/))&&ue.index===0){Y.ignoreMatch();return}}},i={$pattern:$e,keyword:Gt,literal:jt,built_in:Jt,"variable.language":Yt},a="[0-9](_?[0-9])*",l=`\\.(${a})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${p})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${p})\\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},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},b={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},v={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,g]},x={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:e+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},m=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,h,b,E,v,{match:/\$\d+/},f];g.contains=m.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(m)});const _=[].concat(x,g.contains),y=_.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(_)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:y},B={variants:[{match:[/class/,/\s+/,e,/\s+/,/extends/,/\s+/,n.concat(e,"(",n.concat(/\./,e),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,e],scope:{1:"keyword",3:"title.class"}}]},S={relevance:0,match:n.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:{_:[...Zt,...Kt]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,e,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(j){return n.concat("(?!",j.join("|"),")")}const Q={match:n.concat(/\b/,G([...Wt,"super","import"]),e,n.lookahead(/\(/)),className:"title.function",relevance:0},C={begin:n.concat(/\./,n.lookahead(n.concat(e,/(?![0-9A-Za-z$_(])/))),end:e,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},N={match:[/get|set/,/\s+/,e,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},U="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",W={match:[/const|var|let/,/\s+/,e,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(U)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,h,b,E,v,x,{match:/\$\d+/},f,S,{className:"attr",begin:e+n.lookahead(":"),relevance:0},W,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,c.REGEXP_MODE,{className:"function",begin:U,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:r},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,c.inherit(c.TITLE_MODE,{begin:e,className:"title.function"})]},{match:/\.\.\./,relevance:0},C,{match:"\\$"+e,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},Q,I,B,N,{match:/\$[(.]/}]}}function Ec(c){const n=kc(c),o=$e,e=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],t={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[n.exports.CLASS_REFERENCE]},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:e},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},i=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:$e,keyword:Gt.concat(i),literal:jt,built_in:Jt.concat(e),"variable.language":Yt},l={className:"meta",begin:"@"+o},p=(g,h,b)=>{const E=g.contains.findIndex(v=>v.label===h);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,b)};Object.assign(n.keywords,a),n.exports.PARAMS_CONTAINS.push(l),n.contains=n.contains.concat([l,t,r]),p(n,"shebang",c.SHEBANG()),p(n,"use_strict",s);const f=n.contains.find(g=>g.label==="func.def");return f.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}var on,Xt;function yc(){if(Xt)return on;Xt=1;function c(e,t){var r,s,i=e.attrs[e.attrIndex("href")][1];for(r=0;r<t.length;++r){if(s=t[r],typeof s.matcher=="function"){if(s.matcher(i,s))return s;continue}return s}}function n(e,t,r){Object.keys(r).forEach(function(s){var i,a=r[s];s==="className"&&(s="class"),i=t[e].attrIndex(s),i<0?t[e].attrPush([s,a]):t[e].attrs[i][1]=a})}function o(e,t){t?t=Array.isArray(t)?t:[t]:t=[],Object.freeze(t);var r=e.renderer.rules.link_open||this.defaultRender;e.renderer.rules.link_open=function(s,i,a,l,p){var f=c(s[i],t),g=f&&f.attrs;return g&&n(i,s,g),r(s,i,a,l,p)}}return o.defaultRender=function(e,t,r,s,i){return i.renderToken(e,t,r)},on=o,on}var xc=yc();const wc=nn(xc);var sn={};const vc={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
3
- `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};var cn,Qt;function er(){return Qt||(Qt=1,cn=vc),cn}var an,nr;function ln(){return nr||(nr=1,an=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),an}var Re={},un,tr;function Ac(){if(tr)return un;tr=1;var c={};function n(e){var t,r,s=c[e];if(s)return s;for(s=c[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),/^[0-9a-z]$/i.test(r)?s.push(r):s.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)s[e.charCodeAt(t)]=e[t];return s}function o(e,t,r){var s,i,a,l,p,f="";for(typeof t!="string"&&(r=t,t=o.defaultChars),typeof r>"u"&&(r=!0),p=n(t),s=0,i=e.length;s<i;s++){if(a=e.charCodeAt(s),r&&a===37&&s+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){f+=e.slice(s,s+3),s+=2;continue}if(a<128){f+=p[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1<i&&(l=e.charCodeAt(s+1),l>=56320&&l<=57343)){f+=encodeURIComponent(e[s]+e[s+1]),s++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(e[s])}return f}return o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",un=o,un}var fn,rr;function Cc(){if(rr)return fn;rr=1;var c={};function n(e){var t,r,s=c[e];if(s)return s;for(s=c[e]=[],t=0;t<128;t++)r=String.fromCharCode(t),s.push(r);for(t=0;t<e.length;t++)r=e.charCodeAt(t),s[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return s}function o(e,t){var r;return typeof t!="string"&&(t=o.defaultChars),r=n(t),e.replace(/(%[a-f0-9]{2})+/gi,function(s){var i,a,l,p,f,g,h,b="";for(i=0,a=s.length;i<a;i+=3){if(l=parseInt(s.slice(i+1,i+3),16),l<128){b+=r[l];continue}if((l&224)===192&&i+3<a&&(p=parseInt(s.slice(i+4,i+6),16),(p&192)===128)){h=l<<6&1984|p&63,h<128?b+="��":b+=String.fromCharCode(h),i+=3;continue}if((l&240)===224&&i+6<a&&(p=parseInt(s.slice(i+4,i+6),16),f=parseInt(s.slice(i+7,i+9),16),(p&192)===128&&(f&192)===128)){h=l<<12&61440|p<<6&4032|f&63,h<2048||h>=55296&&h<=57343?b+="���":b+=String.fromCharCode(h),i+=6;continue}if((l&248)===240&&i+9<a&&(p=parseInt(s.slice(i+4,i+6),16),f=parseInt(s.slice(i+7,i+9),16),g=parseInt(s.slice(i+10,i+12),16),(p&192)===128&&(f&192)===128&&(g&192)===128)){h=l<<18&1835008|p<<12&258048|f<<6&4032|g&63,h<65536||h>1114111?b+="����":(h-=65536,b+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}b+="�"}return b})}return o.defaultChars=";/?:@&=+$,#",o.componentChars="",fn=o,fn}var pn,or;function Sc(){return or||(or=1,pn=function(n){var o="";return o+=n.protocol||"",o+=n.slashes?"//":"",o+=n.auth?n.auth+"@":"",n.hostname&&n.hostname.indexOf(":")!==-1?o+="["+n.hostname+"]":o+=n.hostname||"",o+=n.port?":"+n.port:"",o+=n.pathname||"",o+=n.search||"",o+=n.hash||"",o}),pn}var hn,sr;function Dc(){if(sr)return hn;sr=1;function c(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,t=["<",">",'"',"`"," ","\r",`
4
- `," "],r=["{","}","|","\\","^","`"].concat(t),s=["'"].concat(r),i=["%","/","?",";","#"].concat(s),a=["/","?","#"],l=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},h={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function b(E,v){if(E&&E instanceof c)return E;var k=new c;return k.parse(E,v),k}return c.prototype.parse=function(E,v){var k,x,m,_,y,w=E;if(w=w.trim(),!v&&E.split("#").length===1){var B=e.exec(w);if(B)return this.pathname=B[1],B[2]&&(this.search=B[2]),this}var S=n.exec(w);if(S&&(S=S[0],m=S.toLowerCase(),this.protocol=S,w=w.substr(S.length)),(v||S||w.match(/^\/\/[^@\/]+@[^@\/]+/))&&(y=w.substr(0,2)==="//",y&&!(S&&g[S])&&(w=w.substr(2),this.slashes=!0)),!g[S]&&(y||S&&!h[S])){var T=-1;for(k=0;k<a.length;k++)_=w.indexOf(a[k]),_!==-1&&(T===-1||_<T)&&(T=_);var R,I;for(T===-1?I=w.lastIndexOf("@"):I=w.lastIndexOf("@",T),I!==-1&&(R=w.slice(0,I),w=w.slice(I+1),this.auth=R),T=-1,k=0;k<i.length;k++)_=w.indexOf(i[k]),_!==-1&&(T===-1||_<T)&&(T=_);T===-1&&(T=w.length),w[T-1]===":"&&T--;var G=w.slice(0,T);w=w.slice(T),this.parseHost(G),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q){var C=this.hostname.split(/\./);for(k=0,x=C.length;k<x;k++){var N=C[k];if(N&&!N.match(p)){for(var U="",W=0,j=N.length;W<j;W++)N.charCodeAt(W)>127?U+="x":U+=N[W];if(!U.match(p)){var Y=C.slice(0,k),F=C.slice(k+1),se=N.match(f);se&&(Y.push(se[1]),F.unshift(se[2])),F.length&&(w=F.join(".")+w),this.hostname=Y.join(".");break}}}}this.hostname.length>l&&(this.hostname=""),Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var ue=w.indexOf("#");ue!==-1&&(this.hash=w.substr(ue),w=w.slice(0,ue));var de=w.indexOf("?");return de!==-1&&(this.search=w.substr(de),w=w.slice(0,de)),w&&(this.pathname=w),h[m]&&this.hostname&&!this.pathname&&(this.pathname=""),this},c.prototype.parseHost=function(E){var v=o.exec(E);v&&(v=v[0],v!==":"&&(this.port=v.substr(1)),E=E.substr(0,E.length-v.length)),E&&(this.hostname=E)},hn=b,hn}var cr;function ir(){return cr||(cr=1,Re.encode=Ac(),Re.decode=Cc(),Re.format=Sc(),Re.parse=Dc()),Re}var Ce={},dn,ar;function lr(){return ar||(ar=1,dn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),dn}var gn,ur;function fr(){return ur||(ur=1,gn=/[\0-\x1F\x7F-\x9F]/),gn}var mn,pr;function Rc(){return pr||(pr=1,mn=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),mn}var bn,hr;function dr(){return hr||(hr=1,bn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),bn}var gr;function Tc(){return gr||(gr=1,Ce.Any=lr(),Ce.Cc=fr(),Ce.Cf=Rc(),Ce.P=ln(),Ce.Z=dr()),Ce}var mr;function J(){return mr||(mr=1,function(c){function n(C){return Object.prototype.toString.call(C)}function o(C){return n(C)==="[object String]"}var e=Object.prototype.hasOwnProperty;function t(C,N){return e.call(C,N)}function r(C){var N=Array.prototype.slice.call(arguments,1);return N.forEach(function(U){if(U){if(typeof U!="object")throw new TypeError(U+"must be object");Object.keys(U).forEach(function(W){C[W]=U[W]})}}),C}function s(C,N,U){return[].concat(C.slice(0,N),U,C.slice(N+1))}function i(C){return!(C>=55296&&C<=57343||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534||C>=0&&C<=8||C===11||C>=14&&C<=31||C>=127&&C<=159||C>1114111)}function a(C){if(C>65535){C-=65536;var N=55296+(C>>10),U=56320+(C&1023);return String.fromCharCode(N,U)}return String.fromCharCode(C)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,p=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(l.source+"|"+p.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=er();function b(C,N){var U;return t(h,N)?h[N]:N.charCodeAt(0)===35&&g.test(N)&&(U=N[1].toLowerCase()==="x"?parseInt(N.slice(2),16):parseInt(N.slice(1),10),i(U))?a(U):C}function E(C){return C.indexOf("\\")<0?C:C.replace(l,"$1")}function v(C){return C.indexOf("\\")<0&&C.indexOf("&")<0?C:C.replace(f,function(N,U,W){return U||b(N,W)})}var k=/[&<>"]/,x=/[&<>"]/g,m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _(C){return m[C]}function y(C){return k.test(C)?C.replace(x,_):C}var w=/[.?*+^$[\]\\(){}|-]/g;function B(C){return C.replace(w,"\\$&")}function S(C){switch(C){case 9:case 32:return!0}return!1}function T(C){if(C>=8192&&C<=8202)return!0;switch(C){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}var R=ln();function I(C){return R.test(C)}function G(C){switch(C){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 Q(C){return C=C.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(C=C.replace(/ẞ/g,"ß")),C.toLowerCase().toUpperCase()}c.lib={},c.lib.mdurl=ir(),c.lib.ucmicro=Tc(),c.assign=r,c.isString=o,c.has=t,c.unescapeMd=E,c.unescapeAll=v,c.isValidEntityCode=i,c.fromCodePoint=a,c.escapeHtml=y,c.arrayReplaceAt=s,c.isSpace=S,c.isWhiteSpace=T,c.isMdAsciiPunct=G,c.isPunctChar=I,c.escapeRE=B,c.normalizeReference=Q}(sn)),sn}var Ie={},_n,br;function qc(){return br||(br=1,_n=function(n,o,e){var t,r,s,i,a=-1,l=n.posMax,p=n.pos;for(n.pos=o+1,t=1;n.pos<l;){if(s=n.src.charCodeAt(n.pos),s===93&&(t--,t===0)){r=!0;break}if(i=n.pos,n.md.inline.skipToken(n),s===91){if(i===n.pos-1)t++;else if(e)return n.pos=p,-1}}return r&&(a=n.pos),n.pos=p,a}),_n}var kn,_r;function Nc(){if(_r)return kn;_r=1;var c=J().unescapeAll;return kn=function(o,e,t){var r,s,i=e,a={ok:!1,pos:0,lines:0,str:""};if(o.charCodeAt(i)===60){for(i++;i<t;){if(r=o.charCodeAt(i),r===10||r===60)return a;if(r===62)return a.pos=i+1,a.str=c(o.slice(e+1,i)),a.ok=!0,a;if(r===92&&i+1<t){i+=2;continue}i++}return a}for(s=0;i<t&&(r=o.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<t){if(o.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(s++,s>32))return a;if(r===41){if(s===0)break;s--}i++}return e===i||s!==0||(a.str=c(o.slice(e,i)),a.pos=i,a.ok=!0),a},kn}var En,kr;function Lc(){if(kr)return En;kr=1;var c=J().unescapeAll;return En=function(o,e,t){var r,s,i=0,a=e,l={ok:!1,pos:0,lines:0,str:""};if(a>=t||(s=o.charCodeAt(a),s!==34&&s!==39&&s!==40))return l;for(a++,s===40&&(s=41);a<t;){if(r=o.charCodeAt(a),r===s)return l.pos=a+1,l.lines=i,l.str=c(o.slice(e+1,a)),l.ok=!0,l;if(r===40&&s===41)return l;r===10?i++:r===92&&a+1<t&&(a++,o.charCodeAt(a)===10&&i++),a++}return l},En}var Er;function Bc(){return Er||(Er=1,Ie.parseLinkLabel=qc(),Ie.parseLinkDestination=Nc(),Ie.parseLinkTitle=Lc()),Ie}var yn,yr;function Mc(){if(yr)return yn;yr=1;var c=J().assign,n=J().unescapeAll,o=J().escapeHtml,e={};e.code_inline=function(r,s,i,a,l){var p=r[s];return"<code"+l.renderAttrs(p)+">"+o(p.content)+"</code>"},e.code_block=function(r,s,i,a,l){var p=r[s];return"<pre"+l.renderAttrs(p)+"><code>"+o(r[s].content)+`</code></pre>
5
- `},e.fence=function(r,s,i,a,l){var p=r[s],f=p.info?n(p.info).trim():"",g="",h="",b,E,v,k,x;return f&&(v=f.split(/(\s+)/g),g=v[0],h=v.slice(2).join("")),i.highlight?b=i.highlight(p.content,g,h)||o(p.content):b=o(p.content),b.indexOf("<pre")===0?b+`
6
- `:f?(E=p.attrIndex("class"),k=p.attrs?p.attrs.slice():[],E<0?k.push(["class",i.langPrefix+g]):(k[E]=k[E].slice(),k[E][1]+=" "+i.langPrefix+g),x={attrs:k},"<pre><code"+l.renderAttrs(x)+">"+b+`</code></pre>
7
- `):"<pre><code"+l.renderAttrs(p)+">"+b+`</code></pre>
8
- `},e.image=function(r,s,i,a,l){var p=r[s];return p.attrs[p.attrIndex("alt")][1]=l.renderInlineAsText(p.children,i,a),l.renderToken(r,s,i)},e.hardbreak=function(r,s,i){return i.xhtmlOut?`<br />
1
+ (function(Pe,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(Pe=typeof globalThis<"u"?globalThis:Pe||self,n(Pe.N8nChat={},Pe.Vue))})(this,function(Pe,n){"use strict";/*! Package version @n8n/chat@0.46.0 */const Xn={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",loadPreviousSession:!0,chatInputKey:"chatInput",chatSessionKey:"sessionId",defaultLanguage:"en",showWelcomeScreen:!1,initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question..",closeButtonTooltip:"Close chat"}},theme:{}},Ym="#n8n-chat",Wc="n8n-chat/sessionId",Zc="Chat",Xc="ChatOptions";for(var Be=[],Lo=0;Lo<256;++Lo)Be.push((Lo+256).toString(16).slice(1));function Jm(e,t=0){return(Be[e[t+0]]+Be[e[t+1]]+Be[e[t+2]]+Be[e[t+3]]+"-"+Be[e[t+4]]+Be[e[t+5]]+"-"+Be[e[t+6]]+Be[e[t+7]]+"-"+Be[e[t+8]]+Be[e[t+9]]+"-"+Be[e[t+10]]+Be[e[t+11]]+Be[e[t+12]]+Be[e[t+13]]+Be[e[t+14]]+Be[e[t+15]]).toLowerCase()}var Nr,Qm=new Uint8Array(16);function eg(){if(!Nr&&(Nr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Nr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nr(Qm)}var tg=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Yc={randomUUID:tg};function Yn(e,t,r){if(Yc.randomUUID&&!e)return Yc.randomUUID();e=e||{};var o=e.random||(e.rng||eg)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Jm(o)}async function ng(){return""}async function Do(...e){var a,i;const t=await ng(),r=(a=e[1])==null?void 0:a.body,o={...t?{authorization:`Bearer ${t}`}:{},...(i=e[1])==null?void 0:i.headers};return r instanceof FormData?delete o["Content-Type"]:o["Content-Type"]="application/json",await(await fetch(e[0],{...e[1],mode:"cors",cache:"no-cache",headers:o})).json()}async function Jc(e,t={},r={}){let o=e;return Object.keys(t).length>0&&(o=`${o}?${new URLSearchParams(t).toString()}`),await Do(o,{...r,method:"GET"})}async function Qc(e,t={},r={}){return await Do(e,{...r,method:"POST",body:JSON.stringify(t)})}async function rg(e,t={},r=[],o={}){const s=new FormData;for(const a in t)s.append(a,t[a]);for(const a of r)s.append("files",a);return await Do(e,{...o,method:"POST",body:s})}async function og(e,t){var o,s;return await(((o=t.webhookConfig)==null?void 0:o.method)==="POST"?Qc:Jc)(`${t.webhookUrl}`,{action:"loadPreviousSession",[t.chatSessionKey]:e,...t.metadata?{metadata:t.metadata}:{}},{headers:(s=t.webhookConfig)==null?void 0:s.headers})}async function ag(e,t,r,o){var a,i,c;return t.length>0?await rg(`${o.webhookUrl}`,{action:"sendMessage",[o.chatSessionKey]:r,[o.chatInputKey]:e,...o.metadata?{metadata:o.metadata}:{}},t,{headers:(a=o.webhookConfig)==null?void 0:a.headers}):await(((i=o.webhookConfig)==null?void 0:i.method)==="POST"?Qc:Jc)(`${o.webhookUrl}`,{action:"sendMessage",[o.chatSessionKey]:r,[o.chatInputKey]:e,...o.metadata?{metadata:o.metadata}:{}},{headers:(c=o.webhookConfig)==null?void 0:c.headers})}function sg(){const e=new Map;function t(s,a){const i=e.get(s);i&&i.splice(i.indexOf(a)>>>0,1)}function r(s,a){let i=e.get(s);return i?i.push(a):i=[a],e.set(s,i),()=>t(s,a)}function o(s,a){const i=e.get(s);i&&i.slice().forEach(async c=>{await c(a)})}return{on:r,off:t,emit:o}}function ig(e){if(!document.querySelector(e)){const r=document.createElement("div");e.startsWith("#")&&(r.id=e.replace("#","")),e.startsWith(".")&&r.classList.add(e.replace(".","")),document.body.appendChild(r)}}const He=sg(),cg={install(e,t){e.provide(Xc,t);const r=n.ref([]),o=n.ref(null),s=n.ref(!1),a=n.computed(()=>(t.initialMessages??[]).map(d=>({id:Yn(),text:d,sender:"bot"})));async function i(d,u=[]){const g={id:Yn(),text:d,sender:"user",files:u};r.value.push(g),s.value=!0,n.nextTick(()=>{He.emit("scrollToBottom")});const p=await ag(d,u,o.value,t);let _=p.output??p.text??"";if(_===""&&Object.keys(p).length>0)try{_=JSON.stringify(p,null,2)}catch{}const m={id:Yn(),text:_,sender:"bot"};r.value.push(m),s.value=!1,n.nextTick(()=>{He.emit("scrollToBottom")})}async function c(){if(!t.loadPreviousSession)return;const d=localStorage.getItem(Wc)??Yn(),u=await og(d,t);return r.value=((u==null?void 0:u.data)||[]).map((g,p)=>({id:`${p}`,text:g.kwargs.content,sender:g.id.includes("HumanMessage")?"user":"bot"})),r.value.length&&(o.value=d),d}async function l(){o.value=Yn(),localStorage.setItem(Wc,o.value)}const f={initialMessages:a,messages:r,currentSessionId:o,waitingForResponse:s,loadPreviousSession:c,startNewSession:l,sendMessage:i};e.provide(Zc,f),e.config.globalProperties.$chat=f}};var Br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lg(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),r}var qo,el;function ug(){if(el)return qo;el=1;function e(v){return v instanceof Map?v.clear=v.delete=v.set=function(){throw new Error("map is read-only")}:v instanceof Set&&(v.add=v.clear=v.delete=function(){throw new Error("set is read-only")}),Object.freeze(v),Object.getOwnPropertyNames(v).forEach(A=>{const M=v[A],W=typeof M;(W==="object"||W==="function")&&!Object.isFrozen(M)&&e(M)}),v}class t{constructor(A){A.data===void 0&&(A.data={}),this.data=A.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(v,...A){const M=Object.create(null);for(const W in v)M[W]=v[W];return A.forEach(function(W){for(const se in W)M[se]=W[se]}),M}const s="</span>",a=v=>!!v.scope,i=(v,{prefix:A})=>{if(v.startsWith("language:"))return v.replace("language:","language-");if(v.includes(".")){const M=v.split(".");return[`${A}${M.shift()}`,...M.map((W,se)=>`${W}${"_".repeat(se+1)}`)].join(" ")}return`${A}${v}`};class c{constructor(A,M){this.buffer="",this.classPrefix=M.classPrefix,A.walk(this)}addText(A){this.buffer+=r(A)}openNode(A){if(!a(A))return;const M=i(A.scope,{prefix:this.classPrefix});this.span(M)}closeNode(A){a(A)&&(this.buffer+=s)}value(){return this.buffer}span(A){this.buffer+=`<span class="${A}">`}}const l=(v={})=>{const A={children:[]};return Object.assign(A,v),A};class f{constructor(){this.rootNode=l(),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 M=l({scope:A});this.add(M),this.stack.push(M)}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,M){return typeof M=="string"?A.addText(M):M.children&&(A.openNode(M),M.children.forEach(W=>this._walk(A,W)),A.closeNode(M)),A}static _collapse(A){typeof A!="string"&&A.children&&(A.children.every(M=>typeof M=="string")?A.children=[A.children.join("")]:A.children.forEach(M=>{f._collapse(M)}))}}class d extends f{constructor(A){super(),this.options=A}addText(A){A!==""&&this.add(A)}startScope(A){this.openNode(A)}endScope(){this.closeNode()}__addSublanguage(A,M){const W=A.root;M&&(W.scope=`language:${M}`),this.add(W)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(v){return v?typeof v=="string"?v:v.source:null}function g(v){return m("(?=",v,")")}function p(v){return m("(?:",v,")*")}function _(v){return m("(?:",v,")?")}function m(...v){return v.map(M=>u(M)).join("")}function b(v){const A=v[v.length-1];return typeof A=="object"&&A.constructor===Object?(v.splice(v.length-1,1),A):{}}function h(...v){return"("+(b(v).capture?"":"?:")+v.map(W=>u(W)).join("|")+")"}function y(v){return new RegExp(v.toString()+"|").exec("").length-1}function w(v,A){const M=v&&v.exec(A);return M&&M.index===0}const k=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function E(v,{joinWith:A}){let M=0;return v.map(W=>{M+=1;const se=M;let ue=u(W),U="";for(;ue.length>0;){const j=k.exec(ue);if(!j){U+=ue;break}U+=ue.substring(0,j.index),ue=ue.substring(j.index+j[0].length),j[0][0]==="\\"&&j[1]?U+="\\"+String(Number(j[1])+se):(U+=j[0],j[0]==="("&&M++)}return U}).map(W=>`(${W})`).join(A)}const C=/\b\B/,x="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",N="\\b\\d+(\\.\\d+)?",B="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$="\\b(0b[01]+)",L="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",G=(v={})=>{const A=/^#![ ]*\//;return v.binary&&(v.begin=m(A,/.*\b/,v.binary,/\b.*/)),o({scope:"meta",begin:A,end:/$/,relevance:0,"on:begin":(M,W)=>{M.index!==0&&W.ignoreMatch()}},v)},I={begin:"\\\\[\\s\\S]",relevance:0},D={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[I]},R={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[I]},O={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/},z=function(v,A,M={}){const W=o({scope:"comment",begin:v,end:A,contains:[]},M);W.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 se=h("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 W.contains.push({begin:m(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),W},q=z("//","$"),P=z("/\\*","\\*/"),ee=z("#","$"),Y={scope:"number",begin:N,relevance:0},de={scope:"number",begin:B,relevance:0},_e={scope:"number",begin:$,relevance:0},we={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[I,{begin:/\[/,end:/\]/,relevance:0,contains:[I]}]},$e={scope:"title",begin:x,relevance:0},je={scope:"title",begin:S,relevance:0},xe={begin:"\\.\\s*"+S,relevance:0};var K=Object.freeze({__proto__:null,APOS_STRING_MODE:D,BACKSLASH_ESCAPE:I,BINARY_NUMBER_MODE:_e,BINARY_NUMBER_RE:$,COMMENT:z,C_BLOCK_COMMENT_MODE:P,C_LINE_COMMENT_MODE:q,C_NUMBER_MODE:de,C_NUMBER_RE:B,END_SAME_AS_BEGIN:function(v){return Object.assign(v,{"on:begin":(A,M)=>{M.data._beginMatch=A[1]},"on:end":(A,M)=>{M.data._beginMatch!==A[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:ee,IDENT_RE:x,MATCH_NOTHING_RE:C,METHOD_GUARD:xe,NUMBER_MODE:Y,NUMBER_RE:N,PHRASAL_WORDS_MODE:O,QUOTE_STRING_MODE:R,REGEXP_MODE:we,RE_STARTERS_RE:L,SHEBANG:G,TITLE_MODE:$e,UNDERSCORE_IDENT_RE:S,UNDERSCORE_TITLE_MODE:je});function ae(v,A){v.input[v.index-1]==="."&&A.ignoreMatch()}function Ce(v,A){v.className!==void 0&&(v.scope=v.className,delete v.className)}function Re(v,A){A&&v.beginKeywords&&(v.begin="\\b("+v.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",v.__beforeBegin=ae,v.keywords=v.keywords||v.beginKeywords,delete v.beginKeywords,v.relevance===void 0&&(v.relevance=0))}function Xe(v,A){Array.isArray(v.illegal)&&(v.illegal=h(...v.illegal))}function kt(v,A){if(v.match){if(v.begin||v.end)throw new Error("begin & end are not supported with match");v.begin=v.match,delete v.match}}function et(v,A){v.relevance===void 0&&(v.relevance=1)}const Rt=(v,A)=>{if(!v.beforeMatch)return;if(v.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},v);Object.keys(v).forEach(W=>{delete v[W]}),v.keywords=M.keywords,v.begin=m(M.beforeMatch,g(M.begin)),v.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},v.relevance=0,delete M.beforeMatch},tt=["of","and","for","in","not","or","if","then","parent","list","value"],vt="keyword";function De(v,A,M=vt){const W=Object.create(null);return typeof v=="string"?se(M,v.split(" ")):Array.isArray(v)?se(M,v):Object.keys(v).forEach(function(ue){Object.assign(W,De(v[ue],A,ue))}),W;function se(ue,U){A&&(U=U.map(j=>j.toLowerCase())),U.forEach(function(j){const Q=j.split("|");W[Q[0]]=[ue,dt(Q[0],Q[1])]})}}function dt(v,A){return A?Number(A):nt(v)?0:1}function nt(v){return tt.includes(v.toLowerCase())}const Ct={},Ne=v=>{console.error(v)},F=(v,...A)=>{console.log(`WARN: ${v}`,...A)},J=(v,A)=>{Ct[`${v}/${A}`]||(console.log(`Deprecated as of ${v}. ${A}`),Ct[`${v}/${A}`]=!0)},me=new Error;function Se(v,A,{key:M}){let W=0;const se=v[M],ue={},U={};for(let j=1;j<=A.length;j++)U[j+W]=se[j],ue[j+W]=!0,W+=y(A[j-1]);v[M]=U,v[M]._emit=ue,v[M]._multi=!0}function Et(v){if(Array.isArray(v.begin)){if(v.skip||v.excludeBegin||v.returnBegin)throw Ne("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof v.beginScope!="object"||v.beginScope===null)throw Ne("beginScope must be object"),me;Se(v,v.begin,{key:"beginScope"}),v.begin=E(v.begin,{joinWith:""})}}function wn(v){if(Array.isArray(v.end)){if(v.skip||v.excludeEnd||v.returnEnd)throw Ne("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof v.endScope!="object"||v.endScope===null)throw Ne("endScope must be object"),me;Se(v,v.end,{key:"endScope"}),v.end=E(v.end,{joinWith:""})}}function kn(v){v.scope&&typeof v.scope=="object"&&v.scope!==null&&(v.beginScope=v.scope,delete v.scope)}function Gn(v){kn(v),typeof v.beginScope=="string"&&(v.beginScope={_wrap:v.beginScope}),typeof v.endScope=="string"&&(v.endScope={_wrap:v.endScope}),Et(v),wn(v)}function Sr(v){function A(U,j){return new RegExp(u(U),"m"+(v.case_insensitive?"i":"")+(v.unicodeRegex?"u":"")+(j?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(j,Q){Q.position=this.position++,this.matchIndexes[this.matchAt]=Q,this.regexes.push([Q,j]),this.matchAt+=y(j)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const j=this.regexes.map(Q=>Q[1]);this.matcherRe=A(E(j,{joinWith:"|"}),!0),this.lastIndex=0}exec(j){this.matcherRe.lastIndex=this.lastIndex;const Q=this.matcherRe.exec(j);if(!Q)return null;const Ae=Q.findIndex((rt,Vc)=>Vc>0&&rt!==void 0),fe=this.matchIndexes[Ae];return Q.splice(0,Ae),Object.assign(Q,fe)}}class W{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(j){if(this.multiRegexes[j])return this.multiRegexes[j];const Q=new M;return this.rules.slice(j).forEach(([Ae,fe])=>Q.addRule(Ae,fe)),Q.compile(),this.multiRegexes[j]=Q,Q}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(j,Q){this.rules.push([j,Q]),Q.type==="begin"&&this.count++}exec(j){const Q=this.getMatcher(this.regexIndex);Q.lastIndex=this.lastIndex;let Ae=Q.exec(j);if(this.resumingScanAtSamePosition()&&!(Ae&&Ae.index===this.lastIndex)){const fe=this.getMatcher(0);fe.lastIndex=this.lastIndex+1,Ae=fe.exec(j)}return Ae&&(this.regexIndex+=Ae.position+1,this.regexIndex===this.count&&this.considerAll()),Ae}}function se(U){const j=new W;return U.contains.forEach(Q=>j.addRule(Q.begin,{rule:Q,type:"begin"})),U.terminatorEnd&&j.addRule(U.terminatorEnd,{type:"end"}),U.illegal&&j.addRule(U.illegal,{type:"illegal"}),j}function ue(U,j){const Q=U;if(U.isCompiled)return Q;[Ce,kt,Gn,Rt].forEach(fe=>fe(U,j)),v.compilerExtensions.forEach(fe=>fe(U,j)),U.__beforeBegin=null,[Re,Xe,et].forEach(fe=>fe(U,j)),U.isCompiled=!0;let Ae=null;return typeof U.keywords=="object"&&U.keywords.$pattern&&(U.keywords=Object.assign({},U.keywords),Ae=U.keywords.$pattern,delete U.keywords.$pattern),Ae=Ae||/\w+/,U.keywords&&(U.keywords=De(U.keywords,v.case_insensitive)),Q.keywordPatternRe=A(Ae,!0),j&&(U.begin||(U.begin=/\B|\b/),Q.beginRe=A(Q.begin),!U.end&&!U.endsWithParent&&(U.end=/\B|\b/),U.end&&(Q.endRe=A(Q.end)),Q.terminatorEnd=u(Q.end)||"",U.endsWithParent&&j.terminatorEnd&&(Q.terminatorEnd+=(U.end?"|":"")+j.terminatorEnd)),U.illegal&&(Q.illegalRe=A(U.illegal)),U.contains||(U.contains=[]),U.contains=[].concat(...U.contains.map(function(fe){return Kn(fe==="self"?U:fe)})),U.contains.forEach(function(fe){ue(fe,Q)}),U.starts&&ue(U.starts,j),Q.matcher=se(Q),Q}if(v.compilerExtensions||(v.compilerExtensions=[]),v.contains&&v.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return v.classNameAliases=o(v.classNameAliases||{}),ue(v)}function Kt(v){return v?v.endsWithParent||Kt(v.starts):!1}function Kn(v){return v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(function(A){return o(v,{variants:null},A)})),v.cachedVariants?v.cachedVariants:Kt(v)?o(v,{starts:v.starts?o(v.starts):null}):Object.isFrozen(v)?o(v):v}var Ar="11.9.0";class vn extends Error{constructor(A,M){super(A),this.name="HTMLInjectionError",this.html=M}}const an=r,Wn=o,Cn=Symbol("nomatch"),Tr=7,Zn=function(v){const A=Object.create(null),M=Object.create(null),W=[];let se=!0;const ue="Could not find the language '{}', did you forget to load/include a language module?",U={disableAutodetect:!0,name:"Plain text",contains:[]};let j={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Q(V){return j.noHighlightRe.test(V)}function Ae(V){let X=V.className+" ";X+=V.parentNode?V.parentNode.className:"";const ie=j.languageDetectRe.exec(X);if(ie){const be=sn(ie[1]);return be||(F(ue.replace("{}",ie[1])),F("Falling back to no-highlight mode for this block.",V)),be?ie[1]:"no-highlight"}return X.split(/\s+/).find(be=>Q(be)||sn(be))}function fe(V,X,ie){let be="",Te="";typeof X=="object"?(be=V,ie=X.ignoreIllegals,Te=X.language):(J("10.7.0","highlight(lang, code, ...args) has been deprecated."),J("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),Te=V,be=X),ie===void 0&&(ie=!0);const xt={code:be,language:Te};Ro("before:highlight",xt);const cn=xt.result?xt.result:rt(xt.language,xt.code,ie);return cn.code=xt.code,Ro("after:highlight",cn),cn}function rt(V,X,ie,be){const Te=Object.create(null);function xt(H,Z){return H.keywords[Z]}function cn(){if(!te.keywords){Oe.addText(ke);return}let H=0;te.keywordPatternRe.lastIndex=0;let Z=te.keywordPatternRe.exec(ke),re="";for(;Z;){re+=ke.substring(H,Z.index);const ge=Mt.case_insensitive?Z[0].toLowerCase():Z[0],qe=xt(te,ge);if(qe){const[Wt,_$]=qe;if(Oe.addText(re),re="",Te[ge]=(Te[ge]||0)+1,Te[ge]<=Tr&&(zo+=_$),Wt.startsWith("_"))re+=Z[0];else{const b$=Mt.classNameAliases[Wt]||Wt;Ot(Z[0],b$)}}else re+=Z[0];H=te.keywordPatternRe.lastIndex,Z=te.keywordPatternRe.exec(ke)}re+=ke.substring(H),Oe.addText(re)}function Oo(){if(ke==="")return;let H=null;if(typeof te.subLanguage=="string"){if(!A[te.subLanguage]){Oe.addText(ke);return}H=rt(te.subLanguage,ke,!0,Xm[te.subLanguage]),Xm[te.subLanguage]=H._top}else H=jc(ke,te.subLanguage.length?te.subLanguage:null);te.relevance>0&&(zo+=H.relevance),Oe.__addSublanguage(H._emitter,H.language)}function ot(){te.subLanguage!=null?Oo():cn(),ke=""}function Ot(H,Z){H!==""&&(Oe.startScope(Z),Oe.addText(H),Oe.endScope())}function Gm(H,Z){let re=1;const ge=Z.length-1;for(;re<=ge;){if(!H._emit[re]){re++;continue}const qe=Mt.classNameAliases[H[re]]||H[re],Wt=Z[re];qe?Ot(Wt,qe):(ke=Wt,cn(),ke=""),re++}}function Km(H,Z){return H.scope&&typeof H.scope=="string"&&Oe.openNode(Mt.classNameAliases[H.scope]||H.scope),H.beginScope&&(H.beginScope._wrap?(Ot(ke,Mt.classNameAliases[H.beginScope._wrap]||H.beginScope._wrap),ke=""):H.beginScope._multi&&(Gm(H.beginScope,Z),ke="")),te=Object.create(H,{parent:{value:te}}),te}function Wm(H,Z,re){let ge=w(H.endRe,re);if(ge){if(H["on:end"]){const qe=new t(H);H["on:end"](Z,qe),qe.isMatchIgnored&&(ge=!1)}if(ge){for(;H.endsParent&&H.parent;)H=H.parent;return H}}if(H.endsWithParent)return Wm(H.parent,Z,re)}function d$(H){return te.matcher.regexIndex===0?(ke+=H[0],1):(Kc=!0,0)}function p$(H){const Z=H[0],re=H.rule,ge=new t(re),qe=[re.__beforeBegin,re["on:begin"]];for(const Wt of qe)if(Wt&&(Wt(H,ge),ge.isMatchIgnored))return d$(Z);return re.skip?ke+=Z:(re.excludeBegin&&(ke+=Z),ot(),!re.returnBegin&&!re.excludeBegin&&(ke=Z)),Km(re,H),re.returnBegin?0:Z.length}function h$(H){const Z=H[0],re=X.substring(H.index),ge=Wm(te,H,re);if(!ge)return Cn;const qe=te;te.endScope&&te.endScope._wrap?(ot(),Ot(Z,te.endScope._wrap)):te.endScope&&te.endScope._multi?(ot(),Gm(te.endScope,H)):qe.skip?ke+=Z:(qe.returnEnd||qe.excludeEnd||(ke+=Z),ot(),qe.excludeEnd&&(ke=Z));do te.scope&&Oe.closeNode(),!te.skip&&!te.subLanguage&&(zo+=te.relevance),te=te.parent;while(te!==ge.parent);return ge.starts&&Km(ge.starts,H),qe.returnEnd?0:Z.length}function m$(){const H=[];for(let Z=te;Z!==Mt;Z=Z.parent)Z.scope&&H.unshift(Z.scope);H.forEach(Z=>Oe.openNode(Z))}let Mo={};function Zm(H,Z){const re=Z&&Z[0];if(ke+=H,re==null)return ot(),0;if(Mo.type==="begin"&&Z.type==="end"&&Mo.index===Z.index&&re===""){if(ke+=X.slice(Z.index,Z.index+1),!se){const ge=new Error(`0 width match regex (${V})`);throw ge.languageName=V,ge.badRule=Mo.rule,ge}return 1}if(Mo=Z,Z.type==="begin")return p$(Z);if(Z.type==="illegal"&&!ie){const ge=new Error('Illegal lexeme "'+re+'" for mode "'+(te.scope||"<unnamed>")+'"');throw ge.mode=te,ge}else if(Z.type==="end"){const ge=h$(Z);if(ge!==Cn)return ge}if(Z.type==="illegal"&&re==="")return 1;if(Gc>1e5&&Gc>Z.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ke+=re,re.length}const Mt=sn(V);if(!Mt)throw Ne(ue.replace("{}",V)),new Error('Unknown language: "'+V+'"');const g$=Sr(Mt);let Uc="",te=be||g$;const Xm={},Oe=new j.__emitter(j);m$();let ke="",zo=0,En=0,Gc=0,Kc=!1;try{if(Mt.__emitTokens)Mt.__emitTokens(X,Oe);else{for(te.matcher.considerAll();;){Gc++,Kc?Kc=!1:te.matcher.considerAll(),te.matcher.lastIndex=En;const H=te.matcher.exec(X);if(!H)break;const Z=X.substring(En,H.index),re=Zm(Z,H);En=H.index+re}Zm(X.substring(En))}return Oe.finalize(),Uc=Oe.toHTML(),{language:V,value:Uc,relevance:zo,illegal:!1,_emitter:Oe,_top:te}}catch(H){if(H.message&&H.message.includes("Illegal"))return{language:V,value:an(X),illegal:!0,relevance:0,_illegalBy:{message:H.message,index:En,context:X.slice(En-100,En+100),mode:H.mode,resultSoFar:Uc},_emitter:Oe};if(se)return{language:V,value:an(X),illegal:!1,relevance:0,errorRaised:H,_emitter:Oe,_top:te};throw H}}function Vc(V){const X={value:an(V),illegal:!1,relevance:0,_top:U,_emitter:new j.__emitter(j)};return X._emitter.addText(V),X}function jc(V,X){X=X||j.languages||Object.keys(A);const ie=Vc(V),be=X.filter(sn).filter(Um).map(ot=>rt(ot,V,!1));be.unshift(ie);const Te=be.sort((ot,Ot)=>{if(ot.relevance!==Ot.relevance)return Ot.relevance-ot.relevance;if(ot.language&&Ot.language){if(sn(ot.language).supersetOf===Ot.language)return 1;if(sn(Ot.language).supersetOf===ot.language)return-1}return 0}),[xt,cn]=Te,Oo=xt;return Oo.secondBest=cn,Oo}function e$(V,X,ie){const be=X&&M[X]||ie;V.classList.add("hljs"),V.classList.add(`language-${be}`)}function Hc(V){let X=null;const ie=Ae(V);if(Q(ie))return;if(Ro("before:highlightElement",{el:V,language:ie}),V.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",V);return}if(V.children.length>0&&(j.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(V)),j.throwUnescapedHTML))throw new vn("One of your code blocks includes unescaped HTML.",V.innerHTML);X=V;const be=X.textContent,Te=ie?fe(be,{language:ie,ignoreIllegals:!0}):jc(be);V.innerHTML=Te.value,V.dataset.highlighted="yes",e$(V,ie,Te.language),V.result={language:Te.language,re:Te.relevance,relevance:Te.relevance},Te.secondBest&&(V.secondBest={language:Te.secondBest.language,relevance:Te.secondBest.relevance}),Ro("after:highlightElement",{el:V,result:Te,text:be})}function t$(V){j=Wn(j,V)}const n$=()=>{$o(),J("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function r$(){$o(),J("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let jm=!1;function $o(){if(document.readyState==="loading"){jm=!0;return}document.querySelectorAll(j.cssSelector).forEach(Hc)}function o$(){jm&&$o()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",o$,!1);function a$(V,X){let ie=null;try{ie=X(v)}catch(be){if(Ne("Language definition for '{}' could not be registered.".replace("{}",V)),se)Ne(be);else throw be;ie=U}ie.name||(ie.name=V),A[V]=ie,ie.rawDefinition=X.bind(null,v),ie.aliases&&Hm(ie.aliases,{languageName:V})}function s$(V){delete A[V];for(const X of Object.keys(M))M[X]===V&&delete M[X]}function i$(){return Object.keys(A)}function sn(V){return V=(V||"").toLowerCase(),A[V]||A[M[V]]}function Hm(V,{languageName:X}){typeof V=="string"&&(V=[V]),V.forEach(ie=>{M[ie.toLowerCase()]=X})}function Um(V){const X=sn(V);return X&&!X.disableAutodetect}function c$(V){V["before:highlightBlock"]&&!V["before:highlightElement"]&&(V["before:highlightElement"]=X=>{V["before:highlightBlock"](Object.assign({block:X.el},X))}),V["after:highlightBlock"]&&!V["after:highlightElement"]&&(V["after:highlightElement"]=X=>{V["after:highlightBlock"](Object.assign({block:X.el},X))})}function l$(V){c$(V),W.push(V)}function u$(V){const X=W.indexOf(V);X!==-1&&W.splice(X,1)}function Ro(V,X){const ie=V;W.forEach(function(be){be[ie]&&be[ie](X)})}function f$(V){return J("10.7.0","highlightBlock will be removed entirely in v12.0"),J("10.7.0","Please use highlightElement now."),Hc(V)}Object.assign(v,{highlight:fe,highlightAuto:jc,highlightAll:$o,highlightElement:Hc,highlightBlock:f$,configure:t$,initHighlighting:n$,initHighlightingOnLoad:r$,registerLanguage:a$,unregisterLanguage:s$,listLanguages:i$,getLanguage:sn,registerAliases:Hm,autoDetection:Um,inherit:Wn,addPlugin:l$,removePlugin:u$}),v.debugMode=function(){se=!1},v.safeMode=function(){se=!0},v.versionString=Ar,v.regex={concat:m,lookahead:g,either:h,optional:_,anyNumberOfTimes:p};for(const V in K)typeof K[V]=="object"&&e(K[V]);return Object.assign(v,K),v},T=Zn({});return T.newInstance=()=>Zn({}),qo=T,T.HighlightJS=T,T.default=T,qo}var fg=ug();const zt=xn(fg),tl="[A-Za-z$_][0-9A-Za-z$_]*",dg=["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"],pg=["true","false","null","undefined","NaN","Infinity"],nl=["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"],rl=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ol=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],hg=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],mg=[].concat(ol,nl,rl);function al(e){const t=e.regex,r=(z,{after:q})=>{const P="</"+z[0].slice(1);return z.input.indexOf(P,q)!==-1},o=tl,s={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,q)=>{const P=z[0].length+z.index,ee=z.input[P];if(ee==="<"||ee===","){q.ignoreMatch();return}ee===">"&&(r(z,{after:P})||q.ignoreMatch());let Y;const de=z.input.substring(P);if(Y=de.match(/^\s*=/)){q.ignoreMatch();return}if((Y=de.match(/^\s+extends\s+/))&&Y.index===0){q.ignoreMatch();return}}},c={$pattern:tl,keyword:dg,literal:pg,built_in:mg,"variable.language":hg},l="[0-9](_?[0-9])*",f=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${f})|\\.)?|(${f}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${f})\\b|\\.)?|(${f})\\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},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,g]},y={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:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,_,m,b,{match:/\$\d+/},u];g.contains=w.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(w)});const k=[].concat(y,g.contains),E=k.concat([{begin:/\(/,end:/\)/,keywords:c,contains:["self"].concat(k)}]),C={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:E},x={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,t.concat(o,"(",t.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},S={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:{_:[...nl,...rl]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(z){return t.concat("(?!",z.join("|"),")")}const G={match:t.concat(/\b/,L([...ol,"super","import"]),o,t.lookahead(/\(/)),className:"title.function",relevance:0},I={begin:t.concat(/\./,t.lookahead(t.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",O={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,_,m,b,y,{match:/\$\d+/},u,S,{className:"attr",begin:o+t.lookahead(":"),relevance:0},O,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,e.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:a},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,e.inherit(e.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},G,$,x,D,{match:/\$[(.]/}]}}function sl(e){const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=e.inherit(a,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{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:[a,l,c,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,i,l,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:f}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const gg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function _g(e,t){return n.openBlock(),n.createElementBlock("svg",gg,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)]))}const bg={name:"mdi-close",render:_g},at=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},yg={},wg={class:"chat-button"};function kg(e,t){return n.openBlock(),n.createElementBlock("button",wg,[n.renderSlot(e.$slots,"default")])}const vg=at(yg,[["render",kg]]);function Po(){return n.inject(Zc)}function Jn(){return{options:n.inject(Xc)}}function Ir(){const{options:e}=Jn(),t=(e==null?void 0:e.defaultLanguage)??"en";function r(s){var i,c;const a=(c=(i=e==null?void 0:e.i18n)==null?void 0:i[t])==null?void 0:c[s];return n.isRef(a)?a.value:a??s}function o(s){var a,i;return!!((i=(a=e==null?void 0:e.i18n)==null?void 0:a[t])!=null&&i[s])}return{t:r,te:o}}const Cg={class:"chat-get-started"},Eg=n.defineComponent({__name:"GetStarted",setup(e){const{t}=Ir();return(r,o)=>(n.openBlock(),n.createElementBlock("div",Cg,[n.createVNode(vg,{onClick:o[0]||(o[0]=s=>r.$emit("click:button"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(t)("getStarted")),1)]),_:1})]))}}),xg={},Sg={class:"chat-powered-by"};function Ag(e,t){return n.openBlock(),n.createElementBlock("div",Sg,t[0]||(t[0]=[n.createTextVNode(" Powered by "),n.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1)]))}const Tg=at(xg,[["render",Ag]]),Ng={class:"chat-get-started-footer"},Bg={key:0},Ig=n.defineComponent({__name:"GetStartedFooter",setup(e){const{t,te:r}=Ir();return(o,s)=>(n.openBlock(),n.createElementBlock("div",Ng,[n.unref(r)("footer")?(n.openBlock(),n.createElementBlock("div",Bg,n.toDisplayString(n.unref(t)("footer")),1)):n.createCommentVNode("",!0),n.createVNode(Tg)]))}});function $g(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Rg(){const e=new Set,t=s=>{e.delete(s)};return{on:s=>{e.add(s);const a=()=>t(s);return $g(a),{off:a}},off:t,trigger:(...s)=>Promise.all(Array.from(e).map(a=>a(...s)))}}const Og=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mg=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zg=Og?window.document:void 0,Lg={multiple:!0,accept:"*",reset:!1,directory:!1};function Dg(e={}){const{document:t=zg}=e,r=n.ref(null),{on:o,trigger:s}=Rg();let a;t&&(a=t.createElement("input"),a.type="file",a.onchange=l=>{const f=l.target;r.value=f.files,s(r.value)});const i=()=>{r.value=null,a&&a.value&&(a.value="",s(null))},c=l=>{if(!a)return;const f={...Lg,...e,...l};a.multiple=f.multiple,a.accept=f.accept,a.webkitdirectory=f.directory,Mg(f,"capture")&&(a.capture=f.capture),f.reset&&i(),a.click()};return{files:n.readonly(r),open:c,reset:i,onChange:o}}const qg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Pg(e,t){return n.openBlock(),n.createElementBlock("svg",qg,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M16.5 6v11.5a4 4 0 0 1-4 4a4 4 0 0 1-4-4V5A2.5 2.5 0 0 1 11 2.5A2.5 2.5 0 0 1 13.5 5v10.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1V6H10v9.5a2.5 2.5 0 0 0 2.5 2.5a2.5 2.5 0 0 0 2.5-2.5V5a4 4 0 0 0-4-4a4 4 0 0 0-4 4v12.5a5.5 5.5 0 0 0 5.5 5.5a5.5 5.5 0 0 0 5.5-5.5V6z"},null,-1)]))}const Fg={name:"mdi-paperclip",render:Pg},Vg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function jg(e,t){return n.openBlock(),n.createElementBlock("svg",Vg,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2z"},null,-1)]))}const Hg={name:"mdi-send",render:jg},Ug={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Gg(e,t){return n.openBlock(),n.createElementBlock("svg",Ug,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M20 6.91L17.09 4L12 9.09L6.91 4L4 6.91L9.09 12L4 17.09L6.91 20L12 14.91L17.09 20L20 17.09L14.91 12z"},null,-1)]))}const Kg={name:"mdi-closeThick",render:Gg},Wg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Zg(e,t){return n.openBlock(),n.createElementBlock("svg",Wg,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m0 18h12v-8l-4 4l-2-2zM8 9a2 2 0 0 0-2 2a2 2 0 0 0 2 2a2 2 0 0 0 2-2a2 2 0 0 0-2-2"},null,-1)]))}const Xg={name:"mdi-fileImage",render:Zg},Yg={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Jg(e,t){return n.openBlock(),n.createElementBlock("svg",Yg,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 11h-2v5a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2c.4 0 .7.1 1 .3V11h3zm0-4V3.5L18.5 9z"},null,-1)]))}const Qg={name:"mdi-fileMusic",render:Jg},e_={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function t_(e,t){return n.openBlock(),n.createElementBlock("svg",e_,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m9 16v-2H6v2zm3-4v-2H6v2z"},null,-1)]))}const il={name:"mdi-fileText",render:t_},n_={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function r_(e,t){return n.openBlock(),n.createElementBlock("svg",n_,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m11 17v-6l-3 2.2V13H7v6h7v-2.2z"},null,-1)]))}const o_={name:"mdi-fileVideo",render:r_},a_={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function s_(e,t){return n.openBlock(),n.createElementBlock("svg",a_,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M14 3v2h3.59l-9.83 9.83l1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2z"},null,-1)]))}const i_={name:"mdi-openInNew",render:s_},c_={class:"chat-file-name"},cl=at(n.defineComponent({__name:"ChatFile",props:{file:{},isRemovable:{type:Boolean},isPreviewable:{type:Boolean}},emits:["remove"],setup(e,{emit:t}){const r=e,o=t,s={document:il,audio:Qg,image:Xg,video:o_},a=n.computed(()=>{var f;const l=(f=r.file)==null?void 0:f.type.split("/")[0];return s[l]||il});function i(){r.isPreviewable&&window.open(URL.createObjectURL(r.file))}function c(){o("remove",r.file)}return(l,f)=>(n.openBlock(),n.createElementBlock("div",{class:"chat-file",onClick:i},[n.createVNode(n.unref(a)),n.createElementVNode("p",c_,n.toDisplayString(l.file.name),1),l.isRemovable?(n.openBlock(),n.createElementBlock("span",{key:0,class:"chat-file-delete",onClick:n.withModifiers(c,["stop"])},[n.createVNode(n.unref(Kg))])):l.isPreviewable?(n.openBlock(),n.createBlock(n.unref(i_),{key:1,class:"chat-file-preview"})):n.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-e0d57af7"]]),l_={class:"chat-inputs"},u_={key:0,class:"chat-input-left-panel"},f_=["disabled","placeholder"],d_={class:"chat-inputs-controls"},p_=["disabled"],h_=["disabled"],m_={key:0,class:"chat-files"},g_=at(n.defineComponent({__name:"Input",props:{placeholder:{default:"inputPlaceholder"}},emits:["arrowKeyDown"],setup(e,{emit:t}){const r=e,{t:o}=Ir(),s=t,{options:a}=Jn(),i=Po(),{waitingForResponse:c}=i,l=n.ref(null),f=n.ref(null),d=n.ref(""),u=n.ref(!1),g=n.ref(null),p=n.computed(()=>{var D;return d.value===""||n.unref(c)||((D=a.disabled)==null?void 0:D.value)===!0}),_=n.computed(()=>{var D;return((D=a.disabled)==null?void 0:D.value)===!0}),m=n.computed(()=>{var D;return b.value&&n.unref(c)&&!((D=a.disabled)!=null&&D.value)}),b=n.computed(()=>n.unref(a.allowFileUploads)===!0),h=n.computed(()=>n.unref(a.allowedFilesMimeTypes)),y=n.computed(()=>({"--controls-count":b.value?2:1})),{open:w,reset:k,onChange:E}=Dg({multiple:!0,reset:!1});E(D=>{if(!D)return;const R=new DataTransfer;if(l.value)for(let O=0;O<l.value.length;O++)R.items.add(l.value[O]);for(let O=0;O<D.length;O++)R.items.add(D[O]);l.value=R.files}),n.onMounted(()=>{He.on("focusInput",x),He.on("blurInput",C),He.on("setInputValue",S),f.value&&(g.value=new ResizeObserver(D=>{for(const R of D)R.target===f.value&&I()}),g.value.observe(f.value))}),n.onUnmounted(()=>{He.off("focusInput",x),He.off("blurInput",C),He.off("setInputValue",S),g.value&&(g.value.disconnect(),g.value=null)});function C(){f.value&&f.value.blur()}function x(){f.value&&f.value.focus()}function S(D){d.value=D,x()}async function N(D){if(D.preventDefault(),p.value)return;const R=d.value;d.value="",u.value=!0,await i.sendMessage(R,Array.from(l.value??[])),u.value=!1,k(),l.value=null}async function B(D){D.shiftKey||(await N(D),I())}function $(D){if(!l.value)return;const R=new DataTransfer;for(let O=0;O<l.value.length;O++){const z=l.value[O];D.name!==z.name&&R.items.add(z)}k(),l.value=R.files}function L(D){(D.key==="ArrowUp"||D.key==="ArrowDown")&&(D.preventDefault(),s("arrowKeyDown",{key:D.key,currentInputValue:d.value}))}function G(){m.value||w({accept:n.unref(h)})}function I(){const D=f.value;if(!D)return;D.style.height="var(--chat--textarea--height)";const R=Math.min(D.scrollHeight,480);D.style.height=`${R}px`}return(D,R)=>{var O;return n.openBlock(),n.createElementBlock("div",{class:"chat-input",style:n.normalizeStyle(y.value),onKeydown:n.withModifiers(L,["stop"])},[n.createElementVNode("div",l_,[D.$slots.leftPanel?(n.openBlock(),n.createElementBlock("div",u_,[n.renderSlot(D.$slots,"leftPanel",{},void 0,!0)])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("textarea",{ref_key:"chatTextArea",ref:f,"onUpdate:modelValue":R[0]||(R[0]=z=>d.value=z),"data-test-id":"chat-input",disabled:_.value,placeholder:n.unref(o)(r.placeholder),onKeydown:n.withKeys(B,["enter"]),onInput:I,onMousedown:I,onFocus:I},null,40,f_),[[n.vModelText,d.value]]),n.createElementVNode("div",d_,[b.value?(n.openBlock(),n.createElementBlock("button",{key:0,disabled:m.value,class:"chat-input-file-button","data-test-id":"chat-attach-file-button",onClick:G},[n.createVNode(n.unref(Fg),{height:"24",width:"24"})],8,p_)):n.createCommentVNode("",!0),n.createElementVNode("button",{disabled:p.value,class:"chat-input-send-button",onClick:N},[n.createVNode(n.unref(Hg),{height:"24",width:"24"})],8,h_)])]),(O=l.value)!=null&&O.length&&!u.value?(n.openBlock(),n.createElementBlock("div",m_,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(l.value,z=>(n.openBlock(),n.createBlock(cl,{key:z.name,file:z,"is-removable":!0,"is-previewable":!0,onRemove:$},null,8,["file"]))),128))])):n.createCommentVNode("",!0)],36)}}}),[["__scopeId","data-v-31e29ba2"]]),__={class:"chat-layout"},b_={key:0,class:"chat-header"},y_={key:2,class:"chat-footer"},w_=n.defineComponent({__name:"Layout",setup(e){const t=n.ref(null);function r(){const o=t.value;o&&(o.scrollTop=o.scrollHeight)}return n.onMounted(()=>{He.on("scrollToBottom",r),window.addEventListener("resize",r)}),n.onBeforeUnmount(()=>{He.off("scrollToBottom",r),window.removeEventListener("resize",r)}),(o,s)=>(n.openBlock(),n.createElementBlock("main",__,[o.$slots.header?(n.openBlock(),n.createElementBlock("div",b_,[n.renderSlot(o.$slots,"header")])):n.createCommentVNode("",!0),o.$slots.default?(n.openBlock(),n.createElementBlock("div",{key:1,ref_key:"chatBodyRef",ref:t,class:"chat-body"},[n.renderSlot(o.$slots,"default")],512)):n.createCommentVNode("",!0),o.$slots.footer?(n.openBlock(),n.createElementBlock("div",y_,[n.renderSlot(o.$slots,"footer")])):n.createCommentVNode("",!0)]))}}),k_=/(%|)\{([0-9a-zA-Z_]+)\}/g;function v_(){const e=(r,o)=>o in r;function t(r,...o){if(typeof r=="function")return r(o);const s=r;let a=o;return o.length===1&&typeof o[0]=="object"&&(a=o[0]),a!=null&&a.hasOwnProperty||(a={}),s.replace(k_,(i,c,l,f)=>{let d;return s[f-1]==="{"&&s[f+i.length]==="}"?`${l}`:(d=e(a,l)?`${a[l]}`:null,d??"")})}return t}const C_={"generic.retry":"Retry","nds.auth.roles.owner":"Owner","nds.userInfo.you":"(you)","nds.userSelect.selectUser":"Select User","nds.userSelect.noMatchingUsers":"No matching users","notice.showMore":"Show more","notice.showLess":"Show less","formInput.validator.fieldRequired":"This field is required","formInput.validator.minCharactersRequired":"Must be at least {minimum} characters","formInput.validator.maxCharactersRequired":"Must be at most {maximum} characters","formInput.validator.oneNumbersRequired":e=>`Must have at least ${e.minimum} number${e.minimum>1?"s":""}`,"formInput.validator.validEmailRequired":"Must be a valid email","formInput.validator.uppercaseCharsRequired":e=>`Must have at least ${e.minimum} uppercase character${e.minimum>1?"s":""}`,"formInput.validator.defaultPasswordRequirements":"8+ characters, at least 1 number and 1 capital letter","sticky.markdownHint":'You can style with <a href="https://docs.n8n.io/workflows/sticky-notes/" target="_blank">Markdown</a>',"tags.showMore":e=>`+${e} more`,"datatable.pageSize":"Page size","codeDiff.couldNotReplace":"Could not replace code","codeDiff.codeReplaced":"Code replaced","codeDiff.replaceMyCode":"Replace my code","codeDiff.replacing":"Replacing...","codeDiff.undo":"Undo","betaTag.beta":"beta","askAssistantButton.askAssistant":"Ask Assistant","assistantChat.builder.name":"AI Builder","assistantChat.builder.generatingFinalWorkflow":"Generating final workflow...","assistantChat.builder.configuredNodes":"Configured nodes","assistantChat.builder.thumbsUp":"Helpful","assistantChat.builder.thumbsDown":"Not helpful","assistantChat.builder.feedbackPlaceholder":"Tell us about your experience","assistantChat.builder.success":"Thank you for your feedback!","assistantChat.builder.submit":"Submit feedback","assistantChat.builder.workflowGenerated1":"Your workflow was created successfully!","assistantChat.builder.workflowGenerated2":"Fix any missing credentials before testing it.","assistantChat.builder.configuringNodes":"Configuring nodes...","assistantChat.builder.selectedNodes":"Selected workflow nodes","assistantChat.builder.selectingNodes":"Selecting nodes...","assistantChat.builder.generatedNodes":"Generated workflow nodes","assistantChat.errorParsingMarkdown":"Error parsing markdown content","assistantChat.aiAssistantLabel":"AI Assistant","assistantChat.aiAssistantName":"Assistant","assistantChat.sessionEndMessage.1":"This Assistant session has ended. To start a new session with the Assistant, click an","assistantChat.sessionEndMessage.2":"button in n8n","assistantChat.you":"You","assistantChat.quickRepliesTitle":"Quick reply 👇","assistantChat.placeholder.1":()=>"I can answer most questions about building workflows in n8n.","assistantChat.placeholder.2":"For specific tasks, you’ll see the","assistantChat.placeholder.3":"button in the UI.","assistantChat.placeholder.4":"How can I help?","assistantChat.inputPlaceholder":"Enter your response...","assistantChat.copy":"Copy","assistantChat.copied":"Copied","inlineAskAssistantButton.asked":"Asked","iconPicker.button.defaultToolTip":"Choose icon","iconPicker.tabs.icons":"Icons","iconPicker.tabs.emojis":"Emojis","selectableList.addDefault":"+ Add a","auth.changePassword.passwordsMustMatchError":"Passwords must match"},E_=v_();let ll=C_;const x_=function(e,t){return ll[e]!==void 0?E_(ll[e],...t?[t]:[]):""},Lt=(e,t,{checkForDefaultPrevented:r=!0}={})=>s=>{const a=e==null?void 0:e(s);if(r===!1||!a)return t==null?void 0:t(s)};var ul;const Me=typeof window<"u",S_=e=>typeof e=="string",fl=()=>{},dl=Me&&((ul=window==null?void 0:window.navigator)==null?void 0:ul.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function pl(e){return typeof e=="function"?e():n.unref(e)}function A_(e){return e}function Fo(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function T_(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Zt(e){var t;const r=pl(e);return(t=r==null?void 0:r.$el)!=null?t:r}const Vo=Me?window:void 0;function ln(...e){let t,r,o,s;if(S_(e[0])||Array.isArray(e[0])?([r,o,s]=e,t=Vo):[t,r,o,s]=e,!t)return fl;Array.isArray(r)||(r=[r]),Array.isArray(o)||(o=[o]);const a=[],i=()=>{a.forEach(d=>d()),a.length=0},c=(d,u,g,p)=>(d.addEventListener(u,g,p),()=>d.removeEventListener(u,g,p)),l=n.watch(()=>[Zt(t),pl(s)],([d,u])=>{i(),d&&a.push(...r.flatMap(g=>o.map(p=>c(d,g,p,u))))},{immediate:!0,flush:"post"}),f=()=>{l(),i()};return Fo(f),f}let hl=!1;function N_(e,t,r={}){const{window:o=Vo,ignore:s=[],capture:a=!0,detectIframe:i=!1}=r;if(!o)return;dl&&!hl&&(hl=!0,Array.from(o.document.body.children).forEach(g=>g.addEventListener("click",fl)));let c=!0;const l=g=>s.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(_=>_===g.target||g.composedPath().includes(_));{const _=Zt(p);return _&&(g.target===_||g.composedPath().includes(_))}}),d=[ln(o,"click",g=>{const p=Zt(e);if(!(!p||p===g.target||g.composedPath().includes(p))){if(g.detail===0&&(c=!l(g)),!c){c=!0;return}t(g)}},{passive:!0,capture:a}),ln(o,"pointerdown",g=>{const p=Zt(e);p&&(c=!g.composedPath().includes(p)&&!l(g))},{passive:!0}),i&&ln(o,"blur",g=>{var p;const _=Zt(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(_!=null&&_.contains(o.document.activeElement))&&t(g)})].filter(Boolean);return()=>d.forEach(g=>g())}function B_(e,t=!1){const r=n.ref(),o=()=>r.value=!!e();return o(),T_(o,t),r}const ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gl="__vueuse_ssr_handlers__";ml[gl]=ml[gl]||{};var _l=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,$_=Object.prototype.propertyIsEnumerable,R_=(e,t)=>{var r={};for(var o in e)I_.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&_l)for(var o of _l(e))t.indexOf(o)<0&&$_.call(e,o)&&(r[o]=e[o]);return r};function $r(e,t,r={}){const o=r,{window:s=Vo}=o,a=R_(o,["window"]);let i;const c=B_(()=>s&&"ResizeObserver"in s),l=()=>{i&&(i.disconnect(),i=void 0)},f=n.watch(()=>Zt(e),u=>{l(),c.value&&s&&u&&(i=new ResizeObserver(t),i.observe(u,a))},{immediate:!0,flush:"post"}),d=()=>{l(),f()};return Fo(d),{isSupported:c,stop:d}}var bl;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bl||(bl={}));var O_=Object.defineProperty,yl=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable,wl=(e,t,r)=>t in e?O_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L_=(e,t)=>{for(var r in t||(t={}))M_.call(t,r)&&wl(e,r,t[r]);if(yl)for(var r of yl(t))z_.call(t,r)&&wl(e,r,t[r]);return e};L_({linear:A_},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const D_=()=>Me&&/firefox/i.test(window.navigator.userAgent),jo=e=>{let t,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,t=e.touches[0].clientX):(r=e.clientY,t=e.clientX),{clientX:t,clientY:r}};/**
3
+ * @vue/shared v3.5.13
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/const Qn=()=>{},q_=Object.prototype.hasOwnProperty,Rr=(e,t)=>q_.call(e,t),P_=Array.isArray,st=e=>typeof e=="function",pt=e=>typeof e=="string",ht=e=>e!==null&&typeof e=="object",F_=Object.prototype.toString,V_=e=>F_.call(e),Ho=e=>V_(e).slice(8,-1);var kl=typeof global=="object"&&global&&global.Object===Object&&global,j_=typeof self=="object"&&self&&self.Object===Object&&self,St=kl||j_||Function("return this")(),Xt=St.Symbol,vl=Object.prototype,H_=vl.hasOwnProperty,U_=vl.toString,er=Xt?Xt.toStringTag:void 0;function G_(e){var t=H_.call(e,er),r=e[er];try{e[er]=void 0;var o=!0}catch{}var s=U_.call(e);return o&&(t?e[er]=r:delete e[er]),s}var K_=Object.prototype,W_=K_.toString;function Z_(e){return W_.call(e)}var X_="[object Null]",Y_="[object Undefined]",Cl=Xt?Xt.toStringTag:void 0;function Sn(e){return e==null?e===void 0?Y_:X_:Cl&&Cl in Object(e)?G_(e):Z_(e)}function An(e){return e!=null&&typeof e=="object"}var J_="[object Symbol]";function Or(e){return typeof e=="symbol"||An(e)&&Sn(e)==J_}function Q_(e,t){for(var r=-1,o=e==null?0:e.length,s=Array(o);++r<o;)s[r]=t(e[r],r,e);return s}var Dt=Array.isArray,El=Xt?Xt.prototype:void 0,xl=El?El.toString:void 0;function Sl(e){if(typeof e=="string")return e;if(Dt(e))return Q_(e,Sl)+"";if(Or(e))return xl?xl.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var eb=/\s/;function tb(e){for(var t=e.length;t--&&eb.test(e.charAt(t)););return t}var nb=/^\s+/;function rb(e){return e&&e.slice(0,tb(e)+1).replace(nb,"")}function Tn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Al=NaN,ob=/^[-+]0x[0-9a-f]+$/i,ab=/^0b[01]+$/i,sb=/^0o[0-7]+$/i,ib=parseInt;function Tl(e){if(typeof e=="number")return e;if(Or(e))return Al;if(Tn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rb(e);var r=ab.test(e);return r||sb.test(e)?ib(e.slice(2),r?2:8):ob.test(e)?Al:+e}function cb(e){return e}var lb="[object AsyncFunction]",ub="[object Function]",fb="[object GeneratorFunction]",db="[object Proxy]";function Nl(e){if(!Tn(e))return!1;var t=Sn(e);return t==ub||t==fb||t==lb||t==db}var Uo=St["__core-js_shared__"],Bl=function(){var e=/[^.]+$/.exec(Uo&&Uo.keys&&Uo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pb(e){return!!Bl&&Bl in e}var hb=Function.prototype,mb=hb.toString;function un(e){if(e!=null){try{return mb.call(e)}catch{}try{return e+""}catch{}}return""}var gb=/[\\^$.*+?()[\]{}|]/g,_b=/^\[object .+?Constructor\]$/,bb=Function.prototype,yb=Object.prototype,wb=bb.toString,kb=yb.hasOwnProperty,vb=RegExp("^"+wb.call(kb).replace(gb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cb(e){if(!Tn(e)||pb(e))return!1;var t=Nl(e)?vb:_b;return t.test(un(e))}function Eb(e,t){return e==null?void 0:e[t]}function Nn(e,t){var r=Eb(e,t);return Cb(r)?r:void 0}var Go=Nn(St,"WeakMap");function xb(e,t,r,o){e.length;for(var s=r+1;s--;)if(t(e[s],s,e))return s;return-1}var Sb=9007199254740991,Ab=/^(?:0|[1-9]\d*)$/;function Il(e,t){var r=typeof e;return t=t??Sb,!!t&&(r=="number"||r!="symbol"&&Ab.test(e))&&e>-1&&e%1==0&&e<t}function $l(e,t){return e===t||e!==e&&t!==t}var Tb=9007199254740991;function Ko(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Tb}function Nb(e){return e!=null&&Ko(e.length)&&!Nl(e)}var Bb=Object.prototype;function Ib(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Bb;return e===r}function $b(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}var Rb="[object Arguments]";function Rl(e){return An(e)&&Sn(e)==Rb}var Ol=Object.prototype,Ob=Ol.hasOwnProperty,Mb=Ol.propertyIsEnumerable,Ml=Rl(function(){return arguments}())?Rl:function(e){return An(e)&&Ob.call(e,"callee")&&!Mb.call(e,"callee")};function zb(){return!1}var zl=typeof Pe=="object"&&Pe&&!Pe.nodeType&&Pe,Ll=zl&&typeof module=="object"&&module&&!module.nodeType&&module,Lb=Ll&&Ll.exports===zl,Dl=Lb?St.Buffer:void 0,Db=Dl?Dl.isBuffer:void 0,Wo=Db||zb,qb="[object Arguments]",Pb="[object Array]",Fb="[object Boolean]",Vb="[object Date]",jb="[object Error]",Hb="[object Function]",Ub="[object Map]",Gb="[object Number]",Kb="[object Object]",Wb="[object RegExp]",Zb="[object Set]",Xb="[object String]",Yb="[object WeakMap]",Jb="[object ArrayBuffer]",Qb="[object DataView]",e0="[object Float32Array]",t0="[object Float64Array]",n0="[object Int8Array]",r0="[object Int16Array]",o0="[object Int32Array]",a0="[object Uint8Array]",s0="[object Uint8ClampedArray]",i0="[object Uint16Array]",c0="[object Uint32Array]",ye={};ye[e0]=ye[t0]=ye[n0]=ye[r0]=ye[o0]=ye[a0]=ye[s0]=ye[i0]=ye[c0]=!0,ye[qb]=ye[Pb]=ye[Jb]=ye[Fb]=ye[Qb]=ye[Vb]=ye[jb]=ye[Hb]=ye[Ub]=ye[Gb]=ye[Kb]=ye[Wb]=ye[Zb]=ye[Xb]=ye[Yb]=!1;function l0(e){return An(e)&&Ko(e.length)&&!!ye[Sn(e)]}function u0(e){return function(t){return e(t)}}var ql=typeof Pe=="object"&&Pe&&!Pe.nodeType&&Pe,tr=ql&&typeof module=="object"&&module&&!module.nodeType&&module,f0=tr&&tr.exports===ql,Zo=f0&&kl.process,Pl=function(){try{var e=tr&&tr.require&&tr.require("util").types;return e||Zo&&Zo.binding&&Zo.binding("util")}catch{}}(),Fl=Pl&&Pl.isTypedArray,Vl=Fl?u0(Fl):l0,d0=Object.prototype,p0=d0.hasOwnProperty;function h0(e,t){var r=Dt(e),o=!r&&Ml(e),s=!r&&!o&&Wo(e),a=!r&&!o&&!s&&Vl(e),i=r||o||s||a,c=i?$b(e.length,String):[],l=c.length;for(var f in e)p0.call(e,f)&&!(i&&(f=="length"||s&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Il(f,l)))&&c.push(f);return c}function m0(e,t){return function(r){return e(t(r))}}var g0=m0(Object.keys,Object),_0=Object.prototype,b0=_0.hasOwnProperty;function y0(e){if(!Ib(e))return g0(e);var t=[];for(var r in Object(e))b0.call(e,r)&&r!="constructor"&&t.push(r);return t}function jl(e){return Nb(e)?h0(e):y0(e)}var w0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k0=/^\w*$/;function Xo(e,t){if(Dt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Or(e)?!0:k0.test(e)||!w0.test(e)||t!=null&&e in Object(t)}var nr=Nn(Object,"create");function v0(){this.__data__=nr?nr(null):{},this.size=0}function C0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var E0="__lodash_hash_undefined__",x0=Object.prototype,S0=x0.hasOwnProperty;function A0(e){var t=this.__data__;if(nr){var r=t[e];return r===E0?void 0:r}return S0.call(t,e)?t[e]:void 0}var T0=Object.prototype,N0=T0.hasOwnProperty;function B0(e){var t=this.__data__;return nr?t[e]!==void 0:N0.call(t,e)}var I0="__lodash_hash_undefined__";function $0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nr&&t===void 0?I0:t,this}function fn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}fn.prototype.clear=v0,fn.prototype.delete=C0,fn.prototype.get=A0,fn.prototype.has=B0,fn.prototype.set=$0;function R0(){this.__data__=[],this.size=0}function Mr(e,t){for(var r=e.length;r--;)if($l(e[r][0],t))return r;return-1}var O0=Array.prototype,M0=O0.splice;function z0(e){var t=this.__data__,r=Mr(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():M0.call(t,r,1),--this.size,!0}function L0(e){var t=this.__data__,r=Mr(t,e);return r<0?void 0:t[r][1]}function D0(e){return Mr(this.__data__,e)>-1}function q0(e,t){var r=this.__data__,o=Mr(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}function qt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}qt.prototype.clear=R0,qt.prototype.delete=z0,qt.prototype.get=L0,qt.prototype.has=D0,qt.prototype.set=q0;var rr=Nn(St,"Map");function P0(){this.size=0,this.__data__={hash:new fn,map:new(rr||qt),string:new fn}}function F0(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zr(e,t){var r=e.__data__;return F0(t)?r[typeof t=="string"?"string":"hash"]:r.map}function V0(e){var t=zr(this,e).delete(e);return this.size-=t?1:0,t}function j0(e){return zr(this,e).get(e)}function H0(e){return zr(this,e).has(e)}function U0(e,t){var r=zr(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}Pt.prototype.clear=P0,Pt.prototype.delete=V0,Pt.prototype.get=j0,Pt.prototype.has=H0,Pt.prototype.set=U0;var G0="Expected a function";function Yo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(G0);var r=function(){var o=arguments,s=t?t.apply(this,o):o[0],a=r.cache;if(a.has(s))return a.get(s);var i=e.apply(this,o);return r.cache=a.set(s,i)||a,i};return r.cache=new(Yo.Cache||Pt),r}Yo.Cache=Pt;var K0=500;function W0(e){var t=Yo(e,function(o){return r.size===K0&&r.clear(),o}),r=t.cache;return t}var Z0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,X0=/\\(\\)?/g,Y0=W0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Z0,function(r,o,s,a){t.push(s?a.replace(X0,"$1"):o||r)}),t});function J0(e){return e==null?"":Sl(e)}function Hl(e,t){return Dt(e)?e:Xo(e,t)?[e]:Y0(J0(e))}function Lr(e){if(typeof e=="string"||Or(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Ul(e,t){t=Hl(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Lr(t[r++])];return r&&r==o?e:void 0}function Ye(e,t,r){var o=e==null?void 0:Ul(e,t);return o===void 0?r:o}function Q0(e,t){for(var r=-1,o=t.length,s=e.length;++r<o;)e[s+r]=t[r];return e}function ey(){this.__data__=new qt,this.size=0}function ty(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ny(e){return this.__data__.get(e)}function ry(e){return this.__data__.has(e)}var oy=200;function ay(e,t){var r=this.__data__;if(r instanceof qt){var o=r.__data__;if(!rr||o.length<oy-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Pt(o)}return r.set(e,t),this.size=r.size,this}function Ft(e){var t=this.__data__=new qt(e);this.size=t.size}Ft.prototype.clear=ey,Ft.prototype.delete=ty,Ft.prototype.get=ny,Ft.prototype.has=ry,Ft.prototype.set=ay;function sy(e,t){for(var r=-1,o=e==null?0:e.length,s=0,a=[];++r<o;){var i=e[r];t(i,r,e)&&(a[s++]=i)}return a}function iy(){return[]}var cy=Object.prototype,ly=cy.propertyIsEnumerable,Gl=Object.getOwnPropertySymbols,uy=Gl?function(e){return e==null?[]:(e=Object(e),sy(Gl(e),function(t){return ly.call(e,t)}))}:iy;function fy(e,t,r){var o=t(e);return Dt(e)?o:Q0(o,r(e))}function Kl(e){return fy(e,jl,uy)}var Jo=Nn(St,"DataView"),Qo=Nn(St,"Promise"),ea=Nn(St,"Set"),Wl="[object Map]",dy="[object Object]",Zl="[object Promise]",Xl="[object Set]",Yl="[object WeakMap]",Jl="[object DataView]",py=un(Jo),hy=un(rr),my=un(Qo),gy=un(ea),_y=un(Go),Yt=Sn;(Jo&&Yt(new Jo(new ArrayBuffer(1)))!=Jl||rr&&Yt(new rr)!=Wl||Qo&&Yt(Qo.resolve())!=Zl||ea&&Yt(new ea)!=Xl||Go&&Yt(new Go)!=Yl)&&(Yt=function(e){var t=Sn(e),r=t==dy?e.constructor:void 0,o=r?un(r):"";if(o)switch(o){case py:return Jl;case hy:return Wl;case my:return Zl;case gy:return Xl;case _y:return Yl}return t});var Ql=St.Uint8Array,by="__lodash_hash_undefined__";function yy(e){return this.__data__.set(e,by),this}function wy(e){return this.__data__.has(e)}function Dr(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Pt;++t<r;)this.add(e[t])}Dr.prototype.add=Dr.prototype.push=yy,Dr.prototype.has=wy;function ky(e,t){for(var r=-1,o=e==null?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1}function vy(e,t){return e.has(t)}var Cy=1,Ey=2;function eu(e,t,r,o,s,a){var i=r&Cy,c=e.length,l=t.length;if(c!=l&&!(i&&l>c))return!1;var f=a.get(e),d=a.get(t);if(f&&d)return f==t&&d==e;var u=-1,g=!0,p=r&Ey?new Dr:void 0;for(a.set(e,t),a.set(t,e);++u<c;){var _=e[u],m=t[u];if(o)var b=i?o(m,_,u,t,e,a):o(_,m,u,e,t,a);if(b!==void 0){if(b)continue;g=!1;break}if(p){if(!ky(t,function(h,y){if(!vy(p,y)&&(_===h||s(_,h,r,o,a)))return p.push(y)})){g=!1;break}}else if(!(_===m||s(_,m,r,o,a))){g=!1;break}}return a.delete(e),a.delete(t),g}function xy(e){var t=-1,r=Array(e.size);return e.forEach(function(o,s){r[++t]=[s,o]}),r}function Sy(e){var t=-1,r=Array(e.size);return e.forEach(function(o){r[++t]=o}),r}var Ay=1,Ty=2,Ny="[object Boolean]",By="[object Date]",Iy="[object Error]",$y="[object Map]",Ry="[object Number]",Oy="[object RegExp]",My="[object Set]",zy="[object String]",Ly="[object Symbol]",Dy="[object ArrayBuffer]",qy="[object DataView]",tu=Xt?Xt.prototype:void 0,ta=tu?tu.valueOf:void 0;function Py(e,t,r,o,s,a,i){switch(r){case qy:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Dy:return!(e.byteLength!=t.byteLength||!a(new Ql(e),new Ql(t)));case Ny:case By:case Ry:return $l(+e,+t);case Iy:return e.name==t.name&&e.message==t.message;case Oy:case zy:return e==t+"";case $y:var c=xy;case My:var l=o&Ay;if(c||(c=Sy),e.size!=t.size&&!l)return!1;var f=i.get(e);if(f)return f==t;o|=Ty,i.set(e,t);var d=eu(c(e),c(t),o,s,a,i);return i.delete(e),d;case Ly:if(ta)return ta.call(e)==ta.call(t)}return!1}var Fy=1,Vy=Object.prototype,jy=Vy.hasOwnProperty;function Hy(e,t,r,o,s,a){var i=r&Fy,c=Kl(e),l=c.length,f=Kl(t),d=f.length;if(l!=d&&!i)return!1;for(var u=l;u--;){var g=c[u];if(!(i?g in t:jy.call(t,g)))return!1}var p=a.get(e),_=a.get(t);if(p&&_)return p==t&&_==e;var m=!0;a.set(e,t),a.set(t,e);for(var b=i;++u<l;){g=c[u];var h=e[g],y=t[g];if(o)var w=i?o(y,h,g,t,e,a):o(h,y,g,e,t,a);if(!(w===void 0?h===y||s(h,y,r,o,a):w)){m=!1;break}b||(b=g=="constructor")}if(m&&!b){var k=e.constructor,E=t.constructor;k!=E&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof E=="function"&&E instanceof E)&&(m=!1)}return a.delete(e),a.delete(t),m}var Uy=1,nu="[object Arguments]",ru="[object Array]",qr="[object Object]",Gy=Object.prototype,ou=Gy.hasOwnProperty;function Ky(e,t,r,o,s,a){var i=Dt(e),c=Dt(t),l=i?ru:Yt(e),f=c?ru:Yt(t);l=l==nu?qr:l,f=f==nu?qr:f;var d=l==qr,u=f==qr,g=l==f;if(g&&Wo(e)){if(!Wo(t))return!1;i=!0,d=!1}if(g&&!d)return a||(a=new Ft),i||Vl(e)?eu(e,t,r,o,s,a):Py(e,t,l,r,o,s,a);if(!(r&Uy)){var p=d&&ou.call(e,"__wrapped__"),_=u&&ou.call(t,"__wrapped__");if(p||_){var m=p?e.value():e,b=_?t.value():t;return a||(a=new Ft),s(m,b,r,o,a)}}return g?(a||(a=new Ft),Hy(e,t,r,o,s,a)):!1}function Pr(e,t,r,o,s){return e===t?!0:e==null||t==null||!An(e)&&!An(t)?e!==e&&t!==t:Ky(e,t,r,o,Pr,s)}var Wy=1,Zy=2;function Xy(e,t,r,o){var s=r.length,a=s;if(e==null)return!a;for(e=Object(e);s--;){var i=r[s];if(i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++s<a;){i=r[s];var c=i[0],l=e[c],f=i[1];if(i[2]){if(l===void 0&&!(c in e))return!1}else{var d=new Ft,u;if(!(u===void 0?Pr(f,l,Wy|Zy,o,d):u))return!1}}return!0}function au(e){return e===e&&!Tn(e)}function Yy(e){for(var t=jl(e),r=t.length;r--;){var o=t[r],s=e[o];t[r]=[o,s,au(s)]}return t}function su(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function Jy(e){var t=Yy(e);return t.length==1&&t[0][2]?su(t[0][0],t[0][1]):function(r){return r===e||Xy(r,e,t)}}function Qy(e,t){return e!=null&&t in Object(e)}function ew(e,t,r){t=Hl(t,e);for(var o=-1,s=t.length,a=!1;++o<s;){var i=Lr(t[o]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++o!=s?a:(s=e==null?0:e.length,!!s&&Ko(s)&&Il(i,s)&&(Dt(e)||Ml(e)))}function tw(e,t){return e!=null&&ew(e,t,Qy)}var nw=1,rw=2;function ow(e,t){return Xo(e)&&au(t)?su(Lr(e),t):function(r){var o=Ye(r,e);return o===void 0&&o===t?tw(r,e):Pr(t,o,nw|rw)}}function aw(e){return function(t){return t==null?void 0:t[e]}}function sw(e){return function(t){return Ul(t,e)}}function iw(e){return Xo(e)?aw(Lr(e)):sw(e)}function cw(e){return typeof e=="function"?e:e==null?cb:typeof e=="object"?Dt(e)?ow(e[0],e[1]):Jy(e):iw(e)}var na=function(){return St.Date.now()},lw="Expected a function",uw=Math.max,fw=Math.min;function ra(e,t,r){var o,s,a,i,c,l,f=0,d=!1,u=!1,g=!0;if(typeof e!="function")throw new TypeError(lw);t=Tl(t)||0,Tn(r)&&(d=!!r.leading,u="maxWait"in r,a=u?uw(Tl(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);function p(C){var x=o,S=s;return o=s=void 0,f=C,i=e.apply(S,x),i}function _(C){return f=C,c=setTimeout(h,t),d?p(C):i}function m(C){var x=C-l,S=C-f,N=t-x;return u?fw(N,a-S):N}function b(C){var x=C-l,S=C-f;return l===void 0||x>=t||x<0||u&&S>=a}function h(){var C=na();if(b(C))return y(C);c=setTimeout(h,m(C))}function y(C){return c=void 0,g&&o?p(C):(o=s=void 0,i)}function w(){c!==void 0&&clearTimeout(c),f=0,o=l=s=c=void 0}function k(){return c===void 0?i:y(na())}function E(){var C=na(),x=b(C);if(o=arguments,s=this,l=C,x){if(c===void 0)return _(l);if(u)return clearTimeout(c),c=setTimeout(h,t),p(l)}return c===void 0&&(c=setTimeout(h,t)),i}return E.cancel=w,E.flush=k,E}function dw(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var s=o-1;return xb(e,cw(t),s)}function Fr(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var s=e[t];o[s[0]]=s[1]}return o}function oa(e,t){return Pr(e,t)}function dn(e){return e==null}function pw(e){return e===void 0}const iu=e=>e===void 0,aa=e=>typeof e=="boolean",Ee=e=>typeof e=="number",or=e=>typeof Element>"u"?!1:e instanceof Element,hw=e=>pt(e)?!Number.isNaN(Number(e)):!1,mw=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");class gw extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _w(e,t){throw new gw(`[${e}] ${t}`)}function C$(e,t){}function Bn(e,t="px"){if(!e)return"";if(Ee(e)||hw(e))return`${e}${t}`;if(pt(e))return e}function bw(e,t){if(!Me)return;if(!t){e.scrollTop=0;return}const r=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)r.push(o),o=o.offsetParent;const s=t.offsetTop+r.reduce((l,f)=>l+f.offsetTop,0),a=s+t.offsetHeight,i=e.scrollTop,c=i+e.clientHeight;s<i?e.scrollTop=s:a>c&&(e.scrollTop=a-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var yw=n.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),cu=yw,ww=n.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),kw=ww,vw=n.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Cw=vw,Ew=n.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),n.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),xw=Ew,Sw=n.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),n.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),sa=Sw,Aw=n.defineComponent({name:"Close",__name:"close",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ia=Aw,Tw=n.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Nw=Tw,Bw=n.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Iw=Bw,$w=n.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),n.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Rw=$w,Ow=n.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),lu=Ow,Mw=n.defineComponent({name:"MoreFilled",__name:"more-filled",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),uu=Mw,zw=n.defineComponent({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Lw=zw,Dw=n.defineComponent({name:"View",__name:"view",setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),qw=Dw;const fu="__epPropKey",ne=e=>e,Pw=e=>ht(e)&&!!e[fu],Vr=(e,t)=>{if(!ht(e)||Pw(e))return e;const{values:r,required:o,default:s,type:a,validator:i}=e,l={type:a,required:!!o,validator:r||i?f=>{let d=!1,u=[];if(r&&(u=Array.from(r),Rr(e,"default")&&u.push(s),d||(d=u.includes(f))),i&&(d||(d=i(f))),!d&&u.length>0){const g=[...new Set(u)].map(p=>JSON.stringify(p)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(f)}.`)}return d}:void 0,[fu]:!0};return Rr(e,"default")&&(l.default=s),l},pe=e=>Fr(Object.entries(e).map(([t,r])=>[t,Vr(r,t)])),mt=ne([String,Object,Function]),du={validating:lu,success:xw,error:sa},it=(e,t)=>{if(e.install=r=>{for(const o of[e,...Object.values(t??{})])r.component(o.name,o)},t)for(const[r,o]of Object.entries(t))e[r]=o;return e},Fw=(e,t)=>(e.install=r=>{r.directive(t,e)},e),jr=e=>(e.install=Qn,e),Vt={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete",backspace:"Backspace"},Ue="update:modelValue",ca="change",ar=["","default","small","large"],Vw={large:40,default:32,small:24},jw=e=>Vw[e||"default"],Hw=e=>["",...ar].includes(e),pu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),la=e=>e,Uw=["class","style"],Gw=/^on[A-Z]/,Kw=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r}=e,o=n.computed(()=>((r==null?void 0:r.value)||[]).concat(Uw)),s=n.getCurrentInstance();return s?n.computed(()=>{var a;return Fr(Object.entries((a=s.proxy)==null?void 0:a.$attrs).filter(([i])=>!o.value.includes(i)&&!(t&&Gw.test(i))))}):n.computed(()=>({}))},hu=({from:e,replacement:t,scope:r,version:o,ref:s,type:a="API"},i)=>{n.watch(()=>n.unref(i),c=>{},{immediate:!0})};var Ww={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Zw=e=>(t,r)=>Xw(t,r,n.unref(e)),Xw=(e,t,r)=>Ye(r,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var a;return`${(a=t==null?void 0:t[s])!=null?a:`{${s}}`}`}),Yw=e=>{const t=n.computed(()=>n.unref(e).name),r=n.isRef(e)?e:n.ref(e);return{lang:t,locale:r,t:Zw(e)}},Jw=Symbol("localeContextKey"),gt=e=>{const t=n.inject(Jw,n.ref());return Yw(n.computed(()=>t.value||Ww))},ua="el",Qw="is-",pn=(e,t,r,o,s)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),o&&(a+=`__${o}`),s&&(a+=`--${s}`),a},e1=Symbol("namespaceContextKey"),fa=e=>{const t=n.getCurrentInstance()?n.inject(e1,n.ref(ua)):n.ref(ua);return n.computed(()=>n.unref(t)||ua)},ce=(e,t)=>{const r=fa();return{namespace:r,b:(m="")=>pn(r.value,e,m,"",""),e:m=>m?pn(r.value,e,"",m,""):"",m:m=>m?pn(r.value,e,"","",m):"",be:(m,b)=>m&&b?pn(r.value,e,m,b,""):"",em:(m,b)=>m&&b?pn(r.value,e,"",m,b):"",bm:(m,b)=>m&&b?pn(r.value,e,m,"",b):"",bem:(m,b,h)=>m&&b&&h?pn(r.value,e,m,b,h):"",is:(m,...b)=>{const h=b.length>=1?b[0]:!0;return m&&h?`${Qw}${m}`:""},cssVar:m=>{const b={};for(const h in m)m[h]&&(b[`--${r.value}-${h}`]=m[h]);return b},cssVarName:m=>`--${r.value}-${m}`,cssVarBlock:m=>{const b={};for(const h in m)m[h]&&(b[`--${r.value}-${e}-${h}`]=m[h]);return b},cssVarBlockName:m=>`--${r.value}-${e}-${m}`}},t1=Vr({type:ne(Boolean),default:null}),n1=Vr({type:ne(Function)}),r1=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,o=[t],s={[e]:t1,[r]:n1};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:l,shouldProceed:f,onShow:d,onHide:u})=>{const g=n.getCurrentInstance(),{emit:p}=g,_=g.props,m=n.computed(()=>st(_[r])),b=n.computed(()=>_[e]===null),h=x=>{i.value!==!0&&(i.value=!0,c&&(c.value=x),st(d)&&d(x))},y=x=>{i.value!==!1&&(i.value=!1,c&&(c.value=x),st(u)&&u(x))},w=x=>{if(_.disabled===!0||st(f)&&!f())return;const S=m.value&&Me;S&&p(t,!0),(b.value||!S)&&h(x)},k=x=>{if(_.disabled===!0||!Me)return;const S=m.value&&Me;S&&p(t,!1),(b.value||!S)&&y(x)},E=x=>{aa(x)&&(_.disabled&&x?m.value&&p(t,!1):i.value!==x&&(x?h():y()))},C=()=>{i.value?k():w()};return n.watch(()=>_[e],E),l&&g.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...g.proxy.$route}),()=>{l.value&&i.value&&k()}),n.onMounted(()=>{E(_[e])}),{hide:k,show:w,toggle:C,hasUpdateHandler:m}},useModelToggleProps:s,useModelToggleEmits:o}},mu=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var r,o;return(o=(r=t==null?void 0:t.proxy)==null?void 0:r.$props)==null?void 0:o[e]})};var Ge="top",ct="bottom",lt="right",Ke="left",da="auto",sr=[Ge,ct,lt,Ke],In="start",ir="end",o1="clippingParents",gu="viewport",cr="popper",a1="reference",_u=sr.reduce(function(e,t){return e.concat([t+"-"+In,t+"-"+ir])},[]),Hr=[].concat(sr,[da]).reduce(function(e,t){return e.concat([t,t+"-"+In,t+"-"+ir])},[]),s1="beforeRead",i1="read",c1="afterRead",l1="beforeMain",u1="main",f1="afterMain",d1="beforeWrite",p1="write",h1="afterWrite",m1=[s1,i1,c1,l1,u1,f1,d1,p1,h1];function At(e){return e?(e.nodeName||"").toLowerCase():null}function _t(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $n(e){var t=_t(e).Element;return e instanceof t||e instanceof Element}function ut(e){var t=_t(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pa(e){if(typeof ShadowRoot>"u")return!1;var t=_t(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g1(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!ut(a)||!At(a)||(Object.assign(a.style,o),Object.keys(s).forEach(function(i){var c=s[i];c===!1?a.removeAttribute(i):a.setAttribute(i,c===!0?"":c)}))})}function _1(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],a=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),c=i.reduce(function(l,f){return l[f]="",l},{});!ut(s)||!At(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(l){s.removeAttribute(l)}))})}}var bu={name:"applyStyles",enabled:!0,phase:"write",fn:g1,effect:_1,requires:["computeStyles"]};function Tt(e){return e.split("-")[0]}var hn=Math.max,Ur=Math.min,Rn=Math.round;function On(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),o=1,s=1;if(ut(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(o=Rn(r.width)/i||1),a>0&&(s=Rn(r.height)/a||1)}return{width:r.width/o,height:r.height/s,top:r.top/s,right:r.right/o,bottom:r.bottom/s,left:r.left/o,x:r.left/o,y:r.top/s}}function ha(e){var t=On(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function yu(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&pa(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function jt(e){return _t(e).getComputedStyle(e)}function b1(e){return["table","td","th"].indexOf(At(e))>=0}function Jt(e){return(($n(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gr(e){return At(e)==="html"?e:e.assignedSlot||e.parentNode||(pa(e)?e.host:null)||Jt(e)}function wu(e){return!ut(e)||jt(e).position==="fixed"?null:e.offsetParent}function y1(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&ut(e)){var o=jt(e);if(o.position==="fixed")return null}var s=Gr(e);for(pa(s)&&(s=s.host);ut(s)&&["html","body"].indexOf(At(s))<0;){var a=jt(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function lr(e){for(var t=_t(e),r=wu(e);r&&b1(r)&&jt(r).position==="static";)r=wu(r);return r&&(At(r)==="html"||At(r)==="body"&&jt(r).position==="static")?t:r||y1(e)||t}function ma(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ur(e,t,r){return hn(e,Ur(t,r))}function w1(e,t,r){var o=ur(e,t,r);return o>r?r:o}function ku(){return{top:0,right:0,bottom:0,left:0}}function vu(e){return Object.assign({},ku(),e)}function Cu(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var k1=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vu(typeof e!="number"?e:Cu(e,sr))};function v1(e){var t,r=e.state,o=e.name,s=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,c=Tt(r.placement),l=ma(c),f=[Ke,lt].indexOf(c)>=0,d=f?"height":"width";if(!(!a||!i)){var u=k1(s.padding,r),g=ha(a),p=l==="y"?Ge:Ke,_=l==="y"?ct:lt,m=r.rects.reference[d]+r.rects.reference[l]-i[l]-r.rects.popper[d],b=i[l]-r.rects.reference[l],h=lr(a),y=h?l==="y"?h.clientHeight||0:h.clientWidth||0:0,w=m/2-b/2,k=u[p],E=y-g[d]-u[_],C=y/2-g[d]/2+w,x=ur(k,C,E),S=l;r.modifiersData[o]=(t={},t[S]=x,t.centerOffset=x-C,t)}}function C1(e){var t=e.state,r=e.options,o=r.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!yu(t.elements.popper,s)||(t.elements.arrow=s))}var E1={name:"arrow",enabled:!0,phase:"main",fn:v1,effect:C1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mn(e){return e.split("-")[1]}var x1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function S1(e){var t=e.x,r=e.y,o=window,s=o.devicePixelRatio||1;return{x:Rn(t*s)/s||0,y:Rn(r*s)/s||0}}function Eu(e){var t,r=e.popper,o=e.popperRect,s=e.placement,a=e.variation,i=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,u=e.isFixed,g=i.x,p=g===void 0?0:g,_=i.y,m=_===void 0?0:_,b=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var h=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),w=Ke,k=Ge,E=window;if(f){var C=lr(r),x="clientHeight",S="clientWidth";if(C===_t(r)&&(C=Jt(r),jt(C).position!=="static"&&c==="absolute"&&(x="scrollHeight",S="scrollWidth")),C=C,s===Ge||(s===Ke||s===lt)&&a===ir){k=ct;var N=u&&C===E&&E.visualViewport?E.visualViewport.height:C[x];m-=N-o.height,m*=l?1:-1}if(s===Ke||(s===Ge||s===ct)&&a===ir){w=lt;var B=u&&C===E&&E.visualViewport?E.visualViewport.width:C[S];p-=B-o.width,p*=l?1:-1}}var $=Object.assign({position:c},f&&x1),L=d===!0?S1({x:p,y:m}):{x:p,y:m};if(p=L.x,m=L.y,l){var G;return Object.assign({},$,(G={},G[k]=y?"0":"",G[w]=h?"0":"",G.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",G))}return Object.assign({},$,(t={},t[k]=y?m+"px":"",t[w]=h?p+"px":"",t.transform="",t))}function A1(e){var t=e.state,r=e.options,o=r.gpuAcceleration,s=o===void 0?!0:o,a=r.adaptive,i=a===void 0?!0:a,c=r.roundOffsets,l=c===void 0?!0:c,f={placement:Tt(t.placement),variation:Mn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Eu(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Eu(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var xu={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:A1,data:{}},Kr={passive:!0};function T1(e){var t=e.state,r=e.instance,o=e.options,s=o.scroll,a=s===void 0?!0:s,i=o.resize,c=i===void 0?!0:i,l=_t(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(d){d.addEventListener("scroll",r.update,Kr)}),c&&l.addEventListener("resize",r.update,Kr),function(){a&&f.forEach(function(d){d.removeEventListener("scroll",r.update,Kr)}),c&&l.removeEventListener("resize",r.update,Kr)}}var Su={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T1,data:{}},N1={left:"right",right:"left",bottom:"top",top:"bottom"};function Wr(e){return e.replace(/left|right|bottom|top/g,function(t){return N1[t]})}var B1={start:"end",end:"start"};function Au(e){return e.replace(/start|end/g,function(t){return B1[t]})}function ga(e){var t=_t(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function _a(e){return On(Jt(e)).left+ga(e).scrollLeft}function I1(e){var t=_t(e),r=Jt(e),o=t.visualViewport,s=r.clientWidth,a=r.clientHeight,i=0,c=0;return o&&(s=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,c=o.offsetTop)),{width:s,height:a,x:i+_a(e),y:c}}function $1(e){var t,r=Jt(e),o=ga(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=hn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),i=hn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+_a(e),l=-o.scrollTop;return jt(s||r).direction==="rtl"&&(c+=hn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:i,x:c,y:l}}function ba(e){var t=jt(e),r=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+o)}function Tu(e){return["html","body","#document"].indexOf(At(e))>=0?e.ownerDocument.body:ut(e)&&ba(e)?e:Tu(Gr(e))}function fr(e,t){var r;t===void 0&&(t=[]);var o=Tu(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=_t(o),i=s?[a].concat(a.visualViewport||[],ba(o)?o:[]):o,c=t.concat(i);return s?c:c.concat(fr(Gr(i)))}function ya(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function R1(e){var t=On(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Nu(e,t){return t===gu?ya(I1(e)):$n(t)?R1(t):ya($1(Jt(e)))}function O1(e){var t=fr(Gr(e)),r=["absolute","fixed"].indexOf(jt(e).position)>=0,o=r&&ut(e)?lr(e):e;return $n(o)?t.filter(function(s){return $n(s)&&yu(s,o)&&At(s)!=="body"}):[]}function M1(e,t,r){var o=t==="clippingParents"?O1(e):[].concat(t),s=[].concat(o,[r]),a=s[0],i=s.reduce(function(c,l){var f=Nu(e,l);return c.top=hn(f.top,c.top),c.right=Ur(f.right,c.right),c.bottom=Ur(f.bottom,c.bottom),c.left=hn(f.left,c.left),c},Nu(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Bu(e){var t=e.reference,r=e.element,o=e.placement,s=o?Tt(o):null,a=o?Mn(o):null,i=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,l;switch(s){case Ge:l={x:i,y:t.y-r.height};break;case ct:l={x:i,y:t.y+t.height};break;case lt:l={x:t.x+t.width,y:c};break;case Ke:l={x:t.x-r.width,y:c};break;default:l={x:t.x,y:t.y}}var f=s?ma(s):null;if(f!=null){var d=f==="y"?"height":"width";switch(a){case In:l[f]=l[f]-(t[d]/2-r[d]/2);break;case ir:l[f]=l[f]+(t[d]/2-r[d]/2);break}}return l}function dr(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=o===void 0?e.placement:o,a=r.boundary,i=a===void 0?o1:a,c=r.rootBoundary,l=c===void 0?gu:c,f=r.elementContext,d=f===void 0?cr:f,u=r.altBoundary,g=u===void 0?!1:u,p=r.padding,_=p===void 0?0:p,m=vu(typeof _!="number"?_:Cu(_,sr)),b=d===cr?a1:cr,h=e.rects.popper,y=e.elements[g?b:d],w=M1($n(y)?y:y.contextElement||Jt(e.elements.popper),i,l),k=On(e.elements.reference),E=Bu({reference:k,element:h,placement:s}),C=ya(Object.assign({},h,E)),x=d===cr?C:k,S={top:w.top-x.top+m.top,bottom:x.bottom-w.bottom+m.bottom,left:w.left-x.left+m.left,right:x.right-w.right+m.right},N=e.modifiersData.offset;if(d===cr&&N){var B=N[s];Object.keys(S).forEach(function($){var L=[lt,ct].indexOf($)>=0?1:-1,G=[Ge,ct].indexOf($)>=0?"y":"x";S[$]+=B[G]*L})}return S}function z1(e,t){t===void 0&&(t={});var r=t,o=r.placement,s=r.boundary,a=r.rootBoundary,i=r.padding,c=r.flipVariations,l=r.allowedAutoPlacements,f=l===void 0?Hr:l,d=Mn(o),u=d?c?_u:_u.filter(function(_){return Mn(_)===d}):sr,g=u.filter(function(_){return f.indexOf(_)>=0});g.length===0&&(g=u);var p=g.reduce(function(_,m){return _[m]=dr(e,{placement:m,boundary:s,rootBoundary:a,padding:i})[Tt(m)],_},{});return Object.keys(p).sort(function(_,m){return p[_]-p[m]})}function L1(e){if(Tt(e)===da)return[];var t=Wr(e);return[Au(e),t,Au(t)]}function D1(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,i=r.altAxis,c=i===void 0?!0:i,l=r.fallbackPlacements,f=r.padding,d=r.boundary,u=r.rootBoundary,g=r.altBoundary,p=r.flipVariations,_=p===void 0?!0:p,m=r.allowedAutoPlacements,b=t.options.placement,h=Tt(b),y=h===b,w=l||(y||!_?[Wr(b)]:L1(b)),k=[b].concat(w).reduce(function(_e,we){return _e.concat(Tt(we)===da?z1(t,{placement:we,boundary:d,rootBoundary:u,padding:f,flipVariations:_,allowedAutoPlacements:m}):we)},[]),E=t.rects.reference,C=t.rects.popper,x=new Map,S=!0,N=k[0],B=0;B<k.length;B++){var $=k[B],L=Tt($),G=Mn($)===In,I=[Ge,ct].indexOf(L)>=0,D=I?"width":"height",R=dr(t,{placement:$,boundary:d,rootBoundary:u,altBoundary:g,padding:f}),O=I?G?lt:Ke:G?ct:Ge;E[D]>C[D]&&(O=Wr(O));var z=Wr(O),q=[];if(a&&q.push(R[L]<=0),c&&q.push(R[O]<=0,R[z]<=0),q.every(function(_e){return _e})){N=$,S=!1;break}x.set($,q)}if(S)for(var P=_?3:1,ee=function(_e){var we=k.find(function($e){var je=x.get($e);if(je)return je.slice(0,_e).every(function(xe){return xe})});if(we)return N=we,"break"},Y=P;Y>0;Y--){var de=ee(Y);if(de==="break")break}t.placement!==N&&(t.modifiersData[o]._skip=!0,t.placement=N,t.reset=!0)}}var q1={name:"flip",enabled:!0,phase:"main",fn:D1,requiresIfExists:["offset"],data:{_skip:!1}};function Iu(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function $u(e){return[Ge,lt,ct,Ke].some(function(t){return e[t]>=0})}function P1(e){var t=e.state,r=e.name,o=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,i=dr(t,{elementContext:"reference"}),c=dr(t,{altBoundary:!0}),l=Iu(i,o),f=Iu(c,s,a),d=$u(l),u=$u(f);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}var F1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:P1};function V1(e,t,r){var o=Tt(e),s=[Ke,Ge].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],c=a[1];return i=i||0,c=(c||0)*s,[Ke,lt].indexOf(o)>=0?{x:c,y:i}:{x:i,y:c}}function j1(e){var t=e.state,r=e.options,o=e.name,s=r.offset,a=s===void 0?[0,0]:s,i=Hr.reduce(function(d,u){return d[u]=V1(u,t.rects,a),d},{}),c=i[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=i}var H1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:j1};function U1(e){var t=e.state,r=e.name;t.modifiersData[r]=Bu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var Ru={name:"popperOffsets",enabled:!0,phase:"read",fn:U1,data:{}};function G1(e){return e==="x"?"y":"x"}function K1(e){var t=e.state,r=e.options,o=e.name,s=r.mainAxis,a=s===void 0?!0:s,i=r.altAxis,c=i===void 0?!1:i,l=r.boundary,f=r.rootBoundary,d=r.altBoundary,u=r.padding,g=r.tether,p=g===void 0?!0:g,_=r.tetherOffset,m=_===void 0?0:_,b=dr(t,{boundary:l,rootBoundary:f,padding:u,altBoundary:d}),h=Tt(t.placement),y=Mn(t.placement),w=!y,k=ma(h),E=G1(k),C=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,N=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,B=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var G,I=k==="y"?Ge:Ke,D=k==="y"?ct:lt,R=k==="y"?"height":"width",O=C[k],z=O+b[I],q=O-b[D],P=p?-S[R]/2:0,ee=y===In?x[R]:S[R],Y=y===In?-S[R]:-x[R],de=t.elements.arrow,_e=p&&de?ha(de):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ku(),$e=we[I],je=we[D],xe=ur(0,x[R],_e[R]),$t=w?x[R]/2-P-xe-$e-B.mainAxis:ee-xe-$e-B.mainAxis,K=w?-x[R]/2+P+xe+je+B.mainAxis:Y+xe+je+B.mainAxis,ae=t.elements.arrow&&lr(t.elements.arrow),Ce=ae?k==="y"?ae.clientTop||0:ae.clientLeft||0:0,Re=(G=$==null?void 0:$[k])!=null?G:0,Xe=O+$t-Re-Ce,kt=O+K-Re,et=ur(p?Ur(z,Xe):z,O,p?hn(q,kt):q);C[k]=et,L[k]=et-O}if(c){var Rt,tt=k==="x"?Ge:Ke,vt=k==="x"?ct:lt,De=C[E],dt=E==="y"?"height":"width",nt=De+b[tt],Ct=De-b[vt],Ne=[Ge,Ke].indexOf(h)!==-1,F=(Rt=$==null?void 0:$[E])!=null?Rt:0,J=Ne?nt:De-x[dt]-S[dt]-F+B.altAxis,me=Ne?De+x[dt]+S[dt]-F-B.altAxis:Ct,Se=p&&Ne?w1(J,De,me):ur(p?J:nt,De,p?me:Ct);C[E]=Se,L[E]=Se-De}t.modifiersData[o]=L}}var W1={name:"preventOverflow",enabled:!0,phase:"main",fn:K1,requiresIfExists:["offset"]};function Z1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function X1(e){return e===_t(e)||!ut(e)?ga(e):Z1(e)}function Y1(e){var t=e.getBoundingClientRect(),r=Rn(t.width)/e.offsetWidth||1,o=Rn(t.height)/e.offsetHeight||1;return r!==1||o!==1}function J1(e,t,r){r===void 0&&(r=!1);var o=ut(t),s=ut(t)&&Y1(t),a=Jt(t),i=On(e,s),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!r)&&((At(t)!=="body"||ba(a))&&(c=X1(t)),ut(t)?(l=On(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=_a(a))),{x:i.left+c.scrollLeft-l.x,y:i.top+c.scrollTop-l.y,width:i.width,height:i.height}}function Q1(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(c){if(!r.has(c)){var l=t.get(c);l&&s(l)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),o}function ek(e){var t=Q1(e);return m1.reduce(function(r,o){return r.concat(t.filter(function(s){return s.phase===o}))},[])}function tk(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function nk(e){var t=e.reduce(function(r,o){var s=r[o.name];return r[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ou={placement:"bottom",modifiers:[],strategy:"absolute"};function Mu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function wa(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,o=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ou:s;return function(i,c,l){l===void 0&&(l=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ou,a),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},d=[],u=!1,g={state:f,setOptions:function(m){var b=typeof m=="function"?m(f.options):m;_(),f.options=Object.assign({},a,f.options,b),f.scrollParents={reference:$n(i)?fr(i):i.contextElement?fr(i.contextElement):[],popper:fr(c)};var h=ek(nk([].concat(o,f.options.modifiers)));return f.orderedModifiers=h.filter(function(y){return y.enabled}),p(),g.update()},forceUpdate:function(){if(!u){var m=f.elements,b=m.reference,h=m.popper;if(Mu(b,h)){f.rects={reference:J1(b,lr(h),f.options.strategy==="fixed"),popper:ha(h)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(S){return f.modifiersData[S.name]=Object.assign({},S.data)});for(var y=0;y<f.orderedModifiers.length;y++){if(f.reset===!0){f.reset=!1,y=-1;continue}var w=f.orderedModifiers[y],k=w.fn,E=w.options,C=E===void 0?{}:E,x=w.name;typeof k=="function"&&(f=k({state:f,options:C,name:x,instance:g})||f)}}}},update:tk(function(){return new Promise(function(m){g.forceUpdate(),m(f)})}),destroy:function(){_(),u=!0}};if(!Mu(i,c))return g;g.setOptions(l).then(function(m){!u&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){f.orderedModifiers.forEach(function(m){var b=m.name,h=m.options,y=h===void 0?{}:h,w=m.effect;if(typeof w=="function"){var k=w({state:f,name:b,instance:g,options:y}),E=function(){};d.push(k||E)}})}function _(){d.forEach(function(m){return m()}),d=[]}return g}}wa();var rk=[Su,Ru,xu,bu];wa({defaultModifiers:rk});var ok=[Su,Ru,xu,bu,H1,q1,W1,E1,F1],ak=wa({defaultModifiers:ok});const sk=(e,t,r={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const f=ik(l);Object.assign(i.value,f)},requires:["computeStyles"]},s=n.computed(()=>{const{onFirstUpdate:l,placement:f,strategy:d,modifiers:u}=n.unref(r);return{onFirstUpdate:l,placement:f||"bottom",strategy:d||"absolute",modifiers:[...u||[],o,{name:"applyStyles",enabled:!1}]}}),a=n.shallowRef(),i=n.ref({styles:{popper:{position:n.unref(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return n.watch(s,l=>{const f=n.unref(a);f&&f.setOptions(l)},{deep:!0}),n.watch([e,t],([l,f])=>{c(),!(!l||!f)&&(a.value=ak(l,f,n.unref(s)))}),n.onBeforeUnmount(()=>{c()}),{state:n.computed(()=>{var l;return{...((l=n.unref(a))==null?void 0:l.state)||{}}}),styles:n.computed(()=>n.unref(i).styles),attributes:n.computed(()=>n.unref(i).attributes),update:()=>{var l;return(l=n.unref(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=n.unref(a))==null?void 0:l.forceUpdate()},instanceRef:n.computed(()=>n.unref(a))}};function ik(e){const t=Object.keys(e.elements),r=Fr(t.map(s=>[s,e.styles[s]||{}])),o=Fr(t.map(s=>[s,e.attributes[s]]));return{styles:r,attributes:o}}const ck=(e,t=0)=>{if(t===0)return e;const r=n.ref(!1);let o=0;const s=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{r.value=e.value},t)};return n.onMounted(s),n.watch(()=>e.value,a=>{a?s():r.value=a}),r};function zu(){let e;const t=(o,s)=>{r(),e=window.setTimeout(o,s)},r=()=>window.clearTimeout(e);return Fo(()=>r()),{registerTimeout:t,cancelTimeout:r}}const Lu={prefix:Math.floor(Math.random()*1e4),current:0},lk=Symbol("elIdInjection"),Du=()=>n.getCurrentInstance()?n.inject(lk,Lu):Lu,Zr=e=>{const t=Du(),r=fa();return n.computed(()=>n.unref(e)||`${r.value}-id-${t.prefix}-${t.current++}`)};let zn=[];const qu=e=>{const t=e;t.key===Vt.esc&&zn.forEach(r=>r(t))},uk=e=>{n.onMounted(()=>{zn.length===0&&document.addEventListener("keydown",qu),Me&&zn.push(e)}),n.onBeforeUnmount(()=>{zn=zn.filter(t=>t!==e),zn.length===0&&Me&&document.removeEventListener("keydown",qu)})};let Pu;const Fu=()=>{const e=fa(),t=Du(),r=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),o=n.computed(()=>`#${r.value}`);return{id:r,selector:o}},fk=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},dk=()=>{const{id:e,selector:t}=Fu();return n.onBeforeMount(()=>{Me&&!Pu&&!document.body.querySelector(t.value)&&(Pu=fk(e.value))}),{id:e,selector:t}},pk=pe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),hk=({showAfter:e,hideAfter:t,autoClose:r,open:o,close:s})=>{const{registerTimeout:a}=zu(),{registerTimeout:i,cancelTimeout:c}=zu();return{onOpen:d=>{a(()=>{o(d);const u=n.unref(r);Ee(u)&&u>0&&i(()=>{s(d)},u)},n.unref(e))},onClose:d=>{c(),a(()=>{s(d)},n.unref(t))}}},Vu=Symbol("elForwardRef"),mk=e=>{const t=r=>{e.value=r};n.provide(Vu,{setForwardRef:t})},gk=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ju=n.ref(0),_k=2e3,bk=Symbol("zIndexContextKey"),yk=e=>{const t=n.getCurrentInstance()?n.inject(bk,void 0):void 0,r=n.computed(()=>{const a=n.unref(t);return Ee(a)?a:_k}),o=n.computed(()=>r.value+ju.value);return{initialZIndex:r,currentZIndex:o,nextZIndex:()=>(ju.value++,o.value)}};function wk(e){const t=n.ref();function r(){if(e.value==null)return;const{selectionStart:s,selectionEnd:a,value:i}=e.value;if(s==null||a==null)return;const c=i.slice(0,Math.max(0,s)),l=i.slice(Math.max(0,a));t.value={selectionStart:s,selectionEnd:a,value:i,beforeTxt:c,afterTxt:l}}function o(){if(e.value==null||t.value==null)return;const{value:s}=e.value,{beforeTxt:a,afterTxt:i,selectionStart:c}=t.value;if(a==null||i==null||c==null)return;let l=s.length;if(s.endsWith(i))l=s.length-i.length;else if(s.startsWith(a))l=a.length;else{const f=a[c-1],d=s.indexOf(f,c-1);d!==-1&&(l=d+1)}e.value.setSelectionRange(l,l)}return[r,o]}const ka=Vr({type:String,values:ar,required:!1}),kk=Symbol("size"),vk=()=>{const e=n.inject(kk,{});return n.computed(()=>n.unref(e.size)||"")};function Hu(e,{afterFocus:t,beforeBlur:r,afterBlur:o}={}){const s=n.getCurrentInstance(),{emit:a}=s,i=n.shallowRef(),c=n.ref(!1),l=u=>{c.value||(c.value=!0,a("focus",u),t==null||t())},f=u=>{var g;st(r)&&r(u)||u.relatedTarget&&((g=i.value)!=null&&g.contains(u.relatedTarget))||(c.value=!1,a("blur",u),o==null||o())},d=()=>{var u;(u=e.value)==null||u.focus()};return n.watch(i,u=>{u&&u.setAttribute("tabindex","-1")}),ln(i,"click",d),{wrapperRef:i,isFocused:c,handleFocus:l,handleBlur:f}}const Ck=Symbol(),Uu=n.ref();function Ek(e,t=void 0){const r=n.getCurrentInstance()?n.inject(Ck,Uu):Uu;return n.computed(()=>{var o,s;return(s=(o=r.value)==null?void 0:o[e])!=null?s:t})}var oe=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};const xk=pe({size:{type:ne([Number,String])},color:{type:String}}),Sk=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Ak=n.defineComponent({...Sk,props:xk,setup(e){const t=e,r=ce("icon"),o=n.computed(()=>{const{size:s,color:a}=t;return!s&&!a?{}:{fontSize:iu(s)?void 0:Bn(s),"--color":a}});return(s,a)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(r).b(),style:n.unref(o)},s.$attrs),[n.renderSlot(s.$slots,"default")],16))}});var Tk=oe(Ak,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const We=it(Tk),va=Symbol("formContextKey"),Xr=Symbol("formItemContextKey"),pr=(e,t={})=>{const r=n.ref(void 0),o=t.prop?r:mu("size"),s=t.global?r:vk(),a=t.form?{size:void 0}:n.inject(va,void 0),i=t.formItem?{size:void 0}:n.inject(Xr,void 0);return n.computed(()=>o.value||n.unref(e)||(i==null?void 0:i.size)||(a==null?void 0:a.size)||s.value||"")},Yr=e=>{const t=mu("disabled"),r=n.inject(va,void 0);return n.computed(()=>t.value||n.unref(e)||(r==null?void 0:r.disabled)||!1)},Jr=()=>{const e=n.inject(va,void 0),t=n.inject(Xr,void 0);return{form:e,formItem:t}},Gu=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:o})=>{r||(r=n.ref(!1)),o||(o=n.ref(!1));const s=n.ref();let a;const i=n.computed(()=>{var c;return!!(!e.label&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return n.onMounted(()=>{a=n.watch([n.toRef(e,"id"),r],([c,l])=>{const f=c??(l?void 0:Zr().value);f!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(o!=null&&o.value)&&!l&&f&&t.addInputId(f)),s.value=f)},{immediate:!0})}),n.onUnmounted(()=>{a&&a(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:i,inputId:s}};let bt;const Nk=`
7
+ height:0 !important;
8
+ visibility:hidden !important;
9
+ ${D_()?"":"overflow:hidden !important;"}
10
+ position:absolute !important;
11
+ z-index:-1000 !important;
12
+ top:0 !important;
13
+ right:0 !important;
14
+ `,Bk=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Ik(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Bk.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:r}}function Ku(e,t=1,r){var o;bt||(bt=document.createElement("textarea"),document.body.appendChild(bt));const{paddingSize:s,borderSize:a,boxSizing:i,contextStyle:c}=Ik(e);bt.setAttribute("style",`${c};${Nk}`),bt.value=e.value||e.placeholder||"";let l=bt.scrollHeight;const f={};i==="border-box"?l=l+a:i==="content-box"&&(l=l-s),bt.value="";const d=bt.scrollHeight-s;if(Ee(t)){let u=d*t;i==="border-box"&&(u=u+s+a),l=Math.max(u,l),f.minHeight=`${u}px`}if(Ee(r)){let u=d*r;i==="border-box"&&(u=u+s+a),l=Math.min(u,l)}return f.height=`${l}px`,(o=bt.parentNode)==null||o.removeChild(bt),bt=void 0,f}const $k=pe({id:{type:String,default:void 0},size:ka,disabled:Boolean,modelValue:{type:ne([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ne([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:mt},prefixIcon:{type:mt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ne([Object,Array,String]),default:()=>la({})},autofocus:{type:Boolean,default:!1}}),Rk={[Ue]:e=>pt(e),input:e=>pt(e),change:e=>pt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Ok=["role"],Mk=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],zk=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Lk=n.defineComponent({name:"ElInput",inheritAttrs:!1}),Dk=n.defineComponent({...Lk,props:$k,emits:Rk,setup(e,{expose:t,emit:r}){const o=e,s=n.useAttrs(),a=n.useSlots(),i=n.computed(()=>{const F={};return o.containerRole==="combobox"&&(F["aria-haspopup"]=s["aria-haspopup"],F["aria-owns"]=s["aria-owns"],F["aria-expanded"]=s["aria-expanded"]),F}),c=n.computed(()=>[o.type==="textarea"?b.b():m.b(),m.m(p.value),m.is("disabled",_.value),m.is("exceed",_e.value),{[m.b("group")]:a.prepend||a.append,[m.bm("group","append")]:a.append,[m.bm("group","prepend")]:a.prepend,[m.m("prefix")]:a.prefix||o.prefixIcon,[m.m("suffix")]:a.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:P.value&&ee.value},s.class]),l=n.computed(()=>[m.e("wrapper"),m.is("focus",B.value)]),f=Kw({excludeKeys:n.computed(()=>Object.keys(i.value))}),{form:d,formItem:u}=Jr(),{inputId:g}=Gu(o,{formItemContext:u}),p=pr(),_=Yr(),m=ce("input"),b=ce("textarea"),h=n.shallowRef(),y=n.shallowRef(),w=n.ref(!1),k=n.ref(!1),E=n.ref(!1),C=n.ref(),x=n.shallowRef(o.inputStyle),S=n.computed(()=>h.value||y.value),{wrapperRef:N,isFocused:B,handleFocus:$,handleBlur:L}=Hu(S,{afterBlur(){var F;o.validateEvent&&((F=u==null?void 0:u.validate)==null||F.call(u,"blur").catch(J=>void 0))}}),G=n.computed(()=>{var F;return(F=d==null?void 0:d.statusIcon)!=null?F:!1}),I=n.computed(()=>(u==null?void 0:u.validateState)||""),D=n.computed(()=>I.value&&du[I.value]),R=n.computed(()=>E.value?qw:Rw),O=n.computed(()=>[s.style,o.inputStyle]),z=n.computed(()=>[o.inputStyle,x.value,{resize:o.resize}]),q=n.computed(()=>dn(o.modelValue)?"":String(o.modelValue)),P=n.computed(()=>o.clearable&&!_.value&&!o.readonly&&!!q.value&&(B.value||w.value)),ee=n.computed(()=>o.showPassword&&!_.value&&!o.readonly&&!!q.value&&(!!q.value||B.value)),Y=n.computed(()=>o.showWordLimit&&!!f.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!_.value&&!o.readonly&&!o.showPassword),de=n.computed(()=>q.value.length),_e=n.computed(()=>!!Y.value&&de.value>Number(f.value.maxlength)),we=n.computed(()=>!!a.suffix||!!o.suffixIcon||P.value||o.showPassword||Y.value||!!I.value&&G.value),[$e,je]=wk(h);$r(y,F=>{if(K(),!Y.value||o.resize!=="both")return;const J=F[0],{width:me}=J.contentRect;C.value={right:`calc(100% - ${me+15+6}px)`}});const xe=()=>{const{type:F,autosize:J}=o;if(!(!Me||F!=="textarea"||!y.value))if(J){const me=ht(J)?J.minRows:void 0,Se=ht(J)?J.maxRows:void 0,Et=Ku(y.value,me,Se);x.value={overflowY:"hidden",...Et},n.nextTick(()=>{y.value.offsetHeight,x.value=Et})}else x.value={minHeight:Ku(y.value).minHeight}},K=(F=>{let J=!1;return()=>{var me;if(J||!o.autosize)return;((me=y.value)==null?void 0:me.offsetParent)===null||(F(),J=!0)}})(xe),ae=()=>{const F=S.value,J=o.formatter?o.formatter(q.value):q.value;!F||F.value===J||(F.value=J)},Ce=async F=>{$e();let{value:J}=F.target;if(o.formatter&&(J=o.parser?o.parser(J):J),!k.value){if(J===q.value){ae();return}r(Ue,J),r("input",J),await n.nextTick(),ae(),je()}},Re=F=>{r("change",F.target.value)},Xe=F=>{r("compositionstart",F),k.value=!0},kt=F=>{var J;r("compositionupdate",F);const me=(J=F.target)==null?void 0:J.value,Se=me[me.length-1]||"";k.value=!pu(Se)},et=F=>{r("compositionend",F),k.value&&(k.value=!1,Ce(F))},Rt=()=>{E.value=!E.value,tt()},tt=async()=>{var F;await n.nextTick(),(F=S.value)==null||F.focus()},vt=()=>{var F;return(F=S.value)==null?void 0:F.blur()},De=F=>{w.value=!1,r("mouseleave",F)},dt=F=>{w.value=!0,r("mouseenter",F)},nt=F=>{r("keydown",F)},Ct=()=>{var F;(F=S.value)==null||F.select()},Ne=()=>{r(Ue,""),r("change",""),r("clear"),r("input","")};return n.watch(()=>o.modelValue,()=>{var F;n.nextTick(()=>xe()),o.validateEvent&&((F=u==null?void 0:u.validate)==null||F.call(u,"change").catch(J=>void 0))}),n.watch(q,()=>ae()),n.watch(()=>o.type,async()=>{await n.nextTick(),ae(),xe()}),n.onMounted(()=>{!o.formatter&&o.parser,ae(),n.nextTick(xe)}),t({input:h,textarea:y,ref:S,textareaStyle:z,autosize:n.toRef(o,"autosize"),focus:tt,blur:vt,select:Ct,clear:Ne,resizeTextarea:xe}),(F,J)=>n.withDirectives((n.openBlock(),n.createElementBlock("div",n.mergeProps(n.unref(i),{class:n.unref(c),style:n.unref(O),role:F.containerRole,onMouseenter:dt,onMouseleave:De}),[n.createCommentVNode(" input "),F.type!=="textarea"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createCommentVNode(" prepend slot "),F.$slots.prepend?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(m).be("group","prepend"))},[n.renderSlot(F.$slots,"prepend")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref_key:"wrapperRef",ref:N,class:n.normalizeClass(n.unref(l))},[n.createCommentVNode(" prefix slot "),F.$slots.prefix||F.prefixIcon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(m).e("prefix"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(m).e("prefix-inner"))},[n.renderSlot(F.$slots,"prefix"),F.prefixIcon?(n.openBlock(),n.createBlock(n.unref(We),{key:0,class:n.normalizeClass(n.unref(m).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(F.prefixIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("input",n.mergeProps({id:n.unref(g),ref_key:"input",ref:h,class:n.unref(m).e("inner")},n.unref(f),{type:F.showPassword?E.value?"text":"password":F.type,disabled:n.unref(_),formatter:F.formatter,parser:F.parser,readonly:F.readonly,autocomplete:F.autocomplete,tabindex:F.tabindex,"aria-label":F.label,placeholder:F.placeholder,style:F.inputStyle,form:o.form,autofocus:o.autofocus,onCompositionstart:Xe,onCompositionupdate:kt,onCompositionend:et,onInput:Ce,onFocus:J[0]||(J[0]=(...me)=>n.unref($)&&n.unref($)(...me)),onBlur:J[1]||(J[1]=(...me)=>n.unref(L)&&n.unref(L)(...me)),onChange:Re,onKeydown:nt}),null,16,Mk),n.createCommentVNode(" suffix slot "),n.unref(we)?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(n.unref(m).e("suffix"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(m).e("suffix-inner"))},[!n.unref(P)||!n.unref(ee)||!n.unref(Y)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(F.$slots,"suffix"),F.suffixIcon?(n.openBlock(),n.createBlock(n.unref(We),{key:0,class:n.normalizeClass(n.unref(m).e("icon"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(F.suffixIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],64)):n.createCommentVNode("v-if",!0),n.unref(P)?(n.openBlock(),n.createBlock(n.unref(We),{key:1,class:n.normalizeClass([n.unref(m).e("icon"),n.unref(m).e("clear")]),onMousedown:n.withModifiers(n.unref(Qn),["prevent"]),onClick:Ne},{default:n.withCtx(()=>[n.createVNode(n.unref(sa))]),_:1},8,["class","onMousedown"])):n.createCommentVNode("v-if",!0),n.unref(ee)?(n.openBlock(),n.createBlock(n.unref(We),{key:2,class:n.normalizeClass([n.unref(m).e("icon"),n.unref(m).e("password")]),onClick:Rt},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(R))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.unref(Y)?(n.openBlock(),n.createElementBlock("span",{key:3,class:n.normalizeClass(n.unref(m).e("count"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(m).e("count-inner"))},n.toDisplayString(n.unref(de))+" / "+n.toDisplayString(n.unref(f).maxlength),3)],2)):n.createCommentVNode("v-if",!0),n.unref(I)&&n.unref(D)&&n.unref(G)?(n.openBlock(),n.createBlock(n.unref(We),{key:4,class:n.normalizeClass([n.unref(m).e("icon"),n.unref(m).e("validateIcon"),n.unref(m).is("loading",n.unref(I)==="validating")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(n.unref(D))))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],2)):n.createCommentVNode("v-if",!0)],2),n.createCommentVNode(" append slot "),F.$slots.append?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(n.unref(m).be("group","append"))},[n.renderSlot(F.$slots,"append")],2)):n.createCommentVNode("v-if",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createCommentVNode(" textarea "),n.createElementVNode("textarea",n.mergeProps({id:n.unref(g),ref_key:"textarea",ref:y,class:n.unref(b).e("inner")},n.unref(f),{tabindex:F.tabindex,disabled:n.unref(_),readonly:F.readonly,autocomplete:F.autocomplete,style:n.unref(z),"aria-label":F.label,placeholder:F.placeholder,form:o.form,autofocus:o.autofocus,onCompositionstart:Xe,onCompositionupdate:kt,onCompositionend:et,onInput:Ce,onFocus:J[2]||(J[2]=(...me)=>n.unref($)&&n.unref($)(...me)),onBlur:J[3]||(J[3]=(...me)=>n.unref(L)&&n.unref(L)(...me)),onChange:Re,onKeydown:nt}),null,16,zk),n.unref(Y)?(n.openBlock(),n.createElementBlock("span",{key:0,style:n.normalizeStyle(C.value),class:n.normalizeClass(n.unref(m).e("count"))},n.toDisplayString(n.unref(de))+" / "+n.toDisplayString(n.unref(f).maxlength),7)):n.createCommentVNode("v-if",!0)],64))],16,Ok)),[[n.vShow,F.type!=="hidden"]])}});var qk=oe(Dk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Qr=it(qk),Ln=4,Pk={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},Fk=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),Wu=Symbol("scrollbarContextKey"),Vk=pe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),jk="Thumb";var Zu=oe(n.defineComponent({__name:"thumb",props:Vk,setup(e){const t=e,r=n.inject(Wu),o=ce("scrollbar");r||_w(jk,"can not inject scrollbar context");const s=n.ref(),a=n.ref(),i=n.ref({}),c=n.ref(!1);let l=!1,f=!1,d=Me?document.onselectstart:null;const u=n.computed(()=>Pk[t.vertical?"vertical":"horizontal"]),g=n.computed(()=>Fk({size:t.size,move:t.move,bar:u.value})),p=n.computed(()=>s.value[u.value.offset]**2/r.wrapElement[u.value.scrollSize]/t.ratio/a.value[u.value.offset]),_=C=>{var x;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(x=window.getSelection())==null||x.removeAllRanges(),b(C);const S=C.currentTarget;S&&(i.value[u.value.axis]=S[u.value.offset]-(C[u.value.client]-S.getBoundingClientRect()[u.value.direction]))},m=C=>{if(!a.value||!s.value||!r.wrapElement)return;const x=Math.abs(C.target.getBoundingClientRect()[u.value.direction]-C[u.value.client]),S=a.value[u.value.offset]/2,N=(x-S)*100*p.value/s.value[u.value.offset];r.wrapElement[u.value.scroll]=N*r.wrapElement[u.value.scrollSize]/100},b=C=>{C.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",h),document.addEventListener("mouseup",y),d=document.onselectstart,document.onselectstart=()=>!1},h=C=>{if(!s.value||!a.value||l===!1)return;const x=i.value[u.value.axis];if(!x)return;const S=(s.value.getBoundingClientRect()[u.value.direction]-C[u.value.client])*-1,N=a.value[u.value.offset]-x,B=(S-N)*100*p.value/s.value[u.value.offset];r.wrapElement[u.value.scroll]=B*r.wrapElement[u.value.scrollSize]/100},y=()=>{l=!1,i.value[u.value.axis]=0,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",y),E(),f&&(c.value=!1)},w=()=>{f=!1,c.value=!!t.size},k=()=>{f=!0,c.value=l};n.onBeforeUnmount(()=>{E(),document.removeEventListener("mouseup",y)});const E=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return ln(n.toRef(r,"scrollbarElement"),"mousemove",w),ln(n.toRef(r,"scrollbarElement"),"mouseleave",k),(C,x)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(o).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:s,class:n.normalizeClass([n.unref(o).e("bar"),n.unref(o).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:a,class:n.normalizeClass(n.unref(o).e("thumb")),style:n.normalizeStyle(n.unref(g)),onMousedown:_},null,38)],34),[[n.vShow,C.always||c.value]])]),_:1},8,["name"]))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Hk=pe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}});var Uk=oe(n.defineComponent({__name:"bar",props:Hk,setup(e,{expose:t}){const r=e,o=n.ref(0),s=n.ref(0);return t({handleScroll:i=>{if(i){const c=i.offsetHeight-Ln,l=i.offsetWidth-Ln;s.value=i.scrollTop*100/c*r.ratioY,o.value=i.scrollLeft*100/l*r.ratioX}}}),(i,c)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(Zu,{move:o.value,ratio:i.ratioX,size:i.width,always:i.always},null,8,["move","ratio","size","always"]),n.createVNode(Zu,{move:s.value,ratio:i.ratioY,size:i.height,vertical:"",always:i.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Gk=pe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ne([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},id:String,role:String,ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical"]}}),Kk={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ee)},Wk=n.defineComponent({name:"ElScrollbar"}),Zk=n.defineComponent({...Wk,props:Gk,emits:Kk,setup(e,{expose:t,emit:r}){const o=e,s=ce("scrollbar");let a,i;const c=n.ref(),l=n.ref(),f=n.ref(),d=n.ref("0"),u=n.ref("0"),g=n.ref(),p=n.ref(1),_=n.ref(1),m=n.computed(()=>{const x={};return o.height&&(x.height=Bn(o.height)),o.maxHeight&&(x.maxHeight=Bn(o.maxHeight)),[o.wrapStyle,x]}),b=n.computed(()=>[o.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!o.native}]),h=n.computed(()=>[s.e("view"),o.viewClass]),y=()=>{var x;l.value&&((x=g.value)==null||x.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function w(x,S){ht(x)?l.value.scrollTo(x):Ee(x)&&Ee(S)&&l.value.scrollTo(x,S)}const k=x=>{Ee(x)&&(l.value.scrollTop=x)},E=x=>{Ee(x)&&(l.value.scrollLeft=x)},C=()=>{if(!l.value)return;const x=l.value.offsetHeight-Ln,S=l.value.offsetWidth-Ln,N=x**2/l.value.scrollHeight,B=S**2/l.value.scrollWidth,$=Math.max(N,o.minSize),L=Math.max(B,o.minSize);p.value=N/(x-N)/($/(x-$)),_.value=B/(S-B)/(L/(S-L)),u.value=$+Ln<x?`${$}px`:"",d.value=L+Ln<S?`${L}px`:""};return n.watch(()=>o.noresize,x=>{x?(a==null||a(),i==null||i()):({stop:a}=$r(f,C),i=ln("resize",C))},{immediate:!0}),n.watch(()=>[o.maxHeight,o.height],()=>{o.native||n.nextTick(()=>{var x;C(),l.value&&((x=g.value)==null||x.handleScroll(l.value))})}),n.provide(Wu,n.reactive({scrollbarElement:c,wrapElement:l})),n.onMounted(()=>{o.native||n.nextTick(()=>{C()})}),n.onUpdated(()=>C()),t({wrapRef:l,update:C,scrollTo:w,setScrollTop:k,setScrollLeft:E,handleScroll:y}),(x,S)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:c,class:n.normalizeClass(n.unref(s).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:l,class:n.normalizeClass(n.unref(b)),style:n.normalizeStyle(n.unref(m)),onScroll:y},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(x.tag),{id:x.id,ref_key:"resizeRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(x.viewStyle),role:x.role,"aria-label":x.ariaLabel,"aria-orientation":x.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(x.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],38),x.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Uk,{key:0,ref_key:"barRef",ref:g,height:u.value,width:d.value,always:x.always,"ratio-x":_.value,"ratio-y":p.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Xk=oe(Zk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Yk=it(Xk),Ca=Symbol("popper"),Xu=Symbol("popperContent"),Yu=pe({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Jk=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),Qk=n.defineComponent({...Jk,props:Yu,setup(e,{expose:t}){const r=e,o=n.ref(),s=n.ref(),a=n.ref(),i=n.ref(),c=n.computed(()=>r.role),l={triggerRef:o,popperInstanceRef:s,contentRef:a,referenceRef:i,role:c};return t(l),n.provide(Ca,l),(f,d)=>n.renderSlot(f.$slots,"default")}});var ev=oe(Qk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Ju=pe({arrowOffset:{type:Number,default:5}}),tv=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),nv=n.defineComponent({...tv,props:Ju,setup(e,{expose:t}){const r=e,o=ce("popper"),{arrowOffset:s,arrowRef:a,arrowStyle:i}=n.inject(Xu,void 0);return n.watch(()=>r.arrowOffset,c=>{s.value=c}),n.onBeforeUnmount(()=>{a.value=void 0}),t({arrowRef:a}),(c,l)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:n.normalizeClass(n.unref(o).e("arrow")),style:n.normalizeStyle(n.unref(i)),"data-popper-arrow":""},null,6))}});var rv=oe(nv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const ov=n.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:r}){var o;const s=n.inject(Vu),a=gk((o=s==null?void 0:s.setForwardRef)!=null?o:Qn);return()=>{var i;const c=(i=t.default)==null?void 0:i.call(t,r);if(!c||c.length>1)return null;const l=Qu(c);return l?n.withDirectives(n.cloneVNode(l,r),[[a]]):null}}});function Qu(e){if(!e)return null;const t=e;for(const r of t){if(ht(r))switch(r.type){case n.Comment:continue;case n.Text:case"svg":return ef(r);case n.Fragment:return Qu(r.children);default:return r}return ef(r)}return null}function ef(e){const t=ce("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const tf=pe({virtualRef:{type:ne(Object)},virtualTriggering:Boolean,onMouseenter:{type:ne(Function)},onMouseleave:{type:ne(Function)},onClick:{type:ne(Function)},onKeydown:{type:ne(Function)},onFocus:{type:ne(Function)},onBlur:{type:ne(Function)},onContextmenu:{type:ne(Function)},id:String,open:Boolean}),av=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),sv=n.defineComponent({...av,props:tf,setup(e,{expose:t}){const r=e,{role:o,triggerRef:s}=n.inject(Ca,void 0);mk(s);const a=n.computed(()=>c.value?r.id:void 0),i=n.computed(()=>{if(o&&o.value==="tooltip")return r.open&&r.id?r.id:void 0}),c=n.computed(()=>{if(o&&o.value!=="tooltip")return o.value}),l=n.computed(()=>c.value?`${r.open}`:void 0);let f;return n.onMounted(()=>{n.watch(()=>r.virtualRef,d=>{d&&(s.value=Zt(d))},{immediate:!0}),n.watch(s,(d,u)=>{f==null||f(),f=void 0,or(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var p;const _=r[g];_&&(d.addEventListener(g.slice(2).toLowerCase(),_),(p=u==null?void 0:u.removeEventListener)==null||p.call(u,g.slice(2).toLowerCase(),_))}),f=n.watch([a,i,c,l],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,_)=>{dn(g[_])?d.removeAttribute(p):d.setAttribute(p,g[_])})},{immediate:!0})),or(u)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>u.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{f==null||f(),f=void 0}),t({triggerRef:s}),(d,u)=>d.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(ov),n.mergeProps({key:0},d.$attrs,{"aria-controls":n.unref(a),"aria-describedby":n.unref(i),"aria-expanded":n.unref(l),"aria-haspopup":n.unref(c)}),{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var iv=oe(sv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Ea="focus-trap.focus-after-trapped",xa="focus-trap.focus-after-released",cv="focus-trap.focusout-prevented",nf={cancelable:!0,bubbles:!1},lv={cancelable:!0,bubbles:!1},rf="focusAfterTrapped",of="focusAfterReleased",uv=Symbol("elFocusTrap"),Sa=n.ref(),eo=n.ref(0),Aa=n.ref(0);let to=0;const af=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},sf=(e,t)=>{for(const r of e)if(!fv(r,t))return r},fv=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},dv=e=>{const t=af(e),r=sf(t,e),o=sf(t.reverse(),e);return[r,o]},pv=e=>e instanceof HTMLInputElement&&"select"in e,Qt=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Aa.value=window.performance.now(),e!==r&&pv(e)&&t&&e.select()}};function cf(e,t){const r=[...e],o=e.indexOf(t);return o!==-1&&r.splice(o,1),r}const hv=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=cf(e,o),e.unshift(o)},remove:o=>{var s,a;e=cf(e,o),(a=(s=e[0])==null?void 0:s.resume)==null||a.call(s)}}},mv=(e,t=!1)=>{const r=document.activeElement;for(const o of e)if(Qt(o,t),document.activeElement!==r)return},lf=hv(),gv=()=>eo.value>Aa.value,no=()=>{Sa.value="pointer",eo.value=window.performance.now()},uf=()=>{Sa.value="keyboard",eo.value=window.performance.now()},_v=()=>(n.onMounted(()=>{to===0&&(document.addEventListener("mousedown",no),document.addEventListener("touchstart",no),document.addEventListener("keydown",uf)),to++}),n.onBeforeUnmount(()=>{to--,to<=0&&(document.removeEventListener("mousedown",no),document.removeEventListener("touchstart",no),document.removeEventListener("keydown",uf))}),{focusReason:Sa,lastUserFocusTimestamp:eo,lastAutomatedFocusTimestamp:Aa}),ro=e=>new CustomEvent(cv,{...lv,detail:e}),bv=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[rf,of,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=n.ref();let o,s;const{focusReason:a}=_v();uk(_=>{e.trapped&&!i.paused&&t("release-requested",_)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=_=>{if(!e.loop&&!e.trapped||i.paused)return;const{key:m,altKey:b,ctrlKey:h,metaKey:y,currentTarget:w,shiftKey:k}=_,{loop:E}=e,C=m===Vt.tab&&!b&&!h&&!y,x=document.activeElement;if(C&&x){const S=w,[N,B]=dv(S);if(N&&B){if(!k&&x===B){const L=ro({focusReason:a.value});t("focusout-prevented",L),L.defaultPrevented||(_.preventDefault(),E&&Qt(N,!0))}else if(k&&[N,S].includes(x)){const L=ro({focusReason:a.value});t("focusout-prevented",L),L.defaultPrevented||(_.preventDefault(),E&&Qt(B,!0))}}else if(x===S){const L=ro({focusReason:a.value});t("focusout-prevented",L),L.defaultPrevented||_.preventDefault()}}};n.provide(uv,{focusTrapRef:r,onKeydown:c}),n.watch(()=>e.focusTrapEl,_=>{_&&(r.value=_)},{immediate:!0}),n.watch([r],([_],[m])=>{_&&(_.addEventListener("keydown",c),_.addEventListener("focusin",d),_.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",c),m.removeEventListener("focusin",d),m.removeEventListener("focusout",u))});const l=_=>{t(rf,_)},f=_=>t(of,_),d=_=>{const m=n.unref(r);if(!m)return;const b=_.target,h=_.relatedTarget,y=b&&m.contains(b);e.trapped||h&&m.contains(h)||(o=h),y&&t("focusin",_),!i.paused&&e.trapped&&(y?s=b:Qt(s,!0))},u=_=>{const m=n.unref(r);if(!(i.paused||!m))if(e.trapped){const b=_.relatedTarget;!dn(b)&&!m.contains(b)&&setTimeout(()=>{if(!i.paused&&e.trapped){const h=ro({focusReason:a.value});t("focusout-prevented",h),h.defaultPrevented||Qt(s,!0)}},0)}else{const b=_.target;b&&m.contains(b)||t("focusout",_)}};async function g(){await n.nextTick();const _=n.unref(r);if(_){lf.push(i);const m=_.contains(document.activeElement)?o:document.activeElement;if(o=m,!_.contains(m)){const h=new Event(Ea,nf);_.addEventListener(Ea,l),_.dispatchEvent(h),h.defaultPrevented||n.nextTick(()=>{let y=e.focusStartEl;pt(y)||(Qt(y),document.activeElement!==y&&(y="first")),y==="first"&&mv(af(_),!0),(document.activeElement===m||y==="container")&&Qt(_)})}}}function p(){const _=n.unref(r);if(_){_.removeEventListener(Ea,l);const m=new CustomEvent(xa,{...nf,detail:{focusReason:a.value}});_.addEventListener(xa,f),_.dispatchEvent(m),!m.defaultPrevented&&(a.value=="keyboard"||!gv()||_.contains(document.activeElement))&&Qt(o??document.body),_.removeEventListener(xa,f),lf.remove(i)}}return n.onMounted(()=>{e.trapped&&g(),n.watch(()=>e.trapped,_=>{_?g():p()})}),n.onBeforeUnmount(()=>{e.trapped&&p()}),{onKeydown:c}}});function yv(e,t,r,o,s,a){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var wv=oe(bv,[["render",yv],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const kv=["fixed","absolute"],vv=pe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ne(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Hr,default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},strategy:{type:String,values:kv,default:"absolute"}}),ff=pe({...vv,id:String,style:{type:ne([String,Array,Object])},className:{type:ne([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ne([String,Array,Object])},popperStyle:{type:ne([String,Array,Object])},referenceEl:{type:ne(Object)},triggerTargetEl:{type:ne(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Cv={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Ev=(e,t=[])=>{const{placement:r,strategy:o,popperOptions:s}=e,a={placement:r,strategy:o,...s,modifiers:[...Sv(e),...t]};return Av(a,s==null?void 0:s.modifiers),a},xv=e=>{if(Me)return Zt(e)};function Sv(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function Av(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Tv=0,Nv=e=>{const{popperInstanceRef:t,contentRef:r,triggerRef:o,role:s}=n.inject(Ca,void 0),a=n.ref(),i=n.ref(),c=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),l=n.computed(()=>{var h;const y=n.unref(a),w=(h=n.unref(i))!=null?h:Tv;return{name:"arrow",enabled:!pw(y),options:{element:y,padding:w}}}),f=n.computed(()=>({onFirstUpdate:()=>{_()},...Ev(e,[n.unref(l),n.unref(c)])})),d=n.computed(()=>xv(e.referenceEl)||n.unref(o)),{attributes:u,state:g,styles:p,update:_,forceUpdate:m,instanceRef:b}=sk(d,r,f);return n.watch(b,h=>t.value=h),n.onMounted(()=>{n.watch(()=>{var h;return(h=n.unref(d))==null?void 0:h.getBoundingClientRect()},()=>{_()})}),{attributes:u,arrowRef:a,contentRef:r,instanceRef:b,state:g,styles:p,role:s,forceUpdate:m,update:_}},Bv=(e,{attributes:t,styles:r,role:o})=>{const{nextZIndex:s}=yk(),a=ce("popper"),i=n.computed(()=>n.unref(t).popper),c=n.ref(Ee(e.zIndex)?e.zIndex:s()),l=n.computed(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),f=n.computed(()=>[{zIndex:n.unref(c)},n.unref(r).popper,e.popperStyle||{}]),d=n.computed(()=>o.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(r).arrow||{});return{ariaModal:d,arrowStyle:u,contentAttrs:i,contentClass:l,contentStyle:f,contentZIndex:c,updateZIndex:()=>{c.value=Ee(e.zIndex)?e.zIndex:s()}}},Iv=(e,t)=>{const r=n.ref(!1),o=n.ref();return{focusStartRef:o,trapped:r,onFocusAfterReleased:f=>{var d;((d=f.detail)==null?void 0:d.focusReason)!=="pointer"&&(o.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:f=>{e.visible&&!r.value&&(f.target&&(o.value=f.target),r.value=!0)},onFocusoutPrevented:f=>{e.trapping||(f.detail.focusReason==="pointer"&&f.preventDefault(),r.value=!1)},onReleaseRequested:()=>{r.value=!1,t("close")}}},$v=n.defineComponent({name:"ElPopperContent"}),Rv=n.defineComponent({...$v,props:ff,emits:Cv,setup(e,{expose:t,emit:r}){const o=e,{focusStartRef:s,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:l,onFocusoutPrevented:f,onReleaseRequested:d}=Iv(o,r),{attributes:u,arrowRef:g,contentRef:p,styles:_,instanceRef:m,role:b,update:h}=Nv(o),{ariaModal:y,arrowStyle:w,contentAttrs:k,contentClass:E,contentStyle:C,updateZIndex:x}=Bv(o,{styles:_,attributes:u,role:b}),S=n.inject(Xr,void 0),N=n.ref();n.provide(Xu,{arrowStyle:w,arrowRef:g,arrowOffset:N}),S&&(S.addInputId||S.removeInputId)&&n.provide(Xr,{...S,addInputId:Qn,removeInputId:Qn});let B;const $=(G=!0)=>{h(),G&&x()},L=()=>{$(!1),o.visible&&o.focusOnShow?a.value=!0:o.visible===!1&&(a.value=!1)};return n.onMounted(()=>{n.watch(()=>o.triggerTargetEl,(G,I)=>{B==null||B(),B=void 0;const D=n.unref(G||p.value),R=n.unref(I||p.value);or(D)&&(B=n.watch([b,()=>o.ariaLabel,y,()=>o.id],O=>{["role","aria-label","aria-modal","id"].forEach((z,q)=>{dn(O[q])?D.removeAttribute(z):D.setAttribute(z,O[q])})},{immediate:!0})),R!==D&&or(R)&&["role","aria-label","aria-modal","id"].forEach(O=>{R.removeAttribute(O)})},{immediate:!0}),n.watch(()=>o.visible,L,{immediate:!0})}),n.onBeforeUnmount(()=>{B==null||B(),B=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:$,contentStyle:C}),(G,I)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:p},n.unref(k),{style:n.unref(C),class:n.unref(E),tabindex:"-1",onMouseenter:I[0]||(I[0]=D=>G.$emit("mouseenter",D)),onMouseleave:I[1]||(I[1]=D=>G.$emit("mouseleave",D))}),[n.createVNode(n.unref(wv),{trapped:n.unref(a),"trap-on-focus-in":!0,"focus-trap-el":n.unref(p),"focus-start-el":n.unref(s),onFocusAfterTrapped:n.unref(c),onFocusAfterReleased:n.unref(i),onFocusin:n.unref(l),onFocusoutPrevented:n.unref(f),onReleaseRequested:n.unref(d)},{default:n.withCtx(()=>[n.renderSlot(G.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Ov=oe(Rv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Mv=it(ev),Ta=Symbol("elTooltip"),Je=pe({...pk,...ff,appendTo:{type:ne([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ne(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),hr=pe({...tf,disabled:Boolean,trigger:{type:ne([String,Array]),default:"hover"},triggerKeys:{type:ne(Array),default:()=>[Vt.enter,Vt.space]}}),{useModelToggleProps:zv,useModelToggleEmits:Lv,useModelToggle:Dv}=r1("visible"),qv=pe({...Yu,...zv,...Je,...hr,...Ju,showArrow:{type:Boolean,default:!0}}),Pv=[...Lv,"before-show","before-hide","show","hide","open","close"],Fv=(e,t)=>P_(e)?e.includes(t):e===t,Dn=(e,t,r)=>o=>{Fv(n.unref(e),t)&&r(o)},Vv=n.defineComponent({name:"ElTooltipTrigger"}),jv=n.defineComponent({...Vv,props:hr,setup(e,{expose:t}){const r=e,o=ce("tooltip"),{controlled:s,id:a,open:i,onOpen:c,onClose:l,onToggle:f}=n.inject(Ta,void 0),d=n.ref(null),u=()=>{if(n.unref(s)||r.disabled)return!0},g=n.toRef(r,"trigger"),p=Lt(u,Dn(g,"hover",c)),_=Lt(u,Dn(g,"hover",l)),m=Lt(u,Dn(g,"click",k=>{k.button===0&&f(k)})),b=Lt(u,Dn(g,"focus",c)),h=Lt(u,Dn(g,"focus",l)),y=Lt(u,Dn(g,"contextmenu",k=>{k.preventDefault(),f(k)})),w=Lt(u,k=>{const{code:E}=k;r.triggerKeys.includes(E)&&(k.preventDefault(),f(k))});return t({triggerRef:d}),(k,E)=>(n.openBlock(),n.createBlock(n.unref(iv),{id:n.unref(a),"virtual-ref":k.virtualRef,open:n.unref(i),"virtual-triggering":k.virtualTriggering,class:n.normalizeClass(n.unref(o).e("trigger")),onBlur:n.unref(h),onClick:n.unref(m),onContextmenu:n.unref(y),onFocus:n.unref(b),onMouseenter:n.unref(p),onMouseleave:n.unref(_),onKeydown:n.unref(w)},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Hv=oe(jv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Uv=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Gv=n.defineComponent({...Uv,props:Je,setup(e,{expose:t}){const r=e,{selector:o}=Fu(),s=ce("tooltip"),a=n.ref(null),i=n.ref(!1),{controlled:c,id:l,open:f,trigger:d,onClose:u,onOpen:g,onShow:p,onHide:_,onBeforeShow:m,onBeforeHide:b}=n.inject(Ta,void 0),h=n.computed(()=>r.transition||`${s.namespace.value}-fade-in-linear`),y=n.computed(()=>r.persistent);n.onBeforeUnmount(()=>{i.value=!0});const w=n.computed(()=>n.unref(y)?!0:n.unref(f)),k=n.computed(()=>r.disabled?!1:n.unref(f)),E=n.computed(()=>r.appendTo||o.value),C=n.computed(()=>{var O;return(O=r.style)!=null?O:{}}),x=n.computed(()=>!n.unref(f)),S=()=>{_()},N=()=>{if(n.unref(c))return!0},B=Lt(N,()=>{r.enterable&&n.unref(d)==="hover"&&g()}),$=Lt(N,()=>{n.unref(d)==="hover"&&u()}),L=()=>{var O,z;(z=(O=a.value)==null?void 0:O.updatePopper)==null||z.call(O),m==null||m()},G=()=>{b==null||b()},I=()=>{p(),R=N_(n.computed(()=>{var O;return(O=a.value)==null?void 0:O.popperContentRef}),()=>{if(n.unref(c))return;n.unref(d)!=="hover"&&u()})},D=()=>{r.virtualTriggering||u()};let R;return n.watch(()=>n.unref(f),O=>{O||R==null||R()},{flush:"post"}),n.watch(()=>r.content,()=>{var O,z;(z=(O=a.value)==null?void 0:O.updatePopper)==null||z.call(O)}),t({contentRef:a}),(O,z)=>(n.openBlock(),n.createBlock(n.Teleport,{disabled:!O.teleported,to:n.unref(E)},[n.createVNode(n.Transition,{name:n.unref(h),onAfterLeave:S,onBeforeEnter:L,onAfterEnter:I,onBeforeLeave:G},{default:n.withCtx(()=>[n.unref(w)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Ov),n.mergeProps({key:0,id:n.unref(l),ref_key:"contentRef",ref:a},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":n.unref(x),"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,n.unref(C)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:n.unref(k),"z-index":O.zIndex,onMouseenter:n.unref(B),onMouseleave:n.unref($),onBlur:D,onClose:n.unref(u)}),{default:n.withCtx(()=>[i.value?n.createCommentVNode("v-if",!0):n.renderSlot(O.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[n.vShow,n.unref(k)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Kv=oe(Gv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Wv=["innerHTML"],Zv={key:1},Xv=n.defineComponent({name:"ElTooltip"}),Yv=n.defineComponent({...Xv,props:qv,emits:Pv,setup(e,{expose:t,emit:r}){const o=e;dk();const s=Zr(),a=n.ref(),i=n.ref(),c=()=>{var h;const y=n.unref(a);y&&((h=y.popperInstanceRef)==null||h.update())},l=n.ref(!1),f=n.ref(),{show:d,hide:u,hasUpdateHandler:g}=Dv({indicator:l,toggleReason:f}),{onOpen:p,onClose:_}=hk({showAfter:n.toRef(o,"showAfter"),hideAfter:n.toRef(o,"hideAfter"),autoClose:n.toRef(o,"autoClose"),open:d,close:u}),m=n.computed(()=>aa(o.visible)&&!g.value);n.provide(Ta,{controlled:m,id:s,open:n.readonly(l),trigger:n.toRef(o,"trigger"),onOpen:h=>{p(h)},onClose:h=>{_(h)},onToggle:h=>{n.unref(l)?_(h):p(h)},onShow:()=>{r("show",f.value)},onHide:()=>{r("hide",f.value)},onBeforeShow:()=>{r("before-show",f.value)},onBeforeHide:()=>{r("before-hide",f.value)},updatePopper:c}),n.watch(()=>o.disabled,h=>{h&&l.value&&(l.value=!1)});const b=h=>{var y,w;const k=(w=(y=i.value)==null?void 0:y.contentRef)==null?void 0:w.popperContentRef,E=(h==null?void 0:h.relatedTarget)||document.activeElement;return k&&k.contains(E)};return n.onDeactivated(()=>l.value&&u()),t({popperRef:a,contentRef:i,isFocusInsideContent:b,updatePopper:c,onOpen:p,onClose:_,hide:u}),(h,y)=>(n.openBlock(),n.createBlock(n.unref(Mv),{ref_key:"popperRef",ref:a,role:h.role},{default:n.withCtx(()=>[n.createVNode(Hv,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering},{default:n.withCtx(()=>[h.$slots.default?n.renderSlot(h.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(Kv,{ref_key:"contentRef",ref:i,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":h.popperClass,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo},{default:n.withCtx(()=>[n.renderSlot(h.$slots,"content",{},()=>[h.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:h.content},null,8,Wv)):(n.openBlock(),n.createElementBlock("span",Zv,n.toDisplayString(h.content),1))]),h.showArrow?(n.openBlock(),n.createBlock(n.unref(rv),{key:0,"arrow-offset":h.arrowOffset},null,8,["arrow-offset"])):n.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Jv=oe(Yv,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const mr=it(Jv),df=Symbol("buttonGroupContextKey"),Qv=(e,t)=>{hu({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const r=n.inject(df,void 0),o=Ek("button"),{form:s}=Jr(),a=pr(n.computed(()=>r==null?void 0:r.size)),i=Yr(),c=n.ref(),l=n.useSlots(),f=n.computed(()=>e.type||(r==null?void 0:r.type)||""),d=n.computed(()=>{var _,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(_=o.value)==null?void 0:_.autoInsertSpace)!=null?b:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:i.value||e.loading,disabled:i.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=n.computed(()=>{var _;const m=(_=l.default)==null?void 0:_.call(l);if(d.value&&(m==null?void 0:m.length)===1){const b=m[0];if((b==null?void 0:b.type)===n.Text){const h=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(h.trim())}}return!1});return{_disabled:i,_size:a,_type:f,_ref:c,_props:u,shouldAddSpace:g,handleClick:_=>{e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",_)}}},Na=pe({size:ka,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:mt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:mt,default:()=>lu},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ne([String,Object]),default:"button"}}),eC={click:e=>e instanceof MouseEvent};function Ie(e,t){tC(e)&&(e="100%");var r=nC(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function oo(e){return Math.min(1,Math.max(0,e))}function tC(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function nC(e){return typeof e=="string"&&e.indexOf("%")!==-1}function pf(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ao(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mn(e){return e.length===1?"0"+e:String(e)}function rC(e,t,r){return{r:Ie(e,255)*255,g:Ie(t,255)*255,b:Ie(r,255)*255}}function hf(e,t,r){e=Ie(e,255),t=Ie(t,255),r=Ie(r,255);var o=Math.max(e,t,r),s=Math.min(e,t,r),a=0,i=0,c=(o+s)/2;if(o===s)i=0,a=0;else{var l=o-s;switch(i=c>.5?l/(2-o-s):l/(o+s),o){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:i,l:c}}function Ba(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function oC(e,t,r){var o,s,a;if(e=Ie(e,360),t=Ie(t,100),r=Ie(r,100),t===0)s=r,a=r,o=r;else{var i=r<.5?r*(1+t):r+t-r*t,c=2*r-i;o=Ba(c,i,e+1/3),s=Ba(c,i,e),a=Ba(c,i,e-1/3)}return{r:o*255,g:s*255,b:a*255}}function mf(e,t,r){e=Ie(e,255),t=Ie(t,255),r=Ie(r,255);var o=Math.max(e,t,r),s=Math.min(e,t,r),a=0,i=o,c=o-s,l=o===0?0:c/o;if(o===s)a=0;else{switch(o){case e:a=(t-r)/c+(t<r?6:0);break;case t:a=(r-e)/c+2;break;case r:a=(e-t)/c+4;break}a/=6}return{h:a,s:l,v:i}}function aC(e,t,r){e=Ie(e,360)*6,t=Ie(t,100),r=Ie(r,100);var o=Math.floor(e),s=e-o,a=r*(1-t),i=r*(1-s*t),c=r*(1-(1-s)*t),l=o%6,f=[r,i,a,a,c,r][l],d=[c,r,r,i,a,a][l],u=[a,a,c,r,r,i][l];return{r:f*255,g:d*255,b:u*255}}function gf(e,t,r,o){var s=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(r).toString(16))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function sC(e,t,r,o,s){var a=[mn(Math.round(e).toString(16)),mn(Math.round(t).toString(16)),mn(Math.round(r).toString(16)),mn(iC(o))];return s&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function iC(e){return Math.round(parseFloat(e)*255).toString(16)}function _f(e){return Qe(e)/255}function Qe(e){return parseInt(e,16)}function cC(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Ia={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function lC(e){var t={r:0,g:0,b:0},r=1,o=null,s=null,a=null,i=!1,c=!1;return typeof e=="string"&&(e=dC(e)),typeof e=="object"&&(Ht(e.r)&&Ht(e.g)&&Ht(e.b)?(t=rC(e.r,e.g,e.b),i=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ht(e.h)&&Ht(e.s)&&Ht(e.v)?(o=ao(e.s),s=ao(e.v),t=aC(e.h,o,s),i=!0,c="hsv"):Ht(e.h)&&Ht(e.s)&&Ht(e.l)&&(o=ao(e.s),a=ao(e.l),t=oC(e.h,o,a),i=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=pf(r),{ok:i,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var uC="[-\\+]?\\d+%?",fC="[-\\+]?\\d*\\.\\d+%?",en="(?:".concat(fC,")|(?:").concat(uC,")"),$a="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),Ra="[\\s|\\(]+(".concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")[,|\\s]+(").concat(en,")\\s*\\)?"),yt={CSS_UNIT:new RegExp(en),rgb:new RegExp("rgb"+$a),rgba:new RegExp("rgba"+Ra),hsl:new RegExp("hsl"+$a),hsla:new RegExp("hsla"+Ra),hsv:new RegExp("hsv"+$a),hsva:new RegExp("hsva"+Ra),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function dC(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Ia[e])e=Ia[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=yt.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=yt.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=yt.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=yt.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=yt.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=yt.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=yt.hex8.exec(e),r?{r:Qe(r[1]),g:Qe(r[2]),b:Qe(r[3]),a:_f(r[4]),format:t?"name":"hex8"}:(r=yt.hex6.exec(e),r?{r:Qe(r[1]),g:Qe(r[2]),b:Qe(r[3]),format:t?"name":"hex"}:(r=yt.hex4.exec(e),r?{r:Qe(r[1]+r[1]),g:Qe(r[2]+r[2]),b:Qe(r[3]+r[3]),a:_f(r[4]+r[4]),format:t?"name":"hex8"}:(r=yt.hex3.exec(e),r?{r:Qe(r[1]+r[1]),g:Qe(r[2]+r[2]),b:Qe(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Ht(e){return!!yt.CSS_UNIT.exec(String(e))}var pC=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=cC(t)),this.originalInput=t;var s=lC(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=r.format)!==null&&o!==void 0?o:s.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,o,s,a=t.r/255,i=t.g/255,c=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),c<=.03928?s=c/12.92:s=Math.pow((c+.055)/1.055,2.4),.2126*r+.7152*o+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=pf(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=mf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=mf(this.r,this.g,this.b),r=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(r,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=hf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=hf(this.r,this.g,this.b),r=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(r,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),sC(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(o,")"):"rgba(".concat(t,", ").concat(r,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Ie(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Ie(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+gf(this.r,this.g,this.b,!1),r=0,o=Object.entries(Ia);r<o.length;r++){var s=o[r],a=s[0],i=s[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var o=!1,s=this.a<1&&this.a>=0,a=!r&&s&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=oo(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=oo(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=oo(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=oo(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),o=(r.h+t)%360;return r.h=o<0?360+o:o,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var o=this.toRgb(),s=new e(t).toRgb(),a=r/100,i={r:(s.r-o.r)*a+o.r,g:(s.g-o.g)*a+o.g,b:(s.b-o.b)*a+o.b,a:(s.a-o.a)*a+o.a};return new e(i)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var o=this.toHsl(),s=360/r,a=[this];for(o.h=(o.h-(s*t>>1)+720)%360;--t;)o.h=(o.h+s)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),o=r.h,s=r.s,a=r.v,i=[],c=1/t;t--;)i.push(new e({h:o,s,v:a})),a=(a+c)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),o=new e(t).toRgb(),s=r.a+o.a*(1-r.a);return new e({r:(r.r*r.a+o.r*o.a*(1-r.a))/s,g:(r.g*r.a+o.g*o.a*(1-r.a))/s,b:(r.b*r.a+o.b*o.a*(1-r.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),o=r.h,s=[this],a=360/t,i=1;i<t;i++)s.push(new e({h:(o+i*a)%360,s:r.s,l:r.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function tn(e,t=20){return e.mix("#141414",t).toString()}function hC(e){const t=Yr(),r=ce("button");return n.computed(()=>{let o={};const s=e.color;if(s){const a=new pC(s),i=e.dark?a.tint(20).toString():tn(a,20);if(e.plain)o=r.cssVarBlock({"bg-color":e.dark?tn(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?tn(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":i,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[r.cssVarBlockName("disabled-bg-color")]=e.dark?tn(a,90):a.tint(90).toString(),o[r.cssVarBlockName("disabled-text-color")]=e.dark?tn(a,50):a.tint(50).toString(),o[r.cssVarBlockName("disabled-border-color")]=e.dark?tn(a,80):a.tint(80).toString());else{const c=e.dark?tn(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(o=r.cssVarBlock({"bg-color":s,"text-color":l,"border-color":s,"hover-bg-color":c,"hover-text-color":l,"hover-border-color":c,"active-bg-color":i,"active-border-color":i}),t.value){const f=e.dark?tn(a,50):a.tint(50).toString();o[r.cssVarBlockName("disabled-bg-color")]=f,o[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,o[r.cssVarBlockName("disabled-border-color")]=f}}}return o})}const mC=n.defineComponent({name:"ElButton"}),gC=n.defineComponent({...mC,props:Na,emits:eC,setup(e,{expose:t,emit:r}){const o=e,s=hC(o),a=ce("button"),{_ref:i,_size:c,_type:l,_disabled:f,_props:d,shouldAddSpace:u,handleClick:g}=Qv(o,r);return t({ref:i,size:c,type:l,disabled:f,shouldAddSpace:u}),(p,_)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.tag),n.mergeProps({ref_key:"_ref",ref:i},n.unref(d),{class:[n.unref(a).b(),n.unref(a).m(n.unref(l)),n.unref(a).m(n.unref(c)),n.unref(a).is("disabled",n.unref(f)),n.unref(a).is("loading",p.loading),n.unref(a).is("plain",p.plain),n.unref(a).is("round",p.round),n.unref(a).is("circle",p.circle),n.unref(a).is("text",p.text),n.unref(a).is("link",p.link),n.unref(a).is("has-bg",p.bg)],style:n.unref(s),onClick:n.unref(g)}),{default:n.withCtx(()=>[p.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[p.$slots.loading?n.renderSlot(p.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(We),{key:1,class:n.normalizeClass(n.unref(a).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(n.openBlock(),n.createBlock(n.unref(We),{key:1},{default:n.withCtx(()=>[p.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.icon),{key:0})):n.renderSlot(p.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),p.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(a).em("text","expand")]:n.unref(u)})},[n.renderSlot(p.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var _C=oe(gC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const bC={size:Na.size,type:Na.type},yC=n.defineComponent({name:"ElButtonGroup"}),wC=n.defineComponent({...yC,props:bC,setup(e){const t=e;n.provide(df,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const r=ce("button");return(o,s)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(`${n.unref(r).b("group")}`)},[n.renderSlot(o.$slots,"default")],2))}});var bf=oe(wC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const yf=it(_C,{ButtonGroup:bf});jr(bf);const nn=new Map;let wf;Me&&(document.addEventListener("mousedown",e=>wf=e),document.addEventListener("mouseup",e=>{for(const t of nn.values())for(const{documentHandler:r}of t)r(e,wf)}));function kf(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:or(t.arg)&&r.push(t.arg),function(o,s){const a=t.instance.popperRef,i=o.target,c=s==null?void 0:s.target,l=!t||!t.instance,f=!i||!c,d=e.contains(i)||e.contains(c),u=e===i,g=r.length&&r.some(_=>_==null?void 0:_.contains(i))||r.length&&r.includes(c),p=a&&(a.contains(i)||a.contains(c));l||f||d||u||g||p||t.value(o,s)}}const vf={beforeMount(e,t){nn.has(e)||nn.set(e,[]),nn.get(e).push({documentHandler:kf(e,t),bindingFn:t.value})},updated(e,t){nn.has(e)||nn.set(e,[]);const r=nn.get(e),o=r.findIndex(a=>a.bindingFn===t.oldValue),s={documentHandler:kf(e,t),bindingFn:t.value};o>=0?r.splice(o,1,s):r.push(s)},unmounted(e){nn.delete(e)}},Cf=pe({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:ar,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),kC={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},vC=n.defineComponent({name:"ElTag"}),CC=n.defineComponent({...vC,props:Cf,emits:kC,setup(e,{emit:t}){const r=e,o=pr(),s=ce("tag"),a=n.computed(()=>{const{type:l,hit:f,effect:d,closable:u,round:g}=r;return[s.b(),s.is("closable",u),s.m(l),s.m(o.value),s.m(d),s.is("hit",f),s.is("round",g)]}),i=l=>{t("close",l)},c=l=>{t("click",l)};return(l,f)=>l.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle({backgroundColor:l.color}),onClick:c},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(s).e("content"))},[n.renderSlot(l.$slots,"default")],2),l.closable?(n.openBlock(),n.createBlock(n.unref(We),{key:0,class:n.normalizeClass(n.unref(s).e("close")),onClick:n.withModifiers(i,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(ia))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(s).namespace.value}-zoom-in-center`,appear:""},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle({backgroundColor:l.color}),onClick:c},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(s).e("content"))},[n.renderSlot(l.$slots,"default")],2),l.closable?(n.openBlock(),n.createBlock(n.unref(We),{key:0,class:n.normalizeClass(n.unref(s).e("close")),onClick:n.withModifiers(i,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(ia))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var EC=oe(CC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const xC=it(EC),SC=pe({color:{type:ne(Object),required:!0},vertical:{type:Boolean,default:!1}});let Oa=!1;function gr(e,t){if(!Me)return;const r=function(a){var i;(i=t.drag)==null||i.call(t,a)},o=function(a){var i;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",o),document.onselectstart=null,document.ondragstart=null,Oa=!1,(i=t.end)==null||i.call(t,a)},s=function(a){var i;Oa||(a.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),document.addEventListener("touchmove",r),document.addEventListener("touchend",o),Oa=!0,(i=t.start)==null||i.call(t,a))};e.addEventListener("mousedown",s),e.addEventListener("touchstart",s)}const AC=e=>{const t=n.getCurrentInstance(),r=n.shallowRef(),o=n.shallowRef();function s(i){i.target!==r.value&&a(i)}function a(i){if(!o.value||!r.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:f,clientY:d}=jo(i);if(e.vertical){let u=d-l.top;u=Math.max(r.value.offsetHeight/2,u),u=Math.min(u,l.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((u-r.value.offsetHeight/2)/(l.height-r.value.offsetHeight)*100))}else{let u=f-l.left;u=Math.max(r.value.offsetWidth/2,u),u=Math.min(u,l.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((u-r.value.offsetWidth/2)/(l.width-r.value.offsetWidth)*100))}}return{thumb:r,bar:o,handleDrag:a,handleClick:s}},TC=(e,{bar:t,thumb:r,handleDrag:o})=>{const s=n.getCurrentInstance(),a=ce("color-alpha-slider"),i=n.ref(0),c=n.ref(0),l=n.ref();function f(){if(!r.value||e.vertical)return 0;const y=s.vnode.el,w=e.color.get("alpha");return y?Math.round(w*(y.offsetWidth-r.value.offsetWidth/2)/100):0}function d(){if(!r.value)return 0;const y=s.vnode.el;if(!e.vertical)return 0;const w=e.color.get("alpha");return y?Math.round(w*(y.offsetHeight-r.value.offsetHeight/2)/100):0}function u(){if(e.color&&e.color.value){const{r:y,g:w,b:k}=e.color.toRgb();return`linear-gradient(to right, rgba(${y}, ${w}, ${k}, 0) 0%, rgba(${y}, ${w}, ${k}, 1) 100%)`}return""}function g(){i.value=f(),c.value=d(),l.value=u()}n.onMounted(()=>{if(!t.value||!r.value)return;const y={drag:w=>{o(w)},end:w=>{o(w)}};gr(t.value,y),gr(r.value,y),g()}),n.watch(()=>e.color.get("alpha"),()=>g()),n.watch(()=>e.color.value,()=>g());const p=n.computed(()=>[a.b(),a.is("vertical",e.vertical)]),_=n.computed(()=>a.e("bar")),m=n.computed(()=>a.e("thumb")),b=n.computed(()=>({background:l.value})),h=n.computed(()=>({left:Bn(i.value),top:Bn(c.value)}));return{rootKls:p,barKls:_,barStyle:b,thumbKls:m,thumbStyle:h,update:g}},NC=n.defineComponent({name:"ElColorAlphaSlider"}),BC=n.defineComponent({...NC,props:SC,setup(e,{expose:t}){const r=e,{bar:o,thumb:s,handleDrag:a,handleClick:i}=AC(r),{rootKls:c,barKls:l,barStyle:f,thumbKls:d,thumbStyle:u,update:g}=TC(r,{bar:o,thumb:s,handleDrag:a});return t({update:g,bar:o,thumb:s}),(p,_)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(c))},[n.createElementVNode("div",{ref_key:"bar",ref:o,class:n.normalizeClass(n.unref(l)),style:n.normalizeStyle(n.unref(f)),onClick:_[0]||(_[0]=(...m)=>n.unref(i)&&n.unref(i)(...m))},null,6),n.createElementVNode("div",{ref_key:"thumb",ref:s,class:n.normalizeClass(n.unref(d)),style:n.normalizeStyle(n.unref(u))},null,6)],2))}});var IC=oe(BC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const $C=n.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=ce("color-hue-slider"),r=n.getCurrentInstance(),o=n.ref(),s=n.ref(),a=n.ref(0),i=n.ref(0),c=n.computed(()=>e.color.get("hue"));n.watch(()=>c.value,()=>{g()});function l(p){p.target!==o.value&&f(p)}function f(p){if(!s.value||!o.value)return;const m=r.vnode.el.getBoundingClientRect(),{clientX:b,clientY:h}=jo(p);let y;if(e.vertical){let w=h-m.top;w=Math.min(w,m.height-o.value.offsetHeight/2),w=Math.max(o.value.offsetHeight/2,w),y=Math.round((w-o.value.offsetHeight/2)/(m.height-o.value.offsetHeight)*360)}else{let w=b-m.left;w=Math.min(w,m.width-o.value.offsetWidth/2),w=Math.max(o.value.offsetWidth/2,w),y=Math.round((w-o.value.offsetWidth/2)/(m.width-o.value.offsetWidth)*360)}e.color.set("hue",y)}function d(){if(!o.value)return 0;const p=r.vnode.el;if(e.vertical)return 0;const _=e.color.get("hue");return p?Math.round(_*(p.offsetWidth-o.value.offsetWidth/2)/360):0}function u(){if(!o.value)return 0;const p=r.vnode.el;if(!e.vertical)return 0;const _=e.color.get("hue");return p?Math.round(_*(p.offsetHeight-o.value.offsetHeight/2)/360):0}function g(){a.value=d(),i.value=u()}return n.onMounted(()=>{if(!s.value||!o.value)return;const p={drag:_=>{f(_)},end:_=>{f(_)}};gr(s.value,p),gr(o.value,p),g()}),{bar:s,thumb:o,thumbLeft:a,thumbTop:i,hueValue:c,handleClick:l,update:g,ns:t}}});function RC(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[n.createElementVNode("div",{ref:"bar",class:n.normalizeClass(e.ns.e("bar")),onClick:t[0]||(t[0]=(...i)=>e.handleClick&&e.handleClick(...i))},null,2),n.createElementVNode("div",{ref:"thumb",class:n.normalizeClass(e.ns.e("thumb")),style:n.normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var OC=oe($C,[["render",RC],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const MC=pe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ka,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ne(Array)},validateEvent:{type:Boolean,default:!0}}),zC={[Ue]:e=>pt(e)||dn(e),[ca]:e=>pt(e)||dn(e),activeChange:e=>pt(e)||dn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},Ef=Symbol("colorPickerContextKey"),xf=function(e,t,r){return[e,t*r/((e=(2-t)*r)<1?e:2-e)||0,e/2]},LC=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},DC=function(e){return typeof e=="string"&&e.includes("%")},qn=function(e,t){LC(e)&&(e="100%");const r=DC(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Sf={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},so=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),r=e%16;return`${Sf[t]||t}${Sf[r]||r}`},Af=function({r:e,g:t,b:r}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+r)?"":`#${so(e)}${so(t)}${so(r)}`},Ma={A:10,B:11,C:12,D:13,E:14,F:15},gn=function(e){return e.length===2?(Ma[e[0].toUpperCase()]||+e[0])*16+(Ma[e[1].toUpperCase()]||+e[1]):Ma[e[1].toUpperCase()]||+e[1]},qC=function(e,t,r){t=t/100,r=r/100;let o=t;const s=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,o*=s<=1?s:2-s;const a=(r+t)/2,i=r===0?2*o/(s+o):2*t/(r+t);return{h:e,s:i*100,v:a*100}},Tf=(e,t,r)=>{e=qn(e,255),t=qn(t,255),r=qn(r,255);const o=Math.max(e,t,r),s=Math.min(e,t,r);let a;const i=o,c=o-s,l=o===0?0:c/o;if(o===s)a=0;else{switch(o){case e:{a=(t-r)/c+(t<r?6:0);break}case t:{a=(r-e)/c+2;break}case r:{a=(e-t)/c+4;break}}a/=6}return{h:a*360,s:l*100,v:i*100}},_r=function(e,t,r){e=qn(e,360)*6,t=qn(t,100),r=qn(r,100);const o=Math.floor(e),s=e-o,a=r*(1-t),i=r*(1-s*t),c=r*(1-(1-s)*t),l=o%6,f=[r,i,a,a,c,r][l],d=[c,r,r,i,a,a][l],u=[a,a,c,r,r,i][l];return{r:Math.round(f*255),g:Math.round(d*255),b:Math.round(u*255)}};class br{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const r in t)Rr(t,r)&&(this[r]=t[r]);t.value?this.fromString(t.value):this.doOnChange()}set(t,r){if(arguments.length===1&&typeof t=="object"){for(const o in t)Rr(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=r,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return _r(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const r=(o,s,a)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,s)),this._value=Math.max(0,Math.min(100,a)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,a)=>a>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:a,v:i}=qC(o[0],o[1],o[2]);r(s,a,i)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,a)=>a>2?Number.parseFloat(s):Number.parseInt(s,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&r(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,a)=>a>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:a,v:i}=Tf(o[0],o[1],o[2]);r(s,a,i)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let s,a,i;o.length===3?(s=gn(o[0]+o[0]),a=gn(o[1]+o[1]),i=gn(o[2]+o[2])):(o.length===6||o.length===8)&&(s=gn(o.slice(0,2)),a=gn(o.slice(2,4)),i=gn(o.slice(4,6))),o.length===8?this._alpha=gn(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:c,s:l,v:f}=Tf(s,a,i);r(c,l,f)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:r,_value:o,_alpha:s,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const i=xf(t,r/100,o/100);this.value=`hsla(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(r)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Af(_r(t,r,o))}${so(s*255/100)}`;break}default:{const{r:i,g:c,b:l}=_r(t,r,o);this.value=`rgba(${i}, ${c}, ${l}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const i=xf(t,r/100,o/100);this.value=`hsl(${t}, ${Math.round(i[1]*100)}%, ${Math.round(i[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(r)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:i,g:c,b:l}=_r(t,r,o);this.value=`rgb(${i}, ${c}, ${l})`;break}default:this.value=Af(_r(t,r,o))}}}const PC=n.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=ce("color-predefine"),{currentColor:r}=n.inject(Ef),o=n.ref(a(e.colors,e.color));n.watch(()=>r.value,i=>{const c=new br;c.fromString(i),o.value.forEach(l=>{l.selected=c.compare(l)})}),n.watchEffect(()=>{o.value=a(e.colors,e.color)});function s(i){e.color.fromString(e.colors[i])}function a(i,c){return i.map(l=>{const f=new br;return f.enableAlpha=!0,f.format="rgba",f.fromString(l),f.selected=f.value===c.value,f})}return{rgbaColors:o,handleSelect:s,ns:t}}}),FC=["onClick"];function VC(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.ns.b())},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("colors"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rgbaColors,(i,c)=>(n.openBlock(),n.createElementBlock("div",{key:e.colors[c],class:n.normalizeClass([e.ns.e("color-selector"),e.ns.is("alpha",i._alpha<100),{selected:i.selected}]),onClick:l=>e.handleSelect(c)},[n.createElementVNode("div",{style:n.normalizeStyle({backgroundColor:i.value})},null,4)],10,FC))),128))],2)],2)}var jC=oe(PC,[["render",VC],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const HC=n.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=ce("color-svpanel"),r=n.getCurrentInstance(),o=n.ref(0),s=n.ref(0),a=n.ref("hsl(0, 100%, 50%)"),i=n.computed(()=>{const f=e.color.get("hue"),d=e.color.get("value");return{hue:f,value:d}});function c(){const f=e.color.get("saturation"),d=e.color.get("value"),u=r.vnode.el,{clientWidth:g,clientHeight:p}=u;s.value=f*g/100,o.value=(100-d)*p/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(f){const u=r.vnode.el.getBoundingClientRect(),{clientX:g,clientY:p}=jo(f);let _=g-u.left,m=p-u.top;_=Math.max(0,_),_=Math.min(_,u.width),m=Math.max(0,m),m=Math.min(m,u.height),s.value=_,o.value=m,e.color.set({saturation:_/u.width*100,value:100-m/u.height*100})}return n.watch(()=>i.value,()=>{c()}),n.onMounted(()=>{gr(r.vnode.el,{drag:f=>{l(f)},end:f=>{l(f)}}),c()}),{cursorTop:o,cursorLeft:s,background:a,colorValue:i,handleDrag:l,update:c,ns:t}}}),UC=[n.createElementVNode("div",null,null,-1)];function GC(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.ns.b()),style:n.normalizeStyle({backgroundColor:e.background})},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("white"))},null,2),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("black"))},null,2),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("cursor")),style:n.normalizeStyle({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},UC,6)],6)}var KC=oe(HC,[["render",GC],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const WC=["onKeydown"],ZC=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],XC=n.defineComponent({name:"ElColorPicker"}),YC=n.defineComponent({...XC,props:MC,emits:zC,setup(e,{expose:t,emit:r}){const o=e,{t:s}=gt(),a=ce("color"),{formItem:i}=Jr(),c=pr(),l=Yr(),{inputId:f,isLabeledByFormItem:d}=Gu(o,{formItemContext:i}),u=n.ref(),g=n.ref(),p=n.ref(),_=n.ref(),m=n.ref(),b=n.ref(),{isFocused:h,handleFocus:y,handleBlur:w}=Hu(m,{beforeBlur(K){var ae;return(ae=_.value)==null?void 0:ae.isFocusInsideContent(K)},afterBlur(){R(!1),P()}}),k=K=>{if(l.value)return $t();y(K)};let E=!0;const C=n.reactive(new br({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue})),x=n.ref(!1),S=n.ref(!1),N=n.ref(""),B=n.computed(()=>!o.modelValue&&!S.value?"transparent":D(C,o.showAlpha)),$=n.computed(()=>!o.modelValue&&!S.value?"":C.value),L=n.computed(()=>d.value?void 0:o.label||s("el.colorpicker.defaultLabel")),G=n.computed(()=>d.value?i==null?void 0:i.labelId:void 0),I=n.computed(()=>[a.b("picker"),a.is("disabled",l.value),a.bm("picker",c.value),a.is("focused",h.value)]);function D(K,ae){if(!(K instanceof br))throw new TypeError("color should be instance of _color Class");const{r:Ce,g:Re,b:Xe}=K.toRgb();return ae?`rgba(${Ce}, ${Re}, ${Xe}, ${K.get("alpha")/100})`:`rgb(${Ce}, ${Re}, ${Xe})`}function R(K){x.value=K}const O=ra(R,100,{leading:!0});function z(){l.value||R(!0)}function q(){O(!1),P()}function P(){n.nextTick(()=>{o.modelValue?C.fromString(o.modelValue):(C.value="",n.nextTick(()=>{S.value=!1}))})}function ee(){l.value||O(!x.value)}function Y(){C.fromString(N.value)}function de(){const K=C.value;r(Ue,K),r("change",K),o.validateEvent&&(i==null||i.validate("change").catch(ae=>void 0)),O(!1),n.nextTick(()=>{const ae=new br({enableAlpha:o.showAlpha,format:o.colorFormat||"",value:o.modelValue});C.compare(ae)||P()})}function _e(){O(!1),r(Ue,null),r("change",null),o.modelValue!==null&&o.validateEvent&&(i==null||i.validate("change").catch(K=>void 0)),P()}function we(K){if(x.value&&(q(),h.value)){const ae=new FocusEvent("focus",K);w(ae)}}function $e(K){K.preventDefault(),K.stopPropagation(),R(!1),P()}function je(K){switch(K.code){case Vt.enter:case Vt.space:K.preventDefault(),K.stopPropagation(),z(),b.value.focus();break;case Vt.esc:$e(K);break}}function xe(){m.value.focus()}function $t(){m.value.blur()}return n.onMounted(()=>{o.modelValue&&(N.value=$.value)}),n.watch(()=>o.modelValue,K=>{K?K&&K!==C.value&&(E=!1,C.fromString(K)):S.value=!1}),n.watch(()=>$.value,K=>{N.value=K,E&&r("activeChange",K),E=!0}),n.watch(()=>C.value,()=>{!o.modelValue&&!S.value&&(S.value=!0)}),n.watch(()=>x.value,()=>{n.nextTick(()=>{var K,ae,Ce;(K=u.value)==null||K.update(),(ae=g.value)==null||ae.update(),(Ce=p.value)==null||Ce.update()})}),n.provide(Ef,{currentColor:$}),t({color:C,show:z,hide:q,focus:xe,blur:$t}),(K,ae)=>(n.openBlock(),n.createBlock(n.unref(mr),{ref_key:"popper",ref:_,visible:x.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[n.unref(a).be("picker","panel"),n.unref(a).b("dropdown"),K.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${n.unref(a).namespace.value}-zoom-in-top`,persistent:"",onHide:ae[2]||(ae[2]=Ce=>R(!1))},{content:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onKeydown:n.withKeys($e,["esc"])},[n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).be("dropdown","main-wrapper"))},[n.createVNode(OC,{ref_key:"hue",ref:u,class:"hue-slider",color:n.unref(C),vertical:""},null,8,["color"]),n.createVNode(KC,{ref_key:"sv",ref:g,color:n.unref(C)},null,8,["color"])],2),K.showAlpha?(n.openBlock(),n.createBlock(IC,{key:0,ref_key:"alpha",ref:p,color:n.unref(C)},null,8,["color"])):n.createCommentVNode("v-if",!0),K.predefine?(n.openBlock(),n.createBlock(jC,{key:1,ref:"predefine",color:n.unref(C),colors:K.predefine},null,8,["color","colors"])):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).be("dropdown","btns"))},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).be("dropdown","value"))},[n.createVNode(n.unref(Qr),{ref_key:"inputRef",ref:b,modelValue:N.value,"onUpdate:modelValue":ae[0]||(ae[0]=Ce=>N.value=Ce),"validate-event":!1,size:"small",onKeyup:n.withKeys(Y,["enter"]),onBlur:Y},null,8,["modelValue","onKeyup"])],2),n.createVNode(n.unref(yf),{class:n.normalizeClass(n.unref(a).be("dropdown","link-btn")),text:"",size:"small",onClick:_e},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)("el.colorpicker.clear")),1)]),_:1},8,["class"]),n.createVNode(n.unref(yf),{plain:"",size:"small",class:n.normalizeClass(n.unref(a).be("dropdown","btn")),onClick:de},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(s)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,WC)),[[n.unref(vf),we]])]),default:n.withCtx(()=>[n.createElementVNode("div",{id:n.unref(f),ref_key:"triggerRef",ref:m,class:n.normalizeClass(n.unref(I)),role:"button","aria-label":n.unref(L),"aria-labelledby":n.unref(G),"aria-description":n.unref(s)("el.colorpicker.description",{color:K.modelValue||""}),"aria-disabled":n.unref(l),tabindex:n.unref(l)?-1:K.tabindex,onKeydown:je,onFocus:k,onBlur:ae[1]||(ae[1]=(...Ce)=>n.unref(w)&&n.unref(w)(...Ce))},[n.unref(l)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).be("picker","mask"))},null,2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{class:n.normalizeClass(n.unref(a).be("picker","trigger")),onClick:ee},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(a).be("picker","color"),n.unref(a).is("alpha",K.showAlpha)])},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).be("picker","color-inner")),style:n.normalizeStyle({backgroundColor:n.unref(B)})},[n.withDirectives(n.createVNode(n.unref(We),{class:n.normalizeClass([n.unref(a).be("picker","icon"),n.unref(a).is("icon-arrow-down")])},{default:n.withCtx(()=>[n.createVNode(n.unref(cu))]),_:1},8,["class"]),[[n.vShow,K.modelValue||S.value]]),n.withDirectives(n.createVNode(n.unref(We),{class:n.normalizeClass([n.unref(a).be("picker","empty"),n.unref(a).is("icon-close")])},{default:n.withCtx(()=>[n.createVNode(n.unref(ia))]),_:1},8,["class"]),[[n.vShow,!K.modelValue&&!S.value]])],6)],2)],2)],42,ZC)]),_:1},8,["visible","popper-class","transition"]))}});var JC=oe(YC,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const QC=it(JC),eE=n.defineComponent({inheritAttrs:!1});function tE(e,t,r,o,s,a){return n.renderSlot(e.$slots,"default")}var nE=oe(eE,[["render",tE],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const rE=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function oE(e,t,r,o,s,a){return n.renderSlot(e.$slots,"default")}var aE=oe(rE,[["render",oE],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const sE="data-el-collection-item",iE=e=>{const t=`El${e}Collection`,r=`${t}Item`,o=Symbol(t),s=Symbol(r),a={...nE,name:t,setup(){const c=n.ref(null),l=new Map,f=()=>{const d=n.unref(c);if(!d)return[];const u=Array.from(d.querySelectorAll(`[${sE}]`));return[...l.values()].sort((p,_)=>u.indexOf(p.ref)-u.indexOf(_.ref))};n.provide(o,{itemMap:l,getItems:f,collectionRef:c})}},i={...aE,name:r,setup(c,{attrs:l}){const f=n.ref(null),d=n.inject(o,void 0);n.provide(s,{collectionItemRef:f}),n.onMounted(()=>{const u=n.unref(f);u&&d.itemMap.set(u,{ref:u,...l})}),n.onBeforeUnmount(()=>{const u=n.unref(f);d.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:a,ElCollectionItem:i}},za=pe({trigger:hr.trigger,effect:{...Je.effect,default:"light"},type:{type:ne(String)},placement:{type:ne(String),default:"bottom"},popperOptions:{type:ne(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ne([Number,String]),default:0},maxHeight:{type:ne([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ne(Object)},teleported:Je.teleported});pe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:mt}}),pe({onKeydown:{type:ne(Function)}}),iE("Dropdown");const Nf=Symbol("elPaginationKey"),cE=pe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:mt}}),lE={click:e=>e instanceof MouseEvent},uE=["disabled","aria-label","aria-disabled"],fE={key:0},dE=n.defineComponent({name:"ElPaginationPrev"}),pE=n.defineComponent({...dE,props:cE,emits:lE,setup(e){const t=e,{t:r}=gt(),o=n.computed(()=>t.disabled||t.currentPage<=1);return(s,a)=>(n.openBlock(),n.createElementBlock("button",{type:"button",class:"btn-prev",disabled:n.unref(o),"aria-label":s.prevText||n.unref(r)("el.pagination.prev"),"aria-disabled":n.unref(o),onClick:a[0]||(a[0]=i=>s.$emit("click",i))},[s.prevText?(n.openBlock(),n.createElementBlock("span",fE,n.toDisplayString(s.prevText),1)):(n.openBlock(),n.createBlock(n.unref(We),{key:1},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.prevIcon)))]),_:1}))],8,uE))}});var hE=oe(pE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const mE=pe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:mt}}),gE=["disabled","aria-label","aria-disabled"],_E={key:0},bE=n.defineComponent({name:"ElPaginationNext"}),yE=n.defineComponent({...bE,props:mE,emits:["click"],setup(e){const t=e,{t:r}=gt(),o=n.computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(s,a)=>(n.openBlock(),n.createElementBlock("button",{type:"button",class:"btn-next",disabled:n.unref(o),"aria-label":s.nextText||n.unref(r)("el.pagination.next"),"aria-disabled":n.unref(o),onClick:a[0]||(a[0]=i=>s.$emit("click",i))},[s.nextText?(n.openBlock(),n.createElementBlock("span",_E,n.toDisplayString(s.nextText),1)):(n.openBlock(),n.createBlock(n.unref(We),{key:1},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.nextIcon)))]),_:1}))],8,gE))}});var wE=oe(yE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Bf=Symbol("ElSelectGroup"),io=Symbol("ElSelect");function kE(e,t){const r=n.inject(io),o=n.inject(Bf,{disabled:!1}),s=n.computed(()=>ht(e.value)),a=n.computed(()=>r.props.multiple?u(r.props.modelValue,e.value):g(e.value,r.props.modelValue)),i=n.computed(()=>{if(r.props.multiple){const m=r.props.modelValue||[];return!a.value&&m.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),c=n.computed(()=>e.label||(s.value?"":e.value)),l=n.computed(()=>e.value||e.label||""),f=n.computed(()=>e.disabled||t.groupDisabled||i.value),d=n.getCurrentInstance(),u=(m=[],b)=>{if(s.value){const h=r.props.valueKey;return m&&m.some(y=>n.toRaw(Ye(y,h))===Ye(b,h))}else return m&&m.includes(b)},g=(m,b)=>{if(s.value){const{valueKey:h}=r.props;return Ye(m,h)===Ye(b,h)}else return m===b},p=()=>{!e.disabled&&!o.disabled&&(r.hoverIndex=r.optionsArray.indexOf(d.proxy))};n.watch(()=>c.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),n.watch(()=>e.value,(m,b)=>{const{remote:h,valueKey:y}=r.props;if(Object.is(m,b)||(r.onOptionDestroy(b,d.proxy),r.onOptionCreate(d.proxy)),!e.created&&!h){if(y&&ht(m)&&ht(b)&&m[y]===b[y])return;r.setSelected()}}),n.watch(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:_}=n.toRaw(r);return n.watch(_,m=>{const{query:b}=n.unref(m),h=new RegExp(mw(b),"i");t.visible=h.test(c.value)||e.created,t.visible||r.filteredOptionsCount--},{immediate:!0}),{select:r,currentLabel:c,currentValue:l,itemSelected:a,isDisabled:f,hoverItem:p}}const vE=n.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=ce("select"),r=Zr(),o=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(c)),{selected:n.unref(i),hover:n.unref(u)}]),s=n.reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:c,select:l,hoverItem:f}=kE(e,s),{visible:d,hover:u}=n.toRefs(s),g=n.getCurrentInstance().proxy;l.onOptionCreate(g),n.onBeforeUnmount(()=>{const _=g.value,{selected:m}=l,h=(l.props.multiple?m:[m]).some(y=>y.value===g.value);n.nextTick(()=>{l.cachedOptions.get(_)===g&&!h&&l.cachedOptions.delete(_)}),l.onOptionDestroy(_,g)});function p(){e.disabled!==!0&&s.groupDisabled!==!0&&l.handleOptionSelect(g)}return{ns:t,id:r,containerKls:o,currentLabel:a,itemSelected:i,isDisabled:c,select:l,hoverItem:f,visible:d,hover:u,selectOptionClick:p,states:s}}}),CE=["id","aria-disabled","aria-selected"];function EE(e,t,r,o,s,a){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:t[0]||(t[0]=(...i)=>e.hoverItem&&e.hoverItem(...i)),onClick:t[1]||(t[1]=n.withModifiers((...i)=>e.selectOptionClick&&e.selectOptionClick(...i),["stop"]))},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,CE)),[[n.vShow,e.visible]])}var La=oe(vE,[["render",EE],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const xE=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(io),t=ce("select"),r=n.computed(()=>e.props.popperClass),o=n.computed(()=>e.props.multiple),s=n.computed(()=>e.props.fitInputWidth),a=n.ref("");function i(){var c;a.value=`${(c=e.selectWrapper)==null?void 0:c.offsetWidth}px`}return n.onMounted(()=>{i(),$r(e.selectWrapper,i)}),{ns:t,minWidth:a,popperClass:r,isMultiple:o,isFitInputWidth:s}}});function SE(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var AE=oe(xE,[["render",SE],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function TE(e){const{t}=gt();return n.reactive({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const NE=(e,t,r)=>{const{t:o}=gt(),s=ce("select");hu({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},n.computed(()=>e.suffixTransition===!1));const a=n.ref(null),i=n.ref(null),c=n.ref(null),l=n.ref(null),f=n.ref(null),d=n.ref(null),u=n.ref(null),g=n.ref(null),p=n.ref(),_=n.shallowRef({query:""}),m=n.shallowRef(""),b=n.ref([]);let h=0;const{form:y,formItem:w}=Jr(),k=n.computed(()=>!e.filterable||e.multiple||!t.visible),E=n.computed(()=>e.disabled||(y==null?void 0:y.disabled)),C=n.computed(()=>{const T=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!E.value&&t.inputHovering&&T}),x=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),S=n.computed(()=>s.is("reverse",x.value&&t.visible&&e.suffixTransition)),N=n.computed(()=>(y==null?void 0:y.statusIcon)&&(w==null?void 0:w.validateState)&&du[w==null?void 0:w.validateState]),B=n.computed(()=>e.remote?300:0),$=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),L=n.computed(()=>{const T=Array.from(t.options.values()),v=[];return b.value.forEach(A=>{const M=T.findIndex(W=>W.currentLabel===A);M>-1&&v.push(T[M])}),v.length>=T.length?v:T}),G=n.computed(()=>Array.from(t.cachedOptions.values())),I=n.computed(()=>{const T=L.value.filter(v=>!v.created).some(v=>v.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!T}),D=pr(),R=n.computed(()=>["small"].includes(D.value)?"small":"default"),O=n.computed({get(){return t.visible&&$.value!==!1},set(T){t.visible=T}});n.watch([()=>E.value,()=>D.value,()=>y==null?void 0:y.size],()=>{n.nextTick(()=>{z()})}),n.watch(()=>e.placeholder,T=>{t.cachedPlaceHolder=t.currentPlaceholder=T,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),n.watch(()=>e.modelValue,(T,v)=>{e.multiple&&(z(),T&&T.length>0||i.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",q(t.query))),Y(),e.filterable&&!e.multiple&&(t.inputLength=20),!oa(T,v)&&e.validateEvent&&(w==null||w.validate("change").catch(A=>void 0))},{flush:"post",deep:!0}),n.watch(()=>t.visible,T=>{var v,A,M,W,se;T?((A=(v=l.value)==null?void 0:v.updatePopper)==null||A.call(v),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(W=(M=c.value)==null?void 0:M.focus)==null||W.call(M),e.multiple?(se=i.value)==null||se.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),q(t.query),!e.multiple&&!e.remote&&(_.value.query="",n.triggerRef(_),n.triggerRef(m)))):(e.filterable&&(st(e.filterMethod)&&e.filterMethod(""),st(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,_e(),n.nextTick(()=>{i.value&&i.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),r.emit("visible-change",T)}),n.watch(()=>t.options.entries(),()=>{var T,v,A;if(!Me)return;(v=(T=l.value)==null?void 0:T.updatePopper)==null||v.call(T),e.multiple&&z();const M=((A=u.value)==null?void 0:A.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!iu(e.modelValue)||!Array.from(M).includes(document.activeElement))&&Y(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ee()},{flush:"post"}),n.watch(()=>t.hoverIndex,T=>{Ee(T)&&T>-1?p.value=L.value[T]||{}:p.value={},L.value.forEach(v=>{v.hover=p.value===v})});const z=()=>{n.nextTick(()=>{var T,v;if(!a.value)return;const A=a.value.$el.querySelector("input");h=h||(A.clientHeight>0?A.clientHeight+2:0);const M=d.value,W=getComputedStyle(A).getPropertyValue(s.cssVarName("input-height")),se=Number.parseFloat(W)||jw(D.value||(y==null?void 0:y.size)),ue=D.value||se===h||h<=0?se:h;!(A.offsetParent===null)&&(A.style.height=`${(t.selected.length===0?ue:Math.max(M?M.clientHeight+(M.clientHeight>ue?6:0):0,ue))-2}px`),t.visible&&$.value!==!1&&((v=(T=l.value)==null?void 0:T.updatePopper)==null||v.call(T))})},q=async T=>{if(!(t.previousQuery===T||t.isOnComposition)){if(t.previousQuery===null&&(st(e.filterMethod)||st(e.remoteMethod))){t.previousQuery=T;return}t.previousQuery=T,n.nextTick(()=>{var v,A;t.visible&&((A=(v=l.value)==null?void 0:v.updatePopper)==null||A.call(v))}),t.hoverIndex=-1,e.multiple&&e.filterable&&n.nextTick(()=>{if(!E.value){const v=i.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,v):v,P()}z()}),e.remote&&st(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(T)):st(e.filterMethod)?(e.filterMethod(T),n.triggerRef(m)):(t.filteredOptionsCount=t.optionsCount,_.value.query=T,n.triggerRef(_),n.triggerRef(m)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await n.nextTick(),ee())}},P=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=i.value.value?"":t.cachedPlaceHolder)},ee=()=>{const T=L.value.filter(M=>M.visible&&!M.disabled&&!M.states.groupDisabled),v=T.find(M=>M.created),A=T[0];t.hoverIndex=et(L.value,v||A)},Y=()=>{var T;if(e.multiple)t.selectedLabel="";else{const A=de(e.modelValue);(T=A.props)!=null&&T.created?(t.createdLabel=A.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=A.currentLabel,t.selected=A,e.filterable&&(t.query=t.selectedLabel);return}const v=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(A=>{v.push(de(A))}),t.selected=v,n.nextTick(()=>{z()})},de=T=>{let v;const A=Ho(T).toLowerCase()==="object",M=Ho(T).toLowerCase()==="null",W=Ho(T).toLowerCase()==="undefined";for(let U=t.cachedOptions.size-1;U>=0;U--){const j=G.value[U];if(A?Ye(j.value,e.valueKey)===Ye(T,e.valueKey):j.value===T){v={value:T,currentLabel:j.currentLabel,isDisabled:j.isDisabled};break}}if(v)return v;const se=A?T.label:!M&&!W?T:"",ue={value:T,currentLabel:se};return e.multiple&&(ue.hitState=!1),ue},_e=()=>{setTimeout(()=>{const T=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(v=>L.value.findIndex(A=>Ye(A,T)===Ye(v,T)))):t.hoverIndex=-1:t.hoverIndex=L.value.findIndex(v=>Kt(v)===Kt(t.selected))},300)},we=()=>{var T,v;$e(),(v=(T=l.value)==null?void 0:T.updatePopper)==null||v.call(T),e.multiple&&z()},$e=()=>{var T;t.inputWidth=(T=a.value)==null?void 0:T.$el.offsetWidth},je=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,q(t.query))},xe=ra(()=>{je()},B.value),$t=ra(T=>{q(T.target.value)},B.value),K=T=>{oa(e.modelValue,T)||r.emit(ca,T)},ae=T=>dw(T,v=>!t.disabledOptions.has(v)),Ce=T=>{if(T.code!==Vt.delete){if(T.target.value.length<=0&&!nt()){const v=e.modelValue.slice(),A=ae(v);if(A<0)return;v.splice(A,1),r.emit(Ue,v),K(v)}T.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Re=(T,v)=>{const A=t.selected.indexOf(v);if(A>-1&&!E.value){const M=e.modelValue.slice();M.splice(A,1),r.emit(Ue,M),K(M),r.emit("remove-tag",v.value)}T.stopPropagation(),J()},Xe=T=>{T.stopPropagation();const v=e.multiple?[]:"";if(!pt(v))for(const A of t.selected)A.isDisabled&&v.push(A.value);r.emit(Ue,v),K(v),t.hoverIndex=-1,t.visible=!1,r.emit("clear"),J()},kt=T=>{var v;if(e.multiple){const A=(e.modelValue||[]).slice(),M=et(A,T.value);M>-1?A.splice(M,1):(e.multipleLimit<=0||A.length<e.multipleLimit)&&A.push(T.value),r.emit(Ue,A),K(A),T.created&&(t.query="",q(""),t.inputLength=20),e.filterable&&((v=i.value)==null||v.focus())}else r.emit(Ue,T.value),K(T.value),t.visible=!1;Rt(),!t.visible&&n.nextTick(()=>{tt(T)})},et=(T=[],v)=>{if(!ht(v))return T.indexOf(v);const A=e.valueKey;let M=-1;return T.some((W,se)=>n.toRaw(Ye(W,A))===Ye(v,A)?(M=se,!0):!1),M},Rt=()=>{const T=i.value||a.value;T&&(T==null||T.focus())},tt=T=>{var v,A,M,W,se;const ue=Array.isArray(T)?T[0]:T;let U=null;if(ue!=null&&ue.value){const j=L.value.filter(Q=>Q.value===ue.value);j.length>0&&(U=j[0].$el)}if(l.value&&U){const j=(W=(M=(A=(v=l.value)==null?void 0:v.popperRef)==null?void 0:A.contentRef)==null?void 0:M.querySelector)==null?void 0:W.call(M,`.${s.be("dropdown","wrap")}`);j&&bw(j,U)}(se=g.value)==null||se.handleScroll()},vt=T=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(T.value,T),t.cachedOptions.set(T.value,T),T.disabled&&t.disabledOptions.set(T.value,T)},De=(T,v)=>{t.options.get(T)===v&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(T))},dt=T=>{T.code!==Vt.backspace&&nt(!1),t.inputLength=i.value.value.length*15+20,z()},nt=T=>{if(!Array.isArray(t.selected))return;const v=ae(t.selected.map(M=>M.value)),A=t.selected[v];if(A)return T===!0||T===!1?(A.hitState=T,T):(A.hitState=!A.hitState,A.hitState)},Ct=T=>{const v=T.target.value;if(T.type==="compositionend")t.isOnComposition=!1,n.nextTick(()=>q(v));else{const A=v[v.length-1]||"";t.isOnComposition=!pu(A)}},Ne=()=>{n.nextTick(()=>tt(t.selected))},F=T=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,r.emit("focus",T))},J=()=>{var T,v;t.visible?(T=i.value||a.value)==null||T.focus():(v=a.value)==null||v.focus()},me=()=>{var T,v,A;t.visible=!1,(T=a.value)==null||T.blur(),(A=(v=c.value)==null?void 0:v.blur)==null||A.call(v)},Se=T=>{var v,A,M;(v=l.value)!=null&&v.isFocusInsideContent(T)||(A=f.value)!=null&&A.isFocusInsideContent(T)||(M=u.value)!=null&&M.contains(T.relatedTarget)||(t.visible&&wn(),t.focused=!1,r.emit("blur",T))},Et=T=>{Xe(T)},wn=()=>{t.visible=!1},kn=T=>{t.visible&&(T.preventDefault(),T.stopPropagation(),t.visible=!1)},Gn=T=>{T&&!t.mouseEnter||E.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),J())},Sr=()=>{t.visible?L.value[t.hoverIndex]&&kt(L.value[t.hoverIndex]):Gn()},Kt=T=>ht(T.value)?Ye(T.value,e.valueKey):T.value,Kn=n.computed(()=>L.value.filter(T=>T.visible).every(T=>T.disabled)),Ar=n.computed(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),vn=n.computed(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),an=T=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Kn.value){T==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):T==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const v=L.value[t.hoverIndex];(v.disabled===!0||v.states.groupDisabled===!0||!v.visible)&&an(T),n.nextTick(()=>tt(p.value))}},Wn=()=>{t.mouseEnter=!0},Cn=()=>{t.mouseEnter=!1},Tr=(T,v)=>{var A,M;Re(T,v),(M=(A=f.value)==null?void 0:A.updatePopper)==null||M.call(A)},Zn=n.computed(()=>({maxWidth:`${n.unref(t.inputWidth)-32-(N.value?22:0)}px`,width:"100%"}));return{optionList:b,optionsArray:L,hoverOption:p,selectSize:D,handleResize:we,debouncedOnInputChange:xe,debouncedQueryChange:$t,deletePrevTag:Ce,deleteTag:Re,deleteSelected:Xe,handleOptionSelect:kt,scrollToOption:tt,readonly:k,resetInputHeight:z,showClose:C,iconComponent:x,iconReverse:S,showNewOption:I,collapseTagSize:R,setSelected:Y,managePlaceholder:P,selectDisabled:E,emptyText:$,toggleLastOptionHitState:nt,resetInputState:dt,handleComposition:Ct,onOptionCreate:vt,onOptionDestroy:De,handleMenuEnter:Ne,handleFocus:F,focus:J,blur:me,handleBlur:Se,handleClearClick:Et,handleClose:wn,handleKeydownEscape:kn,toggleMenu:Gn,selectOption:Sr,getValueKey:Kt,navigateOptions:an,handleDeleteTooltipTag:Tr,dropMenuVisible:O,queryChange:_,groupQueryChange:m,showTagList:Ar,collapseTagList:vn,selectTagsStyle:Zn,reference:a,input:i,iOSInput:c,tooltipRef:l,tagTooltipRef:f,tags:d,selectWrapper:u,scrollbar:g,handleMouseEnter:Wn,handleMouseLeave:Cn}};var BE=n.defineComponent({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:r}){let o=[];function s(a,i){if(a.length!==i.length)return!1;for(const[c]of a.entries())if(a[c]!=i[c])return!1;return!0}return()=>{var a,i;const c=(a=t.default)==null?void 0:a.call(t),l=[];function f(d){Array.isArray(d)&&d.forEach(u=>{var g,p,_,m;const b=(g=(u==null?void 0:u.type)||{})==null?void 0:g.name;b==="ElOptionGroup"?f(!pt(u.children)&&!Array.isArray(u.children)&&st((p=u.children)==null?void 0:p.default)?(_=u.children)==null?void 0:_.default():u.children):b==="ElOption"?l.push((m=u.props)==null?void 0:m.label):Array.isArray(u.children)&&f(u.children)})}return c.length&&f((i=c[0])==null?void 0:i.children),s(l,o)||(o=l,r("update-options",l)),c}}});const If="ElSelect",IE=n.defineComponent({name:If,componentName:If,components:{ElInput:Qr,ElSelectMenu:AE,ElOption:La,ElOptions:BE,ElTag:xC,ElScrollbar:Yk,ElTooltip:mr,ElIcon:We},directives:{ClickOutside:vf},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Hw},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Je.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:mt,default:sa},fitInputWidth:Boolean,suffixIcon:{type:mt,default:cu},tagType:{...Cf.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Hr,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Ue,ca,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const r=ce("select"),o=ce("input"),{t:s}=gt(),a=Zr(),i=TE(e),{optionList:c,optionsArray:l,hoverOption:f,selectSize:d,readonly:u,handleResize:g,collapseTagSize:p,debouncedOnInputChange:_,debouncedQueryChange:m,deletePrevTag:b,deleteTag:h,deleteSelected:y,handleOptionSelect:w,scrollToOption:k,setSelected:E,resetInputHeight:C,managePlaceholder:x,showClose:S,selectDisabled:N,iconComponent:B,iconReverse:$,showNewOption:L,emptyText:G,toggleLastOptionHitState:I,resetInputState:D,handleComposition:R,onOptionCreate:O,onOptionDestroy:z,handleMenuEnter:q,handleFocus:P,focus:ee,blur:Y,handleBlur:de,handleClearClick:_e,handleClose:we,handleKeydownEscape:$e,toggleMenu:je,selectOption:xe,getValueKey:$t,navigateOptions:K,handleDeleteTooltipTag:ae,dropMenuVisible:Ce,reference:Re,input:Xe,iOSInput:kt,tooltipRef:et,tagTooltipRef:Rt,tags:tt,selectWrapper:vt,scrollbar:De,queryChange:dt,groupQueryChange:nt,handleMouseEnter:Ct,handleMouseLeave:Ne,showTagList:F,collapseTagList:J,selectTagsStyle:me}=NE(e,i,t),{inputWidth:Se,selected:Et,inputLength:wn,filteredOptionsCount:kn,visible:Gn,selectedLabel:Sr,hoverIndex:Kt,query:Kn,inputHovering:Ar,currentPlaceholder:vn,menuVisibleOnFocus:an,isOnComposition:Wn,options:Cn,cachedOptions:Tr,optionsCount:Zn,prefixWidth:T}=n.toRefs(i),v=n.computed(()=>{const fe=[r.b()],rt=n.unref(d);return rt&&fe.push(r.m(rt)),e.disabled&&fe.push(r.m("disabled")),fe}),A=n.computed(()=>[r.e("tags"),r.is("disabled",n.unref(N))]),M=n.computed(()=>[r.b("tags-wrapper"),{"has-prefix":n.unref(T)&&n.unref(Et).length}]),W=n.computed(()=>[r.e("input"),r.is(n.unref(d)),r.is("disabled",n.unref(N))]),se=n.computed(()=>[r.e("input"),r.is(n.unref(d)),r.em("input","iOS")]),ue=n.computed(()=>[r.is("empty",!e.allowCreate&&!!n.unref(Kn)&&n.unref(kn)===0)]),U=n.computed(()=>({maxWidth:`${n.unref(Se)>123&&n.unref(Et).length>e.maxCollapseTags?n.unref(Se)-123:n.unref(Se)-75}px`})),j=n.computed(()=>({marginLeft:`${n.unref(T)}px`,flexGrow:1,width:`${n.unref(wn)/(n.unref(Se)-32)}%`,maxWidth:`${n.unref(Se)-42}px`}));n.provide(io,n.reactive({props:e,options:Cn,optionsArray:l,cachedOptions:Tr,optionsCount:Zn,filteredOptionsCount:kn,hoverIndex:Kt,handleOptionSelect:w,onOptionCreate:O,onOptionDestroy:z,selectWrapper:vt,selected:Et,setSelected:E,queryChange:dt,groupQueryChange:nt})),n.onMounted(()=>{i.cachedPlaceHolder=vn.value=e.placeholder||(()=>s("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(vn.value=""),$r(vt,g),e.remote&&e.multiple&&C(),n.nextTick(()=>{const fe=Re.value&&Re.value.$el;if(fe&&(Se.value=fe.getBoundingClientRect().width,t.slots.prefix)){const rt=fe.querySelector(`.${o.e("prefix")}`);T.value=Math.max(rt.getBoundingClientRect().width+11,30)}}),E()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ue,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ue,"");const Q=n.computed(()=>{var fe,rt;return(rt=(fe=et.value)==null?void 0:fe.popperRef)==null?void 0:rt.contentRef});return{isIOS:dl,onOptionsRendered:fe=>{c.value=fe},prefixWidth:T,selectSize:d,readonly:u,handleResize:g,collapseTagSize:p,debouncedOnInputChange:_,debouncedQueryChange:m,deletePrevTag:b,deleteTag:h,handleDeleteTooltipTag:ae,deleteSelected:y,handleOptionSelect:w,scrollToOption:k,inputWidth:Se,selected:Et,inputLength:wn,filteredOptionsCount:kn,visible:Gn,selectedLabel:Sr,hoverIndex:Kt,query:Kn,inputHovering:Ar,currentPlaceholder:vn,menuVisibleOnFocus:an,isOnComposition:Wn,options:Cn,resetInputHeight:C,managePlaceholder:x,showClose:S,selectDisabled:N,iconComponent:B,iconReverse:$,showNewOption:L,emptyText:G,toggleLastOptionHitState:I,resetInputState:D,handleComposition:R,handleMenuEnter:q,handleFocus:P,focus:ee,blur:Y,handleBlur:de,handleClearClick:_e,handleClose:we,handleKeydownEscape:$e,toggleMenu:je,selectOption:xe,getValueKey:$t,navigateOptions:K,dropMenuVisible:Ce,reference:Re,input:Xe,iOSInput:kt,tooltipRef:et,popperPaneRef:Q,tags:tt,selectWrapper:vt,scrollbar:De,wrapperKls:v,tagsKls:A,tagWrapperKls:M,inputKls:W,iOSInputKls:se,scrollbarKls:ue,selectTagsStyle:me,nsSelect:r,tagTextStyle:U,inputStyle:j,handleMouseEnter:Ct,handleMouseLeave:Ne,showTagList:F,collapseTagList:J,tagTooltipRef:Rt,contentId:a,hoverOption:f}}}),$E=["disabled","autocomplete","aria-activedescendant","aria-controls","aria-expanded","aria-label"],RE=["disabled"],OE={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function ME(e,t,r,o,s,a){const i=n.resolveComponent("el-tag"),c=n.resolveComponent("el-tooltip"),l=n.resolveComponent("el-icon"),f=n.resolveComponent("el-input"),d=n.resolveComponent("el-option"),u=n.resolveComponent("el-options"),g=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),_=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectWrapper",class:n.normalizeClass(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...m)=>e.handleMouseEnter&&e.handleMouseEnter(...m)),onMouseleave:t[23]||(t[23]=(...m)=>e.handleMouseLeave&&e.handleMouseLeave(...m)),onClick:t[24]||(t[24]=n.withModifiers((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},[n.createVNode(c,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:n.withCtx(()=>{var m,b;return[n.createElementVNode("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=h=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=h=>e.inputHovering=!1)},[e.multiple?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"tags",tabindex:"-1",class:n.normalizeClass(e.tagsKls),style:n.normalizeStyle(e.selectTagsStyle),onClick:t[15]||(t[15]=(...h)=>e.focus&&e.focus(...h))},[e.collapseTags&&e.selected.length?(n.openBlock(),n.createBlock(n.Transition,{key:0,onAfterLeave:e.resetInputHeight},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.tagWrapperKls)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,h=>(n.openBlock(),n.createBlock(i,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle(e.tagTextStyle)},n.toDisplayString(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(n.openBlock(),n.createBlock(i,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:n.withCtx(()=>[e.collapseTagsTooltip?(n.openBlock(),n.createBlock(c,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+n.toDisplayString(e.selected.length-e.maxCollapseTags),3)]),content:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(e.nsSelect.e("collapse-tags"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,h=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(h),class:n.normalizeClass(e.nsSelect.e("collapse-tag"))},[n.createVNode(i,{class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:y=>e.handleDeleteTooltipTag(y,h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},n.toDisplayString(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(e.nsSelect.e("tags-text"))},"+ "+n.toDisplayString(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):n.createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):n.createCommentVNode("v-if",!0),e.collapseTags?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.Transition,{key:1,onAfterLeave:e.resetInputHeight},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.tagWrapperKls),style:n.normalizeStyle(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.selected,h=>(n.openBlock(),n.createBlock(i,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:y=>e.deleteTag(y,h)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text")),style:n.normalizeStyle({maxWidth:e.inputWidth-75+"px"})},n.toDisplayString(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=h=>e.query=h),type:"text",class:n.normalizeClass(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox","aria-activedescendant":((m=e.hoverOption)==null?void 0:m.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:t[1]||(t[1]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[2]||(t[2]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeyup:t[3]||(t[3]=(...h)=>e.managePlaceholder&&e.managePlaceholder(...h)),onKeydown:[t[4]||(t[4]=(...h)=>e.resetInputState&&e.resetInputState(...h)),t[5]||(t[5]=n.withKeys(n.withModifiers(h=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=n.withKeys(n.withModifiers(h=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=n.withKeys((...h)=>e.handleKeydownEscape&&e.handleKeydownEscape(...h),["esc"])),t[8]||(t[8]=n.withKeys(n.withModifiers((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[9]||(t[9]=n.withKeys((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["delete"])),t[10]||(t[10]=n.withKeys(h=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionupdate:t[12]||(t[12]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionend:t[13]||(t[13]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onInput:t[14]||(t[14]=(...h)=>e.debouncedQueryChange&&e.debouncedQueryChange(...h))},null,46,$E)),[[n.vModelText,e.query]]):n.createCommentVNode("v-if",!0)],6)):n.createCommentVNode("v-if",!0),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(n.openBlock(),n.createElementBlock("input",{key:1,ref:"iOSInput",class:n.normalizeClass(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,RE)):n.createCommentVNode("v-if",!0),n.createVNode(f,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=h=>e.selectedLabel=h),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:n.normalizeClass([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,role:"combobox","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropMenuVisible,label:e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=n.withKeys(n.withModifiers(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=n.withKeys(n.withModifiers(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=n.withKeys(h=>e.visible=!1,["tab"]))]},n.createSlots({suffix:n.withCtx(()=>[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(l,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(l,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.createElementVNode("div",OE,[n.renderSlot(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","aria-activedescendant","aria-controls","aria-expanded","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]}),content:n.withCtx(()=>[n.createVNode(p,null,n.createSlots({default:n.withCtx(()=>[n.withDirectives(n.createVNode(g,{id:e.contentId,ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass(e.scrollbarKls),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.query,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(u,{onUpdateOptions:e.onOptionsRendered},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.$slots.empty?n.renderSlot(e.$slots,"empty",{key:0}):(n.openBlock(),n.createElementBlock("p",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},n.toDisplayString(e.emptyText),3))],64)):n.createCommentVNode("v-if",!0)]),_:2},[e.$slots.header?{name:"header",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"header")])}:void 0,e.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"footer")])}:void 0]),1024)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[_,e.handleClose,e.popperPaneRef]])}var zE=oe(IE,[["render",ME],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const LE=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ce("select"),r=n.ref(!0),o=n.getCurrentInstance(),s=n.ref([]);n.provide(Bf,n.reactive({...n.toRefs(e)}));const a=n.inject(io);n.onMounted(()=>{s.value=i(o.subTree)});const i=l=>{const f=[];return Array.isArray(l.children)&&l.children.forEach(d=>{var u;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?f.push(d.component.proxy):(u=d.children)!=null&&u.length&&f.push(...i(d))}),f},{groupQueryChange:c}=n.toRaw(a);return n.watch(c,()=>{r.value=s.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:r,ns:t}}});function DE(e,t,r,o,s,a){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var $f=oe(LE,[["render",DE],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Da=it(zE,{Option:La,OptionGroup:$f}),qE=jr(La);jr($f);const qa=()=>n.inject(Nf,{}),PE=pe({pageSize:{type:Number,required:!0},pageSizes:{type:ne(Array),default:()=>la([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:ar}}),FE=n.defineComponent({name:"ElPaginationSizes"}),VE=n.defineComponent({...FE,props:PE,emits:["page-size-change"],setup(e,{emit:t}){const r=e,{t:o}=gt(),s=ce("pagination"),a=qa(),i=n.ref(r.pageSize);n.watch(()=>r.pageSizes,(f,d)=>{if(!oa(f,d)&&Array.isArray(f)){const u=f.includes(r.pageSize)?r.pageSize:r.pageSizes[0];t("page-size-change",u)}}),n.watch(()=>r.pageSize,f=>{i.value=f});const c=n.computed(()=>r.pageSizes);function l(f){var d;f!==i.value&&(i.value=f,(d=a.handleSizeChange)==null||d.call(a,Number(f)))}return(f,d)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(s).e("sizes"))},[n.createVNode(n.unref(Da),{"model-value":i.value,disabled:f.disabled,"popper-class":f.popperClass,size:f.size,teleported:f.teleported,"validate-event":!1,onChange:l},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(c),u=>(n.openBlock(),n.createBlock(n.unref(qE),{key:u,value:u,label:u+n.unref(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var jE=oe(VE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const HE=pe({size:{type:String,values:ar}}),UE=["disabled"],GE=n.defineComponent({name:"ElPaginationJumper"}),KE=n.defineComponent({...GE,props:HE,setup(e){const{t}=gt(),r=ce("pagination"),{pageCount:o,disabled:s,currentPage:a,changeEvent:i}=qa(),c=n.ref(),l=n.computed(()=>{var u;return(u=c.value)!=null?u:a==null?void 0:a.value});function f(u){c.value=u?+u:""}function d(u){u=Math.trunc(+u),i==null||i(u),c.value=void 0}return(u,g)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(r).e("jump")),disabled:n.unref(s)},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(r).e("goto")])},n.toDisplayString(n.unref(t)("el.pagination.goto")),3),n.createVNode(n.unref(Qr),{size:u.size,class:n.normalizeClass([n.unref(r).e("editor"),n.unref(r).is("in-pagination")]),min:1,max:n.unref(o),disabled:n.unref(s),"model-value":n.unref(l),"validate-event":!1,label:n.unref(t)("el.pagination.page"),type:"number","onUpdate:modelValue":f,onChange:d},null,8,["size","class","max","disabled","model-value","label"]),n.createElementVNode("span",{class:n.normalizeClass([n.unref(r).e("classifier")])},n.toDisplayString(n.unref(t)("el.pagination.pageClassifier")),3)],10,UE))}});var WE=oe(KE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const ZE=pe({total:{type:Number,default:1e3}}),XE=["disabled"],YE=n.defineComponent({name:"ElPaginationTotal"}),JE=n.defineComponent({...YE,props:ZE,setup(e){const{t}=gt(),r=ce("pagination"),{disabled:o}=qa();return(s,a)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(n.unref(r).e("total")),disabled:n.unref(o)},n.toDisplayString(n.unref(t)("el.pagination.total",{total:s.total})),11,XE))}});var QE=oe(JE,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const e2=pe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),t2=["onKeyup"],n2=["aria-current","aria-label","tabindex"],r2=["tabindex","aria-label"],o2=["aria-current","aria-label","tabindex"],a2=["tabindex","aria-label"],s2=["aria-current","aria-label","tabindex"],i2=n.defineComponent({name:"ElPaginationPager"}),c2=n.defineComponent({...i2,props:e2,emits:["change"],setup(e,{emit:t}){const r=e,o=ce("pager"),s=ce("icon"),{t:a}=gt(),i=n.ref(!1),c=n.ref(!1),l=n.ref(!1),f=n.ref(!1),d=n.ref(!1),u=n.ref(!1),g=n.computed(()=>{const k=r.pagerCount,E=(k-1)/2,C=Number(r.currentPage),x=Number(r.pageCount);let S=!1,N=!1;x>k&&(C>k-E&&(S=!0),C<x-E&&(N=!0));const B=[];if(S&&!N){const $=x-(k-2);for(let L=$;L<x;L++)B.push(L)}else if(!S&&N)for(let $=2;$<k;$++)B.push($);else if(S&&N){const $=Math.floor(k/2)-1;for(let L=C-$;L<=C+$;L++)B.push(L)}else for(let $=2;$<x;$++)B.push($);return B}),p=n.computed(()=>["more","btn-quickprev",s.b(),o.is("disabled",r.disabled)]),_=n.computed(()=>["more","btn-quicknext",s.b(),o.is("disabled",r.disabled)]),m=n.computed(()=>r.disabled?-1:0);n.watchEffect(()=>{const k=(r.pagerCount-1)/2;i.value=!1,c.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-k&&(i.value=!0),r.currentPage<r.pageCount-k&&(c.value=!0))});function b(k=!1){r.disabled||(k?l.value=!0:f.value=!0)}function h(k=!1){k?d.value=!0:u.value=!0}function y(k){const E=k.target;if(E.tagName.toLowerCase()==="li"&&Array.from(E.classList).includes("number")){const C=Number(E.textContent);C!==r.currentPage&&t("change",C)}else E.tagName.toLowerCase()==="li"&&Array.from(E.classList).includes("more")&&w(k)}function w(k){const E=k.target;if(E.tagName.toLowerCase()==="ul"||r.disabled)return;let C=Number(E.textContent);const x=r.pageCount,S=r.currentPage,N=r.pagerCount-2;E.className.includes("more")&&(E.className.includes("quickprev")?C=S-N:E.className.includes("quicknext")&&(C=S+N)),Number.isNaN(+C)||(C<1&&(C=1),C>x&&(C=x)),C!==S&&t("change",C)}return(k,E)=>(n.openBlock(),n.createElementBlock("ul",{class:n.normalizeClass(n.unref(o).b()),onClick:w,onKeyup:n.withKeys(y,["enter"])},[k.pageCount>0?(n.openBlock(),n.createElementBlock("li",{key:0,class:n.normalizeClass([[n.unref(o).is("active",k.currentPage===1),n.unref(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===1,"aria-label":n.unref(a)("el.pagination.currentPage",{pager:1}),tabindex:n.unref(m)}," 1 ",10,n2)):n.createCommentVNode("v-if",!0),i.value?(n.openBlock(),n.createElementBlock("li",{key:1,class:n.normalizeClass(n.unref(p)),tabindex:n.unref(m),"aria-label":n.unref(a)("el.pagination.prevPages",{pager:k.pagerCount-2}),onMouseenter:E[0]||(E[0]=C=>b(!0)),onMouseleave:E[1]||(E[1]=C=>l.value=!1),onFocus:E[2]||(E[2]=C=>h(!0)),onBlur:E[3]||(E[3]=C=>d.value=!1)},[(l.value||d.value)&&!k.disabled?(n.openBlock(),n.createBlock(n.unref(Nw),{key:0})):(n.openBlock(),n.createBlock(n.unref(uu),{key:1}))],42,r2)):n.createCommentVNode("v-if",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(g),C=>(n.openBlock(),n.createElementBlock("li",{key:C,class:n.normalizeClass([[n.unref(o).is("active",k.currentPage===C),n.unref(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===C,"aria-label":n.unref(a)("el.pagination.currentPage",{pager:C}),tabindex:n.unref(m)},n.toDisplayString(C),11,o2))),128)),c.value?(n.openBlock(),n.createElementBlock("li",{key:2,class:n.normalizeClass(n.unref(_)),tabindex:n.unref(m),"aria-label":n.unref(a)("el.pagination.nextPages",{pager:k.pagerCount-2}),onMouseenter:E[4]||(E[4]=C=>b()),onMouseleave:E[5]||(E[5]=C=>f.value=!1),onFocus:E[6]||(E[6]=C=>h()),onBlur:E[7]||(E[7]=C=>u.value=!1)},[(f.value||u.value)&&!k.disabled?(n.openBlock(),n.createBlock(n.unref(Iw),{key:0})):(n.openBlock(),n.createBlock(n.unref(uu),{key:1}))],42,a2)):n.createCommentVNode("v-if",!0),k.pageCount>1?(n.openBlock(),n.createElementBlock("li",{key:3,class:n.normalizeClass([[n.unref(o).is("active",k.currentPage===k.pageCount),n.unref(o).is("disabled",k.disabled)],"number"]),"aria-current":k.currentPage===k.pageCount,"aria-label":n.unref(a)("el.pagination.currentPage",{pager:k.pageCount}),tabindex:n.unref(m)},n.toDisplayString(k.pageCount),11,s2)):n.createCommentVNode("v-if",!0)],42,t2))}});var l2=oe(c2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Fe=e=>typeof e!="number",Rf=pe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ee(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ne(Array),default:()=>la([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:mt,default:()=>kw},nextText:{type:String,default:""},nextIcon:{type:mt,default:()=>Cw},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),u2={"update:current-page":e=>Ee(e),"update:page-size":e=>Ee(e),"size-change":e=>Ee(e),"current-change":e=>Ee(e),"prev-click":e=>Ee(e),"next-click":e=>Ee(e)},Of="ElPagination";var f2=n.defineComponent({name:Of,props:Rf,emits:u2,setup(e,{emit:t,slots:r}){const{t:o}=gt(),s=ce("pagination"),a=n.getCurrentInstance().vnode.props||{},i="onUpdate:currentPage"in a||"onUpdate:current-page"in a||"onCurrentChange"in a,c="onUpdate:pageSize"in a||"onUpdate:page-size"in a||"onSizeChange"in a,l=n.computed(()=>{if(Fe(e.total)&&Fe(e.pageCount)||!Fe(e.currentPage)&&!i)return!1;if(e.layout.includes("sizes")){if(Fe(e.pageCount)){if(!Fe(e.total)&&!Fe(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=n.ref(Fe(e.defaultPageSize)?10:e.defaultPageSize),d=n.ref(Fe(e.defaultCurrentPage)?1:e.defaultCurrentPage),u=n.computed({get(){return Fe(e.pageSize)?f.value:e.pageSize},set(w){Fe(e.pageSize)&&(f.value=w),c&&(t("update:page-size",w),t("size-change",w))}}),g=n.computed(()=>{let w=0;return Fe(e.pageCount)?Fe(e.total)||(w=Math.max(1,Math.ceil(e.total/u.value))):w=e.pageCount,w}),p=n.computed({get(){return Fe(e.currentPage)?d.value:e.currentPage},set(w){let k=w;w<1?k=1:w>g.value&&(k=g.value),Fe(e.currentPage)&&(d.value=k),i&&(t("update:current-page",k),t("current-change",k))}});n.watch(g,w=>{p.value>w&&(p.value=w)});function _(w){p.value=w}function m(w){u.value=w;const k=g.value;p.value>k&&(p.value=k)}function b(){e.disabled||(p.value-=1,t("prev-click",p.value))}function h(){e.disabled||(p.value+=1,t("next-click",p.value))}function y(w,k){w&&(w.props||(w.props={}),w.props.class=[w.props.class,k].join(" "))}return n.provide(Nf,{pageCount:g,disabled:n.computed(()=>e.disabled),currentPage:p,changeEvent:_,handleSizeChange:m}),()=>{var w,k;if(!l.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&g.value<=1)return null;const E=[],C=[],x=n.h("div",{class:s.e("rightwrapper")},C),S={prev:n.h(hE,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:n.h(WE,{size:e.small?"small":"default"}),pager:n.h(l2,{currentPage:p.value,pageCount:g.value,pagerCount:e.pagerCount,onChange:_,disabled:e.disabled}),next:n.h(wE,{disabled:e.disabled,currentPage:p.value,pageCount:g.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:h}),sizes:n.h(jE,{pageSize:u.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(k=(w=r==null?void 0:r.default)==null?void 0:w.call(r))!=null?k:null,total:n.h(QE,{total:Fe(e.total)?0:e.total})},N=e.layout.split(",").map($=>$.trim());let B=!1;return N.forEach($=>{if($==="->"){B=!0;return}B?C.push(S[$]):E.push(S[$])}),y(E[0],s.is("first")),y(E[E.length-1],s.is("last")),B&&C.length>0&&(y(C[0],s.is("first")),y(C[C.length-1],s.is("last")),E.push(x)),n.h("div",{class:[s.b(),s.is("background",e.background),{[s.m("small")]:e.small}]},E)}}});const d2=it(f2),Mf=pe({trigger:hr.trigger,placement:za.placement,disabled:hr.disabled,visible:Je.visible,transition:Je.transition,popperOptions:za.popperOptions,tabindex:za.tabindex,content:Je.content,popperStyle:Je.popperStyle,popperClass:Je.popperClass,enterable:{...Je.enterable,default:!0},effect:{...Je.effect,default:"light"},teleported:Je.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),p2={"update:visible":e=>aa(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},h2="onUpdate:visible",m2=n.defineComponent({name:"ElPopover"}),g2=n.defineComponent({...m2,props:Mf,emits:p2,setup(e,{expose:t,emit:r}){const o=e,s=n.computed(()=>o[h2]),a=ce("popover"),i=n.ref(),c=n.computed(()=>{var b;return(b=n.unref(i))==null?void 0:b.popperRef}),l=n.computed(()=>[{width:Bn(o.width)},o.popperStyle]),f=n.computed(()=>[a.b(),o.popperClass,{[a.m("plain")]:!!o.content}]),d=n.computed(()=>o.transition===`${a.namespace.value}-fade-in-linear`),u=()=>{var b;(b=i.value)==null||b.hide()},g=()=>{r("before-enter")},p=()=>{r("before-leave")},_=()=>{r("after-enter")},m=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:c,hide:u}),(b,h)=>(n.openBlock(),n.createBlock(n.unref(mr),n.mergeProps({ref_key:"tooltipRef",ref:i},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":n.unref(f),"popper-style":n.unref(l),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":n.unref(d),"onUpdate:visible":n.unref(s),onBeforeShow:g,onBeforeHide:p,onShow:_,onHide:m}),{content:n.withCtx(()=>[b.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).e("title")),role:"title"},n.toDisplayString(b.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(b.content),1)])]),default:n.withCtx(()=>[b.$slots.reference?n.renderSlot(b.$slots,"reference",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var _2=oe(g2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const zf=(e,t)=>{const r=t.arg||t.value,o=r==null?void 0:r.popperRef;o&&(o.triggerRef=e)};var b2={mounted(e,t){zf(e,t)},updated(e,t){zf(e,t)}};const y2=Fw(b2,"popover"),w2=it(_2,{directive:y2}),k2=pe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),v2=pe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),C2=n.defineComponent({name:"ElSkeletonItem"}),E2=n.defineComponent({...C2,props:v2,setup(e){const t=ce("skeleton");return(r,o)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([n.unref(t).e("item"),n.unref(t).e(r.variant)])},[r.variant==="image"?(n.openBlock(),n.createBlock(n.unref(Lw),{key:0})):n.createCommentVNode("v-if",!0)],2))}});var co=oe(E2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const x2=n.defineComponent({name:"ElSkeleton"}),S2=n.defineComponent({...x2,props:k2,setup(e,{expose:t}){const r=e,o=ce("skeleton"),s=ck(n.toRef(r,"loading"),r.throttle);return t({uiLoading:s}),(a,i)=>n.unref(s)?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:[n.unref(o).b(),n.unref(o).is("animated",a.animated)]},a.$attrs),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.count,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c},[a.loading?n.renderSlot(a.$slots,"template",{key:c},()=>[n.createVNode(co,{class:n.normalizeClass(n.unref(o).is("first")),variant:"p"},null,8,["class"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.rows,l=>(n.openBlock(),n.createBlock(co,{key:l,class:n.normalizeClass([n.unref(o).e("paragraph"),n.unref(o).is("last",l===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):n.createCommentVNode("v-if",!0)],64))),128))],16)):n.renderSlot(a.$slots,"default",n.normalizeProps(n.mergeProps({key:1},a.$attrs)))}});var A2=oe(S2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const T2=it(A2,{SkeletonItem:co}),yr=jr(co),N2="TOOLTIP_APPEND_TO";function B2(){return n.inject(N2,n.computed(()=>{}))}/*!
15
+ * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
16
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
17
+ */function wr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wr=function(t){return typeof t}:wr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function I2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $2(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R2(e,t,r){return t&&$2(e.prototype,t),e}function O2(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},o=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable}))),o.forEach(function(s){O2(e,s,r[s])})}return e}function Lf(e,t){return L2(e)||q2(e,t)||F2()}function M2(e){return z2(e)||D2(e)||P2()}function z2(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function L2(e){if(Array.isArray(e))return e}function D2(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function q2(e,t){var r=[],o=!0,s=!1,a=void 0;try{for(var i=e[Symbol.iterator](),c;!(o=(c=i.next()).done)&&(r.push(c.value),!(t&&r.length===t));o=!0);}catch(l){s=!0,a=l}finally{try{!o&&i.return!=null&&i.return()}finally{if(s)throw a}}return r}function P2(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function F2(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Df=function(){},Pa={},qf={},V2=null,Pf={mark:Df,measure:Df};try{typeof window<"u"&&(Pa=window),typeof document<"u"&&(qf=document),typeof MutationObserver<"u"&&(V2=MutationObserver),typeof performance<"u"&&(Pf=performance)}catch{}var j2=Pa.navigator||{},Ff=j2.userAgent,Vf=Ff===void 0?"":Ff,lo=Pa,Ve=qf,uo=Pf;lo.document;var Fa=!!Ve.documentElement&&!!Ve.head&&typeof Ve.addEventListener=="function"&&typeof Ve.createElement=="function",H2=~Vf.indexOf("MSIE")||~Vf.indexOf("Trident/"),Ut="___FONT_AWESOME___",Va=16,jf="fa",Hf="svg-inline--fa",Uf="data-fa-i2svg";(function(){try{return!0}catch{return!1}})();var ja={GROUP:"group",PRIMARY:"primary",SECONDARY:"secondary"},Gf=lo.FontAwesomeConfig||{};function U2(e){var t=Ve.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function G2(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Ve&&typeof Ve.querySelector=="function"){var K2=[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];K2.forEach(function(e){var t=Lf(e,2),r=t[0],o=t[1],s=G2(U2(r));s!=null&&(Gf[o]=s)})}var W2={familyPrefix:jf,replacementClass:Hf,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Ha=le({},W2,Gf);Ha.autoReplaceSvg||(Ha.observeMutations=!1);var ze=le({},Ha);lo.FontAwesomeConfig=ze;var Gt=lo||{};Gt[Ut]||(Gt[Ut]={}),Gt[Ut].styles||(Gt[Ut].styles={}),Gt[Ut].hooks||(Gt[Ut].hooks={}),Gt[Ut].shims||(Gt[Ut].shims=[]);var Nt=Gt[Ut],Z2=[],X2=function e(){Ve.removeEventListener("DOMContentLoaded",e),Ua=1,Z2.map(function(t){return t()})},Ua=!1;Fa&&(Ua=(Ve.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Ve.readyState),Ua||Ve.addEventListener("DOMContentLoaded",X2));var Ga="pending",Kf="settled",fo="fulfilled",po="rejected",Y2=function(){},Wf=typeof global<"u"&&typeof global.process<"u"&&typeof global.process.emit=="function",J2=typeof setImmediate>"u"?setTimeout:setImmediate,kr=[],Ka;function Q2(){for(var e=0;e<kr.length;e++)kr[e][0](kr[e][1]);kr=[],Ka=!1}function ho(e,t){kr.push([e,t]),Ka||(Ka=!0,J2(Q2,0))}function ex(e,t){function r(s){Wa(t,s)}function o(s){vr(t,s)}try{e(r,o)}catch(s){o(s)}}function Zf(e){var t=e.owner,r=t._state,o=t._data,s=e[r],a=e.then;if(typeof s=="function"){r=fo;try{o=s(o)}catch(i){vr(a,i)}}Xf(a,o)||(r===fo&&Wa(a,o),r===po&&vr(a,o))}function Xf(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||wr(t)==="object")){var o=t.then;if(typeof o=="function")return o.call(t,function(s){r||(r=!0,t===s?Yf(e,s):Wa(e,s))},function(s){r||(r=!0,vr(e,s))}),!0}}catch(s){return r||vr(e,s),!0}return!1}function Wa(e,t){(e===t||!Xf(e,t))&&Yf(e,t)}function Yf(e,t){e._state===Ga&&(e._state=Kf,e._data=t,ho(tx,e))}function vr(e,t){e._state===Ga&&(e._state=Kf,e._data=t,ho(nx,e))}function Jf(e){e._then=e._then.forEach(Zf)}function tx(e){e._state=fo,Jf(e)}function nx(e){e._state=po,Jf(e),!e._handled&&Wf&&global.process.emit("unhandledRejection",e._data,e)}function rx(e){global.process.emit("rejectionHandled",e)}function ft(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof ft))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],ex(e,this)}ft.prototype={constructor:ft,_state:Ga,_then:null,_data:void 0,_handled:!1,then:function(t,r){var o={owner:this,then:new this.constructor(Y2),fulfilled:t,rejected:r};return(r||t)&&!this._handled&&(this._handled=!0,this._state===po&&Wf&&ho(rx,this)),this._state===fo||this._state===po?ho(Zf,o):this._then.push(o),o.then},catch:function(t){return this.then(null,t)}},ft.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new ft(function(t,r){var o=[],s=0;function a(l){return s++,function(f){o[l]=f,--s||t(o)}}for(var i=0,c;i<e.length;i++)c=e[i],c&&typeof c.then=="function"?c.then(a(i),r):o[i]=c;s||t(o)})},ft.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new ft(function(t,r){for(var o=0,s;o<e.length;o++)s=e[o],s&&typeof s.then=="function"?s.then(t,r):t(s)})},ft.resolve=function(e){return e&&wr(e)==="object"&&e.constructor===ft?e:new ft(function(t){t(e)})},ft.reject=function(e){return new ft(function(t,r){r(e)})};var Pn=Va,rn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ox(e){if(!(!e||!Fa)){var t=Ve.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=Ve.head.childNodes,o=null,s=r.length-1;s>-1;s--){var a=r[s],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(o=a)}return Ve.head.insertBefore(t,o),e}}var ax="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function mo(){for(var e=12,t="";e-- >0;)t+=ax[Math.random()*62|0];return t}function Qf(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sx(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(Qf(e[r]),'" ')},"").trim()}function Za(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r],";")},"")}function Xa(e){return e.size!==rn.size||e.x!==rn.x||e.y!==rn.y||e.rotate!==rn.rotate||e.flipX||e.flipY}function ed(e){var t=e.transform,r=e.containerWidth,o=e.iconWidth,s={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(a," ").concat(i," ").concat(c)},f={transform:"translate(".concat(o/2*-1," -256)")};return{outer:s,inner:l,path:f}}function ix(e){var t=e.transform,r=e.width,o=r===void 0?Va:r,s=e.height,a=s===void 0?Va:s,i="";return H2?i+="translate(".concat(t.x/Pn-o/2,"em, ").concat(t.y/Pn-a/2,"em) "):i+="translate(calc(-50% + ".concat(t.x/Pn,"em), calc(-50% + ").concat(t.y/Pn,"em)) "),i+="scale(".concat(t.size/Pn*(t.flipX?-1:1),", ").concat(t.size/Pn*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var Ya={x:0,y:0,width:"100%",height:"100%"};function td(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function cx(e){return e.tag==="g"?e.children:[e]}function lx(e){var t=e.children,r=e.attributes,o=e.main,s=e.mask,a=e.maskId,i=e.transform,c=o.width,l=o.icon,f=s.width,d=s.icon,u=ed({transform:i,containerWidth:f,iconWidth:c}),g={tag:"rect",attributes:le({},Ya,{fill:"white"})},p=l.children?{children:l.children.map(td)}:{},_={tag:"g",attributes:le({},u.inner),children:[td(le({tag:l.tag,attributes:le({},l.attributes,u.path)},p))]},m={tag:"g",attributes:le({},u.outer),children:[_]},b="mask-".concat(a||mo()),h="clip-".concat(a||mo()),y={tag:"mask",attributes:le({},Ya,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,m]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:h},children:cx(d)},y]};return t.push(w,{tag:"rect",attributes:le({fill:"currentColor","clip-path":"url(#".concat(h,")"),mask:"url(#".concat(b,")")},Ya)}),{children:t,attributes:r}}function ux(e){var t=e.children,r=e.attributes,o=e.main,s=e.transform,a=e.styles,i=Za(a);if(i.length>0&&(r.style=i),Xa(s)){var c=ed({transform:s,containerWidth:o.width,iconWidth:o.width});t.push({tag:"g",attributes:le({},c.outer),children:[{tag:"g",attributes:le({},c.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:le({},o.icon.attributes,c.path)}]}]})}else t.push(o.icon);return{children:t,attributes:r}}function fx(e){var t=e.children,r=e.main,o=e.mask,s=e.attributes,a=e.styles,i=e.transform;if(Xa(i)&&r.found&&!o.found){var c=r.width,l=r.height,f={x:c/l/2,y:.5};s.style=Za(le({},a,{"transform-origin":"".concat(f.x+i.x/16,"em ").concat(f.y+i.y/16,"em")}))}return[{tag:"svg",attributes:s,children:t}]}function dx(e){var t=e.prefix,r=e.iconName,o=e.children,s=e.attributes,a=e.symbol,i=a===!0?"".concat(t,"-").concat(ze.familyPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:le({},s,{id:i}),children:o}]}]}function px(e){var t=e.icons,r=t.main,o=t.mask,s=e.prefix,a=e.iconName,i=e.transform,c=e.symbol,l=e.title,f=e.maskId,d=e.titleId,u=e.extra,g=e.watchable,p=g===void 0?!1:g,_=o.found?o:r,m=_.width,b=_.height,h=s==="fak",y=h?"":"fa-w-".concat(Math.ceil(m/b*16)),w=[ze.replacementClass,a?"".concat(ze.familyPrefix,"-").concat(a):"",y].filter(function(B){return u.classes.indexOf(B)===-1}).filter(function(B){return B!==""||!!B}).concat(u.classes).join(" "),k={children:[],attributes:le({},u.attributes,{"data-prefix":s,"data-icon":a,class:w,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(b)})},E=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(m/b*16*.0625,"em")}:{};p&&(k.attributes[Uf]=""),l&&k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(d||mo())},children:[l]});var C=le({},k,{prefix:s,iconName:a,main:r,mask:o,maskId:f,transform:i,symbol:c,styles:le({},E,u.styles)}),x=o.found&&r.found?lx(C):ux(C),S=x.children,N=x.attributes;return C.children=S,C.attributes=N,c?dx(C):fx(C)}function hx(e){var t=e.content,r=e.width,o=e.height,s=e.transform,a=e.title,i=e.extra,c=e.watchable,l=c===void 0?!1:c,f=le({},i.attributes,a?{title:a}:{},{class:i.classes.join(" ")});l&&(f[Uf]="");var d=le({},i.styles);Xa(s)&&(d.transform=ix({transform:s,width:r,height:o}),d["-webkit-transform"]=d.transform);var u=Za(d);u.length>0&&(f.style=u);var g=[];return g.push({tag:"span",attributes:f,children:[t]}),a&&g.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),g}ze.measurePerformance&&uo&&uo.mark&&uo.measure;var Ja=function(t,r,o,s){var a=Object.keys(t),i=a.length,c=r,l,f,d;for(o===void 0?(l=1,d=t[a[0]]):(l=0,d=o);l<i;l++)f=a[l],d=c(d,t[f],f,t);return d};function nd(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.skipHooks,s=o===void 0?!1:o,a=Object.keys(t).reduce(function(i,c){var l=t[c],f=!!l.icon;return f?i[l.iconName]=l.icon:i[c]=l,i},{});typeof Nt.hooks.addPack=="function"&&!s?Nt.hooks.addPack(e,a):Nt.styles[e]=le({},Nt.styles[e]||{},a),e==="fas"&&nd("fa",t)}var rd=Nt.styles,mx=Nt.shims,od=function(){var t=function(s){return Ja(rd,function(a,i,c){return a[c]=Ja(i,s,{}),a},{})};t(function(o,s,a){return s[3]&&(o[s[3]]=a),o}),t(function(o,s,a){var i=s[2];return o[a]=a,i.forEach(function(c){o[c]=a}),o});var r="far"in rd;Ja(mx,function(o,s){var a=s[0],i=s[1],c=s[2];return i==="far"&&!r&&(i="fas"),o[a]={prefix:i,iconName:c},o},{})};od(),Nt.styles;function ad(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}function sd(e){var t=e.tag,r=e.attributes,o=r===void 0?{}:r,s=e.children,a=s===void 0?[]:s;return typeof e=="string"?Qf(e):"<".concat(t," ").concat(sx(o),">").concat(a.map(sd).join(""),"</").concat(t,">")}var gx=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(o,s){var a=s.toLowerCase().split("-"),i=a[0],c=a.slice(1).join("-");if(i&&c==="h")return o.flipX=!0,o;if(i&&c==="v")return o.flipY=!0,o;if(c=parseFloat(c),isNaN(c))return o;switch(i){case"grow":o.size=o.size+c;break;case"shrink":o.size=o.size-c;break;case"left":o.x=o.x-c;break;case"right":o.x=o.x+c;break;case"up":o.y=o.y-c;break;case"down":o.y=o.y+c;break;case"rotate":o.rotate=o.rotate+c;break}return o},r):r};function Qa(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=new Error().stack}Qa.prototype=Object.create(Error.prototype),Qa.prototype.constructor=Qa;var go={fill:"currentColor"},id={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};le({},go,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"});var es=le({},id,{attributeName:"opacity"});le({},go,{cx:"256",cy:"364",r:"28"}),le({},id,{attributeName:"r",values:"28;14;28;28;14;28;"}),le({},es,{values:"1;0;1;1;0;1;"}),le({},go,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),le({},es,{values:"1;0;0;0;0;1;"}),le({},go,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),le({},es,{values:"0;0;1;1;0;0;"}),Nt.styles;function cd(e){var t=e[0],r=e[1],o=e.slice(4),s=Lf(o,1),a=s[0],i=null;return Array.isArray(a)?i={tag:"g",attributes:{class:"".concat(ze.familyPrefix,"-").concat(ja.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ze.familyPrefix,"-").concat(ja.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(ze.familyPrefix,"-").concat(ja.PRIMARY),fill:"currentColor",d:a[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:i}}Nt.styles;var _x=`svg:not(:root).svg-inline--fa {
18
+ overflow: visible;
19
+ }
20
+
21
+ .svg-inline--fa {
22
+ display: inline-block;
23
+ font-size: inherit;
24
+ height: 1em;
25
+ overflow: visible;
26
+ vertical-align: -0.125em;
27
+ }
28
+ .svg-inline--fa.fa-lg {
29
+ vertical-align: -0.225em;
30
+ }
31
+ .svg-inline--fa.fa-w-1 {
32
+ width: 0.0625em;
33
+ }
34
+ .svg-inline--fa.fa-w-2 {
35
+ width: 0.125em;
36
+ }
37
+ .svg-inline--fa.fa-w-3 {
38
+ width: 0.1875em;
39
+ }
40
+ .svg-inline--fa.fa-w-4 {
41
+ width: 0.25em;
42
+ }
43
+ .svg-inline--fa.fa-w-5 {
44
+ width: 0.3125em;
45
+ }
46
+ .svg-inline--fa.fa-w-6 {
47
+ width: 0.375em;
48
+ }
49
+ .svg-inline--fa.fa-w-7 {
50
+ width: 0.4375em;
51
+ }
52
+ .svg-inline--fa.fa-w-8 {
53
+ width: 0.5em;
54
+ }
55
+ .svg-inline--fa.fa-w-9 {
56
+ width: 0.5625em;
57
+ }
58
+ .svg-inline--fa.fa-w-10 {
59
+ width: 0.625em;
60
+ }
61
+ .svg-inline--fa.fa-w-11 {
62
+ width: 0.6875em;
63
+ }
64
+ .svg-inline--fa.fa-w-12 {
65
+ width: 0.75em;
66
+ }
67
+ .svg-inline--fa.fa-w-13 {
68
+ width: 0.8125em;
69
+ }
70
+ .svg-inline--fa.fa-w-14 {
71
+ width: 0.875em;
72
+ }
73
+ .svg-inline--fa.fa-w-15 {
74
+ width: 0.9375em;
75
+ }
76
+ .svg-inline--fa.fa-w-16 {
77
+ width: 1em;
78
+ }
79
+ .svg-inline--fa.fa-w-17 {
80
+ width: 1.0625em;
81
+ }
82
+ .svg-inline--fa.fa-w-18 {
83
+ width: 1.125em;
84
+ }
85
+ .svg-inline--fa.fa-w-19 {
86
+ width: 1.1875em;
87
+ }
88
+ .svg-inline--fa.fa-w-20 {
89
+ width: 1.25em;
90
+ }
91
+ .svg-inline--fa.fa-pull-left {
92
+ margin-right: 0.3em;
93
+ width: auto;
94
+ }
95
+ .svg-inline--fa.fa-pull-right {
96
+ margin-left: 0.3em;
97
+ width: auto;
98
+ }
99
+ .svg-inline--fa.fa-border {
100
+ height: 1.5em;
101
+ }
102
+ .svg-inline--fa.fa-li {
103
+ width: 2em;
104
+ }
105
+ .svg-inline--fa.fa-fw {
106
+ width: 1.25em;
107
+ }
108
+
109
+ .fa-layers svg.svg-inline--fa {
110
+ bottom: 0;
111
+ left: 0;
112
+ margin: auto;
113
+ position: absolute;
114
+ right: 0;
115
+ top: 0;
116
+ }
117
+
118
+ .fa-layers {
119
+ display: inline-block;
120
+ height: 1em;
121
+ position: relative;
122
+ text-align: center;
123
+ vertical-align: -0.125em;
124
+ width: 1em;
125
+ }
126
+ .fa-layers svg.svg-inline--fa {
127
+ -webkit-transform-origin: center center;
128
+ transform-origin: center center;
129
+ }
130
+
131
+ .fa-layers-counter, .fa-layers-text {
132
+ display: inline-block;
133
+ position: absolute;
134
+ text-align: center;
135
+ }
136
+
137
+ .fa-layers-text {
138
+ left: 50%;
139
+ top: 50%;
140
+ -webkit-transform: translate(-50%, -50%);
141
+ transform: translate(-50%, -50%);
142
+ -webkit-transform-origin: center center;
143
+ transform-origin: center center;
144
+ }
145
+
146
+ .fa-layers-counter {
147
+ background-color: #ff253a;
148
+ border-radius: 1em;
149
+ -webkit-box-sizing: border-box;
150
+ box-sizing: border-box;
151
+ color: #fff;
152
+ height: 1.5em;
153
+ line-height: 1;
154
+ max-width: 5em;
155
+ min-width: 1.5em;
156
+ overflow: hidden;
157
+ padding: 0.25em;
158
+ right: 0;
159
+ text-overflow: ellipsis;
160
+ top: 0;
161
+ -webkit-transform: scale(0.25);
162
+ transform: scale(0.25);
163
+ -webkit-transform-origin: top right;
164
+ transform-origin: top right;
165
+ }
166
+
167
+ .fa-layers-bottom-right {
168
+ bottom: 0;
169
+ right: 0;
170
+ top: auto;
171
+ -webkit-transform: scale(0.25);
172
+ transform: scale(0.25);
173
+ -webkit-transform-origin: bottom right;
174
+ transform-origin: bottom right;
175
+ }
176
+
177
+ .fa-layers-bottom-left {
178
+ bottom: 0;
179
+ left: 0;
180
+ right: auto;
181
+ top: auto;
182
+ -webkit-transform: scale(0.25);
183
+ transform: scale(0.25);
184
+ -webkit-transform-origin: bottom left;
185
+ transform-origin: bottom left;
186
+ }
187
+
188
+ .fa-layers-top-right {
189
+ right: 0;
190
+ top: 0;
191
+ -webkit-transform: scale(0.25);
192
+ transform: scale(0.25);
193
+ -webkit-transform-origin: top right;
194
+ transform-origin: top right;
195
+ }
196
+
197
+ .fa-layers-top-left {
198
+ left: 0;
199
+ right: auto;
200
+ top: 0;
201
+ -webkit-transform: scale(0.25);
202
+ transform: scale(0.25);
203
+ -webkit-transform-origin: top left;
204
+ transform-origin: top left;
205
+ }
206
+
207
+ .fa-lg {
208
+ font-size: 1.3333333333em;
209
+ line-height: 0.75em;
210
+ vertical-align: -0.0667em;
211
+ }
212
+
213
+ .fa-xs {
214
+ font-size: 0.75em;
215
+ }
216
+
217
+ .fa-sm {
218
+ font-size: 0.875em;
219
+ }
220
+
221
+ .fa-1x {
222
+ font-size: 1em;
223
+ }
224
+
225
+ .fa-2x {
226
+ font-size: 2em;
227
+ }
228
+
229
+ .fa-3x {
230
+ font-size: 3em;
231
+ }
232
+
233
+ .fa-4x {
234
+ font-size: 4em;
235
+ }
236
+
237
+ .fa-5x {
238
+ font-size: 5em;
239
+ }
240
+
241
+ .fa-6x {
242
+ font-size: 6em;
243
+ }
244
+
245
+ .fa-7x {
246
+ font-size: 7em;
247
+ }
248
+
249
+ .fa-8x {
250
+ font-size: 8em;
251
+ }
252
+
253
+ .fa-9x {
254
+ font-size: 9em;
255
+ }
256
+
257
+ .fa-10x {
258
+ font-size: 10em;
259
+ }
260
+
261
+ .fa-fw {
262
+ text-align: center;
263
+ width: 1.25em;
264
+ }
265
+
266
+ .fa-ul {
267
+ list-style-type: none;
268
+ margin-left: 2.5em;
269
+ padding-left: 0;
270
+ }
271
+ .fa-ul > li {
272
+ position: relative;
273
+ }
274
+
275
+ .fa-li {
276
+ left: -2em;
277
+ position: absolute;
278
+ text-align: center;
279
+ width: 2em;
280
+ line-height: inherit;
281
+ }
282
+
283
+ .fa-border {
284
+ border: solid 0.08em #eee;
285
+ border-radius: 0.1em;
286
+ padding: 0.2em 0.25em 0.15em;
287
+ }
288
+
289
+ .fa-pull-left {
290
+ float: left;
291
+ }
292
+
293
+ .fa-pull-right {
294
+ float: right;
295
+ }
296
+
297
+ .fa.fa-pull-left,
298
+ .fas.fa-pull-left,
299
+ .far.fa-pull-left,
300
+ .fal.fa-pull-left,
301
+ .fab.fa-pull-left {
302
+ margin-right: 0.3em;
303
+ }
304
+ .fa.fa-pull-right,
305
+ .fas.fa-pull-right,
306
+ .far.fa-pull-right,
307
+ .fal.fa-pull-right,
308
+ .fab.fa-pull-right {
309
+ margin-left: 0.3em;
310
+ }
311
+
312
+ .fa-spin {
313
+ -webkit-animation: fa-spin 2s infinite linear;
314
+ animation: fa-spin 2s infinite linear;
315
+ }
316
+
317
+ .fa-pulse {
318
+ -webkit-animation: fa-spin 1s infinite steps(8);
319
+ animation: fa-spin 1s infinite steps(8);
320
+ }
321
+
322
+ @-webkit-keyframes fa-spin {
323
+ 0% {
324
+ -webkit-transform: rotate(0deg);
325
+ transform: rotate(0deg);
326
+ }
327
+ 100% {
328
+ -webkit-transform: rotate(360deg);
329
+ transform: rotate(360deg);
330
+ }
331
+ }
332
+
333
+ @keyframes fa-spin {
334
+ 0% {
335
+ -webkit-transform: rotate(0deg);
336
+ transform: rotate(0deg);
337
+ }
338
+ 100% {
339
+ -webkit-transform: rotate(360deg);
340
+ transform: rotate(360deg);
341
+ }
342
+ }
343
+ .fa-rotate-90 {
344
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
345
+ -webkit-transform: rotate(90deg);
346
+ transform: rotate(90deg);
347
+ }
348
+
349
+ .fa-rotate-180 {
350
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
351
+ -webkit-transform: rotate(180deg);
352
+ transform: rotate(180deg);
353
+ }
354
+
355
+ .fa-rotate-270 {
356
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
357
+ -webkit-transform: rotate(270deg);
358
+ transform: rotate(270deg);
359
+ }
360
+
361
+ .fa-flip-horizontal {
362
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
363
+ -webkit-transform: scale(-1, 1);
364
+ transform: scale(-1, 1);
365
+ }
366
+
367
+ .fa-flip-vertical {
368
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
369
+ -webkit-transform: scale(1, -1);
370
+ transform: scale(1, -1);
371
+ }
372
+
373
+ .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
374
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
375
+ -webkit-transform: scale(-1, -1);
376
+ transform: scale(-1, -1);
377
+ }
378
+
379
+ :root .fa-rotate-90,
380
+ :root .fa-rotate-180,
381
+ :root .fa-rotate-270,
382
+ :root .fa-flip-horizontal,
383
+ :root .fa-flip-vertical,
384
+ :root .fa-flip-both {
385
+ -webkit-filter: none;
386
+ filter: none;
387
+ }
388
+
389
+ .fa-stack {
390
+ display: inline-block;
391
+ height: 2em;
392
+ position: relative;
393
+ width: 2.5em;
394
+ }
395
+
396
+ .fa-stack-1x,
397
+ .fa-stack-2x {
398
+ bottom: 0;
399
+ left: 0;
400
+ margin: auto;
401
+ position: absolute;
402
+ right: 0;
403
+ top: 0;
404
+ }
405
+
406
+ .svg-inline--fa.fa-stack-1x {
407
+ height: 1em;
408
+ width: 1.25em;
409
+ }
410
+ .svg-inline--fa.fa-stack-2x {
411
+ height: 2em;
412
+ width: 2.5em;
413
+ }
414
+
415
+ .fa-inverse {
416
+ color: #fff;
417
+ }
418
+
419
+ .sr-only {
420
+ border: 0;
421
+ clip: rect(0, 0, 0, 0);
422
+ height: 1px;
423
+ margin: -1px;
424
+ overflow: hidden;
425
+ padding: 0;
426
+ position: absolute;
427
+ width: 1px;
428
+ }
429
+
430
+ .sr-only-focusable:active, .sr-only-focusable:focus {
431
+ clip: auto;
432
+ height: auto;
433
+ margin: 0;
434
+ overflow: visible;
435
+ position: static;
436
+ width: auto;
437
+ }
438
+
439
+ .svg-inline--fa .fa-primary {
440
+ fill: var(--fa-primary-color, currentColor);
441
+ opacity: 1;
442
+ opacity: var(--fa-primary-opacity, 1);
443
+ }
444
+
445
+ .svg-inline--fa .fa-secondary {
446
+ fill: var(--fa-secondary-color, currentColor);
447
+ opacity: 0.4;
448
+ opacity: var(--fa-secondary-opacity, 0.4);
449
+ }
450
+
451
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
452
+ opacity: 0.4;
453
+ opacity: var(--fa-secondary-opacity, 0.4);
454
+ }
455
+
456
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
457
+ opacity: 1;
458
+ opacity: var(--fa-primary-opacity, 1);
459
+ }
460
+
461
+ .svg-inline--fa mask .fa-primary,
462
+ .svg-inline--fa mask .fa-secondary {
463
+ fill: black;
464
+ }
465
+
466
+ .fad.fa-inverse {
467
+ color: #fff;
468
+ }`;function bx(){var e=jf,t=Hf,r=ze.familyPrefix,o=ze.replacementClass,s=_x;if(r!==e||o!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),c=new RegExp("\\.".concat(t),"g");s=s.replace(a,".".concat(r,"-")).replace(i,"--".concat(r,"-")).replace(c,".".concat(o))}return s}var yx=function(){function e(){I2(this,e),this.definitions={}}return R2(e,[{key:"add",value:function(){for(var r=this,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var i=s.reduce(this._pullDefinitions,{});Object.keys(i).forEach(function(c){r.definitions[c]=le({},r.definitions[c]||{},i[c]),nd(c,i[c]),od()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,o){var s=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(s).map(function(a){var i=s[a],c=i.prefix,l=i.iconName,f=i.icon;r[c]||(r[c]={}),r[c][l]=f}),r}}]),e}();function ld(){ze.autoAddCss&&!dd&&(ox(bx()),dd=!0)}function ud(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(o){return sd(o)})}}),Object.defineProperty(e,"node",{get:function(){if(Fa){var o=Ve.createElement("div");return o.innerHTML=e.html,o.children}}}),e}function fd(e){var t=e.prefix,r=t===void 0?"fa":t,o=e.iconName;if(o)return ad(kx.definitions,r,o)||ad(Nt.styles,r,o)}function wx(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(t||{}).icon?t:fd(t||{}),s=r.mask;return s&&(s=(s||{}).icon?s:fd(s||{})),e(o,le({},r,{mask:s}))}}var kx=new yx,dd=!1,_o={transform:function(t){return gx(t)}},vx=wx(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.transform,o=r===void 0?rn:r,s=t.symbol,a=s===void 0?!1:s,i=t.mask,c=i===void 0?null:i,l=t.maskId,f=l===void 0?null:l,d=t.title,u=d===void 0?null:d,g=t.titleId,p=g===void 0?null:g,_=t.classes,m=_===void 0?[]:_,b=t.attributes,h=b===void 0?{}:b,y=t.styles,w=y===void 0?{}:y;if(e){var k=e.prefix,E=e.iconName,C=e.icon;return ud(le({type:"icon"},e),function(){return ld(),ze.autoA11y&&(u?h["aria-labelledby"]="".concat(ze.replacementClass,"-title-").concat(p||mo()):(h["aria-hidden"]="true",h.focusable="false")),px({icons:{main:cd(C),mask:c?cd(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:E,transform:le({},rn,o),symbol:a,title:u,maskId:f,titleId:p,extra:{attributes:h,styles:w,classes:m}})})}}),Cx=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.transform,s=o===void 0?rn:o,a=r.title,i=a===void 0?null:a,c=r.classes,l=c===void 0?[]:c,f=r.attributes,d=f===void 0?{}:f,u=r.styles,g=u===void 0?{}:u;return ud({type:"text",content:t},function(){return ld(),hx({content:t,transform:le({},rn,s),title:i,extra:{attributes:d,styles:g,classes:["".concat(ze.familyPrefix,"-layers-text")].concat(M2(l))}})})};function pd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pd(Object(r),!0).forEach(function(o){Ze(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function Ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ex(e,t){if(e==null)return{};var r={},o=Object.keys(e),s,a;for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function xx(e,t){if(e==null)return{};var r=Ex(e,t),o,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)o=a[s],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function ts(e){return Sx(e)||Ax(e)||Tx(e)||Nx()}function Sx(e){if(Array.isArray(e))return ns(e)}function Ax(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tx(e,t){if(e){if(typeof e=="string")return ns(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ns(e,t)}}function ns(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Nx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
469
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Bx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hd={exports:{}};(function(e){(function(t){var r=function(h,y,w){if(!f(y)||u(y)||g(y)||p(y)||l(y))return y;var k,E=0,C=0;if(d(y))for(k=[],C=y.length;E<C;E++)k.push(r(h,y[E],w));else{k={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(k[h(x,w)]=r(h,y[x],w))}return k},o=function(h,y){y=y||{};var w=y.separator||"_",k=y.split||/(?=[A-Z])/;return h.split(k).join(w)},s=function(h){return _(h)?h:(h=h.replace(/[\-_\s]+(.)?/g,function(y,w){return w?w.toUpperCase():""}),h.substr(0,1).toLowerCase()+h.substr(1))},a=function(h){var y=s(h);return y.substr(0,1).toUpperCase()+y.substr(1)},i=function(h,y){return o(h,y).toLowerCase()},c=Object.prototype.toString,l=function(h){return typeof h=="function"},f=function(h){return h===Object(h)},d=function(h){return c.call(h)=="[object Array]"},u=function(h){return c.call(h)=="[object Date]"},g=function(h){return c.call(h)=="[object RegExp]"},p=function(h){return c.call(h)=="[object Boolean]"},_=function(h){return h=h-0,h===h},m=function(h,y){var w=y&&"process"in y?y.process:y;return typeof w!="function"?h:function(k,E){return w(k,h,E)}},b={camelize:s,decamelize:i,pascalize:a,depascalize:i,camelizeKeys:function(h,y){return r(m(s,y),h)},decamelizeKeys:function(h,y){return r(m(i,y),h,y)},pascalizeKeys:function(h,y){return r(m(a,y),h)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=b:t.humps=b})(Bx)})(hd);var Ix=hd.exports,$x=["class","style"];function Rx(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var o=r.indexOf(":"),s=Ix.camelize(r.slice(0,o)),a=r.slice(o+1).trim();return t[s]=a,t},{})}function Ox(e){return e.split(/\s+/).reduce(function(t,r){return t[r]=!0,t},{})}function rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var o=(e.children||[]).map(function(l){return rs(l)}),s=Object.keys(e.attributes||{}).reduce(function(l,f){var d=e.attributes[f];switch(f){case"class":l.class=Ox(d);break;case"style":l.style=Rx(d);break;default:l.attrs[f]=d}return l},{attrs:{},class:{},style:{}});r.class;var a=r.style,i=a===void 0?{}:a,c=xx(r,$x);return n.h(e.tag,wt(wt(wt({},t),{},{class:s.class,style:wt(wt({},s.style),i)},s.attrs),c),o)}var md=!1;try{md=!0}catch{}function Mx(){if(!md&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Cr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ze({},e,t):{}}function zx(e){var t,r=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},Ze(t,"fa-".concat(e.size),e.size!==null),Ze(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),Ze(t,"fa-pull-".concat(e.pull),e.pull!==null),Ze(t,"fa-swap-opacity",e.swapOpacity),Ze(t,"fa-bounce",e.bounce),Ze(t,"fa-shake",e.shake),Ze(t,"fa-beat",e.beat),Ze(t,"fa-fade",e.fade),Ze(t,"fa-beat-fade",e.beatFade),Ze(t,"fa-flash",e.flash),Ze(t,"fa-spin-pulse",e.spinPulse),Ze(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(r).map(function(o){return r[o]?o:null}).filter(function(o){return o})}function gd(e){if(e&&bo(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_o.icon)return _o.icon(e);if(e===null)return null;if(bo(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var Lx=n.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,r){var o=r.attrs,s=n.computed(function(){return gd(t.icon)}),a=n.computed(function(){return Cr("classes",zx(t))}),i=n.computed(function(){return Cr("transform",typeof t.transform=="string"?_o.transform(t.transform):t.transform)}),c=n.computed(function(){return Cr("mask",gd(t.mask))}),l=n.computed(function(){return vx(s.value,wt(wt(wt(wt({},a.value),i.value),c.value),{},{symbol:t.symbol,title:t.title}))});n.watch(l,function(d){if(!d)return Mx("Could not find one or more icon(s)",s.value,c.value)},{immediate:!0});var f=n.computed(function(){return l.value?rs(l.value.abstract[0],{},o):null});return function(){return f.value}}});n.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,r){var o=r.slots,s=ze.familyPrefix,a=n.computed(function(){return["".concat(s,"-layers")].concat(ts(t.fixedWidth?["".concat(s,"-fw")]:[]))});return function(){return n.h("div",{class:a.value},o.default?o.default():[])}}}),n.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,r){var o=r.attrs,s=ze.familyPrefix,a=n.computed(function(){return Cr("classes",[].concat(ts(t.counter?["".concat(s,"-layers-counter")]:[]),ts(t.position?["".concat(s,"-layers-").concat(t.position)]:[])))}),i=n.computed(function(){return Cr("transform",typeof t.transform=="string"?_o.transform(t.transform):t.transform)}),c=n.computed(function(){var f=Cx(t.value.toString(),wt(wt({},i.value),a.value)),d=f.abstract;return t.counter&&(d[0].attributes.class=d[0].attributes.class.replace("fa-layers-text","")),d[0]}),l=n.computed(function(){return rs(c.value,{},o)});return function(){return l.value}}});const os=at(n.defineComponent({name:"N8nText",__name:"Text",props:{bold:{type:Boolean,default:!1},size:{default:"medium"},color:{},align:{},compact:{type:Boolean,default:!1},tag:{default:"span"}},setup(e){const t=e,r=n.useCssModule(),o=n.computed(()=>{const s=[];return t.align&&s.push(`align-${t.align}`),t.color&&s.push(t.color),t.compact&&s.push("compact"),s.push(`size-${t.size}`),s.push(t.bold?"bold":"regular"),s.map(a=>r[a])});return(s,a)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),n.mergeProps({class:["n8n-text",...o.value]},s.$attrs),{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},16,["class"]))}}),[["__cssModules",{$style:{bold:"_bold_ushv1_1",regular:"_regular_ushv1_5","size-xlarge":"_size-xlarge_ushv1_9","size-large":"_size-large_ushv1_14","size-medium":"_size-medium_ushv1_19","size-small":"_size-small_ushv1_24","size-xsmall":"_size-xsmall_ushv1_29",compact:"_compact_ushv1_34",primary:"_primary_ushv1_38",secondary:"_secondary_ushv1_42","text-dark":"_text-dark_ushv1_46","text-base":"_text-base_ushv1_50","text-light":"_text-light_ushv1_54","text-xlight":"_text-xlight_ushv1_58",danger:"_danger_ushv1_62",success:"_success_ushv1_66",warning:"_warning_ushv1_70","foreground-dark":"_foreground-dark_ushv1_74","foreground-xdark":"_foreground-xdark_ushv1_78","align-left":"_align-left_ushv1_82","align-right":"_align-right_ushv1_86","align-center":"_align-center_ushv1_90"}}]]),as=at(n.defineComponent({name:"N8nIcon",__name:"Icon",props:{icon:{},size:{default:"medium"},spin:{default:!1},color:{}},setup(e){return(t,r)=>(n.openBlock(),n.createBlock(n.unref(os),n.mergeProps({size:t.size,color:t.color,compact:!0,class:"n8n-icon"},t.$attrs),{default:n.withCtx(()=>[n.createVNode(n.unref(Lx),{icon:t.icon,spin:t.spin,class:n.normalizeClass(t.$style[t.size])},null,8,["icon","spin","class"])]),_:1},16,["size","color"]))}}),[["__cssModules",{$style:{xlarge:"_xlarge_1pnjy_1",large:"_large_1pnjy_5",medium:"_medium_1pnjy_9",small:"_small_1pnjy_13",xsmall:"_xsmall_1pnjy_17"}}]]),Dx={class:"n8n-spinner"},qx={key:0,class:"lds-ring"},Px=n.defineComponent({name:"N8nSpinner",__name:"Spinner",props:{size:{default:"medium"},type:{default:"dots"}},setup(e){return(t,r)=>(n.openBlock(),n.createElementBlock("span",Dx,[t.type==="ring"?(n.openBlock(),n.createElementBlock("div",qx,r[0]||(r[0]=[n.createElementVNode("div",null,null,-1),n.createElementVNode("div",null,null,-1),n.createElementVNode("div",null,null,-1),n.createElementVNode("div",null,null,-1)]))):(n.openBlock(),n.createBlock(n.unref(as),{key:1,icon:"spinner",size:t.size,spin:""},null,8,["size"]))]))}}),Fx={key:1},Vx=at(n.defineComponent({name:"N8nButton",__name:"Button",props:{block:{type:Boolean,default:!1},element:{default:"button"},href:{},label:{default:""},square:{type:Boolean,default:!1},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},float:{},icon:{},loading:{type:Boolean,default:!1},outline:{type:Boolean,default:!1},size:{default:"medium"},iconSize:{},text:{type:Boolean,default:!1},type:{default:"primary"},nativeType:{}},setup(e){const t=n.useCssModule(),r=n.useAttrs(),o=e;n.watchEffect(()=>{o.element==="a"&&!o.href&&console.error("n8n-button:href is required for link buttons")});const s=n.computed(()=>o.loading?"true":void 0),a=n.computed(()=>o.disabled?"true":void 0),i=n.computed(()=>o.disabled||o.loading),c=n.computed(()=>o.iconSize??(o.size==="xmini"||o.size==="mini"?"xsmall":o.size)),l=n.computed(()=>`button ${t.button} ${t[o.type]}${o.size?` ${t[o.size]}`:""}${o.outline?` ${t.outline}`:""}${o.loading?` ${t.loading}`:""}${o.float?` ${t[`float-${o.float}`]}`:""}${o.text?` ${t.text}`:""}${o.disabled?` ${t.disabled}`:""}${o.block?` ${t.block}`:""}${o.active?` ${t.active}`:""}${o.icon||o.loading?` ${t.withIcon}`:""}${o.square?` ${t.square}`:""}`);return(f,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.element),n.mergeProps({class:l.value,disabled:i.value,"aria-disabled":a.value,"aria-busy":s.value,href:f.href,"aria-live":"polite"},{...n.unref(r),...o.nativeType?{type:o.nativeType}:{}}),{default:n.withCtx(()=>[f.loading||f.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(t).icon)},[f.loading?(n.openBlock(),n.createBlock(n.unref(Px),{key:0,size:c.value},null,8,["size"])):f.icon?(n.openBlock(),n.createBlock(n.unref(as),{key:1,icon:f.icon,size:c.value},null,8,["icon","size"])):n.createCommentVNode("",!0)],2)):n.createCommentVNode("",!0),f.label?(n.openBlock(),n.createElementBlock("span",Fx,n.toDisplayString(f.label),1)):f.$slots.default?n.renderSlot(f.$slots,"default",{key:2}):n.createCommentVNode("",!0)]),_:3},16,["class","disabled","aria-disabled","aria-busy","href"]))}}),[["__cssModules",{$style:{button:"_button_1e7v8_229",active:"_active_1e7v8_262",disabled:"_disabled_1e7v8_280",loading:"_loading_1e7v8_288",secondary:"_secondary_1e7v8_314",tertiary:"_tertiary_1e7v8_336",success:"_success_1e7v8_358",warning:"_warning_1e7v8_380",danger:"_danger_1e7v8_402",xmini:"_xmini_1e7v8_427",square:"_square_1e7v8_432",mini:"_mini_1e7v8_437",small:"_small_1e7v8_447",medium:"_medium_1e7v8_457",large:"_large_1e7v8_467",xlarge:"_xlarge_1e7v8_472",outline:"_outline_1e7v8_485",primary:"_primary_1e7v8_489",text:"_text_1e7v8_526",transparent:"_transparent_1e7v8_594",withIcon:"_withIcon_1e7v8_599",icon:"_icon_1e7v8_605",block:"_block_1e7v8_614","float-left":"_float-left_1e7v8_618","float-right":"_float-right_1e7v8_622"}}]]);({...mr.props});const jx={key:0},Hx={key:1},Ux=at(n.defineComponent({__name:"Loading",props:{animated:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},rows:{default:1},cols:{default:0},shrinkLast:{type:Boolean,default:!0},variant:{default:"p"}},setup(e){return(t,r)=>(n.openBlock(),n.createBlock(n.unref(T2),{loading:t.loading,animated:t.animated,class:n.normalizeClass(["n8n-loading",`n8n-loading-${t.variant}`])},n.createSlots({_:2},[t.cols?{name:"template",fn:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.cols,o=>(n.openBlock(),n.createBlock(n.unref(yr),{key:o}))),128))]),key:"0"}:{name:"template",fn:n.withCtx(()=>[t.variant==="h1"?(n.openBlock(),n.createElementBlock("div",jx,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.rows,(o,s)=>(n.openBlock(),n.createElementBlock("div",{key:s,class:n.normalizeClass({[t.$style.h1Last]:o===t.rows&&t.rows>1&&t.shrinkLast})},[n.createVNode(n.unref(yr),{variant:t.variant},null,8,["variant"])],2))),128))])):t.variant==="p"?(n.openBlock(),n.createElementBlock("div",Hx,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.rows,(o,s)=>(n.openBlock(),n.createElementBlock("div",{key:s,class:n.normalizeClass({[t.$style.pLast]:o===t.rows&&t.rows>1&&t.shrinkLast})},[n.createVNode(n.unref(yr),{variant:t.variant},null,8,["variant"])],2))),128))])):t.variant==="custom"?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(t.$style.custom)},[n.createVNode(n.unref(yr))],2)):(n.openBlock(),n.createBlock(n.unref(yr),{key:3,variant:t.variant},null,8,["variant"]))]),key:"1"}]),1032,["loading","animated","class"]))}}),[["__cssModules",{$style:{h1Last:"_h1Last_1sdbr_1",pLast:"_pLast_1sdbr_5",custom:"_custom_1sdbr_9"}}]]),Fn=e=>{let t=0;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return Math.abs(t)},_d=(e,t)=>Math.floor(e/Math.pow(10,t)%10),ss=(e,t)=>!(_d(e,t)%2),Le=(e,t,r)=>{const o=e%t;return r&&_d(e,r)%2===0?-o:o},_n=(e,t,r)=>t[e%r],Gx=e=>{e.slice(0,1)==="#"&&(e=e.slice(1));const t=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16);return(t*299+r*587+o*114)/1e3>=128?"#000000":"#FFFFFF"},Kx=4,is=80;function Wx(e,t){const r=Fn(e),o=t&&t.length;return Array.from({length:Kx},(s,a)=>({color:_n(r+a,t,o),translateX:Le(r*(a+1),is/2-(a+17),1),translateY:Le(r*(a+1),is/2-(a+17),2),rotate:Le(r*(a+1),360),isSquare:ss(r,2)}))}const Zx=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){return{properties:n.computed(()=>Wx(e.name,e.colors)),SIZE:is}}}),Vn=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Xx=["viewBox","width","height"],Yx={key:0},Jx=["width","height"],Qx=["width","height","rx"],eS={mask:"url(#mask__bauhaus)"},tS=["width","height","fill"],nS=["x","y","width","height","fill","transform"],rS=["cx","cy","fill","r","transform"],oS=["y1","x2","y2","stroke","transform"];function aS(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",Yx,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__bauhaus",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,Qx)],8,Jx),n.createElementVNode("g",eS,[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,fill:e.properties[0].color},null,8,tS),n.createElementVNode("rect",{x:(e.SIZE-60)/2,y:(e.SIZE-20)/2,width:e.SIZE,height:e.properties[1].isSquare?e.SIZE:e.SIZE/8,fill:e.properties[1].color,transform:`translate(${e.properties[1].translateX} ${e.properties[1].translateY}) rotate(${e.properties[1].rotate} ${e.SIZE/2} ${e.SIZE/2})`},null,8,nS),n.createElementVNode("circle",{cx:e.SIZE/2,cy:e.SIZE/2,fill:e.properties[2].color,r:e.SIZE/5,transform:`translate(${e.properties[2].translateX} ${e.properties[2].translateY})`},null,8,rS),n.createElementVNode("line",{x1:0,y1:e.SIZE/2,x2:e.SIZE,y2:e.SIZE/2,"stroke-width":2,stroke:e.properties[3].color,transform:`translate(${e.properties[3].translateX} ${e.properties[3].translateY}) rotate(${e.properties[3].rotate} ${e.SIZE/2} ${e.SIZE/2})`},null,8,oS)])],8,Xx)}const sS=Vn(Zx,[["render",aS]]),jn=36;function iS(e,t){const r=Fn(e),o=t&&t.length,s=_n(r,t,o),a=Le(r,10,1),i=a<5?a+jn/9:a,c=Le(r,10,2),l=c<5?c+jn/9:c;return{wrapperColor:s,faceColor:Gx(s),backgroundColor:_n(r+13,t,o),wrapperTranslateX:i,wrapperTranslateY:l,wrapperRotate:Le(r,360),wrapperScale:1+Le(r,jn/12)/10,isMouthOpen:ss(r,2),isCircle:ss(r,1),eyeSpread:Le(r,5),mouthSpread:Le(r,3),faceRotate:Le(r,10,3),faceTranslateX:i>jn/6?i/2:Le(r,8,1),faceTranslateY:l>jn/6?l/2:Le(r,7,2)}}const cS=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){return{data:n.computed(()=>iS(e.name,e.colors)),SIZE:jn}}}),lS=["viewBox","width","height"],uS={key:0},fS=["width","height"],dS=["width","height","rx"],pS={mask:"url(#mask__beam)"},hS=["width","height","fill"],mS=["width","height","transform","fill","rx"],gS=["transform"],_S=["d","stroke"],bS=["d","fill"],yS=["x","width","fill"],wS=["x","width","fill"];function kS(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",uS,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__beam",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,dS)],8,fS),n.createElementVNode("g",pS,[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,fill:e.data.backgroundColor},null,8,hS),n.createElementVNode("rect",{x:0,y:0,width:e.SIZE,height:e.SIZE,transform:`translate(${e.data.wrapperTranslateX} ${e.data.wrapperTranslateY}) rotate(${e.data.wrapperRotate} ${e.SIZE/2} ${e.SIZE/2}) scale(${e.data.wrapperScale})`,fill:e.data.wrapperColor,rx:e.data.isCircle?e.SIZE:e.SIZE/6},null,8,mS),n.createElementVNode("g",{transform:`translate(${e.data.faceTranslateX} ${e.data.faceTranslateY}) rotate(${e.data.faceRotate} ${e.SIZE/2} ${e.SIZE/2})`},[e.data.isMouthOpen?(n.openBlock(),n.createElementBlock("path",{key:0,d:`M15 ${19+e.data.mouthSpread}c2 1
470
+ 4 1 6 0`,stroke:e.data.faceColor,fill:"none","stroke-linecap":"round"},null,8,_S)):(n.openBlock(),n.createElementBlock("path",{key:1,d:`M13,${19+e.data.mouthSpread} a1,0.75 0 0,0 10,0`,fill:e.data.faceColor},null,8,bS)),n.createElementVNode("rect",{x:14-e.data.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:e.data.faceColor},null,8,yS),n.createElementVNode("rect",{x:20+e.data.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:e.data.faceColor},null,8,wS)],8,gS)])],8,lS)}const vS=Vn(cS,[["render",kS]]),CS=3,yo=80;function ES(e,t){const r=Fn(e),o=t&&t.length;return Array.from({length:CS},(s,a)=>({color:_n(r+a,t,o),translateX:Le(r*(a+1),yo/10,1),translateY:Le(r*(a+1),yo/10,2),scale:1.2+Le(r*(a+1),yo/20)/10,rotate:Le(r*(a+1),360,1)}))}const xS=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){return{properties:n.computed(()=>ES(e.name,e.colors)),SIZE:yo}}}),SS=e=>(n.pushScopeId("data-v-3c8b58b0"),e=e(),n.popScopeId(),e),AS=["viewBox","width","height"],TS={key:0},NS=["width","height"],BS=["width","height","rx"],IS={mask:"url(#mask__marble)"},$S=["width","height","fill"],RS=["fill","transform"],OS=["fill","transform"],MS=SS(()=>n.createElementVNode("defs",null,[n.createElementVNode("filter",{id:"prefix__filter0_f",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},[n.createElementVNode("feFlood",{"flood-opacity":0,result:"BackgroundImageFix"}),n.createElementVNode("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),n.createElementVNode("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"})])],-1));function zS(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",TS,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__marble",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,BS)],8,NS),n.createElementVNode("g",IS,[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,fill:e.properties[0].color},null,8,$S),n.createElementVNode("path",{filter:"url(#prefix__filter0_f)",d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:e.properties[1].color,transform:`translate(${e.properties[1].translateX} ${e.properties[1].translateY}) rotate(${e.properties[1].rotate} ${e.SIZE/2} ${e.SIZE/2}) scale(${e.properties[2].scale})`},null,8,RS),n.createElementVNode("path",{filter:"url(#prefix__filter0_f)",class:"mix-blend-overlay",d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:e.properties[2].color,transform:`translate(${e.properties[2].translateX} ${e.properties[2].translateY}) rotate(${e.properties[2].rotate} ${e.SIZE/2} ${e.SIZE/2}) scale(${e.properties[2].scale})`},null,8,OS)]),MS],8,AS)}const LS=Vn(xS,[["render",zS],["__scopeId","data-v-3c8b58b0"]]),DS=64,qS=80;function PS(e,t){const r=Fn(e),o=t&&t.length;return Array.from({length:DS},(s,a)=>_n(r%a,t,o))}const FS=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){return{pixelColors:n.computed(()=>PS(e.name,e.colors)),SIZE:qS}}}),VS=["viewBox","width","height"],jS={key:0},HS=["width","height"],US=["width","height","rx"],GS={mask:"url(#mask__pixel)"},KS=["fill"],WS=["fill"],ZS=["fill"],XS=["fill"],YS=["fill"],JS=["fill"],QS=["fill"],eA=["fill"],tA=["fill"],nA=["fill"],rA=["fill"],oA=["fill"],aA=["fill"],sA=["fill"],iA=["fill"],cA=["fill"],lA=["fill"],uA=["fill"],fA=["fill"],dA=["fill"],pA=["fill"],hA=["fill"],mA=["fill"],gA=["fill"],_A=["fill"],bA=["fill"],yA=["fill"],wA=["fill"],kA=["fill"],vA=["fill"],CA=["fill"],EA=["fill"],xA=["fill"],SA=["fill"],AA=["fill"],TA=["fill"],NA=["fill"],BA=["fill"],IA=["fill"],$A=["fill"],RA=["fill"],OA=["fill"],MA=["fill"],zA=["fill"],LA=["fill"],DA=["fill"],qA=["fill"],PA=["fill"],FA=["fill"],VA=["fill"],jA=["fill"],HA=["fill"],UA=["fill"],GA=["fill"],KA=["fill"],WA=["fill"],ZA=["fill"],XA=["fill"],YA=["fill"],JA=["fill"],QA=["fill"],eT=["fill"],tT=["fill"],nT=["fill"];function rT(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",jS,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__pixel","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,US)],8,HS),n.createElementVNode("g",GS,[n.createElementVNode("rect",{width:10,height:10,fill:e.pixelColors[0]},null,8,KS),n.createElementVNode("rect",{x:20,width:10,height:10,fill:e.pixelColors[1]},null,8,WS),n.createElementVNode("rect",{x:40,width:10,height:10,fill:e.pixelColors[2]},null,8,ZS),n.createElementVNode("rect",{x:60,width:10,height:10,fill:e.pixelColors[3]},null,8,XS),n.createElementVNode("rect",{x:10,width:10,height:10,fill:e.pixelColors[4]},null,8,YS),n.createElementVNode("rect",{x:30,width:10,height:10,fill:e.pixelColors[5]},null,8,JS),n.createElementVNode("rect",{x:50,width:10,height:10,fill:e.pixelColors[6]},null,8,QS),n.createElementVNode("rect",{x:70,width:10,height:10,fill:e.pixelColors[7]},null,8,eA),n.createElementVNode("rect",{y:10,width:10,height:10,fill:e.pixelColors[8]},null,8,tA),n.createElementVNode("rect",{y:20,width:10,height:10,fill:e.pixelColors[9]},null,8,nA),n.createElementVNode("rect",{y:30,width:10,height:10,fill:e.pixelColors[10]},null,8,rA),n.createElementVNode("rect",{y:40,width:10,height:10,fill:e.pixelColors[11]},null,8,oA),n.createElementVNode("rect",{y:50,width:10,height:10,fill:e.pixelColors[12]},null,8,aA),n.createElementVNode("rect",{y:60,width:10,height:10,fill:e.pixelColors[13]},null,8,sA),n.createElementVNode("rect",{y:70,width:10,height:10,fill:e.pixelColors[14]},null,8,iA),n.createElementVNode("rect",{x:20,y:10,width:10,height:10,fill:e.pixelColors[15]},null,8,cA),n.createElementVNode("rect",{x:20,y:20,width:10,height:10,fill:e.pixelColors[16]},null,8,lA),n.createElementVNode("rect",{x:20,y:30,width:10,height:10,fill:e.pixelColors[17]},null,8,uA),n.createElementVNode("rect",{x:20,y:40,width:10,height:10,fill:e.pixelColors[18]},null,8,fA),n.createElementVNode("rect",{x:20,y:50,width:10,height:10,fill:e.pixelColors[19]},null,8,dA),n.createElementVNode("rect",{x:20,y:60,width:10,height:10,fill:e.pixelColors[20]},null,8,pA),n.createElementVNode("rect",{x:20,y:70,width:10,height:10,fill:e.pixelColors[21]},null,8,hA),n.createElementVNode("rect",{x:40,y:10,width:10,height:10,fill:e.pixelColors[22]},null,8,mA),n.createElementVNode("rect",{x:40,y:20,width:10,height:10,fill:e.pixelColors[23]},null,8,gA),n.createElementVNode("rect",{x:40,y:30,width:10,height:10,fill:e.pixelColors[24]},null,8,_A),n.createElementVNode("rect",{x:40,y:40,width:10,height:10,fill:e.pixelColors[25]},null,8,bA),n.createElementVNode("rect",{x:40,y:50,width:10,height:10,fill:e.pixelColors[26]},null,8,yA),n.createElementVNode("rect",{x:40,y:60,width:10,height:10,fill:e.pixelColors[27]},null,8,wA),n.createElementVNode("rect",{x:40,y:70,width:10,height:10,fill:e.pixelColors[28]},null,8,kA),n.createElementVNode("rect",{x:60,y:10,width:10,height:10,fill:e.pixelColors[29]},null,8,vA),n.createElementVNode("rect",{x:60,y:20,width:10,height:10,fill:e.pixelColors[30]},null,8,CA),n.createElementVNode("rect",{x:60,y:30,width:10,height:10,fill:e.pixelColors[31]},null,8,EA),n.createElementVNode("rect",{x:60,y:40,width:10,height:10,fill:e.pixelColors[32]},null,8,xA),n.createElementVNode("rect",{x:60,y:50,width:10,height:10,fill:e.pixelColors[33]},null,8,SA),n.createElementVNode("rect",{x:60,y:60,width:10,height:10,fill:e.pixelColors[34]},null,8,AA),n.createElementVNode("rect",{x:60,y:70,width:10,height:10,fill:e.pixelColors[35]},null,8,TA),n.createElementVNode("rect",{x:10,y:10,width:10,height:10,fill:e.pixelColors[36]},null,8,NA),n.createElementVNode("rect",{x:10,y:20,width:10,height:10,fill:e.pixelColors[37]},null,8,BA),n.createElementVNode("rect",{x:10,y:30,width:10,height:10,fill:e.pixelColors[38]},null,8,IA),n.createElementVNode("rect",{x:10,y:40,width:10,height:10,fill:e.pixelColors[39]},null,8,$A),n.createElementVNode("rect",{x:10,y:50,width:10,height:10,fill:e.pixelColors[40]},null,8,RA),n.createElementVNode("rect",{x:10,y:60,width:10,height:10,fill:e.pixelColors[41]},null,8,OA),n.createElementVNode("rect",{x:10,y:70,width:10,height:10,fill:e.pixelColors[42]},null,8,MA),n.createElementVNode("rect",{x:30,y:10,width:10,height:10,fill:e.pixelColors[43]},null,8,zA),n.createElementVNode("rect",{x:30,y:20,width:10,height:10,fill:e.pixelColors[44]},null,8,LA),n.createElementVNode("rect",{x:30,y:30,width:10,height:10,fill:e.pixelColors[45]},null,8,DA),n.createElementVNode("rect",{x:30,y:40,width:10,height:10,fill:e.pixelColors[46]},null,8,qA),n.createElementVNode("rect",{x:30,y:50,width:10,height:10,fill:e.pixelColors[47]},null,8,PA),n.createElementVNode("rect",{x:30,y:60,width:10,height:10,fill:e.pixelColors[48]},null,8,FA),n.createElementVNode("rect",{x:30,y:70,width:10,height:10,fill:e.pixelColors[49]},null,8,VA),n.createElementVNode("rect",{x:50,y:10,width:10,height:10,fill:e.pixelColors[50]},null,8,jA),n.createElementVNode("rect",{x:50,y:20,width:10,height:10,fill:e.pixelColors[51]},null,8,HA),n.createElementVNode("rect",{x:50,y:30,width:10,height:10,fill:e.pixelColors[52]},null,8,UA),n.createElementVNode("rect",{x:50,y:40,width:10,height:10,fill:e.pixelColors[53]},null,8,GA),n.createElementVNode("rect",{x:50,y:50,width:10,height:10,fill:e.pixelColors[54]},null,8,KA),n.createElementVNode("rect",{x:50,y:60,width:10,height:10,fill:e.pixelColors[55]},null,8,WA),n.createElementVNode("rect",{x:50,y:70,width:10,height:10,fill:e.pixelColors[56]},null,8,ZA),n.createElementVNode("rect",{x:70,y:10,width:10,height:10,fill:e.pixelColors[57]},null,8,XA),n.createElementVNode("rect",{x:70,y:20,width:10,height:10,fill:e.pixelColors[58]},null,8,YA),n.createElementVNode("rect",{x:70,y:30,width:10,height:10,fill:e.pixelColors[59]},null,8,JA),n.createElementVNode("rect",{x:70,y:40,width:10,height:10,fill:e.pixelColors[60]},null,8,QA),n.createElementVNode("rect",{x:70,y:50,width:10,height:10,fill:e.pixelColors[61]},null,8,eT),n.createElementVNode("rect",{x:70,y:60,width:10,height:10,fill:e.pixelColors[62]},null,8,tT),n.createElementVNode("rect",{x:70,y:70,width:10,height:10,fill:e.pixelColors[63]},null,8,nT)])],8,VS)}const oT=Vn(FS,[["render",rT]]),aT=90,sT=5;function iT(e,t){const r=Fn(e),o=t&&t.length,s=Array.from({length:sT},(i,c)=>_n(r+c,t,o)),a=[];return a[0]=s[0],a[1]=s[1],a[2]=s[1],a[3]=s[2],a[4]=s[2],a[5]=s[3],a[6]=s[3],a[7]=s[0],a[8]=s[4],a}const cT=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){return{ringColors:n.computed(()=>iT(e.name,e.colors)),SIZE:aT}}}),lT=["viewBox","width","height"],uT={key:0},fT=["width","height"],dT=["width","height","rx"],pT={mask:"url(#mask__ring)"},hT=["fill"],mT=["fill"],gT=["fill"],_T=["fill"],bT=["fill"],yT=["fill"],wT=["fill"],kT=["fill"],vT=["fill"];function CT(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",uT,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__ring",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,dT)],8,fT),n.createElementVNode("g",pT,[n.createElementVNode("path",{d:"M0 0h90v45H0z",fill:e.ringColors[0]},null,8,hT),n.createElementVNode("path",{d:"M0 45h90v45H0z",fill:e.ringColors[1]},null,8,mT),n.createElementVNode("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:e.ringColors[2]},null,8,gT),n.createElementVNode("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:e.ringColors[3]},null,8,_T),n.createElementVNode("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:e.ringColors[4]},null,8,bT),n.createElementVNode("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:e.ringColors[5]},null,8,yT),n.createElementVNode("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:e.ringColors[6]},null,8,wT),n.createElementVNode("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:e.ringColors[7]},null,8,kT),n.createElementVNode("circle",{cx:45,cy:45,r:23,fill:e.ringColors[8]},null,8,vT)])],8,lT)}const ET=Vn(cT,[["render",CT]]),xT=4,ST=80;function AT(e,t){const r=Fn(e),o=t&&t.length;return Array.from({length:xT},(s,a)=>_n(r+a,t,o))}const TT=n.defineComponent({props:{colors:{type:Array,required:!0},name:{type:String,required:!0},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!0},title:{type:Boolean,required:!1,default:!1}},setup(e){const t=n.computed(()=>AT(e.name,e.colors)),r=n.computed(()=>e.name.replace(/\s/g,""));return{sunsetColors:t,formattedName:r,SIZE:ST}}}),NT=["viewBox","width","height"],BT={key:0},IT=["width","height"],$T=["width","height","rx"],RT={mask:"url(#mask__sunset)"},OT=["fill"],MT=["fill"],zT=["id","x1","x2","y2"],LT=["stop-color"],DT=["stop-color"],qT=["id","x1","y1","x2","y2"],PT=["stop-color"],FT=["stop-color"];function VT(e,t,r,o,s,a){return n.openBlock(),n.createElementBlock("svg",{viewBox:`0 0 ${e.SIZE} ${e.SIZE}`,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:e.size,height:e.size},[e.title?(n.openBlock(),n.createElementBlock("title",BT,n.toDisplayString(e.name),1)):n.createCommentVNode("",!0),n.createElementVNode("mask",{id:"mask__sunset",maskUnits:"userSpaceOnUse",x:0,y:0,width:e.SIZE,height:e.SIZE},[n.createElementVNode("rect",{width:e.SIZE,height:e.SIZE,rx:e.square?void 0:e.SIZE*2,fill:"#FFFFFF"},null,8,$T)],8,IT),n.createElementVNode("g",RT,[n.createElementVNode("path",{fill:`url(#gradient_paint0_linear_${e.formattedName})`,d:"M0 0h80v40H0z"},null,8,OT),n.createElementVNode("path",{fill:`url(#gradient_paint1_linear_${e.formattedName})`,d:"M0 40h80v40H0z"},null,8,MT)]),n.createElementVNode("defs",null,[n.createElementVNode("linearGradient",{id:`gradient_paint0_linear_${e.formattedName}`,x1:e.SIZE/2,y1:0,x2:e.SIZE/2,y2:e.SIZE/2,gradientUnits:"userSpaceOnUse"},[n.createElementVNode("stop",{"stop-color":e.sunsetColors[0]},null,8,LT),n.createElementVNode("stop",{offset:1,"stop-color":e.sunsetColors[1]},null,8,DT)],8,zT),n.createElementVNode("linearGradient",{id:`gradient_paint1_linear_${e.formattedName}`,x1:e.SIZE/2,y1:e.SIZE/2,x2:e.SIZE/2,y2:e.SIZE,gradientUnits:"userSpaceOnUse"},[n.createElementVNode("stop",{"stop-color":e.sunsetColors[2]},null,8,PT),n.createElementVNode("stop",{offset:1,"stop-color":e.sunsetColors[3]},null,8,FT)],8,qT)])],8,NT)}const jT=Vn(TT,[["render",VT]]);n.defineComponent({name:"Avatar",props:{variant:{type:String,required:!1,default:"marble",validator(e){return["bauhaus","beam","marble","pixel","ring","sunset"].includes(e)}},colors:{type:Array,required:!1,default:()=>["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]},name:{type:String,required:!1,default:"Clara Barton"},square:{type:Boolean,required:!1,default:!1},size:{type:Number,required:!1,default:40},title:{type:Boolean,required:!1,default:!1}},setup(){return{}},components:{AvatarBauhaus:sS,AvatarBeam:vS,AvatarMarble:LS,AvatarPixel:oT,AvatarRing:ET,AvatarSunset:jT}});const bd=/(\*|-) \[x\]/,yd=/(\*|-) \[\s\]/,HT=(e,t)=>{let r=0;const o=e.split(`
471
+ `);for(let s=0;s<o.length;s++){const a=o[s],i=bd.test(a),c=yd.test(a);if(i||c){if(r===t){const l=i?bd:yd,f=i?"[ ]":"[x]";o[s]=a.replace(l,`$1 ${f}`);break}r++}}return o.join(`
472
+ `)};function UT(e,t){return/^on[A-Z]/.test(t)}function wd(e){return`${e?`${e}-`:""}${Math.random().toString(36).substring(2,11)}`}const kd=at(n.defineComponent({name:"N8nInput",__name:"Input",props:{modelValue:{default:""},type:{default:"text"},size:{default:"large"},placeholder:{default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},rows:{default:2},maxlength:{default:void 0},title:{default:""},name:{default:()=>wd("input")},autocomplete:{default:"off"}},setup(e,{expose:t}){const r=e,o=n.computed(()=>r.size==="medium"?"default":r.size),s=n.computed(()=>{const d=[];return r.size==="xlarge"&&d.push("xlarge"),r.type==="password"&&d.push("ph-no-capture"),d}),a=n.ref(),i=n.computed(()=>{if(!(a!=null&&a.value))return;const d=r.type==="textarea"?"textarea":"input";return a.value.$el.querySelector(d)});return t({focus:()=>{var d;return(d=i.value)==null?void 0:d.focus()},blur:()=>{var d;return(d=i.value)==null?void 0:d.blur()},select:()=>{var d;return(d=i.value)==null?void 0:d.select()}}),(d,u)=>(n.openBlock(),n.createBlock(n.unref(Qr),n.mergeProps({ref_key:"innerInput",ref:a,"model-value":d.modelValue,type:d.type,size:o.value,class:["n8n-input",...s.value],autocomplete:d.autocomplete,name:d.name,placeholder:d.placeholder,disabled:d.disabled,readonly:d.readonly,clearable:d.clearable,rows:d.rows,title:d.title,maxlength:d.maxlength},d.$attrs),n.createSlots({_:2},[d.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(d.$slots,"prepend")]),key:"0"}:void 0,d.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(d.$slots,"append")]),key:"1"}:void 0,d.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(d.$slots,"prefix")]),key:"2"}:void 0,d.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(d.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","type","size","class","autocomplete","name","placeholder","disabled","readonly","clearable","rows","title","maxlength"]))}}),[["__cssModules",{$style:{xlarge:"_xlarge_ddtui_1"}}]]);wd("color-picker");function GT(){return{t:(e,t=[])=>x_(e,t)}}({...Rf},{...Da.props});/*!
473
+ * vue-router v4.5.0
474
+ * (c) 2024 Eduardo San Martin Morote
475
+ * @license MIT
476
+ */const KT=()=>{},wo=Array.isArray;function vd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function WT(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!ZT(e[r],t[r]))return!1;return!0}function ZT(e,t){return wo(e)?Cd(e,t):wo(t)?Cd(t,e):e===t}function Cd(e,t){return wo(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}var Ed;(function(e){e.pop="pop",e.push="push"})(Ed||(Ed={}));var xd;(function(e){e.back="back",e.forward="forward",e.unknown=""})(xd||(xd={}));var Sd;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Sd||(Sd={}));const Ad=Symbol(""),XT=Symbol("");function Td(e){const t=n.inject(Ad),r=n.inject(XT),o=n.computed(()=>{const l=n.unref(e.to);return t.resolve(l)}),s=n.computed(()=>{const{matched:l}=o.value,{length:f}=l,d=l[f-1],u=r.matched;if(!d||!u.length)return-1;const g=u.findIndex(vd.bind(null,d));if(g>-1)return g;const p=Bd(l[f-2]);return f>1&&Bd(d)===p&&u[u.length-1].path!==p?u.findIndex(vd.bind(null,l[f-2])):g}),a=n.computed(()=>s.value>-1&&QT(r.params,o.value.params)),i=n.computed(()=>s.value>-1&&s.value===r.matched.length-1&&WT(r.params,o.value.params));function c(l={}){if(JT(l)){const f=t[n.unref(e.replace)?"replace":"push"](n.unref(e.to)).catch(KT);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:o,href:n.computed(()=>o.value.href),isActive:a,isExactActive:i,navigate:c}}function YT(e){return e.length===1?e[0]:e}const Nd=n.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Td,setup(e,{slots:t}){const r=n.reactive(Td(e)),{options:o}=n.inject(Ad),s=n.computed(()=>({[Id(e.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[Id(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&YT(t.default(r));return e.custom?a:n.h("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},a)}}});function JT(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function QT(e,t){for(const r in t){const o=t[r],s=e[r];if(typeof o=="string"){if(o!==s)return!1}else if(!wo(s)||s.length!==o.length||o.some((a,i)=>a!==s[i]))return!1}return!0}function Bd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Id=(e,t,r)=>e??t??r;var cs={};const eN={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
477
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};var ls,$d;function Rd(){return $d||($d=1,ls=eN),ls}var us,Od;function fs(){return Od||(Od=1,us=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),us}var Hn={},ds,Md;function tN(){if(Md)return ds;Md=1;var e={};function t(o){var s,a,i=e[o];if(i)return i;for(i=e[o]=[],s=0;s<128;s++)a=String.fromCharCode(s),/^[0-9a-z]$/i.test(a)?i.push(a):i.push("%"+("0"+s.toString(16).toUpperCase()).slice(-2));for(s=0;s<o.length;s++)i[o.charCodeAt(s)]=o[s];return i}function r(o,s,a){var i,c,l,f,d,u="";for(typeof s!="string"&&(a=s,s=r.defaultChars),typeof a>"u"&&(a=!0),d=t(s),i=0,c=o.length;i<c;i++){if(l=o.charCodeAt(i),a&&l===37&&i+2<c&&/^[0-9a-f]{2}$/i.test(o.slice(i+1,i+3))){u+=o.slice(i,i+3),i+=2;continue}if(l<128){u+=d[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&i+1<c&&(f=o.charCodeAt(i+1),f>=56320&&f<=57343)){u+=encodeURIComponent(o[i]+o[i+1]),i++;continue}u+="%EF%BF%BD";continue}u+=encodeURIComponent(o[i])}return u}return r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",ds=r,ds}var ps,zd;function nN(){if(zd)return ps;zd=1;var e={};function t(o){var s,a,i=e[o];if(i)return i;for(i=e[o]=[],s=0;s<128;s++)a=String.fromCharCode(s),i.push(a);for(s=0;s<o.length;s++)a=o.charCodeAt(s),i[a]="%"+("0"+a.toString(16).toUpperCase()).slice(-2);return i}function r(o,s){var a;return typeof s!="string"&&(s=r.defaultChars),a=t(s),o.replace(/(%[a-f0-9]{2})+/gi,function(i){var c,l,f,d,u,g,p,_="";for(c=0,l=i.length;c<l;c+=3){if(f=parseInt(i.slice(c+1,c+3),16),f<128){_+=a[f];continue}if((f&224)===192&&c+3<l&&(d=parseInt(i.slice(c+4,c+6),16),(d&192)===128)){p=f<<6&1984|d&63,p<128?_+="��":_+=String.fromCharCode(p),c+=3;continue}if((f&240)===224&&c+6<l&&(d=parseInt(i.slice(c+4,c+6),16),u=parseInt(i.slice(c+7,c+9),16),(d&192)===128&&(u&192)===128)){p=f<<12&61440|d<<6&4032|u&63,p<2048||p>=55296&&p<=57343?_+="���":_+=String.fromCharCode(p),c+=6;continue}if((f&248)===240&&c+9<l&&(d=parseInt(i.slice(c+4,c+6),16),u=parseInt(i.slice(c+7,c+9),16),g=parseInt(i.slice(c+10,c+12),16),(d&192)===128&&(u&192)===128&&(g&192)===128)){p=f<<18&1835008|d<<12&258048|u<<6&4032|g&63,p<65536||p>1114111?_+="����":(p-=65536,_+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),c+=9;continue}_+="�"}return _})}return r.defaultChars=";/?:@&=+$,#",r.componentChars="",ps=r,ps}var hs,Ld;function rN(){return Ld||(Ld=1,hs=function(t){var r="";return r+=t.protocol||"",r+=t.slashes?"//":"",r+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?r+="["+t.hostname+"]":r+=t.hostname||"",r+=t.port?":"+t.port:"",r+=t.pathname||"",r+=t.search||"",r+=t.hash||"",r}),hs}var ms,Dd;function oN(){if(Dd)return ms;Dd=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s=["<",">",'"',"`"," ","\r",`
478
+ `," "],a=["{","}","|","\\","^","`"].concat(s),i=["'"].concat(a),c=["%","/","?",";","#"].concat(i),l=["/","?","#"],f=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},p={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _(m,b){if(m&&m instanceof e)return m;var h=new e;return h.parse(m,b),h}return e.prototype.parse=function(m,b){var h,y,w,k,E,C=m;if(C=C.trim(),!b&&m.split("#").length===1){var x=o.exec(C);if(x)return this.pathname=x[1],x[2]&&(this.search=x[2]),this}var S=t.exec(C);if(S&&(S=S[0],w=S.toLowerCase(),this.protocol=S,C=C.substr(S.length)),(b||S||C.match(/^\/\/[^@\/]+@[^@\/]+/))&&(E=C.substr(0,2)==="//",E&&!(S&&g[S])&&(C=C.substr(2),this.slashes=!0)),!g[S]&&(E||S&&!p[S])){var N=-1;for(h=0;h<l.length;h++)k=C.indexOf(l[h]),k!==-1&&(N===-1||k<N)&&(N=k);var B,$;for(N===-1?$=C.lastIndexOf("@"):$=C.lastIndexOf("@",N),$!==-1&&(B=C.slice(0,$),C=C.slice($+1),this.auth=B),N=-1,h=0;h<c.length;h++)k=C.indexOf(c[h]),k!==-1&&(N===-1||k<N)&&(N=k);N===-1&&(N=C.length),C[N-1]===":"&&N--;var L=C.slice(0,N);C=C.slice(N),this.parseHost(L),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G){var I=this.hostname.split(/\./);for(h=0,y=I.length;h<y;h++){var D=I[h];if(D&&!D.match(d)){for(var R="",O=0,z=D.length;O<z;O++)D.charCodeAt(O)>127?R+="x":R+=D[O];if(!R.match(d)){var q=I.slice(0,h),P=I.slice(h+1),ee=D.match(u);ee&&(q.push(ee[1]),P.unshift(ee[2])),P.length&&(C=P.join(".")+C),this.hostname=q.join(".");break}}}}this.hostname.length>f&&(this.hostname=""),G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Y=C.indexOf("#");Y!==-1&&(this.hash=C.substr(Y),C=C.slice(0,Y));var de=C.indexOf("?");return de!==-1&&(this.search=C.substr(de),C=C.slice(0,de)),C&&(this.pathname=C),p[w]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(m){var b=r.exec(m);b&&(b=b[0],b!==":"&&(this.port=b.substr(1)),m=m.substr(0,m.length-b.length)),m&&(this.hostname=m)},ms=_,ms}var qd;function Pd(){return qd||(qd=1,Hn.encode=tN(),Hn.decode=nN(),Hn.format=rN(),Hn.parse=oN()),Hn}var bn={},gs,Fd;function Vd(){return Fd||(Fd=1,gs=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),gs}var _s,jd;function Hd(){return jd||(jd=1,_s=/[\0-\x1F\x7F-\x9F]/),_s}var bs,Ud;function aN(){return Ud||(Ud=1,bs=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),bs}var ys,Gd;function Kd(){return Gd||(Gd=1,ys=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),ys}var Wd;function sN(){return Wd||(Wd=1,bn.Any=Vd(),bn.Cc=Hd(),bn.Cf=aN(),bn.P=fs(),bn.Z=Kd()),bn}var Zd;function he(){return Zd||(Zd=1,function(e){function t(I){return Object.prototype.toString.call(I)}function r(I){return t(I)==="[object String]"}var o=Object.prototype.hasOwnProperty;function s(I,D){return o.call(I,D)}function a(I){var D=Array.prototype.slice.call(arguments,1);return D.forEach(function(R){if(R){if(typeof R!="object")throw new TypeError(R+"must be object");Object.keys(R).forEach(function(O){I[O]=R[O]})}}),I}function i(I,D,R){return[].concat(I.slice(0,D),R,I.slice(D+1))}function c(I){return!(I>=55296&&I<=57343||I>=64976&&I<=65007||(I&65535)===65535||(I&65535)===65534||I>=0&&I<=8||I===11||I>=14&&I<=31||I>=127&&I<=159||I>1114111)}function l(I){if(I>65535){I-=65536;var D=55296+(I>>10),R=56320+(I&1023);return String.fromCharCode(D,R)}return String.fromCharCode(I)}var f=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,u=new RegExp(f.source+"|"+d.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,p=Rd();function _(I,D){var R;return s(p,D)?p[D]:D.charCodeAt(0)===35&&g.test(D)&&(R=D[1].toLowerCase()==="x"?parseInt(D.slice(2),16):parseInt(D.slice(1),10),c(R))?l(R):I}function m(I){return I.indexOf("\\")<0?I:I.replace(f,"$1")}function b(I){return I.indexOf("\\")<0&&I.indexOf("&")<0?I:I.replace(u,function(D,R,O){return R||_(D,O)})}var h=/[&<>"]/,y=/[&<>"]/g,w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function k(I){return w[I]}function E(I){return h.test(I)?I.replace(y,k):I}var C=/[.?*+^$[\]\\(){}|-]/g;function x(I){return I.replace(C,"\\$&")}function S(I){switch(I){case 9:case 32:return!0}return!1}function N(I){if(I>=8192&&I<=8202)return!0;switch(I){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}var B=fs();function $(I){return B.test(I)}function L(I){switch(I){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 G(I){return I=I.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(I=I.replace(/ẞ/g,"ß")),I.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=Pd(),e.lib.ucmicro=sN(),e.assign=a,e.isString=r,e.has=s,e.unescapeMd=m,e.unescapeAll=b,e.isValidEntityCode=c,e.fromCodePoint=l,e.escapeHtml=E,e.arrayReplaceAt=i,e.isSpace=S,e.isWhiteSpace=N,e.isMdAsciiPunct=L,e.isPunctChar=$,e.escapeRE=x,e.normalizeReference=G}(cs)),cs}var Er={},ws,Xd;function iN(){return Xd||(Xd=1,ws=function(t,r,o){var s,a,i,c,l=-1,f=t.posMax,d=t.pos;for(t.pos=r+1,s=1;t.pos<f;){if(i=t.src.charCodeAt(t.pos),i===93&&(s--,s===0)){a=!0;break}if(c=t.pos,t.md.inline.skipToken(t),i===91){if(c===t.pos-1)s++;else if(o)return t.pos=d,-1}}return a&&(l=t.pos),t.pos=d,l}),ws}var ks,Yd;function cN(){if(Yd)return ks;Yd=1;var e=he().unescapeAll;return ks=function(r,o,s){var a,i,c=o,l={ok:!1,pos:0,lines:0,str:""};if(r.charCodeAt(c)===60){for(c++;c<s;){if(a=r.charCodeAt(c),a===10||a===60)return l;if(a===62)return l.pos=c+1,l.str=e(r.slice(o+1,c)),l.ok=!0,l;if(a===92&&c+1<s){c+=2;continue}c++}return l}for(i=0;c<s&&(a=r.charCodeAt(c),!(a===32||a<32||a===127));){if(a===92&&c+1<s){if(r.charCodeAt(c+1)===32)break;c+=2;continue}if(a===40&&(i++,i>32))return l;if(a===41){if(i===0)break;i--}c++}return o===c||i!==0||(l.str=e(r.slice(o,c)),l.pos=c,l.ok=!0),l},ks}var vs,Jd;function lN(){if(Jd)return vs;Jd=1;var e=he().unescapeAll;return vs=function(r,o,s){var a,i,c=0,l=o,f={ok:!1,pos:0,lines:0,str:""};if(l>=s||(i=r.charCodeAt(l),i!==34&&i!==39&&i!==40))return f;for(l++,i===40&&(i=41);l<s;){if(a=r.charCodeAt(l),a===i)return f.pos=l+1,f.lines=c,f.str=e(r.slice(o+1,l)),f.ok=!0,f;if(a===40&&i===41)return f;a===10?c++:a===92&&l+1<s&&(l++,r.charCodeAt(l)===10&&c++),l++}return f},vs}var Qd;function uN(){return Qd||(Qd=1,Er.parseLinkLabel=iN(),Er.parseLinkDestination=cN(),Er.parseLinkTitle=lN()),Er}var Cs,ep;function fN(){if(ep)return Cs;ep=1;var e=he().assign,t=he().unescapeAll,r=he().escapeHtml,o={};o.code_inline=function(a,i,c,l,f){var d=a[i];return"<code"+f.renderAttrs(d)+">"+r(d.content)+"</code>"},o.code_block=function(a,i,c,l,f){var d=a[i];return"<pre"+f.renderAttrs(d)+"><code>"+r(a[i].content)+`</code></pre>
479
+ `},o.fence=function(a,i,c,l,f){var d=a[i],u=d.info?t(d.info).trim():"",g="",p="",_,m,b,h,y;return u&&(b=u.split(/(\s+)/g),g=b[0],p=b.slice(2).join("")),c.highlight?_=c.highlight(d.content,g,p)||r(d.content):_=r(d.content),_.indexOf("<pre")===0?_+`
480
+ `:u?(m=d.attrIndex("class"),h=d.attrs?d.attrs.slice():[],m<0?h.push(["class",c.langPrefix+g]):(h[m]=h[m].slice(),h[m][1]+=" "+c.langPrefix+g),y={attrs:h},"<pre><code"+f.renderAttrs(y)+">"+_+`</code></pre>
481
+ `):"<pre><code"+f.renderAttrs(d)+">"+_+`</code></pre>
482
+ `},o.image=function(a,i,c,l,f){var d=a[i];return d.attrs[d.attrIndex("alt")][1]=f.renderInlineAsText(d.children,c,l),f.renderToken(a,i,c)},o.hardbreak=function(a,i,c){return c.xhtmlOut?`<br />
9
483
  `:`<br>
10
- `},e.softbreak=function(r,s,i){return i.breaks?i.xhtmlOut?`<br />
484
+ `},o.softbreak=function(a,i,c){return c.breaks?c.xhtmlOut?`<br />
11
485
  `:`<br>
12
486
  `:`
13
- `},e.text=function(r,s){return o(r[s].content)},e.html_block=function(r,s){return r[s].content},e.html_inline=function(r,s){return r[s].content};function t(){this.rules=c({},e)}return t.prototype.renderAttrs=function(s){var i,a,l;if(!s.attrs)return"";for(l="",i=0,a=s.attrs.length;i<a;i++)l+=" "+o(s.attrs[i][0])+'="'+o(s.attrs[i][1])+'"';return l},t.prototype.renderToken=function(s,i,a){var l,p="",f=!1,g=s[i];return g.hidden?"":(g.block&&g.nesting!==-1&&i&&s[i-1].hidden&&(p+=`
14
- `),p+=(g.nesting===-1?"</":"<")+g.tag,p+=this.renderAttrs(g),g.nesting===0&&a.xhtmlOut&&(p+=" /"),g.block&&(f=!0,g.nesting===1&&i+1<s.length&&(l=s[i+1],(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===g.tag)&&(f=!1))),p+=f?`>
15
- `:">",p)},t.prototype.renderInline=function(r,s,i){for(var a,l="",p=this.rules,f=0,g=r.length;f<g;f++)a=r[f].type,typeof p[a]<"u"?l+=p[a](r,f,s,i,this):l+=this.renderToken(r,f,s);return l},t.prototype.renderInlineAsText=function(r,s,i){for(var a="",l=0,p=r.length;l<p;l++)r[l].type==="text"?a+=r[l].content:r[l].type==="image"?a+=this.renderInlineAsText(r[l].children,s,i):r[l].type==="softbreak"&&(a+=`
16
- `);return a},t.prototype.render=function(r,s,i){var a,l,p,f="",g=this.rules;for(a=0,l=r.length;a<l;a++)p=r[a].type,p==="inline"?f+=this.renderInline(r[a].children,s,i):typeof g[p]<"u"?f+=g[p](r,a,s,i,this):f+=this.renderToken(r,a,s,i);return f},yn=t,yn}var xn,xr;function wn(){if(xr)return xn;xr=1;function c(){this.__rules__=[],this.__cache__=null}return c.prototype.__find__=function(n){for(var o=0;o<this.__rules__.length;o++)if(this.__rules__[o].name===n)return o;return-1},c.prototype.__compile__=function(){var n=this,o=[""];n.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(t){o.indexOf(t)<0&&o.push(t)})}),n.__cache__={},o.forEach(function(e){n.__cache__[e]=[],n.__rules__.forEach(function(t){t.enabled&&(e&&t.alt.indexOf(e)<0||n.__cache__[e].push(t.fn))})})},c.prototype.at=function(n,o,e){var t=this.__find__(n),r=e||{};if(t===-1)throw new Error("Parser rule not found: "+n);this.__rules__[t].fn=o,this.__rules__[t].alt=r.alt||[],this.__cache__=null},c.prototype.before=function(n,o,e,t){var r=this.__find__(n),s=t||{};if(r===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(r,0,{name:o,enabled:!0,fn:e,alt:s.alt||[]}),this.__cache__=null},c.prototype.after=function(n,o,e,t){var r=this.__find__(n),s=t||{};if(r===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(r+1,0,{name:o,enabled:!0,fn:e,alt:s.alt||[]}),this.__cache__=null},c.prototype.push=function(n,o,e){var t=e||{};this.__rules__.push({name:n,enabled:!0,fn:o,alt:t.alt||[]}),this.__cache__=null},c.prototype.enable=function(n,o){Array.isArray(n)||(n=[n]);var e=[];return n.forEach(function(t){var r=this.__find__(t);if(r<0){if(o)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!0,e.push(t)},this),this.__cache__=null,e},c.prototype.enableOnly=function(n,o){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(n,o)},c.prototype.disable=function(n,o){Array.isArray(n)||(n=[n]);var e=[];return n.forEach(function(t){var r=this.__find__(t);if(r<0){if(o)return;throw new Error("Rules manager: invalid rule name "+t)}this.__rules__[r].enabled=!1,e.push(t)},this),this.__cache__=null,e},c.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]},xn=c,xn}var vn,wr;function Ic(){if(wr)return vn;wr=1;var c=/\r\n?|\n/g,n=/\0/g;return vn=function(e){var t;t=e.src.replace(c,`
17
- `),t=t.replace(n,"�"),e.src=t},vn}var An,vr;function Oc(){return vr||(vr=1,An=function(n){var o;n.inlineMode?(o=new n.Token("inline","",0),o.content=n.src,o.map=[0,1],o.children=[],n.tokens.push(o)):n.md.block.parse(n.src,n.md,n.env,n.tokens)}),An}var Cn,Ar;function Fc(){return Ar||(Ar=1,Cn=function(n){var o=n.tokens,e,t,r;for(t=0,r=o.length;t<r;t++)e=o[t],e.type==="inline"&&n.md.inline.parse(e.content,n.md,n.env,e.children)}),Cn}var Sn,Cr;function Pc(){if(Cr)return Sn;Cr=1;var c=J().arrayReplaceAt;function n(e){return/^<a[>\s]/i.test(e)}function o(e){return/^<\/a\s*>/i.test(e)}return Sn=function(t){var r,s,i,a,l,p,f,g,h,b,E,v,k,x,m,_,y=t.tokens,w;if(t.md.options.linkify){for(s=0,i=y.length;s<i;s++)if(!(y[s].type!=="inline"||!t.md.linkify.pretest(y[s].content)))for(a=y[s].children,k=0,r=a.length-1;r>=0;r--){if(p=a[r],p.type==="link_close"){for(r--;a[r].level!==p.level&&a[r].type!=="link_open";)r--;continue}if(p.type==="html_inline"&&(n(p.content)&&k>0&&k--,o(p.content)&&k++),!(k>0)&&p.type==="text"&&t.md.linkify.test(p.content)){for(h=p.content,w=t.md.linkify.match(h),f=[],v=p.level,E=0,w.length>0&&w[0].index===0&&r>0&&a[r-1].type==="text_special"&&(w=w.slice(1)),g=0;g<w.length;g++)x=w[g].url,m=t.md.normalizeLink(x),t.md.validateLink(m)&&(_=w[g].text,w[g].schema?w[g].schema==="mailto:"&&!/^mailto:/i.test(_)?_=t.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=t.md.normalizeLinkText(_):_=t.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),b=w[g].index,b>E&&(l=new t.Token("text","",0),l.content=h.slice(E,b),l.level=v,f.push(l)),l=new t.Token("link_open","a",1),l.attrs=[["href",m]],l.level=v++,l.markup="linkify",l.info="auto",f.push(l),l=new t.Token("text","",0),l.content=_,l.level=v,f.push(l),l=new t.Token("link_close","a",-1),l.level=--v,l.markup="linkify",l.info="auto",f.push(l),E=w[g].lastIndex);E<h.length&&(l=new t.Token("text","",0),l.content=h.slice(E),l.level=v,f.push(l)),y[s].children=a=c(a,r,f)}}}},Sn}var Dn,Sr;function zc(){if(Sr)return Dn;Sr=1;var c=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r)\)/i,o=/\((c|tm|r)\)/ig,e={c:"©",r:"®",tm:"™"};function t(i,a){return e[a.toLowerCase()]}function r(i){var a,l,p=0;for(a=i.length-1;a>=0;a--)l=i[a],l.type==="text"&&!p&&(l.content=l.content.replace(o,t)),l.type==="link_open"&&l.info==="auto"&&p--,l.type==="link_close"&&l.info==="auto"&&p++}function s(i){var a,l,p=0;for(a=i.length-1;a>=0;a--)l=i[a],l.type==="text"&&!p&&c.test(l.content)&&(l.content=l.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–")),l.type==="link_open"&&l.info==="auto"&&p--,l.type==="link_close"&&l.info==="auto"&&p++}return Dn=function(a){var l;if(a.md.options.typographer)for(l=a.tokens.length-1;l>=0;l--)a.tokens[l].type==="inline"&&(n.test(a.tokens[l].content)&&r(a.tokens[l].children),c.test(a.tokens[l].content)&&s(a.tokens[l].children))},Dn}var Rn,Dr;function Uc(){if(Dr)return Rn;Dr=1;var c=J().isWhiteSpace,n=J().isPunctChar,o=J().isMdAsciiPunct,e=/['"]/,t=/['"]/g,r="’";function s(a,l,p){return a.slice(0,l)+p+a.slice(l+1)}function i(a,l){var p,f,g,h,b,E,v,k,x,m,_,y,w,B,S,T,R,I,G,Q,C;for(G=[],p=0;p<a.length;p++){for(f=a[p],v=a[p].level,R=G.length-1;R>=0&&!(G[R].level<=v);R--);if(G.length=R+1,f.type==="text"){g=f.content,b=0,E=g.length;e:for(;b<E&&(t.lastIndex=b,h=t.exec(g),!!h);){if(S=T=!0,b=h.index+1,I=h[0]==="'",x=32,h.index-1>=0)x=g.charCodeAt(h.index-1);else for(R=p-1;R>=0&&!(a[R].type==="softbreak"||a[R].type==="hardbreak");R--)if(a[R].content){x=a[R].content.charCodeAt(a[R].content.length-1);break}if(m=32,b<E)m=g.charCodeAt(b);else for(R=p+1;R<a.length&&!(a[R].type==="softbreak"||a[R].type==="hardbreak");R++)if(a[R].content){m=a[R].content.charCodeAt(0);break}if(_=o(x)||n(String.fromCharCode(x)),y=o(m)||n(String.fromCharCode(m)),w=c(x),B=c(m),B?S=!1:y&&(w||_||(S=!1)),w?T=!1:_&&(B||y||(T=!1)),m===34&&h[0]==='"'&&x>=48&&x<=57&&(T=S=!1),S&&T&&(S=_,T=y),!S&&!T){I&&(f.content=s(f.content,h.index,r));continue}if(T){for(R=G.length-1;R>=0&&(k=G[R],!(G[R].level<v));R--)if(k.single===I&&G[R].level===v){k=G[R],I?(Q=l.md.options.quotes[2],C=l.md.options.quotes[3]):(Q=l.md.options.quotes[0],C=l.md.options.quotes[1]),f.content=s(f.content,h.index,C),a[k.token].content=s(a[k.token].content,k.pos,Q),b+=C.length-1,k.token===p&&(b+=Q.length-1),g=f.content,E=g.length,G.length=R;continue e}}S?G.push({token:p,pos:h.index,single:I,level:v}):T&&I&&(f.content=s(f.content,h.index,r))}}}}return Rn=function(l){var p;if(l.md.options.typographer)for(p=l.tokens.length-1;p>=0;p--)l.tokens[p].type!=="inline"||!e.test(l.tokens[p].content)||i(l.tokens[p].children,l)},Rn}var Tn,Rr;function $c(){return Rr||(Rr=1,Tn=function(n){var o,e,t,r,s,i,a=n.tokens;for(o=0,e=a.length;o<e;o++)if(a[o].type==="inline"){for(t=a[o].children,s=t.length,r=0;r<s;r++)t[r].type==="text_special"&&(t[r].type="text");for(r=i=0;r<s;r++)t[r].type==="text"&&r+1<s&&t[r+1].type==="text"?t[r+1].content=t[r].content+t[r+1].content:(r!==i&&(t[i]=t[r]),i++);r!==i&&(t.length=i)}}),Tn}var qn,Tr;function Nn(){if(Tr)return qn;Tr=1;function c(n,o,e){this.type=n,this.tag=o,this.attrs=null,this.map=null,this.nesting=e,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return c.prototype.attrIndex=function(o){var e,t,r;if(!this.attrs)return-1;for(e=this.attrs,t=0,r=e.length;t<r;t++)if(e[t][0]===o)return t;return-1},c.prototype.attrPush=function(o){this.attrs?this.attrs.push(o):this.attrs=[o]},c.prototype.attrSet=function(o,e){var t=this.attrIndex(o),r=[o,e];t<0?this.attrPush(r):this.attrs[t]=r},c.prototype.attrGet=function(o){var e=this.attrIndex(o),t=null;return e>=0&&(t=this.attrs[e][1]),t},c.prototype.attrJoin=function(o,e){var t=this.attrIndex(o);t<0?this.attrPush([o,e]):this.attrs[t][1]=this.attrs[t][1]+" "+e},qn=c,qn}var Ln,qr;function Vc(){if(qr)return Ln;qr=1;var c=Nn();function n(o,e,t){this.src=o,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}return n.prototype.Token=c,Ln=n,Ln}var Bn,Nr;function Hc(){if(Nr)return Bn;Nr=1;var c=wn(),n=[["normalize",Ic()],["block",Oc()],["inline",Fc()],["linkify",Pc()],["replacements",zc()],["smartquotes",Uc()],["text_join",$c()]];function o(){this.ruler=new c;for(var e=0;e<n.length;e++)this.ruler.push(n[e][0],n[e][1])}return o.prototype.process=function(e){var t,r,s;for(s=this.ruler.getRules(""),t=0,r=s.length;t<r;t++)s[t](e)},o.prototype.State=Vc(),Bn=o,Bn}var Mn,Lr;function Gc(){if(Lr)return Mn;Lr=1;var c=J().isSpace;function n(e,t){var r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(r,s)}function o(e){var t=[],r=0,s=e.length,i,a=!1,l=0,p="";for(i=e.charCodeAt(r);r<s;)i===124&&(a?(p+=e.substring(l,r-1),l=r):(t.push(p+e.substring(l,r)),p="",l=r+1)),a=i===92,r++,i=e.charCodeAt(r);return t.push(p+e.substring(l)),t}return Mn=function(t,r,s,i){var a,l,p,f,g,h,b,E,v,k,x,m,_,y,w,B,S,T;if(r+2>s||(h=r+1,t.sCount[h]<t.blkIndent)||t.sCount[h]-t.blkIndent>=4||(p=t.bMarks[h]+t.tShift[h],p>=t.eMarks[h])||(S=t.src.charCodeAt(p++),S!==124&&S!==45&&S!==58)||p>=t.eMarks[h]||(T=t.src.charCodeAt(p++),T!==124&&T!==45&&T!==58&&!c(T))||S===45&&c(T))return!1;for(;p<t.eMarks[h];){if(a=t.src.charCodeAt(p),a!==124&&a!==45&&a!==58&&!c(a))return!1;p++}for(l=n(t,r+1),b=l.split("|"),k=[],f=0;f<b.length;f++){if(x=b[f].trim(),!x){if(f===0||f===b.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?k.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?k.push("left"):k.push("")}if(l=n(t,r).trim(),l.indexOf("|")===-1||t.sCount[r]-t.blkIndent>=4||(b=o(l),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop(),E=b.length,E===0||E!==k.length))return!1;if(i)return!0;for(y=t.parentType,t.parentType="table",B=t.md.block.ruler.getRules("blockquote"),v=t.push("table_open","table",1),v.map=m=[r,0],v=t.push("thead_open","thead",1),v.map=[r,r+1],v=t.push("tr_open","tr",1),v.map=[r,r+1],f=0;f<b.length;f++)v=t.push("th_open","th",1),k[f]&&(v.attrs=[["style","text-align:"+k[f]]]),v=t.push("inline","",0),v.content=b[f].trim(),v.children=[],v=t.push("th_close","th",-1);for(v=t.push("tr_close","tr",-1),v=t.push("thead_close","thead",-1),h=r+2;h<s&&!(t.sCount[h]<t.blkIndent);h++){for(w=!1,f=0,g=B.length;f<g;f++)if(B[f](t,h,s,!0)){w=!0;break}if(w||(l=n(t,h).trim(),!l)||t.sCount[h]-t.blkIndent>=4)break;for(b=o(l),b.length&&b[0]===""&&b.shift(),b.length&&b[b.length-1]===""&&b.pop(),h===r+2&&(v=t.push("tbody_open","tbody",1),v.map=_=[r+2,0]),v=t.push("tr_open","tr",1),v.map=[h,h+1],f=0;f<E;f++)v=t.push("td_open","td",1),k[f]&&(v.attrs=[["style","text-align:"+k[f]]]),v=t.push("inline","",0),v.content=b[f]?b[f].trim():"",v.children=[],v=t.push("td_close","td",-1);v=t.push("tr_close","tr",-1)}return _&&(v=t.push("tbody_close","tbody",-1),_[1]=h),v=t.push("table_close","table",-1),m[1]=h,t.parentType=y,t.line=h,!0},Mn}var In,Br;function jc(){return Br||(Br=1,In=function(n,o,e){var t,r,s;if(n.sCount[o]-n.blkIndent<4)return!1;for(r=t=o+1;t<e;){if(n.isEmpty(t)){t++;continue}if(n.sCount[t]-n.blkIndent>=4){t++,r=t;continue}break}return n.line=r,s=n.push("code_block","code",0),s.content=n.getLines(o,r,4+n.blkIndent,!1)+`
18
- `,s.map=[o,n.line],!0}),In}var On,Mr;function Zc(){return Mr||(Mr=1,On=function(n,o,e,t){var r,s,i,a,l,p,f,g=!1,h=n.bMarks[o]+n.tShift[o],b=n.eMarks[o];if(n.sCount[o]-n.blkIndent>=4||h+3>b||(r=n.src.charCodeAt(h),r!==126&&r!==96)||(l=h,h=n.skipChars(h,r),s=h-l,s<3)||(f=n.src.slice(l,h),i=n.src.slice(h,b),r===96&&i.indexOf(String.fromCharCode(r))>=0))return!1;if(t)return!0;for(a=o;a++,!(a>=e||(h=l=n.bMarks[a]+n.tShift[a],b=n.eMarks[a],h<b&&n.sCount[a]<n.blkIndent));)if(n.src.charCodeAt(h)===r&&!(n.sCount[a]-n.blkIndent>=4)&&(h=n.skipChars(h,r),!(h-l<s)&&(h=n.skipSpaces(h),!(h<b)))){g=!0;break}return s=n.sCount[o],n.line=a+(g?1:0),p=n.push("fence","code",0),p.info=i,p.content=n.getLines(o+1,a,s,!0),p.markup=f,p.map=[o,n.line],!0}),On}var Fn,Ir;function Kc(){if(Ir)return Fn;Ir=1;var c=J().isSpace;return Fn=function(o,e,t,r){var s,i,a,l,p,f,g,h,b,E,v,k,x,m,_,y,w,B,S,T,R=o.lineMax,I=o.bMarks[e]+o.tShift[e],G=o.eMarks[e];if(o.sCount[e]-o.blkIndent>=4||o.src.charCodeAt(I)!==62)return!1;if(r)return!0;for(E=[],v=[],m=[],_=[],B=o.md.block.ruler.getRules("blockquote"),x=o.parentType,o.parentType="blockquote",h=e;h<t&&(T=o.sCount[h]<o.blkIndent,I=o.bMarks[h]+o.tShift[h],G=o.eMarks[h],!(I>=G));h++){if(o.src.charCodeAt(I++)===62&&!T){for(l=o.sCount[h]+1,o.src.charCodeAt(I)===32?(I++,l++,s=!1,y=!0):o.src.charCodeAt(I)===9?(y=!0,(o.bsCount[h]+l)%4===3?(I++,l++,s=!1):s=!0):y=!1,b=l,E.push(o.bMarks[h]),o.bMarks[h]=I;I<G&&(i=o.src.charCodeAt(I),c(i));){i===9?b+=4-(b+o.bsCount[h]+(s?1:0))%4:b++;I++}f=I>=G,v.push(o.bsCount[h]),o.bsCount[h]=o.sCount[h]+1+(y?1:0),m.push(o.sCount[h]),o.sCount[h]=b-l,_.push(o.tShift[h]),o.tShift[h]=I-o.bMarks[h];continue}if(f)break;for(w=!1,a=0,p=B.length;a<p;a++)if(B[a](o,h,t,!0)){w=!0;break}if(w){o.lineMax=h,o.blkIndent!==0&&(E.push(o.bMarks[h]),v.push(o.bsCount[h]),_.push(o.tShift[h]),m.push(o.sCount[h]),o.sCount[h]-=o.blkIndent);break}E.push(o.bMarks[h]),v.push(o.bsCount[h]),_.push(o.tShift[h]),m.push(o.sCount[h]),o.sCount[h]=-1}for(k=o.blkIndent,o.blkIndent=0,S=o.push("blockquote_open","blockquote",1),S.markup=">",S.map=g=[e,0],o.md.block.tokenize(o,e,h),S=o.push("blockquote_close","blockquote",-1),S.markup=">",o.lineMax=R,o.parentType=x,g[1]=o.line,a=0;a<_.length;a++)o.bMarks[a+e]=E[a],o.tShift[a+e]=_[a],o.sCount[a+e]=m[a],o.bsCount[a+e]=v[a];return o.blkIndent=k,!0},Fn}var Pn,Or;function Wc(){if(Or)return Pn;Or=1;var c=J().isSpace;return Pn=function(o,e,t,r){var s,i,a,l,p=o.bMarks[e]+o.tShift[e],f=o.eMarks[e];if(o.sCount[e]-o.blkIndent>=4||(s=o.src.charCodeAt(p++),s!==42&&s!==45&&s!==95))return!1;for(i=1;p<f;){if(a=o.src.charCodeAt(p++),a!==s&&!c(a))return!1;a===s&&i++}return i<3?!1:(r||(o.line=e+1,l=o.push("hr","hr",0),l.map=[e,o.line],l.markup=Array(i+1).join(String.fromCharCode(s))),!0)},Pn}var zn,Fr;function Yc(){if(Fr)return zn;Fr=1;var c=J().isSpace;function n(t,r){var s,i,a,l;return i=t.bMarks[r]+t.tShift[r],a=t.eMarks[r],s=t.src.charCodeAt(i++),s!==42&&s!==45&&s!==43||i<a&&(l=t.src.charCodeAt(i),!c(l))?-1:i}function o(t,r){var s,i=t.bMarks[r]+t.tShift[r],a=i,l=t.eMarks[r];if(a+1>=l||(s=t.src.charCodeAt(a++),s<48||s>57))return-1;for(;;){if(a>=l)return-1;if(s=t.src.charCodeAt(a++),s>=48&&s<=57){if(a-i>=10)return-1;continue}if(s===41||s===46)break;return-1}return a<l&&(s=t.src.charCodeAt(a),!c(s))?-1:a}function e(t,r){var s,i,a=t.level+2;for(s=r+2,i=t.tokens.length-2;s<i;s++)t.tokens[s].level===a&&t.tokens[s].type==="paragraph_open"&&(t.tokens[s+2].hidden=!0,t.tokens[s].hidden=!0,s+=2)}return zn=function(r,s,i,a){var l,p,f,g,h,b,E,v,k,x,m,_,y,w,B,S,T,R,I,G,Q,C,N,U,W,j,Y,F=s,se=!1,ue=!0;if(r.sCount[F]-r.blkIndent>=4||r.listIndent>=0&&r.sCount[F]-r.listIndent>=4&&r.sCount[F]<r.blkIndent)return!1;if(a&&r.parentType==="paragraph"&&r.sCount[F]>=r.blkIndent&&(se=!0),(C=o(r,F))>=0){if(E=!0,U=r.bMarks[F]+r.tShift[F],y=Number(r.src.slice(U,C-1)),se&&y!==1)return!1}else if((C=n(r,F))>=0)E=!1;else return!1;if(se&&r.skipSpaces(C)>=r.eMarks[F])return!1;if(a)return!0;for(_=r.src.charCodeAt(C-1),m=r.tokens.length,E?(Y=r.push("ordered_list_open","ol",1),y!==1&&(Y.attrs=[["start",y]])):Y=r.push("bullet_list_open","ul",1),Y.map=x=[F,0],Y.markup=String.fromCharCode(_),N=!1,j=r.md.block.ruler.getRules("list"),T=r.parentType,r.parentType="list";F<i;){for(Q=C,w=r.eMarks[F],b=B=r.sCount[F]+C-(r.bMarks[F]+r.tShift[F]);Q<w;){if(l=r.src.charCodeAt(Q),l===9)B+=4-(B+r.bsCount[F])%4;else if(l===32)B++;else break;Q++}if(p=Q,p>=w?h=1:h=B-b,h>4&&(h=1),g=b+h,Y=r.push("list_item_open","li",1),Y.markup=String.fromCharCode(_),Y.map=v=[F,0],E&&(Y.info=r.src.slice(U,C-1)),G=r.tight,I=r.tShift[F],R=r.sCount[F],S=r.listIndent,r.listIndent=r.blkIndent,r.blkIndent=g,r.tight=!0,r.tShift[F]=p-r.bMarks[F],r.sCount[F]=B,p>=w&&r.isEmpty(F+1)?r.line=Math.min(r.line+2,i):r.md.block.tokenize(r,F,i,!0),(!r.tight||N)&&(ue=!1),N=r.line-F>1&&r.isEmpty(r.line-1),r.blkIndent=r.listIndent,r.listIndent=S,r.tShift[F]=I,r.sCount[F]=R,r.tight=G,Y=r.push("list_item_close","li",-1),Y.markup=String.fromCharCode(_),F=r.line,v[1]=F,F>=i||r.sCount[F]<r.blkIndent||r.sCount[F]-r.blkIndent>=4)break;for(W=!1,f=0,k=j.length;f<k;f++)if(j[f](r,F,i,!0)){W=!0;break}if(W)break;if(E){if(C=o(r,F),C<0)break;U=r.bMarks[F]+r.tShift[F]}else if(C=n(r,F),C<0)break;if(_!==r.src.charCodeAt(C-1))break}return E?Y=r.push("ordered_list_close","ol",-1):Y=r.push("bullet_list_close","ul",-1),Y.markup=String.fromCharCode(_),x[1]=F,r.line=F,r.parentType=T,ue&&e(r,m),!0},zn}var Un,Pr;function Jc(){if(Pr)return Un;Pr=1;var c=J().normalizeReference,n=J().isSpace;return Un=function(e,t,r,s){var i,a,l,p,f,g,h,b,E,v,k,x,m,_,y,w,B=0,S=e.bMarks[t]+e.tShift[t],T=e.eMarks[t],R=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(S)!==91)return!1;for(;++S<T;)if(e.src.charCodeAt(S)===93&&e.src.charCodeAt(S-1)!==92){if(S+1===T||e.src.charCodeAt(S+1)!==58)return!1;break}for(p=e.lineMax,y=e.md.block.ruler.getRules("reference"),v=e.parentType,e.parentType="reference";R<p&&!e.isEmpty(R);R++)if(!(e.sCount[R]-e.blkIndent>3)&&!(e.sCount[R]<0)){for(_=!1,g=0,h=y.length;g<h;g++)if(y[g](e,R,p,!0)){_=!0;break}if(_)break}for(m=e.getLines(t,R,e.blkIndent,!1).trim(),T=m.length,S=1;S<T;S++){if(i=m.charCodeAt(S),i===91)return!1;if(i===93){E=S;break}else i===10?B++:i===92&&(S++,S<T&&m.charCodeAt(S)===10&&B++)}if(E<0||m.charCodeAt(E+1)!==58)return!1;for(S=E+2;S<T;S++)if(i=m.charCodeAt(S),i===10)B++;else if(!n(i))break;if(k=e.md.helpers.parseLinkDestination(m,S,T),!k.ok||(f=e.md.normalizeLink(k.str),!e.md.validateLink(f)))return!1;for(S=k.pos,B+=k.lines,a=S,l=B,x=S;S<T;S++)if(i=m.charCodeAt(S),i===10)B++;else if(!n(i))break;for(k=e.md.helpers.parseLinkTitle(m,S,T),S<T&&x!==S&&k.ok?(w=k.str,S=k.pos,B+=k.lines):(w="",S=a,B=l);S<T&&(i=m.charCodeAt(S),!!n(i));)S++;if(S<T&&m.charCodeAt(S)!==10&&w)for(w="",S=a,B=l;S<T&&(i=m.charCodeAt(S),!!n(i));)S++;return S<T&&m.charCodeAt(S)!==10||(b=c(m.slice(1,E)),!b)?!1:(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[b]>"u"&&(e.env.references[b]={title:w,href:f}),e.parentType=v,e.line=t+B+1),!0)},Un}var $n,zr;function Xc(){return zr||(zr=1,$n=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),$n}var Ve={},Ur;function $r(){if(Ur)return Ve;Ur=1;var c="[a-zA-Z_:][a-zA-Z0-9:._-]*",n="[^\"'=<>`\\x00-\\x20]+",o="'[^']*'",e='"[^"]*"',t="(?:"+n+"|"+o+"|"+e+")",r="(?:\\s+"+c+"(?:\\s*=\\s*"+t+")?)",s="<[A-Za-z][A-Za-z0-9\\-]*"+r+"*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",a="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",l="<[?][\\s\\S]*?[?]>",p="<![A-Z]+\\s+[^>]*>",f="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",g=new RegExp("^(?:"+s+"|"+i+"|"+a+"|"+l+"|"+p+"|"+f+")"),h=new RegExp("^(?:"+s+"|"+i+")");return Ve.HTML_TAG_RE=g,Ve.HTML_OPEN_CLOSE_TAG_RE=h,Ve}var Vn,Vr;function Qc(){if(Vr)return Vn;Vr=1;var c=Xc(),n=$r().HTML_OPEN_CLOSE_TAG_RE,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+c.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(n.source+"\\s*$"),/^$/,!1]];return Vn=function(t,r,s,i){var a,l,p,f,g=t.bMarks[r]+t.tShift[r],h=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(g)!==60)return!1;for(f=t.src.slice(g,h),a=0;a<o.length&&!o[a][0].test(f);a++);if(a===o.length)return!1;if(i)return o[a][2];if(l=r+1,!o[a][1].test(f)){for(;l<s&&!(t.sCount[l]<t.blkIndent);l++)if(g=t.bMarks[l]+t.tShift[l],h=t.eMarks[l],f=t.src.slice(g,h),o[a][1].test(f)){f.length!==0&&l++;break}}return t.line=l,p=t.push("html_block","",0),p.map=[r,l],p.content=t.getLines(r,l,t.blkIndent,!0),!0},Vn}var Hn,Hr;function ei(){if(Hr)return Hn;Hr=1;var c=J().isSpace;return Hn=function(o,e,t,r){var s,i,a,l,p=o.bMarks[e]+o.tShift[e],f=o.eMarks[e];if(o.sCount[e]-o.blkIndent>=4||(s=o.src.charCodeAt(p),s!==35||p>=f))return!1;for(i=1,s=o.src.charCodeAt(++p);s===35&&p<f&&i<=6;)i++,s=o.src.charCodeAt(++p);return i>6||p<f&&!c(s)?!1:(r||(f=o.skipSpacesBack(f,p),a=o.skipCharsBack(f,35,p),a>p&&c(o.src.charCodeAt(a-1))&&(f=a),o.line=e+1,l=o.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[e,o.line],l=o.push("inline","",0),l.content=o.src.slice(p,f).trim(),l.map=[e,o.line],l.children=[],l=o.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)},Hn}var Gn,Gr;function ni(){return Gr||(Gr=1,Gn=function(n,o,e){var t,r,s,i,a,l,p,f,g,h=o+1,b,E=n.md.block.ruler.getRules("paragraph");if(n.sCount[o]-n.blkIndent>=4)return!1;for(b=n.parentType,n.parentType="paragraph";h<e&&!n.isEmpty(h);h++)if(!(n.sCount[h]-n.blkIndent>3)){if(n.sCount[h]>=n.blkIndent&&(l=n.bMarks[h]+n.tShift[h],p=n.eMarks[h],l<p&&(g=n.src.charCodeAt(l),(g===45||g===61)&&(l=n.skipChars(l,g),l=n.skipSpaces(l),l>=p)))){f=g===61?1:2;break}if(!(n.sCount[h]<0)){for(r=!1,s=0,i=E.length;s<i;s++)if(E[s](n,h,e,!0)){r=!0;break}if(r)break}}return f?(t=n.getLines(o,h,n.blkIndent,!1).trim(),n.line=h+1,a=n.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(g),a.map=[o,n.line],a=n.push("inline","",0),a.content=t,a.map=[o,n.line-1],a.children=[],a=n.push("heading_close","h"+String(f),-1),a.markup=String.fromCharCode(g),n.parentType=b,!0):!1}),Gn}var jn,jr;function ti(){return jr||(jr=1,jn=function(n,o,e){var t,r,s,i,a,l,p=o+1,f=n.md.block.ruler.getRules("paragraph");for(l=n.parentType,n.parentType="paragraph";p<e&&!n.isEmpty(p);p++)if(!(n.sCount[p]-n.blkIndent>3)&&!(n.sCount[p]<0)){for(r=!1,s=0,i=f.length;s<i;s++)if(f[s](n,p,e,!0)){r=!0;break}if(r)break}return t=n.getLines(o,p,n.blkIndent,!1).trim(),n.line=p,a=n.push("paragraph_open","p",1),a.map=[o,n.line],a=n.push("inline","",0),a.content=t,a.map=[o,n.line],a.children=[],a=n.push("paragraph_close","p",-1),n.parentType=l,!0}),jn}var Zn,Zr;function ri(){if(Zr)return Zn;Zr=1;var c=Nn(),n=J().isSpace;function o(e,t,r,s){var i,a,l,p,f,g,h,b;for(this.src=e,this.md=t,this.env=r,this.tokens=s,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,this.result="",a=this.src,b=!1,l=p=g=h=0,f=a.length;p<f;p++){if(i=a.charCodeAt(p),!b)if(n(i)){g++,i===9?h+=4-h%4:h++;continue}else b=!0;(i===10||p===f-1)&&(i!==10&&p++,this.bMarks.push(l),this.eMarks.push(p),this.tShift.push(g),this.sCount.push(h),this.bsCount.push(0),b=!1,g=0,h=0,l=p+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return o.prototype.push=function(e,t,r){var s=new c(e,t,r);return s.block=!0,r<0&&this.level--,s.level=this.level,r>0&&this.level++,this.tokens.push(s),s},o.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},o.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},o.prototype.skipSpaces=function(t){for(var r,s=this.src.length;t<s&&(r=this.src.charCodeAt(t),!!n(r));t++);return t},o.prototype.skipSpacesBack=function(t,r){if(t<=r)return t;for(;t>r;)if(!n(this.src.charCodeAt(--t)))return t+1;return t},o.prototype.skipChars=function(t,r){for(var s=this.src.length;t<s&&this.src.charCodeAt(t)===r;t++);return t},o.prototype.skipCharsBack=function(t,r,s){if(t<=s)return t;for(;t>s;)if(r!==this.src.charCodeAt(--t))return t+1;return t},o.prototype.getLines=function(t,r,s,i){var a,l,p,f,g,h,b,E=t;if(t>=r)return"";for(h=new Array(r-t),a=0;E<r;E++,a++){for(l=0,b=f=this.bMarks[E],E+1<r||i?g=this.eMarks[E]+1:g=this.eMarks[E];f<g&&l<s;){if(p=this.src.charCodeAt(f),n(p))p===9?l+=4-(l+this.bsCount[E])%4:l++;else if(f-b<this.tShift[E])l++;else break;f++}l>s?h[a]=new Array(l-s+1).join(" ")+this.src.slice(f,g):h[a]=this.src.slice(f,g)}return h.join("")},o.prototype.Token=c,Zn=o,Zn}var Kn,Kr;function oi(){if(Kr)return Kn;Kr=1;var c=wn(),n=[["table",Gc(),["paragraph","reference"]],["code",jc()],["fence",Zc(),["paragraph","reference","blockquote","list"]],["blockquote",Kc(),["paragraph","reference","blockquote","list"]],["hr",Wc(),["paragraph","reference","blockquote","list"]],["list",Yc(),["paragraph","reference","blockquote"]],["reference",Jc()],["html_block",Qc(),["paragraph","reference","blockquote"]],["heading",ei(),["paragraph","reference","blockquote"]],["lheading",ni()],["paragraph",ti()]];function o(){this.ruler=new c;for(var e=0;e<n.length;e++)this.ruler.push(n[e][0],n[e][1],{alt:(n[e][2]||[]).slice()})}return o.prototype.tokenize=function(e,t,r){for(var s,i,a,l=this.ruler.getRules(""),p=l.length,f=t,g=!1,h=e.md.options.maxNesting;f<r&&(e.line=f=e.skipEmptyLines(f),!(f>=r||e.sCount[f]<e.blkIndent));){if(e.level>=h){e.line=r;break}for(a=e.line,i=0;i<p;i++)if(s=l[i](e,f,r,!1),s){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");e.tight=!g,e.isEmpty(e.line-1)&&(g=!0),f=e.line,f<r&&e.isEmpty(f)&&(g=!0,f++,e.line=f)}},o.prototype.parse=function(e,t,r,s){var i;e&&(i=new this.State(e,t,r,s),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=ri(),Kn=o,Kn}var Wn,Wr;function si(){if(Wr)return Wn;Wr=1;function c(n){switch(n){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}}return Wn=function(o,e){for(var t=o.pos;t<o.posMax&&!c(o.src.charCodeAt(t));)t++;return t===o.pos?!1:(e||(o.pending+=o.src.slice(o.pos,t)),o.pos=t,!0)},Wn}var Yn,Yr;function ci(){if(Yr)return Yn;Yr=1;var c=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return Yn=function(o,e){var t,r,s,i,a,l,p,f;return!o.md.options.linkify||o.linkLevel>0||(t=o.pos,r=o.posMax,t+3>r)||o.src.charCodeAt(t)!==58||o.src.charCodeAt(t+1)!==47||o.src.charCodeAt(t+2)!==47||(s=o.pending.match(c),!s)||(i=s[1],a=o.md.linkify.matchAtStart(o.src.slice(t-i.length)),!a)||(l=a.url,l.length<=i.length)||(l=l.replace(/\*+$/,""),p=o.md.normalizeLink(l),!o.md.validateLink(p))?!1:(e||(o.pending=o.pending.slice(0,-i.length),f=o.push("link_open","a",1),f.attrs=[["href",p]],f.markup="linkify",f.info="auto",f=o.push("text","",0),f.content=o.md.normalizeLinkText(l),f=o.push("link_close","a",-1),f.markup="linkify",f.info="auto"),o.pos+=l.length-i.length,!0)},Yn}var Jn,Jr;function ii(){if(Jr)return Jn;Jr=1;var c=J().isSpace;return Jn=function(o,e){var t,r,s,i=o.pos;if(o.src.charCodeAt(i)!==10)return!1;if(t=o.pending.length-1,r=o.posMax,!e)if(t>=0&&o.pending.charCodeAt(t)===32)if(t>=1&&o.pending.charCodeAt(t-1)===32){for(s=t-1;s>=1&&o.pending.charCodeAt(s-1)===32;)s--;o.pending=o.pending.slice(0,s),o.push("hardbreak","br",0)}else o.pending=o.pending.slice(0,-1),o.push("softbreak","br",0);else o.push("softbreak","br",0);for(i++;i<r&&c(o.src.charCodeAt(i));)i++;return o.pos=i,!0},Jn}var Xn,Xr;function ai(){if(Xr)return Xn;Xr=1;for(var c=J().isSpace,n=[],o=0;o<256;o++)n.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){n[e.charCodeAt(0)]=1}),Xn=function(t,r){var s,i,a,l,p,f=t.pos,g=t.posMax;if(t.src.charCodeAt(f)!==92||(f++,f>=g))return!1;if(s=t.src.charCodeAt(f),s===10){for(r||t.push("hardbreak","br",0),f++;f<g&&(s=t.src.charCodeAt(f),!!c(s));)f++;return t.pos=f,!0}return l=t.src[f],s>=55296&&s<=56319&&f+1<g&&(i=t.src.charCodeAt(f+1),i>=56320&&i<=57343&&(l+=t.src[f+1],f++)),a="\\"+l,r||(p=t.push("text_special","",0),s<256&&n[s]!==0?p.content=l:p.content=a,p.markup=a,p.info="escape"),t.pos=f+1,!0},Xn}var Qn,Qr;function li(){return Qr||(Qr=1,Qn=function(n,o){var e,t,r,s,i,a,l,p,f=n.pos,g=n.src.charCodeAt(f);if(g!==96)return!1;for(e=f,f++,t=n.posMax;f<t&&n.src.charCodeAt(f)===96;)f++;if(r=n.src.slice(e,f),l=r.length,n.backticksScanned&&(n.backticks[l]||0)<=e)return o||(n.pending+=r),n.pos+=l,!0;for(a=f;(i=n.src.indexOf("`",a))!==-1;){for(a=i+1;a<t&&n.src.charCodeAt(a)===96;)a++;if(p=a-i,p===l)return o||(s=n.push("code_inline","code",0),s.markup=r,s.content=n.src.slice(f,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),n.pos=a,!0;n.backticks[p]=i}return n.backticksScanned=!0,o||(n.pending+=r),n.pos+=l,!0}),Qn}var He={},eo;function no(){if(eo)return He;eo=1,He.tokenize=function(o,e){var t,r,s,i,a,l=o.pos,p=o.src.charCodeAt(l);if(e||p!==126||(r=o.scanDelims(o.pos,!0),i=r.length,a=String.fromCharCode(p),i<2))return!1;for(i%2&&(s=o.push("text","",0),s.content=a,i--),t=0;t<i;t+=2)s=o.push("text","",0),s.content=a+a,o.delimiters.push({marker:p,length:0,token:o.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return o.pos+=r.length,!0};function c(n,o){var e,t,r,s,i,a=[],l=o.length;for(e=0;e<l;e++)r=o[e],r.marker===126&&r.end!==-1&&(s=o[r.end],i=n.tokens[r.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=n.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",n.tokens[s.token-1].type==="text"&&n.tokens[s.token-1].content==="~"&&a.push(s.token-1));for(;a.length;){for(e=a.pop(),t=e+1;t<n.tokens.length&&n.tokens[t].type==="s_close";)t++;t--,e!==t&&(i=n.tokens[t],n.tokens[t]=n.tokens[e],n.tokens[e]=i)}}return He.postProcess=function(o){var e,t=o.tokens_meta,r=o.tokens_meta.length;for(c(o,o.delimiters),e=0;e<r;e++)t[e]&&t[e].delimiters&&c(o,t[e].delimiters)},He}var Ge={},to;function ro(){if(to)return Ge;to=1,Ge.tokenize=function(o,e){var t,r,s,i=o.pos,a=o.src.charCodeAt(i);if(e||a!==95&&a!==42)return!1;for(r=o.scanDelims(o.pos,a===42),t=0;t<r.length;t++)s=o.push("text","",0),s.content=String.fromCharCode(a),o.delimiters.push({marker:a,length:r.length,token:o.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return o.pos+=r.length,!0};function c(n,o){var e,t,r,s,i,a,l=o.length;for(e=l-1;e>=0;e--)t=o[e],!(t.marker!==95&&t.marker!==42)&&t.end!==-1&&(r=o[t.end],a=e>0&&o[e-1].end===t.end+1&&o[e-1].marker===t.marker&&o[e-1].token===t.token-1&&o[t.end+1].token===r.token+1,i=String.fromCharCode(t.marker),s=n.tokens[t.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="",s=n.tokens[r.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?i+i:i,s.content="",a&&(n.tokens[o[e-1].token].content="",n.tokens[o[t.end+1].token].content="",e--))}return Ge.postProcess=function(o){var e,t=o.tokens_meta,r=o.tokens_meta.length;for(c(o,o.delimiters),e=0;e<r;e++)t[e]&&t[e].delimiters&&c(o,t[e].delimiters)},Ge}var et,oo;function ui(){if(oo)return et;oo=1;var c=J().normalizeReference,n=J().isSpace;return et=function(e,t){var r,s,i,a,l,p,f,g,h,b="",E="",v=e.pos,k=e.posMax,x=e.pos,m=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(p=a+1,p<k&&e.src.charCodeAt(p)===40){for(m=!1,p++;p<k&&(s=e.src.charCodeAt(p),!(!n(s)&&s!==10));p++);if(p>=k)return!1;if(x=p,f=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),f.ok){for(b=e.md.normalizeLink(f.str),e.md.validateLink(b)?p=f.pos:b="",x=p;p<k&&(s=e.src.charCodeAt(p),!(!n(s)&&s!==10));p++);if(f=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<k&&x!==p&&f.ok)for(E=f.str,p=f.pos;p<k&&(s=e.src.charCodeAt(p),!(!n(s)&&s!==10));p++);}(p>=k||e.src.charCodeAt(p)!==41)&&(m=!0),p++}if(m){if(typeof e.env.references>"u")return!1;if(p<k&&e.src.charCodeAt(p)===91?(x=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?i=e.src.slice(x,p++):p=a+1):p=a+1,i||(i=e.src.slice(l,a)),g=e.env.references[c(i)],!g)return e.pos=v,!1;b=g.href,E=g.title}return t||(e.pos=l,e.posMax=a,h=e.push("link_open","a",1),h.attrs=r=[["href",b]],E&&r.push(["title",E]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,h=e.push("link_close","a",-1)),e.pos=p,e.posMax=k,!0},et}var nt,so;function fi(){if(so)return nt;so=1;var c=J().normalizeReference,n=J().isSpace;return nt=function(e,t){var r,s,i,a,l,p,f,g,h,b,E,v,k,x="",m=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(p=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(f=l+1,f<_&&e.src.charCodeAt(f)===40){for(f++;f<_&&(s=e.src.charCodeAt(f),!(!n(s)&&s!==10));f++);if(f>=_)return!1;for(k=f,h=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),h.ok&&(x=e.md.normalizeLink(h.str),e.md.validateLink(x)?f=h.pos:x=""),k=f;f<_&&(s=e.src.charCodeAt(f),!(!n(s)&&s!==10));f++);if(h=e.md.helpers.parseLinkTitle(e.src,f,e.posMax),f<_&&k!==f&&h.ok)for(b=h.str,f=h.pos;f<_&&(s=e.src.charCodeAt(f),!(!n(s)&&s!==10));f++);else b="";if(f>=_||e.src.charCodeAt(f)!==41)return e.pos=m,!1;f++}else{if(typeof e.env.references>"u")return!1;if(f<_&&e.src.charCodeAt(f)===91?(k=f+1,f=e.md.helpers.parseLinkLabel(e,f),f>=0?a=e.src.slice(k,f++):f=l+1):f=l+1,a||(a=e.src.slice(p,l)),g=e.env.references[c(a)],!g)return e.pos=m,!1;x=g.href,b=g.title}return t||(i=e.src.slice(p,l),e.md.inline.parse(i,e.md,e.env,v=[]),E=e.push("image","img",0),E.attrs=r=[["src",x],["alt",""]],E.children=v,E.content=i,b&&r.push(["title",b])),e.pos=f,e.posMax=_,!0},nt}var tt,co;function pi(){if(co)return tt;co=1;var c=/^([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])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return tt=function(e,t){var r,s,i,a,l,p,f=e.pos;if(e.src.charCodeAt(f)!==60)return!1;for(l=e.pos,p=e.posMax;;){if(++f>=p||(a=e.src.charCodeAt(f),a===60))return!1;if(a===62)break}return r=e.src.slice(l+1,f),n.test(r)?(s=e.md.normalizeLink(r),e.md.validateLink(s)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",s]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(r),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=r.length+2,!0):!1):c.test(r)?(s=e.md.normalizeLink("mailto:"+r),e.md.validateLink(s)?(t||(i=e.push("link_open","a",1),i.attrs=[["href",s]],i.markup="autolink",i.info="auto",i=e.push("text","",0),i.content=e.md.normalizeLinkText(r),i=e.push("link_close","a",-1),i.markup="autolink",i.info="auto"),e.pos+=r.length+2,!0):!1):!1},tt}var rt,io;function hi(){if(io)return rt;io=1;var c=$r().HTML_TAG_RE;function n(t){return/^<a[>\s]/i.test(t)}function o(t){return/^<\/a\s*>/i.test(t)}function e(t){var r=t|32;return r>=97&&r<=122}return rt=function(r,s){var i,a,l,p,f=r.pos;return!r.md.options.html||(l=r.posMax,r.src.charCodeAt(f)!==60||f+2>=l)||(i=r.src.charCodeAt(f+1),i!==33&&i!==63&&i!==47&&!e(i))||(a=r.src.slice(f).match(c),!a)?!1:(s||(p=r.push("html_inline","",0),p.content=a[0],n(p.content)&&r.linkLevel++,o(p.content)&&r.linkLevel--),r.pos+=a[0].length,!0)},rt}var ot,ao;function di(){if(ao)return ot;ao=1;var c=er(),n=J().has,o=J().isValidEntityCode,e=J().fromCodePoint,t=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,r=/^&([a-z][a-z0-9]{1,31});/i;return ot=function(i,a){var l,p,f,g,h=i.pos,b=i.posMax;if(i.src.charCodeAt(h)!==38||h+1>=b)return!1;if(l=i.src.charCodeAt(h+1),l===35){if(f=i.src.slice(h).match(t),f)return a||(p=f[1][0].toLowerCase()==="x"?parseInt(f[1].slice(1),16):parseInt(f[1],10),g=i.push("text_special","",0),g.content=o(p)?e(p):e(65533),g.markup=f[0],g.info="entity"),i.pos+=f[0].length,!0}else if(f=i.src.slice(h).match(r),f&&n(c,f[1]))return a||(g=i.push("text_special","",0),g.content=c[f[1]],g.markup=f[0],g.info="entity"),i.pos+=f[0].length,!0;return!1},ot}var st,lo;function gi(){if(lo)return st;lo=1;function c(n){var o,e,t,r,s,i,a,l,p={},f=n.length;if(f){var g=0,h=-2,b=[];for(o=0;o<f;o++)if(t=n[o],b.push(0),(n[g].marker!==t.marker||h!==t.token-1)&&(g=o),h=t.token,t.length=t.length||0,!!t.close){for(p.hasOwnProperty(t.marker)||(p[t.marker]=[-1,-1,-1,-1,-1,-1]),s=p[t.marker][(t.open?3:0)+t.length%3],e=g-b[g]-1,i=e;e>s;e-=b[e]+1)if(r=n[e],r.marker===t.marker&&r.open&&r.end<0&&(a=!1,(r.close||t.open)&&(r.length+t.length)%3===0&&(r.length%3!==0||t.length%3!==0)&&(a=!0),!a)){l=e>0&&!n[e-1].open?b[e-1]+1:0,b[o]=o-e+l,b[e]=l,t.open=!1,r.end=o,r.close=!1,i=-1,h=-2;break}i!==-1&&(p[t.marker][(t.open?3:0)+(t.length||0)%3]=i)}}}return st=function(o){var e,t=o.tokens_meta,r=o.tokens_meta.length;for(c(o.delimiters),e=0;e<r;e++)t[e]&&t[e].delimiters&&c(t[e].delimiters)},st}var ct,uo;function mi(){return uo||(uo=1,ct=function(n){var o,e,t=0,r=n.tokens,s=n.tokens.length;for(o=e=0;o<s;o++)r[o].nesting<0&&t--,r[o].level=t,r[o].nesting>0&&t++,r[o].type==="text"&&o+1<s&&r[o+1].type==="text"?r[o+1].content=r[o].content+r[o+1].content:(o!==e&&(r[e]=r[o]),e++);o!==e&&(r.length=e)}),ct}var it,fo;function bi(){if(fo)return it;fo=1;var c=Nn(),n=J().isWhiteSpace,o=J().isPunctChar,e=J().isMdAsciiPunct;function t(r,s,i,a){this.src=r,this.env=i,this.md=s,this.tokens=a,this.tokens_meta=Array(a.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}return t.prototype.pushPending=function(){var r=new c("text","",0);return r.content=this.pending,r.level=this.pendingLevel,this.tokens.push(r),this.pending="",r},t.prototype.push=function(r,s,i){this.pending&&this.pushPending();var a=new c(r,s,i),l=null;return i<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),a.level=this.level,i>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],l={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(a),this.tokens_meta.push(l),a},t.prototype.scanDelims=function(r,s){var i=r,a,l,p,f,g,h,b,E,v,k=!0,x=!0,m=this.posMax,_=this.src.charCodeAt(r);for(a=r>0?this.src.charCodeAt(r-1):32;i<m&&this.src.charCodeAt(i)===_;)i++;return p=i-r,l=i<m?this.src.charCodeAt(i):32,b=e(a)||o(String.fromCharCode(a)),v=e(l)||o(String.fromCharCode(l)),h=n(a),E=n(l),E?k=!1:v&&(h||b||(k=!1)),h?x=!1:b&&(E||v||(x=!1)),s?(f=k,g=x):(f=k&&(!x||b),g=x&&(!k||v)),{can_open:f,can_close:g,length:p}},t.prototype.Token=c,it=t,it}var at,po;function _i(){if(po)return at;po=1;var c=wn(),n=[["text",si()],["linkify",ci()],["newline",ii()],["escape",ai()],["backticks",li()],["strikethrough",no().tokenize],["emphasis",ro().tokenize],["link",ui()],["image",fi()],["autolink",pi()],["html_inline",hi()],["entity",di()]],o=[["balance_pairs",gi()],["strikethrough",no().postProcess],["emphasis",ro().postProcess],["fragments_join",mi()]];function e(){var t;for(this.ruler=new c,t=0;t<n.length;t++)this.ruler.push(n[t][0],n[t][1]);for(this.ruler2=new c,t=0;t<o.length;t++)this.ruler2.push(o[t][0],o[t][1])}return e.prototype.skipToken=function(t){var r,s,i=t.pos,a=this.ruler.getRules(""),l=a.length,p=t.md.options.maxNesting,f=t.cache;if(typeof f[i]<"u"){t.pos=f[i];return}if(t.level<p){for(s=0;s<l;s++)if(t.level++,r=a[s](t,!0),t.level--,r){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;r||t.pos++,f[i]=t.pos},e.prototype.tokenize=function(t){for(var r,s,i,a=this.ruler.getRules(""),l=a.length,p=t.posMax,f=t.md.options.maxNesting;t.pos<p;){if(i=t.pos,t.level<f){for(s=0;s<l;s++)if(r=a[s](t,!1),r){if(i>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(t.pos>=p)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},e.prototype.parse=function(t,r,s,i){var a,l,p,f=new this.State(t,r,s,i);for(this.tokenize(f),l=this.ruler2.getRules(""),p=l.length,a=0;a<p;a++)l[a](f)},e.prototype.State=bi(),at=e,at}var lt,ho;function ki(){return ho||(ho=1,lt=function(c){var n={};c=c||{},n.src_Any=lr().source,n.src_Cc=fr().source,n.src_Z=dr().source,n.src_P=ln().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var o="[><|]";return n.src_pseudo_letter="(?:(?!"+o+"|"+n.src_ZPCc+")"+n.src_Any+")",n.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]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+o+"|"+n.src_ZPCc+")(?!"+(c["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+o+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(c["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+o+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),lt}var ut,go;function Ei(){if(go)return ut;go=1;function c(m){var _=Array.prototype.slice.call(arguments,1);return _.forEach(function(y){y&&Object.keys(y).forEach(function(w){m[w]=y[w]})}),m}function n(m){return Object.prototype.toString.call(m)}function o(m){return n(m)==="[object String]"}function e(m){return n(m)==="[object Object]"}function t(m){return n(m)==="[object RegExp]"}function r(m){return n(m)==="[object Function]"}function s(m){return m.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var i={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function a(m){return Object.keys(m||{}).reduce(function(_,y){return _||i.hasOwnProperty(y)},!1)}var l={"http:":{validate:function(m,_,y){var w=m.slice(_);return y.re.http||(y.re.http=new RegExp("^\\/\\/"+y.re.src_auth+y.re.src_host_port_strict+y.re.src_path,"i")),y.re.http.test(w)?w.match(y.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(m,_,y){var w=m.slice(_);return y.re.no_http||(y.re.no_http=new RegExp("^"+y.re.src_auth+"(?:localhost|(?:(?:"+y.re.src_domain+")\\.)+"+y.re.src_domain_root+")"+y.re.src_port+y.re.src_host_terminator+y.re.src_path,"i")),y.re.no_http.test(w)?_>=3&&m[_-3]===":"||_>=3&&m[_-3]==="/"?0:w.match(y.re.no_http)[0].length:0}},"mailto:":{validate:function(m,_,y){var w=m.slice(_);return y.re.mailto||(y.re.mailto=new RegExp("^"+y.re.src_email_name+"@"+y.re.src_host_strict,"i")),y.re.mailto.test(w)?w.match(y.re.mailto)[0].length:0}}},p="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]",f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(m){m.__index__=-1,m.__text_cache__=""}function h(m){return function(_,y){var w=_.slice(y);return m.test(w)?w.match(m)[0].length:0}}function b(){return function(m,_){_.normalize(m)}}function E(m){var _=m.re=ki()(m.__opts__),y=m.__tlds__.slice();m.onCompile(),m.__tlds_replaced__||y.push(p),y.push(_.src_xn),_.src_tlds=y.join("|");function w(R){return R.replace("%TLDS%",_.src_tlds)}_.email_fuzzy=RegExp(w(_.tpl_email_fuzzy),"i"),_.link_fuzzy=RegExp(w(_.tpl_link_fuzzy),"i"),_.link_no_ip_fuzzy=RegExp(w(_.tpl_link_no_ip_fuzzy),"i"),_.host_fuzzy_test=RegExp(w(_.tpl_host_fuzzy_test),"i");var B=[];m.__compiled__={};function S(R,I){throw new Error('(LinkifyIt) Invalid schema "'+R+'": '+I)}Object.keys(m.__schemas__).forEach(function(R){var I=m.__schemas__[R];if(I!==null){var G={validate:null,link:null};if(m.__compiled__[R]=G,e(I)){t(I.validate)?G.validate=h(I.validate):r(I.validate)?G.validate=I.validate:S(R,I),r(I.normalize)?G.normalize=I.normalize:I.normalize?S(R,I):G.normalize=b();return}if(o(I)){B.push(R);return}S(R,I)}}),B.forEach(function(R){m.__compiled__[m.__schemas__[R]]&&(m.__compiled__[R].validate=m.__compiled__[m.__schemas__[R]].validate,m.__compiled__[R].normalize=m.__compiled__[m.__schemas__[R]].normalize)}),m.__compiled__[""]={validate:null,normalize:b()};var T=Object.keys(m.__compiled__).filter(function(R){return R.length>0&&m.__compiled__[R]}).map(s).join("|");m.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+T+")","i"),m.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+T+")","ig"),m.re.schema_at_start=RegExp("^"+m.re.schema_search.source,"i"),m.re.pretest=RegExp("("+m.re.schema_test.source+")|("+m.re.host_fuzzy_test.source+")|@","i"),g(m)}function v(m,_){var y=m.__index__,w=m.__last_index__,B=m.__text_cache__.slice(y,w);this.schema=m.__schema__.toLowerCase(),this.index=y+_,this.lastIndex=w+_,this.raw=B,this.text=B,this.url=B}function k(m,_){var y=new v(m,_);return m.__compiled__[y.schema].normalize(y,m),y}function x(m,_){if(!(this instanceof x))return new x(m,_);_||a(m)&&(_=m,m={}),this.__opts__=c({},i,_),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=c({},l,m),this.__compiled__={},this.__tlds__=f,this.__tlds_replaced__=!1,this.re={},E(this)}return x.prototype.add=function(_,y){return this.__schemas__[_]=y,E(this),this},x.prototype.set=function(_){return this.__opts__=c(this.__opts__,_),this},x.prototype.test=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return!1;var y,w,B,S,T,R,I,G,Q;if(this.re.schema_test.test(_)){for(I=this.re.schema_search,I.lastIndex=0;(y=I.exec(_))!==null;)if(S=this.testSchemaAt(_,y[2],I.lastIndex),S){this.__schema__=y[2],this.__index__=y.index+y[1].length,this.__last_index__=y.index+y[0].length+S;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(G=_.search(this.re.host_fuzzy_test),G>=0&&(this.__index__<0||G<this.__index__)&&(w=_.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(T=w.index+w[1].length,(this.__index__<0||T<this.__index__)&&(this.__schema__="",this.__index__=T,this.__last_index__=w.index+w[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(Q=_.indexOf("@"),Q>=0&&(B=_.match(this.re.email_fuzzy))!==null&&(T=B.index+B[1].length,R=B.index+B[0].length,(this.__index__<0||T<this.__index__||T===this.__index__&&R>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=T,this.__last_index__=R))),this.__index__>=0},x.prototype.pretest=function(_){return this.re.pretest.test(_)},x.prototype.testSchemaAt=function(_,y,w){return this.__compiled__[y.toLowerCase()]?this.__compiled__[y.toLowerCase()].validate(_,w,this):0},x.prototype.match=function(_){var y=0,w=[];this.__index__>=0&&this.__text_cache__===_&&(w.push(k(this,y)),y=this.__last_index__);for(var B=y?_.slice(y):_;this.test(B);)w.push(k(this,y)),B=B.slice(this.__last_index__),y+=this.__last_index__;return w.length?w:null},x.prototype.matchAtStart=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return null;var y=this.re.schema_at_start.exec(_);if(!y)return null;var w=this.testSchemaAt(_,y[2],y[0].length);return w?(this.__schema__=y[2],this.__index__=y.index+y[1].length,this.__last_index__=y.index+y[0].length+w,k(this,0)):null},x.prototype.tlds=function(_,y){return _=Array.isArray(_)?_:[_],y?(this.__tlds__=this.__tlds__.concat(_).sort().filter(function(w,B,S){return w!==S[B-1]}).reverse(),E(this),this):(this.__tlds__=_.slice(),this.__tlds_replaced__=!0,E(this),this)},x.prototype.normalize=function(_){_.schema||(_.url="http://"+_.url),_.schema==="mailto:"&&!/^mailto:/i.test(_.url)&&(_.url="mailto:"+_.url)},x.prototype.onCompile=function(){},ut=x,ut}const Te=2147483647,me=36,ft=1,Oe=26,yi=38,xi=700,mo=72,bo=128,_o="-",wi=/^xn--/,vi=/[^\0-\x7F]/,Ai=/[\x2E\u3002\uFF0E\uFF61]/g,Ci={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pt=me-ft,be=Math.floor,ht=String.fromCharCode;function xe(c){throw new RangeError(Ci[c])}function Si(c,n){const o=[];let e=c.length;for(;e--;)o[e]=n(c[e]);return o}function ko(c,n){const o=c.split("@");let e="";o.length>1&&(e=o[0]+"@",c=o[1]),c=c.replace(Ai,".");const t=c.split("."),r=Si(t,n).join(".");return e+r}function dt(c){const n=[];let o=0;const e=c.length;for(;o<e;){const t=c.charCodeAt(o++);if(t>=55296&&t<=56319&&o<e){const r=c.charCodeAt(o++);(r&64512)==56320?n.push(((t&1023)<<10)+(r&1023)+65536):(n.push(t),o--)}else n.push(t)}return n}const Eo=c=>String.fromCodePoint(...c),Di=function(c){return c>=48&&c<58?26+(c-48):c>=65&&c<91?c-65:c>=97&&c<123?c-97:me},yo=function(c,n){return c+22+75*(c<26)-((n!=0)<<5)},xo=function(c,n,o){let e=0;for(c=o?be(c/xi):c>>1,c+=be(c/n);c>pt*Oe>>1;e+=me)c=be(c/pt);return be(e+(pt+1)*c/(c+yi))},gt=function(c){const n=[],o=c.length;let e=0,t=bo,r=mo,s=c.lastIndexOf(_o);s<0&&(s=0);for(let i=0;i<s;++i)c.charCodeAt(i)>=128&&xe("not-basic"),n.push(c.charCodeAt(i));for(let i=s>0?s+1:0;i<o;){const a=e;for(let p=1,f=me;;f+=me){i>=o&&xe("invalid-input");const g=Di(c.charCodeAt(i++));g>=me&&xe("invalid-input"),g>be((Te-e)/p)&&xe("overflow"),e+=g*p;const h=f<=r?ft:f>=r+Oe?Oe:f-r;if(g<h)break;const b=me-h;p>be(Te/b)&&xe("overflow"),p*=b}const l=n.length+1;r=xo(e-a,l,a==0),be(e/l)>Te-t&&xe("overflow"),t+=be(e/l),e%=l,n.splice(e++,0,t)}return String.fromCodePoint(...n)},mt=function(c){const n=[];c=dt(c);const o=c.length;let e=bo,t=0,r=mo;for(const a of c)a<128&&n.push(ht(a));const s=n.length;let i=s;for(s&&n.push(_o);i<o;){let a=Te;for(const p of c)p>=e&&p<a&&(a=p);const l=i+1;a-e>be((Te-t)/l)&&xe("overflow"),t+=(a-e)*l,e=a;for(const p of c)if(p<e&&++t>Te&&xe("overflow"),p===e){let f=t;for(let g=me;;g+=me){const h=g<=r?ft:g>=r+Oe?Oe:g-r;if(f<h)break;const b=f-h,E=me-h;n.push(ht(yo(h+b%E,0))),f=be(b/E)}n.push(ht(yo(f,0))),r=xo(t,l,i===s),t=0,++i}++t,++e}return n.join("")},wo=function(c){return ko(c,function(n){return wi.test(n)?gt(n.slice(4).toLowerCase()):n})},vo=function(c){return ko(c,function(n){return vi.test(n)?"xn--"+mt(n):n})},Ri=ss(Object.freeze(Object.defineProperty({__proto__:null,decode:gt,default:{version:"2.3.1",ucs2:{decode:dt,encode:Eo},decode:gt,encode:mt,toASCII:vo,toUnicode:wo},encode:mt,toASCII:vo,toUnicode:wo,ucs2decode:dt,ucs2encode:Eo},Symbol.toStringTag,{value:"Module"})));var bt,Ao;function Ti(){return Ao||(Ao=1,bt={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),bt}var _t,Co;function qi(){return Co||(Co=1,_t={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"]}}}),_t}var kt,So;function Ni(){return So||(So=1,kt={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"]}}}),kt}var Et,Do;function Li(){if(Do)return Et;Do=1;var c=J(),n=Bc(),o=Mc(),e=Hc(),t=oi(),r=_i(),s=Ei(),i=ir(),a=Ri,l={default:Ti(),zero:qi(),commonmark:Ni()},p=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function g(k){var x=k.trim().toLowerCase();return p.test(x)?!!f.test(x):!0}var h=["http:","https:","mailto:"];function b(k){var x=i.parse(k,!0);if(x.hostname&&(!x.protocol||h.indexOf(x.protocol)>=0))try{x.hostname=a.toASCII(x.hostname)}catch{}return i.encode(i.format(x))}function E(k){var x=i.parse(k,!0);if(x.hostname&&(!x.protocol||h.indexOf(x.protocol)>=0))try{x.hostname=a.toUnicode(x.hostname)}catch{}return i.decode(i.format(x),i.decode.defaultChars+"%")}function v(k,x){if(!(this instanceof v))return new v(k,x);x||c.isString(k)||(x=k||{},k="default"),this.inline=new r,this.block=new t,this.core=new e,this.renderer=new o,this.linkify=new s,this.validateLink=g,this.normalizeLink=b,this.normalizeLinkText=E,this.utils=c,this.helpers=c.assign({},n),this.options={},this.configure(k),x&&this.set(x)}return v.prototype.set=function(k){return c.assign(this.options,k),this},v.prototype.configure=function(k){var x=this,m;if(c.isString(k)&&(m=k,k=l[m],!k))throw new Error('Wrong `markdown-it` preset "'+m+'", check name');if(!k)throw new Error("Wrong `markdown-it` preset, can't be empty");return k.options&&x.set(k.options),k.components&&Object.keys(k.components).forEach(function(_){k.components[_].rules&&x[_].ruler.enableOnly(k.components[_].rules),k.components[_].rules2&&x[_].ruler2.enableOnly(k.components[_].rules2)}),this},v.prototype.enable=function(k,x){var m=[];Array.isArray(k)||(k=[k]),["core","block","inline"].forEach(function(y){m=m.concat(this[y].ruler.enable(k,!0))},this),m=m.concat(this.inline.ruler2.enable(k,!0));var _=k.filter(function(y){return m.indexOf(y)<0});if(_.length&&!x)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+_);return this},v.prototype.disable=function(k,x){var m=[];Array.isArray(k)||(k=[k]),["core","block","inline"].forEach(function(y){m=m.concat(this[y].ruler.disable(k,!0))},this),m=m.concat(this.inline.ruler2.disable(k,!0));var _=k.filter(function(y){return m.indexOf(y)<0});if(_.length&&!x)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+_);return this},v.prototype.use=function(k){var x=[this].concat(Array.prototype.slice.call(arguments,1));return k.apply(k,x),this},v.prototype.parse=function(k,x){if(typeof k!="string")throw new Error("Input data should be a String");var m=new this.core.State(k,this,x);return this.core.process(m),m.tokens},v.prototype.render=function(k,x){return x=x||{},this.renderer.render(this.parse(k,x),this.options,x)},v.prototype.parseInline=function(k,x){var m=new this.core.State(k,this,x);return m.inlineMode=!0,this.core.process(m),m.tokens},v.prototype.renderInline=function(k,x){return x=x||{},this.renderer.render(this.parseInline(k,x),this.options,x)},Et=v,Et}var yt,Ro;function Bi(){return Ro||(Ro=1,yt=Li()),yt}var Mi=Bi();const Ii=nn(Mi),Oi=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(c){const n=u.ref(new Ii(c.options??{}));for(const e of c.plugins??[])n.value.use(e);const o=u.computed(()=>n.value.render(c.source));return()=>u.h("div",{innerHTML:o.value})}}),Fi={key:0,class:"chat-message-actions"},Pi={key:2,class:"chat-message-files"},xt=u.defineComponent({__name:"Message",props:{message:{}},setup(c,{expose:n}){const o=c;Ee.registerLanguage("javascript",Ut),Ee.registerLanguage("typescript",Ec),Ee.registerLanguage("python",_c),Ee.registerLanguage("xml",$t),Ee.registerLanguage("bash",bc);const{message:e}=u.toRefs(o),{options:t}=Me(),r=u.ref(null),s=u.ref({}),i=u.computed(()=>e.value.text||"&lt;Empty response&gt;"),a=u.computed(()=>({"chat-message-from-user":e.value.sender==="user","chat-message-from-bot":e.value.sender==="bot","chat-message-transparent":e.value.transparent===!0})),l=b=>{b.use(wc,{attrs:{target:"_blank",rel:"noopener"}})},p=()=>{var b;(b=r.value)!=null&&b.scrollIntoView&&r.value.scrollIntoView({block:"start"})},f={highlight(b,E){if(E&&Ee.getLanguage(E))try{return Ee.highlight(b,{language:E}).value}catch{}return""}},g={...(t==null?void 0:t.messageComponents)??{}};n({scrollToView:p});const h=async b=>await new Promise((E,v)=>{const k=new FileReader;k.onload=()=>E(k.result),k.onerror=v,k.readAsDataURL(b)});return u.onMounted(async()=>{if(e.value.files)for(const b of e.value.files)try{const E=await h(b);s.value[b.name]=E}catch(E){console.error("Error reading file:",E)}}),(b,E)=>(u.openBlock(),u.createElementBlock("div",{ref_key:"messageContainer",ref:r,class:u.normalizeClass(["chat-message",a.value])},[b.$slots.beforeMessage?(u.openBlock(),u.createElementBlock("div",Fi,[u.renderSlot(b.$slots,"beforeMessage",u.normalizeProps(u.guardReactiveProps({message:u.unref(e)})))])):u.createCommentVNode("",!0),u.renderSlot(b.$slots,"default",{},()=>[u.unref(e).type==="component"&&g[u.unref(e).key]?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(g[u.unref(e).key]),u.normalizeProps(u.mergeProps({key:0},u.unref(e).arguments)),null,16)):(u.openBlock(),u.createBlock(u.unref(Oi),{key:1,class:"chat-message-markdown",source:i.value,options:f,plugins:[l]},null,8,["source","plugins"])),(u.unref(e).files??[]).length>0?(u.openBlock(),u.createElementBlock("div",Pi,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(e).files??[],v=>(u.openBlock(),u.createElementBlock("div",{key:v.name,class:"chat-message-file"},[u.createVNode(Ht,{file:v,"is-removable":!1,"is-previewable":!0},null,8,["file"])]))),128))])):u.createCommentVNode("",!0)])],2))}}),zi=u.defineComponent({__name:"MessageTyping",props:{animation:{default:"bouncing"}},setup(c){const n=c,o={id:"typing",text:"",sender:"bot"},e=u.ref(),t=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${n.animation}`]:!0}));return u.onMounted(()=>{var r;(r=e.value)==null||r.scrollToView()}),(r,s)=>(u.openBlock(),u.createBlock(u.unref(xt),{ref_key:"messageContainer",ref:e,class:u.normalizeClass(t.value),message:o,"data-test-id":"chat-message-typing"},{default:u.withCtx(()=>s[0]||(s[0]=[u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1)])),_:1},8,["class"]))}}),Ui={key:0,class:"empty-container"},$i={class:"empty","data-test-id":"chat-messages-empty"},Vi={key:1,class:"chat-messages-list"},Hi=u.defineComponent({__name:"MessagesList",props:{messages:{},emptyText:{}},setup(c){const n=rn(),o=u.ref([]),{initialMessages:e,waitingForResponse:t}=n;return u.watch(()=>o.value.length,()=>{const r=o.value[o.value.length-1];r&&r.scrollToView()}),(r,s)=>{const i=u.resolveComponent("N8nIcon"),a=u.resolveComponent("N8nText");return r.emptyText&&u.unref(e).length===0&&r.messages.length===0?(u.openBlock(),u.createElementBlock("div",Ui,[u.createElementVNode("div",$i,[u.createVNode(i,{icon:"comment",size:"large",class:"emptyIcon"}),u.createVNode(a,{tag:"p",size:"medium",color:"text-base"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.emptyText),1)]),_:1})])])):(u.openBlock(),u.createElementBlock("div",Vi,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(e),l=>(u.openBlock(),u.createBlock(xt,{key:l.id,message:l},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.messages,l=>(u.openBlock(),u.createBlock(xt,{key:l.id,ref_for:!0,ref_key:"messageComponents",ref:o,message:l},{beforeMessage:u.withCtx(({message:p})=>[u.renderSlot(r.$slots,"beforeMessage",u.mergeProps({ref_for:!0},{message:p}))]),_:2},1032,["message"]))),128)),u.unref(t)?(u.openBlock(),u.createBlock(zi,{key:0})):u.createCommentVNode("",!0)]))}}}),Gi={class:"chat-heading"},ji=["title"],Zi={key:0},To=u.defineComponent({__name:"Chat",setup(c){const{t:n}=Ue(),o=rn(),{messages:e,currentSessionId:t}=o,{options:r}=Me(),s=u.computed(()=>r.mode==="window"&&r.showWindowCloseButton);async function i(){o.startNewSession&&(o.startNewSession(),u.nextTick(()=>{pe.emit("scrollToBottom")}))}async function a(){o.loadPreviousSession&&(await o.loadPreviousSession(),u.nextTick(()=>{pe.emit("scrollToBottom")}))}function l(){pe.emit("close")}return u.onMounted(async()=>{await a(),!r.showWelcomeScreen&&!t.value&&await i()}),(p,f)=>(u.openBlock(),u.createBlock(mc,{class:"chat-wrapper"},{header:u.withCtx(()=>[u.createElementVNode("div",Gi,[u.createElementVNode("h1",null,u.toDisplayString(u.unref(n)("title")),1),s.value?(u.openBlock(),u.createElementBlock("button",{key:0,class:"chat-close-button",title:u.unref(n)("closeButtonTooltip"),onClick:l},[u.createVNode(u.unref(_s),{height:"18",width:"18"})],8,ji)):u.createCommentVNode("",!0)]),u.unref(n)("subtitle")?(u.openBlock(),u.createElementBlock("p",Zi,u.toDisplayString(u.unref(n)("subtitle")),1)):u.createCommentVNode("",!0)]),footer:u.withCtx(()=>[u.unref(t)?(u.openBlock(),u.createBlock(pc,{key:0})):(u.openBlock(),u.createBlock(Ss,{key:1}))]),default:u.withCtx(()=>[!u.unref(t)&&u.unref(r).showWelcomeScreen?(u.openBlock(),u.createBlock(Es,{key:0,"onClick:button":i})):(u.openBlock(),u.createBlock(Hi,{key:1,messages:u.unref(e)},null,8,["messages"]))]),_:1}))}}),Ki={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Wi(c,n){return u.openBlock(),u.createElementBlock("svg",Ki,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8"},null,-1)]))}const Yi={name:"mdi-chat",render:Wi},Ji={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Xi(c,n){return u.openBlock(),u.createElementBlock("svg",Ji,n[0]||(n[0]=[u.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"},null,-1)]))}const Qi={name:"mdi-chevron-down",render:Xi},ea={class:"chat-window-wrapper"},na={class:"chat-window"},ta=u.defineComponent({__name:"ChatWindow",setup(c){const n=u.ref(!1);function o(){n.value=!n.value,n.value&&u.nextTick(()=>{pe.emit("scrollToBottom")})}return(e,t)=>(u.openBlock(),u.createElementBlock("div",ea,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",na,[u.createVNode(To)],512),[[u.vShow,n.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:o},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[n.value?(u.openBlock(),u.createBlock(u.unref(Qi),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(Yi),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),ra=u.defineComponent({__name:"App",props:{},setup(c){const{options:n}=Me(),o=u.computed(()=>n.mode==="fullscreen");return u.onMounted(()=>{Ee.registerLanguage("xml",$t),Ee.registerLanguage("javascript",Ut)}),(e,t)=>o.value?(u.openBlock(),u.createBlock(u.unref(To),{key:0,class:"n8n-chat"})):(u.openBlock(),u.createBlock(u.unref(ta),{key:1,class:"n8n-chat"}))}});function oa(c){var t,r;const n={...Le,...c,webhookConfig:{...Le.webhookConfig,...c==null?void 0:c.webhookConfig},i18n:{...Le.i18n,...c==null?void 0:c.i18n,en:{...(t=Le.i18n)==null?void 0:t.en,...(r=c==null?void 0:c.i18n)==null?void 0:r.en}},theme:{...Le.theme,...c==null?void 0:c.theme}},o=n.target??Zo;typeof o=="string"&&rs(o);const e=u.createApp(ra);return e.use(os,n),e.mount(o),e}Ae.createChat=oa,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
487
+ `},o.text=function(a,i){return r(a[i].content)},o.html_block=function(a,i){return a[i].content},o.html_inline=function(a,i){return a[i].content};function s(){this.rules=e({},o)}return s.prototype.renderAttrs=function(i){var c,l,f;if(!i.attrs)return"";for(f="",c=0,l=i.attrs.length;c<l;c++)f+=" "+r(i.attrs[c][0])+'="'+r(i.attrs[c][1])+'"';return f},s.prototype.renderToken=function(i,c,l){var f,d="",u=!1,g=i[c];return g.hidden?"":(g.block&&g.nesting!==-1&&c&&i[c-1].hidden&&(d+=`
488
+ `),d+=(g.nesting===-1?"</":"<")+g.tag,d+=this.renderAttrs(g),g.nesting===0&&l.xhtmlOut&&(d+=" /"),g.block&&(u=!0,g.nesting===1&&c+1<i.length&&(f=i[c+1],(f.type==="inline"||f.hidden||f.nesting===-1&&f.tag===g.tag)&&(u=!1))),d+=u?`>
489
+ `:">",d)},s.prototype.renderInline=function(a,i,c){for(var l,f="",d=this.rules,u=0,g=a.length;u<g;u++)l=a[u].type,typeof d[l]<"u"?f+=d[l](a,u,i,c,this):f+=this.renderToken(a,u,i);return f},s.prototype.renderInlineAsText=function(a,i,c){for(var l="",f=0,d=a.length;f<d;f++)a[f].type==="text"?l+=a[f].content:a[f].type==="image"?l+=this.renderInlineAsText(a[f].children,i,c):a[f].type==="softbreak"&&(l+=`
490
+ `);return l},s.prototype.render=function(a,i,c){var l,f,d,u="",g=this.rules;for(l=0,f=a.length;l<f;l++)d=a[l].type,d==="inline"?u+=this.renderInline(a[l].children,i,c):typeof g[d]<"u"?u+=g[d](a,l,i,c,this):u+=this.renderToken(a,l,i,c);return u},Cs=s,Cs}var Es,tp;function xs(){if(tp)return Es;tp=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var r=0;r<this.__rules__.length;r++)if(this.__rules__[r].name===t)return r;return-1},e.prototype.__compile__=function(){var t=this,r=[""];t.__rules__.forEach(function(o){o.enabled&&o.alt.forEach(function(s){r.indexOf(s)<0&&r.push(s)})}),t.__cache__={},r.forEach(function(o){t.__cache__[o]=[],t.__rules__.forEach(function(s){s.enabled&&(o&&s.alt.indexOf(o)<0||t.__cache__[o].push(s.fn))})})},e.prototype.at=function(t,r,o){var s=this.__find__(t),a=o||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__[s].fn=r,this.__rules__[s].alt=a.alt||[],this.__cache__=null},e.prototype.before=function(t,r,o,s){var a=this.__find__(t),i=s||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a,0,{name:r,enabled:!0,fn:o,alt:i.alt||[]}),this.__cache__=null},e.prototype.after=function(t,r,o,s){var a=this.__find__(t),i=s||{};if(a===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(a+1,0,{name:r,enabled:!0,fn:o,alt:i.alt||[]}),this.__cache__=null},e.prototype.push=function(t,r,o){var s=o||{};this.__rules__.push({name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,r){Array.isArray(t)||(t=[t]);var o=[];return t.forEach(function(s){var a=this.__find__(s);if(a<0){if(r)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[a].enabled=!0,o.push(s)},this),this.__cache__=null,o},e.prototype.enableOnly=function(t,r){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(o){o.enabled=!1}),this.enable(t,r)},e.prototype.disable=function(t,r){Array.isArray(t)||(t=[t]);var o=[];return t.forEach(function(s){var a=this.__find__(s);if(a<0){if(r)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[a].enabled=!1,o.push(s)},this),this.__cache__=null,o},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},Es=e,Es}var Ss,np;function dN(){if(np)return Ss;np=1;var e=/\r\n?|\n/g,t=/\0/g;return Ss=function(o){var s;s=o.src.replace(e,`
491
+ `),s=s.replace(t,"�"),o.src=s},Ss}var As,rp;function pN(){return rp||(rp=1,As=function(t){var r;t.inlineMode?(r=new t.Token("inline","",0),r.content=t.src,r.map=[0,1],r.children=[],t.tokens.push(r)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}),As}var Ts,op;function hN(){return op||(op=1,Ts=function(t){var r=t.tokens,o,s,a;for(s=0,a=r.length;s<a;s++)o=r[s],o.type==="inline"&&t.md.inline.parse(o.content,t.md,t.env,o.children)}),Ts}var Ns,ap;function mN(){if(ap)return Ns;ap=1;var e=he().arrayReplaceAt;function t(o){return/^<a[>\s]/i.test(o)}function r(o){return/^<\/a\s*>/i.test(o)}return Ns=function(s){var a,i,c,l,f,d,u,g,p,_,m,b,h,y,w,k,E=s.tokens,C;if(s.md.options.linkify){for(i=0,c=E.length;i<c;i++)if(!(E[i].type!=="inline"||!s.md.linkify.pretest(E[i].content)))for(l=E[i].children,h=0,a=l.length-1;a>=0;a--){if(d=l[a],d.type==="link_close"){for(a--;l[a].level!==d.level&&l[a].type!=="link_open";)a--;continue}if(d.type==="html_inline"&&(t(d.content)&&h>0&&h--,r(d.content)&&h++),!(h>0)&&d.type==="text"&&s.md.linkify.test(d.content)){for(p=d.content,C=s.md.linkify.match(p),u=[],b=d.level,m=0,C.length>0&&C[0].index===0&&a>0&&l[a-1].type==="text_special"&&(C=C.slice(1)),g=0;g<C.length;g++)y=C[g].url,w=s.md.normalizeLink(y),s.md.validateLink(w)&&(k=C[g].text,C[g].schema?C[g].schema==="mailto:"&&!/^mailto:/i.test(k)?k=s.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=s.md.normalizeLinkText(k):k=s.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,""),_=C[g].index,_>m&&(f=new s.Token("text","",0),f.content=p.slice(m,_),f.level=b,u.push(f)),f=new s.Token("link_open","a",1),f.attrs=[["href",w]],f.level=b++,f.markup="linkify",f.info="auto",u.push(f),f=new s.Token("text","",0),f.content=k,f.level=b,u.push(f),f=new s.Token("link_close","a",-1),f.level=--b,f.markup="linkify",f.info="auto",u.push(f),m=C[g].lastIndex);m<p.length&&(f=new s.Token("text","",0),f.content=p.slice(m),f.level=b,u.push(f)),E[i].children=l=e(l,a,u)}}}},Ns}var Bs,sp;function gN(){if(sp)return Bs;sp=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r)\)/i,r=/\((c|tm|r)\)/ig,o={c:"©",r:"®",tm:"™"};function s(c,l){return o[l.toLowerCase()]}function a(c){var l,f,d=0;for(l=c.length-1;l>=0;l--)f=c[l],f.type==="text"&&!d&&(f.content=f.content.replace(r,s)),f.type==="link_open"&&f.info==="auto"&&d--,f.type==="link_close"&&f.info==="auto"&&d++}function i(c){var l,f,d=0;for(l=c.length-1;l>=0;l--)f=c[l],f.type==="text"&&!d&&e.test(f.content)&&(f.content=f.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–")),f.type==="link_open"&&f.info==="auto"&&d--,f.type==="link_close"&&f.info==="auto"&&d++}return Bs=function(l){var f;if(l.md.options.typographer)for(f=l.tokens.length-1;f>=0;f--)l.tokens[f].type==="inline"&&(t.test(l.tokens[f].content)&&a(l.tokens[f].children),e.test(l.tokens[f].content)&&i(l.tokens[f].children))},Bs}var Is,ip;function _N(){if(ip)return Is;ip=1;var e=he().isWhiteSpace,t=he().isPunctChar,r=he().isMdAsciiPunct,o=/['"]/,s=/['"]/g,a="’";function i(l,f,d){return l.slice(0,f)+d+l.slice(f+1)}function c(l,f){var d,u,g,p,_,m,b,h,y,w,k,E,C,x,S,N,B,$,L,G,I;for(L=[],d=0;d<l.length;d++){for(u=l[d],b=l[d].level,B=L.length-1;B>=0&&!(L[B].level<=b);B--);if(L.length=B+1,u.type==="text"){g=u.content,_=0,m=g.length;e:for(;_<m&&(s.lastIndex=_,p=s.exec(g),!!p);){if(S=N=!0,_=p.index+1,$=p[0]==="'",y=32,p.index-1>=0)y=g.charCodeAt(p.index-1);else for(B=d-1;B>=0&&!(l[B].type==="softbreak"||l[B].type==="hardbreak");B--)if(l[B].content){y=l[B].content.charCodeAt(l[B].content.length-1);break}if(w=32,_<m)w=g.charCodeAt(_);else for(B=d+1;B<l.length&&!(l[B].type==="softbreak"||l[B].type==="hardbreak");B++)if(l[B].content){w=l[B].content.charCodeAt(0);break}if(k=r(y)||t(String.fromCharCode(y)),E=r(w)||t(String.fromCharCode(w)),C=e(y),x=e(w),x?S=!1:E&&(C||k||(S=!1)),C?N=!1:k&&(x||E||(N=!1)),w===34&&p[0]==='"'&&y>=48&&y<=57&&(N=S=!1),S&&N&&(S=k,N=E),!S&&!N){$&&(u.content=i(u.content,p.index,a));continue}if(N){for(B=L.length-1;B>=0&&(h=L[B],!(L[B].level<b));B--)if(h.single===$&&L[B].level===b){h=L[B],$?(G=f.md.options.quotes[2],I=f.md.options.quotes[3]):(G=f.md.options.quotes[0],I=f.md.options.quotes[1]),u.content=i(u.content,p.index,I),l[h.token].content=i(l[h.token].content,h.pos,G),_+=I.length-1,h.token===d&&(_+=G.length-1),g=u.content,m=g.length,L.length=B;continue e}}S?L.push({token:d,pos:p.index,single:$,level:b}):N&&$&&(u.content=i(u.content,p.index,a))}}}}return Is=function(f){var d;if(f.md.options.typographer)for(d=f.tokens.length-1;d>=0;d--)f.tokens[d].type!=="inline"||!o.test(f.tokens[d].content)||c(f.tokens[d].children,f)},Is}var $s,cp;function bN(){return cp||(cp=1,$s=function(t){var r,o,s,a,i,c,l=t.tokens;for(r=0,o=l.length;r<o;r++)if(l[r].type==="inline"){for(s=l[r].children,i=s.length,a=0;a<i;a++)s[a].type==="text_special"&&(s[a].type="text");for(a=c=0;a<i;a++)s[a].type==="text"&&a+1<i&&s[a+1].type==="text"?s[a+1].content=s[a].content+s[a+1].content:(a!==c&&(s[c]=s[a]),c++);a!==c&&(s.length=c)}}),$s}var Rs,lp;function Os(){if(lp)return Rs;lp=1;function e(t,r,o){this.type=t,this.tag=r,this.attrs=null,this.map=null,this.nesting=o,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(r){var o,s,a;if(!this.attrs)return-1;for(o=this.attrs,s=0,a=o.length;s<a;s++)if(o[s][0]===r)return s;return-1},e.prototype.attrPush=function(r){this.attrs?this.attrs.push(r):this.attrs=[r]},e.prototype.attrSet=function(r,o){var s=this.attrIndex(r),a=[r,o];s<0?this.attrPush(a):this.attrs[s]=a},e.prototype.attrGet=function(r){var o=this.attrIndex(r),s=null;return o>=0&&(s=this.attrs[o][1]),s},e.prototype.attrJoin=function(r,o){var s=this.attrIndex(r);s<0?this.attrPush([r,o]):this.attrs[s][1]=this.attrs[s][1]+" "+o},Rs=e,Rs}var Ms,up;function yN(){if(up)return Ms;up=1;var e=Os();function t(r,o,s){this.src=r,this.env=s,this.tokens=[],this.inlineMode=!1,this.md=o}return t.prototype.Token=e,Ms=t,Ms}var zs,fp;function wN(){if(fp)return zs;fp=1;var e=xs(),t=[["normalize",dN()],["block",pN()],["inline",hN()],["linkify",mN()],["replacements",gN()],["smartquotes",_N()],["text_join",bN()]];function r(){this.ruler=new e;for(var o=0;o<t.length;o++)this.ruler.push(t[o][0],t[o][1])}return r.prototype.process=function(o){var s,a,i;for(i=this.ruler.getRules(""),s=0,a=i.length;s<a;s++)i[s](o)},r.prototype.State=yN(),zs=r,zs}var Ls,dp;function kN(){if(dp)return Ls;dp=1;var e=he().isSpace;function t(o,s){var a=o.bMarks[s]+o.tShift[s],i=o.eMarks[s];return o.src.slice(a,i)}function r(o){var s=[],a=0,i=o.length,c,l=!1,f=0,d="";for(c=o.charCodeAt(a);a<i;)c===124&&(l?(d+=o.substring(f,a-1),f=a):(s.push(d+o.substring(f,a)),d="",f=a+1)),l=c===92,a++,c=o.charCodeAt(a);return s.push(d+o.substring(f)),s}return Ls=function(s,a,i,c){var l,f,d,u,g,p,_,m,b,h,y,w,k,E,C,x,S,N;if(a+2>i||(p=a+1,s.sCount[p]<s.blkIndent)||s.sCount[p]-s.blkIndent>=4||(d=s.bMarks[p]+s.tShift[p],d>=s.eMarks[p])||(S=s.src.charCodeAt(d++),S!==124&&S!==45&&S!==58)||d>=s.eMarks[p]||(N=s.src.charCodeAt(d++),N!==124&&N!==45&&N!==58&&!e(N))||S===45&&e(N))return!1;for(;d<s.eMarks[p];){if(l=s.src.charCodeAt(d),l!==124&&l!==45&&l!==58&&!e(l))return!1;d++}for(f=t(s,a+1),_=f.split("|"),h=[],u=0;u<_.length;u++){if(y=_[u].trim(),!y){if(u===0||u===_.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?h.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?h.push("left"):h.push("")}if(f=t(s,a).trim(),f.indexOf("|")===-1||s.sCount[a]-s.blkIndent>=4||(_=r(f),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),m=_.length,m===0||m!==h.length))return!1;if(c)return!0;for(E=s.parentType,s.parentType="table",x=s.md.block.ruler.getRules("blockquote"),b=s.push("table_open","table",1),b.map=w=[a,0],b=s.push("thead_open","thead",1),b.map=[a,a+1],b=s.push("tr_open","tr",1),b.map=[a,a+1],u=0;u<_.length;u++)b=s.push("th_open","th",1),h[u]&&(b.attrs=[["style","text-align:"+h[u]]]),b=s.push("inline","",0),b.content=_[u].trim(),b.children=[],b=s.push("th_close","th",-1);for(b=s.push("tr_close","tr",-1),b=s.push("thead_close","thead",-1),p=a+2;p<i&&!(s.sCount[p]<s.blkIndent);p++){for(C=!1,u=0,g=x.length;u<g;u++)if(x[u](s,p,i,!0)){C=!0;break}if(C||(f=t(s,p).trim(),!f)||s.sCount[p]-s.blkIndent>=4)break;for(_=r(f),_.length&&_[0]===""&&_.shift(),_.length&&_[_.length-1]===""&&_.pop(),p===a+2&&(b=s.push("tbody_open","tbody",1),b.map=k=[a+2,0]),b=s.push("tr_open","tr",1),b.map=[p,p+1],u=0;u<m;u++)b=s.push("td_open","td",1),h[u]&&(b.attrs=[["style","text-align:"+h[u]]]),b=s.push("inline","",0),b.content=_[u]?_[u].trim():"",b.children=[],b=s.push("td_close","td",-1);b=s.push("tr_close","tr",-1)}return k&&(b=s.push("tbody_close","tbody",-1),k[1]=p),b=s.push("table_close","table",-1),w[1]=p,s.parentType=E,s.line=p,!0},Ls}var Ds,pp;function vN(){return pp||(pp=1,Ds=function(t,r,o){var s,a,i;if(t.sCount[r]-t.blkIndent<4)return!1;for(a=s=r+1;s<o;){if(t.isEmpty(s)){s++;continue}if(t.sCount[s]-t.blkIndent>=4){s++,a=s;continue}break}return t.line=a,i=t.push("code_block","code",0),i.content=t.getLines(r,a,4+t.blkIndent,!1)+`
492
+ `,i.map=[r,t.line],!0}),Ds}var qs,hp;function CN(){return hp||(hp=1,qs=function(t,r,o,s){var a,i,c,l,f,d,u,g=!1,p=t.bMarks[r]+t.tShift[r],_=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||p+3>_||(a=t.src.charCodeAt(p),a!==126&&a!==96)||(f=p,p=t.skipChars(p,a),i=p-f,i<3)||(u=t.src.slice(f,p),c=t.src.slice(p,_),a===96&&c.indexOf(String.fromCharCode(a))>=0))return!1;if(s)return!0;for(l=r;l++,!(l>=o||(p=f=t.bMarks[l]+t.tShift[l],_=t.eMarks[l],p<_&&t.sCount[l]<t.blkIndent));)if(t.src.charCodeAt(p)===a&&!(t.sCount[l]-t.blkIndent>=4)&&(p=t.skipChars(p,a),!(p-f<i)&&(p=t.skipSpaces(p),!(p<_)))){g=!0;break}return i=t.sCount[r],t.line=l+(g?1:0),d=t.push("fence","code",0),d.info=c,d.content=t.getLines(r+1,l,i,!0),d.markup=u,d.map=[r,t.line],!0}),qs}var Ps,mp;function EN(){if(mp)return Ps;mp=1;var e=he().isSpace;return Ps=function(r,o,s,a){var i,c,l,f,d,u,g,p,_,m,b,h,y,w,k,E,C,x,S,N,B=r.lineMax,$=r.bMarks[o]+r.tShift[o],L=r.eMarks[o];if(r.sCount[o]-r.blkIndent>=4||r.src.charCodeAt($)!==62)return!1;if(a)return!0;for(m=[],b=[],w=[],k=[],x=r.md.block.ruler.getRules("blockquote"),y=r.parentType,r.parentType="blockquote",p=o;p<s&&(N=r.sCount[p]<r.blkIndent,$=r.bMarks[p]+r.tShift[p],L=r.eMarks[p],!($>=L));p++){if(r.src.charCodeAt($++)===62&&!N){for(f=r.sCount[p]+1,r.src.charCodeAt($)===32?($++,f++,i=!1,E=!0):r.src.charCodeAt($)===9?(E=!0,(r.bsCount[p]+f)%4===3?($++,f++,i=!1):i=!0):E=!1,_=f,m.push(r.bMarks[p]),r.bMarks[p]=$;$<L&&(c=r.src.charCodeAt($),e(c));){c===9?_+=4-(_+r.bsCount[p]+(i?1:0))%4:_++;$++}u=$>=L,b.push(r.bsCount[p]),r.bsCount[p]=r.sCount[p]+1+(E?1:0),w.push(r.sCount[p]),r.sCount[p]=_-f,k.push(r.tShift[p]),r.tShift[p]=$-r.bMarks[p];continue}if(u)break;for(C=!1,l=0,d=x.length;l<d;l++)if(x[l](r,p,s,!0)){C=!0;break}if(C){r.lineMax=p,r.blkIndent!==0&&(m.push(r.bMarks[p]),b.push(r.bsCount[p]),k.push(r.tShift[p]),w.push(r.sCount[p]),r.sCount[p]-=r.blkIndent);break}m.push(r.bMarks[p]),b.push(r.bsCount[p]),k.push(r.tShift[p]),w.push(r.sCount[p]),r.sCount[p]=-1}for(h=r.blkIndent,r.blkIndent=0,S=r.push("blockquote_open","blockquote",1),S.markup=">",S.map=g=[o,0],r.md.block.tokenize(r,o,p),S=r.push("blockquote_close","blockquote",-1),S.markup=">",r.lineMax=B,r.parentType=y,g[1]=r.line,l=0;l<k.length;l++)r.bMarks[l+o]=m[l],r.tShift[l+o]=k[l],r.sCount[l+o]=w[l],r.bsCount[l+o]=b[l];return r.blkIndent=h,!0},Ps}var Fs,gp;function xN(){if(gp)return Fs;gp=1;var e=he().isSpace;return Fs=function(r,o,s,a){var i,c,l,f,d=r.bMarks[o]+r.tShift[o],u=r.eMarks[o];if(r.sCount[o]-r.blkIndent>=4||(i=r.src.charCodeAt(d++),i!==42&&i!==45&&i!==95))return!1;for(c=1;d<u;){if(l=r.src.charCodeAt(d++),l!==i&&!e(l))return!1;l===i&&c++}return c<3?!1:(a||(r.line=o+1,f=r.push("hr","hr",0),f.map=[o,r.line],f.markup=Array(c+1).join(String.fromCharCode(i))),!0)},Fs}var Vs,_p;function SN(){if(_p)return Vs;_p=1;var e=he().isSpace;function t(s,a){var i,c,l,f;return c=s.bMarks[a]+s.tShift[a],l=s.eMarks[a],i=s.src.charCodeAt(c++),i!==42&&i!==45&&i!==43||c<l&&(f=s.src.charCodeAt(c),!e(f))?-1:c}function r(s,a){var i,c=s.bMarks[a]+s.tShift[a],l=c,f=s.eMarks[a];if(l+1>=f||(i=s.src.charCodeAt(l++),i<48||i>57))return-1;for(;;){if(l>=f)return-1;if(i=s.src.charCodeAt(l++),i>=48&&i<=57){if(l-c>=10)return-1;continue}if(i===41||i===46)break;return-1}return l<f&&(i=s.src.charCodeAt(l),!e(i))?-1:l}function o(s,a){var i,c,l=s.level+2;for(i=a+2,c=s.tokens.length-2;i<c;i++)s.tokens[i].level===l&&s.tokens[i].type==="paragraph_open"&&(s.tokens[i+2].hidden=!0,s.tokens[i].hidden=!0,i+=2)}return Vs=function(a,i,c,l){var f,d,u,g,p,_,m,b,h,y,w,k,E,C,x,S,N,B,$,L,G,I,D,R,O,z,q,P=i,ee=!1,Y=!0;if(a.sCount[P]-a.blkIndent>=4||a.listIndent>=0&&a.sCount[P]-a.listIndent>=4&&a.sCount[P]<a.blkIndent)return!1;if(l&&a.parentType==="paragraph"&&a.sCount[P]>=a.blkIndent&&(ee=!0),(I=r(a,P))>=0){if(m=!0,R=a.bMarks[P]+a.tShift[P],E=Number(a.src.slice(R,I-1)),ee&&E!==1)return!1}else if((I=t(a,P))>=0)m=!1;else return!1;if(ee&&a.skipSpaces(I)>=a.eMarks[P])return!1;if(l)return!0;for(k=a.src.charCodeAt(I-1),w=a.tokens.length,m?(q=a.push("ordered_list_open","ol",1),E!==1&&(q.attrs=[["start",E]])):q=a.push("bullet_list_open","ul",1),q.map=y=[P,0],q.markup=String.fromCharCode(k),D=!1,z=a.md.block.ruler.getRules("list"),N=a.parentType,a.parentType="list";P<c;){for(G=I,C=a.eMarks[P],_=x=a.sCount[P]+I-(a.bMarks[P]+a.tShift[P]);G<C;){if(f=a.src.charCodeAt(G),f===9)x+=4-(x+a.bsCount[P])%4;else if(f===32)x++;else break;G++}if(d=G,d>=C?p=1:p=x-_,p>4&&(p=1),g=_+p,q=a.push("list_item_open","li",1),q.markup=String.fromCharCode(k),q.map=b=[P,0],m&&(q.info=a.src.slice(R,I-1)),L=a.tight,$=a.tShift[P],B=a.sCount[P],S=a.listIndent,a.listIndent=a.blkIndent,a.blkIndent=g,a.tight=!0,a.tShift[P]=d-a.bMarks[P],a.sCount[P]=x,d>=C&&a.isEmpty(P+1)?a.line=Math.min(a.line+2,c):a.md.block.tokenize(a,P,c,!0),(!a.tight||D)&&(Y=!1),D=a.line-P>1&&a.isEmpty(a.line-1),a.blkIndent=a.listIndent,a.listIndent=S,a.tShift[P]=$,a.sCount[P]=B,a.tight=L,q=a.push("list_item_close","li",-1),q.markup=String.fromCharCode(k),P=a.line,b[1]=P,P>=c||a.sCount[P]<a.blkIndent||a.sCount[P]-a.blkIndent>=4)break;for(O=!1,u=0,h=z.length;u<h;u++)if(z[u](a,P,c,!0)){O=!0;break}if(O)break;if(m){if(I=r(a,P),I<0)break;R=a.bMarks[P]+a.tShift[P]}else if(I=t(a,P),I<0)break;if(k!==a.src.charCodeAt(I-1))break}return m?q=a.push("ordered_list_close","ol",-1):q=a.push("bullet_list_close","ul",-1),q.markup=String.fromCharCode(k),y[1]=P,a.line=P,a.parentType=N,Y&&o(a,w),!0},Vs}var js,bp;function AN(){if(bp)return js;bp=1;var e=he().normalizeReference,t=he().isSpace;return js=function(o,s,a,i){var c,l,f,d,u,g,p,_,m,b,h,y,w,k,E,C,x=0,S=o.bMarks[s]+o.tShift[s],N=o.eMarks[s],B=s+1;if(o.sCount[s]-o.blkIndent>=4||o.src.charCodeAt(S)!==91)return!1;for(;++S<N;)if(o.src.charCodeAt(S)===93&&o.src.charCodeAt(S-1)!==92){if(S+1===N||o.src.charCodeAt(S+1)!==58)return!1;break}for(d=o.lineMax,E=o.md.block.ruler.getRules("reference"),b=o.parentType,o.parentType="reference";B<d&&!o.isEmpty(B);B++)if(!(o.sCount[B]-o.blkIndent>3)&&!(o.sCount[B]<0)){for(k=!1,g=0,p=E.length;g<p;g++)if(E[g](o,B,d,!0)){k=!0;break}if(k)break}for(w=o.getLines(s,B,o.blkIndent,!1).trim(),N=w.length,S=1;S<N;S++){if(c=w.charCodeAt(S),c===91)return!1;if(c===93){m=S;break}else c===10?x++:c===92&&(S++,S<N&&w.charCodeAt(S)===10&&x++)}if(m<0||w.charCodeAt(m+1)!==58)return!1;for(S=m+2;S<N;S++)if(c=w.charCodeAt(S),c===10)x++;else if(!t(c))break;if(h=o.md.helpers.parseLinkDestination(w,S,N),!h.ok||(u=o.md.normalizeLink(h.str),!o.md.validateLink(u)))return!1;for(S=h.pos,x+=h.lines,l=S,f=x,y=S;S<N;S++)if(c=w.charCodeAt(S),c===10)x++;else if(!t(c))break;for(h=o.md.helpers.parseLinkTitle(w,S,N),S<N&&y!==S&&h.ok?(C=h.str,S=h.pos,x+=h.lines):(C="",S=l,x=f);S<N&&(c=w.charCodeAt(S),!!t(c));)S++;if(S<N&&w.charCodeAt(S)!==10&&C)for(C="",S=l,x=f;S<N&&(c=w.charCodeAt(S),!!t(c));)S++;return S<N&&w.charCodeAt(S)!==10||(_=e(w.slice(1,m)),!_)?!1:(i||(typeof o.env.references>"u"&&(o.env.references={}),typeof o.env.references[_]>"u"&&(o.env.references[_]={title:C,href:u}),o.parentType=b,o.line=s+x+1),!0)},js}var Hs,yp;function TN(){return yp||(yp=1,Hs=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),Hs}var ko={},wp;function kp(){if(wp)return ko;wp=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",r="'[^']*'",o='"[^"]*"',s="(?:"+t+"|"+r+"|"+o+")",a="(?:\\s+"+e+"(?:\\s*=\\s*"+s+")?)",i="<[A-Za-z][A-Za-z0-9\\-]*"+a+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",l="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",f="<[?][\\s\\S]*?[?]>",d="<![A-Z]+\\s+[^>]*>",u="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",g=new RegExp("^(?:"+i+"|"+c+"|"+l+"|"+f+"|"+d+"|"+u+")"),p=new RegExp("^(?:"+i+"|"+c+")");return ko.HTML_TAG_RE=g,ko.HTML_OPEN_CLOSE_TAG_RE=p,ko}var Us,vp;function NN(){if(vp)return Us;vp=1;var e=TN(),t=kp().HTML_OPEN_CLOSE_TAG_RE,r=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return Us=function(s,a,i,c){var l,f,d,u,g=s.bMarks[a]+s.tShift[a],p=s.eMarks[a];if(s.sCount[a]-s.blkIndent>=4||!s.md.options.html||s.src.charCodeAt(g)!==60)return!1;for(u=s.src.slice(g,p),l=0;l<r.length&&!r[l][0].test(u);l++);if(l===r.length)return!1;if(c)return r[l][2];if(f=a+1,!r[l][1].test(u)){for(;f<i&&!(s.sCount[f]<s.blkIndent);f++)if(g=s.bMarks[f]+s.tShift[f],p=s.eMarks[f],u=s.src.slice(g,p),r[l][1].test(u)){u.length!==0&&f++;break}}return s.line=f,d=s.push("html_block","",0),d.map=[a,f],d.content=s.getLines(a,f,s.blkIndent,!0),!0},Us}var Gs,Cp;function BN(){if(Cp)return Gs;Cp=1;var e=he().isSpace;return Gs=function(r,o,s,a){var i,c,l,f,d=r.bMarks[o]+r.tShift[o],u=r.eMarks[o];if(r.sCount[o]-r.blkIndent>=4||(i=r.src.charCodeAt(d),i!==35||d>=u))return!1;for(c=1,i=r.src.charCodeAt(++d);i===35&&d<u&&c<=6;)c++,i=r.src.charCodeAt(++d);return c>6||d<u&&!e(i)?!1:(a||(u=r.skipSpacesBack(u,d),l=r.skipCharsBack(u,35,d),l>d&&e(r.src.charCodeAt(l-1))&&(u=l),r.line=o+1,f=r.push("heading_open","h"+String(c),1),f.markup="########".slice(0,c),f.map=[o,r.line],f=r.push("inline","",0),f.content=r.src.slice(d,u).trim(),f.map=[o,r.line],f.children=[],f=r.push("heading_close","h"+String(c),-1),f.markup="########".slice(0,c)),!0)},Gs}var Ks,Ep;function IN(){return Ep||(Ep=1,Ks=function(t,r,o){var s,a,i,c,l,f,d,u,g,p=r+1,_,m=t.md.block.ruler.getRules("paragraph");if(t.sCount[r]-t.blkIndent>=4)return!1;for(_=t.parentType,t.parentType="paragraph";p<o&&!t.isEmpty(p);p++)if(!(t.sCount[p]-t.blkIndent>3)){if(t.sCount[p]>=t.blkIndent&&(f=t.bMarks[p]+t.tShift[p],d=t.eMarks[p],f<d&&(g=t.src.charCodeAt(f),(g===45||g===61)&&(f=t.skipChars(f,g),f=t.skipSpaces(f),f>=d)))){u=g===61?1:2;break}if(!(t.sCount[p]<0)){for(a=!1,i=0,c=m.length;i<c;i++)if(m[i](t,p,o,!0)){a=!0;break}if(a)break}}return u?(s=t.getLines(r,p,t.blkIndent,!1).trim(),t.line=p+1,l=t.push("heading_open","h"+String(u),1),l.markup=String.fromCharCode(g),l.map=[r,t.line],l=t.push("inline","",0),l.content=s,l.map=[r,t.line-1],l.children=[],l=t.push("heading_close","h"+String(u),-1),l.markup=String.fromCharCode(g),t.parentType=_,!0):!1}),Ks}var Ws,xp;function $N(){return xp||(xp=1,Ws=function(t,r,o){var s,a,i,c,l,f,d=r+1,u=t.md.block.ruler.getRules("paragraph");for(f=t.parentType,t.parentType="paragraph";d<o&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)&&!(t.sCount[d]<0)){for(a=!1,i=0,c=u.length;i<c;i++)if(u[i](t,d,o,!0)){a=!0;break}if(a)break}return s=t.getLines(r,d,t.blkIndent,!1).trim(),t.line=d,l=t.push("paragraph_open","p",1),l.map=[r,t.line],l=t.push("inline","",0),l.content=s,l.map=[r,t.line],l.children=[],l=t.push("paragraph_close","p",-1),t.parentType=f,!0}),Ws}var Zs,Sp;function RN(){if(Sp)return Zs;Sp=1;var e=Os(),t=he().isSpace;function r(o,s,a,i){var c,l,f,d,u,g,p,_;for(this.src=o,this.md=s,this.env=a,this.tokens=i,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,this.result="",l=this.src,_=!1,f=d=g=p=0,u=l.length;d<u;d++){if(c=l.charCodeAt(d),!_)if(t(c)){g++,c===9?p+=4-p%4:p++;continue}else _=!0;(c===10||d===u-1)&&(c!==10&&d++,this.bMarks.push(f),this.eMarks.push(d),this.tShift.push(g),this.sCount.push(p),this.bsCount.push(0),_=!1,g=0,p=0,f=d+1)}this.bMarks.push(l.length),this.eMarks.push(l.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return r.prototype.push=function(o,s,a){var i=new e(o,s,a);return i.block=!0,a<0&&this.level--,i.level=this.level,a>0&&this.level++,this.tokens.push(i),i},r.prototype.isEmpty=function(s){return this.bMarks[s]+this.tShift[s]>=this.eMarks[s]},r.prototype.skipEmptyLines=function(s){for(var a=this.lineMax;s<a&&!(this.bMarks[s]+this.tShift[s]<this.eMarks[s]);s++);return s},r.prototype.skipSpaces=function(s){for(var a,i=this.src.length;s<i&&(a=this.src.charCodeAt(s),!!t(a));s++);return s},r.prototype.skipSpacesBack=function(s,a){if(s<=a)return s;for(;s>a;)if(!t(this.src.charCodeAt(--s)))return s+1;return s},r.prototype.skipChars=function(s,a){for(var i=this.src.length;s<i&&this.src.charCodeAt(s)===a;s++);return s},r.prototype.skipCharsBack=function(s,a,i){if(s<=i)return s;for(;s>i;)if(a!==this.src.charCodeAt(--s))return s+1;return s},r.prototype.getLines=function(s,a,i,c){var l,f,d,u,g,p,_,m=s;if(s>=a)return"";for(p=new Array(a-s),l=0;m<a;m++,l++){for(f=0,_=u=this.bMarks[m],m+1<a||c?g=this.eMarks[m]+1:g=this.eMarks[m];u<g&&f<i;){if(d=this.src.charCodeAt(u),t(d))d===9?f+=4-(f+this.bsCount[m])%4:f++;else if(u-_<this.tShift[m])f++;else break;u++}f>i?p[l]=new Array(f-i+1).join(" ")+this.src.slice(u,g):p[l]=this.src.slice(u,g)}return p.join("")},r.prototype.Token=e,Zs=r,Zs}var Xs,Ap;function ON(){if(Ap)return Xs;Ap=1;var e=xs(),t=[["table",kN(),["paragraph","reference"]],["code",vN()],["fence",CN(),["paragraph","reference","blockquote","list"]],["blockquote",EN(),["paragraph","reference","blockquote","list"]],["hr",xN(),["paragraph","reference","blockquote","list"]],["list",SN(),["paragraph","reference","blockquote"]],["reference",AN()],["html_block",NN(),["paragraph","reference","blockquote"]],["heading",BN(),["paragraph","reference","blockquote"]],["lheading",IN()],["paragraph",$N()]];function r(){this.ruler=new e;for(var o=0;o<t.length;o++)this.ruler.push(t[o][0],t[o][1],{alt:(t[o][2]||[]).slice()})}return r.prototype.tokenize=function(o,s,a){for(var i,c,l,f=this.ruler.getRules(""),d=f.length,u=s,g=!1,p=o.md.options.maxNesting;u<a&&(o.line=u=o.skipEmptyLines(u),!(u>=a||o.sCount[u]<o.blkIndent));){if(o.level>=p){o.line=a;break}for(l=o.line,c=0;c<d;c++)if(i=f[c](o,u,a,!1),i){if(l>=o.line)throw new Error("block rule didn't increment state.line");break}if(!i)throw new Error("none of the block rules matched");o.tight=!g,o.isEmpty(o.line-1)&&(g=!0),u=o.line,u<a&&o.isEmpty(u)&&(g=!0,u++,o.line=u)}},r.prototype.parse=function(o,s,a,i){var c;o&&(c=new this.State(o,s,a,i),this.tokenize(c,c.line,c.lineMax))},r.prototype.State=RN(),Xs=r,Xs}var Ys,Tp;function MN(){if(Tp)return Ys;Tp=1;function e(t){switch(t){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}}return Ys=function(r,o){for(var s=r.pos;s<r.posMax&&!e(r.src.charCodeAt(s));)s++;return s===r.pos?!1:(o||(r.pending+=r.src.slice(r.pos,s)),r.pos=s,!0)},Ys}var Js,Np;function zN(){if(Np)return Js;Np=1;var e=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return Js=function(r,o){var s,a,i,c,l,f,d,u;return!r.md.options.linkify||r.linkLevel>0||(s=r.pos,a=r.posMax,s+3>a)||r.src.charCodeAt(s)!==58||r.src.charCodeAt(s+1)!==47||r.src.charCodeAt(s+2)!==47||(i=r.pending.match(e),!i)||(c=i[1],l=r.md.linkify.matchAtStart(r.src.slice(s-c.length)),!l)||(f=l.url,f.length<=c.length)||(f=f.replace(/\*+$/,""),d=r.md.normalizeLink(f),!r.md.validateLink(d))?!1:(o||(r.pending=r.pending.slice(0,-c.length),u=r.push("link_open","a",1),u.attrs=[["href",d]],u.markup="linkify",u.info="auto",u=r.push("text","",0),u.content=r.md.normalizeLinkText(f),u=r.push("link_close","a",-1),u.markup="linkify",u.info="auto"),r.pos+=f.length-c.length,!0)},Js}var Qs,Bp;function LN(){if(Bp)return Qs;Bp=1;var e=he().isSpace;return Qs=function(r,o){var s,a,i,c=r.pos;if(r.src.charCodeAt(c)!==10)return!1;if(s=r.pending.length-1,a=r.posMax,!o)if(s>=0&&r.pending.charCodeAt(s)===32)if(s>=1&&r.pending.charCodeAt(s-1)===32){for(i=s-1;i>=1&&r.pending.charCodeAt(i-1)===32;)i--;r.pending=r.pending.slice(0,i),r.push("hardbreak","br",0)}else r.pending=r.pending.slice(0,-1),r.push("softbreak","br",0);else r.push("softbreak","br",0);for(c++;c<a&&e(r.src.charCodeAt(c));)c++;return r.pos=c,!0},Qs}var ei,Ip;function DN(){if(Ip)return ei;Ip=1;for(var e=he().isSpace,t=[],r=0;r<256;r++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(o){t[o.charCodeAt(0)]=1}),ei=function(s,a){var i,c,l,f,d,u=s.pos,g=s.posMax;if(s.src.charCodeAt(u)!==92||(u++,u>=g))return!1;if(i=s.src.charCodeAt(u),i===10){for(a||s.push("hardbreak","br",0),u++;u<g&&(i=s.src.charCodeAt(u),!!e(i));)u++;return s.pos=u,!0}return f=s.src[u],i>=55296&&i<=56319&&u+1<g&&(c=s.src.charCodeAt(u+1),c>=56320&&c<=57343&&(f+=s.src[u+1],u++)),l="\\"+f,a||(d=s.push("text_special","",0),i<256&&t[i]!==0?d.content=f:d.content=l,d.markup=l,d.info="escape"),s.pos=u+1,!0},ei}var ti,$p;function qN(){return $p||($p=1,ti=function(t,r){var o,s,a,i,c,l,f,d,u=t.pos,g=t.src.charCodeAt(u);if(g!==96)return!1;for(o=u,u++,s=t.posMax;u<s&&t.src.charCodeAt(u)===96;)u++;if(a=t.src.slice(o,u),f=a.length,t.backticksScanned&&(t.backticks[f]||0)<=o)return r||(t.pending+=a),t.pos+=f,!0;for(l=u;(c=t.src.indexOf("`",l))!==-1;){for(l=c+1;l<s&&t.src.charCodeAt(l)===96;)l++;if(d=l-c,d===f)return r||(i=t.push("code_inline","code",0),i.markup=a,i.content=t.src.slice(u,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=l,!0;t.backticks[d]=c}return t.backticksScanned=!0,r||(t.pending+=a),t.pos+=f,!0}),ti}var vo={},Rp;function Op(){if(Rp)return vo;Rp=1,vo.tokenize=function(r,o){var s,a,i,c,l,f=r.pos,d=r.src.charCodeAt(f);if(o||d!==126||(a=r.scanDelims(r.pos,!0),c=a.length,l=String.fromCharCode(d),c<2))return!1;for(c%2&&(i=r.push("text","",0),i.content=l,c--),s=0;s<c;s+=2)i=r.push("text","",0),i.content=l+l,r.delimiters.push({marker:d,length:0,token:r.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return r.pos+=a.length,!0};function e(t,r){var o,s,a,i,c,l=[],f=r.length;for(o=0;o<f;o++)a=r[o],a.marker===126&&a.end!==-1&&(i=r[a.end],c=t.tokens[a.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[i.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[i.token-1].type==="text"&&t.tokens[i.token-1].content==="~"&&l.push(i.token-1));for(;l.length;){for(o=l.pop(),s=o+1;s<t.tokens.length&&t.tokens[s].type==="s_close";)s++;s--,o!==s&&(c=t.tokens[s],t.tokens[s]=t.tokens[o],t.tokens[o]=c)}}return vo.postProcess=function(r){var o,s=r.tokens_meta,a=r.tokens_meta.length;for(e(r,r.delimiters),o=0;o<a;o++)s[o]&&s[o].delimiters&&e(r,s[o].delimiters)},vo}var Co={},Mp;function zp(){if(Mp)return Co;Mp=1,Co.tokenize=function(r,o){var s,a,i,c=r.pos,l=r.src.charCodeAt(c);if(o||l!==95&&l!==42)return!1;for(a=r.scanDelims(r.pos,l===42),s=0;s<a.length;s++)i=r.push("text","",0),i.content=String.fromCharCode(l),r.delimiters.push({marker:l,length:a.length,token:r.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return r.pos+=a.length,!0};function e(t,r){var o,s,a,i,c,l,f=r.length;for(o=f-1;o>=0;o--)s=r[o],!(s.marker!==95&&s.marker!==42)&&s.end!==-1&&(a=r[s.end],l=o>0&&r[o-1].end===s.end+1&&r[o-1].marker===s.marker&&r[o-1].token===s.token-1&&r[s.end+1].token===a.token+1,c=String.fromCharCode(s.marker),i=t.tokens[s.token],i.type=l?"strong_open":"em_open",i.tag=l?"strong":"em",i.nesting=1,i.markup=l?c+c:c,i.content="",i=t.tokens[a.token],i.type=l?"strong_close":"em_close",i.tag=l?"strong":"em",i.nesting=-1,i.markup=l?c+c:c,i.content="",l&&(t.tokens[r[o-1].token].content="",t.tokens[r[s.end+1].token].content="",o--))}return Co.postProcess=function(r){var o,s=r.tokens_meta,a=r.tokens_meta.length;for(e(r,r.delimiters),o=0;o<a;o++)s[o]&&s[o].delimiters&&e(r,s[o].delimiters)},Co}var ni,Lp;function PN(){if(Lp)return ni;Lp=1;var e=he().normalizeReference,t=he().isSpace;return ni=function(o,s){var a,i,c,l,f,d,u,g,p,_="",m="",b=o.pos,h=o.posMax,y=o.pos,w=!0;if(o.src.charCodeAt(o.pos)!==91||(f=o.pos+1,l=o.md.helpers.parseLinkLabel(o,o.pos,!0),l<0))return!1;if(d=l+1,d<h&&o.src.charCodeAt(d)===40){for(w=!1,d++;d<h&&(i=o.src.charCodeAt(d),!(!t(i)&&i!==10));d++);if(d>=h)return!1;if(y=d,u=o.md.helpers.parseLinkDestination(o.src,d,o.posMax),u.ok){for(_=o.md.normalizeLink(u.str),o.md.validateLink(_)?d=u.pos:_="",y=d;d<h&&(i=o.src.charCodeAt(d),!(!t(i)&&i!==10));d++);if(u=o.md.helpers.parseLinkTitle(o.src,d,o.posMax),d<h&&y!==d&&u.ok)for(m=u.str,d=u.pos;d<h&&(i=o.src.charCodeAt(d),!(!t(i)&&i!==10));d++);}(d>=h||o.src.charCodeAt(d)!==41)&&(w=!0),d++}if(w){if(typeof o.env.references>"u")return!1;if(d<h&&o.src.charCodeAt(d)===91?(y=d+1,d=o.md.helpers.parseLinkLabel(o,d),d>=0?c=o.src.slice(y,d++):d=l+1):d=l+1,c||(c=o.src.slice(f,l)),g=o.env.references[e(c)],!g)return o.pos=b,!1;_=g.href,m=g.title}return s||(o.pos=f,o.posMax=l,p=o.push("link_open","a",1),p.attrs=a=[["href",_]],m&&a.push(["title",m]),o.linkLevel++,o.md.inline.tokenize(o),o.linkLevel--,p=o.push("link_close","a",-1)),o.pos=d,o.posMax=h,!0},ni}var ri,Dp;function FN(){if(Dp)return ri;Dp=1;var e=he().normalizeReference,t=he().isSpace;return ri=function(o,s){var a,i,c,l,f,d,u,g,p,_,m,b,h,y="",w=o.pos,k=o.posMax;if(o.src.charCodeAt(o.pos)!==33||o.src.charCodeAt(o.pos+1)!==91||(d=o.pos+2,f=o.md.helpers.parseLinkLabel(o,o.pos+1,!1),f<0))return!1;if(u=f+1,u<k&&o.src.charCodeAt(u)===40){for(u++;u<k&&(i=o.src.charCodeAt(u),!(!t(i)&&i!==10));u++);if(u>=k)return!1;for(h=u,p=o.md.helpers.parseLinkDestination(o.src,u,o.posMax),p.ok&&(y=o.md.normalizeLink(p.str),o.md.validateLink(y)?u=p.pos:y=""),h=u;u<k&&(i=o.src.charCodeAt(u),!(!t(i)&&i!==10));u++);if(p=o.md.helpers.parseLinkTitle(o.src,u,o.posMax),u<k&&h!==u&&p.ok)for(_=p.str,u=p.pos;u<k&&(i=o.src.charCodeAt(u),!(!t(i)&&i!==10));u++);else _="";if(u>=k||o.src.charCodeAt(u)!==41)return o.pos=w,!1;u++}else{if(typeof o.env.references>"u")return!1;if(u<k&&o.src.charCodeAt(u)===91?(h=u+1,u=o.md.helpers.parseLinkLabel(o,u),u>=0?l=o.src.slice(h,u++):u=f+1):u=f+1,l||(l=o.src.slice(d,f)),g=o.env.references[e(l)],!g)return o.pos=w,!1;y=g.href,_=g.title}return s||(c=o.src.slice(d,f),o.md.inline.parse(c,o.md,o.env,b=[]),m=o.push("image","img",0),m.attrs=a=[["src",y],["alt",""]],m.children=b,m.content=c,_&&a.push(["title",_])),o.pos=u,o.posMax=k,!0},ri}var oi,qp;function VN(){if(qp)return oi;qp=1;var e=/^([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])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return oi=function(o,s){var a,i,c,l,f,d,u=o.pos;if(o.src.charCodeAt(u)!==60)return!1;for(f=o.pos,d=o.posMax;;){if(++u>=d||(l=o.src.charCodeAt(u),l===60))return!1;if(l===62)break}return a=o.src.slice(f+1,u),t.test(a)?(i=o.md.normalizeLink(a),o.md.validateLink(i)?(s||(c=o.push("link_open","a",1),c.attrs=[["href",i]],c.markup="autolink",c.info="auto",c=o.push("text","",0),c.content=o.md.normalizeLinkText(a),c=o.push("link_close","a",-1),c.markup="autolink",c.info="auto"),o.pos+=a.length+2,!0):!1):e.test(a)?(i=o.md.normalizeLink("mailto:"+a),o.md.validateLink(i)?(s||(c=o.push("link_open","a",1),c.attrs=[["href",i]],c.markup="autolink",c.info="auto",c=o.push("text","",0),c.content=o.md.normalizeLinkText(a),c=o.push("link_close","a",-1),c.markup="autolink",c.info="auto"),o.pos+=a.length+2,!0):!1):!1},oi}var ai,Pp;function jN(){if(Pp)return ai;Pp=1;var e=kp().HTML_TAG_RE;function t(s){return/^<a[>\s]/i.test(s)}function r(s){return/^<\/a\s*>/i.test(s)}function o(s){var a=s|32;return a>=97&&a<=122}return ai=function(a,i){var c,l,f,d,u=a.pos;return!a.md.options.html||(f=a.posMax,a.src.charCodeAt(u)!==60||u+2>=f)||(c=a.src.charCodeAt(u+1),c!==33&&c!==63&&c!==47&&!o(c))||(l=a.src.slice(u).match(e),!l)?!1:(i||(d=a.push("html_inline","",0),d.content=l[0],t(d.content)&&a.linkLevel++,r(d.content)&&a.linkLevel--),a.pos+=l[0].length,!0)},ai}var si,Fp;function HN(){if(Fp)return si;Fp=1;var e=Rd(),t=he().has,r=he().isValidEntityCode,o=he().fromCodePoint,s=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,a=/^&([a-z][a-z0-9]{1,31});/i;return si=function(c,l){var f,d,u,g,p=c.pos,_=c.posMax;if(c.src.charCodeAt(p)!==38||p+1>=_)return!1;if(f=c.src.charCodeAt(p+1),f===35){if(u=c.src.slice(p).match(s),u)return l||(d=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),g=c.push("text_special","",0),g.content=r(d)?o(d):o(65533),g.markup=u[0],g.info="entity"),c.pos+=u[0].length,!0}else if(u=c.src.slice(p).match(a),u&&t(e,u[1]))return l||(g=c.push("text_special","",0),g.content=e[u[1]],g.markup=u[0],g.info="entity"),c.pos+=u[0].length,!0;return!1},si}var ii,Vp;function UN(){if(Vp)return ii;Vp=1;function e(t){var r,o,s,a,i,c,l,f,d={},u=t.length;if(u){var g=0,p=-2,_=[];for(r=0;r<u;r++)if(s=t[r],_.push(0),(t[g].marker!==s.marker||p!==s.token-1)&&(g=r),p=s.token,s.length=s.length||0,!!s.close){for(d.hasOwnProperty(s.marker)||(d[s.marker]=[-1,-1,-1,-1,-1,-1]),i=d[s.marker][(s.open?3:0)+s.length%3],o=g-_[g]-1,c=o;o>i;o-=_[o]+1)if(a=t[o],a.marker===s.marker&&a.open&&a.end<0&&(l=!1,(a.close||s.open)&&(a.length+s.length)%3===0&&(a.length%3!==0||s.length%3!==0)&&(l=!0),!l)){f=o>0&&!t[o-1].open?_[o-1]+1:0,_[r]=r-o+f,_[o]=f,s.open=!1,a.end=r,a.close=!1,c=-1,p=-2;break}c!==-1&&(d[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}}return ii=function(r){var o,s=r.tokens_meta,a=r.tokens_meta.length;for(e(r.delimiters),o=0;o<a;o++)s[o]&&s[o].delimiters&&e(s[o].delimiters)},ii}var ci,jp;function GN(){return jp||(jp=1,ci=function(t){var r,o,s=0,a=t.tokens,i=t.tokens.length;for(r=o=0;r<i;r++)a[r].nesting<0&&s--,a[r].level=s,a[r].nesting>0&&s++,a[r].type==="text"&&r+1<i&&a[r+1].type==="text"?a[r+1].content=a[r].content+a[r+1].content:(r!==o&&(a[o]=a[r]),o++);r!==o&&(a.length=o)}),ci}var li,Hp;function KN(){if(Hp)return li;Hp=1;var e=Os(),t=he().isWhiteSpace,r=he().isPunctChar,o=he().isMdAsciiPunct;function s(a,i,c,l){this.src=a,this.env=c,this.md=i,this.tokens=l,this.tokens_meta=Array(l.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}return s.prototype.pushPending=function(){var a=new e("text","",0);return a.content=this.pending,a.level=this.pendingLevel,this.tokens.push(a),this.pending="",a},s.prototype.push=function(a,i,c){this.pending&&this.pushPending();var l=new e(a,i,c),f=null;return c<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,c>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],f={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(f),l},s.prototype.scanDelims=function(a,i){var c=a,l,f,d,u,g,p,_,m,b,h=!0,y=!0,w=this.posMax,k=this.src.charCodeAt(a);for(l=a>0?this.src.charCodeAt(a-1):32;c<w&&this.src.charCodeAt(c)===k;)c++;return d=c-a,f=c<w?this.src.charCodeAt(c):32,_=o(l)||r(String.fromCharCode(l)),b=o(f)||r(String.fromCharCode(f)),p=t(l),m=t(f),m?h=!1:b&&(p||_||(h=!1)),p?y=!1:_&&(m||b||(y=!1)),i?(u=h,g=y):(u=h&&(!y||_),g=y&&(!h||b)),{can_open:u,can_close:g,length:d}},s.prototype.Token=e,li=s,li}var ui,Up;function WN(){if(Up)return ui;Up=1;var e=xs(),t=[["text",MN()],["linkify",zN()],["newline",LN()],["escape",DN()],["backticks",qN()],["strikethrough",Op().tokenize],["emphasis",zp().tokenize],["link",PN()],["image",FN()],["autolink",VN()],["html_inline",jN()],["entity",HN()]],r=[["balance_pairs",UN()],["strikethrough",Op().postProcess],["emphasis",zp().postProcess],["fragments_join",GN()]];function o(){var s;for(this.ruler=new e,s=0;s<t.length;s++)this.ruler.push(t[s][0],t[s][1]);for(this.ruler2=new e,s=0;s<r.length;s++)this.ruler2.push(r[s][0],r[s][1])}return o.prototype.skipToken=function(s){var a,i,c=s.pos,l=this.ruler.getRules(""),f=l.length,d=s.md.options.maxNesting,u=s.cache;if(typeof u[c]<"u"){s.pos=u[c];return}if(s.level<d){for(i=0;i<f;i++)if(s.level++,a=l[i](s,!0),s.level--,a){if(c>=s.pos)throw new Error("inline rule didn't increment state.pos");break}}else s.pos=s.posMax;a||s.pos++,u[c]=s.pos},o.prototype.tokenize=function(s){for(var a,i,c,l=this.ruler.getRules(""),f=l.length,d=s.posMax,u=s.md.options.maxNesting;s.pos<d;){if(c=s.pos,s.level<u){for(i=0;i<f;i++)if(a=l[i](s,!1),a){if(c>=s.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(s.pos>=d)break;continue}s.pending+=s.src[s.pos++]}s.pending&&s.pushPending()},o.prototype.parse=function(s,a,i,c){var l,f,d,u=new this.State(s,a,i,c);for(this.tokenize(u),f=this.ruler2.getRules(""),d=f.length,l=0;l<d;l++)f[l](u)},o.prototype.State=KN(),ui=o,ui}var fi,Gp;function ZN(){return Gp||(Gp=1,fi=function(e){var t={};e=e||{},t.src_Any=Vd().source,t.src_Cc=Hd().source,t.src_Z=Kd().source,t.src_P=fs().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+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}),fi}var di,Kp;function XN(){if(Kp)return di;Kp=1;function e(w){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(E){E&&Object.keys(E).forEach(function(C){w[C]=E[C]})}),w}function t(w){return Object.prototype.toString.call(w)}function r(w){return t(w)==="[object String]"}function o(w){return t(w)==="[object Object]"}function s(w){return t(w)==="[object RegExp]"}function a(w){return t(w)==="[object Function]"}function i(w){return w.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(w){return Object.keys(w||{}).reduce(function(k,E){return k||c.hasOwnProperty(E)},!1)}var f={"http:":{validate:function(w,k,E){var C=w.slice(k);return E.re.http||(E.re.http=new RegExp("^\\/\\/"+E.re.src_auth+E.re.src_host_port_strict+E.re.src_path,"i")),E.re.http.test(C)?C.match(E.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(w,k,E){var C=w.slice(k);return E.re.no_http||(E.re.no_http=new RegExp("^"+E.re.src_auth+"(?:localhost|(?:(?:"+E.re.src_domain+")\\.)+"+E.re.src_domain_root+")"+E.re.src_port+E.re.src_host_terminator+E.re.src_path,"i")),E.re.no_http.test(C)?k>=3&&w[k-3]===":"||k>=3&&w[k-3]==="/"?0:C.match(E.re.no_http)[0].length:0}},"mailto:":{validate:function(w,k,E){var C=w.slice(k);return E.re.mailto||(E.re.mailto=new RegExp("^"+E.re.src_email_name+"@"+E.re.src_host_strict,"i")),E.re.mailto.test(C)?C.match(E.re.mailto)[0].length:0}}},d="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]",u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(w){w.__index__=-1,w.__text_cache__=""}function p(w){return function(k,E){var C=k.slice(E);return w.test(C)?C.match(w)[0].length:0}}function _(){return function(w,k){k.normalize(w)}}function m(w){var k=w.re=ZN()(w.__opts__),E=w.__tlds__.slice();w.onCompile(),w.__tlds_replaced__||E.push(d),E.push(k.src_xn),k.src_tlds=E.join("|");function C(B){return B.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(C(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(C(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(C(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(C(k.tpl_host_fuzzy_test),"i");var x=[];w.__compiled__={};function S(B,$){throw new Error('(LinkifyIt) Invalid schema "'+B+'": '+$)}Object.keys(w.__schemas__).forEach(function(B){var $=w.__schemas__[B];if($!==null){var L={validate:null,link:null};if(w.__compiled__[B]=L,o($)){s($.validate)?L.validate=p($.validate):a($.validate)?L.validate=$.validate:S(B,$),a($.normalize)?L.normalize=$.normalize:$.normalize?S(B,$):L.normalize=_();return}if(r($)){x.push(B);return}S(B,$)}}),x.forEach(function(B){w.__compiled__[w.__schemas__[B]]&&(w.__compiled__[B].validate=w.__compiled__[w.__schemas__[B]].validate,w.__compiled__[B].normalize=w.__compiled__[w.__schemas__[B]].normalize)}),w.__compiled__[""]={validate:null,normalize:_()};var N=Object.keys(w.__compiled__).filter(function(B){return B.length>0&&w.__compiled__[B]}).map(i).join("|");w.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+N+")","i"),w.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+N+")","ig"),w.re.schema_at_start=RegExp("^"+w.re.schema_search.source,"i"),w.re.pretest=RegExp("("+w.re.schema_test.source+")|("+w.re.host_fuzzy_test.source+")|@","i"),g(w)}function b(w,k){var E=w.__index__,C=w.__last_index__,x=w.__text_cache__.slice(E,C);this.schema=w.__schema__.toLowerCase(),this.index=E+k,this.lastIndex=C+k,this.raw=x,this.text=x,this.url=x}function h(w,k){var E=new b(w,k);return w.__compiled__[E.schema].normalize(E,w),E}function y(w,k){if(!(this instanceof y))return new y(w,k);k||l(w)&&(k=w,w={}),this.__opts__=e({},c,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},f,w),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},m(this)}return y.prototype.add=function(k,E){return this.__schemas__[k]=E,m(this),this},y.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},y.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var E,C,x,S,N,B,$,L,G;if(this.re.schema_test.test(k)){for($=this.re.schema_search,$.lastIndex=0;(E=$.exec(k))!==null;)if(S=this.testSchemaAt(k,E[2],$.lastIndex),S){this.__schema__=E[2],this.__index__=E.index+E[1].length,this.__last_index__=E.index+E[0].length+S;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(L=k.search(this.re.host_fuzzy_test),L>=0&&(this.__index__<0||L<this.__index__)&&(C=k.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(N=C.index+C[1].length,(this.__index__<0||N<this.__index__)&&(this.__schema__="",this.__index__=N,this.__last_index__=C.index+C[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(G=k.indexOf("@"),G>=0&&(x=k.match(this.re.email_fuzzy))!==null&&(N=x.index+x[1].length,B=x.index+x[0].length,(this.__index__<0||N<this.__index__||N===this.__index__&&B>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=N,this.__last_index__=B))),this.__index__>=0},y.prototype.pretest=function(k){return this.re.pretest.test(k)},y.prototype.testSchemaAt=function(k,E,C){return this.__compiled__[E.toLowerCase()]?this.__compiled__[E.toLowerCase()].validate(k,C,this):0},y.prototype.match=function(k){var E=0,C=[];this.__index__>=0&&this.__text_cache__===k&&(C.push(h(this,E)),E=this.__last_index__);for(var x=E?k.slice(E):k;this.test(x);)C.push(h(this,E)),x=x.slice(this.__last_index__),E+=this.__last_index__;return C.length?C:null},y.prototype.matchAtStart=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return null;var E=this.re.schema_at_start.exec(k);if(!E)return null;var C=this.testSchemaAt(k,E[2],E[0].length);return C?(this.__schema__=E[2],this.__index__=E.index+E[1].length,this.__last_index__=E.index+E[0].length+C,h(this,0)):null},y.prototype.tlds=function(k,E){return k=Array.isArray(k)?k:[k],E?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(C,x,S){return C!==S[x-1]}).reverse(),m(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,m(this),this)},y.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},y.prototype.onCompile=function(){},di=y,di}const Un=2147483647,Bt=36,pi=1,xr=26,YN=38,JN=700,Wp=72,Zp=128,Xp="-",QN=/^xn--/,eB=/[^\0-\x7F]/,tB=/[\x2E\u3002\uFF0E\uFF61]/g,nB={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hi=Bt-pi,It=Math.floor,mi=String.fromCharCode;function on(e){throw new RangeError(nB[e])}function rB(e,t){const r=[];let o=e.length;for(;o--;)r[o]=t(e[o]);return r}function Yp(e,t){const r=e.split("@");let o="";r.length>1&&(o=r[0]+"@",e=r[1]),e=e.replace(tB,".");const s=e.split("."),a=rB(s,t).join(".");return o+a}function gi(e){const t=[];let r=0;const o=e.length;for(;r<o;){const s=e.charCodeAt(r++);if(s>=55296&&s<=56319&&r<o){const a=e.charCodeAt(r++);(a&64512)==56320?t.push(((s&1023)<<10)+(a&1023)+65536):(t.push(s),r--)}else t.push(s)}return t}const Jp=e=>String.fromCodePoint(...e),oB=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Bt},Qp=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},eh=function(e,t,r){let o=0;for(e=r?It(e/JN):e>>1,e+=It(e/t);e>hi*xr>>1;o+=Bt)e=It(e/hi);return It(o+(hi+1)*e/(e+YN))},_i=function(e){const t=[],r=e.length;let o=0,s=Zp,a=Wp,i=e.lastIndexOf(Xp);i<0&&(i=0);for(let c=0;c<i;++c)e.charCodeAt(c)>=128&&on("not-basic"),t.push(e.charCodeAt(c));for(let c=i>0?i+1:0;c<r;){const l=o;for(let d=1,u=Bt;;u+=Bt){c>=r&&on("invalid-input");const g=oB(e.charCodeAt(c++));g>=Bt&&on("invalid-input"),g>It((Un-o)/d)&&on("overflow"),o+=g*d;const p=u<=a?pi:u>=a+xr?xr:u-a;if(g<p)break;const _=Bt-p;d>It(Un/_)&&on("overflow"),d*=_}const f=t.length+1;a=eh(o-l,f,l==0),It(o/f)>Un-s&&on("overflow"),s+=It(o/f),o%=f,t.splice(o++,0,s)}return String.fromCodePoint(...t)},bi=function(e){const t=[];e=gi(e);const r=e.length;let o=Zp,s=0,a=Wp;for(const l of e)l<128&&t.push(mi(l));const i=t.length;let c=i;for(i&&t.push(Xp);c<r;){let l=Un;for(const d of e)d>=o&&d<l&&(l=d);const f=c+1;l-o>It((Un-s)/f)&&on("overflow"),s+=(l-o)*f,o=l;for(const d of e)if(d<o&&++s>Un&&on("overflow"),d===o){let u=s;for(let g=Bt;;g+=Bt){const p=g<=a?pi:g>=a+xr?xr:g-a;if(u<p)break;const _=u-p,m=Bt-p;t.push(mi(Qp(p+_%m,0))),u=It(_/m)}t.push(mi(Qp(u,0))),a=eh(s,f,c===i),s=0,++c}++s,++o}return t.join("")},th=function(e){return Yp(e,function(t){return QN.test(t)?_i(t.slice(4).toLowerCase()):t})},nh=function(e){return Yp(e,function(t){return eB.test(t)?"xn--"+bi(t):t})},aB=lg(Object.freeze(Object.defineProperty({__proto__:null,decode:_i,default:{version:"2.3.1",ucs2:{decode:gi,encode:Jp},decode:_i,encode:bi,toASCII:nh,toUnicode:th},encode:bi,toASCII:nh,toUnicode:th,ucs2decode:gi,ucs2encode:Jp},Symbol.toStringTag,{value:"Module"})));var yi,rh;function sB(){return rh||(rh=1,yi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),yi}var wi,oh;function iB(){return oh||(oh=1,wi={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"]}}}),wi}var ki,ah;function cB(){return ah||(ah=1,ki={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"]}}}),ki}var vi,sh;function lB(){if(sh)return vi;sh=1;var e=he(),t=uN(),r=fN(),o=wN(),s=ON(),a=WN(),i=XN(),c=Pd(),l=aB,f={default:sB(),zero:iB(),commonmark:cB()},d=/^(vbscript|javascript|file|data):/,u=/^data:image\/(gif|png|jpeg|webp);/;function g(h){var y=h.trim().toLowerCase();return d.test(y)?!!u.test(y):!0}var p=["http:","https:","mailto:"];function _(h){var y=c.parse(h,!0);if(y.hostname&&(!y.protocol||p.indexOf(y.protocol)>=0))try{y.hostname=l.toASCII(y.hostname)}catch{}return c.encode(c.format(y))}function m(h){var y=c.parse(h,!0);if(y.hostname&&(!y.protocol||p.indexOf(y.protocol)>=0))try{y.hostname=l.toUnicode(y.hostname)}catch{}return c.decode(c.format(y),c.decode.defaultChars+"%")}function b(h,y){if(!(this instanceof b))return new b(h,y);y||e.isString(h)||(y=h||{},h="default"),this.inline=new a,this.block=new s,this.core=new o,this.renderer=new r,this.linkify=new i,this.validateLink=g,this.normalizeLink=_,this.normalizeLinkText=m,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(h),y&&this.set(y)}return b.prototype.set=function(h){return e.assign(this.options,h),this},b.prototype.configure=function(h){var y=this,w;if(e.isString(h)&&(w=h,h=f[w],!h))throw new Error('Wrong `markdown-it` preset "'+w+'", check name');if(!h)throw new Error("Wrong `markdown-it` preset, can't be empty");return h.options&&y.set(h.options),h.components&&Object.keys(h.components).forEach(function(k){h.components[k].rules&&y[k].ruler.enableOnly(h.components[k].rules),h.components[k].rules2&&y[k].ruler2.enableOnly(h.components[k].rules2)}),this},b.prototype.enable=function(h,y){var w=[];Array.isArray(h)||(h=[h]),["core","block","inline"].forEach(function(E){w=w.concat(this[E].ruler.enable(h,!0))},this),w=w.concat(this.inline.ruler2.enable(h,!0));var k=h.filter(function(E){return w.indexOf(E)<0});if(k.length&&!y)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+k);return this},b.prototype.disable=function(h,y){var w=[];Array.isArray(h)||(h=[h]),["core","block","inline"].forEach(function(E){w=w.concat(this[E].ruler.disable(h,!0))},this),w=w.concat(this.inline.ruler2.disable(h,!0));var k=h.filter(function(E){return w.indexOf(E)<0});if(k.length&&!y)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+k);return this},b.prototype.use=function(h){var y=[this].concat(Array.prototype.slice.call(arguments,1));return h.apply(h,y),this},b.prototype.parse=function(h,y){if(typeof h!="string")throw new Error("Input data should be a String");var w=new this.core.State(h,this,y);return this.core.process(w),w.tokens},b.prototype.render=function(h,y){return y=y||{},this.renderer.render(this.parse(h,y),this.options,y)},b.prototype.parseInline=function(h,y){var w=new this.core.State(h,this,y);return w.inlineMode=!0,this.core.process(w),w.tokens},b.prototype.renderInline=function(h,y){return y=y||{},this.renderer.render(this.parseInline(h,y),this.options,y)},vi=b,vi}var Ci,ih;function uB(){return ih||(ih=1,Ci=lB()),Ci}var fB=uB();const ch=xn(fB),dB={100:"💯",1234:"🔢",grinning:"😀",smiley:"😃",smile:"😄",grin:"😁",laughing:"😆",satisfied:"😆",sweat_smile:"😅",rofl:"🤣",joy:"😂",slightly_smiling_face:"🙂",upside_down_face:"🙃",wink:"😉",blush:"😊",innocent:"😇",smiling_face_with_three_hearts:"🥰",heart_eyes:"😍",star_struck:"🤩",kissing_heart:"😘",kissing:"😗",relaxed:"☺️",kissing_closed_eyes:"😚",kissing_smiling_eyes:"😙",smiling_face_with_tear:"🥲",yum:"😋",stuck_out_tongue:"😛",stuck_out_tongue_winking_eye:"😜",zany_face:"🤪",stuck_out_tongue_closed_eyes:"😝",money_mouth_face:"🤑",hugs:"🤗",hand_over_mouth:"🤭",shushing_face:"🤫",thinking:"🤔",zipper_mouth_face:"🤐",raised_eyebrow:"🤨",neutral_face:"😐",expressionless:"😑",no_mouth:"😶",smirk:"😏",unamused:"😒",roll_eyes:"🙄",grimacing:"😬",lying_face:"🤥",relieved:"😌",pensive:"😔",sleepy:"😪",drooling_face:"🤤",sleeping:"😴",mask:"😷",face_with_thermometer:"🤒",face_with_head_bandage:"🤕",nauseated_face:"🤢",vomiting_face:"🤮",sneezing_face:"🤧",hot_face:"🥵",cold_face:"🥶",woozy_face:"🥴",dizzy_face:"😵",exploding_head:"🤯",cowboy_hat_face:"🤠",partying_face:"🥳",disguised_face:"🥸",sunglasses:"😎",nerd_face:"🤓",monocle_face:"🧐",confused:"😕",worried:"😟",slightly_frowning_face:"🙁",frowning_face:"☹️",open_mouth:"😮",hushed:"😯",astonished:"😲",flushed:"😳",pleading_face:"🥺",frowning:"😦",anguished:"😧",fearful:"😨",cold_sweat:"😰",disappointed_relieved:"😥",cry:"😢",sob:"😭",scream:"😱",confounded:"😖",persevere:"😣",disappointed:"😞",sweat:"😓",weary:"😩",tired_face:"😫",yawning_face:"🥱",triumph:"😤",rage:"😡",pout:"😡",angry:"😠",cursing_face:"🤬",smiling_imp:"😈",imp:"👿",skull:"💀",skull_and_crossbones:"☠️",hankey:"💩",poop:"💩",shit:"💩",clown_face:"🤡",japanese_ogre:"👹",japanese_goblin:"👺",ghost:"👻",alien:"👽",space_invader:"👾",robot:"🤖",smiley_cat:"😺",smile_cat:"😸",joy_cat:"😹",heart_eyes_cat:"😻",smirk_cat:"😼",kissing_cat:"😽",scream_cat:"🙀",crying_cat_face:"😿",pouting_cat:"😾",see_no_evil:"🙈",hear_no_evil:"🙉",speak_no_evil:"🙊",kiss:"💋",love_letter:"💌",cupid:"💘",gift_heart:"💝",sparkling_heart:"💖",heartpulse:"💗",heartbeat:"💓",revolving_hearts:"💞",two_hearts:"💕",heart_decoration:"💟",heavy_heart_exclamation:"❣️",broken_heart:"💔",heart:"❤️",orange_heart:"🧡",yellow_heart:"💛",green_heart:"💚",blue_heart:"💙",purple_heart:"💜",brown_heart:"🤎",black_heart:"🖤",white_heart:"🤍",anger:"💢",boom:"💥",collision:"💥",dizzy:"💫",sweat_drops:"💦",dash:"💨",hole:"🕳️",bomb:"💣",speech_balloon:"💬",eye_speech_bubble:"👁️‍🗨️",left_speech_bubble:"🗨️",right_anger_bubble:"🗯️",thought_balloon:"💭",zzz:"💤",wave:"👋",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐️",hand:"✋",raised_hand:"✋",vulcan_salute:"🖖",ok_hand:"👌",pinched_fingers:"🤌",pinching_hand:"🤏",v:"✌️",crossed_fingers:"🤞",love_you_gesture:"🤟",metal:"🤘",call_me_hand:"🤙",point_left:"👈",point_right:"👉",point_up_2:"👆",middle_finger:"🖕",fu:"🖕",point_down:"👇",point_up:"☝️","+1":"👍",thumbsup:"👍","-1":"👎",thumbsdown:"👎",fist_raised:"✊",fist:"✊",fist_oncoming:"👊",facepunch:"👊",punch:"👊",fist_left:"🤛",fist_right:"🤜",clap:"👏",raised_hands:"🙌",open_hands:"👐",palms_up_together:"🤲",handshake:"🤝",pray:"🙏",writing_hand:"✍️",nail_care:"💅",selfie:"🤳",muscle:"💪",mechanical_arm:"🦾",mechanical_leg:"🦿",leg:"🦵",foot:"🦶",ear:"👂",ear_with_hearing_aid:"🦻",nose:"👃",brain:"🧠",anatomical_heart:"🫀",lungs:"🫁",tooth:"🦷",bone:"🦴",eyes:"👀",eye:"👁️",tongue:"👅",lips:"👄",baby:"👶",child:"🧒",boy:"👦",girl:"👧",adult:"🧑",blond_haired_person:"👱",man:"👨",bearded_person:"🧔",red_haired_man:"👨‍🦰",curly_haired_man:"👨‍🦱",white_haired_man:"👨‍🦳",bald_man:"👨‍🦲",woman:"👩",red_haired_woman:"👩‍🦰",person_red_hair:"🧑‍🦰",curly_haired_woman:"👩‍🦱",person_curly_hair:"🧑‍🦱",white_haired_woman:"👩‍🦳",person_white_hair:"🧑‍🦳",bald_woman:"👩‍🦲",person_bald:"🧑‍🦲",blond_haired_woman:"👱‍♀️",blonde_woman:"👱‍♀️",blond_haired_man:"👱‍♂️",older_adult:"🧓",older_man:"👴",older_woman:"👵",frowning_person:"🙍",frowning_man:"🙍‍♂️",frowning_woman:"🙍‍♀️",pouting_face:"🙎",pouting_man:"🙎‍♂️",pouting_woman:"🙎‍♀️",no_good:"🙅",no_good_man:"🙅‍♂️",ng_man:"🙅‍♂️",no_good_woman:"🙅‍♀️",ng_woman:"🙅‍♀️",ok_person:"🙆",ok_man:"🙆‍♂️",ok_woman:"🙆‍♀️",tipping_hand_person:"💁",information_desk_person:"💁",tipping_hand_man:"💁‍♂️",sassy_man:"💁‍♂️",tipping_hand_woman:"💁‍♀️",sassy_woman:"💁‍♀️",raising_hand:"🙋",raising_hand_man:"🙋‍♂️",raising_hand_woman:"🙋‍♀️",deaf_person:"🧏",deaf_man:"🧏‍♂️",deaf_woman:"🧏‍♀️",bow:"🙇",bowing_man:"🙇‍♂️",bowing_woman:"🙇‍♀️",facepalm:"🤦",man_facepalming:"🤦‍♂️",woman_facepalming:"🤦‍♀️",shrug:"🤷",man_shrugging:"🤷‍♂️",woman_shrugging:"🤷‍♀️",health_worker:"🧑‍⚕️",man_health_worker:"👨‍⚕️",woman_health_worker:"👩‍⚕️",student:"🧑‍🎓",man_student:"👨‍🎓",woman_student:"👩‍🎓",teacher:"🧑‍🏫",man_teacher:"👨‍🏫",woman_teacher:"👩‍🏫",judge:"🧑‍⚖️",man_judge:"👨‍⚖️",woman_judge:"👩‍⚖️",farmer:"🧑‍🌾",man_farmer:"👨‍🌾",woman_farmer:"👩‍🌾",cook:"🧑‍🍳",man_cook:"👨‍🍳",woman_cook:"👩‍🍳",mechanic:"🧑‍🔧",man_mechanic:"👨‍🔧",woman_mechanic:"👩‍🔧",factory_worker:"🧑‍🏭",man_factory_worker:"👨‍🏭",woman_factory_worker:"👩‍🏭",office_worker:"🧑‍💼",man_office_worker:"👨‍💼",woman_office_worker:"👩‍💼",scientist:"🧑‍🔬",man_scientist:"👨‍🔬",woman_scientist:"👩‍🔬",technologist:"🧑‍💻",man_technologist:"👨‍💻",woman_technologist:"👩‍💻",singer:"🧑‍🎤",man_singer:"👨‍🎤",woman_singer:"👩‍🎤",artist:"🧑‍🎨",man_artist:"👨‍🎨",woman_artist:"👩‍🎨",pilot:"🧑‍✈️",man_pilot:"👨‍✈️",woman_pilot:"👩‍✈️",astronaut:"🧑‍🚀",man_astronaut:"👨‍🚀",woman_astronaut:"👩‍🚀",firefighter:"🧑‍🚒",man_firefighter:"👨‍🚒",woman_firefighter:"👩‍🚒",police_officer:"👮",cop:"👮",policeman:"👮‍♂️",policewoman:"👮‍♀️",detective:"🕵️",male_detective:"🕵️‍♂️",female_detective:"🕵️‍♀️",guard:"💂",guardsman:"💂‍♂️",guardswoman:"💂‍♀️",ninja:"🥷",construction_worker:"👷",construction_worker_man:"👷‍♂️",construction_worker_woman:"👷‍♀️",prince:"🤴",princess:"👸",person_with_turban:"👳",man_with_turban:"👳‍♂️",woman_with_turban:"👳‍♀️",man_with_gua_pi_mao:"👲",woman_with_headscarf:"🧕",person_in_tuxedo:"🤵",man_in_tuxedo:"🤵‍♂️",woman_in_tuxedo:"🤵‍♀️",person_with_veil:"👰",man_with_veil:"👰‍♂️",woman_with_veil:"👰‍♀️",bride_with_veil:"👰‍♀️",pregnant_woman:"🤰",breast_feeding:"🤱",woman_feeding_baby:"👩‍🍼",man_feeding_baby:"👨‍🍼",person_feeding_baby:"🧑‍🍼",angel:"👼",santa:"🎅",mrs_claus:"🤶",mx_claus:"🧑‍🎄",superhero:"🦸",superhero_man:"🦸‍♂️",superhero_woman:"🦸‍♀️",supervillain:"🦹",supervillain_man:"🦹‍♂️",supervillain_woman:"🦹‍♀️",mage:"🧙",mage_man:"🧙‍♂️",mage_woman:"🧙‍♀️",fairy:"🧚",fairy_man:"🧚‍♂️",fairy_woman:"🧚‍♀️",vampire:"🧛",vampire_man:"🧛‍♂️",vampire_woman:"🧛‍♀️",merperson:"🧜",merman:"🧜‍♂️",mermaid:"🧜‍♀️",elf:"🧝",elf_man:"🧝‍♂️",elf_woman:"🧝‍♀️",genie:"🧞",genie_man:"🧞‍♂️",genie_woman:"🧞‍♀️",zombie:"🧟",zombie_man:"🧟‍♂️",zombie_woman:"🧟‍♀️",massage:"💆",massage_man:"💆‍♂️",massage_woman:"💆‍♀️",haircut:"💇",haircut_man:"💇‍♂️",haircut_woman:"💇‍♀️",walking:"🚶",walking_man:"🚶‍♂️",walking_woman:"🚶‍♀️",standing_person:"🧍",standing_man:"🧍‍♂️",standing_woman:"🧍‍♀️",kneeling_person:"🧎",kneeling_man:"🧎‍♂️",kneeling_woman:"🧎‍♀️",person_with_probing_cane:"🧑‍🦯",man_with_probing_cane:"👨‍🦯",woman_with_probing_cane:"👩‍🦯",person_in_motorized_wheelchair:"🧑‍🦼",man_in_motorized_wheelchair:"👨‍🦼",woman_in_motorized_wheelchair:"👩‍🦼",person_in_manual_wheelchair:"🧑‍🦽",man_in_manual_wheelchair:"👨‍🦽",woman_in_manual_wheelchair:"👩‍🦽",runner:"🏃",running:"🏃",running_man:"🏃‍♂️",running_woman:"🏃‍♀️",woman_dancing:"💃",dancer:"💃",man_dancing:"🕺",business_suit_levitating:"🕴️",dancers:"👯",dancing_men:"👯‍♂️",dancing_women:"👯‍♀️",sauna_person:"🧖",sauna_man:"🧖‍♂️",sauna_woman:"🧖‍♀️",climbing:"🧗",climbing_man:"🧗‍♂️",climbing_woman:"🧗‍♀️",person_fencing:"🤺",horse_racing:"🏇",skier:"⛷️",snowboarder:"🏂",golfing:"🏌️",golfing_man:"🏌️‍♂️",golfing_woman:"🏌️‍♀️",surfer:"🏄",surfing_man:"🏄‍♂️",surfing_woman:"🏄‍♀️",rowboat:"🚣",rowing_man:"🚣‍♂️",rowing_woman:"🚣‍♀️",swimmer:"🏊",swimming_man:"🏊‍♂️",swimming_woman:"🏊‍♀️",bouncing_ball_person:"⛹️",bouncing_ball_man:"⛹️‍♂️",basketball_man:"⛹️‍♂️",bouncing_ball_woman:"⛹️‍♀️",basketball_woman:"⛹️‍♀️",weight_lifting:"🏋️",weight_lifting_man:"🏋️‍♂️",weight_lifting_woman:"🏋️‍♀️",bicyclist:"🚴",biking_man:"🚴‍♂️",biking_woman:"🚴‍♀️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵‍♂️",mountain_biking_woman:"🚵‍♀️",cartwheeling:"🤸",man_cartwheeling:"🤸‍♂️",woman_cartwheeling:"🤸‍♀️",wrestling:"🤼",men_wrestling:"🤼‍♂️",women_wrestling:"🤼‍♀️",water_polo:"🤽",man_playing_water_polo:"🤽‍♂️",woman_playing_water_polo:"🤽‍♀️",handball_person:"🤾",man_playing_handball:"🤾‍♂️",woman_playing_handball:"🤾‍♀️",juggling_person:"🤹",man_juggling:"🤹‍♂️",woman_juggling:"🤹‍♀️",lotus_position:"🧘",lotus_position_man:"🧘‍♂️",lotus_position_woman:"🧘‍♀️",bath:"🛀",sleeping_bed:"🛌",people_holding_hands:"🧑‍🤝‍🧑",two_women_holding_hands:"👭",couple:"👫",two_men_holding_hands:"👬",couplekiss:"💏",couplekiss_man_woman:"👩‍❤️‍💋‍👨",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",couple_with_heart:"💑",couple_with_heart_woman_man:"👩‍❤️‍👨",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",family:"👪",family_man_woman_boy:"👨‍👩‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",speaking_head:"🗣️",bust_in_silhouette:"👤",busts_in_silhouette:"👥",people_hugging:"🫂",footprints:"👣",monkey_face:"🐵",monkey:"🐒",gorilla:"🦍",orangutan:"🦧",dog:"🐶",dog2:"🐕",guide_dog:"🦮",service_dog:"🐕‍🦺",poodle:"🐩",wolf:"🐺",fox_face:"🦊",raccoon:"🦝",cat:"🐱",cat2:"🐈",black_cat:"🐈‍⬛",lion:"🦁",tiger:"🐯",tiger2:"🐅",leopard:"🐆",horse:"🐴",racehorse:"🐎",unicorn:"🦄",zebra:"🦓",deer:"🦌",bison:"🦬",cow:"🐮",ox:"🐂",water_buffalo:"🐃",cow2:"🐄",pig:"🐷",pig2:"🐖",boar:"🐗",pig_nose:"🐽",ram:"🐏",sheep:"🐑",goat:"🐐",dromedary_camel:"🐪",camel:"🐫",llama:"🦙",giraffe:"🦒",elephant:"🐘",mammoth:"🦣",rhinoceros:"🦏",hippopotamus:"🦛",mouse:"🐭",mouse2:"🐁",rat:"🐀",hamster:"🐹",rabbit:"🐰",rabbit2:"🐇",chipmunk:"🐿️",beaver:"🦫",hedgehog:"🦔",bat:"🦇",bear:"🐻",polar_bear:"🐻‍❄️",koala:"🐨",panda_face:"🐼",sloth:"🦥",otter:"🦦",skunk:"🦨",kangaroo:"🦘",badger:"🦡",feet:"🐾",paw_prints:"🐾",turkey:"🦃",chicken:"🐔",rooster:"🐓",hatching_chick:"🐣",baby_chick:"🐤",hatched_chick:"🐥",bird:"🐦",penguin:"🐧",dove:"🕊️",eagle:"🦅",duck:"🦆",swan:"🦢",owl:"🦉",dodo:"🦤",feather:"🪶",flamingo:"🦩",peacock:"🦚",parrot:"🦜",frog:"🐸",crocodile:"🐊",turtle:"🐢",lizard:"🦎",snake:"🐍",dragon_face:"🐲",dragon:"🐉",sauropod:"🦕","t-rex":"🦖",whale:"🐳",whale2:"🐋",dolphin:"🐬",flipper:"🐬",seal:"🦭",fish:"🐟",tropical_fish:"🐠",blowfish:"🐡",shark:"🦈",octopus:"🐙",shell:"🐚",snail:"🐌",butterfly:"🦋",bug:"🐛",ant:"🐜",bee:"🐝",honeybee:"🐝",beetle:"🪲",lady_beetle:"🐞",cricket:"🦗",cockroach:"🪳",spider:"🕷️",spider_web:"🕸️",scorpion:"🦂",mosquito:"🦟",fly:"🪰",worm:"🪱",microbe:"🦠",bouquet:"💐",cherry_blossom:"🌸",white_flower:"💮",rosette:"🏵️",rose:"🌹",wilted_flower:"🥀",hibiscus:"🌺",sunflower:"🌻",blossom:"🌼",tulip:"🌷",seedling:"🌱",potted_plant:"🪴",evergreen_tree:"🌲",deciduous_tree:"🌳",palm_tree:"🌴",cactus:"🌵",ear_of_rice:"🌾",herb:"🌿",shamrock:"☘️",four_leaf_clover:"🍀",maple_leaf:"🍁",fallen_leaf:"🍂",leaves:"🍃",grapes:"🍇",melon:"🍈",watermelon:"🍉",tangerine:"🍊",orange:"🍊",mandarin:"🍊",lemon:"🍋",banana:"🍌",pineapple:"🍍",mango:"🥭",apple:"🍎",green_apple:"🍏",pear:"🍐",peach:"🍑",cherries:"🍒",strawberry:"🍓",blueberries:"🫐",kiwi_fruit:"🥝",tomato:"🍅",olive:"🫒",coconut:"🥥",avocado:"🥑",eggplant:"🍆",potato:"🥔",carrot:"🥕",corn:"🌽",hot_pepper:"🌶️",bell_pepper:"🫑",cucumber:"🥒",leafy_green:"🥬",broccoli:"🥦",garlic:"🧄",onion:"🧅",mushroom:"🍄",peanuts:"🥜",chestnut:"🌰",bread:"🍞",croissant:"🥐",baguette_bread:"🥖",flatbread:"🫓",pretzel:"🥨",bagel:"🥯",pancakes:"🥞",waffle:"🧇",cheese:"🧀",meat_on_bone:"🍖",poultry_leg:"🍗",cut_of_meat:"🥩",bacon:"🥓",hamburger:"🍔",fries:"🍟",pizza:"🍕",hotdog:"🌭",sandwich:"🥪",taco:"🌮",burrito:"🌯",tamale:"🫔",stuffed_flatbread:"🥙",falafel:"🧆",egg:"🥚",fried_egg:"🍳",shallow_pan_of_food:"🥘",stew:"🍲",fondue:"🫕",bowl_with_spoon:"🥣",green_salad:"🥗",popcorn:"🍿",butter:"🧈",salt:"🧂",canned_food:"🥫",bento:"🍱",rice_cracker:"🍘",rice_ball:"🍙",rice:"🍚",curry:"🍛",ramen:"🍜",spaghetti:"🍝",sweet_potato:"🍠",oden:"🍢",sushi:"🍣",fried_shrimp:"🍤",fish_cake:"🍥",moon_cake:"🥮",dango:"🍡",dumpling:"🥟",fortune_cookie:"🥠",takeout_box:"🥡",crab:"🦀",lobster:"🦞",shrimp:"🦐",squid:"🦑",oyster:"🦪",icecream:"🍦",shaved_ice:"🍧",ice_cream:"🍨",doughnut:"🍩",cookie:"🍪",birthday:"🎂",cake:"🍰",cupcake:"🧁",pie:"🥧",chocolate_bar:"🍫",candy:"🍬",lollipop:"🍭",custard:"🍮",honey_pot:"🍯",baby_bottle:"🍼",milk_glass:"🥛",coffee:"☕",teapot:"🫖",tea:"🍵",sake:"🍶",champagne:"🍾",wine_glass:"🍷",cocktail:"🍸",tropical_drink:"🍹",beer:"🍺",beers:"🍻",clinking_glasses:"🥂",tumbler_glass:"🥃",cup_with_straw:"🥤",bubble_tea:"🧋",beverage_box:"🧃",mate:"🧉",ice_cube:"🧊",chopsticks:"🥢",plate_with_cutlery:"🍽️",fork_and_knife:"🍴",spoon:"🥄",hocho:"🔪",knife:"🔪",amphora:"🏺",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",globe_with_meridians:"🌐",world_map:"🗺️",japan:"🗾",compass:"🧭",mountain_snow:"🏔️",mountain:"⛰️",volcano:"🌋",mount_fuji:"🗻",camping:"🏕️",beach_umbrella:"🏖️",desert:"🏜️",desert_island:"🏝️",national_park:"🏞️",stadium:"🏟️",classical_building:"🏛️",building_construction:"🏗️",bricks:"🧱",rock:"🪨",wood:"🪵",hut:"🛖",houses:"🏘️",derelict_house:"🏚️",house:"🏠",house_with_garden:"🏡",office:"🏢",post_office:"🏣",european_post_office:"🏤",hospital:"🏥",bank:"🏦",hotel:"🏨",love_hotel:"🏩",convenience_store:"🏪",school:"🏫",department_store:"🏬",factory:"🏭",japanese_castle:"🏯",european_castle:"🏰",wedding:"💒",tokyo_tower:"🗼",statue_of_liberty:"🗽",church:"⛪",mosque:"🕌",hindu_temple:"🛕",synagogue:"🕍",shinto_shrine:"⛩️",kaaba:"🕋",fountain:"⛲",tent:"⛺",foggy:"🌁",night_with_stars:"🌃",cityscape:"🏙️",sunrise_over_mountains:"🌄",sunrise:"🌅",city_sunset:"🌆",city_sunrise:"🌇",bridge_at_night:"🌉",hotsprings:"♨️",carousel_horse:"🎠",ferris_wheel:"🎡",roller_coaster:"🎢",barber:"💈",circus_tent:"🎪",steam_locomotive:"🚂",railway_car:"🚃",bullettrain_side:"🚄",bullettrain_front:"🚅",train2:"🚆",metro:"🚇",light_rail:"🚈",station:"🚉",tram:"🚊",monorail:"🚝",mountain_railway:"🚞",train:"🚋",bus:"🚌",oncoming_bus:"🚍",trolleybus:"🚎",minibus:"🚐",ambulance:"🚑",fire_engine:"🚒",police_car:"🚓",oncoming_police_car:"🚔",taxi:"🚕",oncoming_taxi:"🚖",car:"🚗",red_car:"🚗",oncoming_automobile:"🚘",blue_car:"🚙",pickup_truck:"🛻",truck:"🚚",articulated_lorry:"🚛",tractor:"🚜",racing_car:"🏎️",motorcycle:"🏍️",motor_scooter:"🛵",manual_wheelchair:"🦽",motorized_wheelchair:"🦼",auto_rickshaw:"🛺",bike:"🚲",kick_scooter:"🛴",skateboard:"🛹",roller_skate:"🛼",busstop:"🚏",motorway:"🛣️",railway_track:"🛤️",oil_drum:"🛢️",fuelpump:"⛽",rotating_light:"🚨",traffic_light:"🚥",vertical_traffic_light:"🚦",stop_sign:"🛑",construction:"🚧",anchor:"⚓",boat:"⛵",sailboat:"⛵",canoe:"🛶",speedboat:"🚤",passenger_ship:"🛳️",ferry:"⛴️",motor_boat:"🛥️",ship:"🚢",airplane:"✈️",small_airplane:"🛩️",flight_departure:"🛫",flight_arrival:"🛬",parachute:"🪂",seat:"💺",helicopter:"🚁",suspension_railway:"🚟",mountain_cableway:"🚠",aerial_tramway:"🚡",artificial_satellite:"🛰️",rocket:"🚀",flying_saucer:"🛸",bellhop_bell:"🛎️",luggage:"🧳",hourglass:"⌛",hourglass_flowing_sand:"⏳",watch:"⌚",alarm_clock:"⏰",stopwatch:"⏱️",timer_clock:"⏲️",mantelpiece_clock:"🕰️",clock12:"🕛",clock1230:"🕧",clock1:"🕐",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",new_moon:"🌑",waxing_crescent_moon:"🌒",first_quarter_moon:"🌓",moon:"🌔",waxing_gibbous_moon:"🌔",full_moon:"🌕",waning_gibbous_moon:"🌖",last_quarter_moon:"🌗",waning_crescent_moon:"🌘",crescent_moon:"🌙",new_moon_with_face:"🌚",first_quarter_moon_with_face:"🌛",last_quarter_moon_with_face:"🌜",thermometer:"🌡️",sunny:"☀️",full_moon_with_face:"🌝",sun_with_face:"🌞",ringed_planet:"🪐",star:"⭐",star2:"🌟",stars:"🌠",milky_way:"🌌",cloud:"☁️",partly_sunny:"⛅",cloud_with_lightning_and_rain:"⛈️",sun_behind_small_cloud:"🌤️",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",cloud_with_lightning:"🌩️",tornado:"🌪️",fog:"🌫️",wind_face:"🌬️",cyclone:"🌀",rainbow:"🌈",closed_umbrella:"🌂",open_umbrella:"☂️",umbrella:"☔",parasol_on_ground:"⛱️",zap:"⚡",snowflake:"❄️",snowman_with_snow:"☃️",snowman:"⛄",comet:"☄️",fire:"🔥",droplet:"💧",ocean:"🌊",jack_o_lantern:"🎃",christmas_tree:"🎄",fireworks:"🎆",sparkler:"🎇",firecracker:"🧨",sparkles:"✨",balloon:"🎈",tada:"🎉",confetti_ball:"🎊",tanabata_tree:"🎋",bamboo:"🎍",dolls:"🎎",flags:"🎏",wind_chime:"🎐",rice_scene:"🎑",red_envelope:"🧧",ribbon:"🎀",gift:"🎁",reminder_ribbon:"🎗️",tickets:"🎟️",ticket:"🎫",medal_military:"🎖️",trophy:"🏆",medal_sports:"🏅","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉",soccer:"⚽",baseball:"⚾",softball:"🥎",basketball:"🏀",volleyball:"🏐",football:"🏈",rugby_football:"🏉",tennis:"🎾",flying_disc:"🥏",bowling:"🎳",cricket_game:"🏏",field_hockey:"🏑",ice_hockey:"🏒",lacrosse:"🥍",ping_pong:"🏓",badminton:"🏸",boxing_glove:"🥊",martial_arts_uniform:"🥋",goal_net:"🥅",golf:"⛳",ice_skate:"⛸️",fishing_pole_and_fish:"🎣",diving_mask:"🤿",running_shirt_with_sash:"🎽",ski:"🎿",sled:"🛷",curling_stone:"🥌",dart:"🎯",yo_yo:"🪀",kite:"🪁","8ball":"🎱",crystal_ball:"🔮",magic_wand:"🪄",nazar_amulet:"🧿",video_game:"🎮",joystick:"🕹️",slot_machine:"🎰",game_die:"🎲",jigsaw:"🧩",teddy_bear:"🧸",pinata:"🪅",nesting_dolls:"🪆",spades:"♠️",hearts:"♥️",diamonds:"♦️",clubs:"♣️",chess_pawn:"♟️",black_joker:"🃏",mahjong:"🀄",flower_playing_cards:"🎴",performing_arts:"🎭",framed_picture:"🖼️",art:"🎨",thread:"🧵",sewing_needle:"🪡",yarn:"🧶",knot:"🪢",eyeglasses:"👓",dark_sunglasses:"🕶️",goggles:"🥽",lab_coat:"🥼",safety_vest:"🦺",necktie:"👔",shirt:"👕",tshirt:"👕",jeans:"👖",scarf:"🧣",gloves:"🧤",coat:"🧥",socks:"🧦",dress:"👗",kimono:"👘",sari:"🥻",one_piece_swimsuit:"🩱",swim_brief:"🩲",shorts:"🩳",bikini:"👙",womans_clothes:"👚",purse:"👛",handbag:"👜",pouch:"👝",shopping:"🛍️",school_satchel:"🎒",thong_sandal:"🩴",mans_shoe:"👞",shoe:"👞",athletic_shoe:"👟",hiking_boot:"🥾",flat_shoe:"🥿",high_heel:"👠",sandal:"👡",ballet_shoes:"🩰",boot:"👢",crown:"👑",womans_hat:"👒",tophat:"🎩",mortar_board:"🎓",billed_cap:"🧢",military_helmet:"🪖",rescue_worker_helmet:"⛑️",prayer_beads:"📿",lipstick:"💄",ring:"💍",gem:"💎",mute:"🔇",speaker:"🔈",sound:"🔉",loud_sound:"🔊",loudspeaker:"📢",mega:"📣",postal_horn:"📯",bell:"🔔",no_bell:"🔕",musical_score:"🎼",musical_note:"🎵",notes:"🎶",studio_microphone:"🎙️",level_slider:"🎚️",control_knobs:"🎛️",microphone:"🎤",headphones:"🎧",radio:"📻",saxophone:"🎷",accordion:"🪗",guitar:"🎸",musical_keyboard:"🎹",trumpet:"🎺",violin:"🎻",banjo:"🪕",drum:"🥁",long_drum:"🪘",iphone:"📱",calling:"📲",phone:"☎️",telephone:"☎️",telephone_receiver:"📞",pager:"📟",fax:"📠",battery:"🔋",electric_plug:"🔌",computer:"💻",desktop_computer:"🖥️",printer:"🖨️",keyboard:"⌨️",computer_mouse:"🖱️",trackball:"🖲️",minidisc:"💽",floppy_disk:"💾",cd:"💿",dvd:"📀",abacus:"🧮",movie_camera:"🎥",film_strip:"🎞️",film_projector:"📽️",clapper:"🎬",tv:"📺",camera:"📷",camera_flash:"📸",video_camera:"📹",vhs:"📼",mag:"🔍",mag_right:"🔎",candle:"🕯️",bulb:"💡",flashlight:"🔦",izakaya_lantern:"🏮",lantern:"🏮",diya_lamp:"🪔",notebook_with_decorative_cover:"📔",closed_book:"📕",book:"📖",open_book:"📖",green_book:"📗",blue_book:"📘",orange_book:"📙",books:"📚",notebook:"📓",ledger:"📒",page_with_curl:"📃",scroll:"📜",page_facing_up:"📄",newspaper:"📰",newspaper_roll:"🗞️",bookmark_tabs:"📑",bookmark:"🔖",label:"🏷️",moneybag:"💰",coin:"🪙",yen:"💴",dollar:"💵",euro:"💶",pound:"💷",money_with_wings:"💸",credit_card:"💳",receipt:"🧾",chart:"💹",envelope:"✉️",email:"📧","e-mail":"📧",incoming_envelope:"📨",envelope_with_arrow:"📩",outbox_tray:"📤",inbox_tray:"📥",package:"📦",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",postbox:"📮",ballot_box:"🗳️",pencil2:"✏️",black_nib:"✒️",fountain_pen:"🖋️",pen:"🖊️",paintbrush:"🖌️",crayon:"🖍️",memo:"📝",pencil:"📝",briefcase:"💼",file_folder:"📁",open_file_folder:"📂",card_index_dividers:"🗂️",date:"📅",calendar:"📆",spiral_notepad:"🗒️",spiral_calendar:"🗓️",card_index:"📇",chart_with_upwards_trend:"📈",chart_with_downwards_trend:"📉",bar_chart:"📊",clipboard:"📋",pushpin:"📌",round_pushpin:"📍",paperclip:"📎",paperclips:"🖇️",straight_ruler:"📏",triangular_ruler:"📐",scissors:"✂️",card_file_box:"🗃️",file_cabinet:"🗄️",wastebasket:"🗑️",lock:"🔒",unlock:"🔓",lock_with_ink_pen:"🔏",closed_lock_with_key:"🔐",key:"🔑",old_key:"🗝️",hammer:"🔨",axe:"🪓",pick:"⛏️",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",dagger:"🗡️",crossed_swords:"⚔️",gun:"🔫",boomerang:"🪃",bow_and_arrow:"🏹",shield:"🛡️",carpentry_saw:"🪚",wrench:"🔧",screwdriver:"🪛",nut_and_bolt:"🔩",gear:"⚙️",clamp:"🗜️",balance_scale:"⚖️",probing_cane:"🦯",link:"🔗",chains:"⛓️",hook:"🪝",toolbox:"🧰",magnet:"🧲",ladder:"🪜",alembic:"⚗️",test_tube:"🧪",petri_dish:"🧫",dna:"🧬",microscope:"🔬",telescope:"🔭",satellite:"📡",syringe:"💉",drop_of_blood:"🩸",pill:"💊",adhesive_bandage:"🩹",stethoscope:"🩺",door:"🚪",elevator:"🛗",mirror:"🪞",window:"🪟",bed:"🛏️",couch_and_lamp:"🛋️",chair:"🪑",toilet:"🚽",plunger:"🪠",shower:"🚿",bathtub:"🛁",mouse_trap:"🪤",razor:"🪒",lotion_bottle:"🧴",safety_pin:"🧷",broom:"🧹",basket:"🧺",roll_of_paper:"🧻",bucket:"🪣",soap:"🧼",toothbrush:"🪥",sponge:"🧽",fire_extinguisher:"🧯",shopping_cart:"🛒",smoking:"🚬",coffin:"⚰️",headstone:"🪦",funeral_urn:"⚱️",moyai:"🗿",placard:"🪧",atm:"🏧",put_litter_in_its_place:"🚮",potable_water:"🚰",wheelchair:"♿",mens:"🚹",womens:"🚺",restroom:"🚻",baby_symbol:"🚼",wc:"🚾",passport_control:"🛂",customs:"🛃",baggage_claim:"🛄",left_luggage:"🛅",warning:"⚠️",children_crossing:"🚸",no_entry:"⛔",no_entry_sign:"🚫",no_bicycles:"🚳",no_smoking:"🚭",do_not_litter:"🚯","non-potable_water":"🚱",no_pedestrians:"🚷",no_mobile_phones:"📵",underage:"🔞",radioactive:"☢️",biohazard:"☣️",arrow_up:"⬆️",arrow_upper_right:"↗️",arrow_right:"➡️",arrow_lower_right:"↘️",arrow_down:"⬇️",arrow_lower_left:"↙️",arrow_left:"⬅️",arrow_upper_left:"↖️",arrow_up_down:"↕️",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",arrow_right_hook:"↪️",arrow_heading_up:"⤴️",arrow_heading_down:"⤵️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",back:"🔙",end:"🔚",on:"🔛",soon:"🔜",top:"🔝",place_of_worship:"🛐",atom_symbol:"⚛️",om:"🕉️",star_of_david:"✡️",wheel_of_dharma:"☸️",yin_yang:"☯️",latin_cross:"✝️",orthodox_cross:"☦️",star_and_crescent:"☪️",peace_symbol:"☮️",menorah:"🕎",six_pointed_star:"🔯",aries:"♈",taurus:"♉",gemini:"♊",cancer:"♋",leo:"♌",virgo:"♍",libra:"♎",scorpius:"♏",sagittarius:"♐",capricorn:"♑",aquarius:"♒",pisces:"♓",ophiuchus:"⛎",twisted_rightwards_arrows:"🔀",repeat:"🔁",repeat_one:"🔂",arrow_forward:"▶️",fast_forward:"⏩",next_track_button:"⏭️",play_or_pause_button:"⏯️",arrow_backward:"◀️",rewind:"⏪",previous_track_button:"⏮️",arrow_up_small:"🔼",arrow_double_up:"⏫",arrow_down_small:"🔽",arrow_double_down:"⏬",pause_button:"⏸️",stop_button:"⏹️",record_button:"⏺️",eject_button:"⏏️",cinema:"🎦",low_brightness:"🔅",high_brightness:"🔆",signal_strength:"📶",vibration_mode:"📳",mobile_phone_off:"📴",female_sign:"♀️",male_sign:"♂️",transgender_symbol:"⚧️",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",heavy_minus_sign:"➖",heavy_division_sign:"➗",infinity:"♾️",bangbang:"‼️",interrobang:"⁉️",question:"❓",grey_question:"❔",grey_exclamation:"❕",exclamation:"❗",heavy_exclamation_mark:"❗",wavy_dash:"〰️",currency_exchange:"💱",heavy_dollar_sign:"💲",medical_symbol:"⚕️",recycle:"♻️",fleur_de_lis:"⚜️",trident:"🔱",name_badge:"📛",beginner:"🔰",o:"⭕",white_check_mark:"✅",ballot_box_with_check:"☑️",heavy_check_mark:"✔️",x:"❌",negative_squared_cross_mark:"❎",curly_loop:"➰",loop:"➿",part_alternation_mark:"〽️",eight_spoked_asterisk:"✳️",eight_pointed_black_star:"✴️",sparkle:"❇️",copyright:"©️",registered:"®️",tm:"™️",hash:"#️⃣",asterisk:"*️⃣",zero:"0️⃣",one:"1️⃣",two:"2️⃣",three:"3️⃣",four:"4️⃣",five:"5️⃣",six:"6️⃣",seven:"7️⃣",eight:"8️⃣",nine:"9️⃣",keycap_ten:"🔟",capital_abcd:"🔠",abcd:"🔡",symbols:"🔣",abc:"🔤",a:"🅰️",ab:"🆎",b:"🅱️",cl:"🆑",cool:"🆒",free:"🆓",information_source:"ℹ️",id:"🆔",m:"Ⓜ️",new:"🆕",ng:"🆖",o2:"🅾️",ok:"🆗",parking:"🅿️",sos:"🆘",up:"🆙",vs:"🆚",koko:"🈁",sa:"🈂️",ideograph_advantage:"🉐",accept:"🉑",congratulations:"㊗️",secret:"㊙️",u6e80:"🈵",red_circle:"🔴",orange_circle:"🟠",yellow_circle:"🟡",green_circle:"🟢",large_blue_circle:"🔵",purple_circle:"🟣",brown_circle:"🟤",black_circle:"⚫",white_circle:"⚪",red_square:"🟥",orange_square:"🟧",yellow_square:"🟨",green_square:"🟩",blue_square:"🟦",purple_square:"🟪",brown_square:"🟫",black_large_square:"⬛",white_large_square:"⬜",black_medium_square:"◼️",white_medium_square:"◻️",black_medium_small_square:"◾",white_medium_small_square:"◽",black_small_square:"▪️",white_small_square:"▫️",large_orange_diamond:"🔶",large_blue_diamond:"🔷",small_orange_diamond:"🔸",small_blue_diamond:"🔹",small_red_triangle:"🔺",small_red_triangle_down:"🔻",diamond_shape_with_a_dot_inside:"💠",radio_button:"🔘",white_square_button:"🔳",black_square_button:"🔲",checkered_flag:"🏁",triangular_flag_on_post:"🚩",crossed_flags:"🎌",black_flag:"🏴",white_flag:"🏳️",rainbow_flag:"🏳️‍🌈",transgender_flag:"🏳️‍⚧️",pirate_flag:"🏴‍☠️",ascension_island:"🇦🇨",andorra:"🇦🇩",united_arab_emirates:"🇦🇪",afghanistan:"🇦🇫",antigua_barbuda:"🇦🇬",anguilla:"🇦🇮",albania:"🇦🇱",armenia:"🇦🇲",angola:"🇦🇴",antarctica:"🇦🇶",argentina:"🇦🇷",american_samoa:"🇦🇸",austria:"🇦🇹",australia:"🇦🇺",aruba:"🇦🇼",aland_islands:"🇦🇽",azerbaijan:"🇦🇿",bosnia_herzegovina:"🇧🇦",barbados:"🇧🇧",bangladesh:"🇧🇩",belgium:"🇧🇪",burkina_faso:"🇧🇫",bulgaria:"🇧🇬",bahrain:"🇧🇭",burundi:"🇧🇮",benin:"🇧🇯",st_barthelemy:"🇧🇱",bermuda:"🇧🇲",brunei:"🇧🇳",bolivia:"🇧🇴",caribbean_netherlands:"🇧🇶",brazil:"🇧🇷",bahamas:"🇧🇸",bhutan:"🇧🇹",bouvet_island:"🇧🇻",botswana:"🇧🇼",belarus:"🇧🇾",belize:"🇧🇿",canada:"🇨🇦",cocos_islands:"🇨🇨",congo_kinshasa:"🇨🇩",central_african_republic:"🇨🇫",congo_brazzaville:"🇨🇬",switzerland:"🇨🇭",cote_divoire:"🇨🇮",cook_islands:"🇨🇰",chile:"🇨🇱",cameroon:"🇨🇲",cn:"🇨🇳",colombia:"🇨🇴",clipperton_island:"🇨🇵",costa_rica:"🇨🇷",cuba:"🇨🇺",cape_verde:"🇨🇻",curacao:"🇨🇼",christmas_island:"🇨🇽",cyprus:"🇨🇾",czech_republic:"🇨🇿",de:"🇩🇪",diego_garcia:"🇩🇬",djibouti:"🇩🇯",denmark:"🇩🇰",dominica:"🇩🇲",dominican_republic:"🇩🇴",algeria:"🇩🇿",ceuta_melilla:"🇪🇦",ecuador:"🇪🇨",estonia:"🇪🇪",egypt:"🇪🇬",western_sahara:"🇪🇭",eritrea:"🇪🇷",es:"🇪🇸",ethiopia:"🇪🇹",eu:"🇪🇺",european_union:"🇪🇺",finland:"🇫🇮",fiji:"🇫🇯",falkland_islands:"🇫🇰",micronesia:"🇫🇲",faroe_islands:"🇫🇴",fr:"🇫🇷",gabon:"🇬🇦",gb:"🇬🇧",uk:"🇬🇧",grenada:"🇬🇩",georgia:"🇬🇪",french_guiana:"🇬🇫",guernsey:"🇬🇬",ghana:"🇬🇭",gibraltar:"🇬🇮",greenland:"🇬🇱",gambia:"🇬🇲",guinea:"🇬🇳",guadeloupe:"🇬🇵",equatorial_guinea:"🇬🇶",greece:"🇬🇷",south_georgia_south_sandwich_islands:"🇬🇸",guatemala:"🇬🇹",guam:"🇬🇺",guinea_bissau:"🇬🇼",guyana:"🇬🇾",hong_kong:"🇭🇰",heard_mcdonald_islands:"🇭🇲",honduras:"🇭🇳",croatia:"🇭🇷",haiti:"🇭🇹",hungary:"🇭🇺",canary_islands:"🇮🇨",indonesia:"🇮🇩",ireland:"🇮🇪",israel:"🇮🇱",isle_of_man:"🇮🇲",india:"🇮🇳",british_indian_ocean_territory:"🇮🇴",iraq:"🇮🇶",iran:"🇮🇷",iceland:"🇮🇸",it:"🇮🇹",jersey:"🇯🇪",jamaica:"🇯🇲",jordan:"🇯🇴",jp:"🇯🇵",kenya:"🇰🇪",kyrgyzstan:"🇰🇬",cambodia:"🇰🇭",kiribati:"🇰🇮",comoros:"🇰🇲",st_kitts_nevis:"🇰🇳",north_korea:"🇰🇵",kr:"🇰🇷",kuwait:"🇰🇼",cayman_islands:"🇰🇾",kazakhstan:"🇰🇿",laos:"🇱🇦",lebanon:"🇱🇧",st_lucia:"🇱🇨",liechtenstein:"🇱🇮",sri_lanka:"🇱🇰",liberia:"🇱🇷",lesotho:"🇱🇸",lithuania:"🇱🇹",luxembourg:"🇱🇺",latvia:"🇱🇻",libya:"🇱🇾",morocco:"🇲🇦",monaco:"🇲🇨",moldova:"🇲🇩",montenegro:"🇲🇪",st_martin:"🇲🇫",madagascar:"🇲🇬",marshall_islands:"🇲🇭",macedonia:"🇲🇰",mali:"🇲🇱",myanmar:"🇲🇲",mongolia:"🇲🇳",macau:"🇲🇴",northern_mariana_islands:"🇲🇵",martinique:"🇲🇶",mauritania:"🇲🇷",montserrat:"🇲🇸",malta:"🇲🇹",mauritius:"🇲🇺",maldives:"🇲🇻",malawi:"🇲🇼",mexico:"🇲🇽",malaysia:"🇲🇾",mozambique:"🇲🇿",namibia:"🇳🇦",new_caledonia:"🇳🇨",niger:"🇳🇪",norfolk_island:"🇳🇫",nigeria:"🇳🇬",nicaragua:"🇳🇮",netherlands:"🇳🇱",norway:"🇳🇴",nepal:"🇳🇵",nauru:"🇳🇷",niue:"🇳🇺",new_zealand:"🇳🇿",oman:"🇴🇲",panama:"🇵🇦",peru:"🇵🇪",french_polynesia:"🇵🇫",papua_new_guinea:"🇵🇬",philippines:"🇵🇭",pakistan:"🇵🇰",poland:"🇵🇱",st_pierre_miquelon:"🇵🇲",pitcairn_islands:"🇵🇳",puerto_rico:"🇵🇷",palestinian_territories:"🇵🇸",portugal:"🇵🇹",palau:"🇵🇼",paraguay:"🇵🇾",qatar:"🇶🇦",reunion:"🇷🇪",romania:"🇷🇴",serbia:"🇷🇸",ru:"🇷🇺",rwanda:"🇷🇼",saudi_arabia:"🇸🇦",solomon_islands:"🇸🇧",seychelles:"🇸🇨",sudan:"🇸🇩",sweden:"🇸🇪",singapore:"🇸🇬",st_helena:"🇸🇭",slovenia:"🇸🇮",svalbard_jan_mayen:"🇸🇯",slovakia:"🇸🇰",sierra_leone:"🇸🇱",san_marino:"🇸🇲",senegal:"🇸🇳",somalia:"🇸🇴",suriname:"🇸🇷",south_sudan:"🇸🇸",sao_tome_principe:"🇸🇹",el_salvador:"🇸🇻",sint_maarten:"🇸🇽",syria:"🇸🇾",swaziland:"🇸🇿",tristan_da_cunha:"🇹🇦",turks_caicos_islands:"🇹🇨",chad:"🇹🇩",french_southern_territories:"🇹🇫",togo:"🇹🇬",thailand:"🇹🇭",tajikistan:"🇹🇯",tokelau:"🇹🇰",timor_leste:"🇹🇱",turkmenistan:"🇹🇲",tunisia:"🇹🇳",tonga:"🇹🇴",tr:"🇹🇷",trinidad_tobago:"🇹🇹",tuvalu:"🇹🇻",taiwan:"🇹🇼",tanzania:"🇹🇿",ukraine:"🇺🇦",uganda:"🇺🇬",us_outlying_islands:"🇺🇲",united_nations:"🇺🇳",us:"🇺🇸",uruguay:"🇺🇾",uzbekistan:"🇺🇿",vatican_city:"🇻🇦",st_vincent_grenadines:"🇻🇨",venezuela:"🇻🇪",british_virgin_islands:"🇻🇬",us_virgin_islands:"🇻🇮",vietnam:"🇻🇳",vanuatu:"🇻🇺",wallis_futuna:"🇼🇫",samoa:"🇼🇸",kosovo:"🇽🇰",yemen:"🇾🇪",mayotte:"🇾🇹",south_africa:"🇿🇦",zambia:"🇿🇲",zimbabwe:"🇿🇼",england:"🏴󠁧󠁢󠁥󠁮󠁧󠁿",scotland:"🏴󠁧󠁢󠁳󠁣󠁴󠁿",wales:"🏴󠁧󠁢󠁷󠁬󠁳󠁿"};var Ei,lh;function pB(){return lh||(lh=1,Ei={angry:[">:(",">:-("],blush:[':")',':-")'],broken_heart:["</3","<\\3"],confused:[":/",":-/"],cry:[":'(",":'-(",":,(",":,-("],frowning:[":(",":-("],heart:["<3"],imp:["]:(","]:-("],innocent:["o:)","O:)","o:-)","O:-)","0:)","0:-)"],joy:[":')",":'-)",":,)",":,-)",":'D",":'-D",":,D",":,-D"],kissing:[":*",":-*"],laughing:["x-)","X-)"],neutral_face:[":|",":-|"],open_mouth:[":o",":-o",":O",":-O"],rage:[":@",":-@"],smile:[":D",":-D"],smiley:[":)",":-)"],smiling_imp:["]:)","]:-)"],sob:[":,'(",":,'-(",";(",";-("],stuck_out_tongue:[":P",":-P"],sunglasses:["8-)","B-)"],sweat:[",:(",",:-("],sweat_smile:[",:)",",:-)"],unamused:[":s",":-S",":z",":-Z",":$",":-$"],wink:[";)",";-)"]}),Ei}var xi,uh;function hB(){return uh||(uh=1,xi=function(t,r){return t[r].content}),xi}var Si,fh;function mB(){return fh||(fh=1,Si=function(t,r,o,s,a){var i=t.utils.arrayReplaceAt,c=t.utils.lib.ucmicro,l=new RegExp([c.Z.source,c.P.source,c.Cc.source].join("|"));function f(d,u,g){var p,_=0,m=[];return d.replace(a,function(b,h,y){var w;if(o.hasOwnProperty(b)){if(w=o[b],h>0&&!l.test(y[h-1])||h+b.length<y.length&&!l.test(y[h+b.length]))return}else w=b.slice(1,-1);h>_&&(p=new g("text","",0),p.content=d.slice(_,h),m.push(p)),p=new g("emoji","",0),p.markup=w,p.content=r[w],m.push(p),_=h+b.length}),_<d.length&&(p=new g("text","",0),p.content=d.slice(_),m.push(p)),m}return function(u){var g,p,_,m,b,h=u.tokens,y=0;for(p=0,_=h.length;p<_;p++)if(h[p].type==="inline")for(m=h[p].children,g=m.length-1;g>=0;g--)b=m[g],(b.type==="link_open"||b.type==="link_close")&&b.info==="auto"&&(y-=b.nesting),b.type==="text"&&y===0&&s.test(b.content)&&(h[p].children=m=i(m,g,f(b.content,b.level,u.Token)))}}),Si}var Ai,dh;function gB(){if(dh)return Ai;dh=1;function e(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}return Ai=function(r){var o=r.defs,s;r.enabled.length&&(o=Object.keys(o).reduce(function(f,d){return r.enabled.indexOf(d)>=0&&(f[d]=o[d]),f},{})),s=Object.keys(r.shortcuts).reduce(function(f,d){return o[d]?Array.isArray(r.shortcuts[d])?(r.shortcuts[d].forEach(function(u){f[u]=d}),f):(f[r.shortcuts[d]]=d,f):f},{});var a=Object.keys(o),i;a.length===0?i="^$":i=a.map(function(f){return":"+f+":"}).concat(Object.keys(s)).sort().reverse().map(function(f){return e(f)}).join("|");var c=RegExp(i),l=RegExp(i,"g");return{defs:o,shortcuts:s,scanRE:c,replaceRE:l}},Ai}var Ti,ph;function _B(){if(ph)return Ti;ph=1;var e=hB(),t=mB(),r=gB();return Ti=function(s,a){var i={defs:{},shortcuts:{},enabled:[]},c=r(s.utils.assign({},i,a||{}));s.renderer.rules.emoji=e,s.core.ruler.after("linkify","emoji",t(s,c.defs,c.shortcuts,c.scanRE,c.replaceRE))},Ti}var Ni,hh;function bB(){if(hh)return Ni;hh=1;var e=dB,t=pB(),r=_B();return Ni=function(s,a){var i={defs:e,shortcuts:t,enabled:[]},c=s.utils.assign({},i,a||{});r(s,c)},Ni}var yB=bB();const wB=xn(yB);var Bi,mh;function kB(){if(mh)return Bi;mh=1;function e(o,s){var a,i,c=o.attrs[o.attrIndex("href")][1];for(a=0;a<s.length;++a){if(i=s[a],typeof i.matcher=="function"){if(i.matcher(c,i))return i;continue}return i}}function t(o,s,a){Object.keys(a).forEach(function(i){var c,l=a[i];i==="className"&&(i="class"),c=s[o].attrIndex(i),c<0?s[o].attrPush([i,l]):s[o].attrs[c][1]=l})}function r(o,s){s?s=Array.isArray(s)?s:[s]:s=[],Object.freeze(s);var a=o.renderer.rules.link_open||this.defaultRender;o.renderer.rules.link_open=function(i,c,l,f,d){var u=e(i[c],s),g=u&&u.attrs;return g&&t(c,i,g),a(i,c,l,f,d)}}return r.defaultRender=function(o,s,a,i,c){return c.renderToken(o,s,a)},Bi=r,Bi}var vB=kB();const gh=xn(vB);var Ii,_h;function CB(){if(_h)return Ii;_h=1;var e=!0,t=!1,r=!1;Ii=function(m,b){b&&(e=!b.enabled,t=!!b.label,r=!!b.labelAfter),m.core.ruler.after("inline","github-task-lists",function(h){for(var y=h.tokens,w=2;w<y.length;w++)a(y,w)&&(i(y[w],h.Token),o(y[w-2],"class","task-list-item"+(e?"":" enabled")),o(y[s(y,w-2)],"class","contains-task-list"))})};function o(m,b,h){var y=m.attrIndex(b),w=[b,h];y<0?m.attrPush(w):m.attrs[y]=w}function s(m,b){for(var h=m[b].level-1,y=b-1;y>=0;y--)if(m[y].level===h)return y;return-1}function a(m,b){return u(m[b])&&g(m[b-1])&&p(m[b-2])&&_(m[b])}function i(m,b){if(m.children.unshift(c(m,b)),m.children[1].content=m.children[1].content.slice(3),m.content=m.content.slice(3),t)if(r){m.children.pop();var h="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);m.children[0].content=m.children[0].content.slice(0,-1)+' id="'+h+'">',m.children.push(d(m.content,h,b))}else m.children.unshift(l(b)),m.children.push(f(b))}function c(m,b){var h=new b("html_inline","",0),y=e?' disabled="" ':"";return m.content.indexOf("[ ] ")===0?h.content='<input class="task-list-item-checkbox"'+y+'type="checkbox">':(m.content.indexOf("[x] ")===0||m.content.indexOf("[X] ")===0)&&(h.content='<input class="task-list-item-checkbox" checked=""'+y+'type="checkbox">'),h}function l(m){var b=new m("html_inline","",0);return b.content="<label>",b}function f(m){var b=new m("html_inline","",0);return b.content="</label>",b}function d(m,b,h){var y=new h("html_inline","",0);return y.content='<label class="task-list-item-label" for="'+b+'">'+m+"</label>",y.attrs=[{for:b}],y}function u(m){return m.type==="inline"}function g(m){return m.type==="paragraph_open"}function p(m){return m.type==="list_item_open"}function _(m){return m.content.indexOf("[ ] ")===0||m.content.indexOf("[x] ")===0||m.content.indexOf("[X] ")===0}return Ii}var EB=CB();const xB=xn(EB);var Eo={exports:{}},ve={},xo={exports:{}},yn={},bh;function yh(){if(bh)return yn;bh=1;function e(){var a={};return a["align-content"]=!1,a["align-items"]=!1,a["align-self"]=!1,a["alignment-adjust"]=!1,a["alignment-baseline"]=!1,a.all=!1,a["anchor-point"]=!1,a.animation=!1,a["animation-delay"]=!1,a["animation-direction"]=!1,a["animation-duration"]=!1,a["animation-fill-mode"]=!1,a["animation-iteration-count"]=!1,a["animation-name"]=!1,a["animation-play-state"]=!1,a["animation-timing-function"]=!1,a.azimuth=!1,a["backface-visibility"]=!1,a.background=!0,a["background-attachment"]=!0,a["background-clip"]=!0,a["background-color"]=!0,a["background-image"]=!0,a["background-origin"]=!0,a["background-position"]=!0,a["background-repeat"]=!0,a["background-size"]=!0,a["baseline-shift"]=!1,a.binding=!1,a.bleed=!1,a["bookmark-label"]=!1,a["bookmark-level"]=!1,a["bookmark-state"]=!1,a.border=!0,a["border-bottom"]=!0,a["border-bottom-color"]=!0,a["border-bottom-left-radius"]=!0,a["border-bottom-right-radius"]=!0,a["border-bottom-style"]=!0,a["border-bottom-width"]=!0,a["border-collapse"]=!0,a["border-color"]=!0,a["border-image"]=!0,a["border-image-outset"]=!0,a["border-image-repeat"]=!0,a["border-image-slice"]=!0,a["border-image-source"]=!0,a["border-image-width"]=!0,a["border-left"]=!0,a["border-left-color"]=!0,a["border-left-style"]=!0,a["border-left-width"]=!0,a["border-radius"]=!0,a["border-right"]=!0,a["border-right-color"]=!0,a["border-right-style"]=!0,a["border-right-width"]=!0,a["border-spacing"]=!0,a["border-style"]=!0,a["border-top"]=!0,a["border-top-color"]=!0,a["border-top-left-radius"]=!0,a["border-top-right-radius"]=!0,a["border-top-style"]=!0,a["border-top-width"]=!0,a["border-width"]=!0,a.bottom=!1,a["box-decoration-break"]=!0,a["box-shadow"]=!0,a["box-sizing"]=!0,a["box-snap"]=!0,a["box-suppress"]=!0,a["break-after"]=!0,a["break-before"]=!0,a["break-inside"]=!0,a["caption-side"]=!1,a.chains=!1,a.clear=!0,a.clip=!1,a["clip-path"]=!1,a["clip-rule"]=!1,a.color=!0,a["color-interpolation-filters"]=!0,a["column-count"]=!1,a["column-fill"]=!1,a["column-gap"]=!1,a["column-rule"]=!1,a["column-rule-color"]=!1,a["column-rule-style"]=!1,a["column-rule-width"]=!1,a["column-span"]=!1,a["column-width"]=!1,a.columns=!1,a.contain=!1,a.content=!1,a["counter-increment"]=!1,a["counter-reset"]=!1,a["counter-set"]=!1,a.crop=!1,a.cue=!1,a["cue-after"]=!1,a["cue-before"]=!1,a.cursor=!1,a.direction=!1,a.display=!0,a["display-inside"]=!0,a["display-list"]=!0,a["display-outside"]=!0,a["dominant-baseline"]=!1,a.elevation=!1,a["empty-cells"]=!1,a.filter=!1,a.flex=!1,a["flex-basis"]=!1,a["flex-direction"]=!1,a["flex-flow"]=!1,a["flex-grow"]=!1,a["flex-shrink"]=!1,a["flex-wrap"]=!1,a.float=!1,a["float-offset"]=!1,a["flood-color"]=!1,a["flood-opacity"]=!1,a["flow-from"]=!1,a["flow-into"]=!1,a.font=!0,a["font-family"]=!0,a["font-feature-settings"]=!0,a["font-kerning"]=!0,a["font-language-override"]=!0,a["font-size"]=!0,a["font-size-adjust"]=!0,a["font-stretch"]=!0,a["font-style"]=!0,a["font-synthesis"]=!0,a["font-variant"]=!0,a["font-variant-alternates"]=!0,a["font-variant-caps"]=!0,a["font-variant-east-asian"]=!0,a["font-variant-ligatures"]=!0,a["font-variant-numeric"]=!0,a["font-variant-position"]=!0,a["font-weight"]=!0,a.grid=!1,a["grid-area"]=!1,a["grid-auto-columns"]=!1,a["grid-auto-flow"]=!1,a["grid-auto-rows"]=!1,a["grid-column"]=!1,a["grid-column-end"]=!1,a["grid-column-start"]=!1,a["grid-row"]=!1,a["grid-row-end"]=!1,a["grid-row-start"]=!1,a["grid-template"]=!1,a["grid-template-areas"]=!1,a["grid-template-columns"]=!1,a["grid-template-rows"]=!1,a["hanging-punctuation"]=!1,a.height=!0,a.hyphens=!1,a.icon=!1,a["image-orientation"]=!1,a["image-resolution"]=!1,a["ime-mode"]=!1,a["initial-letters"]=!1,a["inline-box-align"]=!1,a["justify-content"]=!1,a["justify-items"]=!1,a["justify-self"]=!1,a.left=!1,a["letter-spacing"]=!0,a["lighting-color"]=!0,a["line-box-contain"]=!1,a["line-break"]=!1,a["line-grid"]=!1,a["line-height"]=!1,a["line-snap"]=!1,a["line-stacking"]=!1,a["line-stacking-ruby"]=!1,a["line-stacking-shift"]=!1,a["line-stacking-strategy"]=!1,a["list-style"]=!0,a["list-style-image"]=!0,a["list-style-position"]=!0,a["list-style-type"]=!0,a.margin=!0,a["margin-bottom"]=!0,a["margin-left"]=!0,a["margin-right"]=!0,a["margin-top"]=!0,a["marker-offset"]=!1,a["marker-side"]=!1,a.marks=!1,a.mask=!1,a["mask-box"]=!1,a["mask-box-outset"]=!1,a["mask-box-repeat"]=!1,a["mask-box-slice"]=!1,a["mask-box-source"]=!1,a["mask-box-width"]=!1,a["mask-clip"]=!1,a["mask-image"]=!1,a["mask-origin"]=!1,a["mask-position"]=!1,a["mask-repeat"]=!1,a["mask-size"]=!1,a["mask-source-type"]=!1,a["mask-type"]=!1,a["max-height"]=!0,a["max-lines"]=!1,a["max-width"]=!0,a["min-height"]=!0,a["min-width"]=!0,a["move-to"]=!1,a["nav-down"]=!1,a["nav-index"]=!1,a["nav-left"]=!1,a["nav-right"]=!1,a["nav-up"]=!1,a["object-fit"]=!1,a["object-position"]=!1,a.opacity=!1,a.order=!1,a.orphans=!1,a.outline=!1,a["outline-color"]=!1,a["outline-offset"]=!1,a["outline-style"]=!1,a["outline-width"]=!1,a.overflow=!1,a["overflow-wrap"]=!1,a["overflow-x"]=!1,a["overflow-y"]=!1,a.padding=!0,a["padding-bottom"]=!0,a["padding-left"]=!0,a["padding-right"]=!0,a["padding-top"]=!0,a.page=!1,a["page-break-after"]=!1,a["page-break-before"]=!1,a["page-break-inside"]=!1,a["page-policy"]=!1,a.pause=!1,a["pause-after"]=!1,a["pause-before"]=!1,a.perspective=!1,a["perspective-origin"]=!1,a.pitch=!1,a["pitch-range"]=!1,a["play-during"]=!1,a.position=!1,a["presentation-level"]=!1,a.quotes=!1,a["region-fragment"]=!1,a.resize=!1,a.rest=!1,a["rest-after"]=!1,a["rest-before"]=!1,a.richness=!1,a.right=!1,a.rotation=!1,a["rotation-point"]=!1,a["ruby-align"]=!1,a["ruby-merge"]=!1,a["ruby-position"]=!1,a["shape-image-threshold"]=!1,a["shape-outside"]=!1,a["shape-margin"]=!1,a.size=!1,a.speak=!1,a["speak-as"]=!1,a["speak-header"]=!1,a["speak-numeral"]=!1,a["speak-punctuation"]=!1,a["speech-rate"]=!1,a.stress=!1,a["string-set"]=!1,a["tab-size"]=!1,a["table-layout"]=!1,a["text-align"]=!0,a["text-align-last"]=!0,a["text-combine-upright"]=!0,a["text-decoration"]=!0,a["text-decoration-color"]=!0,a["text-decoration-line"]=!0,a["text-decoration-skip"]=!0,a["text-decoration-style"]=!0,a["text-emphasis"]=!0,a["text-emphasis-color"]=!0,a["text-emphasis-position"]=!0,a["text-emphasis-style"]=!0,a["text-height"]=!0,a["text-indent"]=!0,a["text-justify"]=!0,a["text-orientation"]=!0,a["text-overflow"]=!0,a["text-shadow"]=!0,a["text-space-collapse"]=!0,a["text-transform"]=!0,a["text-underline-position"]=!0,a["text-wrap"]=!0,a.top=!1,a.transform=!1,a["transform-origin"]=!1,a["transform-style"]=!1,a.transition=!1,a["transition-delay"]=!1,a["transition-duration"]=!1,a["transition-property"]=!1,a["transition-timing-function"]=!1,a["unicode-bidi"]=!1,a["vertical-align"]=!1,a.visibility=!1,a["voice-balance"]=!1,a["voice-duration"]=!1,a["voice-family"]=!1,a["voice-pitch"]=!1,a["voice-range"]=!1,a["voice-rate"]=!1,a["voice-stress"]=!1,a["voice-volume"]=!1,a.volume=!1,a["white-space"]=!1,a.widows=!1,a.width=!0,a["will-change"]=!1,a["word-break"]=!0,a["word-spacing"]=!0,a["word-wrap"]=!0,a["wrap-flow"]=!1,a["wrap-through"]=!1,a["writing-mode"]=!1,a["z-index"]=!1,a}function t(a,i,c){}function r(a,i,c){}var o=/javascript\s*\:/img;function s(a,i){return o.test(i)?"":i}return yn.whiteList=e(),yn.getDefaultWhiteList=e,yn.onAttr=t,yn.onIgnoreAttr=r,yn.safeAttrValue=s,yn}var $i,wh;function kh(){return wh||(wh=1,$i={indexOf:function(e,t){var r,o;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var o,s;if(Array.prototype.forEach)return e.forEach(t,r);for(o=0,s=e.length;o<s;o++)t.call(r,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),$i}var Ri,vh;function SB(){if(vh)return Ri;vh=1;var e=kh();function t(r,o){r=e.trimRight(r),r[r.length-1]!==";"&&(r+=";");var s=r.length,a=!1,i=0,c=0,l="";function f(){if(!a){var g=e.trim(r.slice(i,c)),p=g.indexOf(":");if(p!==-1){var _=e.trim(g.slice(0,p)),m=e.trim(g.slice(p+1));if(_){var b=o(i,l.length,_,m,g);b&&(l+=b+"; ")}}}i=c+1}for(;c<s;c++){var d=r[c];if(d==="/"&&r[c+1]==="*"){var u=r.indexOf("*/",c+2);if(u===-1)break;c=u+1,i=c+1,a=!1}else d==="("?a=!0:d===")"?a=!1:d===";"?a||f():d===`
493
+ `&&f()}return e.trim(l)}return Ri=t,Ri}var Oi,Ch;function AB(){if(Ch)return Oi;Ch=1;var e=yh(),t=SB();kh();function r(a){return a==null}function o(a){var i={};for(var c in a)i[c]=a[c];return i}function s(a){a=o(a||{}),a.whiteList=a.whiteList||e.whiteList,a.onAttr=a.onAttr||e.onAttr,a.onIgnoreAttr=a.onIgnoreAttr||e.onIgnoreAttr,a.safeAttrValue=a.safeAttrValue||e.safeAttrValue,this.options=a}return s.prototype.process=function(a){if(a=a||"",a=a.toString(),!a)return"";var i=this,c=i.options,l=c.whiteList,f=c.onAttr,d=c.onIgnoreAttr,u=c.safeAttrValue,g=t(a,function(p,_,m,b,h){var y=l[m],w=!1;if(y===!0?w=y:typeof y=="function"?w=y(b):y instanceof RegExp&&(w=y.test(b)),w!==!0&&(w=!1),b=u(m,b),!!b){var k={position:_,sourcePosition:p,source:h,isWhite:w};if(w){var E=f(m,b,k);return r(E)?m+":"+b:E}else{var E=d(m,b,k);if(!r(E))return E}}});return g},Oi=s,Oi}var Eh;function Mi(){return Eh||(Eh=1,function(e,t){var r=yh(),o=AB();function s(i,c){var l=new o(c);return l.process(i)}t=e.exports=s,t.FilterCSS=o;for(var a in r)t[a]=r[a];typeof window<"u"&&(window.filterCSS=e.exports)}(xo,xo.exports)),xo.exports}var zi,xh;function Li(){return xh||(xh=1,zi={indexOf:function(e,t){var r,o;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,o=e.length;r<o;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var o,s;if(Array.prototype.forEach)return e.forEach(t,r);for(o=0,s=e.length;o<s;o++)t.call(r,e[o],o,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}}),zi}var Sh;function Ah(){if(Sh)return ve;Sh=1;var e=Mi().FilterCSS,t=Mi().getDefaultWhiteList,r=Li();function o(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new e;function a(R,O,z){}function i(R,O,z){}function c(R,O,z){}function l(R,O,z){}function f(R){return R.replace(u,"&lt;").replace(g,"&gt;")}function d(R,O,z,q){if(z=B(z),O==="href"||O==="src"){if(z=r.trim(z),z==="#")return"#";if(!(z.substr(0,7)==="http://"||z.substr(0,8)==="https://"||z.substr(0,7)==="mailto:"||z.substr(0,4)==="tel:"||z.substr(0,11)==="data:image/"||z.substr(0,6)==="ftp://"||z.substr(0,2)==="./"||z.substr(0,3)==="../"||z[0]==="#"||z[0]==="/"))return""}else if(O==="background"){if(y.lastIndex=0,y.test(z))return""}else if(O==="style"){if(w.lastIndex=0,w.test(z)||(k.lastIndex=0,k.test(z)&&(y.lastIndex=0,y.test(z))))return"";q!==!1&&(q=q||s,z=q.process(z))}return z=$(z),z}var u=/</g,g=/>/g,p=/"/g,_=/&quot;/g,m=/&#([a-zA-Z0-9]*);?/gim,b=/&colon;?/gim,h=/&newline;?/gim,y=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,k=/u\s*r\s*l\s*\(.*/gi;function E(R){return R.replace(p,"&quot;")}function C(R){return R.replace(_,'"')}function x(R){return R.replace(m,function(z,q){return q[0]==="x"||q[0]==="X"?String.fromCharCode(parseInt(q.substr(1),16)):String.fromCharCode(parseInt(q,10))})}function S(R){return R.replace(b,":").replace(h," ")}function N(R){for(var O="",z=0,q=R.length;z<q;z++)O+=R.charCodeAt(z)<32?" ":R.charAt(z);return r.trim(O)}function B(R){return R=C(R),R=x(R),R=S(R),R=N(R),R}function $(R){return R=E(R),R=f(R),R}function L(){return""}function G(R,O){typeof O!="function"&&(O=function(){});var z=!Array.isArray(R);function q(Y){return z?!0:r.indexOf(R,Y)!==-1}var P=[],ee=!1;return{onIgnoreTag:function(Y,de,_e){if(q(Y))if(_e.isClosing){var we="[/removed]",$e=_e.position+we.length;return P.push([ee!==!1?ee:_e.position,$e]),ee=!1,we}else return ee||(ee=_e.position),"[removed]";else return O(Y,de,_e)},remove:function(Y){var de="",_e=0;return r.forEach(P,function(we){de+=Y.slice(_e,we[0]),_e=we[1]}),de+=Y.slice(_e),de}}}function I(R){for(var O="",z=0;z<R.length;){var q=R.indexOf("<!--",z);if(q===-1){O+=R.slice(z);break}O+=R.slice(z,q);var P=R.indexOf("-->",q);if(P===-1)break;z=P+3}return O}function D(R){var O=R.split("");return O=O.filter(function(z){var q=z.charCodeAt(0);return q===127?!1:q<=31?q===10||q===13:!0}),O.join("")}return ve.whiteList=o(),ve.getDefaultWhiteList=o,ve.onTag=a,ve.onIgnoreTag=i,ve.onTagAttr=c,ve.onIgnoreTagAttr=l,ve.safeAttrValue=d,ve.escapeHtml=f,ve.escapeQuote=E,ve.unescapeQuote=C,ve.escapeHtmlEntities=x,ve.escapeDangerHtml5Entities=S,ve.clearNonPrintableCharacter=N,ve.friendlyAttrValue=B,ve.escapeAttrValue=$,ve.onIgnoreTagStripAll=L,ve.StripTagBody=G,ve.stripCommentTag=I,ve.stripBlankChar=D,ve.attributeWrapSign='"',ve.cssFilter=s,ve.getDefaultCSSWhiteList=t,ve}var So={},Th;function Nh(){if(Th)return So;Th=1;var e=Li();function t(u){var g=e.spaceIndex(u),p;return g===-1?p=u.slice(1,-1):p=u.slice(1,g+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function r(u){return u.slice(0,2)==="</"}function o(u,g,p){var _="",m=0,b=!1,h=!1,y=0,w=u.length,k="",E="";e:for(y=0;y<w;y++){var C=u.charAt(y);if(b===!1){if(C==="<"){b=y;continue}}else if(h===!1){if(C==="<"){_+=p(u.slice(m,y)),b=y,m=y;continue}if(C===">"||y===w-1){_+=p(u.slice(m,b)),E=u.slice(b,y+1),k=t(E),_+=g(b,_.length,k,E,r(E)),m=y+1,b=!1;continue}if(C==='"'||C==="'")for(var x=1,S=u.charAt(y-x);S.trim()===""||S==="=";){if(S==="="){h=C;continue e}S=u.charAt(y-++x)}}else if(C===h){h=!1;continue}}return m<w&&(_+=p(u.substr(m))),_}var s=/[^a-zA-Z0-9\\_:.-]/gim;function a(u,g){var p=0,_=0,m=[],b=!1,h=u.length;function y(x,S){if(x=e.trim(x),x=x.replace(s,"").toLowerCase(),!(x.length<1)){var N=g(x,S||"");N&&m.push(N)}}for(var w=0;w<h;w++){var k=u.charAt(w),E,C;if(b===!1&&k==="="){b=u.slice(p,w),p=w+1,_=u.charAt(p)==='"'||u.charAt(p)==="'"?p:c(u,w+1);continue}if(b!==!1&&w===_){if(C=u.indexOf(k,w+1),C===-1)break;E=e.trim(u.slice(_+1,C)),y(b,E),b=!1,w=C,p=w+1;continue}if(/\s|\n|\t/.test(k))if(u=u.replace(/\s|\n|\t/g," "),b===!1)if(C=i(u,w),C===-1){E=e.trim(u.slice(p,w)),y(E),b=!1,p=w+1;continue}else{w=C-1;continue}else if(C=l(u,w-1),C===-1){E=e.trim(u.slice(p,w)),E=d(E),y(b,E),b=!1,p=w+1;continue}else continue}return p<u.length&&(b===!1?y(u.slice(p)):y(b,d(e.trim(u.slice(p))))),e.trim(m.join(" "))}function i(u,g){for(;g<u.length;g++){var p=u[g];if(p!==" ")return p==="="?g:-1}}function c(u,g){for(;g<u.length;g++){var p=u[g];if(p!==" ")return p==="'"||p==='"'?g:-1}}function l(u,g){for(;g>0;g--){var p=u[g];if(p!==" ")return p==="="?g:-1}}function f(u){return u[0]==='"'&&u[u.length-1]==='"'||u[0]==="'"&&u[u.length-1]==="'"}function d(u){return f(u)?u.substr(1,u.length-2):u}return So.parseTag=o,So.parseAttr=a,So}var Di,Bh;function TB(){if(Bh)return Di;Bh=1;var e=Mi().FilterCSS,t=Ah(),r=Nh(),o=r.parseTag,s=r.parseAttr,a=Li();function i(u){return u==null}function c(u){var g=a.spaceIndex(u);if(g===-1)return{html:"",closing:u[u.length-2]==="/"};u=a.trim(u.slice(g+1,-1));var p=u[u.length-1]==="/";return p&&(u=a.trim(u.slice(0,-1))),{html:u,closing:p}}function l(u){var g={};for(var p in u)g[p]=u[p];return g}function f(u){var g={};for(var p in u)Array.isArray(u[p])?g[p.toLowerCase()]=u[p].map(function(_){return _.toLowerCase()}):g[p.toLowerCase()]=u[p];return g}function d(u){u=l(u||{}),u.stripIgnoreTag&&(u.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),u.onIgnoreTag=t.onIgnoreTagStripAll),u.whiteList||u.allowList?u.whiteList=f(u.whiteList||u.allowList):u.whiteList=t.whiteList,this.attributeWrapSign=u.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,u.onTag=u.onTag||t.onTag,u.onTagAttr=u.onTagAttr||t.onTagAttr,u.onIgnoreTag=u.onIgnoreTag||t.onIgnoreTag,u.onIgnoreTagAttr=u.onIgnoreTagAttr||t.onIgnoreTagAttr,u.safeAttrValue=u.safeAttrValue||t.safeAttrValue,u.escapeHtml=u.escapeHtml||t.escapeHtml,this.options=u,u.css===!1?this.cssFilter=!1:(u.css=u.css||{},this.cssFilter=new e(u.css))}return d.prototype.process=function(u){if(u=u||"",u=u.toString(),!u)return"";var g=this,p=g.options,_=p.whiteList,m=p.onTag,b=p.onIgnoreTag,h=p.onTagAttr,y=p.onIgnoreTagAttr,w=p.safeAttrValue,k=p.escapeHtml,E=g.attributeWrapSign,C=g.cssFilter;p.stripBlankChar&&(u=t.stripBlankChar(u)),p.allowCommentTag||(u=t.stripCommentTag(u));var x=!1;p.stripIgnoreTagBody&&(x=t.StripTagBody(p.stripIgnoreTagBody,b),b=x.onIgnoreTag);var S=o(u,function(N,B,$,L,G){var I={sourcePosition:N,position:B,isClosing:G,isWhite:Object.prototype.hasOwnProperty.call(_,$)},D=m($,L,I);if(!i(D))return D;if(I.isWhite){if(I.isClosing)return"</"+$+">";var R=c(L),O=_[$],z=s(R.html,function(q,P){var ee=a.indexOf(O,q)!==-1,Y=h($,q,P,ee);return i(Y)?ee?(P=w($,q,P,C),P?q+"="+E+P+E:q):(Y=y($,q,P,ee),i(Y)?void 0:Y):Y});return L="<"+$,z&&(L+=" "+z),R.closing&&(L+=" /"),L+=">",L}else return D=b($,L,I),i(D)?k(L):D},k);return x&&(S=x.remove(S)),S},Di=d,Di}var Ih;function NB(){return Ih||(Ih=1,function(e,t){var r=Ah(),o=Nh(),s=TB();function a(c,l){var f=new s(l);return f.process(c)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=s,function(){for(var c in r)t[c]=r[c];for(var l in o)t[l]=o[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(Eo,Eo.exports)),Eo.exports}var Ao=NB();const BB=xn(Ao),IB=/@\[youtube]\(([\w-]{11}(?:\?.*)?)\)/im,$B=/^https:\/\/(?:www\.)?(youtube\.com|youtube-nocookie\.com)\/embed\/[\w-]{11}(?:\?.*)?$/i,RB=(e,t)=>{const r={width:"100%",title:"YouTube video player",nocookie:!0,...t},o=(a,i)=>{const{pos:c,src:l}=a;if(l.charCodeAt(c)!==64)return!1;const f=IB.exec(l.slice(c));if(!f)return!1;if(!i){const d=a.push("youtube_embed","",0);d.meta={videoId:f[1]}}return a.pos+=f[0].length,!0},s=r.nocookie?"https://www.youtube-nocookie.com/embed/":"https://www.youtube.com/embed/";e.inline.ruler.before("link","youtube_embed",o),e.renderer.rules.youtube_embed=(a,i)=>{const{videoId:c}=a[i].meta;return`<iframe ${[`width="${r.width}"`,...r.height?[`height="${r.height}"`]:[],`src="${s}${c}"`,`title="${e.utils.escapeHtml(r.title)}"`,'frameborder="0"','allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"','referrerpolicy="strict-origin-when-cross-origin"',"allowfullscreen"].join(" ")}></iframe>`}},OB={class:"n8n-markdown"},MB=["innerHTML"],zB=at(n.defineComponent({__name:"Markdown",props:{content:{default:""},withMultiBreaks:{type:Boolean,default:!1},images:{default:()=>[]},loading:{type:Boolean,default:!1},loadingBlocks:{default:2},loadingRows:{default:3},theme:{default:"markdown"},options:{default:()=>({markdown:{html:!1,linkify:!0,typographer:!0,breaks:!0},linkAttributes:{attrs:{target:"_blank",rel:"noopener"}},tasklists:{enabled:!0,label:!0,labelAfter:!0},youtube:{}})}},emits:["markdown-click","update-content"],setup(e,{emit:t}){const r=e,o=n.ref(void 0),{options:s}=r,a=new ch(s.markdown).use(gh,s.linkAttributes).use(wB).use(xB,s.tasklists).use(RB,s.youtube),i={...Ao.whiteList,label:["class","for"],iframe:["width","height","src","title","frameborder","allow","referrerpolicy","allowfullscreen"]},c=n.computed(()=>{if(!r.content)return"";const p={};r.images&&r.images.forEach(y=>{y&&(p[y.id]=y.url)});const _=new RegExp("fileId:([0-9]+)");let m=r.content;r.withMultiBreaks&&(m=m.replaceAll(`
494
+
495
+ `,`
496
+ &nbsp;
497
+ `));const b=a.render(m);return BB(b,{onTagAttr(y,w,k){if(y==="img"&&w==="src"){if(k.match(_)){const x=k.split("fileId:")[1],S=Ao.friendlyAttrValue(p[x]);return S?`src=${S}`:""}const C=k.split("#")[0].match(/\.(jpeg|jpg|gif|png|webp)$/)!==null&&k.startsWith("/static/");if(!k.startsWith("https://")&&!C)return""}if(y==="iframe")return w==="src"?$B.test(k)?`src=${Ao.friendlyAttrValue(k)}`:"":void 0},onTag(y,w){if(y==="img"&&w.includes('alt="workflow-screenshot"'))return""},onIgnoreTag(y,w){if(y==="input"&&w.includes('type="checkbox"'))return w},whiteList:i})}),l=t,f=p=>{let _=null;if(p.target instanceof HTMLAnchorElement&&(_=p.target),p.target instanceof HTMLElement&&p.target.matches("a *")){const m=p.target.closest("a");m&&(_=m)}_&&l("markdown-click",_,p)},d=async p=>{var _;if(p.target instanceof HTMLInputElement&&p.target.type==="checkbox"){const m=(_=o.value)==null?void 0:_.querySelectorAll('input[type="checkbox"]');if(m){const b=Array.from(m).indexOf(p.target);b!==-1&&g(b)}}},u=p=>{p.target instanceof HTMLInputElement&&p.stopPropagation()},g=p=>{const _=r.content;if(!_)return;const m=HT(_,p);l("update-content",m)};return(p,_)=>(n.openBlock(),n.createElementBlock("div",OB,[p.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(p.$style.markdown)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(p.loadingBlocks,(m,b)=>(n.openBlock(),n.createElementBlock("div",{key:b},[n.createVNode(n.unref(Ux),{loading:p.loading,rows:p.loadingRows,animated:"",variant:"p"},null,8,["loading","rows"]),n.createElementVNode("div",{class:n.normalizeClass(p.$style.spacer)},null,2)]))),128))],2)):(n.openBlock(),n.createElementBlock("div",{key:0,ref_key:"editor",ref:o,class:n.normalizeClass(p.$style[p.theme]),onClick:f,onMousedown:u,onChange:d,innerHTML:c.value},null,42,MB))]))}}),[["__cssModules",{$style:{markdown:"_markdown_17ukb_1",label:"_label_17ukb_43",sticky:"_sticky_17ukb_64",spacer:"_spacer_17ukb_160"}}]]),$h={right:"ew-resize",top:"ns-resize",bottom:"ns-resize",left:"ew-resize",topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize"};({...Nd.props},{...Mf});const LB=["data-dir"],DB=at(n.defineComponent({__name:"ResizeWrapper",props:{isResizingEnabled:{type:Boolean,default:!0},height:{default:0},width:{default:0},minHeight:{default:0},minWidth:{default:0},scale:{default:1},gridSize:{default:20},supportedDirections:{default:()=>[]},outset:{type:Boolean,default:!1},window:{default:void 0}},emits:["resizestart","resize","resizeend"],setup(e,{emit:t}){function r(p,_){const m=p/_,b=_*m,h=p*_>0?_*(m+1):_*(m-1);return Math.abs(p-b)<Math.abs(p-h)?b:h}function o(p,_,m){const b=r(_,m);return b>=p&&_>0?b:p}const s=e,a=n.useCssModule(),i=t,c=n.computed(()=>{const p=Object.keys($h);return s.isResizingEnabled?s.supportedDirections.length===0?p:s.supportedDirections:[]}),l={dir:n.ref(""),dHeight:n.ref(0),dWidth:n.ref(0),vHeight:n.ref(0),vWidth:n.ref(0),x:n.ref(0),y:n.ref(0)},f=n.computed(()=>({[a.resize]:!0,[a.outset]:s.outset})),d=p=>{p.preventDefault(),p.stopPropagation();let _=0,m=0,b=!1,h=!1;l.dir.value.includes("right")&&(_=p.pageX-l.x.value),l.dir.value.includes("left")&&(_=l.x.value-p.pageX,h=!0),l.dir.value.includes("top")&&(m=l.y.value-p.pageY,b=!0),l.dir.value.includes("bottom")&&(m=p.pageY-l.y.value);const y=(_-l.dWidth.value)/s.scale,w=(m-l.dHeight.value)/s.scale;l.vHeight.value=l.vHeight.value+w,l.vWidth.value=l.vWidth.value+y;const k=o(s.minHeight,l.vHeight.value,s.gridSize),E=o(s.minWidth,l.vWidth.value,s.gridSize),C=h&&E!==s.width?-1*(E-s.width):0,x=b&&k!==s.height?-1*(k-s.height):0,S=p.x,N=p.y,B=l.dir.value;i("resize",{height:k,width:E,dX:C,dY:x,x:S,y:N,direction:B}),l.dHeight.value=m,l.dWidth.value=_},u=p=>{p.preventDefault(),p.stopPropagation(),i("resizeend"),(s.window??window).removeEventListener("mousemove",d),(s.window??window).removeEventListener("mouseup",u),document.body.style.cursor="unset",l.dir.value=""},g=p=>{p.preventDefault(),p.stopPropagation();const _=p.target;_&&(l.dir.value=_.dataset.dir.toLocaleLowerCase()),document.body.style.cursor=$h[l.dir.value],l.x.value=p.pageX,l.y.value=p.pageY,l.dWidth.value=0,l.dHeight.value=0,l.vHeight.value=s.height,l.vWidth.value=s.width,(s.window??window).addEventListener("mousemove",d),(s.window??window).addEventListener("mouseup",u),i("resizestart")};return(p,_)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(f.value)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.value,m=>(n.openBlock(),n.createElementBlock("div",{key:m,"data-dir":m,class:n.normalizeClass({[n.unref(a).resizer]:!0,[n.unref(a)[m]]:!0}),"data-test-id":"resize-handle",onMousedown:g},null,42,LB))),128)),n.renderSlot(p.$slots,"default")],2))}}),[["__cssModules",{$style:{resize:"_resize_r3sn9_1",resizer:"_resizer_r3sn9_11",right:"_right_r3sn9_16",top:"_top_r3sn9_24",bottom:"_bottom_r3sn9_32",left:"_left_r3sn9_40",topLeft:"_topLeft_r3sn9_48",topRight:"_topRight_r3sn9_56",bottomLeft:"_bottomLeft_r3sn9_64",bottomRight:"_bottomRight_r3sn9_72",outset:"_outset_r3sn9_80"}}]]),Rh={height:180,width:240,minHeight:80,minWidth:150,id:"0",editMode:!1,readOnly:!1,backgroundColor:1},qB=at(n.defineComponent({__name:"Sticky",props:n.mergeDefaults({modelValue:{},height:{},width:{},minHeight:{},minWidth:{},id:{},defaultText:{},editMode:{type:Boolean},readOnly:{type:Boolean},backgroundColor:{}},Rh),emits:["edit","update:modelValue","markdown-click"],setup(e,{emit:t}){const r=e,o=t,{t:s}=GT(),a=n.ref(!1),i=n.ref(void 0),c=n.computed(()=>r.height<r.minHeight?r.minHeight:r.height),l=n.computed(()=>r.width<r.minWidth?r.minWidth:r.width),f=n.computed(()=>r.id?`${r.id}-input`:void 0),d=n.computed(()=>({height:`${c.value}px`,width:`${l.value}px`})),u=n.computed(()=>c.value>100&&l.value>155);n.watch(()=>r.editMode,(h,y)=>{setTimeout(()=>{h&&!y&&i.value&&(r.defaultText===r.modelValue&&i.value.select(),i.value.focus())},100)});const g=()=>{r.readOnly||o("edit",!0)},p=()=>{a.value||o("edit",!1)},_=h=>{o("update:modelValue",h)},m=(h,y)=>{o("markdown-click",h,y)},b=h=>{!h.ctrlKey&&!h.metaKey&&h.stopPropagation()};return(h,y)=>{const w=n.resolveDirective("n8n-html");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass({"n8n-sticky":!0,[h.$style.sticky]:!0,[h.$style.clickable]:!a.value,[h.$style[`color-${h.backgroundColor}`]]:!0}),style:n.normalizeStyle(d.value),onKeydown:y[4]||(y[4]=n.withModifiers(()=>{},["prevent"]))},[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(h.$style.wrapper),onDblclick:n.withModifiers(g,["stop"])},[n.createVNode(n.unref(zB),{theme:"sticky",content:h.modelValue,"with-multi-breaks":!0,onMarkdownClick:m,onUpdateContent:_},null,8,["content"])],34),[[n.vShow,!h.editMode]]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass({"full-height":!u.value,"sticky-textarea":!0}),onClick:y[0]||(y[0]=n.withModifiers(()=>{},["stop"])),onMousedown:y[1]||(y[1]=n.withModifiers(()=>{},["stop"])),onMouseup:y[2]||(y[2]=n.withModifiers(()=>{},["stop"])),onKeydown:[n.withKeys(p,["esc"]),y[3]||(y[3]=n.withModifiers(()=>{},["stop"]))]},[n.createVNode(n.unref(kd),{ref_key:"input",ref:i,"model-value":h.modelValue,name:f.value,type:"textarea",rows:5,onBlur:p,"onUpdate:modelValue":_,onWheel:b},null,8,["model-value","name"])],34),[[n.vShow,h.editMode]]),h.editMode&&u.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.footer)},[n.createVNode(n.unref(os),{size:"xsmall",align:"right"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",null,null,512),[[w,n.unref(s)("sticky.markdownHint")]])]),_:1})],2)):n.createCommentVNode("",!0)],38)}}}),[["__cssModules",{$style:{sticky:"_sticky_1iqd8_1",wrapper:"_wrapper_1iqd8_7",clickable:"_clickable_1iqd8_12",footer:"_footer_1iqd8_33","color-2":"_color-2_1iqd8_39","color-3":"_color-3_1iqd8_44","color-4":"_color-4_1iqd8_49","color-5":"_color-5_1iqd8_54","color-6":"_color-6_1iqd8_59","color-7":"_color-7_1iqd8_64"}}]]);({...Rh});var qi,Oh;function Pi(){if(Oh)return qi;Oh=1;var e=Array.isArray;return qi=e,qi}var Fi,Mh;function PB(){if(Mh)return Fi;Mh=1;var e=typeof Br=="object"&&Br&&Br.Object===Object&&Br;return Fi=e,Fi}var Vi,zh;function ji(){if(zh)return Vi;zh=1;var e=PB(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Vi=r,Vi}var Hi,Lh;function Ui(){if(Lh)return Hi;Lh=1;var e=ji(),t=e.Symbol;return Hi=t,Hi}var Gi,Dh;function FB(){if(Dh)return Gi;Dh=1;var e=Ui(),t=Object.prototype,r=t.hasOwnProperty,o=t.toString,s=e?e.toStringTag:void 0;function a(i){var c=r.call(i,s),l=i[s];try{i[s]=void 0;var f=!0}catch{}var d=o.call(i);return f&&(c?i[s]=l:delete i[s]),d}return Gi=a,Gi}var Ki,qh;function VB(){if(qh)return Ki;qh=1;var e=Object.prototype,t=e.toString;function r(o){return t.call(o)}return Ki=r,Ki}var Wi,Ph;function Fh(){if(Ph)return Wi;Ph=1;var e=Ui(),t=FB(),r=VB(),o="[object Null]",s="[object Undefined]",a=e?e.toStringTag:void 0;function i(c){return c==null?c===void 0?s:o:a&&a in Object(c)?t(c):r(c)}return Wi=i,Wi}var Zi,Vh;function jB(){if(Vh)return Zi;Vh=1;function e(t){return t!=null&&typeof t=="object"}return Zi=e,Zi}var Xi,jh;function Yi(){if(jh)return Xi;jh=1;var e=Fh(),t=jB(),r="[object Symbol]";function o(s){return typeof s=="symbol"||t(s)&&e(s)==r}return Xi=o,Xi}var Ji,Hh;function HB(){if(Hh)return Ji;Hh=1;var e=Pi(),t=Yi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(a,i){if(e(a))return!1;var c=typeof a;return c=="number"||c=="symbol"||c=="boolean"||a==null||t(a)?!0:o.test(a)||!r.test(a)||i!=null&&a in Object(i)}return Ji=s,Ji}var Qi,Uh;function Gh(){if(Uh)return Qi;Uh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Qi=e,Qi}var ec,Kh;function UB(){if(Kh)return ec;Kh=1;var e=Fh(),t=Gh(),r="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function i(c){if(!t(c))return!1;var l=e(c);return l==o||l==s||l==r||l==a}return ec=i,ec}var tc,Wh;function GB(){if(Wh)return tc;Wh=1;var e=ji(),t=e["__core-js_shared__"];return tc=t,tc}var nc,Zh;function KB(){if(Zh)return nc;Zh=1;var e=GB(),t=function(){var o=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function r(o){return!!t&&t in o}return nc=r,nc}var rc,Xh;function WB(){if(Xh)return rc;Xh=1;var e=Function.prototype,t=e.toString;function r(o){if(o!=null){try{return t.call(o)}catch{}try{return o+""}catch{}}return""}return rc=r,rc}var oc,Yh;function ZB(){if(Yh)return oc;Yh=1;var e=UB(),t=KB(),r=Gh(),o=WB(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,i=Function.prototype,c=Object.prototype,l=i.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(g){if(!r(g)||t(g))return!1;var p=e(g)?d:a;return p.test(o(g))}return oc=u,oc}var ac,Jh;function XB(){if(Jh)return ac;Jh=1;function e(t,r){return t==null?void 0:t[r]}return ac=e,ac}var sc,Qh;function em(){if(Qh)return sc;Qh=1;var e=ZB(),t=XB();function r(o,s){var a=t(o,s);return e(a)?a:void 0}return sc=r,sc}var ic,tm;function To(){if(tm)return ic;tm=1;var e=em(),t=e(Object,"create");return ic=t,ic}var cc,nm;function YB(){if(nm)return cc;nm=1;var e=To();function t(){this.__data__=e?e(null):{},this.size=0}return cc=t,cc}var lc,rm;function JB(){if(rm)return lc;rm=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return lc=e,lc}var uc,om;function QB(){if(om)return uc;om=1;var e=To(),t="__lodash_hash_undefined__",r=Object.prototype,o=r.hasOwnProperty;function s(a){var i=this.__data__;if(e){var c=i[a];return c===t?void 0:c}return o.call(i,a)?i[a]:void 0}return uc=s,uc}var fc,am;function eI(){if(am)return fc;am=1;var e=To(),t=Object.prototype,r=t.hasOwnProperty;function o(s){var a=this.__data__;return e?a[s]!==void 0:r.call(a,s)}return fc=o,fc}var dc,sm;function tI(){if(sm)return dc;sm=1;var e=To(),t="__lodash_hash_undefined__";function r(o,s){var a=this.__data__;return this.size+=this.has(o)?0:1,a[o]=e&&s===void 0?t:s,this}return dc=r,dc}var pc,im;function nI(){if(im)return pc;im=1;var e=YB(),t=JB(),r=QB(),o=eI(),s=tI();function a(i){var c=-1,l=i==null?0:i.length;for(this.clear();++c<l;){var f=i[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,pc=a,pc}var hc,cm;function rI(){if(cm)return hc;cm=1;function e(){this.__data__=[],this.size=0}return hc=e,hc}var mc,lm;function oI(){if(lm)return mc;lm=1;function e(t,r){return t===r||t!==t&&r!==r}return mc=e,mc}var gc,um;function No(){if(um)return gc;um=1;var e=oI();function t(r,o){for(var s=r.length;s--;)if(e(r[s][0],o))return s;return-1}return gc=t,gc}var _c,fm;function aI(){if(fm)return _c;fm=1;var e=No(),t=Array.prototype,r=t.splice;function o(s){var a=this.__data__,i=e(a,s);if(i<0)return!1;var c=a.length-1;return i==c?a.pop():r.call(a,i,1),--this.size,!0}return _c=o,_c}var bc,dm;function sI(){if(dm)return bc;dm=1;var e=No();function t(r){var o=this.__data__,s=e(o,r);return s<0?void 0:o[s][1]}return bc=t,bc}var yc,pm;function iI(){if(pm)return yc;pm=1;var e=No();function t(r){return e(this.__data__,r)>-1}return yc=t,yc}var wc,hm;function cI(){if(hm)return wc;hm=1;var e=No();function t(r,o){var s=this.__data__,a=e(s,r);return a<0?(++this.size,s.push([r,o])):s[a][1]=o,this}return wc=t,wc}var kc,mm;function lI(){if(mm)return kc;mm=1;var e=rI(),t=aI(),r=sI(),o=iI(),s=cI();function a(i){var c=-1,l=i==null?0:i.length;for(this.clear();++c<l;){var f=i[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,kc=a,kc}var vc,gm;function uI(){if(gm)return vc;gm=1;var e=em(),t=ji(),r=e(t,"Map");return vc=r,vc}var Cc,_m;function fI(){if(_m)return Cc;_m=1;var e=nI(),t=lI(),r=uI();function o(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cc=o,Cc}var Ec,bm;function dI(){if(bm)return Ec;bm=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ec=e,Ec}var xc,ym;function Bo(){if(ym)return xc;ym=1;var e=dI();function t(r,o){var s=r.__data__;return e(o)?s[typeof o=="string"?"string":"hash"]:s.map}return xc=t,xc}var Sc,wm;function pI(){if(wm)return Sc;wm=1;var e=Bo();function t(r){var o=e(this,r).delete(r);return this.size-=o?1:0,o}return Sc=t,Sc}var Ac,km;function hI(){if(km)return Ac;km=1;var e=Bo();function t(r){return e(this,r).get(r)}return Ac=t,Ac}var Tc,vm;function mI(){if(vm)return Tc;vm=1;var e=Bo();function t(r){return e(this,r).has(r)}return Tc=t,Tc}var Nc,Cm;function gI(){if(Cm)return Nc;Cm=1;var e=Bo();function t(r,o){var s=e(this,r),a=s.size;return s.set(r,o),this.size+=s.size==a?0:1,this}return Nc=t,Nc}var Bc,Em;function _I(){if(Em)return Bc;Em=1;var e=fI(),t=pI(),r=hI(),o=mI(),s=gI();function a(i){var c=-1,l=i==null?0:i.length;for(this.clear();++c<l;){var f=i[c];this.set(f[0],f[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=o,a.prototype.set=s,Bc=a,Bc}var Ic,xm;function bI(){if(xm)return Ic;xm=1;var e=_I(),t="Expected a function";function r(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new TypeError(t);var a=function(){var i=arguments,c=s?s.apply(this,i):i[0],l=a.cache;if(l.has(c))return l.get(c);var f=o.apply(this,i);return a.cache=l.set(c,f)||l,f};return a.cache=new(r.Cache||e),a}return r.Cache=e,Ic=r,Ic}var $c,Sm;function yI(){if(Sm)return $c;Sm=1;var e=bI(),t=500;function r(o){var s=e(o,function(i){return a.size===t&&a.clear(),i}),a=s.cache;return s}return $c=r,$c}var Rc,Am;function wI(){if(Am)return Rc;Am=1;var e=yI(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,o=e(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(t,function(i,c,l,f){a.push(l?f.replace(r,"$1"):c||i)}),a});return Rc=o,Rc}var Oc,Tm;function kI(){if(Tm)return Oc;Tm=1;function e(t,r){for(var o=-1,s=t==null?0:t.length,a=Array(s);++o<s;)a[o]=r(t[o],o,t);return a}return Oc=e,Oc}var Mc,Nm;function vI(){if(Nm)return Mc;Nm=1;var e=Ui(),t=kI(),r=Pi(),o=Yi(),s=e?e.prototype:void 0,a=s?s.toString:void 0;function i(c){if(typeof c=="string")return c;if(r(c))return t(c,i)+"";if(o(c))return a?a.call(c):"";var l=c+"";return l=="0"&&1/c==-1/0?"-0":l}return Mc=i,Mc}var zc,Bm;function CI(){if(Bm)return zc;Bm=1;var e=vI();function t(r){return r==null?"":e(r)}return zc=t,zc}var Lc,Im;function EI(){if(Im)return Lc;Im=1;var e=Pi(),t=HB(),r=wI(),o=CI();function s(a,i){return e(a)?a:t(a,i)?[a]:r(o(a))}return Lc=s,Lc}var Dc,$m;function xI(){if($m)return Dc;$m=1;var e=Yi();function t(r){if(typeof r=="string"||e(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}return Dc=t,Dc}var qc,Rm;function SI(){if(Rm)return qc;Rm=1;var e=EI(),t=xI();function r(o,s){s=e(s,o);for(var a=0,i=s.length;o!=null&&a<i;)o=o[t(s[a++])];return a&&a==i?o:void 0}return qc=r,qc}var Pc,Om;function AI(){if(Om)return Pc;Om=1;var e=SI();function t(r,o,s){var a=r==null?void 0:e(r,o);return a===void 0?s:a}return Pc=t,Pc}AI();function TI(e){const t=e.regex,r={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const s={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,s]};s.contains.push(i);const c={match:/\\"/},l={className:"string",begin:/'/,end:/'/},f={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],g=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},_=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],m=["true","false"],b={match:/(\/[a-z._-]+)+/},h=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],w=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],k=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:_,literal:m,built_in:[...h,...y,"set","shopt",...w,...k]},contains:[g,e.SHEBANG(),p,d,e.HASH_COMMENT_MODE,a,b,i,c,l,f,r]}}function NI(e){const t=e.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},f={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},d={begin:/\{\{/,relevance:0},u={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,d,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,d,f]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,f]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,f]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",p=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,_=`\\b|${o.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${p}))[eE][+-]?(${g})[jJ]?(?=${_})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${_})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${_})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${_})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${_})`},{begin:`\\b(${g})[jJ](?=${_})`}]},b={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},h={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",l,m,u,e.HASH_COMMENT_MODE]}]};return f.contains=[u,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},u,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[h]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,h,u]}]}}const Io="[A-Za-z$_][0-9A-Za-z$_]*",Mm=["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"],zm=["true","false","null","undefined","NaN","Infinity"],Lm=["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"],Dm=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],qm=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pm=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Fm=[].concat(qm,Lm,Dm);function BI(e){const t=e.regex,r=(z,{after:q})=>{const P="</"+z[0].slice(1);return z.input.indexOf(P,q)!==-1},o=Io,s={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(z,q)=>{const P=z[0].length+z.index,ee=z.input[P];if(ee==="<"||ee===","){q.ignoreMatch();return}ee===">"&&(r(z,{after:P})||q.ignoreMatch());let Y;const de=z.input.substring(P);if(Y=de.match(/^\s*=/)){q.ignoreMatch();return}if((Y=de.match(/^\s+extends\s+/))&&Y.index===0){q.ignoreMatch();return}}},c={$pattern:Io,keyword:Mm,literal:zm,built_in:Fm,"variable.language":Pm},l="[0-9](_?[0-9])*",f=`\\.(${l})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${d})((${f})|\\.)?|(${f}))[eE][+-]?(${l})\\b`},{begin:`\\b(${d})\\b((${f})\\b|\\.)?|(${f})\\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},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"css"}},m={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,g]},y={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:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,_,m,b,{match:/\$\d+/},u];g.contains=w.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(w)});const k=[].concat(y,g.contains),E=k.concat([{begin:/\(/,end:/\)/,keywords:c,contains:["self"].concat(k)}]),C={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:E},x={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,t.concat(o,"(",t.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},S={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:{_:[...Lm,...Dm]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},$={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(z){return t.concat("(?!",z.join("|"),")")}const G={match:t.concat(/\b/,L([...qm,"super","import"]),o,t.lookahead(/\(/)),className:"title.function",relevance:0},I={begin:t.concat(/\./,t.lookahead(t.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",O={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:E,CLASS_REFERENCE:S},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,_,m,b,y,{match:/\$\d+/},u,S,{className:"attr",begin:o+t.lookahead(":"),relevance:0},O,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[y,e.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:E}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:a},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,e.inherit(e.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},I,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},G,$,x,D,{match:/\$[(.]/}]}}function II(e){const t=BI(e),r=Io,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[t.exports.CLASS_REFERENCE]},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[t.exports.CLASS_REFERENCE]},i={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},c=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Io,keyword:Mm.concat(c),literal:zm,built_in:Fm.concat(o),"variable.language":Pm},f={className:"meta",begin:"@"+r},d=(g,p,_)=>{const m=g.contains.findIndex(b=>b.label===p);if(m===-1)throw new Error("can not find mode to replace");g.contains.splice(m,1,_)};Object.assign(t.keywords,l),t.exports.PARAMS_CONTAINS.push(f),t.contains=t.contains.concat([f,s,a]),d(t,"shebang",e.SHEBANG()),d(t,"use_strict",i);const u=t.contains.find(g=>g.label==="func.def");return u.relevance=0,Object.assign(t,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t}const $I=n.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(e){const t=n.ref(new ch(e.options??{}));for(const o of e.plugins??[])t.value.use(o);const r=n.computed(()=>t.value.render(e.source));return()=>n.h("div",{innerHTML:r.value})}}),RI={key:0,class:"chat-message-actions"},OI={key:2,class:"chat-message-files"},Fc=n.defineComponent({__name:"Message",props:{message:{}},setup(e,{expose:t}){const r=e;zt.registerLanguage("javascript",al),zt.registerLanguage("typescript",II),zt.registerLanguage("python",NI),zt.registerLanguage("xml",sl),zt.registerLanguage("bash",TI);const{message:o}=n.toRefs(r),{options:s}=Jn(),a=n.ref(null),i=n.ref({}),c=n.computed(()=>o.value.text||"&lt;Empty response&gt;"),l=n.computed(()=>({"chat-message-from-user":o.value.sender==="user","chat-message-from-bot":o.value.sender==="bot","chat-message-transparent":o.value.transparent===!0})),f=_=>{_.use(gh,{attrs:{target:"_blank",rel:"noopener"}})},d=()=>{var _;(_=a.value)!=null&&_.scrollIntoView&&a.value.scrollIntoView({block:"start"})},u={highlight(_,m){if(m&&zt.getLanguage(m))try{return zt.highlight(_,{language:m}).value}catch{}return""}},g={...(s==null?void 0:s.messageComponents)??{}};t({scrollToView:d});const p=async _=>await new Promise((m,b)=>{const h=new FileReader;h.onload=()=>m(h.result),h.onerror=b,h.readAsDataURL(_)});return n.onMounted(async()=>{if(o.value.files)for(const _ of o.value.files)try{const m=await p(_);i.value[_.name]=m}catch(m){console.error("Error reading file:",m)}}),(_,m)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"messageContainer",ref:a,class:n.normalizeClass(["chat-message",l.value])},[_.$slots.beforeMessage?(n.openBlock(),n.createElementBlock("div",RI,[n.renderSlot(_.$slots,"beforeMessage",n.normalizeProps(n.guardReactiveProps({message:n.unref(o)})))])):n.createCommentVNode("",!0),n.renderSlot(_.$slots,"default",{},()=>[n.unref(o).type==="component"&&g[n.unref(o).key]?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(g[n.unref(o).key]),n.normalizeProps(n.mergeProps({key:0},n.unref(o).arguments)),null,16)):(n.openBlock(),n.createBlock(n.unref($I),{key:1,class:"chat-message-markdown",source:c.value,options:u,plugins:[f]},null,8,["source","plugins"])),(n.unref(o).files??[]).length>0?(n.openBlock(),n.createElementBlock("div",OI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o).files??[],b=>(n.openBlock(),n.createElementBlock("div",{key:b.name,class:"chat-message-file"},[n.createVNode(cl,{file:b,"is-removable":!1,"is-previewable":!0},null,8,["file"])]))),128))])):n.createCommentVNode("",!0)])],2))}}),MI={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function zI(e,t){return n.openBlock(),n.createElementBlock("svg",MI,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8"},null,-1)]))}const LI={name:"mdi-chat",render:zI},DI={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function qI(e,t){return n.openBlock(),n.createElementBlock("svg",DI,t[0]||(t[0]=[n.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"},null,-1)]))}const PI={name:"mdi-chevron-down",render:qI},FI={class:"chat-window-wrapper"},VI={class:"chat-window"},jI=n.defineComponent({__name:"ChatWindow",setup(e){const t=n.ref(!1);function r(){t.value=!t.value,t.value&&n.nextTick(()=>{He.emit("scrollToBottom")})}return(o,s)=>(n.openBlock(),n.createElementBlock("div",FI,[n.createVNode(n.Transition,{name:"chat-window-transition"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",VI,[n.createVNode(Vm)],512),[[n.vShow,t.value]])]),_:1}),n.createElementVNode("div",{class:"chat-window-toggle",onClick:r},[n.createVNode(n.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:n.withCtx(()=>[t.value?(n.openBlock(),n.createBlock(n.unref(PI),{key:1,height:"32",width:"32"})):(n.openBlock(),n.createBlock(n.unref(LI),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),HI=n.defineComponent({__name:"MessageTyping",props:{animation:{default:"bouncing"}},setup(e){const t=e,r={id:"typing",text:"",sender:"bot"},o=n.ref(),s=n.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${t.animation}`]:!0}));return n.onMounted(()=>{var a;(a=o.value)==null||a.scrollToView()}),(a,i)=>(n.openBlock(),n.createBlock(n.unref(Fc),{ref_key:"messageContainer",ref:o,class:n.normalizeClass(s.value),message:r,"data-test-id":"chat-message-typing"},{default:n.withCtx(()=>i[0]||(i[0]=[n.createElementVNode("div",{class:"chat-message-typing-body"},[n.createElementVNode("span",{class:"chat-message-typing-circle"}),n.createElementVNode("span",{class:"chat-message-typing-circle"}),n.createElementVNode("span",{class:"chat-message-typing-circle"})],-1)])),_:1},8,["class"]))}}),UI={key:0,class:"empty-container"},GI={class:"empty","data-test-id":"chat-messages-empty"},KI={key:1,class:"chat-messages-list"},WI=n.defineComponent({__name:"MessagesList",props:{messages:{},emptyText:{}},setup(e){const t=Po(),r=n.ref([]),{initialMessages:o,waitingForResponse:s}=t;return n.watch(()=>r.value.length,()=>{const a=r.value[r.value.length-1];a&&a.scrollToView()}),(a,i)=>a.emptyText&&n.unref(o).length===0&&a.messages.length===0?(n.openBlock(),n.createElementBlock("div",UI,[n.createElementVNode("div",GI,[n.createVNode(n.unref(as),{icon:"comment",size:"large",class:"emptyIcon"}),n.createVNode(n.unref(os),{tag:"p",size:"medium",color:"text-base"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(a.emptyText),1)]),_:1})])])):(n.openBlock(),n.createElementBlock("div",KI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(n.unref(o),c=>(n.openBlock(),n.createBlock(Fc,{key:c.id,message:c},null,8,["message"]))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.messages,c=>(n.openBlock(),n.createBlock(Fc,{key:c.id,ref_for:!0,ref_key:"messageComponents",ref:r,message:c},{beforeMessage:n.withCtx(({message:l})=>[n.renderSlot(a.$slots,"beforeMessage",n.mergeProps({ref_for:!0},{message:l}))]),_:2},1032,["message"]))),128)),n.unref(s)?(n.openBlock(),n.createBlock(HI,{key:0})):n.createCommentVNode("",!0)]))}}),ZI={class:"chat-heading"},XI=["title"],YI={key:0},Vm=n.defineComponent({__name:"Chat",setup(e){const{t}=Ir(),r=Po(),{messages:o,currentSessionId:s}=r,{options:a}=Jn(),i=n.computed(()=>a.mode==="window"&&a.showWindowCloseButton);async function c(){r.startNewSession&&(r.startNewSession(),n.nextTick(()=>{He.emit("scrollToBottom")}))}async function l(){r.loadPreviousSession&&(await r.loadPreviousSession(),n.nextTick(()=>{He.emit("scrollToBottom")}))}function f(){He.emit("close")}return n.onMounted(async()=>{await l(),!a.showWelcomeScreen&&!s.value&&await c()}),(d,u)=>(n.openBlock(),n.createBlock(w_,{class:"chat-wrapper"},{header:n.withCtx(()=>[n.createElementVNode("div",ZI,[n.createElementVNode("h1",null,n.toDisplayString(n.unref(t)("title")),1),i.value?(n.openBlock(),n.createElementBlock("button",{key:0,class:"chat-close-button",title:n.unref(t)("closeButtonTooltip"),onClick:f},[n.createVNode(n.unref(bg),{height:"18",width:"18"})],8,XI)):n.createCommentVNode("",!0)]),n.unref(t)("subtitle")?(n.openBlock(),n.createElementBlock("p",YI,n.toDisplayString(n.unref(t)("subtitle")),1)):n.createCommentVNode("",!0)]),footer:n.withCtx(()=>[n.unref(s)?(n.openBlock(),n.createBlock(g_,{key:0})):(n.openBlock(),n.createBlock(Ig,{key:1}))]),default:n.withCtx(()=>[!n.unref(s)&&n.unref(a).showWelcomeScreen?(n.openBlock(),n.createBlock(Eg,{key:0,"onClick:button":c})):(n.openBlock(),n.createBlock(WI,{key:1,messages:n.unref(o)},null,8,["messages"]))]),_:1}))}}),JI=n.defineComponent({__name:"App",props:{},setup(e){const{options:t}=Jn(),r=n.computed(()=>t.mode==="fullscreen");return n.onMounted(()=>{zt.registerLanguage("xml",sl),zt.registerLanguage("javascript",al)}),(o,s)=>r.value?(n.openBlock(),n.createBlock(Vm,{key:0,class:"n8n-chat"})):(n.openBlock(),n.createBlock(jI,{key:1,class:"n8n-chat"}))}});function QI(e){var s,a;const t={...Xn,...e,webhookConfig:{...Xn.webhookConfig,...e==null?void 0:e.webhookConfig},i18n:{...Xn.i18n,...e==null?void 0:e.i18n,en:{...(s=Xn.i18n)==null?void 0:s.en,...(a=e==null?void 0:e.i18n)==null?void 0:a.en}},theme:{...Xn.theme,...e==null?void 0:e.theme}},r=t.target??Ym;typeof r=="string"&&ig(r);const o=n.createApp(JI);return o.use(cg,t),o.mount(r),o}Pe.createChat=QI,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})});