@botpress/webchat 2.2.14 → 2.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +5 -5
- package/dist/index.js +0 -1
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/webchat@2.2.
|
|
2
|
+
> @botpress/webchat@2.2.15 build /home/runner/work/echo/echo/packages/webchat-frontend
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v4.4.11 [32mbuilding for production...[36m[39m
|
|
@@ -16,9 +16,9 @@ rendering chunks...
|
|
|
16
16
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
17
17
|
computing gzip size...
|
|
18
18
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.90 kB[22m[1m[22m[2m │ gzip: 5.59 kB[22m
|
|
19
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m1,030.
|
|
20
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
19
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m1,030.84 kB[39m[22m[2m │ gzip: 271.51 kB[22m
|
|
20
|
+
[32m[36m[vite:dts][32m Declaration files built in 15150ms.
|
|
21
21
|
[39m
|
|
22
22
|
[2mdist/[22m[35mstyle.css [39m[1m[2m 28.90 kB[22m[1m[22m[2m │ gzip: 5.59 kB[22m
|
|
23
|
-
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m703.
|
|
24
|
-
[32m✓ built in
|
|
23
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[33m703.26 kB[39m[22m[2m │ gzip: 224.96 kB[22m
|
|
24
|
+
[32m✓ built in 24.91s[39m
|
package/dist/index.js
CHANGED
|
@@ -14160,7 +14160,6 @@ const mt = {
|
|
|
14160
14160
|
ul: ({ node: r, ...o }) => /* @__PURE__ */ D.jsx("ul", { ...o, ...t == null ? void 0 : t.unorderedList }),
|
|
14161
14161
|
li: ({ node: r, ...o }) => /* @__PURE__ */ D.jsx("li", { ...o, ...t == null ? void 0 : t.listItem }),
|
|
14162
14162
|
br: ({ node: r, ...o }) => /* @__PURE__ */ D.jsx("br", { ...o, ...t == null ? void 0 : t.lineBreak }),
|
|
14163
|
-
img: () => null,
|
|
14164
14163
|
pre: ({ node: r, ...o }) => /* @__PURE__ */ D.jsx("pre", { ...o, ...t == null ? void 0 : t.pre })
|
|
14165
14164
|
};
|
|
14166
14165
|
return /* @__PURE__ */ D.jsx(BN, { components: n, remarkPlugins: [QD, GN], children: e });
|
package/dist/index.umd.cjs
CHANGED
|
@@ -51,7 +51,7 @@ Check the top-level render call using <`+ye+">.")}return ne}}function Dt(A,ne){{
|
|
|
51
51
|
`))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),c=n.enter("phrasing");i.move(a+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
52
52
|
`,...i.current()});return/^[\t ]/.test(l)&&(l="&#x"+l.charCodeAt(0).toString(16).toUpperCase()+";"+l.slice(1)),l=l?a+" "+l:a,n.options.closeAtx&&(l+=" "+a),c(),s(),l}C0.peek=h2;function C0(e){return e.value||""}function h2(){return"<"}T0.peek=m2;function T0(e,t,n,r){const o=_d(n),i=o==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const c=n.createTracker(r);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),l+=c.move(" "+o),l+=c.move(n.safe(e.title,{before:l,after:o,...c.current()})),l+=c.move(o),s()),l+=c.move(")"),a(),l}function m2(){return"!"}O0.peek=y2;function O0(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return a(),n.stack=u,i(),o==="full"||!l||l!==f?c+=s.move(f+"]"):o==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function y2(){return"!"}A0.peek=v2;function A0(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const a=n.unsafe[i],s=n.compilePattern(a);let c;if(a.atBreak)for(;c=s.exec(r);){let l=c.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(c.index+1)}}return o+r+o}function v2(){return"`"}function P0(e,t){const n=Jf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}I0.peek=g2;function I0(e,t,n,r){const o=_d(n),i=o==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,c;if(P0(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let f=a.move("<");return f+=a.move(n.containerPhrasing(e,{before:f,after:">",...a.current()})),f+=a.move(">"),s(),n.stack=u,f}s=n.enter("link"),c=n.enter("label");let l=a.move("[");return l+=a.move(n.containerPhrasing(e,{before:l,after:"](",...a.current()})),l+=a.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=a.move("<"),l+=a.move(n.safe(e.url,{before:l,after:">",...a.current()})),l+=a.move(">")):(c=n.enter("destinationRaw"),l+=a.move(n.safe(e.url,{before:l,after:e.title?" ":")",...a.current()}))),c(),e.title&&(c=n.enter(`title${i}`),l+=a.move(" "+o),l+=a.move(n.safe(e.title,{before:l,after:o,...a.current()})),l+=a.move(o),c()),l+=a.move(")"),s(),l}function g2(e,t,n){return P0(e,n)?"<":"["}R0.peek=b2;function R0(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return a(),n.stack=u,i(),o==="full"||!l||l!==f?c+=s.move(f+"]"):o==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function b2(){return"["}function $d(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function w2(e){const t=$d(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function x2(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function M0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function S2(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?x2(n):$d(n);const s=e.ordered?a==="."?")":".":w2(n);let c=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),M0(n)===a&&u){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(a=s),n.bulletCurrent=a;const l=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),l}function E2(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function _2(e,t,n,r){const o=E2(n);let i=n.bulletCurrent||$d(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let a=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(f,p,d){return p?(d?"":" ".repeat(a))+f:(d?i:i+" ".repeat(a-i.length))+f}}function $2(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a}const k2=Oc(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function C2(e,t,n,r){return(e.children.some(function(a){return k2(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function T2(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}N0.peek=O2;function N0(e,t,n,r){const o=T2(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o);return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()})),s+=a.move(o+o),i(),s}function O2(e,t,n){return n.options.strong||"*"}function A2(e,t,n,r){return n.safe(e.value,r)}function P2(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function I2(e,t,n){const r=(M0(n)+(n.options.ruleSpaces?" ":"")).repeat(P2(n));return n.options.ruleSpaces?r.slice(0,-1):r}const D0={blockquote:t2,break:$0,code:s2,definition:l2,emphasis:k0,hardBreak:$0,heading:p2,html:C0,image:T0,imageReference:O0,inlineCode:A0,link:I0,linkReference:R0,list:S2,listItem:_2,paragraph:$2,root:C2,strong:N0,text:A2,thematicBreak:I2};function R2(){return{enter:{table:M2,tableData:j0,tableHeader:j0,tableRow:D2},exit:{codeText:j2,table:N2,tableData:kd,tableHeader:kd,tableRow:kd}}}function M2(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function N2(e){this.exit(e),this.data.inTable=void 0}function D2(e){this.enter({type:"tableRow",children:[]},e)}function kd(e){this.exit(e)}function j0(e){this.enter({type:"tableCell",children:[]},e)}function j2(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,F2));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function F2(e,t){return t==="|"?t:e}function L2(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
53
53
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:c,tableRow:s}};function a(d,h,m,v){return l(u(d,m,v),d.align)}function s(d,h,m,v){const y=f(d,m,v),g=l([y]);return g.slice(0,g.indexOf(`
|
|
54
|
-
`))}function c(d,h,m,v){const y=m.enter("tableCell"),g=m.enter("phrasing"),b=m.containerPhrasing(d,{...v,before:i,after:i});return g(),y(),b}function l(d,h){return XN(d,{align:h,alignDelimiters:r,padding:n,stringLength:o})}function u(d,h,m){const v=d.children;let y=-1;const g=[],b=h.enter("table");for(;++y<v.length;)g[y]=f(v[y],h,m);return b(),g}function f(d,h,m){const v=d.children;let y=-1;const g=[],b=h.enter("tableRow");for(;++y<v.length;)g[y]=c(v[y],d,h,m);return b(),g}function p(d,h,m){let v=D0.inlineCode(d,h,m);return m.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function B2(){return{exit:{taskListCheckValueChecked:F0,taskListCheckValueUnchecked:F0,paragraph:z2}}}function U2(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:q2}}}function F0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function z2(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,a;for(;++i<o.length;){const s=o[i];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function q2(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let c=D0.listItem(e,t,n,{...r,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(u){return u+a}}function H2(){return[xN(),RN(),KN(),R2(),B2()]}function W2(e){return{extensions:[SN(),MN(),GN(),L2(e),U2()]}}const V2={tokenize:X2,partial:!0},L0={tokenize:Q2,partial:!0},B0={tokenize:eD,partial:!0},U0={tokenize:tD,partial:!0},K2={tokenize:nD,partial:!0},z0={tokenize:Y2,previous:H0},q0={tokenize:J2,previous:W0},Pr={tokenize:Z2,previous:V0},lr={};function G2(){return{text:lr}}let Fo=48;for(;Fo<123;)lr[Fo]=Pr,Fo++,Fo===58?Fo=65:Fo===91&&(Fo=97);lr[43]=Pr,lr[45]=Pr,lr[46]=Pr,lr[95]=Pr,lr[72]=[Pr,q0],lr[104]=[Pr,q0],lr[87]=[Pr,z0],lr[119]=[Pr,z0];function Z2(e,t,n){const r=this;let o,i;return a;function a(f){return!Cd(f)||!V0.call(r,r.previous)||Td(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Cd(f)?(e.consume(f),s):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(K2,u,l)(f):f===45||f===95||Xt(f)?(i=!0,e.consume(f),c):u(f)}function l(f){return e.consume(f),o=!0,c}function u(f){return i&&o&&cn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Y2(e,t,n){const r=this;return o;function o(a){return a!==87&&a!==119||!H0.call(r,r.previous)||Td(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(V2,e.attempt(L0,e.attempt(B0,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function J2(e,t,n){const r=this;let o="",i=!1;return a;function a(f){return(f===72||f===104)&&W0.call(r,r.previous)&&!Td(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(cn(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),i?l:(i=!0,c)):n(f)}function l(f){return f===null||gc(f)||st(f)||jo(f)||bc(f)?n(f):e.attempt(L0,e.attempt(B0,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function X2(e,t,n){let r=0;return o;function o(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),o):a===46&&r===3?(e.consume(a),i):n(a)}function i(a){return a===null?n(a):t(a)}}function Q2(e,t,n){let r,o,i;return a;function a(l){return l===46||l===95?e.check(U0,c,s)(l):l===null||st(l)||jo(l)||l!==45&&bc(l)?c(l):(i=!0,e.consume(l),a)}function s(l){return l===95?r=!0:(o=r,r=void 0),e.consume(l),a}function c(l){return o||r||!i?n(l):t(l)}}function eD(e,t){let n=0,r=0;return o;function o(a){return a===40?(n++,e.consume(a),o):a===41&&r<n?i(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(U0,t,i)(a):a===null||st(a)||jo(a)?t(a):(e.consume(a),o)}function i(a){return a===41&&r++,e.consume(a),o}}function tD(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),o):s===60||s===null||st(s)||jo(s)?t(s):n(s)}function o(s){return s===null||s===40||s===91||st(s)||jo(s)?t(s):r(s)}function i(s){return cn(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):cn(s)?(e.consume(s),a):n(s)}}function nD(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return Xt(i)?n(i):t(i)}}function H0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||st(e)}function W0(e){return!cn(e)}function V0(e){return!(e===47||Cd(e))}function Cd(e){return e===43||e===45||e===46||e===95||Xt(e)}function Td(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rD={tokenize:fD,partial:!0};function oD(){return{document:{91:{tokenize:cD,continuation:{tokenize:lD},exit:uD}},text:{91:{tokenize:sD},93:{add:"after",tokenize:iD,resolveTo:aD}}}}function iD(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const c=r.events[o][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!a||!a._balanced)return n(c);const l=Wn(r.sliceSerialize({start:a.end,end:r.now()}));return l.codePointAt(0)!==94||!i.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function aD(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function sD(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,a;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(i>999||f===93&&!a||f===null||f===91||st(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return o.includes(Wn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return st(f)||(a=!0),i++,e.consume(f),f===92?u:l}function u(f){return f===91||f===92||f===93?(e.consume(f),i++,l):l(f)}}function cD(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0,s;return c;function c(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(a>999||h===93&&!s||h===null||h===91||st(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return i=Wn(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return st(h)||(s=!0),a++,e.consume(h),h===92?f:u}function f(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o.includes(i)||o.push(i),We(e,d,"gfmFootnoteDefinitionWhitespace")):n(h)}function d(h){return t(h)}}function lD(e,t,n){return e.check(ja,t,e.attempt(rD,t,n))}function uD(e){e.exit("gfmFootnoteDefinition")}function fD(e,t,n){const r=this;return We(e,o,"gfmFootnoteDefinitionIndent",4+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(i):n(i)}}function dD(e){let n=(e||{}).singleTilde;const r={tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(a,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let l=c;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[c][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[c][1].end)},f={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[c][1].start)},p=[["enter",u,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",f,s]],d=s.parser.constructs.insideSpan.null;d&&Sn(p,p.length,0,xc(d,a.slice(l+1,c),s)),Sn(p,p.length,0,[["exit",f,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",u,s]]),Sn(a,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function i(a,s,c){const l=this.previous,u=this.events;let f=0;return p;function p(h){return l===126&&u[u.length-1][1].type!=="characterEscape"?c(h):(a.enter("strikethroughSequenceTemporary"),d(h))}function d(h){const m=wc(l);if(h===126)return f>1?c(h):(a.consume(h),f++,d);if(f<2&&!n)return c(h);const v=a.exit("strikethroughSequenceTemporary"),y=wc(h);return v._open=!y||y===2&&!!m,v._close=!m||m===2&&!!y,s(h)}}}class pD{constructor(){this.map=[]}add(t,n,r){hD(this,t,n,r)}consume(t){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let o=r.pop();for(;o;)t.push(...o),o=r.pop();this.map.length=0}}function hD(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function mD(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function yD(){return{flow:{null:{tokenize:vD,resolveAll:gD}}}}function vD(e,t,n){const r=this;let o=0,i=0,a;return s;function s(T){let R=r.events.length-1;for(;R>-1;){const z=r.events[R][1].type;if(z==="lineEnding"||z==="linePrefix")R--;else break}const H=R>-1?r.events[R][1].type:null,L=H==="tableHead"||H==="tableRow"?$:c;return L===$&&r.parser.lazy[r.now().line]?n(T):L(T)}function c(T){return e.enter("tableHead"),e.enter("tableRow"),l(T)}function l(T){return T===124||(a=!0,i+=1),u(T)}function u(T){return T===null?n(T):$e(T)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),d):n(T):Le(T)?We(e,u,"whitespace")(T):(i+=1,a&&(a=!1,o+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),f(T)))}function f(T){return T===null||T===124||st(T)?(e.exit("data"),u(T)):(e.consume(T),T===92?p:f)}function p(T){return T===92||T===124?(e.consume(T),f):f(T)}function d(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),a=!1,Le(T)?We(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):h(T))}function h(T){return T===45||T===58?v(T):T===124?(a=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),m):S(T)}function m(T){return Le(T)?We(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),y):T===45?(i+=1,y(T)):T===null||$e(T)?k(T):S(T)}function y(T){return T===45?(e.enter("tableDelimiterFiller"),g(T)):S(T)}function g(T){return T===45?(e.consume(T),g):T===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(T))}function b(T){return Le(T)?We(e,k,"whitespace")(T):k(T)}function k(T){return T===124?h(T):T===null||$e(T)?!a||o!==i?S(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):S(T)}function S(T){return n(T)}function $(T){return e.enter("tableRow"),C(T)}function C(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),C):T===null||$e(T)?(e.exit("tableRow"),t(T)):Le(T)?We(e,C,"whitespace")(T):(e.enter("data"),P(T))}function P(T){return T===null||T===124||st(T)?(e.exit("data"),C(T)):(e.consume(T),T===92?F:P)}function F(T){return T===92||T===124?(e.consume(T),P):P(T)}}function gD(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],a=[0,0,0,0],s=!1,c=0,l,u,f;const p=new pD;for(;++n<e.length;){const d=e[n],h=d[1];d[0]==="enter"?h.type==="tableHead"?(s=!1,c!==0&&(K0(p,t,c,l,u),u=void 0,c=0),l={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",l,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])),o=h.type==="tableDelimiterRow"?2:u?3:1):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(i[1]!==0&&(a[0]=a[1],f=Rc(p,t,i,o,void 0,f),i=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(a[0]=a[1],f=Rc(p,t,i,o,void 0,f)),i=a,a=[i[1],n,0,0])):h.type==="tableHead"?(s=!0,c=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(c=n,i[1]!==0?(a[0]=a[1],f=Rc(p,t,i,o,n,f)):a[1]!==0&&(f=Rc(p,t,a,o,n,f)),o=0):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&K0(p,t,c,l,u),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=mD(t.events,n))}return e}function Rc(e,t,n,r,o,i){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},yi(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=yi(t.events,n[1]);if(i={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const l=yi(t.events,n[2]),u=yi(t.events,n[3]),f={type:s,start:Object.assign({},l),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},yi(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function K0(e,t,n,r,o){const i=[],a=yi(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function yi(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bD={tokenize:xD};function wD(){return{text:{91:bD}}}function xD(e,t,n){const r=this;return o;function o(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return st(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Le(c)?e.check({tokenize:SD},t,n)(c):n(c)}}function SD(e,t,n){return We(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function ED(e){return Sb([G2(),oD(),dD(e),yD(),wD()])}const _D={};function $D(e){const t=this,n=e||_D,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(ED(n)),i.push(H2()),a.push(W2(n))}const ct={container:{className:"bpContainer"},modal:{container:{className:"bpModalContainer"},overlay:{className:"bpModalOverlay"},dialog:{container:{className:"bpModalDialogContainer"},title:{container:{className:"bpModalDialogTitleContainer"},text:{className:"bpModalDialogTitleText"},closeIcon:{className:"bpModalDialogTitleCloseIcon"}},content:{className:"bpModalDialogContent"},newConversation:{button:{className:"bpModalDialogNewConversationButton"},text:{className:"bpModalDialogNewConversationText"}}}},fab:{container:{className:"bpFabContainer"},icon:{className:"bpFabIcon"}},notification:{container:{className:"bpNotificationContainer"},title:{className:"bpNotificationTitle"},description:{className:"bpNotificationDescription"},icon:{className:"bpNotificationIcon"},closeIcon:{className:"bpNotificationCloseIcon"}},header:{container:{className:"bpHeaderContainer"},content:{container:{className:"bpHeaderContentContainer"},title:{className:"bpHeaderContentTitle"},description:{className:"bpHeaderContentDescription"},avatar:{container:{className:"bpHeaderContentAvatarContainer"},image:{className:"bpHeaderContentAvatarImage"},fallback:{className:"bpHeaderContentAvatarFallback"}},actions:{container:{className:"bpHeaderContentActionsContainer"},icons:{className:"bpHeaderContentActionsIcons"}}},expandedContent:{container:{className:"bpHeaderExpandedContentContainer"},descriptionItems:{container:{className:"bpHeaderExpandedContentDescriptionItemsContainer"},icon:{className:"bpHeaderExpandedContentDescriptionItemsIcon"},text:{className:"bpHeaderExpandedContentDescriptionItemsText"},link:{className:"bpHeaderExpandedContentDescriptionItemsLink"}},group:{className:"bpHeaderExpandedContentGroup"}},newConversationIcon:{className:"bpHeaderNewConversationIcon"}},composer:{container:{className:"bpComposerContainer"},poweredBy:{className:"bpComposerPoweredBy"},input:{className:"bpComposerInput"},button:{container:{className:"bpComposerButtonContainer"},icon:{className:"bpComposerButtonIcon"}},uploadButton:{icon:{className:"bpComposerUploadButtonIcon"},container:{className:"bpComposerUploadButtonContainer"}}},messageList:{scrollbar:{container:{className:"bpMessageListScrollbarContainer"},viewport:{className:"bpMessageListScrollbarViewport"},background:{className:"bpMessageListScrollbarBackground"},thumb:{className:"bpMessageListScrollbarThumb"},corner:{className:"bpMessageListScrollbarCorner"}},scrollDownButton:{container:{className:"bpMessageListScrollDownButtonContainer"},button:{className:"bpMessageListScrollDownButtonButton"},icon:{className:"bpMessageListScrollDownButtonIcon"}},container:{className:"bpMessageListContainer"},viewPort:{className:"bpMessageListViewport"},marquee:{container:{className:"bpMessageListMarqueeContainer"},content:{className:"bpMessageListMarqueeContent"},title:{className:"bpMessageListMarqueeTitle"},description:{className:"bpMessageListMarqueeDescription"},avatar:{container:{className:"bpMessageListMarqueeAvatarContainer"},image:{className:"bpMessageListMarqueeAvatarImage"},fallback:{className:"bpMessageListMarqueeAvatarFallback"}}}},message:{container:{className:"bpMessageContainer"},avatar:{container:{className:"bpMessageAvatarContainer"},image:{className:"bpMessageAvatarImage"},fallback:{className:"bpMessageAvatarFallback"}},blocks:{text:{heading1:{className:"bpMessageBlocksTextHeading1"},heading2:{className:"bpMessageBlocksTextHeading2"},heading3:{className:"bpMessageBlocksTextHeading3"},unorderedList:{className:"bpMessageBlocksTextUnorderedList"},orderedList:{className:"bpMessageBlocksTextOrderedList"},link:{className:"bpMessageBlocksTextLink"},italic:{className:"bpMessageBlocksTextItalic"},bold:{className:"bpMessageBlocksTextBold"},text:{className:"bpMessageBlocksTextText"},horizontalRule:{className:"bpMessageBlocksTextHorizontalRule"},listItem:{className:"bpMessageBlocksTextListItem"},lineBreak:{className:"bpMessageBlocksTextLineBreak"},pre:{className:"bpMessageBlocksTextPre"}},audio:{className:"bpMessageBlocksAudio"},image:{image:{className:"bpMessageBlocksImageImage"},placeholder:{className:"bpMessageBlocksImagePlaceholder"}},video:{className:"bpMessageBlocksVideo"},location:{container:{className:"bpMessageBlocksLocationContainer"},title:{className:"bpMessageBlocksLocationTitle"},icon:{className:"bpMessageBlocksLocationIcon"}},file:{container:{className:"bpMessageBlocksFileContainer"},title:{className:"bpMessageBlocksFileTitle"},icon:{className:"bpMessageBlocksFileIcon"}},row:{className:"bpMessageBlocksRow"},column:{className:"bpMessageBlocksColumn"},bubble:{className:"bpMessageBlocksBubble"},carousel:{container:{className:"bpMessageBlocksCarouselContainer"},slidesContainer:{className:"bpMessageBlocksCarouselSlidesContainer"},backButton:{className:"bpMessageBlocksCarouselBackButton"},nextButton:{className:"bpMessageBlocksCarouselNextButton"}},dropdown:{button:{container:{className:"bpMessageBlocksDropdownButtonContainer"},text:{className:"bpMessageBlocksDropdownButtonText"},icon:{className:"bpMessageBlocksDropdownButtonIcon"}},content:{container:{className:"bpMessageBlocksDropdownContentContainer"},item:{className:"bpMessageBlocksDropdownContentItem"}}},button:{className:"bpMessageBlocksButton"}}},typingIndicator:{container:{className:"bpTypingIndicatorContainer"},loader:{className:"bpTypingIndicatorLoader"}}},kD=({text:e})=>{const{message:{blocks:{text:t}}}=ct,n={h1:({node:r,...o})=>j.jsx("h1",{...o,...t==null?void 0:t.heading1}),h2:({node:r,...o})=>j.jsx("h2",{...o,...t==null?void 0:t.heading2}),h3:({node:r,...o})=>j.jsx("h3",{...o,...t==null?void 0:t.heading3}),h4:"h3",h5:"h3",h6:"h3",em:({node:r,...o})=>j.jsx("em",{...o,...t==null?void 0:t.italic}),strong:({node:r,...o})=>j.jsx("strong",{...o,...t==null?void 0:t.bold}),p:({node:r,...o})=>j.jsx("p",{...o,...t==null?void 0:t.text}),hr:({node:r,...o})=>j.jsx("hr",{...o,...t==null?void 0:t.horizontalRule}),a:({node:r,...o})=>j.jsx("a",{...o,...t==null?void 0:t.link,target:"_blank"}),ol:({node:r,...o})=>j.jsx("ol",{...o,...t==null?void 0:t.orderedList}),ul:({node:r,...o})=>j.jsx("ul",{...o,...t==null?void 0:t.unorderedList}),li:({node:r,...o})=>j.jsx("li",{...o,...t==null?void 0:t.listItem}),br:({node:r,...o})=>j.jsx("br",{...o,...t==null?void 0:t.lineBreak}),img:()=>null,pre:({node:r,...o})=>j.jsx("pre",{...o,...t==null?void 0:t.pre})};return j.jsx(dN,{components:n,remarkPlugins:[$D,wN],children:e})};var G0={},Od={},Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});var Mc={},CD=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.Emitter=void 0;let TD=class{constructor(){this.listeners={}}on(t,n,r=!1){const o=this.listeners[t];o?r?o.unshift(n):o.push(n):this.listeners[t]=[n]}emit(t,n){return CD(this,void 0,void 0,function*(){const r=this.listeners[t];if(r!=null&&r.length){for(const o of r)yield o(n);return!0}else return!1})}};Mc.Emitter=TD;var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});var J0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HealthEventType=void 0,function(t){t.Create="create",t.Configure="configure",t.Start="start",t.StartFailure="start-failure",t.Initialize="initialize",t.InitializeFailure="initialize-failure",t.Sleep="sleep",t.Delete="delete"}(e.HealthEventType||(e.HealthEventType={}))})(J0);var X0={};Object.defineProperty(X0,"__esModule",{value:!0});var Q0={};Object.defineProperty(Q0,"__esModule",{value:!0});var ew={};Object.defineProperty(ew,"__esModule",{value:!0});var tw={};Object.defineProperty(tw,"__esModule",{value:!0}),function(e){var t=Se&&Se.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=Se&&Se.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Z0,e),n(Mc,e),n(Y0,e),n(J0,e),n(X0,e),n(Q0,e),n(ew,e),n(tw,e)}(Od);var Nc={},nw={},Ad={exports:{}},Dc={},Pd={},jc={},Ua={},vi={},Lo={},gi={},bi={},ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.ERROR_PACKET=ur.PACKET_TYPES_REVERSE=ur.PACKET_TYPES=void 0;const fr=Object.create(null);ur.PACKET_TYPES=fr,fr.open="0",fr.close="1",fr.ping="2",fr.pong="3",fr.message="4",fr.upgrade="5",fr.noop="6";const rw=Object.create(null);ur.PACKET_TYPES_REVERSE=rw,Object.keys(fr).forEach(e=>{rw[fr[e]]=e});const OD={type:"error",data:"parser error"};ur.ERROR_PACKET=OD,Object.defineProperty(bi,"__esModule",{value:!0}),bi.encodePacket=bi.encodePacketToBinary=void 0;const AD=ur,ow=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iw=typeof ArrayBuffer=="function",aw=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,sw=({type:e,data:t},n,r)=>ow&&t instanceof Blob?n?r(t):cw(t,r):iw&&(t instanceof ArrayBuffer||aw(t))?n?r(t):cw(new Blob([t]),r):r(AD.PACKET_TYPES[e]+(t||""));bi.encodePacket=sw;const cw=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function lw(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Id;function PD(e,t){if(ow&&e.data instanceof Blob)return e.data.arrayBuffer().then(lw).then(t);if(iw&&(e.data instanceof ArrayBuffer||aw(e.data)))return t(lw(e.data));sw(e,!1,n=>{Id||(Id=new TextEncoder),t(Id.encode(n))})}bi.encodePacketToBinary=PD;var Fc={},wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.decode=wi.encode=void 0;const xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",za=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<xi.length;e++)za[xi.charCodeAt(e)]=e;const ID=e=>{let t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=xi[t[n]>>2],o+=xi[(t[n]&3)<<4|t[n+1]>>4],o+=xi[(t[n+1]&15)<<2|t[n+2]>>6],o+=xi[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};wi.encode=ID;const RD=e=>{let t=e.length*.75,n=e.length,r,o=0,i,a,s,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)i=za[e.charCodeAt(r)],a=za[e.charCodeAt(r+1)],s=za[e.charCodeAt(r+2)],c=za[e.charCodeAt(r+3)],u[o++]=i<<2|a>>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|c&63;return l};wi.decode=RD,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.decodePacket=void 0;const Lc=ur,MD=wi,ND=typeof ArrayBuffer=="function",DD=(e,t)=>{if(typeof e!="string")return{type:"message",data:uw(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:jD(e.substring(1),t)}:Lc.PACKET_TYPES_REVERSE[n]?e.length>1?{type:Lc.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:Lc.PACKET_TYPES_REVERSE[n]}:Lc.ERROR_PACKET};Fc.decodePacket=DD;const jD=(e,t)=>{if(ND){const n=(0,MD.decode)(e);return uw(n,t)}else return{base64:!0,data:e}},uw=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=bi;Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=Fc;Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=ur,o=String.fromCharCode(30),i=(p,d)=>{const h=p.length,m=new Array(h);let v=0;p.forEach((y,g)=>{(0,t.encodePacket)(y,!1,b=>{m[g]=b,++v===h&&d(m.join(o))})})};e.encodePayload=i;const a=(p,d)=>{const h=p.split(o),m=[];for(let v=0;v<h.length;v++){const y=(0,n.decodePacket)(h[v],d);if(m.push(y),y.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(p,d){(0,t.encodePacketToBinary)(p,h=>{const m=h.length;let v;if(m<126)v=new Uint8Array(1),new DataView(v.buffer).setUint8(0,m);else if(m<65536){v=new Uint8Array(3);const y=new DataView(v.buffer);y.setUint8(0,126),y.setUint16(1,m)}else{v=new Uint8Array(9);const y=new DataView(v.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(m))}p.data&&typeof p.data!="string"&&(v[0]|=128),d.enqueue(v),d.enqueue(h)})}})}e.createPacketEncoderStream=s;let c;function l(p){return p.reduce((d,h)=>d+h.length,0)}function u(p,d){if(p[0].length===d)return p.shift();const h=new Uint8Array(d);let m=0;for(let v=0;v<d;v++)h[v]=p[0][m++],m===p[0].length&&(p.shift(),m=0);return p.length&&m<p[0].length&&(p[0]=p[0].slice(m)),h}function f(p,d){c||(c=new TextDecoder);const h=[];let m=0,v=-1,y=!1;return new TransformStream({transform(g,b){for(h.push(g);;){if(m===0){if(l(h)<1)break;const k=u(h,1);y=(k[0]&128)===128,v=k[0]&127,v<126?m=3:v===126?m=1:m=2}else if(m===1){if(l(h)<2)break;const k=u(h,2);v=new DataView(k.buffer,k.byteOffset,k.length).getUint16(0),m=3}else if(m===2){if(l(h)<8)break;const k=u(h,8),S=new DataView(k.buffer,k.byteOffset,k.length),$=S.getUint32(0);if($>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}v=$*Math.pow(2,32)+S.getUint32(4),m=3}else{if(l(h)<v)break;const k=u(h,v);b.enqueue((0,n.decodePacket)(y?k:c.decode(k),d)),m=0}if(v===0||v>p){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=f,e.protocol=4})(gi);function ln(e){if(e)return FD(e)}function FD(e){for(var t in ln.prototype)e[t]=ln.prototype[t];return e}ln.prototype.on=ln.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ln.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},ln.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},ln.prototype.emitReserved=ln.prototype.emit,ln.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ln.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Si=pg(Object.freeze(Object.defineProperty({__proto__:null,Emitter:ln},Symbol.toStringTag,{value:"Module"})));var Nn={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.globalThisShim=void 0,Bo.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.byteLength=Nn.installTimerFunctions=Nn.pick=void 0;const io=Bo;function LD(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}Nn.pick=LD;const BD=io.globalThisShim.setTimeout,UD=io.globalThisShim.clearTimeout;function zD(e,t){t.useNativeTimers?(e.setTimeoutFn=BD.bind(io.globalThisShim),e.clearTimeoutFn=UD.bind(io.globalThisShim)):(e.setTimeoutFn=io.globalThisShim.setTimeout.bind(io.globalThisShim),e.clearTimeoutFn=io.globalThisShim.clearTimeout.bind(io.globalThisShim))}Nn.installTimerFunctions=zD;const qD=1.33;function HD(e){return typeof e=="string"?WD(e):Math.ceil((e.byteLength||e.size)*qD)}Nn.byteLength=HD;function WD(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}var Rd={exports:{}},Md,fw;function VD(){if(fw)return Md;fw=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Md=function(u,f){f=f||{};var p=typeof u;if(p==="string"&&u.length>0)return a(u);if(p==="number"&&isFinite(u))return f.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(f){var p=parseFloat(f[1]),d=(f[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*i;case"weeks":case"week":case"w":return p*o;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var f=Math.abs(u);return f>=r?Math.round(u/r)+"d":f>=n?Math.round(u/n)+"h":f>=t?Math.round(u/t)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var f=Math.abs(u);return f>=r?l(u,f,r,"day"):f>=n?l(u,f,n,"hour"):f>=t?l(u,f,t,"minute"):f>=e?l(u,f,e,"second"):u+" ms"}function l(u,f,p,d){var h=f>=p*1.5;return Math.round(u/p)+" "+d+(h?"s":"")}return Md}function KD(e){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=VD(),n.destroy=l,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let f=0;for(let p=0;p<u.length;p++)f=(f<<5)-f+u.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(u){let f,p=null,d,h;function m(...v){if(!m.enabled)return;const y=m,g=Number(new Date),b=g-(f||g);y.diff=b,y.prev=f,y.curr=g,f=g,v[0]=n.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let k=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,($,C)=>{if($==="%%")return"%";k++;const P=n.formatters[C];if(typeof P=="function"){const F=v[k];$=P.call(y,F),v.splice(k,1),k--}return $}),n.formatArgs.call(y,v),(y.log||n.log).apply(y,v)}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=r,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==n.namespaces&&(d=n.namespaces,h=n.enabled(u)),h),set:v=>{p=v}}),typeof n.init=="function"&&n.init(m),m}function r(u,f){const p=n(this.namespace+(typeof f>"u"?":":f)+u);return p.log=this.log,p}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let f;const p=(typeof u=="string"?u:"").split(/[\s,]+/),d=p.length;for(f=0;f<d;f++)p[f]&&(u=p[f].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(f=>"-"+f)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return!0;let f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(u))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var GD=KD;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,f=0;c[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),c.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function i(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=GD(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(Rd,Rd.exports);var dr=Rd.exports,Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.decode=Uo.encode=void 0;function ZD(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}Uo.encode=ZD;function YD(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}Uo.decode=YD;var JD=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.Transport=void 0;const XD=gi,QD=Si,ej=Nn,tj=JD(dr),nj=Uo,rj=(0,tj.default)("engine.io-client:transport");class oj extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class ij extends QD.Emitter{constructor(t){super(),this.writable=!1,(0,ej.installTimerFunctions)(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new oj(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"?this.write(t):rj("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=(0,XD.decodePacket)(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=(0,nj.encode)(t);return n.length?"?"+n:""}}Lo.Transport=ij;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.yeast=Ir.decode=Ir.encode=void 0;const dw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Bc=64,pw={};let hw=0,ao=0,mw;function Nd(e){let t="";do t=dw[e%Bc]+t,e=Math.floor(e/Bc);while(e>0);return t}Ir.encode=Nd;function aj(e){let t=0;for(ao=0;ao<e.length;ao++)t=t*Bc+pw[e.charAt(ao)];return t}Ir.decode=aj;function sj(){const e=Nd(+new Date);return e!==mw?(hw=0,mw=e):e+"."+Nd(hw++)}for(Ir.yeast=sj;ao<Bc;ao++)pw[dw[ao]]=ao;var Ei={},Uc={};Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.hasCORS=void 0;let yw=!1;try{yw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}Uc.hasCORS=yw,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.createCookieJar=Ei.XHR=void 0;const cj=Uc,lj=Bo;function uj(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||cj.hasCORS))return new XMLHttpRequest}catch{}if(!t)try{return new lj.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Ei.XHR=uj;function fj(){}Ei.createCookieJar=fj;var dj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.Request=vi.Polling=void 0;const pj=Lo,hj=dj(dr),mj=Ir,vw=gi,Dd=Ei,yj=Si,gw=Nn,vj=Bo,pn=(0,hj.default)("engine.io-client:polling");function gj(){}const bj=function(){return new Dd.XHR({xdomain:!1}).responseType!=null}();class wj extends pj.Transport{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const n=t&&t.forceBase64;this.supportsBinary=bj&&!n,this.opts.withCredentials&&(this.cookieJar=(0,Dd.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{pn("paused"),this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(pn("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){pn("pre-pause polling complete"),--r||n()})),this.writable||(pn("we are currently writing - waiting to pause"),r++,this.once("drain",function(){pn("pre-pause writing complete"),--r||n()}))}else n()}poll(){pn("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){pn("polling got data %s",t);const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};(0,vw.decodePayload)(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():pn('ignoring poll - transport state "%s"',this.readyState))}doClose(){const t=()=>{pn("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(pn("transport open - closing"),t()):(pn("transport not open - deferring close"),this.once("open",t))}write(t){this.writable=!1,(0,vw.encodePayload)(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=(0,mj.yeast)()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Vn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){pn("xhr poll");const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}vi.Polling=wj;class Vn extends yj.Emitter{constructor(t,n){super(),(0,gw.installTimerFunctions)(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=(0,gw.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Dd.XHR(n);try{pn("xhr open %s: %s",this.method,this.uri),r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},pn("xhr data %s",this.data),r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=Vn.requestsCount++,Vn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=gj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Vn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(vi.Request=Vn,Vn.requestsCount=0,Vn.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",bw);else if(typeof addEventListener=="function"){const e="onpagehide"in vj.globalThisShim?"pagehide":"unload";addEventListener(e,bw,!1)}}function bw(){for(let e in Vn.requests)Vn.requests.hasOwnProperty(e)&&Vn.requests[e].abort()}var zc={},En={};Object.defineProperty(En,"__esModule",{value:!0}),En.defaultBinaryType=En.usingBrowserWebSocket=En.WebSocket=En.nextTick=void 0;const ww=Bo;En.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),En.WebSocket=ww.globalThisShim.WebSocket||ww.globalThisShim.MozWebSocket,En.usingBrowserWebSocket=!0,En.defaultBinaryType="arraybuffer";var xj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zc,"__esModule",{value:!0}),zc.WS=void 0;const Sj=Lo,Ej=Ir,_j=Nn,so=En,$j=xj(dr),kj=gi,Cj=(0,$j.default)("engine.io-client:websocket"),xw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Tj extends Sj.Transport{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=xw?{}:(0,_j.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=so.usingBrowserWebSocket&&!xw?n?new so.WebSocket(t,n):new so.WebSocket(t):new so.WebSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;(0,kj.encodePacket)(r,this.supportsBinary,i=>{const a={};so.usingBrowserWebSocket||(r.options&&(a.compress=r.options.compress),this.opts.perMessageDeflate&&(typeof i=="string"?Buffer.byteLength(i):i.length)<this.opts.perMessageDeflate.threshold&&(a.compress=!1));try{so.usingBrowserWebSocket?this.ws.send(i):this.ws.send(i,a)}catch{Cj("websocket closed before onclose event")}o&&(0,so.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=(0,Ej.yeast)()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!so.WebSocket}}zc.WS=Tj;var qc={},Oj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qc,"__esModule",{value:!0}),qc.WT=void 0;const Aj=Lo,Pj=En,Sw=gi,qa=(0,Oj(dr).default)("engine.io-client:webtransport");class Ij extends Aj.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{qa("transport closed gracefully"),this.onClose()}).catch(t=>{qa("transport closed due to %s",t),this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=(0,Sw.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=(0,Sw.createPacketEncoderStream)();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:s,value:c})=>{if(s){qa("session is closed");return}qa("received chunk: %o",c),this.onPacket(c),i()}).catch(s=>{qa("an error occurred while reading: %s",s)})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this.writer.write(r).then(()=>{o&&(0,Pj.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}qc.WT=Ij,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.transports=void 0;const Rj=vi,Mj=zc,Nj=qc;Ua.transports={websocket:Mj.WS,webtransport:Nj.WT,polling:Rj.Polling};var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parse=void 0;const Dj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fj(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Dj.exec(e||""),i={},a=14;for(;a--;)i[jj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Lj(i,i.path),i.queryKey=Bj(i,i.query),i}Ha.parse=Fj;function Lj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Bj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}var Uj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jc,"__esModule",{value:!0}),jc.Socket=void 0;const zj=Ua,Ew=Nn,qj=Uo,_w=Ha,Hj=Uj(dr),Wj=Si,$w=gi,Vj=En,vt=(0,Hj.default)("engine.io-client:socket");let kw=class ma extends Wj.Emitter{constructor(t,n={}){super(),this.binaryType=Vj.defaultBinaryType,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=(0,_w.parse)(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=(0,_w.parse)(n.host).host),(0,Ew.installTimerFunctions)(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,qj.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){vt('creating transport "%s"',t);const n=Object.assign({},this.opts.query);n.EIO=$w.protocol,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return vt("options: %j",r),new zj.transports[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ma.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(n){vt("error while creating transport: %s",n),this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){vt("setting transport %s",t.name),this.transport&&(vt("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){vt('probing transport "%s"',t);let n=this.createTransport(t),r=!1;ma.priorWebsocketSuccess=!1;const o=()=>{r||(vt('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(vt('probe transport "%s" pong',t),this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ma.priorWebsocketSuccess=n.name==="websocket",vt('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{r||this.readyState!=="closed"&&(vt("changing transport and sending upgrade packet"),u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{vt('probe transport "%s" failed',t);const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function i(){r||(r=!0,u(),n.close(),n=null)}const a=f=>{const p=new Error("probe error: "+f);p.transport=n.name,i(),vt('probe transport "%s" failed because of error: %s',t,f),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function c(){a("socket closed")}function l(f){n&&f.name!==n.name&&(vt('"%s" works - aborting "%s"',f.name,n.name),i())}const u=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",s),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",a),n.once("close",s),this.once("close",c),this.once("upgrading",l),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(vt("socket open"),this.readyState="open",ma.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){vt("starting upgrade probes");let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(vt('socket receive: type "%s", data "%s"',t.type,t.data),this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}else vt('packet received with socket readyState "%s"',this.readyState)}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();vt("flushing %d packets in socket",t.length),this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=(0,Ew.byteLength)(o)),r>0&&n>this.maxPayload)return vt("only send %d out of %d packets",r,this.writeBuffer.length),this.writeBuffer.slice(0,r);n+=2}return vt("payload size is %d (max: %d)",n,this.maxPayload),this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),vt("socket closing - telling transport to close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vt("socket error %j",t),ma.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(vt('socket close with reason: "%s"',t),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};jc.Socket=kw,kw.protocol=$w.protocol,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=jc;Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Lo;Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=Ua;Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Nn;Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=Ha;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var a=En;Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(Pd);var Kj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.url=void 0;const Gj=Pd,Cw=Kj(dr).default("socket.io-client:url");function Zj(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(Cw("protocol-less url %s",e),typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),Cw("parse %s",e),r=Gj.parse(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}Dc.url=Zj;var Hc={},Wa={},Wc={},_i={},zo={};Object.defineProperty(zo,"__esModule",{value:!0}),zo.hasBinary=zo.isBinary=void 0;const Yj=typeof ArrayBuffer=="function",Jj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Tw=Object.prototype.toString,Xj=typeof Blob=="function"||typeof Blob<"u"&&Tw.call(Blob)==="[object BlobConstructor]",Qj=typeof File=="function"||typeof File<"u"&&Tw.call(File)==="[object FileConstructor]";function Ow(e){return Yj&&(e instanceof ArrayBuffer||Jj(e))||Xj&&e instanceof Blob||Qj&&e instanceof File}zo.isBinary=Ow;function Vc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Vc(e[n]))return!0;return!1}if(Ow(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Vc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Vc(e[n]))return!0;return!1}zo.hasBinary=Vc,Object.defineProperty(_i,"__esModule",{value:!0}),_i.reconstructPacket=_i.deconstructPacket=void 0;const eF=zo;function tF(e){const t=[],n=e.data,r=e;return r.data=jd(n,t),r.attachments=t.length,{packet:r,buffers:t}}_i.deconstructPacket=tF;function jd(e,t){if(!e)return e;if((0,eF.isBinary)(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=jd(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=jd(e[r],t));return n}return e}function nF(e,t){return e.data=Fd(e.data,t),delete e.attachments,e}_i.reconstructPacket=nF;function Fd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Fd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Fd(e[n],t));return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=Si,n=_i,r=zo,i=(0,dr.default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(p){p[p.CONNECT=0]="CONNECT",p[p.DISCONNECT=1]="DISCONNECT",p[p.EVENT=2]="EVENT",p[p.ACK=3]="ACK",p[p.CONNECT_ERROR=4]="CONNECT_ERROR",p[p.BINARY_EVENT=5]="BINARY_EVENT",p[p.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class c{constructor(d){this.replacer=d}encode(d){return i("encoding packet %j",d),(d.type===s.EVENT||d.type===s.ACK)&&(0,r.hasBinary)(d)?this.encodeAsBinary({type:d.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:d.nsp,data:d.data,id:d.id}):[this.encodeAsString(d)]}encodeAsString(d){let h=""+d.type;return(d.type===s.BINARY_EVENT||d.type===s.BINARY_ACK)&&(h+=d.attachments+"-"),d.nsp&&d.nsp!=="/"&&(h+=d.nsp+","),d.id!=null&&(h+=d.id),d.data!=null&&(h+=JSON.stringify(d.data,this.replacer)),i("encoded %j as %s",d,h),h}encodeAsBinary(d){const h=(0,n.deconstructPacket)(d),m=this.encodeAsString(h.packet),v=h.buffers;return v.unshift(m),v}}e.Encoder=c;function l(p){return Object.prototype.toString.call(p)==="[object Object]"}class u extends t.Emitter{constructor(d){super(),this.reviver=d}add(d){let h;if(typeof d=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=this.decodeString(d);const m=h.type===s.BINARY_EVENT;m||h.type===s.BINARY_ACK?(h.type=m?s.EVENT:s.ACK,this.reconstructor=new f(h),h.attachments===0&&super.emitReserved("decoded",h)):super.emitReserved("decoded",h)}else if((0,r.isBinary)(d)||d.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(d),h&&(this.reconstructor=null,super.emitReserved("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+d)}decodeString(d){let h=0;const m={type:Number(d.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const y=h+1;for(;d.charAt(++h)!=="-"&&h!=d.length;);const g=d.substring(y,h);if(g!=Number(g)||d.charAt(h)!=="-")throw new Error("Illegal attachments");m.attachments=Number(g)}if(d.charAt(h+1)==="/"){const y=h+1;for(;++h&&!(d.charAt(h)===","||h===d.length););m.nsp=d.substring(y,h)}else m.nsp="/";const v=d.charAt(h+1);if(v!==""&&Number(v)==v){const y=h+1;for(;++h;){const g=d.charAt(h);if(g==null||Number(g)!=g){--h;break}if(h===d.length)break}m.id=Number(d.substring(y,h+1))}if(d.charAt(++h)){const y=this.tryParse(d.substr(h));if(u.isPayloadValid(m.type,y))m.data=y;else throw new Error("invalid payload")}return i("decoded %s as %j",d,m),m}tryParse(d){try{return JSON.parse(d,this.reviver)}catch{return!1}}static isPayloadValid(d,h){switch(d){case s.CONNECT:return l(h);case s.DISCONNECT:return h===void 0;case s.CONNECT_ERROR:return typeof h=="string"||l(h);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(h)&&(typeof h[0]=="number"||typeof h[0]=="string"&&a.indexOf(h[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(h)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class f{constructor(d){this.packet=d,this.buffers=[],this.reconPack=d}takeBinaryData(d){if(this.buffers.push(d),this.buffers.length===this.reconPack.attachments){const h=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(Wc);var Va={};Object.defineProperty(Va,"__esModule",{value:!0}),Va.on=void 0;function rF(e,t,n){return e.on(t,n),function(){e.off(t,n)}}Va.on=rF;var oF=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.Socket=void 0;const Kn=Wc,Kc=Va,iF=Si,Ot=oF(dr).default("socket.io-client:socket"),aF=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sF extends iF.Emitter{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Kc.on(t,"open",this.onopen.bind(this)),Kc.on(t,"packet",this.onpacket.bind(this)),Kc.on(t,"error",this.onerror.bind(this)),Kc.on(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(aF.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:Kn.PacketType.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const a=this.ids++;Ot("emitting packet with ack id %d",a);const s=n.pop();this._registerAckCallback(a,s),r.id=a}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)?Ot("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&(Ot("removing packet with ack id %d from the buffer",t),this.sendBuffer.splice(a,1));Ot("event with ack id %d has timed out after %d ms",t,o),n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...a])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((a,s)=>r?a?i(a):o(s):o(a)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(Ot("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),n&&n(o)):(Ot("packet [%d] was successfully sent",r.id),this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(Ot("draining queue"),!this.connected||this._queue.length===0)return;const n=this._queue[0];if(n.pending&&!t){Ot("packet [%d] has already been sent and is waiting for an ack",n.id);return}n.pending=!0,n.tryCount++,Ot("sending packet [%d] (try n°%d)",n.id,n.tryCount),this.flags=n.flags,this.emit.apply(this,n.args)}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){Ot("transport is open - connecting"),typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Kn.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){Ot("close (%s)",t),this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Kn.PacketType.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Kn.PacketType.EVENT:case Kn.PacketType.BINARY_EVENT:this.onevent(t);break;case Kn.PacketType.ACK:case Kn.PacketType.BINARY_ACK:this.onack(t);break;case Kn.PacketType.DISCONNECT:this.ondisconnect();break;case Kn.PacketType.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];Ot("emitting event %j",n),t.id!=null&&(Ot("attaching ack callback to event"),n.push(this.ack(t.id))),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,Ot("sending ack %j",o),n.packet({type:Kn.PacketType.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"?(Ot("calling ack %s with %j",t.id,t.data),n.apply(this,t.data),delete this.acks[t.id]):Ot("bad ack %s",t.id)}onconnect(t,n){Ot("socket connected with id %s",t),this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){Ot("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(Ot("performing disconnect (%s)",this.nsp),this.packet({type:Kn.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}Wa.Socket=sF;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.Backoff=void 0;function $i(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Gc.Backoff=$i,$i.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},$i.prototype.reset=function(){this.attempts=0},$i.prototype.setMin=function(e){this.ms=e},$i.prototype.setMax=function(e){this.max=e},$i.prototype.setJitter=function(e){this.jitter=e};var cF=Se&&Se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),lF=Se&&Se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uF=Se&&Se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&cF(t,e,n);return lF(t,e),t},fF=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.Manager=void 0;const Ld=Pd,dF=Wa,pF=uF(Wc),qo=Va,hF=Gc,mF=Si,Wt=fF(dr).default("socket.io-client:manager");class yF extends mF.Emitter{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ld.installTimerFunctions(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new hF.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||pF;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(Wt("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;Wt("opening %s",this.uri),this.engine=new Ld.Socket(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=qo.on(n,"open",function(){r.onopen(),t&&t()}),i=s=>{Wt("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=qo.on(n,"error",i);if(this._timeout!==!1){const s=this._timeout;Wt("connect attempt will timeout after %d",s);const c=this.setTimeoutFn(()=>{Wt("connect attempt timed out after %d",s),o(),i(new Error("timeout")),n.close()},s);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){Wt("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(qo.on(t,"ping",this.onping.bind(this)),qo.on(t,"data",this.ondata.bind(this)),qo.on(t,"error",this.onerror.bind(this)),qo.on(t,"close",this.onclose.bind(this)),qo.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ld.nextTick(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){Wt("error",t),this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new dF.Socket(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active){Wt("socket %s is still active, skipping close",r);return}this._close()}_packet(t){Wt("writing packet %j",t);const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){Wt("cleanup"),this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){Wt("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){Wt("closed due to %s",t),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)Wt("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();Wt("will wait %dms before reconnect attempt",n),this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(Wt("attempting reconnect"),this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(Wt("reconnect attempt error"),t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):(Wt("reconnect success"),t.onreconnect())}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}Hc.Manager=yF,function(e,t){var n=Se&&Se.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=Dc,o=Hc;Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Wa;Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=n(dr).default("socket.io-client"),c={};function l(f,p){typeof f=="object"&&(p=f,f=void 0),p=p||{};const d=r.url(f,p.path||"/socket.io"),h=d.source,m=d.id,v=d.path,y=c[m]&&v in c[m].nsps,g=p.forceNew||p["force new connection"]||p.multiplex===!1||y;let b;return g?(s("ignoring socket cache for %s",h),b=new o.Manager(h,p)):(c[m]||(s("new io instance for %s",h),c[m]=new o.Manager(h,p)),b=c[m]),d.query&&!p.query&&(p.query=d.queryKey),b.socket(d.path,p)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:o.Manager,Socket:i.Socket,io:l,connect:l});var u=Wc;Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l}(Ad,Ad.exports);var vF=Ad.exports;(function(e){var t=Se&&Se.__awaiter||function(c,l,u,f){function p(d){return d instanceof u?d:new u(function(h){h(d)})}return new(u||(u=Promise))(function(d,h){function m(g){try{y(f.next(g))}catch(b){h(b)}}function v(g){try{y(f.throw(g))}catch(b){h(b)}}function y(g){g.done?d(g.value):p(g.value).then(m,v)}y((f=f.apply(c,l||[])).next())})},n=Se&&Se.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketComEmitter=e.SocketComEvents=e.SocketCom=void 0;const r=Od,o=n(vF);class i{constructor(l){this.url=l,this.pending={},this.emitter=new s,this.events=this.emitter}connect(l,u){return t(this,void 0,void 0,function*(){return new Promise((f,p)=>{this.disconnect(),this.socket=(0,o.default)(this.url,{transports:["websocket"],auth:l,autoConnect:!1,query:u});const d=setTimeout(()=>{p("connection timed out")},5e3);this.socket.on("login",h=>t(this,void 0,void 0,function*(){clearTimeout(d),f(h)})),this.socket.on("connect_error",h=>{var m;(m=this.socket)===null||m===void 0||m.close(),clearTimeout(d),p(h.message)}),this.socket.on("message",h=>t(this,void 0,void 0,function*(){var m;this.pending[h.request]&&(!((m=h.data)===null||m===void 0)&&m.error?this.pending[h.request].reject(new Error(h.data.message)):this.pending[h.request].resolve(h.data),delete this.pending[h.request]),yield this.emitter.emit(a.Message,h)})),this.socket.connect()})})}disconnect(){var l;this.socket&&!(!((l=this.socket)===null||l===void 0)&&l.disconnected)&&this.socket.disconnect()}request(l,u){var f;return t(this,void 0,void 0,function*(){if(!(!((f=this.socket)===null||f===void 0)&&f.connected))throw new Error("Client is disconnected");const p=this.random(32),d=new Promise((h,m)=>{this.pending[p]={resolve:h,reject:m}});return this.socket.send({request:p,type:l,data:u}),d})}random(l){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let f="";for(let p=0;p<l;p++)f+=u.charAt(Math.floor(Math.random()*u.length));return f}}e.SocketCom=i;var a;(function(c){c.Message="message"})(a=e.SocketComEvents||(e.SocketComEvents={}));class s extends r.Emitter{}e.SocketComEmitter=s})(nw);var Zc={},gF=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.SocketEmitter=void 0;class bF{constructor(){this.listeners={}}on(t,n){const r=this.listeners[t];r?r.push(n):this.listeners[t]=[n]}removeListeners(t){this.listeners[t]=[]}emit(t,n){return gF(this,void 0,void 0,function*(){const r=this.listeners[t];if(r!=null&&r.length){for(const o of r)yield o(n);return!0}else return!1})}}Zc.SocketEmitter=bF;var hn=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.MessagingSocket=void 0;const Aw=nw,wF=Zc;class xF extends wF.SocketEmitter{constructor(t){super(),this.clientId=t.clientId,this.com=new Aw.SocketCom(t.url),this.com.events.on(Aw.SocketComEvents.Message,n=>hn(this,void 0,void 0,function*(){n.type==="message.new"&&(yield this.emit("message",n.data.message))}))}get creds(){return this._creds}get userId(){var t;return(t=this._creds)===null||t===void 0?void 0:t.userId}get conversationId(){return this._conversationId}connect(t,n){return hn(this,void 0,void 0,function*(){const r=n?{userData:JSON.stringify(n)}:void 0,o=yield this.com.connect({clientId:this.clientId,creds:t},r);return o.userId===(t==null?void 0:t.userId)&&!o.userToken&&(o.userToken=t.userToken),this._creds=o,yield this.emit("connect",this._creds),yield this.emit("user",this._creds.userId),o})}disconnect(){return hn(this,void 0,void 0,function*(){this.com.disconnect(),yield this.emit("disconnect",void 0)})}getUser(){return hn(this,void 0,void 0,function*(){return this.request("users.get",{})})}switchConversation(t){return hn(this,void 0,void 0,function*(){this._conversationId=t,yield this.emit("conversation",this._conversationId)})}createConversation(t){return hn(this,void 0,void 0,function*(){const n=yield this.request("conversations.create",{});return(t==null?void 0:t.switch)!==!1&&(yield this.switchConversation(n.id)),n})}startConversation(t){return hn(this,void 0,void 0,function*(){yield this.request("conversations.start",{id:t||this._conversationId})})}getConversation(t){return hn(this,void 0,void 0,function*(){return this.request("conversations.get",{id:t||this._conversationId})})}deleteConversation(t){return hn(this,void 0,void 0,function*(){const n=yield this.request("conversations.delete",{id:t||this._conversationId});return n&&(yield this.switchConversation(void 0)),n})}listConversations(t){return hn(this,void 0,void 0,function*(){return this.request("conversations.list",{limit:t||20})})}sendText(t){return hn(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:{type:"text",text:t}})})}sendPayload(t){return hn(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:t})})}listMessages(t){return hn(this,void 0,void 0,function*(){return this.request("messages.list",{conversationId:this._conversationId,limit:t||20})})}sendFeedback(t,n){return hn(this,void 0,void 0,function*(){yield this.request("messages.feedback",{messageId:t,feedback:n})})}request(t,n){return this.com.request(t,n)}}Nc.MessagingSocket=xF,function(e){var t=Se&&Se.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=Se&&Se.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Od,e),n(Nc,e)}(G0);class SF{constructor(t){he(this,"socket");he(this,"clientId");he(this,"apiUrl");he(this,"userId");he(this,"conversationId");he(this,"userToken");he(this,"connected",!1);he(this,"emitter");he(this,"on");he(this,"mode","messaging");this.socket=new G0.MessagingSocket(t),this.emitter=new jf,this.clientId=t.clientId,this.apiUrl=t.url,this.on=this.emitter.on.bind(this.emitter),this.socket.on("message",n=>{const r=n.payload;if(r.type==="trigger")switch(r.trigger.type){case"webchat-visibility":this.emitter.emit("webchatVisibility",r.trigger.visibility);break;case"webchat-config":this.emitter.emit("webchatConfig",r.trigger.config);break;case"custom-event":this.emitter.emit("customEvent",r.trigger.event);break}else{const o=uc.parse(r),{payload:i,disableInput:a}=wf(o);this.emitter.emit("message",{...n,payload:i,disableInput:a})}}),this.socket.on("conversation",n=>{this.emitter.emit("conversation",n)})}async connect(t,n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(t,n).catch(o=>{throw this.connected=!1,o});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async getUser(){throw new Error("Get user is not supported in messaging mode")}async updateUser(){throw new Error("Update user is not supported in messaging mode")}async sendFile(t){throw new Error("Send file is not supported in messaging mode")}async sendMessage(t){this.conversationId||await this.newConversation(),await this.socket.sendText(t),this.emitter.emit("messageSent",t)}async sendEvent(t){this.conversationId||await this.newConversation(),await this.socket.sendPayload({type:"trigger",payload:t})}async switchConversation(t){await this.socket.switchConversation(t),this.conversationId=t}async conversationExists(t){return(await this.socket.listConversations()).some(r=>r.id===t)}async newConversation(){const{id:t}=await this.socket.createConversation();await this.socket.startConversation(),this.conversationId=t}async listMessages(t){return(await this.socket.listMessages(t)).map(r=>{const o=uc.parse(r.payload),{payload:i,disableInput:a}=wf(o);return{...r,payload:i,disableInput:a}})}}function Pw(e,t){return function(){return e.apply(t,arguments)}}const{toString:Iw}=Object.prototype,{getPrototypeOf:Bd}=Object,Ud=(e=>t=>{const n=Iw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=e=>(e=e.toLowerCase(),t=>Ud(t)===e),Yc=e=>t=>typeof t===e,{isArray:ki}=Array,Ka=Yc("undefined");function EF(e){return e!==null&&!Ka(e)&&e.constructor!==null&&!Ka(e.constructor)&&Ho(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rw=Rr("ArrayBuffer");function _F(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rw(e.buffer),t}const $F=Yc("string"),Ho=Yc("function"),Mw=Yc("number"),zd=e=>e!==null&&typeof e=="object",kF=e=>e===!0||e===!1,Jc=e=>{if(Ud(e)!=="object")return!1;const t=Bd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CF=Rr("Date"),TF=Rr("File"),OF=Rr("Blob"),AF=Rr("FileList"),PF=e=>zd(e)&&Ho(e.pipe),IF=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Iw.call(e)===t||Ho(e.toString)&&e.toString()===t)},RF=Rr("URLSearchParams"),MF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ga(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ki(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function Nw(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Dw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),jw=e=>!Ka(e)&&e!==Dw;function qd(){const{caseless:e}=jw(this)&&this||{},t={},n=(r,o)=>{const i=e&&Nw(t,o)||o;Jc(t[i])&&Jc(r)?t[i]=qd(t[i],r):Jc(r)?t[i]=qd({},r):ki(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ga(arguments[r],n);return t}const NF=(e,t,n,{allOwnKeys:r}={})=>(Ga(t,(o,i)=>{n&&Ho(o)?e[i]=Pw(o,n):e[i]=o},{allOwnKeys:r}),e),DF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},FF=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Bd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},LF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},BF=e=>{if(!e)return null;if(ki(e))return e;let t=e.length;if(!Mw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bd(Uint8Array)),zF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HF=Rr("HTMLFormElement"),WF=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VF=Rr("RegExp"),Lw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ga(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},Y={isArray:ki,isArrayBuffer:Rw,isBuffer:EF,isFormData:IF,isArrayBufferView:_F,isString:$F,isNumber:Mw,isBoolean:kF,isObject:zd,isPlainObject:Jc,isUndefined:Ka,isDate:CF,isFile:TF,isBlob:OF,isRegExp:VF,isFunction:Ho,isStream:PF,isURLSearchParams:RF,isTypedArray:UF,isFileList:AF,forEach:Ga,merge:qd,extend:NF,trim:MF,stripBOM:DF,inherits:jF,toFlatObject:FF,kindOf:Ud,kindOfTest:Rr,endsWith:LF,toArray:BF,forEachEntry:zF,matchAll:qF,isHTMLForm:HF,hasOwnProperty:Fw,hasOwnProp:Fw,reduceDescriptors:Lw,freezeMethods:e=>{Lw(e,(t,n)=>{if(Ho(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ho(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ki(e)?r(e):r(String(e).split(t)),n},toCamelCase:WF,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Nw,global:Dw,isContextDefined:jw,toJSONObject:e=>{const t=new Array(10),n=(r,o)=>{if(zd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ki(r)?[]:{};return Ga(r,(a,s)=>{const c=n(a,o+1);!Ka(c)&&(i[s]=c)}),t[o]=void 0,i}}return r};return n(e,0)}};function Ge(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Y.inherits(Ge,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bw=Ge.prototype,Uw={};["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=>{Uw[e]={value:e}}),Object.defineProperties(Ge,Uw),Object.defineProperty(Bw,"isAxiosError",{value:!0}),Ge.from=(e,t,n,r,o,i)=>{const a=Object.create(Bw);return Y.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Ge.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var KF=typeof self=="object"?self.FormData:window.FormData;const GF=Ue(KF);function Hd(e){return Y.isPlainObject(e)||Y.isArray(e)}function zw(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function qw(e,t,n){return e?e.concat(t).map(function(o,i){return o=zw(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ZF(e){return Y.isArray(e)&&!e.some(Hd)}const YF=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function JF(e){return e&&Y.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Xc(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new(GF||FormData),n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!Y.isUndefined(v[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&JF(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(Y.isDate(h))return h.toISOString();if(!c&&Y.isBlob(h))throw new Ge("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(h)||Y.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,v){let y=h;if(h&&!v&&typeof h=="object"){if(Y.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(Y.isArray(h)&&ZF(h)||Y.isFileList(h)||Y.endsWith(m,"[]")&&(y=Y.toArray(h)))return m=zw(m),y.forEach(function(b,k){!(Y.isUndefined(b)||b===null)&&t.append(a===!0?qw([m],k,i):a===null?m:m+"[]",l(b))}),!1}return Hd(h)?!0:(t.append(qw(v,m,i),l(h)),!1)}const f=[],p=Object.assign(YF,{defaultVisitor:u,convertValue:l,isVisitable:Hd});function d(h,m){if(!Y.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),Y.forEach(h,function(y,g){(!(Y.isUndefined(y)||y===null)&&o.call(t,y,Y.isString(g)?g.trim():g,m,p))===!0&&d(y,m?m.concat(g):[g])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Hw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wd(e,t){this._pairs=[],e&&Xc(e,this,t)}const Ww=Wd.prototype;Ww.append=function(t,n){this._pairs.push([t,n])},Ww.toString=function(t){const n=t?function(r){return t.call(this,r,Hw)}:Hw;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function XF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vw(e,t,n){if(!t)return e;const r=n&&n.encode||XF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new Wd(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class QF{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kw=QF,Gw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eL=typeof URLSearchParams<"u"?URLSearchParams:Wd,tL=FormData,nL=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rL=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),pr={isBrowser:!0,classes:{URLSearchParams:eL,FormData:tL,Blob},isStandardBrowserEnv:nL,isStandardBrowserWebWorkerEnv:rL,protocols:["http","https","file","blob","url","data"]};function oL(e,t){return Xc(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return pr.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function iL(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aL(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Zw(e){function t(n,r,o,i){let a=n[i++];const s=Number.isFinite(+a),c=i>=n.length;return a=!a&&Y.isArray(o)?o.length:a,c?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Y.isArray(o[a])&&(o[a]=aL(o[a])),!s)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(iL(r),o,n,0)}),n}return null}const sL={"Content-Type":void 0};function cL(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qc={transitional:Gw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o&&o?JSON.stringify(Zw(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oL(t,this.formSerializer).toString();if((s=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Xc(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),cL(t)):t}],transformResponse:[function(t){const n=this.transitional||Qc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ge.from(s,Ge.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Y.forEach(["delete","get","head"],function(t){Qc.headers[t]={}}),Y.forEach(["post","put","patch"],function(t){Qc.headers[t]=Y.merge(sL)});const Vd=Qc,lL=Y.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"]),uL=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
54
|
+
`))}function c(d,h,m,v){const y=m.enter("tableCell"),g=m.enter("phrasing"),b=m.containerPhrasing(d,{...v,before:i,after:i});return g(),y(),b}function l(d,h){return XN(d,{align:h,alignDelimiters:r,padding:n,stringLength:o})}function u(d,h,m){const v=d.children;let y=-1;const g=[],b=h.enter("table");for(;++y<v.length;)g[y]=f(v[y],h,m);return b(),g}function f(d,h,m){const v=d.children;let y=-1;const g=[],b=h.enter("tableRow");for(;++y<v.length;)g[y]=c(v[y],d,h,m);return b(),g}function p(d,h,m){let v=D0.inlineCode(d,h,m);return m.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function B2(){return{exit:{taskListCheckValueChecked:F0,taskListCheckValueUnchecked:F0,paragraph:z2}}}function U2(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:q2}}}function F0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function z2(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,a;for(;++i<o.length;){const s=o[i];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function q2(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let c=D0.listItem(e,t,n,{...r,...s.current()});return i&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(u){return u+a}}function H2(){return[xN(),RN(),KN(),R2(),B2()]}function W2(e){return{extensions:[SN(),MN(),GN(),L2(e),U2()]}}const V2={tokenize:X2,partial:!0},L0={tokenize:Q2,partial:!0},B0={tokenize:eD,partial:!0},U0={tokenize:tD,partial:!0},K2={tokenize:nD,partial:!0},z0={tokenize:Y2,previous:H0},q0={tokenize:J2,previous:W0},Pr={tokenize:Z2,previous:V0},lr={};function G2(){return{text:lr}}let Fo=48;for(;Fo<123;)lr[Fo]=Pr,Fo++,Fo===58?Fo=65:Fo===91&&(Fo=97);lr[43]=Pr,lr[45]=Pr,lr[46]=Pr,lr[95]=Pr,lr[72]=[Pr,q0],lr[104]=[Pr,q0],lr[87]=[Pr,z0],lr[119]=[Pr,z0];function Z2(e,t,n){const r=this;let o,i;return a;function a(f){return!Cd(f)||!V0.call(r,r.previous)||Td(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Cd(f)?(e.consume(f),s):f===64?(e.consume(f),c):n(f)}function c(f){return f===46?e.check(K2,u,l)(f):f===45||f===95||Xt(f)?(i=!0,e.consume(f),c):u(f)}function l(f){return e.consume(f),o=!0,c}function u(f){return i&&o&&cn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Y2(e,t,n){const r=this;return o;function o(a){return a!==87&&a!==119||!H0.call(r,r.previous)||Td(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(V2,e.attempt(L0,e.attempt(B0,i),n),n)(a))}function i(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function J2(e,t,n){const r=this;let o="",i=!1;return a;function a(f){return(f===72||f===104)&&W0.call(r,r.previous)&&!Td(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(cn(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const p=o.toLowerCase();if(p==="http"||p==="https")return e.consume(f),c}return n(f)}function c(f){return f===47?(e.consume(f),i?l:(i=!0,c)):n(f)}function l(f){return f===null||gc(f)||st(f)||jo(f)||bc(f)?n(f):e.attempt(L0,e.attempt(B0,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function X2(e,t,n){let r=0;return o;function o(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),o):a===46&&r===3?(e.consume(a),i):n(a)}function i(a){return a===null?n(a):t(a)}}function Q2(e,t,n){let r,o,i;return a;function a(l){return l===46||l===95?e.check(U0,c,s)(l):l===null||st(l)||jo(l)||l!==45&&bc(l)?c(l):(i=!0,e.consume(l),a)}function s(l){return l===95?r=!0:(o=r,r=void 0),e.consume(l),a}function c(l){return o||r||!i?n(l):t(l)}}function eD(e,t){let n=0,r=0;return o;function o(a){return a===40?(n++,e.consume(a),o):a===41&&r<n?i(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(U0,t,i)(a):a===null||st(a)||jo(a)?t(a):(e.consume(a),o)}function i(a){return a===41&&r++,e.consume(a),o}}function tD(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),o):s===60||s===null||st(s)||jo(s)?t(s):n(s)}function o(s){return s===null||s===40||s===91||st(s)||jo(s)?t(s):r(s)}function i(s){return cn(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):cn(s)?(e.consume(s),a):n(s)}}function nD(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return Xt(i)?n(i):t(i)}}function H0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||st(e)}function W0(e){return!cn(e)}function V0(e){return!(e===47||Cd(e))}function Cd(e){return e===43||e===45||e===46||e===95||Xt(e)}function Td(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const rD={tokenize:fD,partial:!0};function oD(){return{document:{91:{tokenize:cD,continuation:{tokenize:lD},exit:uD}},text:{91:{tokenize:sD},93:{add:"after",tokenize:iD,resolveTo:aD}}}}function iD(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const c=r.events[o][1];if(c.type==="labelImage"){a=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!a||!a._balanced)return n(c);const l=Wn(r.sliceSerialize({start:a.end,end:r.now()}));return l.codePointAt(0)!==94||!i.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function aD(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function sD(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,a;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),c}function c(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(f){if(i>999||f===93&&!a||f===null||f===91||st(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return o.includes(Wn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return st(f)||(a=!0),i++,e.consume(f),f===92?u:l}function u(f){return f===91||f===92||f===93?(e.consume(f),i++,l):l(f)}}function cD(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0,s;return c;function c(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(h)}function u(h){if(a>999||h===93&&!s||h===null||h===91||st(h))return n(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return i=Wn(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return st(h)||(s=!0),a++,e.consume(h),h===92?f:u}function f(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),o.includes(i)||o.push(i),We(e,d,"gfmFootnoteDefinitionWhitespace")):n(h)}function d(h){return t(h)}}function lD(e,t,n){return e.check(ja,t,e.attempt(rD,t,n))}function uD(e){e.exit("gfmFootnoteDefinition")}function fD(e,t,n){const r=this;return We(e,o,"gfmFootnoteDefinitionIndent",4+1);function o(i){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(i):n(i)}}function dD(e){let n=(e||{}).singleTilde;const r={tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(a,s){let c=-1;for(;++c<a.length;)if(a[c][0]==="enter"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._close){let l=c;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[c][1].end.offset-a[c][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[c][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[c][1].end)},f={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[c][1].start)},p=[["enter",u,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",f,s]],d=s.parser.constructs.insideSpan.null;d&&Sn(p,p.length,0,xc(d,a.slice(l+1,c),s)),Sn(p,p.length,0,[["exit",f,s],["enter",a[c][1],s],["exit",a[c][1],s],["exit",u,s]]),Sn(a,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<a.length;)a[c][1].type==="strikethroughSequenceTemporary"&&(a[c][1].type="data");return a}function i(a,s,c){const l=this.previous,u=this.events;let f=0;return p;function p(h){return l===126&&u[u.length-1][1].type!=="characterEscape"?c(h):(a.enter("strikethroughSequenceTemporary"),d(h))}function d(h){const m=wc(l);if(h===126)return f>1?c(h):(a.consume(h),f++,d);if(f<2&&!n)return c(h);const v=a.exit("strikethroughSequenceTemporary"),y=wc(h);return v._open=!y||y===2&&!!m,v._close=!m||m===2&&!!y,s(h)}}}class pD{constructor(){this.map=[]}add(t,n,r){hD(this,t,n,r)}consume(t){if(this.map.sort(function(i,a){return i[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let o=r.pop();for(;o;)t.push(...o),o=r.pop();this.map.length=0}}function hD(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function mD(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function yD(){return{flow:{null:{tokenize:vD,resolveAll:gD}}}}function vD(e,t,n){const r=this;let o=0,i=0,a;return s;function s(T){let R=r.events.length-1;for(;R>-1;){const z=r.events[R][1].type;if(z==="lineEnding"||z==="linePrefix")R--;else break}const H=R>-1?r.events[R][1].type:null,L=H==="tableHead"||H==="tableRow"?$:c;return L===$&&r.parser.lazy[r.now().line]?n(T):L(T)}function c(T){return e.enter("tableHead"),e.enter("tableRow"),l(T)}function l(T){return T===124||(a=!0,i+=1),u(T)}function u(T){return T===null?n(T):$e(T)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),d):n(T):Le(T)?We(e,u,"whitespace")(T):(i+=1,a&&(a=!1,o+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),f(T)))}function f(T){return T===null||T===124||st(T)?(e.exit("data"),u(T)):(e.consume(T),T===92?p:f)}function p(T){return T===92||T===124?(e.consume(T),f):f(T)}function d(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),a=!1,Le(T)?We(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):h(T))}function h(T){return T===45||T===58?v(T):T===124?(a=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),m):S(T)}function m(T){return Le(T)?We(e,v,"whitespace")(T):v(T)}function v(T){return T===58?(i+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),y):T===45?(i+=1,y(T)):T===null||$e(T)?k(T):S(T)}function y(T){return T===45?(e.enter("tableDelimiterFiller"),g(T)):S(T)}function g(T){return T===45?(e.consume(T),g):T===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(T))}function b(T){return Le(T)?We(e,k,"whitespace")(T):k(T)}function k(T){return T===124?h(T):T===null||$e(T)?!a||o!==i?S(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):S(T)}function S(T){return n(T)}function $(T){return e.enter("tableRow"),C(T)}function C(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),C):T===null||$e(T)?(e.exit("tableRow"),t(T)):Le(T)?We(e,C,"whitespace")(T):(e.enter("data"),P(T))}function P(T){return T===null||T===124||st(T)?(e.exit("data"),C(T)):(e.consume(T),T===92?F:P)}function F(T){return T===92||T===124?(e.consume(T),P):P(T)}}function gD(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],a=[0,0,0,0],s=!1,c=0,l,u,f;const p=new pD;for(;++n<e.length;){const d=e[n],h=d[1];d[0]==="enter"?h.type==="tableHead"?(s=!1,c!==0&&(K0(p,t,c,l,u),u=void 0,c=0),l={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",l,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])),o=h.type==="tableDelimiterRow"?2:u?3:1):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(i[1]!==0&&(a[0]=a[1],f=Rc(p,t,i,o,void 0,f),i=[0,0,0,0]),a[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(a[0]=a[1],f=Rc(p,t,i,o,void 0,f)),i=a,a=[i[1],n,0,0])):h.type==="tableHead"?(s=!0,c=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(c=n,i[1]!==0?(a[0]=a[1],f=Rc(p,t,i,o,n,f)):a[1]!==0&&(f=Rc(p,t,a,o,n,f)),o=0):o&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(a[3]=n)}for(c!==0&&K0(p,t,c,l,u),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=mD(t.events,n))}return e}function Rc(e,t,n,r,o,i){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},yi(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const c=yi(t.events,n[1]);if(i={type:a,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const l=yi(t.events,n[2]),u=yi(t.events,n[3]),f={type:s,start:Object.assign({},l),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,m=n[3]-n[2]-1;e.add(h,m,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},yi(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function K0(e,t,n,r,o){const i=[],a=yi(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function yi(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bD={tokenize:xD};function wD(){return{text:{91:bD}}}function xD(e,t,n){const r=this;return o;function o(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return st(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),a):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),a):n(c)}function a(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Le(c)?e.check({tokenize:SD},t,n)(c):n(c)}}function SD(e,t,n){return We(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function ED(e){return Sb([G2(),oD(),dD(e),yD(),wD()])}const _D={};function $D(e){const t=this,n=e||_D,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(ED(n)),i.push(H2()),a.push(W2(n))}const ct={container:{className:"bpContainer"},modal:{container:{className:"bpModalContainer"},overlay:{className:"bpModalOverlay"},dialog:{container:{className:"bpModalDialogContainer"},title:{container:{className:"bpModalDialogTitleContainer"},text:{className:"bpModalDialogTitleText"},closeIcon:{className:"bpModalDialogTitleCloseIcon"}},content:{className:"bpModalDialogContent"},newConversation:{button:{className:"bpModalDialogNewConversationButton"},text:{className:"bpModalDialogNewConversationText"}}}},fab:{container:{className:"bpFabContainer"},icon:{className:"bpFabIcon"}},notification:{container:{className:"bpNotificationContainer"},title:{className:"bpNotificationTitle"},description:{className:"bpNotificationDescription"},icon:{className:"bpNotificationIcon"},closeIcon:{className:"bpNotificationCloseIcon"}},header:{container:{className:"bpHeaderContainer"},content:{container:{className:"bpHeaderContentContainer"},title:{className:"bpHeaderContentTitle"},description:{className:"bpHeaderContentDescription"},avatar:{container:{className:"bpHeaderContentAvatarContainer"},image:{className:"bpHeaderContentAvatarImage"},fallback:{className:"bpHeaderContentAvatarFallback"}},actions:{container:{className:"bpHeaderContentActionsContainer"},icons:{className:"bpHeaderContentActionsIcons"}}},expandedContent:{container:{className:"bpHeaderExpandedContentContainer"},descriptionItems:{container:{className:"bpHeaderExpandedContentDescriptionItemsContainer"},icon:{className:"bpHeaderExpandedContentDescriptionItemsIcon"},text:{className:"bpHeaderExpandedContentDescriptionItemsText"},link:{className:"bpHeaderExpandedContentDescriptionItemsLink"}},group:{className:"bpHeaderExpandedContentGroup"}},newConversationIcon:{className:"bpHeaderNewConversationIcon"}},composer:{container:{className:"bpComposerContainer"},poweredBy:{className:"bpComposerPoweredBy"},input:{className:"bpComposerInput"},button:{container:{className:"bpComposerButtonContainer"},icon:{className:"bpComposerButtonIcon"}},uploadButton:{icon:{className:"bpComposerUploadButtonIcon"},container:{className:"bpComposerUploadButtonContainer"}}},messageList:{scrollbar:{container:{className:"bpMessageListScrollbarContainer"},viewport:{className:"bpMessageListScrollbarViewport"},background:{className:"bpMessageListScrollbarBackground"},thumb:{className:"bpMessageListScrollbarThumb"},corner:{className:"bpMessageListScrollbarCorner"}},scrollDownButton:{container:{className:"bpMessageListScrollDownButtonContainer"},button:{className:"bpMessageListScrollDownButtonButton"},icon:{className:"bpMessageListScrollDownButtonIcon"}},container:{className:"bpMessageListContainer"},viewPort:{className:"bpMessageListViewport"},marquee:{container:{className:"bpMessageListMarqueeContainer"},content:{className:"bpMessageListMarqueeContent"},title:{className:"bpMessageListMarqueeTitle"},description:{className:"bpMessageListMarqueeDescription"},avatar:{container:{className:"bpMessageListMarqueeAvatarContainer"},image:{className:"bpMessageListMarqueeAvatarImage"},fallback:{className:"bpMessageListMarqueeAvatarFallback"}}}},message:{container:{className:"bpMessageContainer"},avatar:{container:{className:"bpMessageAvatarContainer"},image:{className:"bpMessageAvatarImage"},fallback:{className:"bpMessageAvatarFallback"}},blocks:{text:{heading1:{className:"bpMessageBlocksTextHeading1"},heading2:{className:"bpMessageBlocksTextHeading2"},heading3:{className:"bpMessageBlocksTextHeading3"},unorderedList:{className:"bpMessageBlocksTextUnorderedList"},orderedList:{className:"bpMessageBlocksTextOrderedList"},link:{className:"bpMessageBlocksTextLink"},italic:{className:"bpMessageBlocksTextItalic"},bold:{className:"bpMessageBlocksTextBold"},text:{className:"bpMessageBlocksTextText"},horizontalRule:{className:"bpMessageBlocksTextHorizontalRule"},listItem:{className:"bpMessageBlocksTextListItem"},lineBreak:{className:"bpMessageBlocksTextLineBreak"},pre:{className:"bpMessageBlocksTextPre"}},audio:{className:"bpMessageBlocksAudio"},image:{image:{className:"bpMessageBlocksImageImage"},placeholder:{className:"bpMessageBlocksImagePlaceholder"}},video:{className:"bpMessageBlocksVideo"},location:{container:{className:"bpMessageBlocksLocationContainer"},title:{className:"bpMessageBlocksLocationTitle"},icon:{className:"bpMessageBlocksLocationIcon"}},file:{container:{className:"bpMessageBlocksFileContainer"},title:{className:"bpMessageBlocksFileTitle"},icon:{className:"bpMessageBlocksFileIcon"}},row:{className:"bpMessageBlocksRow"},column:{className:"bpMessageBlocksColumn"},bubble:{className:"bpMessageBlocksBubble"},carousel:{container:{className:"bpMessageBlocksCarouselContainer"},slidesContainer:{className:"bpMessageBlocksCarouselSlidesContainer"},backButton:{className:"bpMessageBlocksCarouselBackButton"},nextButton:{className:"bpMessageBlocksCarouselNextButton"}},dropdown:{button:{container:{className:"bpMessageBlocksDropdownButtonContainer"},text:{className:"bpMessageBlocksDropdownButtonText"},icon:{className:"bpMessageBlocksDropdownButtonIcon"}},content:{container:{className:"bpMessageBlocksDropdownContentContainer"},item:{className:"bpMessageBlocksDropdownContentItem"}}},button:{className:"bpMessageBlocksButton"}}},typingIndicator:{container:{className:"bpTypingIndicatorContainer"},loader:{className:"bpTypingIndicatorLoader"}}},kD=({text:e})=>{const{message:{blocks:{text:t}}}=ct,n={h1:({node:r,...o})=>j.jsx("h1",{...o,...t==null?void 0:t.heading1}),h2:({node:r,...o})=>j.jsx("h2",{...o,...t==null?void 0:t.heading2}),h3:({node:r,...o})=>j.jsx("h3",{...o,...t==null?void 0:t.heading3}),h4:"h3",h5:"h3",h6:"h3",em:({node:r,...o})=>j.jsx("em",{...o,...t==null?void 0:t.italic}),strong:({node:r,...o})=>j.jsx("strong",{...o,...t==null?void 0:t.bold}),p:({node:r,...o})=>j.jsx("p",{...o,...t==null?void 0:t.text}),hr:({node:r,...o})=>j.jsx("hr",{...o,...t==null?void 0:t.horizontalRule}),a:({node:r,...o})=>j.jsx("a",{...o,...t==null?void 0:t.link,target:"_blank"}),ol:({node:r,...o})=>j.jsx("ol",{...o,...t==null?void 0:t.orderedList}),ul:({node:r,...o})=>j.jsx("ul",{...o,...t==null?void 0:t.unorderedList}),li:({node:r,...o})=>j.jsx("li",{...o,...t==null?void 0:t.listItem}),br:({node:r,...o})=>j.jsx("br",{...o,...t==null?void 0:t.lineBreak}),pre:({node:r,...o})=>j.jsx("pre",{...o,...t==null?void 0:t.pre})};return j.jsx(dN,{components:n,remarkPlugins:[$D,wN],children:e})};var G0={},Od={},Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});var Mc={},CD=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.Emitter=void 0;let TD=class{constructor(){this.listeners={}}on(t,n,r=!1){const o=this.listeners[t];o?r?o.unshift(n):o.push(n):this.listeners[t]=[n]}emit(t,n){return CD(this,void 0,void 0,function*(){const r=this.listeners[t];if(r!=null&&r.length){for(const o of r)yield o(n);return!0}else return!1})}};Mc.Emitter=TD;var Y0={};Object.defineProperty(Y0,"__esModule",{value:!0});var J0={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.HealthEventType=void 0,function(t){t.Create="create",t.Configure="configure",t.Start="start",t.StartFailure="start-failure",t.Initialize="initialize",t.InitializeFailure="initialize-failure",t.Sleep="sleep",t.Delete="delete"}(e.HealthEventType||(e.HealthEventType={}))})(J0);var X0={};Object.defineProperty(X0,"__esModule",{value:!0});var Q0={};Object.defineProperty(Q0,"__esModule",{value:!0});var ew={};Object.defineProperty(ew,"__esModule",{value:!0});var tw={};Object.defineProperty(tw,"__esModule",{value:!0}),function(e){var t=Se&&Se.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=Se&&Se.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Z0,e),n(Mc,e),n(Y0,e),n(J0,e),n(X0,e),n(Q0,e),n(ew,e),n(tw,e)}(Od);var Nc={},nw={},Ad={exports:{}},Dc={},Pd={},jc={},Ua={},vi={},Lo={},gi={},bi={},ur={};Object.defineProperty(ur,"__esModule",{value:!0}),ur.ERROR_PACKET=ur.PACKET_TYPES_REVERSE=ur.PACKET_TYPES=void 0;const fr=Object.create(null);ur.PACKET_TYPES=fr,fr.open="0",fr.close="1",fr.ping="2",fr.pong="3",fr.message="4",fr.upgrade="5",fr.noop="6";const rw=Object.create(null);ur.PACKET_TYPES_REVERSE=rw,Object.keys(fr).forEach(e=>{rw[fr[e]]=e});const OD={type:"error",data:"parser error"};ur.ERROR_PACKET=OD,Object.defineProperty(bi,"__esModule",{value:!0}),bi.encodePacket=bi.encodePacketToBinary=void 0;const AD=ur,ow=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",iw=typeof ArrayBuffer=="function",aw=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,sw=({type:e,data:t},n,r)=>ow&&t instanceof Blob?n?r(t):cw(t,r):iw&&(t instanceof ArrayBuffer||aw(t))?n?r(t):cw(new Blob([t]),r):r(AD.PACKET_TYPES[e]+(t||""));bi.encodePacket=sw;const cw=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function lw(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Id;function PD(e,t){if(ow&&e.data instanceof Blob)return e.data.arrayBuffer().then(lw).then(t);if(iw&&(e.data instanceof ArrayBuffer||aw(e.data)))return t(lw(e.data));sw(e,!1,n=>{Id||(Id=new TextEncoder),t(Id.encode(n))})}bi.encodePacketToBinary=PD;var Fc={},wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.decode=wi.encode=void 0;const xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",za=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<xi.length;e++)za[xi.charCodeAt(e)]=e;const ID=e=>{let t=new Uint8Array(e),n,r=t.length,o="";for(n=0;n<r;n+=3)o+=xi[t[n]>>2],o+=xi[(t[n]&3)<<4|t[n+1]>>4],o+=xi[(t[n+1]&15)<<2|t[n+2]>>6],o+=xi[t[n+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o};wi.encode=ID;const RD=e=>{let t=e.length*.75,n=e.length,r,o=0,i,a,s,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)i=za[e.charCodeAt(r)],a=za[e.charCodeAt(r+1)],s=za[e.charCodeAt(r+2)],c=za[e.charCodeAt(r+3)],u[o++]=i<<2|a>>4,u[o++]=(a&15)<<4|s>>2,u[o++]=(s&3)<<6|c&63;return l};wi.decode=RD,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.decodePacket=void 0;const Lc=ur,MD=wi,ND=typeof ArrayBuffer=="function",DD=(e,t)=>{if(typeof e!="string")return{type:"message",data:uw(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:jD(e.substring(1),t)}:Lc.PACKET_TYPES_REVERSE[n]?e.length>1?{type:Lc.PACKET_TYPES_REVERSE[n],data:e.substring(1)}:{type:Lc.PACKET_TYPES_REVERSE[n]}:Lc.ERROR_PACKET};Fc.decodePacket=DD;const jD=(e,t)=>{if(ND){const n=(0,MD.decode)(e);return uw(n,t)}else return{base64:!0,data:e}},uw=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=bi;Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=Fc;Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=ur,o=String.fromCharCode(30),i=(p,d)=>{const h=p.length,m=new Array(h);let v=0;p.forEach((y,g)=>{(0,t.encodePacket)(y,!1,b=>{m[g]=b,++v===h&&d(m.join(o))})})};e.encodePayload=i;const a=(p,d)=>{const h=p.split(o),m=[];for(let v=0;v<h.length;v++){const y=(0,n.decodePacket)(h[v],d);if(m.push(y),y.type==="error")break}return m};e.decodePayload=a;function s(){return new TransformStream({transform(p,d){(0,t.encodePacketToBinary)(p,h=>{const m=h.length;let v;if(m<126)v=new Uint8Array(1),new DataView(v.buffer).setUint8(0,m);else if(m<65536){v=new Uint8Array(3);const y=new DataView(v.buffer);y.setUint8(0,126),y.setUint16(1,m)}else{v=new Uint8Array(9);const y=new DataView(v.buffer);y.setUint8(0,127),y.setBigUint64(1,BigInt(m))}p.data&&typeof p.data!="string"&&(v[0]|=128),d.enqueue(v),d.enqueue(h)})}})}e.createPacketEncoderStream=s;let c;function l(p){return p.reduce((d,h)=>d+h.length,0)}function u(p,d){if(p[0].length===d)return p.shift();const h=new Uint8Array(d);let m=0;for(let v=0;v<d;v++)h[v]=p[0][m++],m===p[0].length&&(p.shift(),m=0);return p.length&&m<p[0].length&&(p[0]=p[0].slice(m)),h}function f(p,d){c||(c=new TextDecoder);const h=[];let m=0,v=-1,y=!1;return new TransformStream({transform(g,b){for(h.push(g);;){if(m===0){if(l(h)<1)break;const k=u(h,1);y=(k[0]&128)===128,v=k[0]&127,v<126?m=3:v===126?m=1:m=2}else if(m===1){if(l(h)<2)break;const k=u(h,2);v=new DataView(k.buffer,k.byteOffset,k.length).getUint16(0),m=3}else if(m===2){if(l(h)<8)break;const k=u(h,8),S=new DataView(k.buffer,k.byteOffset,k.length),$=S.getUint32(0);if($>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}v=$*Math.pow(2,32)+S.getUint32(4),m=3}else{if(l(h)<v)break;const k=u(h,v);b.enqueue((0,n.decodePacket)(y?k:c.decode(k),d)),m=0}if(v===0||v>p){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=f,e.protocol=4})(gi);function ln(e){if(e)return FD(e)}function FD(e){for(var t in ln.prototype)e[t]=ln.prototype[t];return e}ln.prototype.on=ln.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},ln.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},ln.prototype.off=ln.prototype.removeListener=ln.prototype.removeAllListeners=ln.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},ln.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},ln.prototype.emitReserved=ln.prototype.emit,ln.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},ln.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Si=pg(Object.freeze(Object.defineProperty({__proto__:null,Emitter:ln},Symbol.toStringTag,{value:"Module"})));var Nn={},Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.globalThisShim=void 0,Bo.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())(),Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.byteLength=Nn.installTimerFunctions=Nn.pick=void 0;const io=Bo;function LD(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}Nn.pick=LD;const BD=io.globalThisShim.setTimeout,UD=io.globalThisShim.clearTimeout;function zD(e,t){t.useNativeTimers?(e.setTimeoutFn=BD.bind(io.globalThisShim),e.clearTimeoutFn=UD.bind(io.globalThisShim)):(e.setTimeoutFn=io.globalThisShim.setTimeout.bind(io.globalThisShim),e.clearTimeoutFn=io.globalThisShim.clearTimeout.bind(io.globalThisShim))}Nn.installTimerFunctions=zD;const qD=1.33;function HD(e){return typeof e=="string"?WD(e):Math.ceil((e.byteLength||e.size)*qD)}Nn.byteLength=HD;function WD(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}var Rd={exports:{}},Md,fw;function VD(){if(fw)return Md;fw=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Md=function(u,f){f=f||{};var p=typeof u;if(p==="string"&&u.length>0)return a(u);if(p==="number"&&isFinite(u))return f.long?c(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(f){var p=parseFloat(f[1]),d=(f[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*i;case"weeks":case"week":case"w":return p*o;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var f=Math.abs(u);return f>=r?Math.round(u/r)+"d":f>=n?Math.round(u/n)+"h":f>=t?Math.round(u/t)+"m":f>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var f=Math.abs(u);return f>=r?l(u,f,r,"day"):f>=n?l(u,f,n,"hour"):f>=t?l(u,f,t,"minute"):f>=e?l(u,f,e,"second"):u+" ms"}function l(u,f,p,d){var h=f>=p*1.5;return Math.round(u/p)+" "+d+(h?"s":"")}return Md}function KD(e){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=VD(),n.destroy=l,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let f=0;for(let p=0;p<u.length;p++)f=(f<<5)-f+u.charCodeAt(p),f|=0;return n.colors[Math.abs(f)%n.colors.length]}n.selectColor=t;function n(u){let f,p=null,d,h;function m(...v){if(!m.enabled)return;const y=m,g=Number(new Date),b=g-(f||g);y.diff=b,y.prev=f,y.curr=g,f=g,v[0]=n.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let k=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,($,C)=>{if($==="%%")return"%";k++;const P=n.formatters[C];if(typeof P=="function"){const F=v[k];$=P.call(y,F),v.splice(k,1),k--}return $}),n.formatArgs.call(y,v),(y.log||n.log).apply(y,v)}return m.namespace=u,m.useColors=n.useColors(),m.color=n.selectColor(u),m.extend=r,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==n.namespaces&&(d=n.namespaces,h=n.enabled(u)),h),set:v=>{p=v}}),typeof n.init=="function"&&n.init(m),m}function r(u,f){const p=n(this.namespace+(typeof f>"u"?":":f)+u);return p.log=this.log,p}function o(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let f;const p=(typeof u=="string"?u:"").split(/[\s,]+/),d=p.length;for(f=0;f<d;f++)p[f]&&(u=p[f].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function i(){const u=[...n.names.map(s),...n.skips.map(s).map(f=>"-"+f)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return!0;let f,p;for(f=0,p=n.skips.length;f<p;f++)if(n.skips[f].test(u))return!1;for(f=0,p=n.names.length;f<p;f++)if(n.names[f].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var GD=KD;(function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=a(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,f=0;c[0].replace(/%[a-zA-Z%]/g,p=>{p!=="%%"&&(u++,p==="%c"&&(f=u))}),c.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function i(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function a(){try{return localStorage}catch{}}e.exports=GD(t);const{formatters:s}=e.exports;s.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(Rd,Rd.exports);var dr=Rd.exports,Uo={};Object.defineProperty(Uo,"__esModule",{value:!0}),Uo.decode=Uo.encode=void 0;function ZD(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}Uo.encode=ZD;function YD(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}Uo.decode=YD;var JD=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.Transport=void 0;const XD=gi,QD=Si,ej=Nn,tj=JD(dr),nj=Uo,rj=(0,tj.default)("engine.io-client:transport");class oj extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class ij extends QD.Emitter{constructor(t){super(),this.writable=!1,(0,ej.installTimerFunctions)(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new oj(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"?this.write(t):rj("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=(0,XD.decodePacket)(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=(0,nj.encode)(t);return n.length?"?"+n:""}}Lo.Transport=ij;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.yeast=Ir.decode=Ir.encode=void 0;const dw="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Bc=64,pw={};let hw=0,ao=0,mw;function Nd(e){let t="";do t=dw[e%Bc]+t,e=Math.floor(e/Bc);while(e>0);return t}Ir.encode=Nd;function aj(e){let t=0;for(ao=0;ao<e.length;ao++)t=t*Bc+pw[e.charAt(ao)];return t}Ir.decode=aj;function sj(){const e=Nd(+new Date);return e!==mw?(hw=0,mw=e):e+"."+Nd(hw++)}for(Ir.yeast=sj;ao<Bc;ao++)pw[dw[ao]]=ao;var Ei={},Uc={};Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.hasCORS=void 0;let yw=!1;try{yw=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}Uc.hasCORS=yw,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.createCookieJar=Ei.XHR=void 0;const cj=Uc,lj=Bo;function uj(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||cj.hasCORS))return new XMLHttpRequest}catch{}if(!t)try{return new lj.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Ei.XHR=uj;function fj(){}Ei.createCookieJar=fj;var dj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0}),vi.Request=vi.Polling=void 0;const pj=Lo,hj=dj(dr),mj=Ir,vw=gi,Dd=Ei,yj=Si,gw=Nn,vj=Bo,pn=(0,hj.default)("engine.io-client:polling");function gj(){}const bj=function(){return new Dd.XHR({xdomain:!1}).responseType!=null}();class wj extends pj.Transport{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let o=location.port;o||(o=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const n=t&&t.forceBase64;this.supportsBinary=bj&&!n,this.opts.withCredentials&&(this.cookieJar=(0,Dd.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{pn("paused"),this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(pn("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){pn("pre-pause polling complete"),--r||n()})),this.writable||(pn("we are currently writing - waiting to pause"),r++,this.once("drain",function(){pn("pre-pause writing complete"),--r||n()}))}else n()}poll(){pn("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){pn("polling got data %s",t);const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};(0,vw.decodePayload)(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():pn('ignoring poll - transport state "%s"',this.readyState))}doClose(){const t=()=>{pn("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(pn("transport open - closing"),t()):(pn("transport not open - deferring close"),this.once("open",t))}write(t){this.writable=!1,(0,vw.encodePayload)(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=(0,mj.yeast)()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Vn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){pn("xhr poll");const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}vi.Polling=wj;class Vn extends yj.Emitter{constructor(t,n){super(),(0,gw.installTimerFunctions)(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=(0,gw.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Dd.XHR(n);try{pn("xhr open %s: %s",this.method,this.uri),r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},pn("xhr data %s",this.data),r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=Vn.requestsCount++,Vn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=gj,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Vn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(vi.Request=Vn,Vn.requestsCount=0,Vn.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",bw);else if(typeof addEventListener=="function"){const e="onpagehide"in vj.globalThisShim?"pagehide":"unload";addEventListener(e,bw,!1)}}function bw(){for(let e in Vn.requests)Vn.requests.hasOwnProperty(e)&&Vn.requests[e].abort()}var zc={},En={};Object.defineProperty(En,"__esModule",{value:!0}),En.defaultBinaryType=En.usingBrowserWebSocket=En.WebSocket=En.nextTick=void 0;const ww=Bo;En.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),En.WebSocket=ww.globalThisShim.WebSocket||ww.globalThisShim.MozWebSocket,En.usingBrowserWebSocket=!0,En.defaultBinaryType="arraybuffer";var xj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zc,"__esModule",{value:!0}),zc.WS=void 0;const Sj=Lo,Ej=Ir,_j=Nn,so=En,$j=xj(dr),kj=gi,Cj=(0,$j.default)("engine.io-client:websocket"),xw=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Tj extends Sj.Transport{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=xw?{}:(0,_j.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=so.usingBrowserWebSocket&&!xw?n?new so.WebSocket(t,n):new so.WebSocket(t):new so.WebSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;(0,kj.encodePacket)(r,this.supportsBinary,i=>{const a={};so.usingBrowserWebSocket||(r.options&&(a.compress=r.options.compress),this.opts.perMessageDeflate&&(typeof i=="string"?Buffer.byteLength(i):i.length)<this.opts.perMessageDeflate.threshold&&(a.compress=!1));try{so.usingBrowserWebSocket?this.ws.send(i):this.ws.send(i,a)}catch{Cj("websocket closed before onclose event")}o&&(0,so.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=(0,Ej.yeast)()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!so.WebSocket}}zc.WS=Tj;var qc={},Oj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qc,"__esModule",{value:!0}),qc.WT=void 0;const Aj=Lo,Pj=En,Sw=gi,qa=(0,Oj(dr).default)("engine.io-client:webtransport");class Ij extends Aj.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{qa("transport closed gracefully"),this.onClose()}).catch(t=>{qa("transport closed due to %s",t),this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=(0,Sw.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=(0,Sw.createPacketEncoderStream)();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:s,value:c})=>{if(s){qa("session is closed");return}qa("received chunk: %o",c),this.onPacket(c),i()}).catch(s=>{qa("an error occurred while reading: %s",s)})};i();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this.writer.write(a).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this.writer.write(r).then(()=>{o&&(0,Pj.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}qc.WT=Ij,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.transports=void 0;const Rj=vi,Mj=zc,Nj=qc;Ua.transports={websocket:Mj.WS,webtransport:Nj.WT,polling:Rj.Polling};var Ha={};Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parse=void 0;const Dj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Fj(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=Dj.exec(e||""),i={},a=14;for(;a--;)i[jj[a]]=o[a]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Lj(i,i.path),i.queryKey=Bj(i,i.query),i}Ha.parse=Fj;function Lj(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Bj(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}var Uj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jc,"__esModule",{value:!0}),jc.Socket=void 0;const zj=Ua,Ew=Nn,qj=Uo,_w=Ha,Hj=Uj(dr),Wj=Si,$w=gi,Vj=En,vt=(0,Hj.default)("engine.io-client:socket");let kw=class ma extends Wj.Emitter{constructor(t,n={}){super(),this.binaryType=Vj.defaultBinaryType,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=(0,_w.parse)(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=(0,_w.parse)(n.host).host),(0,Ew.installTimerFunctions)(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,qj.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){vt('creating transport "%s"',t);const n=Object.assign({},this.opts.query);n.EIO=$w.protocol,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return vt("options: %j",r),new zj.transports[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ma.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(n){vt("error while creating transport: %s",n),this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){vt("setting transport %s",t.name),this.transport&&(vt("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){vt('probing transport "%s"',t);let n=this.createTransport(t),r=!1;ma.priorWebsocketSuccess=!1;const o=()=>{r||(vt('probe transport "%s" opened',t),n.send([{type:"ping",data:"probe"}]),n.once("packet",f=>{if(!r)if(f.type==="pong"&&f.data==="probe"){if(vt('probe transport "%s" pong',t),this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ma.priorWebsocketSuccess=n.name==="websocket",vt('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{r||this.readyState!=="closed"&&(vt("changing transport and sending upgrade packet"),u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{vt('probe transport "%s" failed',t);const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function i(){r||(r=!0,u(),n.close(),n=null)}const a=f=>{const p=new Error("probe error: "+f);p.transport=n.name,i(),vt('probe transport "%s" failed because of error: %s',t,f),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function c(){a("socket closed")}function l(f){n&&f.name!==n.name&&(vt('"%s" works - aborting "%s"',f.name,n.name),i())}const u=()=>{n.removeListener("open",o),n.removeListener("error",a),n.removeListener("close",s),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",a),n.once("close",s),this.once("close",c),this.once("upgrading",l),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(vt("socket open"),this.readyState="open",ma.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){vt("starting upgrade probes");let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(vt('socket receive: type "%s", data "%s"',t.type,t.data),this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}else vt('packet received with socket readyState "%s"',this.readyState)}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();vt("flushing %d packets in socket",t.length),this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=(0,Ew.byteLength)(o)),r>0&&n>this.maxPayload)return vt("only send %d out of %d packets",r,this.writeBuffer.length),this.writeBuffer.slice(0,r);n+=2}return vt("payload size is %d (max: %d)",n,this.maxPayload),this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),vt("socket closing - telling transport to close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vt("socket error %j",t),ma.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(vt('socket close with reason: "%s"',t),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;r<o;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};jc.Socket=kw,kw.protocol=$w.protocol,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=jc;Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Lo;Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=Ua;Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Nn;Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=Ha;Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var a=En;Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return a.nextTick}})}(Pd);var Kj=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.url=void 0;const Gj=Pd,Cw=Kj(dr).default("socket.io-client:url");function Zj(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(Cw("protocol-less url %s",e),typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),Cw("parse %s",e),r=Gj.parse(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}Dc.url=Zj;var Hc={},Wa={},Wc={},_i={},zo={};Object.defineProperty(zo,"__esModule",{value:!0}),zo.hasBinary=zo.isBinary=void 0;const Yj=typeof ArrayBuffer=="function",Jj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Tw=Object.prototype.toString,Xj=typeof Blob=="function"||typeof Blob<"u"&&Tw.call(Blob)==="[object BlobConstructor]",Qj=typeof File=="function"||typeof File<"u"&&Tw.call(File)==="[object FileConstructor]";function Ow(e){return Yj&&(e instanceof ArrayBuffer||Jj(e))||Xj&&e instanceof Blob||Qj&&e instanceof File}zo.isBinary=Ow;function Vc(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Vc(e[n]))return!0;return!1}if(Ow(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Vc(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Vc(e[n]))return!0;return!1}zo.hasBinary=Vc,Object.defineProperty(_i,"__esModule",{value:!0}),_i.reconstructPacket=_i.deconstructPacket=void 0;const eF=zo;function tF(e){const t=[],n=e.data,r=e;return r.data=jd(n,t),r.attachments=t.length,{packet:r,buffers:t}}_i.deconstructPacket=tF;function jd(e,t){if(!e)return e;if((0,eF.isBinary)(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=jd(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=jd(e[r],t));return n}return e}function nF(e,t){return e.data=Fd(e.data,t),delete e.attachments,e}_i.reconstructPacket=nF;function Fd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Fd(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Fd(e[n],t));return e}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=Si,n=_i,r=zo,i=(0,dr.default)("socket.io-parser"),a=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var s;(function(p){p[p.CONNECT=0]="CONNECT",p[p.DISCONNECT=1]="DISCONNECT",p[p.EVENT=2]="EVENT",p[p.ACK=3]="ACK",p[p.CONNECT_ERROR=4]="CONNECT_ERROR",p[p.BINARY_EVENT=5]="BINARY_EVENT",p[p.BINARY_ACK=6]="BINARY_ACK"})(s=e.PacketType||(e.PacketType={}));class c{constructor(d){this.replacer=d}encode(d){return i("encoding packet %j",d),(d.type===s.EVENT||d.type===s.ACK)&&(0,r.hasBinary)(d)?this.encodeAsBinary({type:d.type===s.EVENT?s.BINARY_EVENT:s.BINARY_ACK,nsp:d.nsp,data:d.data,id:d.id}):[this.encodeAsString(d)]}encodeAsString(d){let h=""+d.type;return(d.type===s.BINARY_EVENT||d.type===s.BINARY_ACK)&&(h+=d.attachments+"-"),d.nsp&&d.nsp!=="/"&&(h+=d.nsp+","),d.id!=null&&(h+=d.id),d.data!=null&&(h+=JSON.stringify(d.data,this.replacer)),i("encoded %j as %s",d,h),h}encodeAsBinary(d){const h=(0,n.deconstructPacket)(d),m=this.encodeAsString(h.packet),v=h.buffers;return v.unshift(m),v}}e.Encoder=c;function l(p){return Object.prototype.toString.call(p)==="[object Object]"}class u extends t.Emitter{constructor(d){super(),this.reviver=d}add(d){let h;if(typeof d=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=this.decodeString(d);const m=h.type===s.BINARY_EVENT;m||h.type===s.BINARY_ACK?(h.type=m?s.EVENT:s.ACK,this.reconstructor=new f(h),h.attachments===0&&super.emitReserved("decoded",h)):super.emitReserved("decoded",h)}else if((0,r.isBinary)(d)||d.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(d),h&&(this.reconstructor=null,super.emitReserved("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+d)}decodeString(d){let h=0;const m={type:Number(d.charAt(0))};if(s[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===s.BINARY_EVENT||m.type===s.BINARY_ACK){const y=h+1;for(;d.charAt(++h)!=="-"&&h!=d.length;);const g=d.substring(y,h);if(g!=Number(g)||d.charAt(h)!=="-")throw new Error("Illegal attachments");m.attachments=Number(g)}if(d.charAt(h+1)==="/"){const y=h+1;for(;++h&&!(d.charAt(h)===","||h===d.length););m.nsp=d.substring(y,h)}else m.nsp="/";const v=d.charAt(h+1);if(v!==""&&Number(v)==v){const y=h+1;for(;++h;){const g=d.charAt(h);if(g==null||Number(g)!=g){--h;break}if(h===d.length)break}m.id=Number(d.substring(y,h+1))}if(d.charAt(++h)){const y=this.tryParse(d.substr(h));if(u.isPayloadValid(m.type,y))m.data=y;else throw new Error("invalid payload")}return i("decoded %s as %j",d,m),m}tryParse(d){try{return JSON.parse(d,this.reviver)}catch{return!1}}static isPayloadValid(d,h){switch(d){case s.CONNECT:return l(h);case s.DISCONNECT:return h===void 0;case s.CONNECT_ERROR:return typeof h=="string"||l(h);case s.EVENT:case s.BINARY_EVENT:return Array.isArray(h)&&(typeof h[0]=="number"||typeof h[0]=="string"&&a.indexOf(h[0])===-1);case s.ACK:case s.BINARY_ACK:return Array.isArray(h)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=u;class f{constructor(d){this.packet=d,this.buffers=[],this.reconPack=d}takeBinaryData(d){if(this.buffers.push(d),this.buffers.length===this.reconPack.attachments){const h=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}})(Wc);var Va={};Object.defineProperty(Va,"__esModule",{value:!0}),Va.on=void 0;function rF(e,t,n){return e.on(t,n),function(){e.off(t,n)}}Va.on=rF;var oF=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.Socket=void 0;const Kn=Wc,Kc=Va,iF=Si,Ot=oF(dr).default("socket.io-client:socket"),aF=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sF extends iF.Emitter{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Kc.on(t,"open",this.onopen.bind(this)),Kc.on(t,"packet",this.onpacket.bind(this)),Kc.on(t,"error",this.onerror.bind(this)),Kc.on(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(aF.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:Kn.PacketType.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const a=this.ids++;Ot("emitting packet with ack id %d",a);const s=n.pop();this._registerAckCallback(a,s),r.id=a}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)?Ot("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&(Ot("removing packet with ack id %d from the buffer",t),this.sendBuffer.splice(a,1));Ot("event with ack id %d has timed out after %d ms",t,o),n.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,[null,...a])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,i)=>{n.push((a,s)=>r?a?i(a):o(s):o(a)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(Ot("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),n&&n(o)):(Ot("packet [%d] was successfully sent",r.id),this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(Ot("draining queue"),!this.connected||this._queue.length===0)return;const n=this._queue[0];if(n.pending&&!t){Ot("packet [%d] has already been sent and is waiting for an ack",n.id);return}n.pending=!0,n.tryCount++,Ot("sending packet [%d] (try n°%d)",n.id,n.tryCount),this.flags=n.flags,this.emit.apply(this,n.args)}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){Ot("transport is open - connecting"),typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Kn.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){Ot("close (%s)",t),this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Kn.PacketType.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Kn.PacketType.EVENT:case Kn.PacketType.BINARY_EVENT:this.onevent(t);break;case Kn.PacketType.ACK:case Kn.PacketType.BINARY_ACK:this.onack(t);break;case Kn.PacketType.DISCONNECT:this.ondisconnect();break;case Kn.PacketType.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];Ot("emitting event %j",n),t.id!=null&&(Ot("attaching ack callback to event"),n.push(this.ack(t.id))),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,Ot("sending ack %j",o),n.packet({type:Kn.PacketType.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"?(Ot("calling ack %s with %j",t.id,t.data),n.apply(this,t.data),delete this.acks[t.id]):Ot("bad ack %s",t.id)}onconnect(t,n){Ot("socket connected with id %s",t),this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){Ot("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(Ot("performing disconnect (%s)",this.nsp),this.packet({type:Kn.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}Wa.Socket=sF;var Gc={};Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.Backoff=void 0;function $i(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Gc.Backoff=$i,$i.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},$i.prototype.reset=function(){this.attempts=0},$i.prototype.setMin=function(e){this.ms=e},$i.prototype.setMax=function(e){this.max=e},$i.prototype.setJitter=function(e){this.jitter=e};var cF=Se&&Se.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),lF=Se&&Se.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uF=Se&&Se.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&cF(t,e,n);return lF(t,e),t},fF=Se&&Se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.Manager=void 0;const Ld=Pd,dF=Wa,pF=uF(Wc),qo=Va,hF=Gc,mF=Si,Wt=fF(dr).default("socket.io-client:manager");class yF extends mF.Emitter{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ld.installTimerFunctions(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new hF.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||pF;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(Wt("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;Wt("opening %s",this.uri),this.engine=new Ld.Socket(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=qo.on(n,"open",function(){r.onopen(),t&&t()}),i=s=>{Wt("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",s),t?t(s):this.maybeReconnectOnOpen()},a=qo.on(n,"error",i);if(this._timeout!==!1){const s=this._timeout;Wt("connect attempt will timeout after %d",s);const c=this.setTimeoutFn(()=>{Wt("connect attempt timed out after %d",s),o(),i(new Error("timeout")),n.close()},s);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){Wt("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(qo.on(t,"ping",this.onping.bind(this)),qo.on(t,"data",this.ondata.bind(this)),qo.on(t,"error",this.onerror.bind(this)),qo.on(t,"close",this.onclose.bind(this)),qo.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Ld.nextTick(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){Wt("error",t),this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new dF.Socket(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active){Wt("socket %s is still active, skipping close",r);return}this._close()}_packet(t){Wt("writing packet %j",t);const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){Wt("cleanup"),this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){Wt("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){Wt("closed due to %s",t),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)Wt("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();Wt("will wait %dms before reconnect attempt",n),this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(Wt("attempting reconnect"),this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(Wt("reconnect attempt error"),t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):(Wt("reconnect success"),t.onreconnect())}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}Hc.Manager=yF,function(e,t){var n=Se&&Se.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=Dc,o=Hc;Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Wa;Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=n(dr).default("socket.io-client"),c={};function l(f,p){typeof f=="object"&&(p=f,f=void 0),p=p||{};const d=r.url(f,p.path||"/socket.io"),h=d.source,m=d.id,v=d.path,y=c[m]&&v in c[m].nsps,g=p.forceNew||p["force new connection"]||p.multiplex===!1||y;let b;return g?(s("ignoring socket cache for %s",h),b=new o.Manager(h,p)):(c[m]||(s("new io instance for %s",h),c[m]=new o.Manager(h,p)),b=c[m]),d.query&&!p.query&&(p.query=d.queryKey),b.socket(d.path,p)}t.io=l,t.connect=l,t.default=l,Object.assign(l,{Manager:o.Manager,Socket:i.Socket,io:l,connect:l});var u=Wc;Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return u.protocol}}),e.exports=l}(Ad,Ad.exports);var vF=Ad.exports;(function(e){var t=Se&&Se.__awaiter||function(c,l,u,f){function p(d){return d instanceof u?d:new u(function(h){h(d)})}return new(u||(u=Promise))(function(d,h){function m(g){try{y(f.next(g))}catch(b){h(b)}}function v(g){try{y(f.throw(g))}catch(b){h(b)}}function y(g){g.done?d(g.value):p(g.value).then(m,v)}y((f=f.apply(c,l||[])).next())})},n=Se&&Se.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketComEmitter=e.SocketComEvents=e.SocketCom=void 0;const r=Od,o=n(vF);class i{constructor(l){this.url=l,this.pending={},this.emitter=new s,this.events=this.emitter}connect(l,u){return t(this,void 0,void 0,function*(){return new Promise((f,p)=>{this.disconnect(),this.socket=(0,o.default)(this.url,{transports:["websocket"],auth:l,autoConnect:!1,query:u});const d=setTimeout(()=>{p("connection timed out")},5e3);this.socket.on("login",h=>t(this,void 0,void 0,function*(){clearTimeout(d),f(h)})),this.socket.on("connect_error",h=>{var m;(m=this.socket)===null||m===void 0||m.close(),clearTimeout(d),p(h.message)}),this.socket.on("message",h=>t(this,void 0,void 0,function*(){var m;this.pending[h.request]&&(!((m=h.data)===null||m===void 0)&&m.error?this.pending[h.request].reject(new Error(h.data.message)):this.pending[h.request].resolve(h.data),delete this.pending[h.request]),yield this.emitter.emit(a.Message,h)})),this.socket.connect()})})}disconnect(){var l;this.socket&&!(!((l=this.socket)===null||l===void 0)&&l.disconnected)&&this.socket.disconnect()}request(l,u){var f;return t(this,void 0,void 0,function*(){if(!(!((f=this.socket)===null||f===void 0)&&f.connected))throw new Error("Client is disconnected");const p=this.random(32),d=new Promise((h,m)=>{this.pending[p]={resolve:h,reject:m}});return this.socket.send({request:p,type:l,data:u}),d})}random(l){const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let f="";for(let p=0;p<l;p++)f+=u.charAt(Math.floor(Math.random()*u.length));return f}}e.SocketCom=i;var a;(function(c){c.Message="message"})(a=e.SocketComEvents||(e.SocketComEvents={}));class s extends r.Emitter{}e.SocketComEmitter=s})(nw);var Zc={},gF=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.SocketEmitter=void 0;class bF{constructor(){this.listeners={}}on(t,n){const r=this.listeners[t];r?r.push(n):this.listeners[t]=[n]}removeListeners(t){this.listeners[t]=[]}emit(t,n){return gF(this,void 0,void 0,function*(){const r=this.listeners[t];if(r!=null&&r.length){for(const o of r)yield o(n);return!0}else return!1})}}Zc.SocketEmitter=bF;var hn=Se&&Se.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(f){a(f)}}function c(u){try{l(r.throw(u))}catch(f){a(f)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.MessagingSocket=void 0;const Aw=nw,wF=Zc;class xF extends wF.SocketEmitter{constructor(t){super(),this.clientId=t.clientId,this.com=new Aw.SocketCom(t.url),this.com.events.on(Aw.SocketComEvents.Message,n=>hn(this,void 0,void 0,function*(){n.type==="message.new"&&(yield this.emit("message",n.data.message))}))}get creds(){return this._creds}get userId(){var t;return(t=this._creds)===null||t===void 0?void 0:t.userId}get conversationId(){return this._conversationId}connect(t,n){return hn(this,void 0,void 0,function*(){const r=n?{userData:JSON.stringify(n)}:void 0,o=yield this.com.connect({clientId:this.clientId,creds:t},r);return o.userId===(t==null?void 0:t.userId)&&!o.userToken&&(o.userToken=t.userToken),this._creds=o,yield this.emit("connect",this._creds),yield this.emit("user",this._creds.userId),o})}disconnect(){return hn(this,void 0,void 0,function*(){this.com.disconnect(),yield this.emit("disconnect",void 0)})}getUser(){return hn(this,void 0,void 0,function*(){return this.request("users.get",{})})}switchConversation(t){return hn(this,void 0,void 0,function*(){this._conversationId=t,yield this.emit("conversation",this._conversationId)})}createConversation(t){return hn(this,void 0,void 0,function*(){const n=yield this.request("conversations.create",{});return(t==null?void 0:t.switch)!==!1&&(yield this.switchConversation(n.id)),n})}startConversation(t){return hn(this,void 0,void 0,function*(){yield this.request("conversations.start",{id:t||this._conversationId})})}getConversation(t){return hn(this,void 0,void 0,function*(){return this.request("conversations.get",{id:t||this._conversationId})})}deleteConversation(t){return hn(this,void 0,void 0,function*(){const n=yield this.request("conversations.delete",{id:t||this._conversationId});return n&&(yield this.switchConversation(void 0)),n})}listConversations(t){return hn(this,void 0,void 0,function*(){return this.request("conversations.list",{limit:t||20})})}sendText(t){return hn(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:{type:"text",text:t}})})}sendPayload(t){return hn(this,void 0,void 0,function*(){return this.request("messages.create",{conversationId:this._conversationId,payload:t})})}listMessages(t){return hn(this,void 0,void 0,function*(){return this.request("messages.list",{conversationId:this._conversationId,limit:t||20})})}sendFeedback(t,n){return hn(this,void 0,void 0,function*(){yield this.request("messages.feedback",{messageId:t,feedback:n})})}request(t,n){return this.com.request(t,n)}}Nc.MessagingSocket=xF,function(e){var t=Se&&Se.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=Se&&Se.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Od,e),n(Nc,e)}(G0);class SF{constructor(t){he(this,"socket");he(this,"clientId");he(this,"apiUrl");he(this,"userId");he(this,"conversationId");he(this,"userToken");he(this,"connected",!1);he(this,"emitter");he(this,"on");he(this,"mode","messaging");this.socket=new G0.MessagingSocket(t),this.emitter=new jf,this.clientId=t.clientId,this.apiUrl=t.url,this.on=this.emitter.on.bind(this.emitter),this.socket.on("message",n=>{const r=n.payload;if(r.type==="trigger")switch(r.trigger.type){case"webchat-visibility":this.emitter.emit("webchatVisibility",r.trigger.visibility);break;case"webchat-config":this.emitter.emit("webchatConfig",r.trigger.config);break;case"custom-event":this.emitter.emit("customEvent",r.trigger.event);break}else{const o=uc.parse(r),{payload:i,disableInput:a}=wf(o);this.emitter.emit("message",{...n,payload:i,disableInput:a})}}),this.socket.on("conversation",n=>{this.emitter.emit("conversation",n)})}async connect(t,n){if(this.connected)return;this.connected=!0;const r=await this.socket.connect(t,n).catch(o=>{throw this.connected=!1,o});return this.userId=r.userId,this.userToken=r.userToken,r}async disconnect(){await this.socket.disconnect(),this.connected=!1}async getUser(){throw new Error("Get user is not supported in messaging mode")}async updateUser(){throw new Error("Update user is not supported in messaging mode")}async sendFile(t){throw new Error("Send file is not supported in messaging mode")}async sendMessage(t){this.conversationId||await this.newConversation(),await this.socket.sendText(t),this.emitter.emit("messageSent",t)}async sendEvent(t){this.conversationId||await this.newConversation(),await this.socket.sendPayload({type:"trigger",payload:t})}async switchConversation(t){await this.socket.switchConversation(t),this.conversationId=t}async conversationExists(t){return(await this.socket.listConversations()).some(r=>r.id===t)}async newConversation(){const{id:t}=await this.socket.createConversation();await this.socket.startConversation(),this.conversationId=t}async listMessages(t){return(await this.socket.listMessages(t)).map(r=>{const o=uc.parse(r.payload),{payload:i,disableInput:a}=wf(o);return{...r,payload:i,disableInput:a}})}}function Pw(e,t){return function(){return e.apply(t,arguments)}}const{toString:Iw}=Object.prototype,{getPrototypeOf:Bd}=Object,Ud=(e=>t=>{const n=Iw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rr=e=>(e=e.toLowerCase(),t=>Ud(t)===e),Yc=e=>t=>typeof t===e,{isArray:ki}=Array,Ka=Yc("undefined");function EF(e){return e!==null&&!Ka(e)&&e.constructor!==null&&!Ka(e.constructor)&&Ho(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rw=Rr("ArrayBuffer");function _F(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rw(e.buffer),t}const $F=Yc("string"),Ho=Yc("function"),Mw=Yc("number"),zd=e=>e!==null&&typeof e=="object",kF=e=>e===!0||e===!1,Jc=e=>{if(Ud(e)!=="object")return!1;const t=Bd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},CF=Rr("Date"),TF=Rr("File"),OF=Rr("Blob"),AF=Rr("FileList"),PF=e=>zd(e)&&Ho(e.pipe),IF=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Iw.call(e)===t||Ho(e.toString)&&e.toString()===t)},RF=Rr("URLSearchParams"),MF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ga(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ki(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function Nw(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Dw=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),jw=e=>!Ka(e)&&e!==Dw;function qd(){const{caseless:e}=jw(this)&&this||{},t={},n=(r,o)=>{const i=e&&Nw(t,o)||o;Jc(t[i])&&Jc(r)?t[i]=qd(t[i],r):Jc(r)?t[i]=qd({},r):ki(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Ga(arguments[r],n);return t}const NF=(e,t,n,{allOwnKeys:r}={})=>(Ga(t,(o,i)=>{n&&Ho(o)?e[i]=Pw(o,n):e[i]=o},{allOwnKeys:r}),e),DF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},FF=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Bd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},LF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},BF=e=>{if(!e)return null;if(ki(e))return e;let t=e.length;if(!Mw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bd(Uint8Array)),zF=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HF=Rr("HTMLFormElement"),WF=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Fw=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),VF=Rr("RegExp"),Lw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ga(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},Y={isArray:ki,isArrayBuffer:Rw,isBuffer:EF,isFormData:IF,isArrayBufferView:_F,isString:$F,isNumber:Mw,isBoolean:kF,isObject:zd,isPlainObject:Jc,isUndefined:Ka,isDate:CF,isFile:TF,isBlob:OF,isRegExp:VF,isFunction:Ho,isStream:PF,isURLSearchParams:RF,isTypedArray:UF,isFileList:AF,forEach:Ga,merge:qd,extend:NF,trim:MF,stripBOM:DF,inherits:jF,toFlatObject:FF,kindOf:Ud,kindOfTest:Rr,endsWith:LF,toArray:BF,forEachEntry:zF,matchAll:qF,isHTMLForm:HF,hasOwnProperty:Fw,hasOwnProp:Fw,reduceDescriptors:Lw,freezeMethods:e=>{Lw(e,(t,n)=>{if(Ho(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ho(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ki(e)?r(e):r(String(e).split(t)),n},toCamelCase:WF,noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Nw,global:Dw,isContextDefined:jw,toJSONObject:e=>{const t=new Array(10),n=(r,o)=>{if(zd(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ki(r)?[]:{};return Ga(r,(a,s)=>{const c=n(a,o+1);!Ka(c)&&(i[s]=c)}),t[o]=void 0,i}}return r};return n(e,0)}};function Ge(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Y.inherits(Ge,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Bw=Ge.prototype,Uw={};["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=>{Uw[e]={value:e}}),Object.defineProperties(Ge,Uw),Object.defineProperty(Bw,"isAxiosError",{value:!0}),Ge.from=(e,t,n,r,o,i)=>{const a=Object.create(Bw);return Y.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),Ge.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var KF=typeof self=="object"?self.FormData:window.FormData;const GF=Ue(KF);function Hd(e){return Y.isPlainObject(e)||Y.isArray(e)}function zw(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function qw(e,t,n){return e?e.concat(t).map(function(o,i){return o=zw(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function ZF(e){return Y.isArray(e)&&!e.some(Hd)}const YF=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function JF(e){return e&&Y.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Xc(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new(GF||FormData),n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!Y.isUndefined(v[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&JF(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(Y.isDate(h))return h.toISOString();if(!c&&Y.isBlob(h))throw new Ge("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(h)||Y.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,v){let y=h;if(h&&!v&&typeof h=="object"){if(Y.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(Y.isArray(h)&&ZF(h)||Y.isFileList(h)||Y.endsWith(m,"[]")&&(y=Y.toArray(h)))return m=zw(m),y.forEach(function(b,k){!(Y.isUndefined(b)||b===null)&&t.append(a===!0?qw([m],k,i):a===null?m:m+"[]",l(b))}),!1}return Hd(h)?!0:(t.append(qw(v,m,i),l(h)),!1)}const f=[],p=Object.assign(YF,{defaultVisitor:u,convertValue:l,isVisitable:Hd});function d(h,m){if(!Y.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(h),Y.forEach(h,function(y,g){(!(Y.isUndefined(y)||y===null)&&o.call(t,y,Y.isString(g)?g.trim():g,m,p))===!0&&d(y,m?m.concat(g):[g])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return d(e),t}function Hw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Wd(e,t){this._pairs=[],e&&Xc(e,this,t)}const Ww=Wd.prototype;Ww.append=function(t,n){this._pairs.push([t,n])},Ww.toString=function(t){const n=t?function(r){return t.call(this,r,Hw)}:Hw;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function XF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vw(e,t,n){if(!t)return e;const r=n&&n.encode||XF,o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new Wd(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class QF{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Kw=QF,Gw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eL=typeof URLSearchParams<"u"?URLSearchParams:Wd,tL=FormData,nL=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),rL=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),pr={isBrowser:!0,classes:{URLSearchParams:eL,FormData:tL,Blob},isStandardBrowserEnv:nL,isStandardBrowserWebWorkerEnv:rL,protocols:["http","https","file","blob","url","data"]};function oL(e,t){return Xc(e,new pr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return pr.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function iL(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function aL(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function Zw(e){function t(n,r,o,i){let a=n[i++];const s=Number.isFinite(+a),c=i>=n.length;return a=!a&&Y.isArray(o)?o.length:a,c?(Y.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Y.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Y.isArray(o[a])&&(o[a]=aL(o[a])),!s)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(iL(r),o,n,0)}),n}return null}const sL={"Content-Type":void 0};function cL(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qc={transitional:Gw,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o&&o?JSON.stringify(Zw(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oL(t,this.formSerializer).toString();if((s=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Xc(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),cL(t)):t}],transformResponse:[function(t){const n=this.transitional||Qc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Ge.from(s,Ge.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pr.classes.FormData,Blob:pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Y.forEach(["delete","get","head"],function(t){Qc.headers[t]={}}),Y.forEach(["post","put","patch"],function(t){Qc.headers[t]=Y.merge(sL)});const Vd=Qc,lL=Y.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"]),uL=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
55
55
|
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&lL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Yw=Symbol("internals");function Za(e){return e&&String(e).trim().toLowerCase()}function el(e){return e===!1||e==null?e:Y.isArray(e)?e.map(el):String(e)}function fL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function dL(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Jw(e,t,n,r){if(Y.isFunction(r))return r.call(this,t,n);if(Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function pL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hL(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class tl{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,c,l){const u=Za(c);if(!u)throw new Error("header name must be a non-empty string");const f=Y.findKey(o,u);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=el(s))}const a=(s,c)=>Y.forEach(s,(l,u)=>i(l,u,c));return Y.isPlainObject(t)||t instanceof this.constructor?a(t,n):Y.isString(t)&&(t=t.trim())&&!dL(t)?a(uL(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Za(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return fL(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Za(t),t){const r=Y.findKey(this,t);return!!(r&&(!n||Jw(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Za(a),a){const s=Y.findKey(r,a);s&&(!n||Jw(r,r[s],s,n))&&(delete r[s],o=!0)}}return Y.isArray(t)?t.forEach(i):i(t),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return Y.forEach(this,(o,i)=>{const a=Y.findKey(r,i);if(a){n[a]=el(o),delete n[i];return}const s=t?pL(i):String(i).trim();s!==i&&delete n[i],n[s]=el(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
56
56
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Yw]=this[Yw]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=Za(a);r[s]||(hL(o,a),r[s]=!0)}return Y.isArray(t)?t.forEach(i):i(t),this}}tl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),Y.freezeMethods(tl.prototype),Y.freezeMethods(tl);const Mr=tl;function Kd(e,t){const n=this||Vd,r=t||n,o=Mr.from(r.headers);let i=r.data;return Y.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Xw(e){return!!(e&&e.__CANCEL__)}function Ya(e,t,n){Ge.call(this,e??"canceled",Ge.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits(Ya,Ge,{__CANCEL__:!0});const mL=null;function yL(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ge("Request failed with status code "+n.status,[Ge.ERR_BAD_REQUEST,Ge.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const vL=pr.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const c=[];c.push(n+"="+encodeURIComponent(r)),Y.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),Y.isString(i)&&c.push("path="+i),Y.isString(a)&&c.push("domain="+a),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function gL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bL(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Qw(e,t){return e&&!gL(t)?bL(e,t):t}const wL=pr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=Y.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function xL(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function SL(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=r[i];a||(a=l),n[o]=c,r[o]=l;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const d=u&&l-u;return d?Math.round(p*1e3/d):void 0}}function ex(e,t){let n=0;const r=SL(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,c=r(s),l=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&l?(a-i)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const nl={http:mL,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){let o=e.data;const i=Mr.from(e.headers).normalize(),a=e.responseType;let s;function c(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Y.isFormData(o)&&(pr.isStandardBrowserEnv||pr.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const d=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(d+":"+h))}const u=Qw(e.baseURL,e.url);l.open(e.method.toUpperCase(),Vw(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function f(){if(!l)return;const d=Mr.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:e,request:l};yL(function(y){n(y),c()},function(y){r(y),c()},m),l=null}if("onloadend"in l?l.onloadend=f:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(f)},l.onabort=function(){l&&(r(new Ge("Request aborted",Ge.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new Ge("Network Error",Ge.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Gw;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),r(new Ge(h,m.clarifyTimeoutError?Ge.ETIMEDOUT:Ge.ECONNABORTED,e,l)),l=null},pr.isStandardBrowserEnv){const d=(e.withCredentials||wL(u))&&e.xsrfCookieName&&vL.read(e.xsrfCookieName);d&&i.set(e.xsrfHeaderName,d)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&Y.forEach(i.toJSON(),function(h,m){l.setRequestHeader(m,h)}),Y.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",ex(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",ex(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=d=>{l&&(r(!d||d.type?new Ya(null,e,l):d),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=xL(u);if(p&&pr.protocols.indexOf(p)===-1){r(new Ge("Unsupported protocol "+p+":",Ge.ERR_BAD_REQUEST,e));return}l.send(o||null)})}};Y.forEach(nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const EL={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Y.isString(n)?nl[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new Ge(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Y.hasOwnProp(nl,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Y.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:nl};function Gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ya(null,e)}function tx(e){return Gd(e),e.headers=Mr.from(e.headers),e.data=Kd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),EL.getAdapter(e.adapter||Vd.adapter)(e).then(function(r){return Gd(e),r.data=Kd.call(e,e.transformResponse,r),r.headers=Mr.from(r.headers),r},function(r){return Xw(r)||(Gd(e),r&&r.response&&(r.response.data=Kd.call(e,e.transformResponse,r.response),r.response.headers=Mr.from(r.response.headers))),Promise.reject(r)})}const nx=e=>e instanceof Mr?e.toJSON():e;function Ci(e,t){t=t||{};const n={};function r(l,u,f){return Y.isPlainObject(l)&&Y.isPlainObject(u)?Y.merge.call({caseless:f},l,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function o(l,u,f){if(Y.isUndefined(u)){if(!Y.isUndefined(l))return r(void 0,l,f)}else return r(l,u,f)}function i(l,u){if(!Y.isUndefined(u))return r(void 0,u)}function a(l,u){if(Y.isUndefined(u)){if(!Y.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function s(l,u,f){if(f in t)return r(l,u);if(f in e)return r(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u)=>o(nx(l),nx(u),!0)};return Y.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const f=c[u]||o,p=f(e[u],t[u],u);Y.isUndefined(p)&&f!==s||(n[u]=p)}),n}const rx="1.2.5",Zd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ox={};Zd.transitional=function(t,n,r){function o(i,a){return"[Axios v"+rx+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Ge(o(a," has been removed"+(n?" in "+n:"")),Ge.ERR_DEPRECATED);return n&&!ox[a]&&(ox[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function _L(e,t,n){if(typeof e!="object")throw new Ge("options must be an object",Ge.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new Ge("option "+i+" must be "+c,Ge.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ge("Unknown option "+i,Ge.ERR_BAD_OPTION)}}const Yd={assertOptions:_L,validators:Zd},co=Yd.validators;class rl{constructor(t){this.defaults=t,this.interceptors={request:new Kw,response:new Kw}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ci(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Yd.assertOptions(r,{silentJSONParsing:co.transitional(co.boolean),forcedJSONParsing:co.transitional(co.boolean),clarifyTimeoutError:co.transitional(co.boolean)},!1),o!==void 0&&Yd.assertOptions(o,{encode:co.function,serialize:co.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&&Y.merge(i.common,i[n.method]),a&&Y.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Mr.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,f=0,p;if(!c){const h=[tx.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,l),p=h.length,u=Promise.resolve(n);f<p;)u=u.then(h[f++],h[f++]);return u}p=s.length;let d=n;for(f=0;f<p;){const h=s[f++],m=s[f++];try{d=h(d)}catch(v){m.call(this,v);break}}try{u=tx.call(this,d)}catch(h){return Promise.reject(h)}for(f=0,p=l.length;f<p;)u=u.then(l[f++],l[f++]);return u}getUri(t){t=Ci(this.defaults,t);const n=Qw(t.baseURL,t.url);return Vw(n,t.params,t.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(t){rl.prototype[t]=function(n,r){return this.request(Ci(r||{},{method:t,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(Ci(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}rl.prototype[t]=n(),rl.prototype[t+"Form"]=n(!0)});const ol=rl;class Jd{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Ya(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Jd(function(o){t=o}),cancel:t}}}const $L=Jd;function kL(e){return function(n){return e.apply(null,n)}}function CL(e){return Y.isObject(e)&&e.isAxiosError===!0}const Xd={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(Xd).forEach(([e,t])=>{Xd[t]=e});const TL=Xd;function ix(e){const t=new ol(e),n=Pw(ol.prototype.request,t);return Y.extend(n,ol.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ix(Ci(e,o))},n}const At=ix(Vd);At.Axios=ol,At.CanceledError=Ya,At.CancelToken=$L,At.isCancel=Xw,At.VERSION=rx,At.toFormData=Xc,At.AxiosError=Ge,At.Cancel=At.CanceledError,At.all=function(t){return Promise.all(t)},At.spread=kL,At.isAxiosError=CL,At.mergeConfig=Ci,At.AxiosHeaders=Mr,At.formToJSON=e=>Zw(Y.isHTMLForm(e)?new FormData(e):e),At.HttpStatusCode=TL,At.default=At;const ax=At,sx={},OL=Object.freeze(Object.defineProperty({__proto__:null,default:sx},Symbol.toStringTag,{value:"Module"})),AL={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))};let Qd=typeof window<"u"&&typeof window.document<"u"?window.crypto:sx;Qd.getRandomValues||(Qd=AL);class lt extends Error{constructor(n,r,o,i,a,s){super(i);he(this,"isApiError",!0);this.code=n,this.description=r,this.type=o,this.message=i,this.error=a,this.id=s,this.id||(this.id=lt.generateId())}format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){const n=this.getPrefix(),r=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],o=4,i=Array.from(Qd.getRandomValues(new Uint8Array(o))).map(a=>a.toString(16).padStart(2,"0")).join("").toUpperCase();return`${n}_${r}x${i}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}}const PL=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ep=e=>e instanceof lt||PL(e)&&e.isApiError===!0;class Ja extends lt{constructor(t,n,r){super(500,"An unknown error occurred","Unknown",t,n,r)}}class IL extends lt{constructor(t,n,r){super(500,"An internal error occurred","Internal",t,n,r)}}class RL extends lt{constructor(t,n,r){super(401,"The request requires to be authenticated.","Unauthorized",t,n,r)}}class ML extends lt{constructor(t,n,r){super(403,"The requested action can't be peform by this resource.","Forbidden",t,n,r)}}class NL extends lt{constructor(t,n,r){super(413,"The request payload is too large.","PayloadTooLarge",t,n,r)}}class DL extends lt{constructor(t,n,r){super(400,"The request payload is invalid.","InvalidPayload",t,n,r)}}class jL extends lt{constructor(t,n,r){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,n,r)}}class FL extends lt{constructor(t,n,r){super(405,"The requested method does not exist.","MethodNotFound",t,n,r)}}class LL extends lt{constructor(t,n,r){super(404,"The requested resource does not exist.","ResourceNotFound",t,n,r)}}class BL extends lt{constructor(t,n,r){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,n,r)}}class UL extends lt{constructor(t,n,r){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,n,r)}}class zL extends lt{constructor(t,n,r){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,n,r)}}class qL extends lt{constructor(t,n,r){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,n,r)}}class HL extends lt{constructor(t,n,r){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,n,r)}}class WL extends lt{constructor(t,n,r){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,n,r)}}class VL extends lt{constructor(t,n,r){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,n,r)}}class KL extends lt{constructor(t,n,r){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,n,r)}}class GL extends lt{constructor(t,n,r){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,n,r)}}class ZL extends lt{constructor(t,n,r){super(409,"The record attempted to be created already exists.","AlreadyExists",t,n,r)}}class YL extends lt{constructor(t,n,r){super(429,"The request has been rate limited.","RateLimited",t,n,r)}}class JL extends lt{constructor(t,n,r){super(402,"A payment is required to perform this request.","PaymentRequired",t,n,r)}}class XL extends lt{constructor(t,n,r){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,n,r)}}class QL extends lt{constructor(t,n,r){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,n,r)}}class e3 extends lt{constructor(t,n,r){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,n,r)}}const t3={Unknown:Ja,Internal:IL,Unauthorized:RL,Forbidden:ML,PayloadTooLarge:NL,InvalidPayload:DL,UnsupportedMediaType:jL,MethodNotFound:FL,ResourceNotFound:LL,InvalidJsonSchema:BL,InvalidDataFormat:UL,InvalidIdentifier:zL,RelationConflict:qL,ReferenceConstraint:HL,ResourceLockedConflict:WL,ReferenceNotFound:VL,InvalidQuery:KL,Runtime:GL,AlreadyExists:ZL,RateLimited:YL,PaymentRequired:JL,QuotaExceeded:XL,LimitExceeded:QL,BreakingChanges:e3},cx=e=>ep(e)?e:e instanceof Error?new Ja(e.message,e):typeof e=="string"?new Ja(e):n3(e);function n3(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){const t=t3[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new Ja(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new Ja("An invalid error occurred: "+JSON.stringify(e))}var r3=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},lx=typeof Symbol<"u"&&Symbol,o3=r3,ux=function(){return typeof lx!="function"||typeof Symbol!="function"||typeof lx("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o3()},tp={__proto__:null,foo:{}},i3=Object,fx=function(){return{__proto__:tp}.foo===tp.foo&&!(tp instanceof i3)},a3="Function.prototype.bind called on incompatible ",s3=Object.prototype.toString,c3=Math.max,l3="[object Function]",dx=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},u3=function(t,n){for(var r=[],o=n||0,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},f3=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},d3=function(t){var n=this;if(typeof n!="function"||s3.apply(n)!==l3)throw new TypeError(a3+n);for(var r=u3(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,dx(r,arguments));return Object(u)===u?u:this}return n.apply(t,dx(r,arguments))},a=c3(0,n.length-r.length),s=[],c=0;c<a;c++)s[c]="$"+c;if(o=Function("binder","return function ("+f3(s,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var l=function(){};l.prototype=n.prototype,o.prototype=new l,l.prototype=null}return o},p3=d3,Xa=Function.prototype.bind||p3,h3=Xa,m3=h3.call(Function.call,Object.prototype.hasOwnProperty),ze,Ti=SyntaxError,px=Function,Oi=TypeError,np=function(e){try{return px('"use strict"; return ('+e+").constructor;")()}catch{}},Wo=Object.getOwnPropertyDescriptor;if(Wo)try{Wo({},"")}catch{Wo=null}var rp=function(){throw new Oi},y3=Wo?function(){try{return arguments.callee,rp}catch{try{return Wo(arguments,"callee").get}catch{return rp}}}():rp,Ai=ux(),v3=fx(),Lt=Object.getPrototypeOf||(v3?function(e){return e.__proto__}:null),Pi={},g3=typeof Uint8Array>"u"||!Lt?ze:Lt(Uint8Array),Vo={"%AggregateError%":typeof AggregateError>"u"?ze:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ze:ArrayBuffer,"%ArrayIteratorPrototype%":Ai&&Lt?Lt([][Symbol.iterator]()):ze,"%AsyncFromSyncIteratorPrototype%":ze,"%AsyncFunction%":Pi,"%AsyncGenerator%":Pi,"%AsyncGeneratorFunction%":Pi,"%AsyncIteratorPrototype%":Pi,"%Atomics%":typeof Atomics>"u"?ze:Atomics,"%BigInt%":typeof BigInt>"u"?ze:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ze:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ze:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ze:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ze:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ze:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ze:FinalizationRegistry,"%Function%":px,"%GeneratorFunction%":Pi,"%Int8Array%":typeof Int8Array>"u"?ze:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ze:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ze:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ai&&Lt?Lt(Lt([][Symbol.iterator]())):ze,"%JSON%":typeof JSON=="object"?JSON:ze,"%Map%":typeof Map>"u"?ze:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ai||!Lt?ze:Lt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ze:Promise,"%Proxy%":typeof Proxy>"u"?ze:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ze:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ze:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ai||!Lt?ze:Lt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ze:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ai&&Lt?Lt(""[Symbol.iterator]()):ze,"%Symbol%":Ai?Symbol:ze,"%SyntaxError%":Ti,"%ThrowTypeError%":y3,"%TypedArray%":g3,"%TypeError%":Oi,"%Uint8Array%":typeof Uint8Array>"u"?ze:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ze:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ze:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ze:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ze:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ze:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ze:WeakSet};if(Lt)try{null.error}catch(e){var b3=Lt(Lt(e));Vo["%Error.prototype%"]=b3}var w3=function e(t){var n;if(t==="%AsyncFunction%")n=np("async function () {}");else if(t==="%GeneratorFunction%")n=np("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=np("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Lt&&(n=Lt(o.prototype))}return Vo[t]=n,n},hx={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qa=Xa,il=m3,x3=Qa.call(Function.call,Array.prototype.concat),S3=Qa.call(Function.apply,Array.prototype.splice),mx=Qa.call(Function.call,String.prototype.replace),al=Qa.call(Function.call,String.prototype.slice),E3=Qa.call(Function.call,RegExp.prototype.exec),_3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$3=/\\(\\)?/g,k3=function(t){var n=al(t,0,1),r=al(t,-1);if(n==="%"&&r!=="%")throw new Ti("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ti("invalid intrinsic syntax, expected opening `%`");var o=[];return mx(t,_3,function(i,a,s,c){o[o.length]=s?mx(c,$3,"$1"):a||i}),o},C3=function(t,n){var r=t,o;if(il(hx,r)&&(o=hx[r],r="%"+o[0]+"%"),il(Vo,r)){var i=Vo[r];if(i===Pi&&(i=w3(r)),typeof i>"u"&&!n)throw new Oi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new Ti("intrinsic "+t+" does not exist!")},T3=function(t,n){if(typeof t!="string"||t.length===0)throw new Oi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Oi('"allowMissing" argument must be a boolean');if(E3(/^%?[^%]*%?$/,t)===null)throw new Ti("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k3(t),o=r.length>0?r[0]:"",i=C3("%"+o+"%",n),a=i.name,s=i.value,c=!1,l=i.alias;l&&(o=l[0],S3(r,x3([0,1],l)));for(var u=1,f=!0;u<r.length;u+=1){var p=r[u],d=al(p,0,1),h=al(p,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Ti("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(c=!0),o+="."+p,a="%"+o+"%",il(Vo,a))s=Vo[a];else if(s!=null){if(!(p in s)){if(!n)throw new Oi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Wo&&u+1>=r.length){var m=Wo(s,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else f=il(s,p),s=s[p];f&&!c&&(Vo[a]=s)}}return s},O3=Error,A3=EvalError,P3=RangeError,I3=ReferenceError,R3=SyntaxError,M3=TypeError,N3=URIError,D3=Function.prototype.call,j3=Object.prototype.hasOwnProperty,F3=Xa,L3=F3.call(D3,j3),qe,B3=O3,U3=A3,z3=P3,q3=I3,Ii=R3,Ri=M3,H3=N3,yx=Function,op=function(e){try{return yx('"use strict"; return ('+e+").constructor;")()}catch{}},Ko=Object.getOwnPropertyDescriptor;if(Ko)try{Ko({},"")}catch{Ko=null}var ip=function(){throw new Ri},W3=Ko?function(){try{return arguments.callee,ip}catch{try{return Ko(arguments,"callee").get}catch{return ip}}}():ip,Mi=ux(),V3=fx(),Bt=Object.getPrototypeOf||(V3?function(e){return e.__proto__}:null),Ni={},K3=typeof Uint8Array>"u"||!Bt?qe:Bt(Uint8Array),Go={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?qe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?qe:ArrayBuffer,"%ArrayIteratorPrototype%":Mi&&Bt?Bt([][Symbol.iterator]()):qe,"%AsyncFromSyncIteratorPrototype%":qe,"%AsyncFunction%":Ni,"%AsyncGenerator%":Ni,"%AsyncGeneratorFunction%":Ni,"%AsyncIteratorPrototype%":Ni,"%Atomics%":typeof Atomics>"u"?qe:Atomics,"%BigInt%":typeof BigInt>"u"?qe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?qe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?qe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?qe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":B3,"%eval%":eval,"%EvalError%":U3,"%Float32Array%":typeof Float32Array>"u"?qe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?qe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?qe:FinalizationRegistry,"%Function%":yx,"%GeneratorFunction%":Ni,"%Int8Array%":typeof Int8Array>"u"?qe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?qe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?qe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Mi&&Bt?Bt(Bt([][Symbol.iterator]())):qe,"%JSON%":typeof JSON=="object"?JSON:qe,"%Map%":typeof Map>"u"?qe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Mi||!Bt?qe:Bt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?qe:Promise,"%Proxy%":typeof Proxy>"u"?qe:Proxy,"%RangeError%":z3,"%ReferenceError%":q3,"%Reflect%":typeof Reflect>"u"?qe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?qe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Mi||!Bt?qe:Bt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?qe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Mi&&Bt?Bt(""[Symbol.iterator]()):qe,"%Symbol%":Mi?Symbol:qe,"%SyntaxError%":Ii,"%ThrowTypeError%":W3,"%TypedArray%":K3,"%TypeError%":Ri,"%Uint8Array%":typeof Uint8Array>"u"?qe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?qe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?qe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?qe:Uint32Array,"%URIError%":H3,"%WeakMap%":typeof WeakMap>"u"?qe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?qe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?qe:WeakSet};if(Bt)try{null.error}catch(e){var G3=Bt(Bt(e));Go["%Error.prototype%"]=G3}var Z3=function e(t){var n;if(t==="%AsyncFunction%")n=op("async function () {}");else if(t==="%GeneratorFunction%")n=op("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=op("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Bt&&(n=Bt(o.prototype))}return Go[t]=n,n},vx={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},es=Xa,sl=L3,Y3=es.call(Function.call,Array.prototype.concat),J3=es.call(Function.apply,Array.prototype.splice),gx=es.call(Function.call,String.prototype.replace),cl=es.call(Function.call,String.prototype.slice),X3=es.call(Function.call,RegExp.prototype.exec),Q3=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e5=/\\(\\)?/g,t5=function(t){var n=cl(t,0,1),r=cl(t,-1);if(n==="%"&&r!=="%")throw new Ii("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ii("invalid intrinsic syntax, expected opening `%`");var o=[];return gx(t,Q3,function(i,a,s,c){o[o.length]=s?gx(c,e5,"$1"):a||i}),o},n5=function(t,n){var r=t,o;if(sl(vx,r)&&(o=vx[r],r="%"+o[0]+"%"),sl(Go,r)){var i=Go[r];if(i===Ni&&(i=Z3(r)),typeof i>"u"&&!n)throw new Ri("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new Ii("intrinsic "+t+" does not exist!")},bx=function(t,n){if(typeof t!="string"||t.length===0)throw new Ri("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Ri('"allowMissing" argument must be a boolean');if(X3(/^%?[^%]*%?$/,t)===null)throw new Ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=t5(t),o=r.length>0?r[0]:"",i=n5("%"+o+"%",n),a=i.name,s=i.value,c=!1,l=i.alias;l&&(o=l[0],J3(r,Y3([0,1],l)));for(var u=1,f=!0;u<r.length;u+=1){var p=r[u],d=cl(p,0,1),h=cl(p,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Ii("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(c=!0),o+="."+p,a="%"+o+"%",sl(Go,a))s=Go[a];else if(s!=null){if(!(p in s)){if(!n)throw new Ri("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ko&&u+1>=r.length){var m=Ko(s,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else f=sl(s,p),s=s[p];f&&!c&&(Go[a]=s)}}return s},wx={exports:{}};(function(e){var t=Xa,n=bx,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),a=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}e.exports=function(f){var p=i(t,o,arguments);if(a&&s){var d=a(p,"length");d.configurable&&s(p,"length",{value:1+c(0,f.length-(arguments.length-1))})}return p};var l=function(){return i(t,r,arguments)};s?s(e.exports,"apply",{value:l}):e.exports.apply=l})(wx);var r5=wx.exports,xx=bx,Sx=r5,o5=Sx(xx("String.prototype.indexOf")),i5=function(t,n){var r=xx(t,!!n);return typeof r=="function"&&o5(t,".prototype.")>-1?Sx(r):r};const a5=pg(OL);var ap=typeof Map=="function"&&Map.prototype,sp=Object.getOwnPropertyDescriptor&&ap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ll=ap&&sp&&typeof sp.get=="function"?sp.get:null,Ex=ap&&Map.prototype.forEach,cp=typeof Set=="function"&&Set.prototype,lp=Object.getOwnPropertyDescriptor&&cp?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ul=cp&&lp&&typeof lp.get=="function"?lp.get:null,_x=cp&&Set.prototype.forEach,s5=typeof WeakMap=="function"&&WeakMap.prototype,ts=s5?WeakMap.prototype.has:null,c5=typeof WeakSet=="function"&&WeakSet.prototype,ns=c5?WeakSet.prototype.has:null,l5=typeof WeakRef=="function"&&WeakRef.prototype,$x=l5?WeakRef.prototype.deref:null,u5=Boolean.prototype.valueOf,f5=Object.prototype.toString,d5=Function.prototype.toString,p5=String.prototype.match,up=String.prototype.slice,lo=String.prototype.replace,h5=String.prototype.toUpperCase,kx=String.prototype.toLowerCase,Cx=RegExp.prototype.test,Tx=Array.prototype.concat,hr=Array.prototype.join,m5=Array.prototype.slice,Ox=Math.floor,fp=typeof BigInt=="function"?BigInt.prototype.valueOf:null,dp=Object.getOwnPropertySymbols,pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Di=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Di||"symbol")?Symbol.toStringTag:null,Ax=Object.prototype.propertyIsEnumerable,Px=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ix(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Cx.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-Ox(-e):Ox(e);if(r!==e){var o=String(r),i=up.call(t,o.length+1);return lo.call(o,n,"$&_")+"."+lo.call(lo.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return lo.call(t,n,"$&_")}var hp=a5,Rx=hp.custom,Mx=jx(Rx)?Rx:null,y5=function e(t,n,r,o){var i=n||{};if(uo(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(uo(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=uo(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(uo(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(uo(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Lx(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return s?Ix(t,c):c}if(typeof t=="bigint"){var l=String(t)+"n";return s?Ix(t,l):l}var u=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=u&&u>0&&typeof t=="object")return mp(t)?"[Array]":"[Object]";var f=M5(i,r);if(typeof o>"u")o=[];else if(Fx(o,t)>=0)return"[Circular]";function p(L,z,N){if(z&&(o=m5.call(o),o.push(z)),N){var D={depth:i.depth};return uo(i,"quoteStyle")&&(D.quoteStyle=i.quoteStyle),e(L,D,r+1,o)}return e(L,i,r+1,o)}if(typeof t=="function"&&!Dx(t)){var d=$5(t),h=fl(t,p);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(h.length>0?" { "+hr.call(h,", ")+" }":"")}if(jx(t)){var m=Di?lo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):pp.call(t);return typeof t=="object"&&!Di?rs(m):m}if(P5(t)){for(var v="<"+kx.call(String(t.nodeName)),y=t.attributes||[],g=0;g<y.length;g++)v+=" "+y[g].name+"="+Nx(v5(y[g].value),"double",i);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+kx.call(String(t.nodeName))+">",v}if(mp(t)){if(t.length===0)return"[]";var b=fl(t,p);return f&&!R5(b)?"["+vp(b,f)+"]":"[ "+hr.call(b,", ")+" ]"}if(b5(t)){var k=fl(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Ax.call(t,"cause")?"{ ["+String(t)+"] "+hr.call(Tx.call("[cause]: "+p(t.cause),k),", ")+" }":k.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+hr.call(k,", ")+" }"}if(typeof t=="object"&&a){if(Mx&&typeof t[Mx]=="function"&&hp)return hp(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(k5(t)){var S=[];return Ex&&Ex.call(t,function(L,z){S.push(p(z,t,!0)+" => "+p(L,t))}),Bx("Map",ll.call(t),S,f)}if(O5(t)){var $=[];return _x&&_x.call(t,function(L){$.push(p(L,t))}),Bx("Set",ul.call(t),$,f)}if(C5(t))return yp("WeakMap");if(A5(t))return yp("WeakSet");if(T5(t))return yp("WeakRef");if(x5(t))return rs(p(Number(t)));if(E5(t))return rs(p(fp.call(t)));if(S5(t))return rs(u5.call(t));if(w5(t))return rs(p(String(t)));if(!g5(t)&&!Dx(t)){var C=fl(t,p),P=Px?Px(t)===Object.prototype:t instanceof Object||t.constructor===Object,F=t instanceof Object?"":"null prototype",T=!P&&Qt&&Object(t)===t&&Qt in t?up.call(fo(t),8,-1):F?"Object":"",R=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=R+(T||F?"["+hr.call(Tx.call([],T||[],F||[]),": ")+"] ":"");return C.length===0?H+"{}":f?H+"{"+vp(C,f)+"}":H+"{ "+hr.call(C,", ")+" }"}return String(t)};function Nx(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function v5(e){return lo.call(String(e),/"/g,""")}function mp(e){return fo(e)==="[object Array]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function g5(e){return fo(e)==="[object Date]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function Dx(e){return fo(e)==="[object RegExp]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function b5(e){return fo(e)==="[object Error]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function w5(e){return fo(e)==="[object String]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function x5(e){return fo(e)==="[object Number]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function S5(e){return fo(e)==="[object Boolean]"&&(!Qt||!(typeof e=="object"&&Qt in e))}function jx(e){if(Di)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!pp)return!1;try{return pp.call(e),!0}catch{}return!1}function E5(e){if(!e||typeof e!="object"||!fp)return!1;try{return fp.call(e),!0}catch{}return!1}var _5=Object.prototype.hasOwnProperty||function(e){return e in this};function uo(e,t){return _5.call(e,t)}function fo(e){return f5.call(e)}function $5(e){if(e.name)return e.name;var t=p5.call(d5.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Fx(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function k5(e){if(!ll||!e||typeof e!="object")return!1;try{ll.call(e);try{ul.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function C5(e){if(!ts||!e||typeof e!="object")return!1;try{ts.call(e,ts);try{ns.call(e,ns)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function T5(e){if(!$x||!e||typeof e!="object")return!1;try{return $x.call(e),!0}catch{}return!1}function O5(e){if(!ul||!e||typeof e!="object")return!1;try{ul.call(e);try{ll.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function A5(e){if(!ns||!e||typeof e!="object")return!1;try{ns.call(e,ns);try{ts.call(e,ts)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function P5(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Lx(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Lx(up.call(e,0,t.maxStringLength),t)+r}var o=lo.call(lo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,I5);return Nx(o,"single",t)}function I5(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+h5.call(t.toString(16))}function rs(e){return"Object("+e+")"}function yp(e){return e+" { ? }"}function Bx(e,t,n,r){var o=r?vp(n,r):hr.call(n,", ");return e+" ("+t+") {"+o+"}"}function R5(e){for(var t=0;t<e.length;t++)if(Fx(e[t],`
|
|
57
57
|
`)>=0)return!1;return!0}function M5(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=hr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:hr.call(Array(t+1),n)}}function vp(e,t){if(e.length===0)return"";var n=`
|