@quidgest/chatbot 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/components/ChatBot/ChatBot.vue.d.ts +53 -0
  2. package/dist/components/ChatBot/types.d.ts +48 -0
  3. package/dist/components/ChatBotInput/ChatBotInput.vue.d.ts +17 -0
  4. package/dist/components/ChatBotInput/index.d.ts +5 -0
  5. package/dist/components/ChatBotInput/types.d.ts +28 -0
  6. package/dist/components/ChatBotMessage/ChatBotMessage.vue.d.ts +41 -0
  7. package/dist/components/ChatBotMessage/ChatBotMessageButtons.vue.d.ts +21 -0
  8. package/dist/components/ChatBotMessage/index.d.ts +6 -0
  9. package/dist/components/ChatBotMessage/types.d.ts +46 -0
  10. package/dist/components/ChatToolBar/ChatToolBar.vue.d.ts +39 -0
  11. package/dist/components/ChatToolBar/index.d.ts +5 -0
  12. package/dist/components/ChatToolBar/types.d.ts +16 -0
  13. package/dist/components/FieldPreview/FieldPreview.vue.d.ts +17 -0
  14. package/dist/components/FieldPreview/index.d.ts +5 -0
  15. package/dist/components/FieldPreview/types.d.ts +7 -0
  16. package/dist/components/{MarkdownRenderer.vue.d.ts → MarkdownRender/MarkdownRender.vue.d.ts} +1 -6
  17. package/dist/components/MarkdownRender/index.d.ts +5 -0
  18. package/dist/components/MarkdownRender/types.d.ts +7 -0
  19. package/dist/composables/useChatApi.d.ts +23 -0
  20. package/dist/composables/useChatMessages.d.ts +11 -0
  21. package/dist/composables/useSSE.d.ts +10 -0
  22. package/dist/composables/useTexts.d.ts +26 -0
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +26 -45
  25. package/dist/index.mjs +2833 -7575
  26. package/dist/style.css +1 -1
  27. package/dist/utils/helper.d.ts +1 -0
  28. package/package.json +4 -4
  29. package/src/assets/chatbot_profile.svg +1 -0
  30. package/src/assets/styles/styles.scss +10 -42
  31. package/src/components/ChatBot/ChatBot.vue +373 -0
  32. package/src/components/ChatBot/types.ts +55 -0
  33. package/src/components/ChatBotInput/ChatBotInput.vue +195 -0
  34. package/src/components/ChatBotInput/index.ts +5 -0
  35. package/src/components/ChatBotInput/types.ts +33 -0
  36. package/src/components/ChatBotMessage/ChatBotMessage.vue +139 -0
  37. package/src/components/ChatBotMessage/ChatBotMessageButtons.vue +169 -0
  38. package/src/components/ChatBotMessage/index.ts +8 -0
  39. package/src/components/ChatBotMessage/types.ts +70 -0
  40. package/src/components/ChatToolBar/ChatToolBar.vue +82 -0
  41. package/src/components/ChatToolBar/index.ts +5 -0
  42. package/src/components/ChatToolBar/types.ts +18 -0
  43. package/src/components/FieldPreview/FieldPreview.vue +78 -0
  44. package/src/components/FieldPreview/field-preview.scss +34 -0
  45. package/src/components/FieldPreview/index.ts +5 -0
  46. package/src/components/FieldPreview/types.ts +7 -0
  47. package/src/components/MarkdownRender/MarkdownRender.vue +25 -0
  48. package/src/components/MarkdownRender/index.ts +5 -0
  49. package/src/components/MarkdownRender/markdown-render.scss +24 -0
  50. package/src/components/MarkdownRender/types.ts +7 -0
  51. package/src/components/PulseDots/PulseDots.vue +24 -0
  52. package/src/components/PulseDots/pulse-dots.scss +37 -0
  53. package/src/composables/useChatApi.ts +156 -0
  54. package/src/composables/useChatMessages.ts +58 -0
  55. package/src/composables/useSSE.ts +93 -0
  56. package/src/composables/useTexts.ts +32 -0
  57. package/src/index.ts +1 -1
  58. package/src/utils/helper.ts +12 -0
  59. package/dist/components/CBMessage.vue.d.ts +0 -95
  60. package/dist/components/ChatBot.vue.d.ts +0 -65
  61. package/dist/components/index.d.ts +0 -4
  62. package/dist/types/chatbot.type.d.ts +0 -14
  63. package/dist/types/message.type.d.ts +0 -34
  64. package/dist/types/texts.type.d.ts +0 -3
  65. package/src/assets/chatbot.png +0 -0
  66. package/src/components/CBMessage.vue +0 -276
  67. package/src/components/ChatBot.vue +0 -496
  68. package/src/components/MarkdownRenderer.vue +0 -35
  69. package/src/components/PulseDots.vue +0 -15
  70. package/src/components/index.ts +0 -4
  71. package/src/types/chatbot.type.ts +0 -15
  72. package/src/types/message.type.ts +0 -55
  73. package/src/types/texts.type.ts +0 -3
  74. /package/dist/components/{PulseDots.vue.d.ts → PulseDots/PulseDots.vue.d.ts} +0 -0
package/dist/index.js CHANGED
@@ -1,65 +1,46 @@
1
- (function(a,we){typeof exports=="object"&&typeof module<"u"?module.exports=we(require("vue")):typeof define=="function"&&define.amd?define(["vue"],we):(a=typeof globalThis<"u"?globalThis:a||self,a.ChatBotFrontend=we(a.vue))})(this,function(a){"use strict";function we(e,u){return function(){return e.apply(u,arguments)}}const{toString:dr}=Object.prototype,{getPrototypeOf:wu}=Object,{iterator:Je,toStringTag:ht}=Symbol,Ye=(e=>u=>{const t=dr.call(u);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),oe=e=>(e=e.toLowerCase(),u=>Ye(u)===e),Xe=e=>u=>typeof u===e,{isArray:De}=Array,Le=Xe("undefined");function fr(e){return e!==null&&!Le(e)&&e.constructor!==null&&!Le(e.constructor)&&Y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bt=oe("ArrayBuffer");function pr(e){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(e):u=e&&e.buffer&&bt(e.buffer),u}const hr=Xe("string"),Y=Xe("function"),mt=Xe("number"),Ke=e=>e!==null&&typeof e=="object",br=e=>e===!0||e===!1,eu=e=>{if(Ye(e)!=="object")return!1;const u=wu(e);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(ht in e)&&!(Je in e)},mr=oe("Date"),gr=oe("File"),xr=oe("Blob"),yr=oe("FileList"),kr=e=>Ke(e)&&Y(e.pipe),_r=e=>{let u;return e&&(typeof FormData=="function"&&e instanceof FormData||Y(e.append)&&((u=Ye(e))==="formdata"||u==="object"&&Y(e.toString)&&e.toString()==="[object FormData]"))},Er=oe("URLSearchParams"),[Ar,Cr,wr,Dr]=["ReadableStream","Request","Response","Headers"].map(oe),Fr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pe(e,u,{allOwnKeys:t=!1}={}){if(e===null||typeof e>"u")return;let n,r;if(typeof e!="object"&&(e=[e]),De(e))for(n=0,r=e.length;n<r;n++)u.call(null,e[n],n,e);else{const o=t?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let c;for(n=0;n<i;n++)c=o[n],u.call(null,e[c],c,e)}}function gt(e,u){u=u.toLowerCase();const t=Object.keys(e);let n=t.length,r;for(;n-- >0;)if(r=t[n],u===r.toLowerCase())return r;return null}const ye=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xt=e=>!Le(e)&&e!==ye;function Du(){const{caseless:e}=xt(this)&&this||{},u={},t=(n,r)=>{const o=e&&gt(u,r)||r;eu(u[o])&&eu(n)?u[o]=Du(u[o],n):eu(n)?u[o]=Du({},n):De(n)?u[o]=n.slice():u[o]=n};for(let n=0,r=arguments.length;n<r;n++)arguments[n]&&Pe(arguments[n],t);return u}const Sr=(e,u,t,{allOwnKeys:n}={})=>(Pe(u,(r,o)=>{t&&Y(r)?e[o]=we(r,t):e[o]=r},{allOwnKeys:n}),e),vr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Br=(e,u,t,n)=>{e.prototype=Object.create(u.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:u.prototype}),t&&Object.assign(e.prototype,t)},Rr=(e,u,t,n)=>{let r,o,i;const c={};if(u=u||{},e==null)return u;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!n||n(i,e,u))&&!c[i]&&(u[i]=e[i],c[i]=!0);e=t!==!1&&wu(e)}while(e&&(!t||t(e,u))&&e!==Object.prototype);return u},Tr=(e,u,t)=>{e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=u.length;const n=e.indexOf(u,t);return n!==-1&&n===t},Nr=e=>{if(!e)return null;if(De(e))return e;let u=e.length;if(!mt(u))return null;const t=new Array(u);for(;u-- >0;)t[u]=e[u];return t},Ir=(e=>u=>e&&u instanceof e)(typeof Uint8Array<"u"&&wu(Uint8Array)),Or=(e,u)=>{const n=(e&&e[Je]).call(e);let r;for(;(r=n.next())&&!r.done;){const o=r.value;u.call(e,o[0],o[1])}},Lr=(e,u)=>{let t;const n=[];for(;(t=e.exec(u))!==null;)n.push(t);return n},Pr=oe("HTMLFormElement"),Mr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),yt=(({hasOwnProperty:e})=>(u,t)=>e.call(u,t))(Object.prototype),zr=oe("RegExp"),kt=(e,u)=>{const t=Object.getOwnPropertyDescriptors(e),n={};Pe(t,(r,o)=>{let i;(i=u(r,o,e))!==!1&&(n[o]=i||r)}),Object.defineProperties(e,n)},qr=e=>{kt(e,(u,t)=>{if(Y(e)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=e[t];if(Y(n)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Ur=(e,u)=>{const t={},n=r=>{r.forEach(o=>{t[o]=!0})};return De(e)?n(e):n(String(e).split(u)),t},jr=()=>{},Vr=(e,u)=>e!=null&&Number.isFinite(e=+e)?e:u;function $r(e){return!!(e&&Y(e.append)&&e[ht]==="FormData"&&e[Je])}const Gr=e=>{const u=new Array(10),t=(n,r)=>{if(Ke(n)){if(u.indexOf(n)>=0)return;if(!("toJSON"in n)){u[r]=n;const o=De(n)?[]:{};return Pe(n,(i,c)=>{const s=t(i,r+1);!Le(s)&&(o[c]=s)}),u[r]=void 0,o}}return n};return t(e,0)},Hr=oe("AsyncFunction"),Wr=e=>e&&(Ke(e)||Y(e))&&Y(e.then)&&Y(e.catch),_t=((e,u)=>e?setImmediate:u?((t,n)=>(ye.addEventListener("message",({source:r,data:o})=>{r===ye&&o===t&&n.length&&n.shift()()},!1),r=>{n.push(r),ye.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Y(ye.postMessage)),Zr=typeof queueMicrotask<"u"?queueMicrotask.bind(ye):typeof process<"u"&&process.nextTick||_t,m={isArray:De,isArrayBuffer:bt,isBuffer:fr,isFormData:_r,isArrayBufferView:pr,isString:hr,isNumber:mt,isBoolean:br,isObject:Ke,isPlainObject:eu,isReadableStream:Ar,isRequest:Cr,isResponse:wr,isHeaders:Dr,isUndefined:Le,isDate:mr,isFile:gr,isBlob:xr,isRegExp:zr,isFunction:Y,isStream:kr,isURLSearchParams:Er,isTypedArray:Ir,isFileList:yr,forEach:Pe,merge:Du,extend:Sr,trim:Fr,stripBOM:vr,inherits:Br,toFlatObject:Rr,kindOf:Ye,kindOfTest:oe,endsWith:Tr,toArray:Nr,forEachEntry:Or,matchAll:Lr,isHTMLForm:Pr,hasOwnProperty:yt,hasOwnProp:yt,reduceDescriptors:kt,freezeMethods:qr,toObjectSet:Ur,toCamelCase:Mr,noop:jr,toFiniteNumber:Vr,findKey:gt,global:ye,isContextDefined:xt,isSpecCompliantForm:$r,toJSONObject:Gr,isAsyncFn:Hr,isThenable:Wr,setImmediate:_t,asap:Zr,isIterable:e=>e!=null&&Y(e[Je])};function R(e,u,t,n,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",u&&(this.code=u),t&&(this.config=t),n&&(this.request=n),r&&(this.response=r,this.status=r.status?r.status:null)}m.inherits(R,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const Et=R.prototype,At={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{At[e]={value:e}}),Object.defineProperties(R,At),Object.defineProperty(Et,"isAxiosError",{value:!0}),R.from=(e,u,t,n,r,o)=>{const i=Object.create(Et);return m.toFlatObject(e,i,function(s){return s!==Error.prototype},c=>c!=="isAxiosError"),R.call(i,e.message,u,t,n,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Qr=null;function Fu(e){return m.isPlainObject(e)||m.isArray(e)}function Ct(e){return m.endsWith(e,"[]")?e.slice(0,-2):e}function wt(e,u,t){return e?e.concat(u).map(function(r,o){return r=Ct(r),!t&&o?"["+r+"]":r}).join(t?".":""):u}function Jr(e){return m.isArray(e)&&!e.some(Fu)}const Yr=m.toFlatObject(m,{},null,function(u){return/^is[A-Z]/.test(u)});function uu(e,u,t){if(!m.isObject(e))throw new TypeError("target must be an object");u=u||new FormData,t=m.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!m.isUndefined(x[g])});const n=t.metaTokens,r=t.visitor||d,o=t.dots,i=t.indexes,s=(t.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(u);if(!m.isFunction(r))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(m.isDate(p))return p.toISOString();if(m.isBoolean(p))return p.toString();if(!s&&m.isBlob(p))throw new R("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(p)||m.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,g,x){let C=p;if(p&&!x&&typeof p=="object"){if(m.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(m.isArray(p)&&Jr(p)||(m.isFileList(p)||m.endsWith(g,"[]"))&&(C=m.toArray(p)))return g=Ct(g),C.forEach(function(E,A){!(m.isUndefined(E)||E===null)&&u.append(i===!0?wt([g],A,o):i===null?g:g+"[]",l(E))}),!1}return Fu(p)?!0:(u.append(wt(x,g,o),l(p)),!1)}const f=[],h=Object.assign(Yr,{defaultVisitor:d,convertValue:l,isVisitable:Fu});function b(p,g){if(!m.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),m.forEach(p,function(C,k){(!(m.isUndefined(C)||C===null)&&r.call(u,C,m.isString(k)?k.trim():k,g,h))===!0&&b(C,g?g.concat(k):[k])}),f.pop()}}if(!m.isObject(e))throw new TypeError("data must be an object");return b(e),u}function Dt(e){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return u[n]})}function Su(e,u){this._pairs=[],e&&uu(e,this,u)}const Ft=Su.prototype;Ft.append=function(u,t){this._pairs.push([u,t])},Ft.toString=function(u){const t=u?function(n){return u.call(this,n,Dt)}:Dt;return this._pairs.map(function(r){return t(r[0])+"="+t(r[1])},"").join("&")};function Xr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function St(e,u,t){if(!u)return e;const n=t&&t.encode||Xr;m.isFunction(t)&&(t={serialize:t});const r=t&&t.serialize;let o;if(r?o=r(u,t):o=m.isURLSearchParams(u)?u.toString():new Su(u,t).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class vt{constructor(){this.handlers=[]}use(u,t,n){return this.handlers.push({fulfilled:u,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){m.forEach(this.handlers,function(n){n!==null&&u(n)})}}const Bt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kr={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Su,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},vu=typeof window<"u"&&typeof document<"u",Bu=typeof navigator=="object"&&navigator||void 0,eo=vu&&(!Bu||["ReactNative","NativeScript","NS"].indexOf(Bu.product)<0),uo=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",to=vu&&window.location.href||"http://localhost",Q={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vu,hasStandardBrowserEnv:eo,hasStandardBrowserWebWorkerEnv:uo,navigator:Bu,origin:to},Symbol.toStringTag,{value:"Module"})),...Kr};function no(e,u){return uu(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(t,n,r,o){return Q.isNode&&m.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},u))}function ro(e){return m.matchAll(/\w+|\[(\w*)]/g,e).map(u=>u[0]==="[]"?"":u[1]||u[0])}function oo(e){const u={},t=Object.keys(e);let n;const r=t.length;let o;for(n=0;n<r;n++)o=t[n],u[o]=e[o];return u}function Rt(e){function u(t,n,r,o){let i=t[o++];if(i==="__proto__")return!0;const c=Number.isFinite(+i),s=o>=t.length;return i=!i&&m.isArray(r)?r.length:i,s?(m.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!c):((!r[i]||!m.isObject(r[i]))&&(r[i]=[]),u(t,n,r[i],o)&&m.isArray(r[i])&&(r[i]=oo(r[i])),!c)}if(m.isFormData(e)&&m.isFunction(e.entries)){const t={};return m.forEachEntry(e,(n,r)=>{u(ro(n),r,t,0)}),t}return null}function io(e,u,t){if(m.isString(e))try{return(u||JSON.parse)(e),m.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(e)}const Me={transitional:Bt,adapter:["xhr","http","fetch"],transformRequest:[function(u,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=m.isObject(u);if(o&&m.isHTMLForm(u)&&(u=new FormData(u)),m.isFormData(u))return r?JSON.stringify(Rt(u)):u;if(m.isArrayBuffer(u)||m.isBuffer(u)||m.isStream(u)||m.isFile(u)||m.isBlob(u)||m.isReadableStream(u))return u;if(m.isArrayBufferView(u))return u.buffer;if(m.isURLSearchParams(u))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),u.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return no(u,this.formSerializer).toString();if((c=m.isFileList(u))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return uu(c?{"files[]":u}:u,s&&new s,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),io(u)):u}],transformResponse:[function(u){const t=this.transitional||Me.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(m.isResponse(u)||m.isReadableStream(u))return u;if(u&&m.isString(u)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(u)}catch(c){if(i)throw c.name==="SyntaxError"?R.from(c,R.ERR_BAD_RESPONSE,this,null,this.response):c}}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],e=>{Me.headers[e]={}});const ao=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),co=e=>{const u={};let t,n,r;return e&&e.split(`
2
- `).forEach(function(i){r=i.indexOf(":"),t=i.substring(0,r).trim().toLowerCase(),n=i.substring(r+1).trim(),!(!t||u[t]&&ao[t])&&(t==="set-cookie"?u[t]?u[t].push(n):u[t]=[n]:u[t]=u[t]?u[t]+", "+n:n)}),u},Tt=Symbol("internals");function ze(e){return e&&String(e).trim().toLowerCase()}function tu(e){return e===!1||e==null?e:m.isArray(e)?e.map(tu):String(e)}function so(e){const u=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(e);)u[n[1]]=n[2];return u}const lo=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ru(e,u,t,n,r){if(m.isFunction(n))return n.call(this,u,t);if(r&&(u=t),!!m.isString(u)){if(m.isString(n))return u.indexOf(n)!==-1;if(m.isRegExp(n))return n.test(u)}}function fo(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,t,n)=>t.toUpperCase()+n)}function po(e,u){const t=m.toCamelCase(" "+u);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+t,{value:function(r,o,i){return this[n].call(this,u,r,o,i)},configurable:!0})})}let X=class{constructor(u){u&&this.set(u)}set(u,t,n){const r=this;function o(c,s,l){const d=ze(s);if(!d)throw new Error("header name must be a non-empty string");const f=m.findKey(r,d);(!f||r[f]===void 0||l===!0||l===void 0&&r[f]!==!1)&&(r[f||s]=tu(c))}const i=(c,s)=>m.forEach(c,(l,d)=>o(l,d,s));if(m.isPlainObject(u)||u instanceof this.constructor)i(u,t);else if(m.isString(u)&&(u=u.trim())&&!lo(u))i(co(u),t);else if(m.isObject(u)&&m.isIterable(u)){let c={},s,l;for(const d of u){if(!m.isArray(d))throw TypeError("Object iterator must return a key-value pair");c[l=d[0]]=(s=c[l])?m.isArray(s)?[...s,d[1]]:[s,d[1]]:d[1]}i(c,t)}else u!=null&&o(t,u,n);return this}get(u,t){if(u=ze(u),u){const n=m.findKey(this,u);if(n){const r=this[n];if(!t)return r;if(t===!0)return so(r);if(m.isFunction(t))return t.call(this,r,n);if(m.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(u,t){if(u=ze(u),u){const n=m.findKey(this,u);return!!(n&&this[n]!==void 0&&(!t||Ru(this,this[n],n,t)))}return!1}delete(u,t){const n=this;let r=!1;function o(i){if(i=ze(i),i){const c=m.findKey(n,i);c&&(!t||Ru(n,n[c],c,t))&&(delete n[c],r=!0)}}return m.isArray(u)?u.forEach(o):o(u),r}clear(u){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];(!u||Ru(this,this[o],o,u,!0))&&(delete this[o],r=!0)}return r}normalize(u){const t=this,n={};return m.forEach(this,(r,o)=>{const i=m.findKey(n,o);if(i){t[i]=tu(r),delete t[o];return}const c=u?fo(o):String(o).trim();c!==o&&delete t[o],t[c]=tu(r),n[c]=!0}),this}concat(...u){return this.constructor.concat(this,...u)}toJSON(u){const t=Object.create(null);return m.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=u&&m.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([u,t])=>u+": "+t).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(u){return u instanceof this?u:new this(u)}static concat(u,...t){const n=new this(u);return t.forEach(r=>n.set(r)),n}static accessor(u){const n=(this[Tt]=this[Tt]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=ze(i);n[c]||(po(r,i),n[c]=!0)}return m.isArray(u)?u.forEach(o):o(u),this}};X.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.reduceDescriptors(X.prototype,({value:e},u)=>{let t=u[0].toUpperCase()+u.slice(1);return{get:()=>e,set(n){this[t]=n}}}),m.freezeMethods(X);function Tu(e,u){const t=this||Me,n=u||t,r=X.from(n.headers);let o=n.data;return m.forEach(e,function(c){o=c.call(t,o,r.normalize(),u?u.status:void 0)}),r.normalize(),o}function Nt(e){return!!(e&&e.__CANCEL__)}function Fe(e,u,t){R.call(this,e??"canceled",R.ERR_CANCELED,u,t),this.name="CanceledError"}m.inherits(Fe,R,{__CANCEL__:!0});function It(e,u,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?e(t):u(new R("Request failed with status code "+t.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function ho(e){const u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return u&&u[1]||""}function bo(e,u){e=e||10;const t=new Array(e),n=new Array(e);let r=0,o=0,i;return u=u!==void 0?u:1e3,function(s){const l=Date.now(),d=n[o];i||(i=l),t[r]=s,n[r]=l;let f=o,h=0;for(;f!==r;)h+=t[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),l-i<u)return;const b=d&&l-d;return b?Math.round(h*1e3/b):void 0}}function mo(e,u){let t=0,n=1e3/u,r,o;const i=(l,d=Date.now())=>{t=d,r=null,o&&(clearTimeout(o),o=null),e.apply(null,l)};return[(...l)=>{const d=Date.now(),f=d-t;f>=n?i(l,d):(r=l,o||(o=setTimeout(()=>{o=null,i(r)},n-f)))},()=>r&&i(r)]}const nu=(e,u,t=3)=>{let n=0;const r=bo(50,250);return mo(o=>{const i=o.loaded,c=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),d=i<=c;n=i;const f={loaded:i,total:c,progress:c?i/c:void 0,bytes:s,rate:l||void 0,estimated:l&&c&&d?(c-i)/l:void 0,event:o,lengthComputable:c!=null,[u?"download":"upload"]:!0};e(f)},t)},Ot=(e,u)=>{const t=e!=null;return[n=>u[0]({lengthComputable:t,total:e,loaded:n}),u[1]]},Lt=e=>(...u)=>m.asap(()=>e(...u)),go=Q.hasStandardBrowserEnv?((e,u)=>t=>(t=new URL(t,Q.origin),e.protocol===t.protocol&&e.host===t.host&&(u||e.port===t.port)))(new URL(Q.origin),Q.navigator&&/(msie|trident)/i.test(Q.navigator.userAgent)):()=>!0,xo=Q.hasStandardBrowserEnv?{write(e,u,t,n,r,o){const i=[e+"="+encodeURIComponent(u)];m.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),m.isString(n)&&i.push("path="+n),m.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const u=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return u?decodeURIComponent(u[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function yo(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ko(e,u){return u?e.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):e}function Pt(e,u,t){let n=!yo(u);return e&&(n||t==!1)?ko(e,u):u}const Mt=e=>e instanceof X?{...e}:e;function ke(e,u){u=u||{};const t={};function n(l,d,f,h){return m.isPlainObject(l)&&m.isPlainObject(d)?m.merge.call({caseless:h},l,d):m.isPlainObject(d)?m.merge({},d):m.isArray(d)?d.slice():d}function r(l,d,f,h){if(m.isUndefined(d)){if(!m.isUndefined(l))return n(void 0,l,f,h)}else return n(l,d,f,h)}function o(l,d){if(!m.isUndefined(d))return n(void 0,d)}function i(l,d){if(m.isUndefined(d)){if(!m.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function c(l,d,f){if(f in u)return n(l,d);if(f in e)return n(void 0,l)}const s={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,d,f)=>r(Mt(l),Mt(d),f,!0)};return m.forEach(Object.keys(Object.assign({},e,u)),function(d){const f=s[d]||r,h=f(e[d],u[d],d);m.isUndefined(h)&&f!==c||(t[d]=h)}),t}const zt=e=>{const u=ke({},e);let{data:t,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:c}=u;u.headers=i=X.from(i),u.url=St(Pt(u.baseURL,u.url,u.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let s;if(m.isFormData(t)){if(Q.hasStandardBrowserEnv||Q.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[l,...d]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...d].join("; "))}}if(Q.hasStandardBrowserEnv&&(n&&m.isFunction(n)&&(n=n(u)),n||n!==!1&&go(u.url))){const l=r&&o&&xo.read(o);l&&i.set(r,l)}return u},_o=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(t,n){const r=zt(e);let o=r.data;const i=X.from(r.headers).normalize();let{responseType:c,onUploadProgress:s,onDownloadProgress:l}=r,d,f,h,b,p;function g(){b&&b(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(d),r.signal&&r.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(r.method.toUpperCase(),r.url,!0),x.timeout=r.timeout;function C(){if(!x)return;const E=X.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:e,request:x};It(function(T){t(T),g()},function(T){n(T),g()},w),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(C)},x.onabort=function(){x&&(n(new R("Request aborted",R.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new R("Network Error",R.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let A=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const w=r.transitional||Bt;r.timeoutErrorMessage&&(A=r.timeoutErrorMessage),n(new R(A,w.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,x)),x=null},o===void 0&&i.setContentType(null),"setRequestHeader"in x&&m.forEach(i.toJSON(),function(A,w){x.setRequestHeader(w,A)}),m.isUndefined(r.withCredentials)||(x.withCredentials=!!r.withCredentials),c&&c!=="json"&&(x.responseType=r.responseType),l&&([h,p]=nu(l,!0),x.addEventListener("progress",h)),s&&x.upload&&([f,b]=nu(s),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",b)),(r.cancelToken||r.signal)&&(d=E=>{x&&(n(!E||E.type?new Fe(null,e,x):E),x.abort(),x=null)},r.cancelToken&&r.cancelToken.subscribe(d),r.signal&&(r.signal.aborted?d():r.signal.addEventListener("abort",d)));const k=ho(r.url);if(k&&Q.protocols.indexOf(k)===-1){n(new R("Unsupported protocol "+k+":",R.ERR_BAD_REQUEST,e));return}x.send(o||null)})},Eo=(e,u)=>{const{length:t}=e=e?e.filter(Boolean):[];if(u||t){let n=new AbortController,r;const o=function(l){if(!r){r=!0,c();const d=l instanceof Error?l:this.reason;n.abort(d instanceof R?d:new Fe(d instanceof Error?d.message:d))}};let i=u&&setTimeout(()=>{i=null,o(new R(`timeout ${u} of ms exceeded`,R.ETIMEDOUT))},u);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)};e.forEach(l=>l.addEventListener("abort",o));const{signal:s}=n;return s.unsubscribe=()=>m.asap(c),s}},Ao=function*(e,u){let t=e.byteLength;if(t<u){yield e;return}let n=0,r;for(;n<t;)r=n+u,yield e.slice(n,r),n=r},Co=async function*(e,u){for await(const t of wo(e))yield*Ao(t,u)},wo=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const u=e.getReader();try{for(;;){const{done:t,value:n}=await u.read();if(t)break;yield n}}finally{await u.cancel()}},qt=(e,u,t,n)=>{const r=Co(e,u);let o=0,i,c=s=>{i||(i=!0,n&&n(s))};return new ReadableStream({async pull(s){try{const{done:l,value:d}=await r.next();if(l){c(),s.close();return}let f=d.byteLength;if(t){let h=o+=f;t(h)}s.enqueue(new Uint8Array(d))}catch(l){throw c(l),l}},cancel(s){return c(s),r.return()}},{highWaterMark:2})},ru=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ut=ru&&typeof ReadableStream=="function",Do=ru&&(typeof TextEncoder=="function"?(e=>u=>e.encode(u))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...u)=>{try{return!!e(...u)}catch{return!1}},Fo=Ut&&jt(()=>{let e=!1;const u=new Request(Q.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!u}),Vt=64*1024,Nu=Ut&&jt(()=>m.isReadableStream(new Response("").body)),ou={stream:Nu&&(e=>e.body)};ru&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!ou[u]&&(ou[u]=m.isFunction(e[u])?t=>t[u]():(t,n)=>{throw new R(`Response type '${u}' is not supported`,R.ERR_NOT_SUPPORT,n)})})})(new Response);const So=async e=>{if(e==null)return 0;if(m.isBlob(e))return e.size;if(m.isSpecCompliantForm(e))return(await new Request(Q.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(m.isArrayBufferView(e)||m.isArrayBuffer(e))return e.byteLength;if(m.isURLSearchParams(e)&&(e=e+""),m.isString(e))return(await Do(e)).byteLength},vo=async(e,u)=>{const t=m.toFiniteNumber(e.getContentLength());return t??So(u)},Iu={http:Qr,xhr:_o,fetch:ru&&(async e=>{let{url:u,method:t,data:n,signal:r,cancelToken:o,timeout:i,onDownloadProgress:c,onUploadProgress:s,responseType:l,headers:d,withCredentials:f="same-origin",fetchOptions:h}=zt(e);l=l?(l+"").toLowerCase():"text";let b=Eo([r,o&&o.toAbortSignal()],i),p;const g=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let x;try{if(s&&Fo&&t!=="get"&&t!=="head"&&(x=await vo(d,n))!==0){let w=new Request(u,{method:"POST",body:n,duplex:"half"}),F;if(m.isFormData(n)&&(F=w.headers.get("content-type"))&&d.setContentType(F),w.body){const[T,U]=Ot(x,nu(Lt(s)));n=qt(w.body,Vt,T,U)}}m.isString(f)||(f=f?"include":"omit");const C="credentials"in Request.prototype;p=new Request(u,{...h,signal:b,method:t.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:C?f:void 0});let k=await fetch(p,h);const E=Nu&&(l==="stream"||l==="response");if(Nu&&(c||E&&g)){const w={};["status","statusText","headers"].forEach(V=>{w[V]=k[V]});const F=m.toFiniteNumber(k.headers.get("content-length")),[T,U]=c&&Ot(F,nu(Lt(c),!0))||[];k=new Response(qt(k.body,Vt,T,()=>{U&&U(),g&&g()}),w)}l=l||"text";let A=await ou[m.findKey(ou,l)||"text"](k,e);return!E&&g&&g(),await new Promise((w,F)=>{It(w,F,{data:A,headers:X.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:p})})}catch(C){throw g&&g(),C&&C.name==="TypeError"&&/Load failed|fetch/i.test(C.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,e,p),{cause:C.cause||C}):R.from(C,C&&C.code,e,p)}})};m.forEach(Iu,(e,u)=>{if(e){try{Object.defineProperty(e,"name",{value:u})}catch{}Object.defineProperty(e,"adapterName",{value:u})}});const $t=e=>`- ${e}`,Bo=e=>m.isFunction(e)||e===null||e===!1,Gt={getAdapter:e=>{e=m.isArray(e)?e:[e];const{length:u}=e;let t,n;const r={};for(let o=0;o<u;o++){t=e[o];let i;if(n=t,!Bo(t)&&(n=Iu[(i=String(t)).toLowerCase()],n===void 0))throw new R(`Unknown adapter '${i}'`);if(n)break;r[i||"#"+o]=n}if(!n){const o=Object.entries(r).map(([c,s])=>`adapter ${c} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=u?o.length>1?`since :
4
- `+o.map($t).join(`
5
- `):" "+$t(o[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:Iu};function Ou(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fe(null,e)}function Ht(e){return Ou(e),e.headers=X.from(e.headers),e.data=Tu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gt.getAdapter(e.adapter||Me.adapter)(e).then(function(n){return Ou(e),n.data=Tu.call(e,e.transformResponse,n),n.headers=X.from(n.headers),n},function(n){return Nt(n)||(Ou(e),n&&n.response&&(n.response.data=Tu.call(e,e.transformResponse,n.response),n.response.headers=X.from(n.response.headers))),Promise.reject(n)})}const Wt="1.10.0",iu={};["object","boolean","number","function","string","symbol"].forEach((e,u)=>{iu[e]=function(n){return typeof n===e||"a"+(u<1?"n ":" ")+e}});const Zt={};iu.transitional=function(u,t,n){function r(o,i){return"[Axios v"+Wt+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,c)=>{if(u===!1)throw new R(r(i," has been removed"+(t?" in "+t:"")),R.ERR_DEPRECATED);return t&&!Zt[i]&&(Zt[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),u?u(o,i,c):!0}},iu.spelling=function(u){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${u}`),!0)};function Ro(e,u,t){if(typeof e!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let r=n.length;for(;r-- >0;){const o=n[r],i=u[o];if(i){const c=e[o],s=c===void 0||i(c,o,e);if(s!==!0)throw new R("option "+o+" must be "+s,R.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new R("Unknown option "+o,R.ERR_BAD_OPTION)}}const au={assertOptions:Ro,validators:iu},ce=au.validators;let _e=class{constructor(u){this.defaults=u||{},this.interceptors={request:new vt,response:new vt}}async request(u,t){try{return await this._request(u,t)}catch(n){if(n instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
- `+o):n.stack=o}catch{}}throw n}}_request(u,t){typeof u=="string"?(t=t||{},t.url=u):t=u||{},t=ke(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;n!==void 0&&au.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},!1),r!=null&&(m.isFunction(r)?t.paramsSerializer={serialize:r}:au.assertOptions(r,{encode:ce.function,serialize:ce.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),au.assertOptions(t,{baseUrl:ce.spelling("baseURL"),withXsrfToken:ce.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&m.merge(o.common,o[t.method]);o&&m.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),t.headers=X.concat(i,o);const c=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(s=s&&g.synchronous,c.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!s){const p=[Ht.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),h=p.length,d=Promise.resolve(t);f<h;)d=d.then(p[f++],p[f++]);return d}h=c.length;let b=t;for(f=0;f<h;){const p=c[f++],g=c[f++];try{b=p(b)}catch(x){g.call(this,x);break}}try{d=Ht.call(this,b)}catch(p){return Promise.reject(p)}for(f=0,h=l.length;f<h;)d=d.then(l[f++],l[f++]);return d}getUri(u){u=ke(this.defaults,u);const t=Pt(u.baseURL,u.url,u.allowAbsoluteUrls);return St(t,u.params,u.paramsSerializer)}};m.forEach(["delete","get","head","options"],function(u){_e.prototype[u]=function(t,n){return this.request(ke(n||{},{method:u,url:t,data:(n||{}).data}))}}),m.forEach(["post","put","patch"],function(u){function t(n){return function(o,i,c){return this.request(ke(c||{},{method:u,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}_e.prototype[u]=t(),_e.prototype[u+"Form"]=t(!0)});let To=class lr{constructor(u){if(typeof u!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const n=this;this.promise.then(r=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](r);n._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{n.subscribe(c),o=c}).then(r);return i.cancel=function(){n.unsubscribe(o)},i},u(function(o,i,c){n.reason||(n.reason=new Fe(o,i,c),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}this._listeners?this._listeners.push(u):this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;const t=this._listeners.indexOf(u);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const u=new AbortController,t=n=>{u.abort(n)};return this.subscribe(t),u.signal.unsubscribe=()=>this.unsubscribe(t),u.signal}static source(){let u;return{token:new lr(function(r){u=r}),cancel:u}}};function No(e){return function(t){return e.apply(null,t)}}function Io(e){return m.isObject(e)&&e.isAxiosError===!0}const Lu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lu).forEach(([e,u])=>{Lu[u]=e});function Qt(e){const u=new _e(e),t=we(_e.prototype.request,u);return m.extend(t,_e.prototype,u,{allOwnKeys:!0}),m.extend(t,u,null,{allOwnKeys:!0}),t.create=function(r){return Qt(ke(e,r))},t}const q=Qt(Me);q.Axios=_e,q.CanceledError=Fe,q.CancelToken=To,q.isCancel=Nt,q.VERSION=Wt,q.toFormData=uu,q.AxiosError=R,q.Cancel=q.CanceledError,q.all=function(u){return Promise.all(u)},q.spread=No,q.isAxiosError=Io,q.mergeConfig=ke,q.AxiosHeaders=X,q.formToJSON=e=>Rt(m.isHTMLForm(e)?new FormData(e):e),q.getAdapter=Gt.getAdapter,q.HttpStatusCode=Lu,q.default=q;const{Axios:xl,AxiosError:yl,CanceledError:kl,isCancel:_l,CancelToken:El,VERSION:Al,all:Cl,Cancel:wl,isAxiosError:Dl,spread:Fl,toFormData:Sl,AxiosHeaders:vl,HttpStatusCode:Bl,formToJSON:Rl,getAdapter:Tl,mergeConfig:Nl}=q;function Oo(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function Jt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Yt(e={},u={}){const t={},n=new Set([...Object.keys(e),...Object.keys(u)]);for(const r of n){if(r==="__proto__"||r==="constructor"||r==="prototype")continue;const o=e[r],i=u[r];Jt(o)&&Jt(i)?t[r]=Yt(o,i):t[r]=i!==void 0?i:o}return t}const Lo="q-defaults";function Po(){var e,u;const t=a.getCurrentInstance();if(!t)throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");const n=t.type.name??t.type.__name;if(!n)throw new Error("[Quidgest UI] Could not determine component name");const r=Mo(),o=(e=r.value)==null?void 0:e.Global,i=(u=r.value)==null?void 0:u[n];return a.computed(()=>Yt(o,i))}function Mo(){const e=a.inject(Lo,void 0);if(!e)throw new Error("[Quidgest UI] Could not find defaults instance");return e}const zo=["id"],qo=a.defineComponent({__name:"QSpinnerLoader",props:{id:{},class:{},size:{default:48}},setup(e){const u=e,t=a.computed(()=>({"font-size":u.size!==48?`${u.size}px`:void 0}));return(n,r)=>(a.openBlock(),a.createElementBlock("div",{id:u.id,class:a.normalizeClass(["q-spinner-loader",u.class]),style:a.normalizeStyle(t.value)},null,14,zo))}});function Uo(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").trim().split(/\s+/)}function jo(e){return Uo(e).join("-").toLowerCase()}function Vo(e,u){var t;const n=jo(u);return n?typeof((t=e.props)==null?void 0:t[n])<"u":!1}function W(e){const u=e,t=u.setup;return t&&(u.setup=(n,r)=>{const o=Po();if(Oo(o.value))return t(n,r);const i=a.getCurrentInstance();if(i===null)return t(n,r);const c=new Proxy(n,{get(s,l){var d;const f=Reflect.get(s,l),h=(d=o.value)==null?void 0:d[l];return typeof l=="string"&&!Vo(i.vnode,l)?h??f:f}});return t(c,r)}),e}const $o=W(qo);function Go(e,u=!1){return u?/^#[a-fA-F0-9]{6}$/.test(e):/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e)}function Ho(e){const u=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(u){const t=parseInt(u[1],10),n=parseInt(u[2],10),r=parseInt(u[3],10);return{r:t,g:n,b:r}}}function Wo(e){if(Go(e)){e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const u=parseInt(e.slice(1,3),16),t=parseInt(e.slice(3,5),16),n=parseInt(e.slice(5,7),16);return{r:u,g:t,b:n}}else{const u=Ho(e);if(u)return u}throw new Error("Invalid color format")}function Zo(e,u){const t=Kt(e),n=u/100;return t.l=t.l-n*t.l,Jo(t)}function Qo(e){const u=e.r.toString(16).padStart(2,"0"),t=e.g.toString(16).padStart(2,"0"),n=e.b.toString(16).padStart(2,"0");return`#${u}${t}${n}`}function Xt(e){return`${e.r} ${e.g} ${e.b}`}function Kt(e){const u=e.r/255,t=e.g/255,n=e.b/255,r=Math.max(u,t,n),o=Math.min(u,t,n);let i=0,c;const s=(r+o)/2;if(r===o)i=c=0;else{const l=r-o;switch(c=s>.5?l/(2-r-o):l/(r+o),r){case u:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-u)/l+2;break;case n:i=(u-t)/l+4;break}i/=6}return{h:Math.round(i*360),s:Math.round(c*100),l:Math.round(s*100)}}function Jo(e){const u=e.h/360,t=e.s/100,n=e.l/100;let r,o,i;if(t===0)r=o=i=n;else{const c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=Pu(s,c,u+1/3),o=Pu(s,c,u),i=Pu(s,c,u-1/3)}return{r:Math.round(r*255),g:Math.round(o*255),b:Math.round(i*255)}}function Pu(e,u,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(u-e)*6*t:t<1/2?u:t<2/3?e+(u-e)*(2/3-t)*6:e}function Yo(e){return e>50?"#000":"#fff"}const Xo=Symbol.for("q-theme");function en(){const e=a.inject(Xo);if(!e)throw new Error("[Quidgest UI] Could not find theme instance");return e}function un(e){const u=a.computed(()=>a.unref(e)),t=a.computed(()=>u.value?!Ko(u.value):!1),n=a.computed(()=>{const r=u.value;if(!r)return;let o=r;const i=en();if(t.value){const h=r;o=i.current.value.scheme[h]??r}let c;try{if(c=Wo(o),!c)return}catch(h){console.error("Failed to parse color:",h);return}const s=Kt(c),l=Yo(s.l),d=Zo(c,25),f=Qo(d);return{mainColor:o,mainColorRgb:Xt(c),onMainColor:l,hoverColor:f,hoverColorRgb:Xt(d),onHoverColor:l}});return{isUtilityColor:t,style:n}}function Ko(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}const e0=["id","disabled"],u0={key:0,class:"q-button__spinner"},t0={class:"q-button__content"},se=W(a.defineComponent({__name:"QButton",props:{id:{},class:{},label:{},variant:{default:"outlined"},color:{default:"primary"},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{default:"regular"},iconPos:{default:"start"},pill:{type:Boolean}},emits:["click"],setup(e,{emit:u}){const t=e,n=u,r=a.computed(()=>t.disabled||t.loading);function o(d){r.value||n("click",d)}const{isUtilityColor:i,style:c}=un(a.toRef(t,"color")),s=a.computed(()=>{const d=i.value?`q-button--${t.color}`:void 0,f=t.size!=="regular"?`q-button--${t.size}`:void 0,h=t.iconPos!=="start"?`q-button--icon-${t.iconPos}`:void 0;return["q-button",`q-button--${t.variant}`,d,f,h,{"q-button--borderless":t.borderless,"q-button--elevated":t.elevated,"q-button--block":t.block,"q-button--loading":t.loading,"q-button--pill":t.pill},t.class]}),l=a.computed(()=>{var d,f,h,b,p,g;if(!i.value)return{"--q-button-main-color":(d=c.value)==null?void 0:d.mainColor,"--q-button-main-color-rgb":(f=c.value)==null?void 0:f.mainColorRgb,"--q-button-on-main-color":(h=c.value)==null?void 0:h.onMainColor,"--q-button-hover-color":(b=c.value)==null?void 0:b.hoverColor,"--q-button-hover-color-rgb":(p=c.value)==null?void 0:p.hoverColorRgb,"--q-button-on-hover-color":(g=c.value)==null?void 0:g.onHoverColor}});return(d,f)=>(a.openBlock(),a.createElementBlock("button",{id:t.id,type:"button",class:a.normalizeClass(s.value),disabled:r.value,style:a.normalizeStyle(l.value),onClick:a.withModifiers(o,["stop","prevent"])},[t.loading?(a.openBlock(),a.createElementBlock("div",u0,[a.createVNode(a.unref($o))])):a.createCommentVNode("v-if",!0),a.createElementVNode("span",t0,[a.renderSlot(d.$slots,"default"),a.createTextVNode(" "+a.toDisplayString(t.label),1)])],14,e0))}})),n0=a.defineComponent({__name:"QIcon",props:{id:{},class:{},icon:{},type:{default:"svg"},size:{},color:{}},setup(e){const u=e,t=a.computed(()=>{switch(u.type){case"svg":return h0;case"font":return f0;case"img":return p0;default:return}}),{style:n}=un(a.toRef(u,"color")),r=a.computed(()=>{var o;return{"font-size":u.size!==void 0?`${u.size}px`:void 0,color:u.color!==void 0&&u.color!=="primary"?(o=n.value)==null?void 0:o.mainColor:void 0}});return(o,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.value),{id:u.id,class:a.normalizeClass(u.class),icon:u.icon,style:a.normalizeStyle(r.value)},null,8,["id","class","icon","style"]))}}),r0=["id"],o0=a.defineComponent({__name:"QIconFont",props:{id:{},class:{},icon:{},library:{default:""},variant:{}},setup(e){const u=e,t=a.computed(()=>u.variant?`${u.library}-${u.variant}`:u.library),n=a.computed(()=>u.library&&u.icon?`${u.library}-${u.icon}`:u.icon);return(r,o)=>(a.openBlock(),a.createElementBlock("i",{id:u.id,class:a.normalizeClass(["q-icon","q-icon__font",t.value,n.value,u.class])},null,10,r0))}}),i0=["id","src"],a0=a.defineComponent({__name:"QIconImg",props:{id:{},class:{},icon:{}},setup(e){const u=e;return(t,n)=>(a.openBlock(),a.createElementBlock("img",{id:u.id,src:u.icon,class:a.normalizeClass(["q-icon","q-icon__img",u.class])},null,10,i0))}}),qe={},c0=a.defineComponent({name:"InlineSvg",inheritAttrs:!1,props:{src:{type:String,required:!0},symbol:{type:String,default:""},title:{type:String,default:""},transformSource:{type:Function,default:void 0},keepDuringLoading:{type:Boolean,default:!0}},emits:{loaded:e=>typeof e=="object",unloaded:()=>!0,error:e=>typeof e=="object"},data(){return{svgElSource:null}},watch:{src(e){this.getSource(e)}},async mounted(){await this.getSource(this.src)},methods:{copySvgAttrs(e,u){const t=u.attributes;if(t)for(const n of t)e[n.name]=n.value},copyComponentAttrs(e,u){for(const[t,n]of Object.entries(u))n!==!1&&n!==null&&n!==void 0&&(e[t]=n)},getSvgContent(e){return this.symbol&&(e=e.getElementById(this.symbol),!e)?null:(this.transformSource&&(e=e.cloneNode(!0),e=this.transformSource(e)),this.title&&(this.transformSource||(e=e.cloneNode(!0)),s0(e,this.title)),e)},async getSource(e){try{qe[e]||(qe[e]=l0(this.download(e))),this.svgElSource&&qe[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded"));const u=await qe[e];this.svgElSource=u,await this.$nextTick(),this.$emit("loaded",this.$el)}catch(u){this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete qe[e],this.$emit("error",u)}},async download(e){const u=await fetch(e);if(!u.ok)throw new Error("Error loading SVG");const t=await u.text(),n=new DOMParser().parseFromString(t,"text/xml").getElementsByTagName("svg")[0];if(!n)throw new Error("Loaded file is not a valid SVG");return n}},render(){if(!this.svgElSource)return null;const e=this.getSvgContent(this.svgElSource);if(!e)return a.h("div",this.$attrs);const u={};return this.copySvgAttrs(u,this.svgElSource),this.copySvgAttrs(u,e),this.copyComponentAttrs(u,this.$attrs),u.innerHTML=e.innerHTML,a.h("svg",u)},expose:[]});function s0(e,u){const t=e.getElementsByTagName("title");if(t.length)t[0].textContent=u;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=u,e.insertBefore(n,e.firstChild)}}function l0(e){if(e.getIsPending)return e;let u=!0;const t=e.then(n=>(u=!1,n),n=>{throw u=!1,n});return t.getIsPending=()=>u,t}const d0=a.defineComponent({__name:"QIconSvg",props:{id:{},class:{},icon:{},bundle:{default:""}},emits:["loaded","unloaded"],setup(e,{emit:u}){const t=e,n=u;function r(i){n("loaded",i)}function o(){n("unloaded")}return(i,c)=>(a.openBlock(),a.createBlock(a.unref(c0),{id:t.id,class:a.normalizeClass(["q-icon","q-icon__svg",t.class]),src:t.bundle,symbol:t.icon,onLoaded:r,onUnloaded:o},null,8,["id","class","src","symbol"]))}}),ne=W(n0),f0=W(o0),p0=W(a0),h0=W(d0);let b0=0;function Mu(e){return a.unref(e)||`uid-${++b0}`}const m0=["id"],g0=["for"],tn=W(a.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},for:{},required:{type:Boolean}},setup(e){const u=e,t=a.computed(()=>["q-label",{"q-label--required":u.required},u.class]);return(n,r)=>(a.openBlock(),a.createElementBlock("div",{id:u.id,class:a.normalizeClass(t.value)},[a.renderSlot(n.$slots,"prepend"),a.createElementVNode("label",a.mergeProps({for:u.for},n.$attrs),[a.renderSlot(n.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(u.label),1)])],16,g0),a.renderSlot(n.$slots,"append")],10,m0))}})),x0=["id"],y0={key:0,class:"q-field__prepend"},k0={key:1,class:"q-field__append"},_0={key:1,class:"q-field__extras"},nn=W(a.defineComponent({inheritAttrs:!1,__name:"QField",props:{id:{},class:{},label:{},for:{},required:{type:Boolean},size:{default:"medium"},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean}},setup(e,{expose:u}){const t=e,n=a.ref(null),r=a.computed(()=>t.required&&!t.readonly&&!t.disabled),o=a.computed(()=>["q-field",`q-field--${t.size}`,{"q-field--readonly":t.readonly,"q-field--disabled":t.disabled,"q-field--required":r.value,"q-field--invalid":t.invalid},t.class]);return u({fieldRef:n}),(i,c)=>(a.openBlock(),a.createElementBlock("div",{id:t.id,class:a.normalizeClass(o.value)},[t.label?(a.openBlock(),a.createBlock(a.unref(tn),{key:0,class:"q-field__label",label:t.label,for:t.for,required:t.required},{prepend:a.withCtx(()=>[a.renderSlot(i.$slots,"label.prepend")]),append:a.withCtx(()=>[a.renderSlot(i.$slots,"label.append")]),_:3},8,["label","for","required"])):a.createCommentVNode("v-if",!0),a.renderSlot(i.$slots,"control",{},()=>[a.createElementVNode("div",a.mergeProps({ref_key:"fieldRef",ref:n,class:"q-field__control"},i.$attrs),[i.$slots.prepend?(a.openBlock(),a.createElementBlock("div",y0,[a.renderSlot(i.$slots,"prepend")])):a.createCommentVNode("v-if",!0),a.renderSlot(i.$slots,"default"),i.$slots.append?(a.openBlock(),a.createElementBlock("div",k0,[a.renderSlot(i.$slots,"append")])):a.createCommentVNode("v-if",!0)],16)]),i.$slots.extras?(a.openBlock(),a.createElementBlock("div",_0,[a.renderSlot(i.$slots,"extras")])):a.createCommentVNode("v-if",!0)],10,x0))}})),E0={clearValue:"Clear value"},A0={clear:{icon:"close"}},C0=W(a.defineComponent({__name:"QClearButton",props:{id:{},class:{},icons:{default:()=>A0},texts:{default:()=>E0}},emits:["click"],setup(e,{emit:u}){const t=e,n=u;function r(o){n("click",o)}return(o,i)=>(a.openBlock(),a.createBlock(a.unref(se),{id:t.id,class:a.normalizeClass(["q-clear-btn",t.class]),"aria-label":t.texts.clearValue,variant:"ghost",color:"neutral",borderless:"",tabindex:"-1",onClick:r},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),a.normalizeProps(a.guardReactiveProps(t.icons.clear)),null,16)]),_:1},8,["id","class","aria-label"]))}})),w0=["id","type","maxlength","required","placeholder","readonly","disabled"],D0=W(a.defineComponent({inheritAttrs:!1,__name:"QTextField",props:a.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},clearable:{type:Boolean},type:{default:"text"},texts:{}},{modelValue:{},modelModifiers:{}}),emits:a.mergeModels(["click:clear"],["update:modelValue"]),setup(e,{expose:u,emit:t}){const n=e,r=t,o=a.useModel(e,"modelValue"),i=a.computed({get:()=>o.value,set:p=>{const g=n.maxLength;o.value=g?p==null?void 0:p.slice(0,g):p}});a.watch(o,p=>i.value=p,{immediate:!0});const c=Mu(n.id),s=a.ref(null),l=a.ref(null),d=a.computed(()=>n.readonly||n.disabled?void 0:n.placeholder),f=a.computed(()=>n.clearable&&!n.readonly&&!n.disabled),h=a.computed(()=>f.value&&o.value);function b(p){f.value&&(o.value="",r("click:clear",p))}return u({fieldRef:a.computed(()=>{var p;return(p=s.value)==null?void 0:p.fieldRef}),inputRef:l}),(p,g)=>(a.openBlock(),a.createBlock(a.unref(nn),{ref_key:"fieldRef",ref:s,class:a.normalizeClass(["q-text-field",n.class]),for:a.unref(c),label:n.label,size:n.size,readonly:n.readonly,disabled:n.disabled,required:n.required,invalid:n.invalid},a.createSlots({"label.prepend":a.withCtx(()=>[a.renderSlot(p.$slots,"label.prepend")]),"label.append":a.withCtx(()=>[a.renderSlot(p.$slots,"label.append")]),default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",a.mergeProps({id:a.unref(c),ref_key:"inputRef",ref:l,"onUpdate:modelValue":g[0]||(g[0]=x=>i.value=x),class:"q-text-field__input",type:n.type,maxlength:n.maxLength,required:n.required,placeholder:d.value,readonly:n.readonly,disabled:n.disabled},p.$attrs),null,16,w0),[[a.vModelDynamic,i.value]])]),_:2},[p.$slots.prepend?{name:"prepend",fn:a.withCtx(()=>[a.renderSlot(p.$slots,"prepend")]),key:"0"}:void 0,p.$slots.append||h.value?{name:"append",fn:a.withCtx(()=>[a.renderSlot(p.$slots,"append"),h.value?(a.openBlock(),a.createBlock(a.unref(C0),{key:0,"data-testid":"q-text-field__clear-button",texts:n.texts,onClick:b},null,8,["texts"])):a.createCommentVNode("v-if",!0)]),key:"1"}:void 0,p.$slots.extras?{name:"extras",fn:a.withCtx(()=>[a.renderSlot(p.$slots,"extras")]),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required","invalid"]))}})),F0=Symbol("DismissibleLayer");function S0(e){const u=a.inject(F0);if(!u)throw new Error("useDismissibleLayerStackItem must be used within a dismissible layer stack context.");return{register:()=>u.register(e),unregister:()=>u.unregister(e),isTop:()=>u.isTop(e)}}const v0=W(a.defineComponent({__name:"QDismissibleLayer",emits:["escape-key-down","pointer-down-outside","focus-outside","interact-outside","dismiss"],setup(e,{emit:u}){const t=u,n=a.useTemplateRef("layerRef"),r=a.useId(),o=S0(r);let i=[];function c(f){f.key==="Escape"&&o!=null&&o.isTop()&&(t("escape-key-down",f),f.defaultPrevented||t("dismiss",f))}function s(f){if(!n.value)return;const h=f.target;if(!n.value.contains(h)&&o!=null&&o.isTop()){const b=new CustomEvent("focus-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:f}});t("focus-outside",b),t("interact-outside",b),b.defaultPrevented||t("dismiss",b)}}function l(f){if(!n.value||!(o!=null&&o.isTop()))return;const h=f.target;if(!n.value.contains(h)){const b=new CustomEvent("pointer-down-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:f}});t("pointer-down-outside",b),t("interact-outside",b),b.defaultPrevented||t("dismiss",b)}}function d(){["mousedown","touchstart"].forEach(f=>{document.addEventListener(f,l,{passive:!0,capture:!0}),i.push(()=>{document.removeEventListener(f,l,{capture:!0})})})}return a.onMounted(()=>{o==null||o.register(),document.addEventListener("keydown",c),i.push(()=>{document.removeEventListener("keydown",c)}),document.addEventListener("focusin",s),i.push(()=>{document.removeEventListener("focusin",s)}),d()}),a.onUnmounted(()=>{o==null||o.unregister(),i.forEach(f=>f()),i=[]}),(f,h)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"layerRef",ref:n},[a.renderSlot(f.$slots,"default")],512))}}));function B0(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}const R0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const T0=()=>{};function rn(...e){if(e.length!==1)return a.toRef(...e);const u=e[0];return typeof u=="function"?a.readonly(a.customRef(()=>({get:u,set:T0}))):a.ref(u)}const zu=R0?window:void 0;function qu(e){var u;const t=a.toValue(e);return(u=t==null?void 0:t.$el)!=null?u:t}function N0(){const e=a.shallowRef(!1),u=a.getCurrentInstance();return u&&a.onMounted(()=>{e.value=!0},u),e}function I0(e){const u=N0();return a.computed(()=>(u.value,!!e()))}function O0(e,u,t={}){const{window:n=zu,...r}=t;let o;const i=I0(()=>n&&"ResizeObserver"in n),c=()=>{o&&(o.disconnect(),o=void 0)},s=a.computed(()=>{const f=a.toValue(e);return Array.isArray(f)?f.map(h=>qu(h)):[qu(f)]}),l=a.watch(s,f=>{if(c(),i.value&&n){o=new ResizeObserver(u);for(const h of f)h&&o.observe(h,r)}},{immediate:!0,flush:"post"}),d=()=>{c(),l()};return B0(d),{isSupported:i,stop:d}}function L0(e=zu,u){e&&typeof e.requestAnimationFrame=="function"?e.requestAnimationFrame(u):u()}function P0(e={}){var u,t;const{window:n=zu}=e,r=rn(e==null?void 0:e.element),o=rn((u=e==null?void 0:e.input)!=null?u:""),i=(t=e==null?void 0:e.styleProp)!=null?t:"height",c=a.shallowRef(1),s=a.shallowRef(0);function l(){var d;if(!r.value)return;let f="";r.value.style[i]="1px",c.value=(d=r.value)==null?void 0:d.scrollHeight;const h=a.toValue(e==null?void 0:e.styleTarget);h?h.style[i]=`${c.value}px`:f=`${c.value}px`,r.value.style[i]=f}return a.watch([o,r],()=>a.nextTick(l),{immediate:!0}),a.watch(c,()=>{var d;return(d=e==null?void 0:e.onResize)==null?void 0:d.call(e)}),O0(r,([{contentRect:d}])=>{s.value!==d.width&&L0(n,()=>{s.value=d.width,l()})}),e!=null&&e.watch&&a.watch(e.watch,l,{immediate:!0,deep:!0}),{textarea:r,input:o,triggerResize:l}}/*!
1
+ (function(t,W){typeof exports=="object"&&typeof module<"u"?module.exports=W(require("vue"),require("axios"),require("markdown-it")):typeof define=="function"&&define.amd?define(["vue","axios","markdown-it"],W):(t=typeof globalThis<"u"?globalThis:t||self,t.ChatBotFrontend=W(t.vue,t.axios,t.MarkdownIt))})(this,function(t,W,et){"use strict";function ge(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}function Ne(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function be(e={},n={}){const o={},a=new Set([...Object.keys(e),...Object.keys(n)]);for(const r of a){if(r==="__proto__"||r==="constructor"||r==="prototype")continue;const l=e[r],i=n[r];Ne(l)&&Ne(i)?o[r]=be(l,i):o[r]=i!==void 0?i:l}return o}const Se="q-defaults";function tt(){var e,n;const o=t.getCurrentInstance();if(!o)throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");const a=o.type.name??o.type.__name;if(!a)throw new Error("[Quidgest UI] Could not determine component name");const r=Ie(),l=(e=r.value)==null?void 0:e.Global,i=(n=r.value)==null?void 0:n[a];return t.computed(()=>be(l,i))}function nt(e){if(ge(e))return;const n=Ie(),o=t.ref(e),a=t.computed(()=>ge(o.value)?n.value:be(n.value,o.value));t.provide(Se,a)}function Ie(){const e=t.inject(Se,void 0);if(!e)throw new Error("[Quidgest UI] Could not find defaults instance");return e}const ot=["id"],at=t.defineComponent({__name:"QSpinnerLoader",props:{id:{},class:{},size:{default:48}},setup(e){const n=e,o=t.computed(()=>({"font-size":n.size!==48?`${n.size}px`:void 0}));return(a,r)=>(t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(["q-spinner-loader",n.class]),style:t.normalizeStyle(o.value)},null,14,ot))}});function rt(e){return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([0-9])([a-zA-Z])/g,"$1 $2").replace(/([a-zA-Z])([0-9])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").trim().split(/\s+/)}function lt(e){return rt(e).join("-").toLowerCase()}function it(e,n){var o;const a=lt(n);return a?typeof((o=e.props)==null?void 0:o[a])<"u":!1}function q(e){const n=e,o=n.setup;return o&&(n.setup=(a,r)=>{const l=tt();if(ge(l.value))return o(a,r);const i=t.getCurrentInstance();if(i===null)return o(a,r);const s=new Proxy(a,{get(u,f){var g;const c=Reflect.get(u,f),m=(g=l.value)==null?void 0:g[f];return typeof f=="string"&&!it(i.vnode,f)?m??c:c}});return o(s,r)}),e}const st=q(at);function ct(e,n=!1){return n?/^#[a-fA-F0-9]{6}$/.test(e):/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(e)}function dt(e){const n=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(n){const o=parseInt(n[1],10),a=parseInt(n[2],10),r=parseInt(n[3],10);return{r:o,g:a,b:r}}}function ut(e){if(ct(e)){e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const n=parseInt(e.slice(1,3),16),o=parseInt(e.slice(3,5),16),a=parseInt(e.slice(5,7),16);return{r:n,g:o,b:a}}else{const n=dt(e);if(n)return n}throw new Error("Invalid color format")}function pt(e,n){const o=De(e),a=n/100;return o.l=o.l-a*o.l,mt(o)}function ft(e){const n=e.r.toString(16).padStart(2,"0"),o=e.g.toString(16).padStart(2,"0"),a=e.b.toString(16).padStart(2,"0");return`#${n}${o}${a}`}function xe(e){return`${e.r} ${e.g} ${e.b}`}function De(e){const n=e.r/255,o=e.g/255,a=e.b/255,r=Math.max(n,o,a),l=Math.min(n,o,a);let i=0,s;const u=(r+l)/2;if(r===l)i=s=0;else{const f=r-l;switch(s=u>.5?f/(2-r-l):f/(r+l),r){case n:i=(o-a)/f+(o<a?6:0);break;case o:i=(a-n)/f+2;break;case a:i=(n-o)/f+4;break}i/=6}return{h:Math.round(i*360),s:Math.round(s*100),l:Math.round(u*100)}}function mt(e){const n=e.h/360,o=e.s/100,a=e.l/100;let r,l,i;if(o===0)r=l=i=a;else{const s=a<.5?a*(1+o):a+o-a*o,u=2*a-s;r=he(u,s,n+1/3),l=he(u,s,n),i=he(u,s,n-1/3)}return{r:Math.round(r*255),g:Math.round(l*255),b:Math.round(i*255)}}function he(e,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*6*o:o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function gt(e){return e>50?"#000":"#fff"}const bt=Symbol.for("q-theme");function $e(){const e=t.inject(bt);if(!e)throw new Error("[Quidgest UI] Could not find theme instance");return e}function Le(e){const n=t.computed(()=>t.unref(e)),o=t.computed(()=>n.value?!ht(n.value):!1),a=t.computed(()=>{const r=n.value;if(!r)return;let l=r;const i=$e();if(o.value){const m=r;l=i.current.value.scheme[m]??r}let s;try{if(s=ut(l),!s)return}catch(m){console.error("Failed to parse color:",m);return}const u=De(s),f=gt(u.l),g=pt(s,25),c=ft(g);return{mainColor:l,mainColorRgb:xe(s),onMainColor:f,hoverColor:c,hoverColorRgb:xe(g),onHoverColor:f}});return{isUtilityColor:o,style:a}}function ht(e){return e.startsWith("#")||e.startsWith("rgb")||e.startsWith("hsl")}const yt=["id","disabled"],wt={key:0,class:"q-button__spinner"},vt={class:"q-button__content"},ye=q(t.defineComponent({__name:"QButton",props:{id:{},class:{},label:{},variant:{default:"outlined"},color:{default:"primary"},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean},block:{type:Boolean},loading:{type:Boolean},size:{default:"regular"},iconPos:{default:"start"},pill:{type:Boolean}},emits:["click"],setup(e,{emit:n}){const o=e,a=n,r=t.computed(()=>o.disabled||o.loading);function l(g){r.value||a("click",g)}const{isUtilityColor:i,style:s}=Le(t.toRef(o,"color")),u=t.computed(()=>{const g=i.value?`q-button--${o.color}`:void 0,c=o.size!=="regular"?`q-button--${o.size}`:void 0,m=o.iconPos!=="start"?`q-button--icon-${o.iconPos}`:void 0;return["q-button",`q-button--${o.variant}`,g,c,m,{"q-button--borderless":o.borderless,"q-button--elevated":o.elevated,"q-button--block":o.block,"q-button--loading":o.loading,"q-button--pill":o.pill},o.class]}),f=t.computed(()=>{var g,c,m,y,x,$;if(!i.value)return{"--q-button-main-color":(g=s.value)==null?void 0:g.mainColor,"--q-button-main-color-rgb":(c=s.value)==null?void 0:c.mainColorRgb,"--q-button-on-main-color":(m=s.value)==null?void 0:m.onMainColor,"--q-button-hover-color":(y=s.value)==null?void 0:y.hoverColor,"--q-button-hover-color-rgb":(x=s.value)==null?void 0:x.hoverColorRgb,"--q-button-on-hover-color":($=s.value)==null?void 0:$.onHoverColor}});return(g,c)=>(t.openBlock(),t.createElementBlock("button",{id:o.id,type:"button",class:t.normalizeClass(u.value),disabled:r.value,style:t.normalizeStyle(f.value),onClick:t.withModifiers(l,["stop","prevent"])},[o.loading?(t.openBlock(),t.createElementBlock("div",wt,[t.createVNode(t.unref(st))])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",vt,[t.renderSlot(g.$slots,"default"),t.createTextVNode(" "+t.toDisplayString(o.label),1)])],14,yt))}})),kt=t.defineComponent({__name:"QIcon",props:{id:{},class:{},icon:{},type:{default:"svg"},size:{},color:{}},setup(e){const n=e,o=t.computed(()=>{switch(n.type){case"svg":return $t;case"font":return xt;case"img":return Dt;default:return}}),{style:a}=Le(t.toRef(n,"color")),r=t.computed(()=>{var l;return{"font-size":n.size!==void 0?`${n.size}px`:void 0,color:n.color!==void 0&&n.color!=="primary"?(l=a.value)==null?void 0:l.mainColor:void 0}});return(l,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.value),{id:n.id,class:t.normalizeClass(n.class),icon:n.icon,style:t.normalizeStyle(r.value)},null,8,["id","class","icon","style"]))}}),Bt=["id"],Et=t.defineComponent({__name:"QIconFont",props:{id:{},class:{},icon:{},library:{default:""},variant:{}},setup(e){const n=e,o=t.computed(()=>n.variant?`${n.library}-${n.variant}`:n.library),a=t.computed(()=>n.library&&n.icon?`${n.library}-${n.icon}`:n.icon);return(r,l)=>(t.openBlock(),t.createElementBlock("i",{id:n.id,class:t.normalizeClass(["q-icon","q-icon__font",o.value,a.value,n.class])},null,10,Bt))}}),Ct=["id","src"],_t=t.defineComponent({__name:"QIconImg",props:{id:{},class:{},icon:{}},setup(e){const n=e;return(o,a)=>(t.openBlock(),t.createElementBlock("img",{id:n.id,src:n.icon,class:t.normalizeClass(["q-icon","q-icon__img",n.class])},null,10,Ct))}}),te={},At=t.defineComponent({name:"InlineSvg",inheritAttrs:!1,props:{src:{type:String,required:!0},symbol:{type:String,default:""},title:{type:String,default:""},transformSource:{type:Function,default:void 0},keepDuringLoading:{type:Boolean,default:!0}},emits:{loaded:e=>typeof e=="object",unloaded:()=>!0,error:e=>typeof e=="object"},data(){return{svgElSource:null}},watch:{src(e){this.getSource(e)}},async mounted(){await this.getSource(this.src)},methods:{copySvgAttrs(e,n){const o=n.attributes;if(o)for(const a of o)e[a.name]=a.value},copyComponentAttrs(e,n){for(const[o,a]of Object.entries(n))a!==!1&&a!==null&&a!==void 0&&(e[o]=a)},getSvgContent(e){return this.symbol&&(e=e.getElementById(this.symbol),!e)?null:(this.transformSource&&(e=e.cloneNode(!0),e=this.transformSource(e)),this.title&&(this.transformSource||(e=e.cloneNode(!0)),Nt(e,this.title)),e)},async getSource(e){try{te[e]||(te[e]=St(this.download(e))),this.svgElSource&&te[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded"));const n=await te[e];this.svgElSource=n,await this.$nextTick(),this.$emit("loaded",this.$el)}catch(n){this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete te[e],this.$emit("error",n)}},async download(e){const n=await fetch(e);if(!n.ok)throw new Error("Error loading SVG");const o=await n.text(),a=new DOMParser().parseFromString(o,"text/xml").getElementsByTagName("svg")[0];if(!a)throw new Error("Loaded file is not a valid SVG");return a}},render(){if(!this.svgElSource)return null;const e=this.getSvgContent(this.svgElSource);if(!e)return t.h("div",this.$attrs);const n={};return this.copySvgAttrs(n,this.svgElSource),this.copySvgAttrs(n,e),this.copyComponentAttrs(n,this.$attrs),n.innerHTML=e.innerHTML,t.h("svg",n)},expose:[]});function Nt(e,n){const o=e.getElementsByTagName("title");if(o.length)o[0].textContent=n;else{const a=document.createElementNS("http://www.w3.org/2000/svg","title");a.textContent=n,e.insertBefore(a,e.firstChild)}}function St(e){if(e.getIsPending)return e;let n=!0;const o=e.then(a=>(n=!1,a),a=>{throw n=!1,a});return o.getIsPending=()=>n,o}const It=t.defineComponent({__name:"QIconSvg",props:{id:{},class:{},icon:{},bundle:{default:""}},emits:["loaded","unloaded"],setup(e,{emit:n}){const o=e,a=n;function r(i){a("loaded",i)}function l(){a("unloaded")}return(i,s)=>(t.openBlock(),t.createBlock(t.unref(At),{id:o.id,class:t.normalizeClass(["q-icon","q-icon__svg",o.class]),src:o.bundle,symbol:o.icon,onLoaded:r,onUnloaded:l},null,8,["id","class","src","symbol"]))}}),ne=q(kt),xt=q(Et),Dt=q(_t),$t=q(It);let Lt=0;function Mt(e){return t.unref(e)||`uid-${++Lt}`}const Rt=["id"],Tt=q(t.defineComponent({__name:"QButtonGroup",props:{id:{},class:{},disabled:{type:Boolean},borderless:{type:Boolean},elevated:{type:Boolean}},setup(e){const n=e;return nt({QButton:{disabled:t.toRef(n,"disabled"),borderless:t.toRef(n,"borderless")}}),(o,a)=>(t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(["q-button-group",{"q-button-group--elevated":n.elevated},n.class]),role:"group"},[t.renderSlot(o.$slots,"default")],10,Rt))}})),Ft=["id"],Vt=["for"],Pt=q(t.defineComponent({inheritAttrs:!1,__name:"QLabel",props:{id:{},class:{},label:{},for:{},required:{type:Boolean}},setup(e){const n=e,o=t.computed(()=>["q-label",{"q-label--required":n.required},n.class]);return(a,r)=>(t.openBlock(),t.createElementBlock("div",{id:n.id,class:t.normalizeClass(o.value)},[t.renderSlot(a.$slots,"prepend"),t.createElementVNode("label",t.mergeProps({for:n.for},a.$attrs),[t.renderSlot(a.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(n.label),1)])],16,Vt),t.renderSlot(a.$slots,"append")],10,Ft))}})),Ot=Symbol("DismissibleLayer");function Ut(e){const n=t.inject(Ot);if(!n)throw new Error("useDismissibleLayerStackItem must be used within a dismissible layer stack context.");return{register:()=>n.register(e),unregister:()=>n.unregister(e),isTop:()=>n.isTop(e)}}const qt={ref:"layer"},jt=q(t.defineComponent({__name:"QDismissibleLayer",emits:["escape-key-down","pointer-down-outside","focus-outside","interact-outside","dismiss"],setup(e,{emit:n}){const o=n,a=t.useTemplateRef("layer"),r=t.useId(),l=Ut(r);let i=[];function s(c){c.key==="Escape"&&l!=null&&l.isTop()&&(o("escape-key-down",c),c.defaultPrevented||o("dismiss",c))}function u(c){if(!a.value)return;const m=c.target;if(!a.value.contains(m)&&l!=null&&l.isTop()){const y=new CustomEvent("focus-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:c}});o("focus-outside",y),o("interact-outside",y),y.defaultPrevented||o("dismiss",y)}}function f(c){if(!a.value||!(l!=null&&l.isTop()))return;const m=c.target;if(!a.value.contains(m)){const y=new CustomEvent("pointer-down-outside",{bubbles:!1,cancelable:!0,detail:{originalEvent:c}});o("pointer-down-outside",y),o("interact-outside",y),y.defaultPrevented||o("dismiss",y)}}function g(){["mousedown","touchstart"].forEach(c=>{document.addEventListener(c,f,{passive:!0,capture:!0}),i.push(()=>{document.removeEventListener(c,f,{capture:!0})})})}return t.onMounted(()=>{l==null||l.register(),document.addEventListener("keydown",s),i.push(()=>{document.removeEventListener("keydown",s)}),document.addEventListener("focusin",u),i.push(()=>{document.removeEventListener("focusin",u)}),g()}),t.onUnmounted(()=>{l==null||l.unregister(),i.forEach(c=>c()),i=[]}),(c,m)=>(t.openBlock(),t.createElementBlock("div",qt,[t.renderSlot(c.$slots,"default")],512))}}));typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Gt(e){var n;const o=t.toValue(e);return(n=o==null?void 0:o.$el)!=null?n:o}/*!
7
2
  * tabbable 6.2.0
8
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
9
- */var on=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],cu=on.join(","),an=typeof Element>"u",Ee=an?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,su=!an&&Element.prototype.getRootNode?function(e){var u;return e==null||(u=e.getRootNode)===null||u===void 0?void 0:u.call(e)}:function(e){return e==null?void 0:e.ownerDocument},lu=function e(u,t){var n;t===void 0&&(t=!0);var r=u==null||(n=u.getAttribute)===null||n===void 0?void 0:n.call(u,"inert"),o=r===""||r==="true",i=o||t&&u&&e(u.parentNode);return i},M0=function(e){var u,t=e==null||(u=e.getAttribute)===null||u===void 0?void 0:u.call(e,"contenteditable");return t===""||t==="true"},cn=function(e,u,t){if(lu(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(cu));return u&&Ee.call(e,cu)&&n.unshift(e),n=n.filter(t),n},sn=function e(u,t,n){for(var r=[],o=Array.from(u);o.length;){var i=o.shift();if(!lu(i,!1))if(i.tagName==="SLOT"){var c=i.assignedElements(),s=c.length?c:i.children,l=e(s,!0,n);n.flatten?r.push.apply(r,l):r.push({scopeParent:i,candidates:l})}else{var d=Ee.call(i,cu);d&&n.filter(i)&&(t||!u.includes(i))&&r.push(i);var f=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!lu(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(f&&h){var b=e(f===!0?i.children:f.children,!0,n);n.flatten?r.push.apply(r,b):r.push({scopeParent:i,candidates:b})}else o.unshift.apply(o,i.children)}}return r},ln=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ae=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||M0(e))&&!ln(e)?0:e.tabIndex},z0=function(e,u){var t=Ae(e);return t<0&&u&&!ln(e)?0:t},q0=function(e,u){return e.tabIndex===u.tabIndex?e.documentOrder-u.documentOrder:e.tabIndex-u.tabIndex},dn=function(e){return e.tagName==="INPUT"},U0=function(e){return dn(e)&&e.type==="hidden"},j0=function(e){var u=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(t){return t.tagName==="SUMMARY"});return u},V0=function(e,u){for(var t=0;t<e.length;t++)if(e[t].checked&&e[t].form===u)return e[t]},$0=function(e){if(!e.name)return!0;var u=e.form||su(e),t=function(o){return u.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=t(window.CSS.escape(e.name));else try{n=t(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var r=V0(n,e.form);return!r||r===e},G0=function(e){return dn(e)&&e.type==="radio"},H0=function(e){return G0(e)&&!$0(e)},W0=function(e){var u,t=e&&su(e),n=(u=t)===null||u===void 0?void 0:u.host,r=!1;if(t&&t!==e){var o,i,c;for(r=!!((o=n)!==null&&o!==void 0&&(i=o.ownerDocument)!==null&&i!==void 0&&i.contains(n)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!r&&n;){var s,l,d;t=su(n),n=(s=t)===null||s===void 0?void 0:s.host,r=!!((l=n)!==null&&l!==void 0&&(d=l.ownerDocument)!==null&&d!==void 0&&d.contains(n))}}return r},fn=function(e){var u=e.getBoundingClientRect(),t=u.width,n=u.height;return t===0&&n===0},Z0=function(e,u){var t=u.displayCheck,n=u.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=Ee.call(e,"details>summary:first-of-type"),o=r?e.parentElement:e;if(Ee.call(o,"details:not([open]) *"))return!0;if(!t||t==="full"||t==="legacy-full"){if(typeof n=="function"){for(var i=e;e;){var c=e.parentElement,s=su(e);if(c&&!c.shadowRoot&&n(c)===!0)return fn(e);e.assignedSlot?e=e.assignedSlot:!c&&s!==e.ownerDocument?e=s.host:e=c}e=i}if(W0(e))return!e.getClientRects().length;if(t!=="legacy-full")return!0}else if(t==="non-zero-area")return fn(e);return!1},Q0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var u=e.parentElement;u;){if(u.tagName==="FIELDSET"&&u.disabled){for(var t=0;t<u.children.length;t++){var n=u.children.item(t);if(n.tagName==="LEGEND")return Ee.call(u,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}u=u.parentElement}return!1},du=function(e,u){return!(u.disabled||lu(u)||U0(u)||Z0(u,e)||j0(u)||Q0(u))},Uu=function(e,u){return!(H0(u)||Ae(u)<0||!du(e,u))},J0=function(e){var u=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(u)||u>=0)},Y0=function e(u){var t=[],n=[];return u.forEach(function(r,o){var i=!!r.scopeParent,c=i?r.scopeParent:r,s=z0(c,i),l=i?e(r.candidates):c;s===0?i?t.push.apply(t,l):t.push(c):n.push({documentOrder:o,tabIndex:s,item:r,isScope:i,content:l})}),n.sort(q0).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),r},[]).concat(t)},X0=function(e,u){u=u||{};var t;return u.getShadowRoot?t=sn([e],u.includeContainer,{filter:Uu.bind(null,u),flatten:!1,getShadowRoot:u.getShadowRoot,shadowRootFilter:J0}):t=cn(e,u.includeContainer,Uu.bind(null,u)),Y0(t)},K0=function(e,u){u=u||{};var t;return u.getShadowRoot?t=sn([e],u.includeContainer,{filter:du.bind(null,u),flatten:!0,getShadowRoot:u.getShadowRoot}):t=cn(e,u.includeContainer,du.bind(null,u)),t},Se=function(e,u){if(u=u||{},!e)throw new Error("No node provided");return Ee.call(e,cu)===!1?!1:Uu(u,e)},ei=on.concat("iframe").join(","),ju=function(e,u){if(u=u||{},!e)throw new Error("No node provided");return Ee.call(e,ei)===!1?!1:du(u,e)};/*!
4
+ */var Me=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ie=Me.join(","),Re=typeof Element>"u",G=Re?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,se=!Re&&Element.prototype.getRootNode?function(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}:function(e){return e==null?void 0:e.ownerDocument},ce=function e(n,o){var a;o===void 0&&(o=!0);var r=n==null||(a=n.getAttribute)===null||a===void 0?void 0:a.call(n,"inert"),l=r===""||r==="true",i=l||o&&n&&e(n.parentNode);return i},zt=function(e){var n,o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return o===""||o==="true"},Te=function(e,n,o){if(ce(e))return[];var a=Array.prototype.slice.apply(e.querySelectorAll(ie));return n&&G.call(e,ie)&&a.unshift(e),a=a.filter(o),a},Fe=function e(n,o,a){for(var r=[],l=Array.from(n);l.length;){var i=l.shift();if(!ce(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,f=e(u,!0,a);a.flatten?r.push.apply(r,f):r.push({scopeParent:i,candidates:f})}else{var g=G.call(i,ie);g&&a.filter(i)&&(o||!n.includes(i))&&r.push(i);var c=i.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(i),m=!ce(c,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(i));if(c&&m){var y=e(c===!0?i.children:c.children,!0,a);a.flatten?r.push.apply(r,y):r.push({scopeParent:i,candidates:y})}else l.unshift.apply(l,i.children)}}return r},Ve=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},z=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||zt(e))&&!Ve(e)?0:e.tabIndex},Ht=function(e,n){var o=z(e);return o<0&&n&&!Ve(e)?0:o},Zt=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},Pe=function(e){return e.tagName==="INPUT"},Jt=function(e){return Pe(e)&&e.type==="hidden"},Wt=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return n},Yt=function(e,n){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===n)return e[o]},Qt=function(e){if(!e.name)return!0;var n=e.form||se(e),o=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},a;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")a=o(window.CSS.escape(e.name));else try{a=o(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var r=Yt(a,e.form);return!r||r===e},Xt=function(e){return Pe(e)&&e.type==="radio"},Kt=function(e){return Xt(e)&&!Qt(e)},en=function(e){var n,o=e&&se(e),a=(n=o)===null||n===void 0?void 0:n.host,r=!1;if(o&&o!==e){var l,i,s;for(r=!!((l=a)!==null&&l!==void 0&&(i=l.ownerDocument)!==null&&i!==void 0&&i.contains(a)||e!=null&&(s=e.ownerDocument)!==null&&s!==void 0&&s.contains(e));!r&&a;){var u,f,g;o=se(a),a=(u=o)===null||u===void 0?void 0:u.host,r=!!((f=a)!==null&&f!==void 0&&(g=f.ownerDocument)!==null&&g!==void 0&&g.contains(a))}}return r},Oe=function(e){var n=e.getBoundingClientRect(),o=n.width,a=n.height;return o===0&&a===0},tn=function(e,n){var o=n.displayCheck,a=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var r=G.call(e,"details>summary:first-of-type"),l=r?e.parentElement:e;if(G.call(l,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof a=="function"){for(var i=e;e;){var s=e.parentElement,u=se(e);if(s&&!s.shadowRoot&&a(s)===!0)return Oe(e);e.assignedSlot?e=e.assignedSlot:!s&&u!==e.ownerDocument?e=u.host:e=s}e=i}if(en(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Oe(e);return!1},nn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var o=0;o<n.children.length;o++){var a=n.children.item(o);if(a.tagName==="LEGEND")return G.call(n,"fieldset[disabled] *")?!0:!a.contains(e)}return!0}n=n.parentElement}return!1},de=function(e,n){return!(n.disabled||ce(n)||Jt(n)||tn(n,e)||Wt(n)||nn(n))},we=function(e,n){return!(Kt(n)||z(n)<0||!de(e,n))},on=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},an=function e(n){var o=[],a=[];return n.forEach(function(r,l){var i=!!r.scopeParent,s=i?r.scopeParent:r,u=Ht(s,i),f=i?e(r.candidates):s;u===0?i?o.push.apply(o,f):o.push(s):a.push({documentOrder:l,tabIndex:u,item:r,isScope:i,content:f})}),a.sort(Zt).reduce(function(r,l){return l.isScope?r.push.apply(r,l.content):r.push(l.content),r},[]).concat(o)},rn=function(e,n){n=n||{};var o;return n.getShadowRoot?o=Fe([e],n.includeContainer,{filter:we.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:on}):o=Te(e,n.includeContainer,we.bind(null,n)),an(o)},ln=function(e,n){n=n||{};var o;return n.getShadowRoot?o=Fe([e],n.includeContainer,{filter:de.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):o=Te(e,n.includeContainer,de.bind(null,n)),o},Y=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return G.call(e,ie)===!1?!1:we(n,e)},sn=Me.concat("iframe").join(","),ve=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return G.call(e,sn)===!1?!1:de(n,e)};/*!
10
5
  * focus-trap 7.6.4
11
6
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
12
- */function Vu(e,u){(u==null||u>e.length)&&(u=e.length);for(var t=0,n=Array(u);t<u;t++)n[t]=e[t];return n}function ui(e){if(Array.isArray(e))return Vu(e)}function ti(e,u,t){return(u=ai(u))in e?Object.defineProperty(e,u,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[u]=t,e}function ni(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ri(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pn(e,u){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);u&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function hn(e){for(var u=1;u<arguments.length;u++){var t=arguments[u]!=null?arguments[u]:{};u%2?pn(Object(t),!0).forEach(function(n){ti(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function oi(e){return ui(e)||ni(e)||ci(e)||ri()}function ii(e,u){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,u);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(e)}function ai(e){var u=ii(e,"string");return typeof u=="symbol"?u:u+""}function ci(e,u){if(e){if(typeof e=="string")return Vu(e,u);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vu(e,u):void 0}}var bn={activateTrap:function(e,u){if(e.length>0){var t=e[e.length-1];t!==u&&t._setPausedState(!0)}var n=e.indexOf(u);n===-1||e.splice(n,1),e.push(u)},deactivateTrap:function(e,u){var t=e.indexOf(u);t!==-1&&e.splice(t,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},si=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},li=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Ue=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},di=function(e){return Ue(e)&&!e.shiftKey},fi=function(e){return Ue(e)&&e.shiftKey},mn=function(e){return setTimeout(e,0)},je=function(e){for(var u=arguments.length,t=new Array(u>1?u-1:0),n=1;n<u;n++)t[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,t):e},fu=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},pi=[],hi=function(e,u){var t=(u==null?void 0:u.document)||document,n=(u==null?void 0:u.trapStack)||pi,r=hn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:di,isKeyBackward:fi},u),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i,c=function(y,_,S){return y&&y[_]!==void 0?y[_]:r[S||_]},s=function(y,_){var S=typeof(_==null?void 0:_.composedPath)=="function"?_.composedPath():void 0;return o.containerGroups.findIndex(function(O){var v=O.container,P=O.tabbableNodes;return v.contains(y)||(S==null?void 0:S.includes(v))||P.find(function(I){return I===y})})},l=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=_.hasFallback,O=S===void 0?!1:S,v=_.params,P=v===void 0?[]:v,I=r[y];if(typeof I=="function"&&(I=I.apply(void 0,oi(P))),I===!0&&(I=void 0),!I){if(I===void 0||I===!1)return I;throw new Error("`".concat(y,"` was specified but was not a node, or did not return a node"))}var j=I;if(typeof I=="string"){try{j=t.querySelector(I)}catch(M){throw new Error("`".concat(y,'` appears to be an invalid selector; error="').concat(M.message,'"'))}if(!j&&!O)throw new Error("`".concat(y,"` as selector refers to no known node"))}return j},d=function(){var y=l("initialFocus",{hasFallback:!0});if(y===!1)return!1;if(y===void 0||y&&!ju(y,r.tabbableOptions))if(s(t.activeElement)>=0)y=t.activeElement;else{var _=o.tabbableGroups[0],S=_&&_.firstTabbableNode;y=S||l("fallbackFocus")}else y===null&&(y=l("fallbackFocus"));if(!y)throw new Error("Your focus-trap needs to have at least one focusable element");return y},f=function(){if(o.containerGroups=o.containers.map(function(y){var _=X0(y,r.tabbableOptions),S=K0(y,r.tabbableOptions),O=_.length>0?_[0]:void 0,v=_.length>0?_[_.length-1]:void 0,P=S.find(function(M){return Se(M)}),I=S.slice().reverse().find(function(M){return Se(M)}),j=!!_.find(function(M){return Ae(M)>0});return{container:y,tabbableNodes:_,focusableNodes:S,posTabIndexesFound:j,firstTabbableNode:O,lastTabbableNode:v,firstDomTabbableNode:P,lastDomTabbableNode:I,nextTabbableNode:function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,N=_.indexOf(M);return N<0?D?S.slice(S.indexOf(M)+1).find(function(L){return Se(L)}):S.slice(0,S.indexOf(M)).reverse().find(function(L){return Se(L)}):_[N+(D?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(y){return y.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(y){return y.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(y){var _=y.activeElement;if(_)return _.shadowRoot&&_.shadowRoot.activeElement!==null?h(_.shadowRoot):_},b=function(y){if(y!==!1&&y!==h(document)){if(!y||!y.focus){b(d());return}y.focus({preventScroll:!!r.preventScroll}),o.mostRecentlyFocusedNode=y,si(y)&&y.select()}},p=function(y){var _=l("setReturnFocus",{params:[y]});return _||(_===!1?!1:y)},g=function(y){var _=y.target,S=y.event,O=y.isBackward,v=O===void 0?!1:O;_=_||fu(S),f();var P=null;if(o.tabbableGroups.length>0){var I=s(_,S),j=I>=0?o.containerGroups[I]:void 0;if(I<0)v?P=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:P=o.tabbableGroups[0].firstTabbableNode;else if(v){var M=o.tabbableGroups.findIndex(function(ae){var Ce=ae.firstTabbableNode;return _===Ce});if(M<0&&(j.container===_||ju(_,r.tabbableOptions)&&!Se(_,r.tabbableOptions)&&!j.nextTabbableNode(_,!1))&&(M=I),M>=0){var D=M===0?o.tabbableGroups.length-1:M-1,N=o.tabbableGroups[D];P=Ae(_)>=0?N.lastTabbableNode:N.lastDomTabbableNode}else Ue(S)||(P=j.nextTabbableNode(_,!1))}else{var L=o.tabbableGroups.findIndex(function(ae){var Ce=ae.lastTabbableNode;return _===Ce});if(L<0&&(j.container===_||ju(_,r.tabbableOptions)&&!Se(_,r.tabbableOptions)&&!j.nextTabbableNode(_))&&(L=I),L>=0){var te=L===o.tabbableGroups.length-1?0:L+1,H=o.tabbableGroups[te];P=Ae(_)>=0?H.firstTabbableNode:H.firstDomTabbableNode}else Ue(S)||(P=j.nextTabbableNode(_))}}else P=l("fallbackFocus");return P},x=function(y){var _=fu(y);if(!(s(_,y)>=0)){if(je(r.clickOutsideDeactivates,y)){i.deactivate({returnFocus:r.returnFocusOnDeactivate});return}je(r.allowOutsideClick,y)||y.preventDefault()}},C=function(y){var _=fu(y),S=s(_,y)>=0;if(S||_ instanceof Document)S&&(o.mostRecentlyFocusedNode=_);else{y.stopImmediatePropagation();var O,v=!0;if(o.mostRecentlyFocusedNode)if(Ae(o.mostRecentlyFocusedNode)>0){var P=s(o.mostRecentlyFocusedNode),I=o.containerGroups[P].tabbableNodes;if(I.length>0){var j=I.findIndex(function(M){return M===o.mostRecentlyFocusedNode});j>=0&&(r.isKeyForward(o.recentNavEvent)?j+1<I.length&&(O=I[j+1],v=!1):j-1>=0&&(O=I[j-1],v=!1))}}else o.containerGroups.some(function(M){return M.tabbableNodes.some(function(D){return Ae(D)>0})})||(v=!1);else v=!1;v&&(O=g({target:o.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(o.recentNavEvent)})),b(O||o.mostRecentlyFocusedNode||d())}o.recentNavEvent=void 0},k=function(y){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=y;var S=g({event:y,isBackward:_});S&&(Ue(y)&&y.preventDefault(),b(S))},E=function(y){(r.isKeyForward(y)||r.isKeyBackward(y))&&k(y,r.isKeyBackward(y))},A=function(y){li(y)&&je(r.escapeDeactivates,y)!==!1&&(y.preventDefault(),i.deactivate())},w=function(y){var _=fu(y);s(_,y)>=0||je(r.clickOutsideDeactivates,y)||je(r.allowOutsideClick,y)||(y.preventDefault(),y.stopImmediatePropagation())},F=function(){if(o.active)return bn.activateTrap(n,i),o.delayInitialFocusTimer=r.delayInitialFocus?mn(function(){b(d())}):b(d()),t.addEventListener("focusin",C,!0),t.addEventListener("mousedown",x,{capture:!0,passive:!1}),t.addEventListener("touchstart",x,{capture:!0,passive:!1}),t.addEventListener("click",w,{capture:!0,passive:!1}),t.addEventListener("keydown",E,{capture:!0,passive:!1}),t.addEventListener("keydown",A),i},T=function(){if(o.active)return t.removeEventListener("focusin",C,!0),t.removeEventListener("mousedown",x,!0),t.removeEventListener("touchstart",x,!0),t.removeEventListener("click",w,!0),t.removeEventListener("keydown",E,!0),t.removeEventListener("keydown",A),i},U=function(y){var _=y.some(function(S){var O=Array.from(S.removedNodes);return O.some(function(v){return v===o.mostRecentlyFocusedNode})});_&&b(d())},V=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(U):void 0,J=function(){V&&(V.disconnect(),o.active&&!o.paused&&o.containers.map(function(y){V.observe(y,{subtree:!0,childList:!0})}))};return i={get active(){return o.active},get paused(){return o.paused},activate:function(y){if(o.active)return this;var _=c(y,"onActivate"),S=c(y,"onPostActivate"),O=c(y,"checkCanFocusTrap");O||f(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=t.activeElement,_==null||_();var v=function(){O&&f(),F(),J(),S==null||S()};return O?(O(o.containers.concat()).then(v,v),this):(v(),this)},deactivate:function(y){if(!o.active)return this;var _=hn({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},y);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,T(),o.active=!1,o.paused=!1,J(),bn.deactivateTrap(n,i);var S=c(_,"onDeactivate"),O=c(_,"onPostDeactivate"),v=c(_,"checkCanReturnFocus"),P=c(_,"returnFocus","returnFocusOnDeactivate");S==null||S();var I=function(){mn(function(){P&&b(p(o.nodeFocusedBeforeActivation)),O==null||O()})};return P&&v?(v(p(o.nodeFocusedBeforeActivation)).then(I,I),this):(I(),this)},pause:function(y){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,y)):this},unpause:function(y){return o.active?(o.manuallyPaused=!1,n[n.length-1]!==this?this:this._setPausedState(!1,y)):this},updateContainerElements:function(y){var _=[].concat(y).filter(Boolean);return o.containers=_.map(function(S){return typeof S=="string"?t.querySelector(S):S}),o.active&&f(),J(),this}},Object.defineProperties(i,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(y,_){if(o.paused===y)return this;if(o.paused=y,y){var S=c(_,"onPause"),O=c(_,"onPostPause");S==null||S(),T(),J(),O==null||O()}else{var v=c(_,"onUnpause"),P=c(_,"onPostUnpause");v==null||v(),f(),F(),J(),P==null||P()}return this}}}),i.updateContainerElements(e),i};const bi=a.defineComponent({name:"UseFocusTrap",props:["as","options"],setup(e,{slots:u}){let t;const n=a.ref(),r=()=>t&&t.activate(),o=()=>t&&t.deactivate();return a.watch(()=>qu(n),i=>{i&&(t=hi(i,e.options||{}),r())},{flush:"post"}),a.onScopeDispose(()=>o()),()=>{if(u.default)return a.h(e.as||"div",{ref:n},u.default())}}}),mi=W(a.defineComponent({__name:"QFocusTrap",props:a.mergeModels({options:{},as:{}},{disabled:{type:Boolean},disabledModifiers:{}}),emits:["update:disabled"],setup(e){const u=e,t=a.useModel(e,"disabled");return(n,r)=>t.value?a.renderSlot(n.$slots,"default",{key:0}):(a.openBlock(),a.createBlock(a.unref(bi),a.normalizeProps(a.mergeProps({key:1},u)),{default:a.withCtx(()=>[a.renderSlot(n.$slots,"default")]),_:3},16))}})),ve="data-scroll-locked",$u="right-scroll-bar-position",Gu="width-before-scroll-bar",gi="with-scroll-bars-hidden",xi="--removed-body-scroll-bar-size",yi={left:0,top:0,right:0,gap:0},Hu=e=>parseInt(e||"",10)||0,ki=e=>{const u=window.getComputedStyle(document.body),t=u[e==="padding"?"paddingLeft":"marginLeft"],n=u[e==="padding"?"paddingTop":"marginTop"],r=u[e==="padding"?"paddingRight":"marginRight"];return[Hu(t),Hu(n),Hu(r)]},_i=(e="margin")=>{if(typeof window>"u")return yi;const u=ki(e),t=document.documentElement.clientWidth,n=window.innerWidth;return{left:u[0],top:u[1],right:u[2],gap:Math.max(0,n-t+u[2]-u[0])}};function Ei(){return document?document.createElement("style"):null}function Ai(e,u){e.appendChild(document.createTextNode(u))}function Ci(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}const wi=()=>{let e=0,u=null;return{add:t=>{e===0&&(u=Ei())&&(Ai(u,t),Ci(u)),e++},remove:()=>{var t;e--,!e&&u&&((t=u.parentNode)==null||t.removeChild(u),u=null)}}},Di=W(a.defineComponent({__name:"QRemoveScrollBar",props:{noRelative:{type:Boolean},noImportant:{type:Boolean},gapMode:{default:"margin"}},setup(e){const u=e,t=wi(),n=()=>{const o=parseInt(document.body.getAttribute(ve)||"0",10);return isFinite(o)?o:0},r=({left:o,top:i,right:c,gap:s},l,d="margin",f)=>`
14
- .${gi} {
15
- overflow: hidden ${f};
16
- padding-right: ${s}px ${f};
7
+ */function ke(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=Array(n);o<n;o++)a[o]=e[o];return a}function cn(e){if(Array.isArray(e))return ke(e)}function dn(e,n,o){return(n=gn(n))in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function un(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ue(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,a)}return o}function qe(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Ue(Object(o),!0).forEach(function(a){dn(e,a,o[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ue(Object(o)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(o,a))})}return e}function fn(e){return cn(e)||un(e)||bn(e)||pn()}function mn(e,n){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,n);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function gn(e){var n=mn(e,"string");return typeof n=="symbol"?n:n+""}function bn(e,n){if(e){if(typeof e=="string")return ke(e,n);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ke(e,n):void 0}}var je={activateTrap:function(e,n){if(e.length>0){var o=e[e.length-1];o!==n&&o._setPausedState(!0)}var a=e.indexOf(n);a===-1||e.splice(a,1),e.push(n)},deactivateTrap:function(e,n){var o=e.indexOf(n);o!==-1&&e.splice(o,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},hn=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},yn=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},oe=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},wn=function(e){return oe(e)&&!e.shiftKey},vn=function(e){return oe(e)&&e.shiftKey},Ge=function(e){return setTimeout(e,0)},ae=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return typeof e=="function"?e.apply(void 0,o):e},ue=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},kn=[],Bn=function(e,n){var o=(n==null?void 0:n.document)||document,a=(n==null?void 0:n.trapStack)||kn,r=qe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:wn,isKeyBackward:vn},n),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},i,s=function(d,p,w){return d&&d[p]!==void 0?d[p]:r[w||p]},u=function(d,p){var w=typeof(p==null?void 0:p.composedPath)=="function"?p.composedPath():void 0;return l.containerGroups.findIndex(function(A){var B=A.container,D=A.tabbableNodes;return B.contains(d)||(w==null?void 0:w.includes(B))||D.find(function(_){return _===d})})},f=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=p.hasFallback,A=w===void 0?!1:w,B=p.params,D=B===void 0?[]:B,_=r[d];if(typeof _=="function"&&(_=_.apply(void 0,fn(D))),_===!0&&(_=void 0),!_){if(_===void 0||_===!1)return _;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var b=_;if(typeof _=="string"){try{b=o.querySelector(_)}catch(h){throw new Error("`".concat(d,'` appears to be an invalid selector; error="').concat(h.message,'"'))}if(!b&&!A)throw new Error("`".concat(d,"` as selector refers to no known node"))}return b},g=function(){var d=f("initialFocus",{hasFallback:!0});if(d===!1)return!1;if(d===void 0||d&&!ve(d,r.tabbableOptions))if(u(o.activeElement)>=0)d=o.activeElement;else{var p=l.tabbableGroups[0],w=p&&p.firstTabbableNode;d=w||f("fallbackFocus")}else d===null&&(d=f("fallbackFocus"));if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},c=function(){if(l.containerGroups=l.containers.map(function(d){var p=rn(d,r.tabbableOptions),w=ln(d,r.tabbableOptions),A=p.length>0?p[0]:void 0,B=p.length>0?p[p.length-1]:void 0,D=w.find(function(h){return Y(h)}),_=w.slice().reverse().find(function(h){return Y(h)}),b=!!p.find(function(h){return z(h)>0});return{container:d,tabbableNodes:p,focusableNodes:w,posTabIndexesFound:b,firstTabbableNode:A,lastTabbableNode:B,firstDomTabbableNode:D,lastDomTabbableNode:_,nextTabbableNode:function(h){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,T=p.indexOf(h);return T<0?E?w.slice(w.indexOf(h)+1).find(function(L){return Y(L)}):w.slice(0,w.indexOf(h)).reverse().find(function(L){return Y(L)}):p[T+(E?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(d){return d.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(d){var p=d.activeElement;if(p)return p.shadowRoot&&p.shadowRoot.activeElement!==null?m(p.shadowRoot):p},y=function(d){if(d!==!1&&d!==m(document)){if(!d||!d.focus){y(g());return}d.focus({preventScroll:!!r.preventScroll}),l.mostRecentlyFocusedNode=d,hn(d)&&d.select()}},x=function(d){var p=f("setReturnFocus",{params:[d]});return p||(p===!1?!1:d)},$=function(d){var p=d.target,w=d.event,A=d.isBackward,B=A===void 0?!1:A;p=p||ue(w),c();var D=null;if(l.tabbableGroups.length>0){var _=u(p,w),b=_>=0?l.containerGroups[_]:void 0;if(_<0)B?D=l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:D=l.tabbableGroups[0].firstTabbableNode;else if(B){var h=l.tabbableGroups.findIndex(function(ee){var le=ee.firstTabbableNode;return p===le});if(h<0&&(b.container===p||ve(p,r.tabbableOptions)&&!Y(p,r.tabbableOptions)&&!b.nextTabbableNode(p,!1))&&(h=_),h>=0){var E=h===0?l.tabbableGroups.length-1:h-1,T=l.tabbableGroups[E];D=z(p)>=0?T.lastTabbableNode:T.lastDomTabbableNode}else oe(w)||(D=b.nextTabbableNode(p,!1))}else{var L=l.tabbableGroups.findIndex(function(ee){var le=ee.lastTabbableNode;return p===le});if(L<0&&(b.container===p||ve(p,r.tabbableOptions)&&!Y(p,r.tabbableOptions)&&!b.nextTabbableNode(p))&&(L=_),L>=0){var Z=L===l.tabbableGroups.length-1?0:L+1,K=l.tabbableGroups[Z];D=z(p)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else oe(w)||(D=b.nextTabbableNode(p))}}else D=f("fallbackFocus");return D},S=function(d){var p=ue(d);if(!(u(p,d)>=0)){if(ae(r.clickOutsideDeactivates,d)){i.deactivate({returnFocus:r.returnFocusOnDeactivate});return}ae(r.allowOutsideClick,d)||d.preventDefault()}},U=function(d){var p=ue(d),w=u(p,d)>=0;if(w||p instanceof Document)w&&(l.mostRecentlyFocusedNode=p);else{d.stopImmediatePropagation();var A,B=!0;if(l.mostRecentlyFocusedNode)if(z(l.mostRecentlyFocusedNode)>0){var D=u(l.mostRecentlyFocusedNode),_=l.containerGroups[D].tabbableNodes;if(_.length>0){var b=_.findIndex(function(h){return h===l.mostRecentlyFocusedNode});b>=0&&(r.isKeyForward(l.recentNavEvent)?b+1<_.length&&(A=_[b+1],B=!1):b-1>=0&&(A=_[b-1],B=!1))}}else l.containerGroups.some(function(h){return h.tabbableNodes.some(function(E){return z(E)>0})})||(B=!1);else B=!1;B&&(A=$({target:l.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(l.recentNavEvent)})),y(A||l.mostRecentlyFocusedNode||g())}l.recentNavEvent=void 0},M=function(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;l.recentNavEvent=d;var w=$({event:d,isBackward:p});w&&(oe(d)&&d.preventDefault(),y(w))},F=function(d){(r.isKeyForward(d)||r.isKeyBackward(d))&&M(d,r.isKeyBackward(d))},C=function(d){yn(d)&&ae(r.escapeDeactivates,d)!==!1&&(d.preventDefault(),i.deactivate())},I=function(d){var p=ue(d);u(p,d)>=0||ae(r.clickOutsideDeactivates,d)||ae(r.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},k=function(){if(l.active)return je.activateTrap(a,i),l.delayInitialFocusTimer=r.delayInitialFocus?Ge(function(){y(g())}):y(g()),o.addEventListener("focusin",U,!0),o.addEventListener("mousedown",S,{capture:!0,passive:!1}),o.addEventListener("touchstart",S,{capture:!0,passive:!1}),o.addEventListener("click",I,{capture:!0,passive:!1}),o.addEventListener("keydown",F,{capture:!0,passive:!1}),o.addEventListener("keydown",C),i},N=function(){if(l.active)return o.removeEventListener("focusin",U,!0),o.removeEventListener("mousedown",S,!0),o.removeEventListener("touchstart",S,!0),o.removeEventListener("click",I,!0),o.removeEventListener("keydown",F,!0),o.removeEventListener("keydown",C),i},V=function(d){var p=d.some(function(w){var A=Array.from(w.removedNodes);return A.some(function(B){return B===l.mostRecentlyFocusedNode})});p&&y(g())},R=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(V):void 0,O=function(){R&&(R.disconnect(),l.active&&!l.paused&&l.containers.map(function(d){R.observe(d,{subtree:!0,childList:!0})}))};return i={get active(){return l.active},get paused(){return l.paused},activate:function(d){if(l.active)return this;var p=s(d,"onActivate"),w=s(d,"onPostActivate"),A=s(d,"checkCanFocusTrap");A||c(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=o.activeElement,p==null||p();var B=function(){A&&c(),k(),O(),w==null||w()};return A?(A(l.containers.concat()).then(B,B),this):(B(),this)},deactivate:function(d){if(!l.active)return this;var p=qe({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},d);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,N(),l.active=!1,l.paused=!1,O(),je.deactivateTrap(a,i);var w=s(p,"onDeactivate"),A=s(p,"onPostDeactivate"),B=s(p,"checkCanReturnFocus"),D=s(p,"returnFocus","returnFocusOnDeactivate");w==null||w();var _=function(){Ge(function(){D&&y(x(l.nodeFocusedBeforeActivation)),A==null||A()})};return D&&B?(B(x(l.nodeFocusedBeforeActivation)).then(_,_),this):(_(),this)},pause:function(d){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,d)):this},unpause:function(d){return l.active?(l.manuallyPaused=!1,a[a.length-1]!==this?this:this._setPausedState(!1,d)):this},updateContainerElements:function(d){var p=[].concat(d).filter(Boolean);return l.containers=p.map(function(w){return typeof w=="string"?o.querySelector(w):w}),l.active&&c(),O(),this}},Object.defineProperties(i,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(d,p){if(l.paused===d)return this;if(l.paused=d,d){var w=s(p,"onPause"),A=s(p,"onPostPause");w==null||w(),N(),O(),A==null||A()}else{var B=s(p,"onUnpause"),D=s(p,"onPostUnpause");B==null||B(),c(),k(),O(),D==null||D()}return this}}}),i.updateContainerElements(e),i};const En=t.defineComponent({name:"UseFocusTrap",props:["as","options"],setup(e,{slots:n}){let o;const a=t.ref(),r=()=>o&&o.activate(),l=()=>o&&o.deactivate();return t.watch(()=>Gt(a),i=>{i&&(o=Bn(i,e.options||{}),r())},{flush:"post"}),t.onScopeDispose(()=>l()),()=>{if(n.default)return t.h(e.as||"div",{ref:a},n.default())}}}),Cn=q(t.defineComponent({__name:"QFocusTrap",props:t.mergeModels({options:{},as:{}},{disabled:{type:Boolean},disabledModifiers:{}}),emits:["update:disabled"],setup(e){const n=e,o=t.useModel(e,"disabled");return(a,r)=>o.value?t.renderSlot(a.$slots,"default",{key:0}):(t.openBlock(),t.createBlock(t.unref(En),t.normalizeProps(t.mergeProps({key:1},n)),{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default")]),_:3},16))}})),Q="data-scroll-locked",Be="right-scroll-bar-position",Ee="width-before-scroll-bar",_n="with-scroll-bars-hidden",An="--removed-body-scroll-bar-size",Nn={left:0,top:0,right:0,gap:0},Ce=e=>parseInt(e||"",10)||0,Sn=e=>{const n=window.getComputedStyle(document.body),o=n[e==="padding"?"paddingLeft":"marginLeft"],a=n[e==="padding"?"paddingTop":"marginTop"],r=n[e==="padding"?"paddingRight":"marginRight"];return[Ce(o),Ce(a),Ce(r)]},In=(e="margin")=>{if(typeof window>"u")return Nn;const n=Sn(e),o=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-o+n[2]-n[0])}};function xn(){return document?document.createElement("style"):null}function Dn(e,n){e.appendChild(document.createTextNode(n))}function $n(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}const Ln=()=>{let e=0,n=null;return{add:o=>{e===0&&(n=xn())&&(Dn(n,o),$n(n)),e++},remove:()=>{var o;e--,!e&&n&&((o=n.parentNode)==null||o.removeChild(n),n=null)}}},Mn=q(t.defineComponent({__name:"QRemoveScrollBar",props:{noRelative:{type:Boolean},noImportant:{type:Boolean},gapMode:{default:"margin"}},setup(e){const n=e,o=Ln(),a=()=>{const l=parseInt(document.body.getAttribute(Q)||"0",10);return isFinite(l)?l:0},r=({left:l,top:i,right:s,gap:u},f,g="margin",c)=>`
9
+ .${_n} {
10
+ overflow: hidden ${c};
11
+ padding-right: ${u}px ${c};
17
12
  }
18
- body[${ve}] {
19
- overflow: hidden ${f};
13
+ body[${Q}] {
14
+ overflow: hidden ${c};
20
15
  overscroll-behavior: contain;
21
- ${[l&&`position: relative ${f};`,d==="margin"&&`
22
- padding-left: ${o}px;
16
+ ${[f&&`position: relative ${c};`,g==="margin"&&`
17
+ padding-left: ${l}px;
23
18
  padding-top: ${i}px;
24
- padding-right: ${c}px;
19
+ padding-right: ${s}px;
25
20
  margin-left:0;
26
21
  margin-top:0;
27
- margin-right: ${s}px ${f};
28
- `,d==="padding"&&`padding-right: ${s}px ${f};`].filter(Boolean).join("")}
22
+ margin-right: ${u}px ${c};
23
+ `,g==="padding"&&`padding-right: ${u}px ${c};`].filter(Boolean).join("")}
29
24
  }
30
25
 
31
- .${$u} {
32
- right: ${s}px ${f};
26
+ .${Be} {
27
+ right: ${u}px ${c};
33
28
  }
34
29
 
35
- .${Gu} {
36
- margin-right: ${s}px ${f};
30
+ .${Ee} {
31
+ margin-right: ${u}px ${c};
37
32
  }
38
33
 
39
- .${$u} .${$u} {
40
- right: 0 ${f};
34
+ .${Be} .${Be} {
35
+ right: 0 ${c};
41
36
  }
42
37
 
43
- .${Gu} .${Gu} {
44
- margin-right: 0 ${f};
38
+ .${Ee} .${Ee} {
39
+ margin-right: 0 ${c};
45
40
  }
46
41
 
47
- body[${ve}] {
48
- ${xi}: ${s}px;
42
+ body[${Q}] {
43
+ ${An}: ${u}px;
49
44
  }
50
- `;return a.onMounted(()=>{document.body.setAttribute(ve,(n()+1).toString());const o=_i(u.gapMode);t.add(r(o,!u.noRelative,u.gapMode,u.noImportant?"":"!important"))}),a.onUnmounted(()=>{const o=n()-1;o<=0?document.body.removeAttribute(ve):document.body.setAttribute(ve,o.toString()),t.remove()}),(o,i)=>a.renderSlot(o.$slots,"default")}}));function Fi(e,u,t,n){const r=(n==null?void 0:n.offset)??0,o=(n==null?void 0:n.crossOffset)??0,i=(n==null?void 0:n.placement)??"bottom",c=e.getBoundingClientRect(),s=u.getBoundingClientRect(),l=t==null?void 0:t.getBoundingClientRect(),d=Si(c,s,i,r),f=Ni(c,s,d),h=Bi(f,d,r),b=Ri(h,d,o),p=vi(b,s,d);let g;if(n!=null&&n.arrow){if(!l)throw new Error("[Quidgest UI] The arrow element must exist to compute its position");g=Ti(p,c,s,l,d)}return{overlayCoords:p,arrowCoords:g,placement:d}}function Si(e,u,t,n){const r=gn(e,u,t,n);if(xn(r)){const o=Be(t),i={top:"bottom",bottom:"top",left:"right",right:"left"}[o],c=gn(e,u,i,n);if(xn(c))return t;const s=Li(t);return s?`${i}-${s}`:i}return t}function vi(e,u,t){const n=pu(t),r=(i,c,s)=>Math.min(Math.max(i,c),s),o={...e};return n==="x"?o.x=r(e.x,8,window.innerWidth-u.width-8):o.y=r(e.y,8,window.innerHeight-u.height-8),o}function Bi(e,u,t){const n=Be(u);return{x:e.x+(n==="left"?-t:n==="right"?t:0),y:e.y+(n==="top"?-t:n==="bottom"?t:0)}}function Ri(e,u,t){const n=Be(u);return{x:e.x+(n==="top"||n==="bottom"?t:0),y:e.y+(n==="right"||n==="left"?t:0)}}function Ti(e,u,t,n,r){if(pu(r)==="y"){const o=u.top+u.height/2,i=e.y+t.height/2,c=i-o,s=t.height/2-c-n.height/2+2;if(s>0&&s<t.height-n.height)return{y:s}}else{const o=u.left+u.width/2,i=e.x+t.width/2,c=i-o,s=t.width/2-c-n.width/2+2;if(s>0&&s<t.width-n.width)return{x:s}}}function Ni(e,u,t){const[n,r]=t.split("-"),o=e.x+e.width/2-u.width/2,i=e.y+e.height/2-u.height/2;let c;switch(n){case"top":c={x:o,y:e.y-u.height};break;case"bottom":c={x:o,y:e.y+e.height};break;case"left":c={x:e.x-u.width,y:i};break;case"right":c={x:e.x+e.width,y:i};break;default:throw new Error(`[Quidgest UI] Invalid placement value: ${t}`)}if(!r)return c;const s=pu(t)==="y"?"height":"width",l=pu(t),d=e[s]/2-u[s]/2;switch(r){case"start":c[l]-=d;break;case"end":c[l]+=d;break;default:throw new Error(`[Quidgest UI] Invalid alignment value: ${r}`)}return c}function gn(e,u,t,n){const r=Be(t);let o=0;switch(r){case"top":o=e.top-(u.height+n);break;case"bottom":o=window.innerHeight-e.bottom-(u.height+n);break;case"left":o=e.left-(u.width+n);break;case"right":o=window.innerWidth-e.right-(u.width+n);break;default:throw new Error(`[Quidgest UI] Invalid side value: ${r}`)}return o}function Ii(e){return e==="x"?"y":"x"}function Oi(e){const u=Be(e);return["left","right"].includes(u)?"x":"y"}function pu(e){return Ii(Oi(e))}function Be(e){const[u]=e.split("-");return u}function Li(e){const[,u]=e.split("-");return u}function xn(e){return e<0}function Pi(e){return typeof e=="string"?document.querySelector(e):e}const Mi=["id"],zi=["role"],qi=W(a.defineComponent({inheritAttrs:!1,__name:"QOverlay",props:a.mergeModels({id:{},class:{},anchor:{},appearance:{default:"regular"},arrow:{type:Boolean},attach:{default:"body"},inline:{type:Boolean},backdropBlur:{type:Boolean},backdropClass:{},delay:{default:500},nonModal:{type:Boolean},scrollLock:{type:Boolean},offset:{default:8},crossOffset:{default:0},persistent:{type:Boolean},placement:{default:"right"},spy:{type:Boolean},transition:{default:"fade"},trigger:{default:"click"},width:{default:"auto"},focusTrap:{type:Boolean},centerVertically:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:a.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:u}){const t=e,n=u,r=a.useModel(e,"modelValue"),{class:o}=en(),i=a.computed(()=>["q-overlay",`q-overlay--${Be(f.placement)}`,o.value,{"q-overlay--independent":c.value,"q-overlay--inverted":t.appearance==="inverted","q-overlay--center":t.centerVertically},t.class]),c=a.computed(()=>t.anchor===void 0),s=a.computed(()=>r.value&&!t.nonModal),l=a.computed(()=>(r.value||f.animating)&&t.scrollLock),d=a.computed(()=>!t.inline&&(r.value||f.animating)),f=a.reactive({animating:!1,top:0,left:0,width:0,placement:t.placement}),h=a.reactive({top:void 0,left:void 0,hidden:!0});a.watch(r,S);const b=a.computed(()=>{if(c.value)return;const B=v(),he=t.width==="anchor",ee=he?B==null?void 0:B.getBoundingClientRect().width:void 0;return{top:`${f.top}px`,left:`${f.left}px`,width:ee!==void 0?`${ee}px`:void 0}}),p=a.computed(()=>{if(t.arrow)return{top:h.top!==void 0?`${h.top}px`:void 0,left:h.left!==void 0?`${h.left}px`:void 0,opacity:h.hidden?0:1}}),g=a.ref(null),x=a.ref(null),C=a.ref(null);function k(){const B=v();if(!B||!x.value)return;const he={placement:t.placement,width:t.width,offset:t.offset,crossOffset:t.crossOffset,arrow:t.arrow},ee=Fi(B,x.value,(g==null?void 0:g.value)??void 0,he);f.left=ee.overlayCoords.x,f.top=ee.overlayCoords.y,f.placement=ee.placement,h.hidden=ee.arrowCoords===void 0,ee.arrowCoords&&(h.top=ee.arrowCoords.y,h.left=ee.arrowCoords.x)}a.watch(()=>t.placement,()=>a.nextTick(k));let E;function A(){F(0)}function w(){F(t.delay)}function F(B){E&&U(),E=window.setTimeout(()=>{r.value=!0},B)}function T(){if(E&&U(),r.value=!1,t.anchor&&t.trigger==="click"){const B=v();a.nextTick(()=>B==null?void 0:B.focus())}}function U(){clearTimeout(E),E=void 0}function V(){a.nextTick(Ce),n("enter")}function J(){O()}function y(){n("leave")}function _(){O(),ft()}function S(){f.animating=!0}function O(){f.animating=!1}function v(){return t.anchor?Pi(t.anchor):null}function P(B){t.persistent&&B.preventDefault()}function I(B){var he;if(t.persistent){B.preventDefault();return}let ee=!1;B.defaultPrevented||B.detail.originalEvent.type==="pointerdown"&&(ee=!0);const Cu=B.detail.originalEvent.target;if((he=v())!=null&&he.contains(Cu)){B.preventDefault();return}B.detail.originalEvent.type==="focusin"&&ee&&B.preventDefault()}function j(){T()}let M;function D(){const B=v();if(B)switch(M=new MutationObserver(k),M.observe(B,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),t.trigger){case"click":B.addEventListener("click",A);break;case"hover":B.addEventListener("mouseenter",w),B.addEventListener("mouseleave",T),B.addEventListener("focusin",A),B.addEventListener("focusout",T);break}}function N(){const B=v();if(B)switch(M==null||M.disconnect(),t.trigger){case"click":B.removeEventListener("click",A);break;case"hover":B.removeEventListener("mouseenter",w),B.removeEventListener("mouseleave",T),B.removeEventListener("focusin",A),B.removeEventListener("focusout",T);break}}function L(){window.addEventListener("resize",k),t.scrollLock||window.addEventListener("scroll",k)}function te(){window.removeEventListener("resize",k),t.scrollLock||window.removeEventListener("scroll",k)}let H;function ae(){v()?(k(),H=window.setTimeout(ae,100)):T()}function Ce(){var B;c.value||(L(),t.spy?ae():k()),(c.value||t.trigger==="click")&&((B=x.value)==null||B.focus())}function ft(){c.value||te(),t.spy&&(clearTimeout(H),H=void 0)}return a.onMounted(()=>{a.nextTick(D)}),a.onBeforeUnmount(N),(B,he)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[(a.openBlock(),a.createBlock(a.Teleport,{disabled:!d.value,to:t.attach},[a.createVNode(a.Transition,{name:"fade",appear:""},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass([t.backdropClass,"q-overlay__underlay",{"q-overlay__underlay--blur":t.backdropBlur}])},null,2)):a.createCommentVNode("v-if",!0)]),_:1}),a.createVNode(a.Transition,{name:t.transition,appear:"",onEnter:V,onAfterEnter:J,onLeave:y,onAfterLeave:_},{default:a.withCtx(()=>[r.value?(a.openBlock(),a.createElementBlock("div",{key:0,id:t.id,ref_key:"overlayContainerRef",ref:C,tabindex:"-1",class:a.normalizeClass(i.value),style:a.normalizeStyle(b.value)},[a.createVNode(a.unref(v0),{onDismiss:j,onInteractOutside:I,onPointerDownOutside:P},{default:a.withCtx(()=>[C.value?(a.openBlock(),a.createBlock(a.unref(mi),{key:0,disabled:t.nonModal||!r.value,options:{fallbackFocus:C.value}},{default:a.withCtx(()=>[a.createElementVNode("div",a.mergeProps({ref_key:"overlayRef",ref:x,class:"q-overlay__content",tabindex:"-1",role:s.value?"dialog":void 0},B.$attrs),[t.arrow?(a.openBlock(),a.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:g,role:"presentation",class:"q-overlay__arrow",style:a.normalizeStyle(p.value)},null,4)):a.createCommentVNode("v-if",!0),a.renderSlot(B.$slots,"default")],16,zi)]),_:3},8,["disabled","options"])):a.createCommentVNode("v-if",!0)]),_:3})],14,Mi)):a.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"])),l.value?(a.openBlock(),a.createBlock(a.unref(Di),{key:0})):a.createCommentVNode("v-if",!0)],64))}})),Ui=[{id:"button",icon:{icon:"check"},props:{variant:"bold",label:"Ok"}}],ji={icon:"check-circle-outline"},Vi={close:{icon:"close"}},$i={key:0,class:"q-dialog__header"},Gi={class:"q-dialog__header-title"},Hi={key:1,class:"q-dialog__body"},Wi={key:0,class:"q-dialog__body-icon"},Zi={class:"q-dialog__body-text"},Qi=["innerHTML"],Ji={key:1},Yi={key:2,class:"q-dialog__footer"},Xi={class:"q-dialog__footer-buttons"},Ki=a.defineComponent({__name:"QDialog",props:a.mergeModels({id:{},class:{},title:{},text:{},icon:{default:()=>ji},buttons:{default:()=>Ui},attach:{default:"body"},inline:{type:Boolean},backdropBlur:{type:Boolean,default:!0},dismissible:{type:Boolean},html:{type:Boolean,default:!0},icons:{default:()=>Vi},size:{default:"small"},centerVertically:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:a.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:u}){const t=e,n=u,r=a.useModel(e,"modelValue"),o=a.computed(()=>["q-dialog",t.class]),i=a.computed(()=>`q-overlay--${t.size}`);function c(){r.value=!1}function s(f){var h;(h=f.action)==null||h.call(f),c()}function l(){n("enter")}function d(){n("leave")}return(f,h)=>(a.openBlock(),a.createBlock(a.unref(qi),{id:t.id,modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=b=>r.value=b),"backdrop-class":"q-dialog__underlay","scroll-lock":"",persistent:"",inline:t.inline,attach:t.attach,"backdrop-blur":t.backdropBlur,"center-vertically":t.centerVertically,class:a.normalizeClass(i.value),onEnter:l,onLeave:d},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(o.value)},[t.title||f.$slots.header?(a.openBlock(),a.createElementBlock("div",$i,[a.renderSlot(f.$slots,"header",{},()=>[a.createElementVNode("span",Gi,a.toDisplayString(t.title),1)])])):a.createCommentVNode("v-if",!0),t.icon||t.text||f.$slots.body?(a.openBlock(),a.createElementBlock("div",Hi,[a.renderSlot(f.$slots,"body",{},()=>[a.renderSlot(f.$slots,"body.icon",{},()=>[t.icon?(a.openBlock(),a.createElementBlock("span",Wi,[a.createVNode(a.unref(ne),a.normalizeProps(a.guardReactiveProps(t.icon)),null,16)])):a.createCommentVNode("v-if",!0)]),a.createElementVNode("div",Zi,[t.html?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:t.text},null,8,Qi)):(a.openBlock(),a.createElementBlock("div",Ji,a.toDisplayString(t.text),1))]),a.renderSlot(f.$slots,"body.append")])])):a.createCommentVNode("v-if",!0),t.buttons||f.$slots.footer?(a.openBlock(),a.createElementBlock("div",Yi,[a.renderSlot(f.$slots,"footer",{},()=>[a.createElementVNode("span",Xi,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.buttons,b=>(a.openBlock(),a.createBlock(a.unref(se),a.mergeProps({ref_for:!0},b.props,{key:b.id,onClick:()=>s(b)}),{default:a.withCtx(()=>[b.icon?(a.openBlock(),a.createBlock(a.unref(ne),a.mergeProps({key:0,ref_for:!0},b.icon),null,16)):a.createCommentVNode("v-if",!0)]),_:2},1040,["onClick"]))),128))])])])):a.createCommentVNode("v-if",!0),t.dismissible?(a.openBlock(),a.createBlock(a.unref(se),{key:3,class:"q-dialog__close",variant:"text",onClick:c},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),a.normalizeProps(a.guardReactiveProps(t.icons.close)),null,16)]),_:1})):a.createCommentVNode("v-if",!0)],2)]),_:3},8,["id","modelValue","inline","attach","backdrop-blur","center-vertically","class"]))}}),hu=a.reactive({dialogs:[]});function ea(){function e(t,n){const r=Mu(n);return hu.dialogs.push({id:r,props:t}),r}function u(t){const n=hu.dialogs.findIndex(r=>r.id===t);n!==-1&&hu.dialogs.splice(n,1)}return{...hu,addDialog:e,removeDialog:u}}const ua=a.defineComponent({inheritAttrs:!1,__name:"QDialogProvider",setup(e){const{dialogs:u,removeDialog:t}=ea();return(n,r)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(u),o=>(a.openBlock(),a.createBlock(a.unref(yn),a.mergeProps({key:o.id,ref_for:!0},o.props,{"model-value":"",onLeave:()=>a.unref(t)(o.id)}),null,16,["onLeave"]))),128))}}),yn=W(Ki);W(ua);const ta=["id","required","placeholder","readonly","disabled","maxlength","rows","cols","resize","wrap"],na=W(a.defineComponent({inheritAttrs:!1,__name:"QTextArea",props:a.mergeModels({id:{},class:{},label:{},for:{},required:{type:Boolean},size:{},readonly:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},placeholder:{},maxLength:{},rows:{default:3},cols:{},resize:{default:"vertical"},wrap:{default:"soft"},autosize:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const u=e,t=a.useModel(e,"modelValue"),n=a.computed({get:()=>t.value,set:l=>{const d=u.maxLength;t.value=d?l==null?void 0:l.slice(0,d):l}});a.watch(t,l=>n.value=l,{immediate:!0});const r=Mu(u.id),o=a.computed(()=>u.readonly||u.disabled?void 0:u.placeholder),i=a.computed(()=>({input:u.autosize?s:null})),c=a.ref(),{triggerResize:s}=P0({element:a.computed(()=>u.autosize?c.value:void 0),styleProp:"minHeight"});return(l,d)=>(a.openBlock(),a.createBlock(a.unref(nn),{class:a.normalizeClass(["q-text-area",u.class]),for:a.unref(r),label:u.label,size:u.size,readonly:u.readonly,disabled:u.disabled,required:u.required},a.createSlots({"label.prepend":a.withCtx(()=>[a.renderSlot(l.$slots,"label.prepend")]),"label.append":a.withCtx(()=>[a.renderSlot(l.$slots,"label.append")]),default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("textarea",a.mergeProps({id:a.unref(r),ref_key:"textareaRef",ref:c,"onUpdate:modelValue":d[0]||(d[0]=f=>n.value=f),class:"q-text-area__input",required:u.required,placeholder:o.value,readonly:u.readonly,disabled:u.disabled,maxlength:u.maxLength,rows:u.rows,cols:u.cols,resize:u.resize,wrap:u.wrap},l.$attrs,a.toHandlers(i.value,!0)),null,16,ta),[[a.vModelText,n.value]])]),_:2},[l.$slots.prepend?{name:"prepend",fn:a.withCtx(()=>[a.renderSlot(l.$slots,"prepend")]),key:"0"}:void 0,l.$slots.append?{name:"append",fn:a.withCtx(()=>[a.renderSlot(l.$slots,"append")]),key:"1"}:void 0,l.$slots.extras?{name:"extras",fn:a.withCtx(()=>[a.renderSlot(l.$slots,"extras")]),key:"2"}:void 0]),1032,["class","for","label","size","readonly","disabled","required"]))}})),ra={class:"pulsing-dots"},oa=a.defineComponent({__name:"PulseDots",setup(e){const u=[1,2,3];return(t,n)=>(a.openBlock(),a.createElementBlock("div",ra,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(u,(r,o)=>a.createElementVNode("span",{key:o,class:"dot",style:a.normalizeStyle({animationDelay:o*.2+"s"})}," • ",4)),64))]))}}),kn={};function ia(e){let u=kn[e];if(u)return u;u=kn[e]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);u.push(n)}for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);u[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)}return u}function Re(e,u){typeof u!="string"&&(u=Re.defaultChars);const t=ia(u);return e.replace(/(%[a-f0-9]{2})+/gi,function(n){let r="";for(let o=0,i=n.length;o<i;o+=3){const c=parseInt(n.slice(o+1,o+3),16);if(c<128){r+=t[c];continue}if((c&224)===192&&o+3<i){const s=parseInt(n.slice(o+4,o+6),16);if((s&192)===128){const l=c<<6&1984|s&63;l<128?r+="��":r+=String.fromCharCode(l),o+=3;continue}}if((c&240)===224&&o+6<i){const s=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16);if((s&192)===128&&(l&192)===128){const d=c<<12&61440|s<<6&4032|l&63;d<2048||d>=55296&&d<=57343?r+="���":r+=String.fromCharCode(d),o+=6;continue}}if((c&248)===240&&o+9<i){const s=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),d=parseInt(n.slice(o+10,o+12),16);if((s&192)===128&&(l&192)===128&&(d&192)===128){let f=c<<18&1835008|s<<12&258048|l<<6&4032|d&63;f<65536||f>1114111?r+="����":(f-=65536,r+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}}r+="�"}return r})}Re.defaultChars=";/?:@&=+$,#",Re.componentChars="";const _n={};function aa(e){let u=_n[e];if(u)return u;u=_n[e]=[];for(let t=0;t<128;t++){const n=String.fromCharCode(t);/^[0-9a-z]$/i.test(n)?u.push(n):u.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let t=0;t<e.length;t++)u[e.charCodeAt(t)]=e[t];return u}function Ve(e,u,t){typeof u!="string"&&(t=u,u=Ve.defaultChars),typeof t>"u"&&(t=!0);const n=aa(u);let r="";for(let o=0,i=e.length;o<i;o++){const c=e.charCodeAt(o);if(t&&c===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(c<128){r+=n[c];continue}if(c>=55296&&c<=57343){if(c>=55296&&c<=56319&&o+1<i){const s=e.charCodeAt(o+1);if(s>=56320&&s<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Ve.defaultChars=";/?:@&=+$,-_.!~*'()#",Ve.componentChars="-_.!~*'()";function Wu(e){let u="";return u+=e.protocol||"",u+=e.slashes?"//":"",u+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?u+="["+e.hostname+"]":u+=e.hostname||"",u+=e.port?":"+e.port:"",u+=e.pathname||"",u+=e.search||"",u+=e.hash||"",u}function bu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ca=/^([a-z0-9.+-]+:)/i,sa=/:[0-9]*$/,la=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,da=["<",">",'"',"`"," ","\r",`
51
- `," "],fa=["{","}","|","\\","^","`"].concat(da),pa=["'"].concat(fa),En=["%","/","?",";","#"].concat(pa),An=["/","?","#"],ha=255,Cn=/^[+a-z0-9A-Z_-]{0,63}$/,ba=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,wn={javascript:!0,"javascript:":!0},Dn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Zu(e,u){if(e&&e instanceof bu)return e;const t=new bu;return t.parse(e,u),t}bu.prototype.parse=function(e,u){let t,n,r,o=e;if(o=o.trim(),!u&&e.split("#").length===1){const l=la.exec(o);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}let i=ca.exec(o);if(i&&(i=i[0],t=i.toLowerCase(),this.protocol=i,o=o.substr(i.length)),(u||i||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(i&&wn[i])&&(o=o.substr(2),this.slashes=!0)),!wn[i]&&(r||i&&!Dn[i])){let l=-1;for(let p=0;p<An.length;p++)n=o.indexOf(An[p]),n!==-1&&(l===-1||n<l)&&(l=n);let d,f;l===-1?f=o.lastIndexOf("@"):f=o.lastIndexOf("@",l),f!==-1&&(d=o.slice(0,f),o=o.slice(f+1),this.auth=d),l=-1;for(let p=0;p<En.length;p++)n=o.indexOf(En[p]),n!==-1&&(l===-1||n<l)&&(l=n);l===-1&&(l=o.length),o[l-1]===":"&&l--;const h=o.slice(0,l);o=o.slice(l),this.parseHost(h),this.hostname=this.hostname||"";const b=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!b){const p=this.hostname.split(/\./);for(let g=0,x=p.length;g<x;g++){const C=p[g];if(C&&!C.match(Cn)){let k="";for(let E=0,A=C.length;E<A;E++)C.charCodeAt(E)>127?k+="x":k+=C[E];if(!k.match(Cn)){const E=p.slice(0,g),A=p.slice(g+1),w=C.match(ba);w&&(E.push(w[1]),A.unshift(w[2])),A.length&&(o=A.join(".")+o),this.hostname=E.join(".");break}}}}this.hostname.length>ha&&(this.hostname=""),b&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const c=o.indexOf("#");c!==-1&&(this.hash=o.substr(c),o=o.slice(0,c));const s=o.indexOf("?");return s!==-1&&(this.search=o.substr(s),o=o.slice(0,s)),o&&(this.pathname=o),Dn[t]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bu.prototype.parseHost=function(e){let u=sa.exec(e);u&&(u=u[0],u!==":"&&(this.port=u.substr(1)),e=e.substr(0,e.length-u.length)),e&&(this.hostname=e)};const ma=Object.freeze(Object.defineProperty({__proto__:null,decode:Re,encode:Ve,format:Wu,parse:Zu},Symbol.toStringTag,{value:"Module"})),Fn=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Sn=/[\0-\x1F\x7F-\x9F]/,ga=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Qu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,vn=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Bn=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,xa=Object.freeze(Object.defineProperty({__proto__:null,Any:Fn,Cc:Sn,Cf:ga,P:Qu,S:vn,Z:Bn},Symbol.toStringTag,{value:"Module"})),ya=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),ka=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ju;const _a=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Ea=(Ju=String.fromCodePoint)!==null&&Ju!==void 0?Ju:function(e){let u="";return e>65535&&(e-=65536,u+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),u+=String.fromCharCode(e),u};function Aa(e){var u;return e>=55296&&e<=57343||e>1114111?65533:(u=_a.get(e))!==null&&u!==void 0?u:e}var $;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})($||($={}));const Ca=32;var be;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(be||(be={}));function Yu(e){return e>=$.ZERO&&e<=$.NINE}function wa(e){return e>=$.UPPER_A&&e<=$.UPPER_F||e>=$.LOWER_A&&e<=$.LOWER_F}function Da(e){return e>=$.UPPER_A&&e<=$.UPPER_Z||e>=$.LOWER_A&&e<=$.LOWER_Z||Yu(e)}function Fa(e){return e===$.EQUALS||Da(e)}var G;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(G||(G={}));var me;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(me||(me={}));class Sa{constructor(u,t,n){this.decodeTree=u,this.emitCodePoint=t,this.errors=n,this.state=G.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=me.Strict}startEntity(u){this.decodeMode=u,this.state=G.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(u,t){switch(this.state){case G.EntityStart:return u.charCodeAt(t)===$.NUM?(this.state=G.NumericStart,this.consumed+=1,this.stateNumericStart(u,t+1)):(this.state=G.NamedEntity,this.stateNamedEntity(u,t));case G.NumericStart:return this.stateNumericStart(u,t);case G.NumericDecimal:return this.stateNumericDecimal(u,t);case G.NumericHex:return this.stateNumericHex(u,t);case G.NamedEntity:return this.stateNamedEntity(u,t)}}stateNumericStart(u,t){return t>=u.length?-1:(u.charCodeAt(t)|Ca)===$.LOWER_X?(this.state=G.NumericHex,this.consumed+=1,this.stateNumericHex(u,t+1)):(this.state=G.NumericDecimal,this.stateNumericDecimal(u,t))}addToNumericResult(u,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(u.substr(t,o),r),this.consumed+=o}}stateNumericHex(u,t){const n=t;for(;t<u.length;){const r=u.charCodeAt(t);if(Yu(r)||wa(r))t+=1;else return this.addToNumericResult(u,n,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(u,n,t,16),-1}stateNumericDecimal(u,t){const n=t;for(;t<u.length;){const r=u.charCodeAt(t);if(Yu(r))t+=1;else return this.addToNumericResult(u,n,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(u,n,t,10),-1}emitNumericEntity(u,t){var n;if(this.consumed<=t)return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(u===$.SEMI)this.consumed+=1;else if(this.decodeMode===me.Strict)return 0;return this.emitCodePoint(Aa(this.result),this.consumed),this.errors&&(u!==$.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(u,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&be.VALUE_LENGTH)>>14;for(;t<u.length;t++,this.excess++){const i=u.charCodeAt(t);if(this.treeIndex=va(n,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return this.result===0||this.decodeMode===me.Attribute&&(o===0||Fa(i))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&be.VALUE_LENGTH)>>14,o!==0){if(i===$.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==me.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var u;const{result:t,decodeTree:n}=this,r=(n[t]&be.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(u=this.errors)===null||u===void 0||u.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(u,t,n){const{decodeTree:r}=this;return this.emitCodePoint(t===1?r[u]&~be.VALUE_LENGTH:r[u+1],n),t===3&&this.emitCodePoint(r[u+2],n),n}end(){var u;switch(this.state){case G.NamedEntity:return this.result!==0&&(this.decodeMode!==me.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case G.NumericDecimal:return this.emitNumericEntity(0,2);case G.NumericHex:return this.emitNumericEntity(0,3);case G.NumericStart:return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case G.EntityStart:return 0}}}function Rn(e){let u="";const t=new Sa(e,n=>u+=Ea(n));return function(r,o){let i=0,c=0;for(;(c=r.indexOf("&",c))>=0;){u+=r.slice(i,c),t.startEntity(o);const l=t.write(r,c+1);if(l<0){i=c+t.end();break}i=c+l,c=l===0?i+1:i}const s=u+r.slice(i);return u="",s}}function va(e,u,t,n){const r=(u&be.BRANCH_LENGTH)>>7,o=u&be.JUMP_TABLE;if(r===0)return o!==0&&n===o?t:-1;if(o){const s=n-o;return s<0||s>=r?-1:e[t+s]-1}let i=t,c=i+r-1;for(;i<=c;){const s=i+c>>>1,l=e[s];if(l<n)i=s+1;else if(l>n)c=s-1;else return e[s+r]}return-1}const Ba=Rn(ya);Rn(ka);function Tn(e,u=me.Legacy){return Ba(e,u)}function Ra(e){return Object.prototype.toString.call(e)}function Xu(e){return Ra(e)==="[object String]"}const Ta=Object.prototype.hasOwnProperty;function Na(e,u){return Ta.call(e,u)}function mu(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Nn(e,u,t){return[].concat(e.slice(0,u),t,e.slice(u+1))}function Ku(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function gu(e){if(e>65535){e-=65536;const u=55296+(e>>10),t=56320+(e&1023);return String.fromCharCode(u,t)}return String.fromCharCode(e)}const In=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ia=/&([a-z#][a-z0-9]{1,31});/gi,Oa=new RegExp(In.source+"|"+Ia.source,"gi"),La=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Pa(e,u){if(u.charCodeAt(0)===35&&La.test(u)){const n=u[1].toLowerCase()==="x"?parseInt(u.slice(2),16):parseInt(u.slice(1),10);return Ku(n)?gu(n):e}const t=Tn(e);return t!==e?t:e}function Ma(e){return e.indexOf("\\")<0?e:e.replace(In,"$1")}function Te(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Oa,function(u,t,n){return t||Pa(u,n)})}const za=/[&<>"]/,qa=/[&<>"]/g,Ua={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function ja(e){return Ua[e]}function ge(e){return za.test(e)?e.replace(qa,ja):e}const Va=/[.?*+^$[\]\\(){}|-]/g;function $a(e){return e.replace(Va,"\\$&")}function z(e){switch(e){case 9:case 32:return!0}return!1}function $e(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ge(e){return Qu.test(e)||vn.test(e)}function He(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function xu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Ga=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Nn,assign:mu,escapeHtml:ge,escapeRE:$a,fromCodePoint:gu,has:Na,isMdAsciiPunct:He,isPunctChar:Ge,isSpace:z,isString:Xu,isValidEntityCode:Ku,isWhiteSpace:$e,lib:{mdurl:ma,ucmicro:xa},normalizeReference:xu,unescapeAll:Te,unescapeMd:Ma},Symbol.toStringTag,{value:"Module"}));function Ha(e,u,t){let n,r,o,i;const c=e.posMax,s=e.pos;for(e.pos=u+1,n=1;e.pos<c;){if(o=e.src.charCodeAt(e.pos),o===93&&(n--,n===0)){r=!0;break}if(i=e.pos,e.md.inline.skipToken(e),o===91){if(i===e.pos-1)n++;else if(t)return e.pos=s,-1}}let l=-1;return r&&(l=e.pos),e.pos=s,l}function Wa(e,u,t){let n,r=u;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<t;){if(n=e.charCodeAt(r),n===10||n===60)return o;if(n===62)return o.pos=r+1,o.str=Te(e.slice(u+1,r)),o.ok=!0,o;if(n===92&&r+1<t){r+=2;continue}r++}return o}let i=0;for(;r<t&&(n=e.charCodeAt(r),!(n===32||n<32||n===127));){if(n===92&&r+1<t){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(n===40&&(i++,i>32))return o;if(n===41){if(i===0)break;i--}r++}return u===r||i!==0||(o.str=Te(e.slice(u,r)),o.pos=r,o.ok=!0),o}function Za(e,u,t,n){let r,o=u;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)i.str=n.str,i.marker=n.marker;else{if(o>=t)return i;let c=e.charCodeAt(o);if(c!==34&&c!==39&&c!==40)return i;u++,o++,c===40&&(c=41),i.marker=c}for(;o<t;){if(r=e.charCodeAt(o),r===i.marker)return i.pos=o+1,i.str+=Te(e.slice(u,o)),i.ok=!0,i;if(r===40&&i.marker===41)return i;r===92&&o+1<t&&o++,o++}return i.can_continue=!0,i.str+=Te(e.slice(u,o)),i}const Qa=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Wa,parseLinkLabel:Ha,parseLinkTitle:Za},Symbol.toStringTag,{value:"Module"})),le={};le.code_inline=function(e,u,t,n,r){const o=e[u];return"<code"+r.renderAttrs(o)+">"+ge(o.content)+"</code>"},le.code_block=function(e,u,t,n,r){const o=e[u];return"<pre"+r.renderAttrs(o)+"><code>"+ge(e[u].content)+`</code></pre>
52
- `},le.fence=function(e,u,t,n,r){const o=e[u],i=o.info?Te(o.info).trim():"";let c="",s="";if(i){const d=i.split(/(\s+)/g);c=d[0],s=d.slice(2).join("")}let l;if(t.highlight?l=t.highlight(o.content,c,s)||ge(o.content):l=ge(o.content),l.indexOf("<pre")===0)return l+`
53
- `;if(i){const d=o.attrIndex("class"),f=o.attrs?o.attrs.slice():[];d<0?f.push(["class",t.langPrefix+c]):(f[d]=f[d].slice(),f[d][1]+=" "+t.langPrefix+c);const h={attrs:f};return`<pre><code${r.renderAttrs(h)}>${l}</code></pre>
54
- `}return`<pre><code${r.renderAttrs(o)}>${l}</code></pre>
55
- `},le.image=function(e,u,t,n,r){const o=e[u];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,t,n),r.renderToken(e,u,t)},le.hardbreak=function(e,u,t){return t.xhtmlOut?`<br />
56
- `:`<br>
57
- `},le.softbreak=function(e,u,t){return t.breaks?t.xhtmlOut?`<br />
58
- `:`<br>
59
- `:`
60
- `},le.text=function(e,u){return ge(e[u].content)},le.html_block=function(e,u){return e[u].content},le.html_inline=function(e,u){return e[u].content};function Ne(){this.rules=mu({},le)}Ne.prototype.renderAttrs=function(u){let t,n,r;if(!u.attrs)return"";for(r="",t=0,n=u.attrs.length;t<n;t++)r+=" "+ge(u.attrs[t][0])+'="'+ge(u.attrs[t][1])+'"';return r},Ne.prototype.renderToken=function(u,t,n){const r=u[t];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&t&&u[t-1].hidden&&(o+=`
61
- `),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&n.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,r.nesting===1&&t+1<u.length)){const c=u[t+1];(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===r.tag)&&(i=!1)}return o+=i?`>
62
- `:">",o},Ne.prototype.renderInline=function(e,u,t){let n="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const c=e[o].type;typeof r[c]<"u"?n+=r[c](e,o,u,t,this):n+=this.renderToken(e,o,u)}return n},Ne.prototype.renderInlineAsText=function(e,u,t){let n="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":n+=e[r].content;break;case"image":n+=this.renderInlineAsText(e[r].children,u,t);break;case"html_inline":case"html_block":n+=e[r].content;break;case"softbreak":case"hardbreak":n+=`
63
- `;break}return n},Ne.prototype.render=function(e,u,t){let n="";const r=this.rules;for(let o=0,i=e.length;o<i;o++){const c=e[o].type;c==="inline"?n+=this.renderInline(e[o].children,u,t):typeof r[c]<"u"?n+=r[c](e,o,u,t,this):n+=this.renderToken(e,o,u,t)}return n};function K(){this.__rules__=[],this.__cache__=null}K.prototype.__find__=function(e){for(let u=0;u<this.__rules__.length;u++)if(this.__rules__[u].name===e)return u;return-1},K.prototype.__compile__=function(){const e=this,u=[""];e.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(n){u.indexOf(n)<0&&u.push(n)})}),e.__cache__={},u.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},K.prototype.at=function(e,u,t){const n=this.__find__(e),r=t||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=u,this.__rules__[n].alt=r.alt||[],this.__cache__=null},K.prototype.before=function(e,u,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:u,enabled:!0,fn:t,alt:o.alt||[]}),this.__cache__=null},K.prototype.after=function(e,u,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:u,enabled:!0,fn:t,alt:o.alt||[]}),this.__cache__=null},K.prototype.push=function(e,u,t){const n=t||{};this.__rules__.push({name:e,enabled:!0,fn:u,alt:n.alt||[]}),this.__cache__=null},K.prototype.enable=function(e,u){Array.isArray(e)||(e=[e]);const t=[];return e.forEach(function(n){const r=this.__find__(n);if(r<0){if(u)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!0,t.push(n)},this),this.__cache__=null,t},K.prototype.enableOnly=function(e,u){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(e,u)},K.prototype.disable=function(e,u){Array.isArray(e)||(e=[e]);const t=[];return e.forEach(function(n){const r=this.__find__(n);if(r<0){if(u)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[r].enabled=!1,t.push(n)},this),this.__cache__=null,t},K.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ie(e,u,t){this.type=e,this.tag=u,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ie.prototype.attrIndex=function(u){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===u)return n;return-1},ie.prototype.attrPush=function(u){this.attrs?this.attrs.push(u):this.attrs=[u]},ie.prototype.attrSet=function(u,t){const n=this.attrIndex(u),r=[u,t];n<0?this.attrPush(r):this.attrs[n]=r},ie.prototype.attrGet=function(u){const t=this.attrIndex(u);let n=null;return t>=0&&(n=this.attrs[t][1]),n},ie.prototype.attrJoin=function(u,t){const n=this.attrIndex(u);n<0?this.attrPush([u,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};function On(e,u,t){this.src=e,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=u}On.prototype.Token=ie;const Ja=/\r\n?|\n/g,Ya=/\0/g;function Xa(e){let u;u=e.src.replace(Ja,`
64
- `),u=u.replace(Ya,"�"),e.src=u}function Ka(e){let u;e.inlineMode?(u=new e.Token("inline","",0),u.content=e.src,u.map=[0,1],u.children=[],e.tokens.push(u)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function ec(e){const u=e.tokens;for(let t=0,n=u.length;t<n;t++){const r=u[t];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function uc(e){return/^<a[>\s]/i.test(e)}function tc(e){return/^<\/a\s*>/i.test(e)}function nc(e){const u=e.tokens;if(e.md.options.linkify)for(let t=0,n=u.length;t<n;t++){if(u[t].type!=="inline"||!e.md.linkify.pretest(u[t].content))continue;let r=u[t].children,o=0;for(let i=r.length-1;i>=0;i--){const c=r[i];if(c.type==="link_close"){for(i--;r[i].level!==c.level&&r[i].type!=="link_open";)i--;continue}if(c.type==="html_inline"&&(uc(c.content)&&o>0&&o--,tc(c.content)&&o++),!(o>0)&&c.type==="text"&&e.md.linkify.test(c.content)){const s=c.content;let l=e.md.linkify.match(s);const d=[];let f=c.level,h=0;l.length>0&&l[0].index===0&&i>0&&r[i-1].type==="text_special"&&(l=l.slice(1));for(let b=0;b<l.length;b++){const p=l[b].url,g=e.md.normalizeLink(p);if(!e.md.validateLink(g))continue;let x=l[b].text;l[b].schema?l[b].schema==="mailto:"&&!/^mailto:/i.test(x)?x=e.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=e.md.normalizeLinkText(x):x=e.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,"");const C=l[b].index;if(C>h){const w=new e.Token("text","",0);w.content=s.slice(h,C),w.level=f,d.push(w)}const k=new e.Token("link_open","a",1);k.attrs=[["href",g]],k.level=f++,k.markup="linkify",k.info="auto",d.push(k);const E=new e.Token("text","",0);E.content=x,E.level=f,d.push(E);const A=new e.Token("link_close","a",-1);A.level=--f,A.markup="linkify",A.info="auto",d.push(A),h=l[b].lastIndex}if(h<s.length){const b=new e.Token("text","",0);b.content=s.slice(h),b.level=f,d.push(b)}u[t].children=r=Nn(r,i,d)}}}}const Ln=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,rc=/\((c|tm|r)\)/i,oc=/\((c|tm|r)\)/ig,ic={c:"©",r:"®",tm:"™"};function ac(e,u){return ic[u.toLowerCase()]}function cc(e){let u=0;for(let t=e.length-1;t>=0;t--){const n=e[t];n.type==="text"&&!u&&(n.content=n.content.replace(oc,ac)),n.type==="link_open"&&n.info==="auto"&&u--,n.type==="link_close"&&n.info==="auto"&&u++}}function sc(e){let u=0;for(let t=e.length-1;t>=0;t--){const n=e[t];n.type==="text"&&!u&&Ln.test(n.content)&&(n.content=n.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–")),n.type==="link_open"&&n.info==="auto"&&u--,n.type==="link_close"&&n.info==="auto"&&u++}}function lc(e){let u;if(e.md.options.typographer)for(u=e.tokens.length-1;u>=0;u--)e.tokens[u].type==="inline"&&(rc.test(e.tokens[u].content)&&cc(e.tokens[u].children),Ln.test(e.tokens[u].content)&&sc(e.tokens[u].children))}const dc=/['"]/,Pn=/['"]/g,Mn="’";function yu(e,u,t){return e.slice(0,u)+t+e.slice(u+1)}function fc(e,u){let t;const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=e[r].level;for(t=n.length-1;t>=0&&!(n[t].level<=i);t--);if(n.length=t+1,o.type!=="text")continue;let c=o.content,s=0,l=c.length;e:for(;s<l;){Pn.lastIndex=s;const d=Pn.exec(c);if(!d)break;let f=!0,h=!0;s=d.index+1;const b=d[0]==="'";let p=32;if(d.index-1>=0)p=c.charCodeAt(d.index-1);else for(t=r-1;t>=0&&!(e[t].type==="softbreak"||e[t].type==="hardbreak");t--)if(e[t].content){p=e[t].content.charCodeAt(e[t].content.length-1);break}let g=32;if(s<l)g=c.charCodeAt(s);else for(t=r+1;t<e.length&&!(e[t].type==="softbreak"||e[t].type==="hardbreak");t++)if(e[t].content){g=e[t].content.charCodeAt(0);break}const x=He(p)||Ge(String.fromCharCode(p)),C=He(g)||Ge(String.fromCharCode(g)),k=$e(p),E=$e(g);if(E?f=!1:C&&(k||x||(f=!1)),k?h=!1:x&&(E||C||(h=!1)),g===34&&d[0]==='"'&&p>=48&&p<=57&&(h=f=!1),f&&h&&(f=x,h=C),!f&&!h){b&&(o.content=yu(o.content,d.index,Mn));continue}if(h)for(t=n.length-1;t>=0;t--){let A=n[t];if(n[t].level<i)break;if(A.single===b&&n[t].level===i){A=n[t];let w,F;b?(w=u.md.options.quotes[2],F=u.md.options.quotes[3]):(w=u.md.options.quotes[0],F=u.md.options.quotes[1]),o.content=yu(o.content,d.index,F),e[A.token].content=yu(e[A.token].content,A.pos,w),s+=F.length-1,A.token===r&&(s+=w.length-1),c=o.content,l=c.length,n.length=t;continue e}}f?n.push({token:r,pos:d.index,single:b,level:i}):h&&b&&(o.content=yu(o.content,d.index,Mn))}}}function pc(e){if(e.md.options.typographer)for(let u=e.tokens.length-1;u>=0;u--)e.tokens[u].type!=="inline"||!dc.test(e.tokens[u].content)||fc(e.tokens[u].children,e)}function hc(e){let u,t;const n=e.tokens,r=n.length;for(let o=0;o<r;o++){if(n[o].type!=="inline")continue;const i=n[o].children,c=i.length;for(u=0;u<c;u++)i[u].type==="text_special"&&(i[u].type="text");for(u=t=0;u<c;u++)i[u].type==="text"&&u+1<c&&i[u+1].type==="text"?i[u+1].content=i[u].content+i[u+1].content:(u!==t&&(i[t]=i[u]),t++);u!==t&&(i.length=t)}}const et=[["normalize",Xa],["block",Ka],["inline",ec],["linkify",nc],["replacements",lc],["smartquotes",pc],["text_join",hc]];function ut(){this.ruler=new K;for(let e=0;e<et.length;e++)this.ruler.push(et[e][0],et[e][1])}ut.prototype.process=function(e){const u=this.ruler.getRules("");for(let t=0,n=u.length;t<n;t++)u[t](e)},ut.prototype.State=On;function de(e,u,t,n){this.src=e,this.md=u,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,i=0,c=0,s=0,l=r.length,d=!1;i<l;i++){const f=r.charCodeAt(i);if(!d)if(z(f)){c++,f===9?s+=4-s%4:s++;continue}else d=!0;(f===10||i===l-1)&&(f!==10&&i++,this.bMarks.push(o),this.eMarks.push(i),this.tShift.push(c),this.sCount.push(s),this.bsCount.push(0),d=!1,c=0,s=0,o=i+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}de.prototype.push=function(e,u,t){const n=new ie(e,u,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n},de.prototype.isEmpty=function(u){return this.bMarks[u]+this.tShift[u]>=this.eMarks[u]},de.prototype.skipEmptyLines=function(u){for(let t=this.lineMax;u<t&&!(this.bMarks[u]+this.tShift[u]<this.eMarks[u]);u++);return u},de.prototype.skipSpaces=function(u){for(let t=this.src.length;u<t;u++){const n=this.src.charCodeAt(u);if(!z(n))break}return u},de.prototype.skipSpacesBack=function(u,t){if(u<=t)return u;for(;u>t;)if(!z(this.src.charCodeAt(--u)))return u+1;return u},de.prototype.skipChars=function(u,t){for(let n=this.src.length;u<n&&this.src.charCodeAt(u)===t;u++);return u},de.prototype.skipCharsBack=function(u,t,n){if(u<=n)return u;for(;u>n;)if(t!==this.src.charCodeAt(--u))return u+1;return u},de.prototype.getLines=function(u,t,n,r){if(u>=t)return"";const o=new Array(t-u);for(let i=0,c=u;c<t;c++,i++){let s=0;const l=this.bMarks[c];let d=l,f;for(c+1<t||r?f=this.eMarks[c]+1:f=this.eMarks[c];d<f&&s<n;){const h=this.src.charCodeAt(d);if(z(h))h===9?s+=4-(s+this.bsCount[c])%4:s++;else if(d-l<this.tShift[c])s++;else break;d++}s>n?o[i]=new Array(s-n+1).join(" ")+this.src.slice(d,f):o[i]=this.src.slice(d,f)}return o.join("")},de.prototype.Token=ie;const bc=65536;function tt(e,u){const t=e.bMarks[u]+e.tShift[u],n=e.eMarks[u];return e.src.slice(t,n)}function zn(e){const u=[],t=e.length;let n=0,r=e.charCodeAt(n),o=!1,i=0,c="";for(;n<t;)r===124&&(o?(c+=e.substring(i,n-1),i=n):(u.push(c+e.substring(i,n)),c="",i=n+1)),o=r===92,n++,r=e.charCodeAt(n);return u.push(c+e.substring(i)),u}function mc(e,u,t,n){if(u+2>t)return!1;let r=u+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58||o>=e.eMarks[r])return!1;const c=e.src.charCodeAt(o++);if(c!==124&&c!==45&&c!==58&&!z(c)||i===45&&z(c))return!1;for(;o<e.eMarks[r];){const A=e.src.charCodeAt(o);if(A!==124&&A!==45&&A!==58&&!z(A))return!1;o++}let s=tt(e,u+1),l=s.split("|");const d=[];for(let A=0;A<l.length;A++){const w=l[A].trim();if(!w){if(A===0||A===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?d.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?d.push("left"):d.push("")}if(s=tt(e,u).trim(),s.indexOf("|")===-1||e.sCount[u]-e.blkIndent>=4)return!1;l=zn(s),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const f=l.length;if(f===0||f!==d.length)return!1;if(n)return!0;const h=e.parentType;e.parentType="table";const b=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),g=[u,0];p.map=g;const x=e.push("thead_open","thead",1);x.map=[u,u+1];const C=e.push("tr_open","tr",1);C.map=[u,u+1];for(let A=0;A<l.length;A++){const w=e.push("th_open","th",1);d[A]&&(w.attrs=[["style","text-align:"+d[A]]]);const F=e.push("inline","",0);F.content=l[A].trim(),F.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,E=0;for(r=u+2;r<t&&!(e.sCount[r]<e.blkIndent);r++){let A=!1;for(let F=0,T=b.length;F<T;F++)if(b[F](e,r,t,!0)){A=!0;break}if(A||(s=tt(e,r).trim(),!s)||e.sCount[r]-e.blkIndent>=4||(l=zn(s),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),E+=f-l.length,E>bc))break;if(r===u+2){const F=e.push("tbody_open","tbody",1);F.map=k=[u+2,0]}const w=e.push("tr_open","tr",1);w.map=[r,r+1];for(let F=0;F<f;F++){const T=e.push("td_open","td",1);d[F]&&(T.attrs=[["style","text-align:"+d[F]]]);const U=e.push("inline","",0);U.content=l[F]?l[F].trim():"",U.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=r),e.push("table_close","table",-1),g[1]=r,e.parentType=h,e.line=r,!0}function gc(e,u,t){if(e.sCount[u]-e.blkIndent<4)return!1;let n=u+1,r=n;for(;n<t;){if(e.isEmpty(n)){n++;continue}if(e.sCount[n]-e.blkIndent>=4){n++,r=n;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(u,r,4+e.blkIndent,!1)+`
65
- `,o.map=[u,e.line],!0}function xc(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||r+3>o)return!1;const i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let c=r;r=e.skipChars(r,i);let s=r-c;if(s<3)return!1;const l=e.src.slice(c,r),d=e.src.slice(r,o);if(i===96&&d.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let f=u,h=!1;for(;f++,!(f>=t||(r=c=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],r<o&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(r)===i&&!(e.sCount[f]-e.blkIndent>=4)&&(r=e.skipChars(r,i),!(r-c<s)&&(r=e.skipSpaces(r),!(r<o)))){h=!0;break}s=e.sCount[u],e.line=f+(h?1:0);const b=e.push("fence","code",0);return b.info=d,b.content=e.getLines(u+1,f,s,!0),b.markup=l,b.map=[u,e.line],!0}function yc(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];const i=e.lineMax;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(n)return!0;const c=[],s=[],l=[],d=[],f=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let b=!1,p;for(p=u;p<t;p++){const E=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],r>=o)break;if(e.src.charCodeAt(r++)===62&&!E){let w=e.sCount[p]+1,F,T;e.src.charCodeAt(r)===32?(r++,w++,T=!1,F=!0):e.src.charCodeAt(r)===9?(F=!0,(e.bsCount[p]+w)%4===3?(r++,w++,T=!1):T=!0):F=!1;let U=w;for(c.push(e.bMarks[p]),e.bMarks[p]=r;r<o;){const V=e.src.charCodeAt(r);if(z(V))V===9?U+=4-(U+e.bsCount[p]+(T?1:0))%4:U++;else break;r++}b=r>=o,s.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(F?1:0),l.push(e.sCount[p]),e.sCount[p]=U-w,d.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(b)break;let A=!1;for(let w=0,F=f.length;w<F;w++)if(f[w](e,p,t,!0)){A=!0;break}if(A){e.lineMax=p,e.blkIndent!==0&&(c.push(e.bMarks[p]),s.push(e.bsCount[p]),d.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}c.push(e.bMarks[p]),s.push(e.bsCount[p]),d.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]=-1}const g=e.blkIndent;e.blkIndent=0;const x=e.push("blockquote_open","blockquote",1);x.markup=">";const C=[u,0];x.map=C,e.md.block.tokenize(e,u,p);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=i,e.parentType=h,C[1]=e.line;for(let E=0;E<d.length;E++)e.bMarks[E+u]=c[E],e.tShift[E+u]=d[E],e.sCount[E+u]=l[E],e.bsCount[E+u]=s[E];return e.blkIndent=g,!0}function kc(e,u,t,n){const r=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];const i=e.src.charCodeAt(o++);if(i!==42&&i!==45&&i!==95)return!1;let c=1;for(;o<r;){const l=e.src.charCodeAt(o++);if(l!==i&&!z(l))return!1;l===i&&c++}if(c<3)return!1;if(n)return!0;e.line=u+1;const s=e.push("hr","hr",0);return s.map=[u,e.line],s.markup=Array(c+1).join(String.fromCharCode(i)),!0}function qn(e,u){const t=e.eMarks[u];let n=e.bMarks[u]+e.tShift[u];const r=e.src.charCodeAt(n++);if(r!==42&&r!==45&&r!==43)return-1;if(n<t){const o=e.src.charCodeAt(n);if(!z(o))return-1}return n}function Un(e,u){const t=e.bMarks[u]+e.tShift[u],n=e.eMarks[u];let r=t;if(r+1>=n)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=n)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-t>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<n&&(o=e.src.charCodeAt(r),!z(o))?-1:r}function _c(e,u){const t=e.level+2;for(let n=u+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===t&&e.tokens[n].type==="paragraph_open"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}function Ec(e,u,t,n){let r,o,i,c,s=u,l=!0;if(e.sCount[s]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[s]-e.listIndent>=4&&e.sCount[s]<e.blkIndent)return!1;let d=!1;n&&e.parentType==="paragraph"&&e.sCount[s]>=e.blkIndent&&(d=!0);let f,h,b;if((b=Un(e,s))>=0){if(f=!0,i=e.bMarks[s]+e.tShift[s],h=Number(e.src.slice(i,b-1)),d&&h!==1)return!1}else if((b=qn(e,s))>=0)f=!1;else return!1;if(d&&e.skipSpaces(b)>=e.eMarks[s])return!1;if(n)return!0;const p=e.src.charCodeAt(b-1),g=e.tokens.length;f?(c=e.push("ordered_list_open","ol",1),h!==1&&(c.attrs=[["start",h]])):c=e.push("bullet_list_open","ul",1);const x=[s,0];c.map=x,c.markup=String.fromCharCode(p);let C=!1;const k=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";s<t;){o=b,r=e.eMarks[s];const A=e.sCount[s]+b-(e.bMarks[s]+e.tShift[s]);let w=A;for(;o<r;){const v=e.src.charCodeAt(o);if(v===9)w+=4-(w+e.bsCount[s])%4;else if(v===32)w++;else break;o++}const F=o;let T;F>=r?T=1:T=w-A,T>4&&(T=1);const U=A+T;c=e.push("list_item_open","li",1),c.markup=String.fromCharCode(p);const V=[s,0];c.map=V,f&&(c.info=e.src.slice(i,b-1));const J=e.tight,y=e.tShift[s],_=e.sCount[s],S=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=U,e.tight=!0,e.tShift[s]=F-e.bMarks[s],e.sCount[s]=w,F>=r&&e.isEmpty(s+1)?e.line=Math.min(e.line+2,t):e.md.block.tokenize(e,s,t,!0),(!e.tight||C)&&(l=!1),C=e.line-s>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[s]=y,e.sCount[s]=_,e.tight=J,c=e.push("list_item_close","li",-1),c.markup=String.fromCharCode(p),s=e.line,V[1]=s,s>=t||e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)break;let O=!1;for(let v=0,P=k.length;v<P;v++)if(k[v](e,s,t,!0)){O=!0;break}if(O)break;if(f){if(b=Un(e,s),b<0)break;i=e.bMarks[s]+e.tShift[s]}else if(b=qn(e,s),b<0)break;if(p!==e.src.charCodeAt(b-1))break}return f?c=e.push("ordered_list_close","ol",-1):c=e.push("bullet_list_close","ul",-1),c.markup=String.fromCharCode(p),x[1]=s,e.line=s,e.parentType=E,l&&_c(e,g),!0}function Ac(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u],i=u+1;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function c(k){const E=e.lineMax;if(k>=E||e.isEmpty(k))return null;let A=!1;if(e.sCount[k]-e.blkIndent>3&&(A=!0),e.sCount[k]<0&&(A=!0),!A){const T=e.md.block.ruler.getRules("reference"),U=e.parentType;e.parentType="reference";let V=!1;for(let J=0,y=T.length;J<y;J++)if(T[J](e,k,E,!0)){V=!0;break}if(e.parentType=U,V)return null}const w=e.bMarks[k]+e.tShift[k],F=e.eMarks[k];return e.src.slice(w,F+1)}let s=e.src.slice(r,o+1);o=s.length;let l=-1;for(r=1;r<o;r++){const k=s.charCodeAt(r);if(k===91)return!1;if(k===93){l=r;break}else if(k===10){const E=c(i);E!==null&&(s+=E,o=s.length,i++)}else if(k===92&&(r++,r<o&&s.charCodeAt(r)===10)){const E=c(i);E!==null&&(s+=E,o=s.length,i++)}}if(l<0||s.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<o;r++){const k=s.charCodeAt(r);if(k===10){const E=c(i);E!==null&&(s+=E,o=s.length,i++)}else if(!z(k))break}const d=e.md.helpers.parseLinkDestination(s,r,o);if(!d.ok)return!1;const f=e.md.normalizeLink(d.str);if(!e.md.validateLink(f))return!1;r=d.pos;const h=r,b=i,p=r;for(;r<o;r++){const k=s.charCodeAt(r);if(k===10){const E=c(i);E!==null&&(s+=E,o=s.length,i++)}else if(!z(k))break}let g=e.md.helpers.parseLinkTitle(s,r,o);for(;g.can_continue;){const k=c(i);if(k===null)break;s+=k,r=o,o=s.length,i++,g=e.md.helpers.parseLinkTitle(s,r,o,g)}let x;for(r<o&&p!==r&&g.ok?(x=g.str,r=g.pos):(x="",r=h,i=b);r<o;){const k=s.charCodeAt(r);if(!z(k))break;r++}if(r<o&&s.charCodeAt(r)!==10&&x)for(x="",r=h,i=b;r<o;){const k=s.charCodeAt(r);if(!z(k))break;r++}if(r<o&&s.charCodeAt(r)!==10)return!1;const C=xu(s.slice(1,l));return C?(n||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[C]>"u"&&(e.env.references[C]={title:x,href:f}),e.line=i),!0):!1}const Cc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wc="[a-zA-Z_:][a-zA-Z0-9:._-]*",Dc="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",jn="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+wc+"(?:\\s*=\\s*"+Dc+")?)")+"*\\s*\\/?>",Vn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Fc="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Sc="<[?][\\s\\S]*?[?]>",vc="<![A-Za-z][^>]*>",Bc="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Rc=new RegExp("^(?:"+jn+"|"+Vn+"|"+Fc+"|"+Sc+"|"+vc+"|"+Bc+")"),Tc=new RegExp("^(?:"+jn+"|"+Vn+")"),Ie=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Cc.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Tc.source+"\\s*$"),/^$/,!1]];function Nc(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,o),c=0;for(;c<Ie.length&&!Ie[c][0].test(i);c++);if(c===Ie.length)return!1;if(n)return Ie[c][2];let s=u+1;if(!Ie[c][1].test(i)){for(;s<t&&!(e.sCount[s]<e.blkIndent);s++)if(r=e.bMarks[s]+e.tShift[s],o=e.eMarks[s],i=e.src.slice(r,o),Ie[c][1].test(i)){i.length!==0&&s++;break}}e.line=s;const l=e.push("html_block","",0);return l.map=[u,s],l.content=e.getLines(u,s,e.blkIndent,!0),!0}function Ic(e,u,t,n){let r=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=o)return!1;let c=1;for(i=e.src.charCodeAt(++r);i===35&&r<o&&c<=6;)c++,i=e.src.charCodeAt(++r);if(c>6||r<o&&!z(i))return!1;if(n)return!0;o=e.skipSpacesBack(o,r);const s=e.skipCharsBack(o,35,r);s>r&&z(e.src.charCodeAt(s-1))&&(o=s),e.line=u+1;const l=e.push("heading_open","h"+String(c),1);l.markup="########".slice(0,c),l.map=[u,e.line];const d=e.push("inline","",0);d.content=e.src.slice(r,o).trim(),d.map=[u,e.line],d.children=[];const f=e.push("heading_close","h"+String(c),-1);return f.markup="########".slice(0,c),!0}function Oc(e,u,t){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[u]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,i,c=u+1;for(;c<t&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3)continue;if(e.sCount[c]>=e.blkIndent){let b=e.bMarks[c]+e.tShift[c];const p=e.eMarks[c];if(b<p&&(i=e.src.charCodeAt(b),(i===45||i===61)&&(b=e.skipChars(b,i),b=e.skipSpaces(b),b>=p))){o=i===61?1:2;break}}if(e.sCount[c]<0)continue;let h=!1;for(let b=0,p=n.length;b<p;b++)if(n[b](e,c,t,!0)){h=!0;break}if(h)break}if(!o)return!1;const s=e.getLines(u,c,e.blkIndent,!1).trim();e.line=c+1;const l=e.push("heading_open","h"+String(o),1);l.markup=String.fromCharCode(i),l.map=[u,e.line];const d=e.push("inline","",0);d.content=s,d.map=[u,e.line-1],d.children=[];const f=e.push("heading_close","h"+String(o),-1);return f.markup=String.fromCharCode(i),e.parentType=r,!0}function Lc(e,u,t){const n=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=u+1;for(e.parentType="paragraph";o<t&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let l=!1;for(let d=0,f=n.length;d<f;d++)if(n[d](e,o,t,!0)){l=!0;break}if(l)break}const i=e.getLines(u,o,e.blkIndent,!1).trim();e.line=o;const c=e.push("paragraph_open","p",1);c.map=[u,e.line];const s=e.push("inline","",0);return s.content=i,s.map=[u,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const ku=[["table",mc,["paragraph","reference"]],["code",gc],["fence",xc,["paragraph","reference","blockquote","list"]],["blockquote",yc,["paragraph","reference","blockquote","list"]],["hr",kc,["paragraph","reference","blockquote","list"]],["list",Ec,["paragraph","reference","blockquote"]],["reference",Ac],["html_block",Nc,["paragraph","reference","blockquote"]],["heading",Ic,["paragraph","reference","blockquote"]],["lheading",Oc],["paragraph",Lc]];function _u(){this.ruler=new K;for(let e=0;e<ku.length;e++)this.ruler.push(ku[e][0],ku[e][1],{alt:(ku[e][2]||[]).slice()})}_u.prototype.tokenize=function(e,u,t){const n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting;let i=u,c=!1;for(;i<t&&(e.line=i=e.skipEmptyLines(i),!(i>=t||e.sCount[i]<e.blkIndent));){if(e.level>=o){e.line=t;break}const s=e.line;let l=!1;for(let d=0;d<r;d++)if(l=n[d](e,i,t,!1),l){if(s>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),i=e.line,i<t&&e.isEmpty(i)&&(c=!0,i++,e.line=i)}},_u.prototype.parse=function(e,u,t,n){if(!e)return;const r=new this.State(e,u,t,n);this.tokenize(r,r.line,r.lineMax)},_u.prototype.State=de;function We(e,u,t,n){this.src=e,this.env=t,this.md=u,this.tokens=n,this.tokens_meta=Array(n.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}We.prototype.pushPending=function(){const e=new ie("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},We.prototype.push=function(e,u,t){this.pending&&this.pushPending();const n=new ie(e,u,t);let r=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(r),n},We.prototype.scanDelims=function(e,u){const t=this.posMax,n=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<t&&this.src.charCodeAt(o)===n;)o++;const i=o-e,c=o<t?this.src.charCodeAt(o):32,s=He(r)||Ge(String.fromCharCode(r)),l=He(c)||Ge(String.fromCharCode(c)),d=$e(r),f=$e(c),h=!f&&(!l||d||s),b=!d&&(!s||f||l);return{can_open:h&&(u||!b||s),can_close:b&&(u||!h||l),length:i}},We.prototype.Token=ie;function Pc(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Mc(e,u){let t=e.pos;for(;t<e.posMax&&!Pc(e.src.charCodeAt(t));)t++;return t===e.pos?!1:(u||(e.pending+=e.src.slice(e.pos,t)),e.pos=t,!0)}const zc=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function qc(e,u){if(!e.md.options.linkify||e.linkLevel>0)return!1;const t=e.pos,n=e.posMax;if(t+3>n||e.src.charCodeAt(t)!==58||e.src.charCodeAt(t+1)!==47||e.src.charCodeAt(t+2)!==47)return!1;const r=e.pending.match(zc);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(t-o.length));if(!i)return!1;let c=i.url;if(c.length<=o.length)return!1;c=c.replace(/\*+$/,"");const s=e.md.normalizeLink(c);if(!e.md.validateLink(s))return!1;if(!u){e.pending=e.pending.slice(0,-o.length);const l=e.push("link_open","a",1);l.attrs=[["href",s]],l.markup="linkify",l.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(c);const f=e.push("link_close","a",-1);f.markup="linkify",f.info="auto"}return e.pos+=c.length-o.length,!0}function Uc(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==10)return!1;const n=e.pending.length-1,r=e.posMax;if(!u)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let o=n-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(t++;t<r&&z(e.src.charCodeAt(t));)t++;return e.pos=t,!0}const nt=[];for(let e=0;e<256;e++)nt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){nt[e.charCodeAt(0)]=1});function jc(e,u){let t=e.pos;const n=e.posMax;if(e.src.charCodeAt(t)!==92||(t++,t>=n))return!1;let r=e.src.charCodeAt(t);if(r===10){for(u||e.push("hardbreak","br",0),t++;t<n&&(r=e.src.charCodeAt(t),!!z(r));)t++;return e.pos=t,!0}let o=e.src[t];if(r>=55296&&r<=56319&&t+1<n){const c=e.src.charCodeAt(t+1);c>=56320&&c<=57343&&(o+=e.src[t+1],t++)}const i="\\"+o;if(!u){const c=e.push("text_special","",0);r<256&&nt[r]!==0?c.content=o:c.content=i,c.markup=i,c.info="escape"}return e.pos=t+1,!0}function Vc(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==96)return!1;const r=t;t++;const o=e.posMax;for(;t<o&&e.src.charCodeAt(t)===96;)t++;const i=e.src.slice(r,t),c=i.length;if(e.backticksScanned&&(e.backticks[c]||0)<=r)return u||(e.pending+=i),e.pos+=c,!0;let s=t,l;for(;(l=e.src.indexOf("`",s))!==-1;){for(s=l+1;s<o&&e.src.charCodeAt(s)===96;)s++;const d=s-l;if(d===c){if(!u){const f=e.push("code_inline","code",0);f.markup=i,f.content=e.src.slice(t,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=s,!0}e.backticks[d]=l}return e.backticksScanned=!0,u||(e.pending+=i),e.pos+=c,!0}function $c(e,u){const t=e.pos,n=e.src.charCodeAt(t);if(u||n!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const i=String.fromCharCode(n);if(o<2)return!1;let c;o%2&&(c=e.push("text","",0),c.content=i,o--);for(let s=0;s<o;s+=2)c=e.push("text","",0),c.content=i+i,e.delimiters.push({marker:n,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function $n(e,u){let t;const n=[],r=u.length;for(let o=0;o<r;o++){const i=u[o];if(i.marker!==126||i.end===-1)continue;const c=u[i.end];t=e.tokens[i.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=e.tokens[c.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",e.tokens[c.token-1].type==="text"&&e.tokens[c.token-1].content==="~"&&n.push(c.token-1)}for(;n.length;){const o=n.pop();let i=o+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,o!==i&&(t=e.tokens[i],e.tokens[i]=e.tokens[o],e.tokens[o]=t)}}function Gc(e){const u=e.tokens_meta,t=e.tokens_meta.length;$n(e,e.delimiters);for(let n=0;n<t;n++)u[n]&&u[n].delimiters&&$n(e,u[n].delimiters)}const Gn={tokenize:$c,postProcess:Gc};function Hc(e,u){const t=e.pos,n=e.src.charCodeAt(t);if(u||n!==95&&n!==42)return!1;const r=e.scanDelims(e.pos,n===42);for(let o=0;o<r.length;o++){const i=e.push("text","",0);i.content=String.fromCharCode(n),e.delimiters.push({marker:n,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function Hn(e,u){const t=u.length;for(let n=t-1;n>=0;n--){const r=u[n];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=u[r.end],i=n>0&&u[n-1].end===r.end+1&&u[n-1].marker===r.marker&&u[n-1].token===r.token-1&&u[r.end+1].token===o.token+1,c=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="";const l=e.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?c+c:c,l.content="",i&&(e.tokens[u[n-1].token].content="",e.tokens[u[r.end+1].token].content="",n--)}}function Wc(e){const u=e.tokens_meta,t=e.tokens_meta.length;Hn(e,e.delimiters);for(let n=0;n<t;n++)u[n]&&u[n].delimiters&&Hn(e,u[n].delimiters)}const Wn={tokenize:Hc,postProcess:Wc};function Zc(e,u){let t,n,r,o,i="",c="",s=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const d=e.pos,f=e.posMax,h=e.pos+1,b=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(b<0)return!1;let p=b+1;if(p<f&&e.src.charCodeAt(p)===40){for(l=!1,p++;p<f&&(t=e.src.charCodeAt(p),!(!z(t)&&t!==10));p++);if(p>=f)return!1;if(s=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?p=r.pos:i="",s=p;p<f&&(t=e.src.charCodeAt(p),!(!z(t)&&t!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<f&&s!==p&&r.ok)for(c=r.str,p=r.pos;p<f&&(t=e.src.charCodeAt(p),!(!z(t)&&t!==10));p++);}(p>=f||e.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof e.env.references>"u")return!1;if(p<f&&e.src.charCodeAt(p)===91?(s=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?n=e.src.slice(s,p++):p=b+1):p=b+1,n||(n=e.src.slice(h,b)),o=e.env.references[xu(n)],!o)return e.pos=d,!1;i=o.href,c=o.title}if(!u){e.pos=h,e.posMax=b;const g=e.push("link_open","a",1),x=[["href",i]];g.attrs=x,c&&x.push(["title",c]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=f,!0}function Qc(e,u){let t,n,r,o,i,c,s,l,d="";const f=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const b=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(o=p+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(t=e.src.charCodeAt(o),!(!z(t)&&t!==10));o++);if(o>=h)return!1;for(l=o,c=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),c.ok&&(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?o=c.pos:d=""),l=o;o<h&&(t=e.src.charCodeAt(o),!(!z(t)&&t!==10));o++);if(c=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&l!==o&&c.ok)for(s=c.str,o=c.pos;o<h&&(t=e.src.charCodeAt(o),!(!z(t)&&t!==10));o++);else s="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(l=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(l,o++):o=p+1):o=p+1,r||(r=e.src.slice(b,p)),i=e.env.references[xu(r)],!i)return e.pos=f,!1;d=i.href,s=i.title}if(!u){n=e.src.slice(b,p);const g=[];e.md.inline.parse(n,e.md,e.env,g);const x=e.push("image","img",0),C=[["src",d],["alt",""]];x.attrs=C,x.children=g,x.content=n,s&&C.push(["title",s])}return e.pos=o,e.posMax=h,!0}const Jc=/^([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])?)*)$/,Yc=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Xc(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==60)return!1;const n=e.pos,r=e.posMax;for(;;){if(++t>=r)return!1;const i=e.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const o=e.src.slice(n+1,t);if(Yc.test(o)){const i=e.md.normalizeLink(o);if(!e.md.validateLink(i))return!1;if(!u){const c=e.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(Jc.test(o)){const i=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(i))return!1;if(!u){const c=e.push("link_open","a",1);c.attrs=[["href",i]],c.markup="autolink",c.info="auto";const s=e.push("text","",0);s.content=e.md.normalizeLinkText(o);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}return!1}function Kc(e){return/^<a[>\s]/i.test(e)}function es(e){return/^<\/a\s*>/i.test(e)}function us(e){const u=e|32;return u>=97&&u<=122}function ts(e,u){if(!e.md.options.html)return!1;const t=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=t)return!1;const r=e.src.charCodeAt(n+1);if(r!==33&&r!==63&&r!==47&&!us(r))return!1;const o=e.src.slice(n).match(Rc);if(!o)return!1;if(!u){const i=e.push("html_inline","",0);i.content=o[0],Kc(i.content)&&e.linkLevel++,es(i.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const ns=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,rs=/^&([a-z][a-z0-9]{1,31});/i;function os(e,u){const t=e.pos,n=e.posMax;if(e.src.charCodeAt(t)!==38||t+1>=n)return!1;if(e.src.charCodeAt(t+1)===35){const o=e.src.slice(t).match(ns);if(o){if(!u){const i=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),c=e.push("text_special","",0);c.content=Ku(i)?gu(i):gu(65533),c.markup=o[0],c.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(t).match(rs);if(o){const i=Tn(o[0]);if(i!==o[0]){if(!u){const c=e.push("text_special","",0);c.content=i,c.markup=o[0],c.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Zn(e){const u={},t=e.length;if(!t)return;let n=0,r=-2;const o=[];for(let i=0;i<t;i++){const c=e[i];if(o.push(0),(e[n].marker!==c.marker||r!==c.token-1)&&(n=i),r=c.token,c.length=c.length||0,!c.close)continue;u.hasOwnProperty(c.marker)||(u[c.marker]=[-1,-1,-1,-1,-1,-1]);const s=u[c.marker][(c.open?3:0)+c.length%3];let l=n-o[n]-1,d=l;for(;l>s;l-=o[l]+1){const f=e[l];if(f.marker===c.marker&&f.open&&f.end<0){let h=!1;if((f.close||c.open)&&(f.length+c.length)%3===0&&(f.length%3!==0||c.length%3!==0)&&(h=!0),!h){const b=l>0&&!e[l-1].open?o[l-1]+1:0;o[i]=i-l+b,o[l]=b,c.open=!1,f.end=i,f.close=!1,d=-1,r=-2;break}}}d!==-1&&(u[c.marker][(c.open?3:0)+(c.length||0)%3]=d)}}function is(e){const u=e.tokens_meta,t=e.tokens_meta.length;Zn(e.delimiters);for(let n=0;n<t;n++)u[n]&&u[n].delimiters&&Zn(u[n].delimiters)}function as(e){let u,t,n=0;const r=e.tokens,o=e.tokens.length;for(u=t=0;u<o;u++)r[u].nesting<0&&n--,r[u].level=n,r[u].nesting>0&&n++,r[u].type==="text"&&u+1<o&&r[u+1].type==="text"?r[u+1].content=r[u].content+r[u+1].content:(u!==t&&(r[t]=r[u]),t++);u!==t&&(r.length=t)}const rt=[["text",Mc],["linkify",qc],["newline",Uc],["escape",jc],["backticks",Vc],["strikethrough",Gn.tokenize],["emphasis",Wn.tokenize],["link",Zc],["image",Qc],["autolink",Xc],["html_inline",ts],["entity",os]],ot=[["balance_pairs",is],["strikethrough",Gn.postProcess],["emphasis",Wn.postProcess],["fragments_join",as]];function Ze(){this.ruler=new K;for(let e=0;e<rt.length;e++)this.ruler.push(rt[e][0],rt[e][1]);this.ruler2=new K;for(let e=0;e<ot.length;e++)this.ruler2.push(ot[e][0],ot[e][1])}Ze.prototype.skipToken=function(e){const u=e.pos,t=this.ruler.getRules(""),n=t.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[u]<"u"){e.pos=o[u];return}let i=!1;if(e.level<r){for(let c=0;c<n;c++)if(e.level++,i=t[c](e,!0),e.level--,i){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,o[u]=e.pos},Ze.prototype.tokenize=function(e){const u=this.ruler.getRules(""),t=u.length,n=e.posMax,r=e.md.options.maxNesting;for(;e.pos<n;){const o=e.pos;let i=!1;if(e.level<r){for(let c=0;c<t;c++)if(i=u[c](e,!1),i){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ze.prototype.parse=function(e,u,t,n){const r=new this.State(e,u,t,n);this.tokenize(r);const o=this.ruler2.getRules(""),i=o.length;for(let c=0;c<i;c++)o[c](r)},Ze.prototype.State=We;function cs(e){const u={};e=e||{},u.src_Any=Fn.source,u.src_Cc=Sn.source,u.src_Z=Bn.source,u.src_P=Qu.source,u.src_ZPCc=[u.src_Z,u.src_P,u.src_Cc].join("|"),u.src_ZCc=[u.src_Z,u.src_Cc].join("|");const t="[><|]";return u.src_pseudo_letter="(?:(?!"+t+"|"+u.src_ZPCc+")"+u.src_Any+")",u.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]?)",u.src_auth="(?:(?:(?!"+u.src_ZCc+"|[@/\\[\\]()]).)+@)?",u.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",u.src_host_terminator="(?=$|"+t+"|"+u.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+u.src_ZPCc+"))",u.src_path="(?:[/?#](?:(?!"+u.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+u.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+u.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+u.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+u.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+u.src_ZCc+"|[']).)+\\'|\\'(?="+u.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+u.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+u.src_ZCc+"|$)|;(?!"+u.src_ZCc+"|$)|\\!+(?!"+u.src_ZCc+"|[!]|$)|\\?(?!"+u.src_ZCc+"|[?]|$))+|\\/)?",u.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',u.src_xn="xn--[a-z0-9\\-]{1,59}",u.src_domain_root="(?:"+u.src_xn+"|"+u.src_pseudo_letter+"{1,63})",u.src_domain="(?:"+u.src_xn+"|(?:"+u.src_pseudo_letter+")|(?:"+u.src_pseudo_letter+"(?:-|"+u.src_pseudo_letter+"){0,61}"+u.src_pseudo_letter+"))",u.src_host="(?:(?:(?:(?:"+u.src_domain+")\\.)*"+u.src_domain+"))",u.tpl_host_fuzzy="(?:"+u.src_ip4+"|(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%)))",u.tpl_host_no_ip_fuzzy="(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%))",u.src_host_strict=u.src_host+u.src_host_terminator,u.tpl_host_fuzzy_strict=u.tpl_host_fuzzy+u.src_host_terminator,u.src_host_port_strict=u.src_host+u.src_port+u.src_host_terminator,u.tpl_host_port_fuzzy_strict=u.tpl_host_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_port_no_ip_fuzzy_strict=u.tpl_host_no_ip_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+u.src_ZPCc+"|>|$))",u.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+u.src_ZCc+")("+u.src_email_name+"@"+u.tpl_host_fuzzy_strict+")",u.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_fuzzy_strict+u.src_path+")",u.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_no_ip_fuzzy_strict+u.src_path+")",u}function it(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Eu(e){return Object.prototype.toString.call(e)}function ss(e){return Eu(e)==="[object String]"}function ls(e){return Eu(e)==="[object Object]"}function ds(e){return Eu(e)==="[object RegExp]"}function Qn(e){return Eu(e)==="[object Function]"}function fs(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Jn={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ps(e){return Object.keys(e||{}).reduce(function(u,t){return u||Jn.hasOwnProperty(t)},!1)}const hs={"http:":{validate:function(e,u,t){const n=e.slice(u);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,u,t){const n=e.slice(u);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?u>=3&&e[u-3]===":"||u>=3&&e[u-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(e,u,t){const n=e.slice(u);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},bs="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]",ms="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function gs(e){e.__index__=-1,e.__text_cache__=""}function xs(e){return function(u,t){const n=u.slice(t);return e.test(n)?n.match(e)[0].length:0}}function Yn(){return function(e,u){u.normalize(e)}}function Au(e){const u=e.re=cs(e.__opts__),t=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||t.push(bs),t.push(u.src_xn),u.src_tlds=t.join("|");function n(c){return c.replace("%TLDS%",u.src_tlds)}u.email_fuzzy=RegExp(n(u.tpl_email_fuzzy),"i"),u.link_fuzzy=RegExp(n(u.tpl_link_fuzzy),"i"),u.link_no_ip_fuzzy=RegExp(n(u.tpl_link_no_ip_fuzzy),"i"),u.host_fuzzy_test=RegExp(n(u.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(c,s){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+s)}Object.keys(e.__schemas__).forEach(function(c){const s=e.__schemas__[c];if(s===null)return;const l={validate:null,link:null};if(e.__compiled__[c]=l,ls(s)){ds(s.validate)?l.validate=xs(s.validate):Qn(s.validate)?l.validate=s.validate:o(c,s),Qn(s.normalize)?l.normalize=s.normalize:s.normalize?o(c,s):l.normalize=Yn();return}if(ss(s)){r.push(c);return}o(c,s)}),r.forEach(function(c){e.__compiled__[e.__schemas__[c]]&&(e.__compiled__[c].validate=e.__compiled__[e.__schemas__[c]].validate,e.__compiled__[c].normalize=e.__compiled__[e.__schemas__[c]].normalize)}),e.__compiled__[""]={validate:null,normalize:Yn()};const i=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(fs).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),gs(e)}function ys(e,u){const t=e.__index__,n=e.__last_index__,r=e.__text_cache__.slice(t,n);this.schema=e.__schema__.toLowerCase(),this.index=t+u,this.lastIndex=n+u,this.raw=r,this.text=r,this.url=r}function at(e,u){const t=new ys(e,u);return e.__compiled__[t.schema].normalize(t,e),t}function ue(e,u){if(!(this instanceof ue))return new ue(e,u);u||ps(e)&&(u=e,e={}),this.__opts__=it({},Jn,u),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=it({},hs,e),this.__compiled__={},this.__tlds__=ms,this.__tlds_replaced__=!1,this.re={},Au(this)}ue.prototype.add=function(u,t){return this.__schemas__[u]=t,Au(this),this},ue.prototype.set=function(u){return this.__opts__=it(this.__opts__,u),this},ue.prototype.test=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return!1;let t,n,r,o,i,c,s,l,d;if(this.re.schema_test.test(u)){for(s=this.re.schema_search,s.lastIndex=0;(t=s.exec(u))!==null;)if(o=this.testSchemaAt(u,t[2],s.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=u.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=u.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=u.indexOf("@"),d>=0&&(r=u.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,c=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0},ue.prototype.pretest=function(u){return this.re.pretest.test(u)},ue.prototype.testSchemaAt=function(u,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(u,n,this):0},ue.prototype.match=function(u){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===u&&(t.push(at(this,n)),n=this.__last_index__);let r=n?u.slice(n):u;for(;this.test(r);)t.push(at(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},ue.prototype.matchAtStart=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return null;const t=this.re.schema_at_start.exec(u);if(!t)return null;const n=this.testSchemaAt(u,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,at(this,0)):null},ue.prototype.tlds=function(u,t){return u=Array.isArray(u)?u:[u],t?(this.__tlds__=this.__tlds__.concat(u).sort().filter(function(n,r,o){return n!==o[r-1]}).reverse(),Au(this),this):(this.__tlds__=u.slice(),this.__tlds_replaced__=!0,Au(this),this)},ue.prototype.normalize=function(u){u.schema||(u.url="http://"+u.url),u.schema==="mailto:"&&!/^mailto:/i.test(u.url)&&(u.url="mailto:"+u.url)},ue.prototype.onCompile=function(){};const Oe=2147483647,fe=36,ct=1,Qe=26,ks=38,_s=700,Xn=72,Kn=128,er="-",Es=/^xn--/,As=/[^\0-\x7F]/,Cs=/[\x2E\u3002\uFF0E\uFF61]/g,ws={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},st=fe-ct,pe=Math.floor,lt=String.fromCharCode;function xe(e){throw new RangeError(ws[e])}function Ds(e,u){const t=[];let n=e.length;for(;n--;)t[n]=u(e[n]);return t}function ur(e,u){const t=e.split("@");let n="";t.length>1&&(n=t[0]+"@",e=t[1]),e=e.replace(Cs,".");const r=e.split("."),o=Ds(r,u).join(".");return n+o}function tr(e){const u=[];let t=0;const n=e.length;for(;t<n;){const r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<n){const o=e.charCodeAt(t++);(o&64512)==56320?u.push(((r&1023)<<10)+(o&1023)+65536):(u.push(r),t--)}else u.push(r)}return u}const Fs=e=>String.fromCodePoint(...e),Ss=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:fe},nr=function(e,u){return e+22+75*(e<26)-((u!=0)<<5)},rr=function(e,u,t){let n=0;for(e=t?pe(e/_s):e>>1,e+=pe(e/u);e>st*Qe>>1;n+=fe)e=pe(e/st);return pe(n+(st+1)*e/(e+ks))},or=function(e){const u=[],t=e.length;let n=0,r=Kn,o=Xn,i=e.lastIndexOf(er);i<0&&(i=0);for(let c=0;c<i;++c)e.charCodeAt(c)>=128&&xe("not-basic"),u.push(e.charCodeAt(c));for(let c=i>0?i+1:0;c<t;){const s=n;for(let d=1,f=fe;;f+=fe){c>=t&&xe("invalid-input");const h=Ss(e.charCodeAt(c++));h>=fe&&xe("invalid-input"),h>pe((Oe-n)/d)&&xe("overflow"),n+=h*d;const b=f<=o?ct:f>=o+Qe?Qe:f-o;if(h<b)break;const p=fe-b;d>pe(Oe/p)&&xe("overflow"),d*=p}const l=u.length+1;o=rr(n-s,l,s==0),pe(n/l)>Oe-r&&xe("overflow"),r+=pe(n/l),n%=l,u.splice(n++,0,r)}return String.fromCodePoint(...u)},ir=function(e){const u=[];e=tr(e);const t=e.length;let n=Kn,r=0,o=Xn;for(const s of e)s<128&&u.push(lt(s));const i=u.length;let c=i;for(i&&u.push(er);c<t;){let s=Oe;for(const d of e)d>=n&&d<s&&(s=d);const l=c+1;s-n>pe((Oe-r)/l)&&xe("overflow"),r+=(s-n)*l,n=s;for(const d of e)if(d<n&&++r>Oe&&xe("overflow"),d===n){let f=r;for(let h=fe;;h+=fe){const b=h<=o?ct:h>=o+Qe?Qe:h-o;if(f<b)break;const p=f-b,g=fe-b;u.push(lt(nr(b+p%g,0))),f=pe(p/g)}u.push(lt(nr(f,0))),o=rr(r,l,c===i),r=0,++c}++r,++n}return u.join("")},ar={version:"2.3.1",ucs2:{decode:tr,encode:Fs},decode:or,encode:ir,toASCII:function(e){return ur(e,function(u){return As.test(u)?"xn--"+ir(u):u})},toUnicode:function(e){return ur(e,function(u){return Es.test(u)?or(u.slice(4).toLowerCase()):u})}},vs={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{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"]}}},commonmark:{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"]}}}},Bs=/^(vbscript|javascript|file|data):/,Rs=/^data:image\/(gif|png|jpeg|webp);/;function Ts(e){const u=e.trim().toLowerCase();return Bs.test(u)?Rs.test(u):!0}const cr=["http:","https:","mailto:"];function Ns(e){const u=Zu(e,!0);if(u.hostname&&(!u.protocol||cr.indexOf(u.protocol)>=0))try{u.hostname=ar.toASCII(u.hostname)}catch{}return Ve(Wu(u))}function Is(e){const u=Zu(e,!0);if(u.hostname&&(!u.protocol||cr.indexOf(u.protocol)>=0))try{u.hostname=ar.toUnicode(u.hostname)}catch{}return Re(Wu(u),Re.defaultChars+"%")}function re(e,u){if(!(this instanceof re))return new re(e,u);u||Xu(e)||(u=e||{},e="default"),this.inline=new Ze,this.block=new _u,this.core=new ut,this.renderer=new Ne,this.linkify=new ue,this.validateLink=Ts,this.normalizeLink=Ns,this.normalizeLinkText=Is,this.utils=Ga,this.helpers=mu({},Qa),this.options={},this.configure(e),u&&this.set(u)}re.prototype.set=function(e){return mu(this.options,e),this},re.prototype.configure=function(e){const u=this;if(Xu(e)){const t=e;if(e=vs[t],!e)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&u.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&u[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&u[t].ruler2.enableOnly(e.components[t].rules2)}),this},re.prototype.enable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(e,!0))},this),t=t.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(r){return t.indexOf(r)<0});if(n.length&&!u)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},re.prototype.disable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(e,!0))},this),t=t.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(r){return t.indexOf(r)<0});if(n.length&&!u)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},re.prototype.use=function(e){const u=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,u),this},re.prototype.parse=function(e,u){if(typeof e!="string")throw new Error("Input data should be a String");const t=new this.core.State(e,this,u);return this.core.process(t),t.tokens},re.prototype.render=function(e,u){return u=u||{},this.renderer.render(this.parse(e,u),this.options,u)},re.prototype.parseInline=function(e,u){const t=new this.core.State(e,this,u);return t.inlineMode=!0,this.core.process(t),t.tokens},re.prototype.renderInline=function(e,u){return u=u||{},this.renderer.render(this.parseInline(e,u),this.options,u)};const Os=["innerHTML"],Ls=a.defineComponent({__name:"MarkdownRenderer",props:{source:{},options:{},plugins:{}},setup(e){const u=e,t=a.ref(new re({html:!0,...u.options??{}}));u.plugins&&u.plugins.forEach(o=>t.value.use(o));const n=a.computed(()=>t.value.render(u.source)),r=a.ref(null);return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"markdown-renderer",ref_key:"markdownContainer",ref:r,innerHTML:n.value},null,8,Os))}}),Ps={class:"q-chatbot__message-container"},Ms={class:"q-chatbot__message-wrapper"},zs={key:0,class:"q-chatbot__image-preview"},qs=["src","alt"],Us={class:"q-chatbot__message"},js={key:1,class:"q-chatbot__text"},Vs={class:"q-chatbot__dialog-title"},$s={key:1,class:"q-chatbot__feedback-buttons"},Gs={class:"q-chatbot__sender"},Hs=a.defineComponent({__name:"CBMessage",props:{sender:{default:"user"},message:{},date:{default:()=>new Date},loading:{type:Boolean},dateFormat:{},imagePreviewUrl:{},texts:{default:()=>({commentDialogTitle:"Would you like to add a comment?",commentPlaceholder:"Type your comment here (optional)...",goodResponse:"Good response",badResponse:"Bad response",copyResponse:"Copy response",submitButton:"Submit",cancelButton:"Cancel",senderImage:"Sender Image",imagePreview:"Image preview"})},apiEndpoint:{},sessionID:{},userImage:{default:void 0},chatbotImage:{},isWelcomeMessage:{type:Boolean}},setup(e){const u=e,t=a.ref(!1),n=a.ref(""),r=a.ref(null),o=[{id:"confirm-btn",action:h,props:{label:u.texts.submitButton,variant:"bold"},icon:{icon:"submit"}},{id:"cancel-btn",props:{label:u.texts.cancelButton},icon:{icon:"cancel"}}],i=a.computed(()=>u.sender==="bot"&&!Object.values(u.texts||{}).includes(u.message||"")&&!u.isWelcomeMessage),c=a.computed(()=>u.dateFormat?d(u.date,"HH:mm"):u.date.toLocaleString()),s=a.computed(()=>`${c.value}`),l=a.computed(()=>u.sender==="bot"?u.chatbotImage:u.userImage);function d(g,x){const C=g.getDate().toString().padStart(2,"0"),k=(g.getMonth()+1).toString().padStart(2,"0"),E=g.getFullYear().toString().padStart(2,"0"),A=g.getHours().toString().padStart(2,"0"),w=g.getMinutes().toString().padStart(2,"0"),F=g.getSeconds().toString().padStart(2,"0");return x.replace("dd",C).replace("MM",k).replace("yyyy",E).replace("HH",A).replace("mm",w).replace("ss",F)}function f(g){t.value=!0,n.value="",r.value=g}function h(){r.value!=null&&b(r.value,n.value)}function b(g,x){q.post(u.apiEndpoint+"/prompt/feedback",{messageSessionID:u.sessionID,feedbackValue:g,feedbackComment:x}).catch(C=>{console.error("Error sending message feedback: ",C)})}function p(){u.message&&navigator.clipboard.writeText(u.message).then(()=>{console.log("Message copied to clipboard")}).catch(g=>{console.error("Failed to copy message to clipboard: ",g)})}return(g,x)=>{const C=a.resolveComponent("q-button-group");return a.openBlock(),a.createElementBlock("div",Ps,[a.createVNode(a.unref(ne),{type:"img",icon:l.value,alt:u.texts.senderImage,class:"q-chatbot__profile"},null,8,["icon","alt"]),a.createElementVNode("div",Ms,[u.imagePreviewUrl&&u.imagePreviewUrl.length>0?(a.openBlock(),a.createElementBlock("div",zs,[a.createElementVNode("img",{src:u.imagePreviewUrl,alt:u.texts.imagePreview},null,8,qs)])):a.createCommentVNode("",!0),a.createElementVNode("div",Us,[g.loading?(a.openBlock(),a.createBlock(oa,{key:0})):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[u.sender==="bot"?(a.openBlock(),a.createBlock(Ls,{key:0,class:"q-chatbot__text",source:u.message||""},null,8,["source"])):(a.openBlock(),a.createElementBlock("div",js,a.toDisplayString(u.message),1))],64))]),a.createVNode(a.unref(yn),{id:"comment-dialog",modelValue:t.value,"onUpdate:modelValue":x[1]||(x[1]=k=>t.value=k),buttons:o},{"body.content":a.withCtx(()=>[a.createElementVNode("div",Vs,a.toDisplayString(u.texts.commentDialogTitle),1),a.createVNode(a.unref(D0),{modelValue:n.value,"onUpdate:modelValue":x[0]||(x[0]=k=>n.value=k),maxLength:150,size:"large",placeholder:u.texts.commentPlaceholder},null,8,["modelValue","placeholder"])]),_:1},8,["modelValue"]),i.value?(a.openBlock(),a.createElementBlock("div",$s,[a.createVNode(C,null,{default:a.withCtx(()=>[a.createVNode(a.unref(se),{title:u.texts.goodResponse,borderless:"",disabled:g.loading,onClick:x[2]||(x[2]=k=>f(1))},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"thumb-up"})]),_:1},8,["title","disabled"]),a.createVNode(a.unref(se),{title:u.texts.badResponse,borderless:"",disabled:g.loading,onClick:x[3]||(x[3]=k=>f(0))},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"thumb-down"})]),_:1},8,["title","disabled"]),a.createVNode(a.unref(se),{title:u.texts.copyResponse,borderless:"",disabled:g.loading,onClick:p},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"copy-content"})]),_:1},8,["title","disabled"])]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",Gs,a.toDisplayString(s.value),1)])])}}}),Z=[];for(let e=0;e<256;++e)Z.push((e+256).toString(16).slice(1));function Ws(e,u=0){return(Z[e[u+0]]+Z[e[u+1]]+Z[e[u+2]]+Z[e[u+3]]+"-"+Z[e[u+4]]+Z[e[u+5]]+"-"+Z[e[u+6]]+Z[e[u+7]]+"-"+Z[e[u+8]]+Z[e[u+9]]+"-"+Z[e[u+10]]+Z[e[u+11]]+Z[e[u+12]]+Z[e[u+13]]+Z[e[u+14]]+Z[e[u+15]]).toLowerCase()}let dt;const Zs=new Uint8Array(16);function Qs(){if(!dt){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");dt=crypto.getRandomValues.bind(crypto)}return dt(Zs)}const sr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Js(e,u,t){var r;if(sr.randomUUID&&!e)return sr.randomUUID();e=e||{};const n=e.random??((r=e.rng)==null?void 0:r.call(e))??Qs();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ws(n)}const Ys="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFIGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD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6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=",Ks={class:"q-chatbot"},el={class:"q-chatbot__content"},ul={class:"q-chatbot__tools"},tl={class:"q-chatbot__footer-container"},nl={class:"q-chatbot__input-wrapper"},rl={key:0,class:"q-chatbot__image-preview"},ol=["src"],il={class:"q-chatbot__input"},al={class:"q-chatbot__send-container"},cl=["accept"];return a.defineComponent({name:"ChatBot",__name:"ChatBot",props:{apiEndpoint:{default:"http://localhost:3000"},controllerEndpoint:{},texts:{default:()=>({chatbotTitle:"ChatBot",sendMessage:"Send message",clearChat:"Clear chat",inputLabel:"What can I help with?",imageUpload:"Upload Image",imageUploadQButton:"Upload Image",goodResponse:"Good response",badResponse:"Bad response",initialMessage:"Howdy! I am GenioBot 👋, Quidgest's personal AI assistant! How can I help you?",initialAgentMessage:"Just a temporary message while we are working on the agent mode",loginError:"Uh oh, I could not authenticate with the Quidgest API endpoint 😓",botIsSick:"*cough cough* GenioBot is not feeling alright 🥴️🤒, looks like something failed!"})},username:{},projectPath:{},userImage:{default:Xs},chatbotImage:{default:Ys},dateFormat:{},mode:{default:"chat"}},setup(e){const u=a.ref([]),t=a.ref(1),n=a.ref(""),r=a.ref(!1),o=a.ref(!1),i=a.ref(null),c=a.ref(!0),s=a.ref(null),l=a.ref(null),d=a.computed(()=>".png, .jpeg, .jpg, .svg, .webp"),f=a.ref(!1),h=a.ref(!1),b=a.computed(()=>n.value.trim().length===0||r.value||o.value),p=e;a.onMounted(()=>{k(),a.nextTick(()=>{var D;(D=i.value)==null||D.addEventListener("scroll",V)})});const g=a.computed(()=>o.value||r.value),x=a.computed(()=>({"q-chatbot__footer-disabled":g.value,"drag-over":h.value&&!f.value}));function C(D){o.value=D}async function k(){try{await q.post(p.apiEndpoint+"/auth/login",{username:p.username,password:"test"}),E()}catch(D){C(!0),A(p.texts.loginError),console.log("Error logging in: "+D)}}async function E(){try{const D=await q.post(p.apiEndpoint+"/prompt/load",{username:p.username,project:p.projectPath});if(!D)return console.error("No response from server");if(D.status!==200||!D.data.success){C(!0),A(p.texts.botIsSick),console.log(`Unsuccessful load, endpoint gave status ${D.status}`);return}F(),D.data.history.forEach(N=>{const L=N.imageUrl?p.controllerEndpoint+N.imageUrl:void 0;A(N.content,N.type==="ai"?"bot":"user",L,N.sessionID)})}catch(D){C(!0),A(p.texts.botIsSick),console.log("Error loading: "+D)}}function A(D,N="bot",L=null,te,H){u.value.push({id:t.value++,message:D,date:new Date,sender:N,imagePreviewUrl:L??void 0,sessionID:te||Js(),isWelcomeMessage:H??!1}),a.nextTick(()=>{c.value&&U()})}function w(){return u.value.find(D=>D.id===t.value-1)}function F(){const D=p.mode==="chat"?p.texts.initialMessage:p.texts.initialAgentMessage;A(D,"bot",null,void 0,!0)}function T(){u.value=[],n.value="",r.value=!1,C(!1),c.value=!0}function U(){a.nextTick(()=>{i.value&&(i.value.scrollTop=i.value.scrollHeight)})}function V(){if(i.value){const{scrollTop:N,clientHeight:L,scrollHeight:te}=i.value;N+L>=te-20?c.value=!0:c.value=!1}}function J(){l.value="",s.value&&(s.value.value=""),f.value=!1}function y(){var D;(D=s.value)==null||D.click()}function _(D){const N=D.target;s.value=N,N.files&&N.files[0]&&(l.value=URL.createObjectURL(N.files[0]),f.value=!0)}function S(){var D,N;n.value.trim().length===0||r.value||o.value||(i.value&&i.value.scrollTo({top:i.value.scrollHeight,behavior:"smooth"}),A(n.value,"user",l.value),O(n.value,(N=(D=s.value)==null?void 0:D.files)==null?void 0:N[0]),J(),n.value="")}async function O(D,N){A("","bot");let L=w();const te=(L==null?void 0:L.sessionID)||"",H=new FormData;N&&H.append("image",N),H.append("message",D),H.append("project",p.projectPath),H.append("user",p.username),H.append("sessionID",te),r.value=!0;try{const ae=await q.post(p.apiEndpoint+"/prompt/submit",H,{headers:{"Content-Type":"text/event-stream",Accept:"text/event-stream"},responseType:"stream",adapter:"fetch"});if(!ae)return console.error("No response from server");const Ce=ae.data.getReader(),ft=new TextDecoder("utf-8");for(;;){const{done:B,value:he}=await Ce.read();if(B)break;const Cu=ft.decode(he,{stream:!0}).match(/data:\s*({.*?})/g);if(Cu){for(const sl of Cu)try{const pt=sl.split("data:")[1].trim(),ll=JSON.parse(pt);L&&(L.message+=ll.value)}catch(pt){console.error("Error parsing match:",pt)}c.value&&U()}}r.value=!1}catch(ae){C(!0),A(p.texts.botIsSick),console.log("Error setting chat prompt: "+ae);return}}function v(){q.post(p.apiEndpoint+"/prompt/clear",{username:p.username,project:p.projectPath}).then(D=>{if(D.status!==200||!D.data.success){C(!0),A(p.texts.loginError),console.log(`Unsuccessful clear, endpoint gave status ${D.status}`);return}T(),F()}).catch(D=>{C(!0),A(p.texts.loginError),console.log("Error clearing chat: "+D)})}function P(D){const N=["q-chatbot__messages-wrapper"];return D==="user"&&N.push("q-chatbot__messages-wrapper_right"),N}function I(D){D.preventDefault(),g.value||(h.value=!0)}function j(D){D.preventDefault(),h.value=!1}function M(D){var L;if(D.preventDefault(),h.value=!1,g.value||f.value)return;const N=(L=D.dataTransfer)==null?void 0:L.files;if(N&&N.length>0){const te=N[0];if(te.type.startsWith("image/")&&s.value){const H=new DataTransfer;H.items.add(te),s.value.files=H.files,l.value=URL.createObjectURL(te),f.value=!0}}}return a.watch(()=>p.apiEndpoint,()=>{T(),k()}),(D,N)=>(a.openBlock(),a.createElementBlock("div",Ks,[a.createElementVNode("div",el,[a.createElementVNode("div",ul,[a.createVNode(a.unref(se),{title:p.texts.clearChat,disabled:o.value,borderless:"",onClick:v},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"bin"})]),_:1},8,["title","disabled"])]),a.createElementVNode("div",{ref_key:"messagesContainer",ref:i,class:"q-chatbot__messages-container",onScroll:V},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,L=>(a.openBlock(),a.createElementBlock("div",{key:L.id,class:a.normalizeClass(P(L.sender))},[a.createVNode(a.unref(Hs),a.mergeProps({ref_for:!0},L,{"date-format":p.dateFormat,"user-image":p.userImage,"chatbot-image":p.chatbotImage,loading:r.value&&!L.message,imagePreviewUrl:L.imagePreviewUrl,apiEndpoint:p.apiEndpoint,sessionID:L.sessionID}),null,16,["date-format","user-image","chatbot-image","loading","imagePreviewUrl","apiEndpoint","sessionID"])],2))),128))],544)]),a.createElementVNode("div",tl,[a.createVNode(a.unref(tn),{label:p.texts.inputLabel},null,8,["label"]),a.createElementVNode("div",{class:a.normalizeClass(["q-chatbot__footer",x.value]),onDragover:a.withModifiers(I,["prevent"]),onDragleave:a.withModifiers(j,["prevent"]),onDrop:a.withModifiers(M,["prevent"])},[a.createElementVNode("div",nl,[l.value?(a.openBlock(),a.createElementBlock("div",rl,[a.createElementVNode("img",{src:l.value,tabindex:"0",alt:"Image preview"},null,8,ol),a.createVNode(a.unref(se),{class:"q-chatbot__remove-image",tabindex:"0",flat:"",round:"",onClick:J},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"bin"})]),_:1})])):a.createCommentVNode("",!0),a.createElementVNode("div",il,[a.createVNode(a.unref(na),{modelValue:n.value,"onUpdate:modelValue":N[0]||(N[0]=L=>n.value=L),size:"block",autosize:"",resize:"none",rows:2,disabled:g.value,onKeyup:a.withKeys(S,["enter"])},null,8,["modelValue","disabled"])])]),a.createElementVNode("div",al,[a.createVNode(a.unref(se),{title:p.texts.imageUpload,class:"q-chatbot__upload",disabled:o.value||r.value||f.value,onClick:y},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"upload"})]),_:1},8,["title","disabled"]),a.createElementVNode("input",{id:"image-upload",type:"file",ref_key:"imageInput",ref:s,onChange:_,accept:d.value,class:"hidden-input",style:{display:"none"}},null,40,cl),a.createVNode(a.unref(se),{title:p.texts.sendMessage,variant:"bold",class:"q-chatbot__send",disabled:b.value,readonly:b.value,loading:r.value,onClick:S},{default:a.withCtx(()=>[a.createVNode(a.unref(ne),{icon:"send"})]),_:1},8,["title","disabled","readonly","loading"])])],34)])]))}})});
45
+ `;return t.onMounted(()=>{document.body.setAttribute(Q,(a()+1).toString());const l=In(n.gapMode);o.add(r(l,!n.noRelative,n.gapMode,n.noImportant?"":"!important"))}),t.onUnmounted(()=>{const l=a()-1;l<=0?document.body.removeAttribute(Q):document.body.setAttribute(Q,l.toString()),o.remove()}),(l,i)=>t.renderSlot(l.$slots,"default")}}));function Rn(e,n,o,a){const r=(a==null?void 0:a.offset)??0,l=(a==null?void 0:a.crossOffset)??0,i=(a==null?void 0:a.placement)??"bottom",s=e.getBoundingClientRect(),u=n.getBoundingClientRect(),f=o==null?void 0:o.getBoundingClientRect(),g=Tn(s,u,i,r),c=Un(s,u,g),m=Vn(c,g,r),y=Pn(m,g,l),x=Fn(y,u,g);let $;if(a!=null&&a.arrow){if(!f)throw new Error("[Quidgest UI] The arrow element must exist to compute its position");$=On(x,s,u,f,g)}return{overlayCoords:x,arrowCoords:$,placement:g}}function Tn(e,n,o,a){const r=ze(e,n,o,a);if(He(r)){const l=X(o),i={top:"bottom",bottom:"top",left:"right",right:"left"}[l],s=ze(e,n,i,a);if(He(s))return o;const u=Gn(o);return u?`${i}-${u}`:i}return o}function Fn(e,n,o){const a=pe(o),r=(i,s,u)=>Math.min(Math.max(i,s),u),l={...e};return a==="x"?l.x=r(e.x,8,window.innerWidth-n.width-8):l.y=r(e.y,8,window.innerHeight-n.height-8),l}function Vn(e,n,o){const a=X(n);return{x:e.x+(a==="left"?-o:a==="right"?o:0),y:e.y+(a==="top"?-o:a==="bottom"?o:0)}}function Pn(e,n,o){const a=X(n);return{x:e.x+(a==="top"||a==="bottom"?o:0),y:e.y+(a==="right"||a==="left"?o:0)}}function On(e,n,o,a,r){if(pe(r)==="y"){const l=n.top+n.height/2,i=e.y+o.height/2,s=i-l,u=o.height/2-s-a.height/2+2;if(u>0&&u<o.height-a.height)return{y:u}}else{const l=n.left+n.width/2,i=e.x+o.width/2,s=i-l,u=o.width/2-s-a.width/2+2;if(u>0&&u<o.width-a.width)return{x:u}}}function Un(e,n,o){const[a,r]=o.split("-"),l=e.x+e.width/2-n.width/2,i=e.y+e.height/2-n.height/2;let s;switch(a){case"top":s={x:l,y:e.y-n.height};break;case"bottom":s={x:l,y:e.y+e.height};break;case"left":s={x:e.x-n.width,y:i};break;case"right":s={x:e.x+e.width,y:i};break;default:throw new Error(`[Quidgest UI] Invalid placement value: ${o}`)}if(!r)return s;const u=pe(o)==="y"?"height":"width",f=pe(o),g=e[u]/2-n[u]/2;switch(r){case"start":s[f]-=g;break;case"end":s[f]+=g;break;default:throw new Error(`[Quidgest UI] Invalid alignment value: ${r}`)}return s}function ze(e,n,o,a){const r=X(o);let l=0;switch(r){case"top":l=e.top-(n.height+a);break;case"bottom":l=window.innerHeight-e.bottom-(n.height+a);break;case"left":l=e.left-(n.width+a);break;case"right":l=window.innerWidth-e.right-(n.width+a);break;default:throw new Error(`[Quidgest UI] Invalid side value: ${r}`)}return l}function qn(e){return e==="x"?"y":"x"}function jn(e){const n=X(e);return["left","right"].includes(n)?"x":"y"}function pe(e){return qn(jn(e))}function X(e){const[n]=e.split("-");return n}function Gn(e){const[,n]=e.split("-");return n}function He(e){return e<0}function zn(e){return typeof e=="string"?document.querySelector(e):e}const Hn=["id"],Zn=["role"],Jn=q(t.defineComponent({inheritAttrs:!1,__name:"QOverlay",props:t.mergeModels({id:{},class:{},anchor:{},appearance:{default:"regular"},arrow:{type:Boolean},attach:{default:"body"},inline:{type:Boolean},backdropBlur:{type:Boolean},backdropClass:{},delay:{default:500},nonModal:{type:Boolean},scrollLock:{type:Boolean},offset:{default:8},crossOffset:{default:0},persistent:{type:Boolean},placement:{default:"right"},spy:{type:Boolean},transition:{default:"fade"},trigger:{default:"click"},width:{default:"auto"},focusTrap:{type:Boolean},centerVertically:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:n}){const o=e,a=n,r=t.useModel(e,"modelValue"),{class:l}=$e(),i=t.computed(()=>["q-overlay",`q-overlay--${X(c.placement)}`,l.value,{"q-overlay--independent":s.value,"q-overlay--inverted":o.appearance==="inverted","q-overlay--center":o.centerVertically},o.class]),s=t.computed(()=>o.anchor===void 0),u=t.computed(()=>r.value&&!o.nonModal),f=t.computed(()=>(r.value||c.animating)&&o.scrollLock),g=t.computed(()=>!o.inline&&(r.value||c.animating)),c=t.reactive({animating:!1,top:0,left:0,width:0,placement:o.placement}),m=t.reactive({top:void 0,left:void 0,hidden:!0});t.watch(r,w);const y=t.computed(()=>{if(s.value)return;const v=B(),J=o.width==="anchor",j=J?v==null?void 0:v.getBoundingClientRect().width:void 0;return{top:`${c.top}px`,left:`${c.left}px`,width:j!==void 0?`${j}px`:void 0}}),x=t.computed(()=>{if(o.arrow)return{top:m.top!==void 0?`${m.top}px`:void 0,left:m.left!==void 0?`${m.left}px`:void 0,opacity:m.hidden?0:1}}),$=t.ref(null),S=t.ref(null),U=t.ref(null);function M(){const v=B();if(!v||!S.value)return;const J={placement:o.placement,width:o.width,offset:o.offset,crossOffset:o.crossOffset,arrow:o.arrow},j=Rn(v,S.value,($==null?void 0:$.value)??void 0,J);c.left=j.overlayCoords.x,c.top=j.overlayCoords.y,c.placement=j.placement,m.hidden=j.arrowCoords===void 0,j.arrowCoords&&(m.top=j.arrowCoords.y,m.left=j.arrowCoords.x)}t.watch(()=>o.placement,()=>t.nextTick(M));let F;function C(){k(0)}function I(){k(o.delay)}function k(v){F&&V(),F=window.setTimeout(()=>{r.value=!0},v)}function N(){if(F&&V(),r.value=!1,o.anchor&&o.trigger==="click"){const v=B();t.nextTick(()=>v==null?void 0:v.focus())}}function V(){clearTimeout(F),F=void 0}function R(){t.nextTick(le),a("enter")}function O(){A()}function d(){a("leave")}function p(){A(),Yo()}function w(){c.animating=!0}function A(){c.animating=!1}function B(){return o.anchor?zn(o.anchor):null}function D(v){o.persistent&&v.preventDefault()}function _(v){var J;if(o.persistent){v.preventDefault();return}let j=!1;v.defaultPrevented||v.detail.originalEvent.type==="pointerdown"&&(j=!0);const Qo=v.detail.originalEvent.target;if((J=B())!=null&&J.contains(Qo)){v.preventDefault();return}v.detail.originalEvent.type==="focusin"&&j&&v.preventDefault()}function b(){N()}let h;function E(){const v=B();if(v)switch(h=new MutationObserver(M),h.observe(v,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),o.trigger){case"click":v.addEventListener("click",C);break;case"hover":v.addEventListener("mouseenter",I),v.addEventListener("mouseleave",N),v.addEventListener("focusin",C),v.addEventListener("focusout",N);break}}function T(){const v=B();if(v)switch(h==null||h.disconnect(),o.trigger){case"click":v.removeEventListener("click",C);break;case"hover":v.removeEventListener("mouseenter",I),v.removeEventListener("mouseleave",N),v.removeEventListener("focusin",C),v.removeEventListener("focusout",N);break}}function L(){window.addEventListener("resize",M),o.scrollLock||window.addEventListener("scroll",M)}function Z(){window.removeEventListener("resize",M),o.scrollLock||window.removeEventListener("scroll",M)}let K;function ee(){B()?(M(),K=window.setTimeout(ee,100)):N()}function le(){var v;s.value||(L(),o.spy?ee():M()),(s.value||o.trigger==="click")&&((v=S.value)==null||v.focus())}function Yo(){s.value||Z(),o.spy&&(clearTimeout(K),K=void 0)}return t.onMounted(()=>{t.nextTick(E)}),t.onBeforeUnmount(T),(v,J)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{disabled:!g.value,to:o.attach},[t.createVNode(t.Transition,{name:"fade",appear:""},{default:t.withCtx(()=>[u.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([o.backdropClass,"q-overlay__underlay",{"q-overlay__underlay--blur":o.backdropBlur}])},null,2)):t.createCommentVNode("v-if",!0)]),_:1}),t.createVNode(t.Transition,{name:o.transition,appear:"",onEnter:R,onAfterEnter:O,onLeave:d,onAfterLeave:p},{default:t.withCtx(()=>[r.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:o.id,ref_key:"overlayContainerRef",ref:U,tabindex:"-1",class:t.normalizeClass(i.value),style:t.normalizeStyle(y.value)},[t.createVNode(t.unref(jt),{onDismiss:b,onInteractOutside:_,onPointerDownOutside:D},{default:t.withCtx(()=>[U.value?(t.openBlock(),t.createBlock(t.unref(Cn),{key:0,disabled:o.nonModal||!r.value,options:{fallbackFocus:U.value}},{default:t.withCtx(()=>[t.createElementVNode("div",t.mergeProps({ref_key:"overlayRef",ref:S,class:"q-overlay__content",tabindex:"-1",role:u.value?"dialog":void 0},v.$attrs),[o.arrow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"arrowRef",ref:$,role:"presentation",class:"q-overlay__arrow",style:t.normalizeStyle(x.value)},null,4)):t.createCommentVNode("v-if",!0),t.renderSlot(v.$slots,"default")],16,Zn)]),_:3},8,["disabled","options"])):t.createCommentVNode("v-if",!0)]),_:3})],14,Hn)):t.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"])),f.value?(t.openBlock(),t.createBlock(t.unref(Mn),{key:0})):t.createCommentVNode("v-if",!0)],64))}})),Wn=[{id:"button",icon:{icon:"check"},props:{variant:"bold",label:"Ok"}}],Yn={icon:"check-circle-outline"},Qn={close:{icon:"close"}},Xn={key:0,class:"q-dialog__header"},Kn={class:"q-dialog__header-title"},eo={key:1,class:"q-dialog__body"},to={key:0,class:"q-dialog__body-icon"},no={class:"q-dialog__body-text"},oo=["innerHTML"],ao={key:1},ro={key:2,class:"q-dialog__footer"},lo={class:"q-dialog__footer-buttons"},io=t.defineComponent({__name:"QDialog",props:t.mergeModels({id:{},class:{},title:{},text:{},icon:{default:()=>Yn},buttons:{default:()=>Wn},attach:{default:"body"},inline:{type:Boolean},backdropBlur:{type:Boolean,default:!0},dismissible:{type:Boolean},html:{type:Boolean,default:!0},icons:{default:()=>Qn},size:{default:"small"},centerVertically:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:t.mergeModels(["enter","leave"],["update:modelValue"]),setup(e,{emit:n}){const o=e,a=n,r=t.useModel(e,"modelValue"),l=t.computed(()=>["q-dialog",o.class]),i=t.computed(()=>`q-overlay--${o.size}`);function s(){r.value=!1}function u(c){var m;(m=c.action)==null||m.call(c),s()}function f(){a("enter")}function g(){a("leave")}return(c,m)=>(t.openBlock(),t.createBlock(t.unref(Jn),{id:o.id,modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=y=>r.value=y),"backdrop-class":"q-dialog__underlay","scroll-lock":"",persistent:"",inline:o.inline,attach:o.attach,"backdrop-blur":o.backdropBlur,"center-vertically":o.centerVertically,class:t.normalizeClass(i.value),onEnter:f,onLeave:g},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(l.value)},[o.title||c.$slots.header?(t.openBlock(),t.createElementBlock("div",Xn,[t.renderSlot(c.$slots,"header",{},()=>[t.createElementVNode("span",Kn,t.toDisplayString(o.title),1)])])):t.createCommentVNode("v-if",!0),o.icon||o.text||c.$slots.body?(t.openBlock(),t.createElementBlock("div",eo,[t.renderSlot(c.$slots,"body",{},()=>[t.renderSlot(c.$slots,"body.icon",{},()=>[o.icon?(t.openBlock(),t.createElementBlock("span",to,[t.createVNode(t.unref(ne),t.normalizeProps(t.guardReactiveProps(o.icon)),null,16)])):t.createCommentVNode("v-if",!0)]),t.createElementVNode("div",no,[o.html?(t.openBlock(),t.createElementBlock("div",{key:0,innerHTML:o.text},null,8,oo)):(t.openBlock(),t.createElementBlock("div",ao,t.toDisplayString(o.text),1))]),t.renderSlot(c.$slots,"body.append")])])):t.createCommentVNode("v-if",!0),o.buttons||c.$slots.footer?(t.openBlock(),t.createElementBlock("div",ro,[t.renderSlot(c.$slots,"footer",{},()=>[t.createElementVNode("span",lo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,y=>(t.openBlock(),t.createBlock(t.unref(ye),t.mergeProps({ref_for:!0},y.props,{key:y.id,onClick:()=>u(y)}),{default:t.withCtx(()=>[y.icon?(t.openBlock(),t.createBlock(t.unref(ne),t.mergeProps({key:0,ref_for:!0},y.icon),null,16)):t.createCommentVNode("v-if",!0)]),_:2},1040,["onClick"]))),128))])])])):t.createCommentVNode("v-if",!0),o.dismissible?(t.openBlock(),t.createBlock(t.unref(ye),{key:3,class:"q-dialog__close",variant:"text",onClick:s},{default:t.withCtx(()=>[t.createVNode(t.unref(ne),t.normalizeProps(t.guardReactiveProps(o.icons.close)),null,16)]),_:1})):t.createCommentVNode("v-if",!0)],2)]),_:3},8,["id","modelValue","inline","attach","backdrop-blur","center-vertically","class"]))}}),fe=t.reactive({dialogs:[]});function so(){function e(o,a){const r=Mt(a);return fe.dialogs.push({id:r,props:o}),r}function n(o){const a=fe.dialogs.findIndex(r=>r.id===o);a!==-1&&fe.dialogs.splice(a,1)}return{...fe,addDialog:e,removeDialog:n}}const co=t.defineComponent({inheritAttrs:!1,__name:"QDialogProvider",setup(e){const{dialogs:n,removeDialog:o}=so();return(a,r)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n),l=>(t.openBlock(),t.createBlock(t.unref(Ze),t.mergeProps({key:l.id,ref_for:!0},l.props,{"model-value":"",onLeave:()=>t.unref(o)(l.id)}),null,16,["onLeave"]))),128))}}),Ze=q(io);q(co);function H(){return{copy:"Copy",apply:"Apply",applyAll:"Apply all",chatbotTitle:"ChatBot",sendMessage:"Send message",clearChat:"Clear chat",inputLabel:"What can I help with?",imageUpload:"Upload Image",imageUploadQButton:"Upload Image",goodResponse:"Good response",badResponse:"Bad response",initialMessage:"Howdy! I am GenioBot 👋, Quidgest's personal AI assistant! How can I help you?",initialAgentMessage:"Just a temporary message while we are working on the agent mode",loginError:"Uh oh, I could not authenticate with the Quidgest API endpoint 😓",botIsSick:"*cough cough* GenioBot is not feeling alright 🥴️🤒, looks like something failed!",commentDialogTitle:"Would you like to add a comment?",commentPlaceholder:"Type your comment here (optional)...",copyResponse:"Copy response",submitButton:"Submit",cancelButton:"Cancel",senderImage:"Sender Image",imagePreview:"Image preview",regenerateResponse:"Regenerate response",generatingResponse:"Generating"}}async function Je(e,n){var u,f,g,c,m,y;const o=new AbortController,a=o.signal,l=(await W({...e,headers:{Accept:"text/event-stream"},responseType:"stream",signal:a,adapter:"fetch"})).data;if(!l||!(l instanceof ReadableStream))throw new Error("Invalid stream response");const i=l.getReader(),s=new TextDecoder;for(;;){const{done:x,value:$}=await i.read();if(x){(u=n.onDone)==null||u.call(n);break}const U=s.decode($,{stream:!0}).split(/\n\n+/);for(const M of U){const F=M.trim().split(`
46
+ `);let C="",I="";for(const k of F)k.startsWith("event:")?C=k.replace("event:","").trim():k.startsWith("data:")&&(I=k.replace("data:","").trim());if(C||(C="message"),!!I)try{const k=JSON.parse(I);switch(C){case"message":(f=n.onMessage)==null||f.call(n,k.value);break;case"error":(g=n.onError)==null||g.call(n,new Error(k.value));break;case"field_metadata":(c=n.onFieldMetadata)==null||c.call(n,k);break;case"done":(m=n.onDone)==null||m.call(n);break;default:console.warn(`Unknown event type: ${C}`)}}catch(k){(y=n.onError)==null||y.call(n,k),console.error("Error processing event:",k);continue}finally{x&&(i.releaseLock(),o.abort())}}}}function We(e){const n=t.ref(!1),o=t.ref(null);async function a(f){n.value=!0,o.value=null;try{return{data:(await W({...f,baseURL:e})).data,error:null}}catch(g){return o.value=g,console.error("Error in API request:",g),{data:null,error:g}}finally{n.value=!1}}async function r(f,g,c,m){return await a({method:"POST",url:"/prompt/load",data:{username:f,project:g,agentID:c,formId:m}})}async function l(f,g,c,m){return await a({method:"POST",url:"/prompt/clear",data:{username:f,project:g,agentID:c,formId:m}})}async function i(f,g,c){return n.value=!0,await Je({method:"POST",url:`${e}/prompt/submit`,data:f},{onMessage:m=>{g(m)},onError:m=>{o.value=m,c==null||c(m),console.error("Error in sendPrompt:",m)},onDone:()=>n.value=!1})}async function s(f,g,c){return n.value=!0,await Je({method:"POST",url:`${e}/get-job-result`,data:{jobId:f}},{onMessage:m=>g(m),onFieldMetadata:m=>c(m),onError:m=>{o.value=m,console.error("Error in getFieldSuggestionData:",m)},onDone:()=>n.value=!1})}async function u(f,g,c){return await a({method:"POST",url:"/prompt/feedback",data:{messageSessionID:c,feedbackValue:f,feedbackComment:g}})}return{isLoading:n,lastError:o,getChatData:r,clearChatData:l,getFieldSuggestionData:s,sendPrompt:i,handleFeedback:u}}const uo=["innerHTML"],_e=t.defineComponent({__name:"MarkdownRender",props:{source:{},options:{},plugins:{}},setup(e){const n=e,o=t.ref(new et({html:!0,...n.options??{}}));n.plugins&&n.plugins.forEach(r=>o.value.use(r));const a=t.computed(()=>o.value.render(n.source));return(r,l)=>(t.openBlock(),t.createElementBlock("div",{class:"markdown-renderer",innerHTML:a.value},null,8,uo))}});function Ye(e,n){switch(e){case"date":return new Date(n).toLocaleDateString();case"number":return parseFloat(n);case"boolean":return n.toLowerCase()==="true";default:return n.toString()}}const po={class:"q-field-preview"},fo={class:"q-field-preview__toolbar"},mo={class:"q-field-preview__content"},go={class:"q-field-preview__footer"},bo=t.defineComponent({__name:"FieldPreview",props:{name:{},text:{},type:{},disabled:{type:Boolean},applied:{type:Boolean}},emits:["apply"],setup(e,{emit:n}){const o=H(),a=e,r=t.ref(a.applied),l=t.computed(()=>a.disabled||r.value),i=t.computed(()=>a.type==="text"||a.type==="multiline_text"?_e:"div"),s=t.computed(()=>{const g={};return i.value===_e?g.source=a.text:g.innerHTML=a.text,g}),u=n;function f(){if(r.value)return;r.value=!0;const g=Ye(a.type,a.text);u("apply",g)}return(g,c)=>(t.openBlock(),t.createElementBlock("div",po,[t.createElementVNode("div",fo,[t.createElementVNode("span",null,[c[0]||(c[0]=t.createTextVNode(" Suggestions for field: ")),t.createElementVNode("b",null,t.toDisplayString(a.name),1)])]),t.createElementVNode("div",mo,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(i.value),t.normalizeProps(t.guardReactiveProps(s.value)),null,16))]),t.createElementVNode("div",go,[t.createVNode(t.unref(Tt),{borderless:""},{default:t.withCtx(()=>[t.createVNode(t.unref(ye),{label:t.unref(o).apply,disabled:l.value,readonly:l.value,onClick:f},{default:t.withCtx(()=>[t.createVNode(t.unref(ne),{icon:"apply"})]),_:1},8,["label","disabled","readonly"])]),_:1})])]))}}),ho={class:"pulsing-dots"},yo={class:"generating-text"},wo={class:"dots-container"},vo=t.defineComponent({__name:"PulseDots",setup(e){const n=[1,2,3],o=H();return(a,r)=>(t.openBlock(),t.createElementBlock("div",ho,[t.createElementVNode("span",yo,t.toDisplayString(t.unref(o).generatingResponse),1),t.createElementVNode("div",wo,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,(l,i)=>t.createElementVNode("span",{key:i,class:"dot",style:t.normalizeStyle({animationDelay:i*.2+"s"})}," • ",4)),64))])]))}}),ko={class:"q-chatbot__message-container"},Bo={class:"q-chatbot__message-wrapper"},Eo={key:0,class:"q-chatbot__image-preview"},Co=["src","alt"],_o={class:"q-chatbot__message"},Ao={key:1,class:"q-chatbot__text"},No=t.defineComponent({__name:"ChatBotMessage",props:{sender:{default:"user"},message:{},date:{default:()=>new Date},loading:{type:Boolean},dateFormat:{},imagePreviewUrl:{},apiEndpoint:{},sessionID:{},userImage:{default:void 0},chatbotImage:{},isWelcomeMessage:{type:Boolean},fields:{default:()=>[]}},emits:["apply-fields"],setup(e,{emit:n}){const o=n,a=H(),r=e,{handleFeedback:l}=We(r.apiEndpoint),i=t.computed(()=>r.sender==="bot"&&!Object.values(a||{}).includes(r.message||"")&&!r.isWelcomeMessage),s=t.computed(()=>r.sender==="bot"?r.chatbotImage:r.userImage);function u(){r.message&&navigator.clipboard.writeText(r.message).then(()=>{console.log("Response copied to clipboard")}).catch(m=>{console.error("Failed to copy response: ",m)})}function f(m,y){o("apply-fields",[{name:y.name,text:m}])}function g(){if(!r.fields||r.fields.length===0)return;const m=r.fields.map(y=>({name:y.name,text:Ye(y.type,y.text)}));o("apply-fields",m)}function c(m,y){m===null||y===null||!r.sessionID||l(m,y,r.sessionID)}return(m,y)=>(t.openBlock(),t.createElementBlock("div",ko,[t.createVNode(t.unref(ne),{type:"img",icon:s.value,alt:t.unref(a).senderImage,class:"q-chatbot__profile"},null,8,["icon","alt"]),t.createElementVNode("div",Bo,[r.imagePreviewUrl&&r.imagePreviewUrl.length>0?(t.openBlock(),t.createElementBlock("div",Eo,[t.createElementVNode("img",{src:r.imagePreviewUrl,alt:t.unref(a).imagePreview},null,8,Co)])):t.createCommentVNode("",!0),t.createElementVNode("div",_o,[m.loading?(t.openBlock(),t.createBlock(vo,{key:0})):r.sender==="bot"&&r.fields.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(r.fields,(x,$)=>(t.openBlock(),t.createBlock(t.unref(bo),{class:"q-chatbot__text",key:$,text:x.text||"",name:x.name,type:x.type,disabled:m.loading,onApply:S=>f(S,x)},null,8,["text","name","type","disabled","onApply"]))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[r.sender==="bot"?(t.openBlock(),t.createBlock(t.unref(_e),{key:0,class:"q-chatbot__text",source:r.message||""},null,8,["source"])):(t.openBlock(),t.createElementBlock("div",Ao,t.toDisplayString(r.message),1))],64))])]),t.createVNode(t.unref(Mo),{showButtons:i.value,loading:r.loading,"date-format":r.dateFormat,onCopyResponse:u,onSubmitFeedback:c,onApplyAll:g},null,8,["showButtons","loading","date-format"])]))}}),P=[];for(let e=0;e<256;++e)P.push((e+256).toString(16).slice(1));function So(e,n=0){return(P[e[n+0]]+P[e[n+1]]+P[e[n+2]]+P[e[n+3]]+"-"+P[e[n+4]]+P[e[n+5]]+"-"+P[e[n+6]]+P[e[n+7]]+"-"+P[e[n+8]]+P[e[n+9]]+"-"+P[e[n+10]]+P[e[n+11]]+P[e[n+12]]+P[e[n+13]]+P[e[n+14]]+P[e[n+15]]).toLowerCase()}let Ae;const Io=new Uint8Array(16);function xo(){if(!Ae){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ae=crypto.getRandomValues.bind(crypto)}return Ae(Io)}const Qe={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(e,n,o){var r;if(Qe.randomUUID&&!e)return Qe.randomUUID();e=e||{};const a=e.random??((r=e.rng)==null?void 0:r.call(e))??xo();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,So(a)}const re=t.ref([]),me=t.ref(1);function Ke(){function e(r,l,i,s,u){const f={id:me.value++,message:r,date:new Date,sender:l||"bot",sessionID:s||Xe(),imagePreviewUrl:i||void 0,isWelcomeMessage:u,fields:[]};re.value.push(f)}function n(){return re.value.find(r=>r.id===me.value-1)}function o(){re.value=[],me.value=1}function a(){return re.value}return{messages:re,nextMessageId:me,addChatMessage:e,getLastMessage:n,clearMessages:o,getMessages:a}}const Do={class:"q-chatbot__dialog-title"},$o={key:0,class:"q-chatbot__feedback-buttons"},Lo={class:"q-chatbot__sender"},Mo=t.defineComponent({__name:"ChatBotMessageButtons",props:{loading:{type:Boolean},showButtons:{type:Boolean},dateFormat:{},date:{}},emits:["submit-feedback","copy-response","apply-all"],setup(e,{emit:n}){const o=H(),{getLastMessage:a}=Ke(),r=e,l=t.ref(!1),i=t.ref(""),s=t.ref(null),u=t.ref(!1),f=t.computed(()=>r.loading||u.value),g=r.date||new Date,c=n,m=a(),y=t.computed(()=>m?m.fields&&m.fields.length>1:!1),x=[{id:"confirm-btn",action:C,props:{label:o.submitButton},icon:{icon:"submit"}},{id:"cancel-btn",props:{label:o.cancelButton},icon:{icon:"cancel"}}],$=t.computed(()=>r.dateFormat?U(g,"HH:mm"):g.toLocaleString()),S=t.computed(()=>`${$.value}`);function U(k,N){const V=k.getDate().toString().padStart(2,"0"),R=(k.getMonth()+1).toString().padStart(2,"0"),O=k.getFullYear().toString().padStart(2,"0"),d=k.getHours().toString().padStart(2,"0"),p=k.getMinutes().toString().padStart(2,"0"),w=k.getSeconds().toString().padStart(2,"0");return N.replace("dd",V).replace("MM",R).replace("yyyy",O).replace("HH",d).replace("mm",p).replace("ss",w)}function M(k){l.value=!0,i.value="",s.value=k}function F(){u.value||(u.value=!0,c("apply-all"))}function C(){s.value!==null&&(c("submit-feedback",s.value,i.value),l.value=!1,i.value="",s.value=null)}function I(){c("copy-response")}return(k,N)=>{const V=t.resolveComponent("q-text-field"),R=t.resolveComponent("q-icon"),O=t.resolveComponent("q-button"),d=t.resolveComponent("q-button-group");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Ze),{modelValue:l.value,"onUpdate:modelValue":N[1]||(N[1]=p=>l.value=p),buttons:x},{body:t.withCtx(()=>[t.createElementVNode("div",Do,t.toDisplayString(t.unref(o).commentDialogTitle),1),t.createVNode(V,{modelValue:i.value,"onUpdate:modelValue":N[0]||(N[0]=p=>i.value=p),maxLength:150,size:"large",placeholder:t.unref(o).commentPlaceholder},null,8,["modelValue","placeholder"])]),_:1},8,["modelValue"]),k.showButtons?(t.openBlock(),t.createElementBlock("div",$o,[t.createVNode(d,null,{default:t.withCtx(()=>[t.createVNode(O,{title:t.unref(o).goodResponse,borderless:"",disabled:r.loading,onClick:N[2]||(N[2]=p=>M(1))},{default:t.withCtx(()=>[t.createVNode(R,{icon:"thumb-up"})]),_:1},8,["title","disabled"]),t.createVNode(O,{title:t.unref(o).badResponse,borderless:"",disabled:r.loading,onClick:N[3]||(N[3]=p=>M(0))},{default:t.withCtx(()=>[t.createVNode(R,{icon:"thumb-down"})]),_:1},8,["title","disabled"]),t.createVNode(O,{title:t.unref(o).copyResponse,borderless:"",disabled:r.loading,onClick:I},{default:t.withCtx(()=>[t.createVNode(R,{icon:"copy-content"})]),_:1},8,["title","disabled"]),y.value?(t.openBlock(),t.createBlock(O,{key:0,title:t.unref(o).applyAll,borderless:"",disabled:f.value,readonly:f.value,onClick:F},{default:t.withCtx(()=>[t.createVNode(R,{icon:"apply-all"})]),_:1},8,["title","disabled","readonly"])):t.createCommentVNode("",!0)]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",Lo,t.toDisplayString(S.value),1)],64)}}}),Ro={class:"q-chatbot__tools"},To={class:"q-chatbot__tools__select"},Fo=t.defineComponent({__name:"ChatToolBar",props:{disabled:{type:Boolean},availableAgents:{default:()=>[]},selectedAgentKey:{}},emits:["clear","change-chat"],setup(e,{emit:n}){const{clearChat:o}=H(),a={key:"",value:"Default Chat",formId:""},r=e,l=n,i=t.computed(()=>r.availableAgents&&r.availableAgents.length>0),s=t.ref(r.selectedAgentKey||a.key);t.watch(()=>r.selectedAgentKey,c=>{s.value=c||a.key});const u=t.computed(()=>{var m;const c=(m=r.availableAgents)==null?void 0:m.map(y=>({key:y.key,value:y.value,formId:y.formId}));return c==null||c.push(a),c||[a]});function f(){l("clear")}function g(c){const m=u.value.find(y=>y.key===c);if(m){if(m.key===a.key){l("change-chat",{key:"",formId:""});return}l("change-chat",m)}}return(c,m)=>{const y=t.resolveComponent("q-select"),x=t.resolveComponent("q-icon"),$=t.resolveComponent("q-button");return t.openBlock(),t.createElementBlock("div",Ro,[t.createElementVNode("div",To,[i.value?(t.openBlock(),t.createBlock(y,{key:0,modelValue:s.value,"onUpdate:modelValue":[m[0]||(m[0]=S=>s.value=S),g],size:"medium",items:u.value},null,8,["modelValue","items"])):t.createCommentVNode("",!0)]),t.createVNode($,{title:t.unref(o),disabled:r.disabled,borderless:"",onClick:f},{default:t.withCtx(()=>[t.createVNode(x,{icon:"bin"})]),_:1},8,["title","disabled"])])}}}),Vo={class:"q-chatbot__input-wrapper"},Po={key:0,class:"q-chatbot__image-preview"},Oo=["src"],Uo={class:"q-chatbot__input"},qo={class:"q-chatbot__send-container"},jo=["accept"],Go=t.defineComponent({__name:"ChatBotInput",props:{disabled:{type:Boolean},loading:{type:Boolean},userPrompt:{},agentId:{}},emits:["sendMessage"],setup(e,{emit:n}){const o=H(),a=e,r=t.ref(null),l=t.ref(""),i=t.computed(()=>".png, .jpeg, .jpg, .svg, .webp"),s=t.ref(!1),u=t.ref(!1),f=t.ref(a.userPrompt??""),g=n,c=t.computed(()=>a.disabled||a.loading||f.value.trim().length===0);function m(C){C.preventDefault(),a.disabled||(u.value=!0)}const y=t.computed(()=>({"q-chatbot__footer-disabled":a.disabled,"drag-over":u.value&&!s.value}));function x(C){C.preventDefault(),u.value=!1}function $(C){var N;if(C.preventDefault(),u.value=!1,a.disabled||s.value)return;const I=(N=C.dataTransfer)==null?void 0:N.files;if(!I)return;const k=I[0];if(k.type.startsWith("image/")){if(!r.value)return;const V=new DataTransfer;V.items.add(k),r.value.files=V.files,l.value=URL.createObjectURL(k),s.value=!0}}function S(){if(!(f.value.trim()===""||a.loading||a.disabled)){if(r.value&&r.value.files&&r.value.files.length>0){const I={file:r.value.files[0],previewUrl:l.value};g("sendMessage",f.value,I),U()}else g("sendMessage",f.value);f.value=""}}function U(){l.value="",r.value&&(r.value.value="",r.value.files=null),s.value=!1}function M(){var C;(C=r.value)==null||C.click()}function F(C){const I=C.target;r.value=I,I.files&&I.files[0]&&(l.value=URL.createObjectURL(I.files[0]),s.value=!0)}return(C,I)=>{const k=t.resolveComponent("q-icon"),N=t.resolveComponent("q-button"),V=t.resolveComponent("q-text-area");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.unref(Pt),{label:t.unref(o).inputLabel},null,8,["label"]),t.createElementVNode("div",{class:t.normalizeClass(["q-chatbot__footer",y.value]),onDragover:t.withModifiers(m,["prevent"]),onDragleave:t.withModifiers(x,["prevent"]),onDrop:t.withModifiers($,["prevent"])},[t.createElementVNode("div",Vo,[l.value?(t.openBlock(),t.createElementBlock("div",Po,[t.createElementVNode("img",{src:l.value,tabindex:"0",alt:"Image preview"},null,8,Oo),t.createVNode(N,{class:"q-chatbot__remove-image",tabindex:"0",flat:"",round:"",onClick:U},{default:t.withCtx(()=>[t.createVNode(k,{icon:"bin"})]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",Uo,[t.createVNode(V,{modelValue:f.value,"onUpdate:modelValue":I[0]||(I[0]=R=>f.value=R),size:"block",autosize:"",resize:"none",rows:2,disabled:a.disabled,onKeyup:t.withKeys(S,["enter"])},null,8,["modelValue","disabled"])])]),t.createElementVNode("div",qo,[t.createVNode(N,{title:t.unref(o).imageUpload,class:"q-chatbot__upload",disabled:a.disabled||a.loading||s.value,onClick:M},{default:t.withCtx(()=>[t.createVNode(k,{icon:"upload"})]),_:1},8,["title","disabled"]),t.createElementVNode("input",{id:"image-upload",type:"file",ref_key:"imageInput",ref:r,onChange:F,accept:i.value,class:"hidden-input"},null,40,jo),t.createVNode(N,{title:t.unref(o).sendMessage,variant:"bold",class:"q-chatbot__send",disabled:c.value,readonly:c.value,onClick:S},{default:t.withCtx(()=>[t.createVNode(k,{icon:"send"})]),_:1},8,["title","disabled","readonly"])])],34)],64)}}}),zo="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20126.25%20110.36'%3e%3cdefs%3e%3cradialGradient%20id='radial-gradient'%20cx='45.24'%20cy='38.05'%20fx='45.24'%20fy='38.05'%20r='59.09'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%2331319e'/%3e%3cstop%20offset='.19'%20stop-color='%232e2e97'/%3e%3cstop%20offset='.45'%20stop-color='%23292985'/%3e%3cstop%20offset='.75'%20stop-color='%23202067'/%3e%3cstop%20offset='1'%20stop-color='%2317174a'/%3e%3c/radialGradient%3e%3clinearGradient%20id='linear-gradient'%20x1='82.65'%20y1='50.41'%20x2='82.65'%20y2='77.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.02'%20stop-color='%2366ebfe'/%3e%3cstop%20offset='.96'%20stop-color='%2300bfdb'/%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='44.6'%20y1='50.01'%20x2='44.6'%20y2='77.1'%20xlink:href='%23linear-gradient'/%3e%3c/defs%3e%3cg%20isolation='isolate'%3e%3cg%20id='Layer_1'%3e%3cpath%20d='M126.2,61.4c-.2-3.69-2.61-17.39-5.92-22.09-2.42-3.44-5.89-4.03-7.96-4.38-.13-.02-.27-.05-.41-.07-.16-.28-.32-.58-.45-.81-.63-1.14-1.03-1.87-1.44-2.44-6.96-9.88-14.91-16.51-24.85-20.69-.25-2.29-.84-5.24-3.37-7.44-2.93-2.55-7.58-2.9-11.68-3.21-.93-.07-1.82-.14-2.4-.22l-.33-.05h-8.61l-.36.05c-.65.1-1.61.17-2.63.24-3.75.27-8.01.57-10.98,2.85-2.94,2.26-3.58,5.55-3.79,7.84-9.71,3.94-17.86,10.71-24.85,20.62-.4.57-.81,1.3-1.43,2.44-.13.23-.29.53-.45.81-.14.02-.28.05-.4.07-2.07.35-5.54.94-7.96,4.39-2.25,3.19-3.84,9.89-4.58,13.59-.6,2.97-1.9,10.3-1.08,14.26.79,3.78,3.66,5.6,5.37,6.68.12.08.26.16.39.25,1.65,10.03,6.98,18.56,15.52,24.77,9.23,6.72,20.2,9.43,27.78,10.52,4.49.65,9.15.97,13.85.97,9.67,0,23.77-1.39,36-8.02,11.58-6.27,18.81-16,21.04-28.24,4.52-2.76,6.36-5.67,5.98-12.71Z'%20fill='%2317174a'/%3e%3cpath%20d='M67.15,4.69c2.98.42,9.31.31,11.62,2.31,1.99,1.73,1.65,4.82,2.06,7.22,10.77,3.89,18.73,10.59,25.39,20.04.64.91,2.13,3.95,2.58,4.33,1.71,1.46,5.54.35,7.67,3.37,2.29,3.25,4.83,15.41,5.06,19.59.31,5.82-.76,6.9-5.58,9.44-3.28,26.16-29.7,34.5-52.68,34.5-4.6,0-9.06-.33-13.17-.93-18.13-2.61-37.11-12.11-39.51-33.08-1.7-1.92-4.96-2.54-5.55-5.39-.95-4.56,2.21-20.32,4.89-24.14,2.13-3.02,5.96-1.91,7.67-3.37.46-.39,1.94-3.42,2.58-4.33,6.54-9.28,14.55-16.22,25.21-19.87.85-.87-.3-5.45,2.43-7.55,2.52-1.94,8.35-1.69,11.42-2.16h7.91'%20fill='%23fff'/%3e%3cpath%20d='M121.86,61.51c-.22-4.2-2.78-16.43-5.07-19.7-1.77-2.51-4.71-2.18-6.64-2.83.1,1.18.16,2.37.16,3.57,0,26.85-25.96,48.61-57.98,48.61-15.83,0-30.17-5.32-40.63-13.94,4.91,17.1,22.06,25.14,38.51,27.52,4.12.59,8.6.93,13.21.93,23.06,0,49.57-8.38,52.85-34.68,4.83-2.56,5.91-3.63,5.6-9.49Z'%20fill='%23d0d7e2'%20mix-blend-mode='multiply'%20opacity='.4'/%3e%3cpath%20d='M62.91,97.68c5.82,0,11.67-.53,16.72-1.56,13.1-2.67,22.09-8.06,26.72-16.03,4.43-7.63,4.75-17.33.96-28.84-4.28-13-13.22-22.77-24.7-27.89-.13,4.51-3.84,8.16-8.38,8.16h-20.89c-4.61,0-8.39-3.78-8.39-8.39v-.14c-5.36,2.25-10.29,5.49-14.5,9.61-8.23,8.06-13.16,19.02-13.9,30.84-.59,9.44,2.67,17.53,9.43,23.42,6.27,5.46,15.68,9.02,27.2,10.3,3.13.35,6.43.52,9.73.52'%20fill='url(%23radial-gradient)'/%3e%3crect%20x='74.34'%20y='50.41'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient)'/%3e%3crect%20x='36.29'%20y='50.01'%20width='16.62'%20height='27.09'%20rx='4.06'%20ry='4.06'%20fill='url(%23linear-gradient-2)'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ho="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF2GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4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2+bVfdDwHP1qH7mev5X0CklziW8WhfTgO8G9VDVHXAHo0w0i44wa0PkzMh+ApirpHi3Rn3/AnAUuuDySUA2xK/fYBaV99XS/k5Ev/w+6IPetTo6+TraP74MnZHnFWClkuK/Zfbv8+j6UYcaR8xh6JOAB9eovwIYH0VoU2QP5F3P7wxMRj9BiarSSzuwCvjA/L3VtdrFvPYE9ie6qqYb0Omgfh3VKcvIIy5czz8YfQbnFJpLbegDeZGmjqxbSI3r+ScCtwL9GhzsS+jQ1tn1aLxuNRvMBR8OTCD4MZk4SJprO6JecOs6govcn88GfggcEXOwz5uZaboN2Qysi3p0Pf8Y40A4lfgUY96IduzcoaR4xqaOWRvW6nr+3sZJcg4wxNJuLjSOl2lKirU2djAWccvGkX+6cTYcE+G2pti26xnjZJkZhwcisQtMN6kCW4Ch5jUYyNSoufeMU2IBOtxmnpJiQ5zs1RAnD0xS837orHIHAb2MAyODDgzcs8j9fKNxgKwzIFehE8G9gT6fu1RJsSrutvk/GdqIAV0smzEAAAAASUVORK5CYII=",Zo={class:"q-chatbot"},Jo={class:"q-chatbot__content"},Wo={class:"q-chatbot__footer-container"};return t.defineComponent({name:"ChatBot",__name:"ChatBot",props:{apiEndpoint:{default:"http://localhost:3000"},controllerEndpoint:{},username:{},projectPath:{},userImage:{default:Ho},chatbotImage:{default:zo},dateFormat:{},agentData:{default:()=>({id:"",formId:"",jobId:""})},availableAgents:{default:()=>[]}},emits:["apply-fields"],setup(e,{emit:n}){const o=n,a=e,r=t.ref(!0),l=t.ref(null),i=t.ref(!0),s=t.ref(a.agentData.id),u=t.ref(a.agentData.formId),f=H(),{isLoading:g,clearChatData:c,getChatData:m,getFieldSuggestionData:y,sendPrompt:x}=We(a.apiEndpoint),{messages:$,addChatMessage:S,clearMessages:U,getLastMessage:M}=Ke(),F=t.computed(()=>r.value||g.value);t.onBeforeMount(()=>{var b;(b=l.value)==null||b.removeEventListener("scroll",O)}),t.onMounted(()=>{I()});function C(b){r.value=b}async function I(){try{await k()}catch(b){S(f.loginError),console.error("Error logging in: "+b)}}async function k(){C(!0);const{data:b,error:h}=await m(a.username,a.projectPath,s.value,u.value);if(h||!b||!b.success){C(!0),S(f.botIsSick),console.log("Error loading chat data: "+h);return}C(!1),N(),b.history.forEach(async E=>{const T=E.imageUrl?a.controllerEndpoint+E.imageUrl:void 0;S(E.content,E.type==="ai"?"bot":"user",T,E.sessionID)})}function N(){const b=f.initialMessage;S(b,"bot",null,void 0,!0)}function V(){U(),C(!1),i.value=!0}function R(){t.nextTick(()=>{l.value&&(l.value.scrollTop=l.value.scrollHeight)})}function O(){if(l.value){const{scrollTop:h,clientHeight:E,scrollHeight:T}=l.value;i.value=h+E>=T-20}}async function d(b,h){l.value&&l.value.scrollTo({top:l.value.scrollHeight,behavior:"smooth"}),S(b,"user",h==null?void 0:h.previewUrl),t.nextTick(()=>{i.value&&R()}),w(b,h==null?void 0:h.file)}async function p(b){l.value&&l.value.scrollTo({top:l.value.scrollHeight,behavior:"smooth"}),S("","bot"),t.nextTick(()=>{i.value&&R()});const h=M();h&&await y(b,E=>{h.message+=E,h.fields||(h.fields=[]);const T=h.fields[h.fields.length-1];T.text=h.message,i.value&&R()},E=>{var L;h.message="";const T=E;(L=h.fields)==null||L.push({type:T.type,name:T.name,text:T.text})})}async function w(b,h){S("","bot");const E=M();if(!E)return;const T=(E==null?void 0:E.sessionID)||Xe(),L=new FormData;h&&L.append("image",h),L.append("message",b),L.append("project",a.projectPath),L.append("user",a.username),L.append("sessionID",T),await x(L,Z=>{E&&(E.message+=Z),i.value&&R()},Z=>{C(!0),S(f.botIsSick),console.error("Error sending message: "+Z)})}async function A(){const{data:b,error:h}=await c(a.username,a.projectPath,s.value,u.value);if(h||!b||!b.success){C(!0),S(f.loginError),console.log("Error clearing chat: "+h);return}V(),N()}function B(b){const h=["q-chatbot__messages-wrapper"];return b==="user"&&h.push("q-chatbot__messages-wrapper_right"),h}function D(b){s.value=b.key,u.value=b.formId,V(),k()}function _(b){!b||b.length===0||o("apply-fields",b)}return t.watch(()=>a.availableAgents,(b,h)=>{b.length===0&&h.length>0&&(s.value="",u.value="",V(),I())}),t.watch(()=>a.agentData,async(b,h)=>{var E;F.value||(((E=a.agentData)==null?void 0:E.id)!==(h==null?void 0:h.id)&&(s.value=(b==null?void 0:b.id)||"",u.value=(b==null?void 0:b.formId)||"",V(),await I()),(b==null?void 0:b.id)!==""&&b&&b.jobId!==h.jobId&&await p(b.jobId))}),t.watch(()=>[a.agentData.id,a.agentData.formId],([b,h])=>{s.value=b,u.value=h},{immediate:!0}),(b,h)=>(t.openBlock(),t.createElementBlock("div",Zo,[t.createElementVNode("div",Jo,[t.createVNode(t.unref(Fo),{disabled:F.value,"available-agents":a.availableAgents,"selected-agent-key":s.value,onClear:A,onChangeChat:D},null,8,["disabled","available-agents","selected-agent-key"]),t.createElementVNode("div",{ref_key:"messagesContainer",ref:l,class:"q-chatbot__messages-container",onScroll:O},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref($),E=>(t.openBlock(),t.createElementBlock("div",{key:E.id,class:t.normalizeClass(B(E.sender))},[t.createVNode(t.unref(No),t.mergeProps({ref_for:!0},E,{"date-format":a.dateFormat,"user-image":a.userImage,"chatbot-image":a.chatbotImage,loading:t.unref(g)&&!E.message,imagePreviewUrl:E.imagePreviewUrl,apiEndpoint:a.apiEndpoint,sessionID:E.sessionID,fields:E.fields,onApplyFields:_}),null,16,["date-format","user-image","chatbot-image","loading","imagePreviewUrl","apiEndpoint","sessionID","fields"])],2))),128))],544)]),t.createElementVNode("div",Wo,[t.createVNode(t.unref(Go),{disabled:F.value,loading:t.unref(g),onSendMessage:d},null,8,["disabled","loading"])])]))}})});