@piedata/pieui 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,38 +1,28 @@
1
- var CX=Object.create;var{getPrototypeOf:jX,defineProperty:R0,getOwnPropertyNames:H7,getOwnPropertyDescriptor:_X}=Object,z7=Object.prototype.hasOwnProperty;var j=(Z,J,Y)=>{Y=Z!=null?CX(jX(Z)):{};let Q=J||!Z||!Z.__esModule?R0(Y,"default",{value:Z,enumerable:!0}):Y;for(let X of H7(Z))if(!z7.call(Q,X))R0(Q,X,{get:()=>Z[X],enumerable:!0});return Q},W7=new WeakMap,vX=(Z)=>{var J=W7.get(Z),Y;if(J)return J;if(J=R0({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")H7(Z).map((Q)=>!z7.call(J,Q)&&R0(J,Q,{get:()=>Z[Q],enumerable:!(Y=_X(Z,Q))||Y.enumerable}));return W7.set(Z,J),J},A=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var B7=(Z,J)=>{for(var Y in J)R0(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:(Q)=>J[Y]=()=>Q})};var U7=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var I7=A((_O,$7)=>{var sX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";$7.exports=sX});var N7=A((vO,D7)=>{var rX=I7();function V7(){}function q7(){}q7.resetWarningCache=V7;D7.exports=function(){function Z(Q,X,G,W,H,z){if(z===rX)return;var B=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}Z.isRequired=Z;function J(){return Z}var Y={array:Z,bigint:Z,bool:Z,func:Z,number:Z,object:Z,string:Z,symbol:Z,any:Z,arrayOf:J,element:Z,elementType:Z,instanceOf:J,node:Z,objectOf:J,oneOf:J,oneOfType:J,shape:J,exact:J,checkPropTypes:q7,resetWarningCache:V7};return Y.PropTypes=Y,Y}});var S6=A((kO,A7)=>{A7.exports=N7()();var tX,eX});function KG(Z){if(typeof Z==="object"&&Z!==null){var J=Z.$$typeof;switch(J){case ZG:switch(Z=Z.type,Z){case HG:case zG:case YG:case XG:case QG:case BG:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case WG:case R7:case UG:case P7:case GG:return Z;default:return J}}case JG:return J}}}var W1,ZG,JG,YG,QG,XG,GG,WG,HG,zG,R7,BG,P7,UG,x6,f6=function(Z){return KG(Z)===P7};var T7=U7(()=>{W1=typeof Symbol==="function"&&Symbol.for,ZG=W1?Symbol.for("react.element"):60103,JG=W1?Symbol.for("react.portal"):60106,YG=W1?Symbol.for("react.fragment"):60107,QG=W1?Symbol.for("react.strict_mode"):60108,XG=W1?Symbol.for("react.profiler"):60114,GG=W1?Symbol.for("react.provider"):60109,WG=W1?Symbol.for("react.context"):60110,HG=W1?Symbol.for("react.async_mode"):60111,zG=W1?Symbol.for("react.concurrent_mode"):60111,R7=W1?Symbol.for("react.forward_ref"):60112,BG=W1?Symbol.for("react.suspense"):60113,P7=W1?Symbol.for("react.memo"):60115,UG=W1?Symbol.for("react.lazy"):60116;x6=R7});var C6=A((hO,C7)=>{T7();var MG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},FG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},OG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},x7={};x7[x6]=OG;function w7(Z){if(f6(Z))return $G;return x7[Z.$$typeof]||MG}var{defineProperty:IG,getOwnPropertyNames:VG,getOwnPropertySymbols:E7,getOwnPropertyDescriptor:qG,getPrototypeOf:DG,prototype:S7}=Object;function f7(Z,J,Y){if(typeof J!=="string"){if(S7){var Q=DG(J);if(Q&&Q!==S7)f7(Z,Q,Y)}var X=VG(J);if(E7)X=X.concat(E7(J));var G=w7(Z),W=w7(J);for(var H=0;H<X.length;++H){var z=X[H];if(!FG[z]&&!(Y&&Y[z])&&!(W&&W[z])&&!(G&&G[z])){var B=qG(J,z);try{IG(Z,z,B)}catch(U){}}}return Z}return Z}C7.exports=f7});var M5=A((v6,_7)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.default=TG;function TG(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}_7.exports=v6.default});var k7=A((k6,v7)=>{Object.defineProperty(k6,"__esModule",{value:!0});k6.default=fG;var EG=M5(),SG=xG(EG);function xG(Z){return Z&&Z.__esModule?Z:{default:Z}}function fG(Z,J,Y){if(Z.hasOwnProperty(J)){var Q={},X=Z[J],G=(0,SG.default)(J),W=Object.keys(Y);for(var H=0;H<W.length;H++){var z=W[H];if(z===J)for(var B=0;B<X.length;B++)Q[X[B]+G]=Y[J];Q[z]=Y[z]}return Q}return Y}v7.exports=k6.default});var b6=A((h6,h7)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.default=jG;function jG(Z,J,Y,Q,X){for(var G=0,W=Z.length;G<W;++G){var H=Z[G](J,Y,Q,X);if(H)return H}}h7.exports=h6.default});var y6=A((g6,g7)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=vG;function b7(Z,J){if(Z.indexOf(J)===-1)Z.push(J)}function vG(Z,J){if(Array.isArray(J))for(var Y=0,Q=J.length;Y<Q;++Y)b7(Z,J[Y]);else b7(Z,J)}g7.exports=g6.default});var u6=A((m6,y7)=>{Object.defineProperty(m6,"__esModule",{value:!0});m6.default=hG;function hG(Z){return Z instanceof Object&&!Array.isArray(Z)}y7.exports=m6.default});var d7=A((d6,u7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=lG;var gG=k7(),yG=F5(gG),mG=b6(),m7=F5(mG),uG=y6(),dG=F5(uG),cG=u6(),pG=F5(cG);function F5(Z){return Z&&Z.__esModule?Z:{default:Z}}function lG(Z){var{prefixMap:J,plugins:Y}=Z;function Q(X){for(var G in X){var W=X[G];if((0,pG.default)(W))X[G]=Q(W);else if(Array.isArray(W)){var H=[];for(var z=0,B=W.length;z<B;++z){var U=(0,m7.default)(Y,G,W[z],X,J);(0,dG.default)(H,U||W[z])}if(H.length>0)X[G]=H}else{var L=(0,m7.default)(Y,G,W,X,J);if(L)X[G]=L;X=(0,yG.default)(J,G,X)}}return X}return Q}u7.exports=d6.default});var p7=A((c7,O5)=>{/*!
1
+ var EX=Object.create;var{getPrototypeOf:SX,defineProperty:A0,getOwnPropertyNames:G7,getOwnPropertyDescriptor:xX}=Object,W7=Object.prototype.hasOwnProperty;var S=(Z,J,Y)=>{Y=Z!=null?EX(SX(Z)):{};let Q=J||!Z||!Z.__esModule?A0(Y,"default",{value:Z,enumerable:!0}):Y;for(let X of G7(Z))if(!W7.call(Q,X))A0(Q,X,{get:()=>Z[X],enumerable:!0});return Q},X7=new WeakMap,CX=(Z)=>{var J=X7.get(Z),Y;if(J)return J;if(J=A0({},"__esModule",{value:!0}),Z&&typeof Z==="object"||typeof Z==="function")G7(Z).map((Q)=>!W7.call(J,Q)&&A0(J,Q,{get:()=>Z[Q],enumerable:!(Y=xX(Z,Q))||Y.enumerable}));return X7.set(Z,J),J},A=(Z,J)=>()=>(J||Z((J={exports:{}}).exports,J),J.exports);var H7=(Z,J)=>{for(var Y in J)A0(Z,Y,{get:J[Y],enumerable:!0,configurable:!0,set:(Q)=>J[Y]=()=>Q})};var z7=(Z,J)=>()=>(Z&&(J=Z(Z=0)),J);var $7=A((C$,F7)=>{var iX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";F7.exports=iX});var q7=A((f$,I7)=>{var nX=$7();function O7(){}function V7(){}V7.resetWarningCache=O7;I7.exports=function(){function Z(Q,X,G,W,H,z){if(z===nX)return;var U=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}Z.isRequired=Z;function J(){return Z}var Y={array:Z,bigint:Z,bool:Z,func:Z,number:Z,object:Z,string:Z,symbol:Z,any:Z,arrayOf:J,element:Z,elementType:Z,instanceOf:J,node:Z,objectOf:J,oneOf:J,oneOfType:J,shape:J,exact:J,checkPropTypes:V7,resetWarningCache:O7};return Y.PropTypes=Y,Y}});var w6=A((j$,D7)=>{D7.exports=q7()();var oX,aX});function HG(Z){if(typeof Z==="object"&&Z!==null){var J=Z.$$typeof;switch(J){case sX:switch(Z=Z.type,Z){case QG:case XG:case tX:case ZG:case eX:case GG:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case YG:case N7:case WG:case A7:case JG:return Z;default:return J}}case rX:return J}}}var J1,sX,rX,tX,eX,ZG,JG,YG,QG,XG,N7,GG,A7,WG,E6,S6=function(Z){return HG(Z)===A7};var R7=z7(()=>{J1=typeof Symbol==="function"&&Symbol.for,sX=J1?Symbol.for("react.element"):60103,rX=J1?Symbol.for("react.portal"):60106,tX=J1?Symbol.for("react.fragment"):60107,eX=J1?Symbol.for("react.strict_mode"):60108,ZG=J1?Symbol.for("react.profiler"):60114,JG=J1?Symbol.for("react.provider"):60109,YG=J1?Symbol.for("react.context"):60110,QG=J1?Symbol.for("react.async_mode"):60111,XG=J1?Symbol.for("react.concurrent_mode"):60111,N7=J1?Symbol.for("react.forward_ref"):60112,GG=J1?Symbol.for("react.suspense"):60113,A7=J1?Symbol.for("react.memo"):60115,WG=J1?Symbol.for("react.lazy"):60116;E6=N7});var x6=A((_$,x7)=>{R7();var UG={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},BG={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},KG={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LG={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E7={};E7[E6]=KG;function P7(Z){if(S6(Z))return LG;return E7[Z.$$typeof]||UG}var{defineProperty:MG,getOwnPropertyNames:FG,getOwnPropertySymbols:T7,getOwnPropertyDescriptor:$G,getPrototypeOf:OG,prototype:w7}=Object;function S7(Z,J,Y){if(typeof J!=="string"){if(w7){var Q=OG(J);if(Q&&Q!==w7)S7(Z,Q,Y)}var X=FG(J);if(T7)X=X.concat(T7(J));var G=P7(Z),W=P7(J);for(var H=0;H<X.length;++H){var z=X[H];if(!BG[z]&&!(Y&&Y[z])&&!(W&&W[z])&&!(G&&G[z])){var U=$G(J,z);try{MG(Z,z,U)}catch(B){}}}return Z}return Z}x7.exports=S7});var K5=A((j6,f7)=>{Object.defineProperty(j6,"__esModule",{value:!0});j6.default=NG;function NG(Z){return Z.charAt(0).toUpperCase()+Z.slice(1)}f7.exports=j6.default});var _7=A((_6,j7)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.default=wG;var RG=K5(),PG=TG(RG);function TG(Z){return Z&&Z.__esModule?Z:{default:Z}}function wG(Z,J,Y){if(Z.hasOwnProperty(J)){var Q={},X=Z[J],G=(0,PG.default)(J),W=Object.keys(Y);for(var H=0;H<W.length;H++){var z=W[H];if(z===J)for(var U=0;U<X.length;U++)Q[X[U]+G]=Y[J];Q[z]=Y[z]}return Q}return Y}j7.exports=_6.default});var k6=A((v6,v7)=>{Object.defineProperty(v6,"__esModule",{value:!0});v6.default=SG;function SG(Z,J,Y,Q,X){for(var G=0,W=Z.length;G<W;++G){var H=Z[G](J,Y,Q,X);if(H)return H}}v7.exports=v6.default});var b6=A((h6,h7)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.default=CG;function k7(Z,J){if(Z.indexOf(J)===-1)Z.push(J)}function CG(Z,J){if(Array.isArray(J))for(var Y=0,Q=J.length;Y<Q;++Y)k7(Z,J[Y]);else k7(Z,J)}h7.exports=h6.default});var y6=A((g6,b7)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.default=jG;function jG(Z){return Z instanceof Object&&!Array.isArray(Z)}b7.exports=g6.default});var m7=A((m6,y7)=>{Object.defineProperty(m6,"__esModule",{value:!0});m6.default=uG;var vG=_7(),kG=L5(vG),hG=k6(),g7=L5(hG),bG=b6(),gG=L5(bG),yG=y6(),mG=L5(yG);function L5(Z){return Z&&Z.__esModule?Z:{default:Z}}function uG(Z){var{prefixMap:J,plugins:Y}=Z;function Q(X){for(var G in X){var W=X[G];if((0,mG.default)(W))X[G]=Q(W);else if(Array.isArray(W)){var H=[];for(var z=0,U=W.length;z<U;++z){var B=(0,g7.default)(Y,G,W[z],X,J);(0,gG.default)(H,B||W[z])}if(H.length>0)X[G]=H}else{var L=(0,g7.default)(Y,G,W,X,J);if(L)X[G]=L;X=(0,kG.default)(J,G,X)}}return X}return Q}y7.exports=m6.default});var d7=A((u7,M5)=>{/*!
2
2
  * Bowser - a browser detector
3
3
  * https://github.com/ded/bowser
4
4
  * MIT License | (c) Dustin Diaz 2015
5
- */(function(Z,J,Y){if(typeof O5<"u"&&O5.exports)O5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(c7,"bowser",function(){var Z=!0;function J(z){function B(v1){var S1=z.match(v1);return S1&&S1.length>1&&S1[1]||""}function U(v1){var S1=z.match(v1);return S1&&S1.length>1&&S1[2]||""}var L=B(/(ipod|iphone|ipad)/i).toLowerCase(),$=/like android/i.test(z),M=!$&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),F=!K&&/nexus\s*[0-9]+/i.test(z),I=/CrOS/.test(z),N=/silk/i.test(z),w=/sailfish/i.test(z),q=/tizen/i.test(z),D=/(web|hpw)(o|0)s/i.test(z),E=/windows phone/i.test(z),v=/SamsungBrowser/i.test(z),m=!E&&/windows/i.test(z),q1=!L&&!N&&/macintosh/i.test(z),R=!M&&!w&&!q&&!D&&/linux/i.test(z),S=U(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),T=B(/version\/(\d+(\.\d+)?)/i),C=/tablet/i.test(z)&&!/tablet pc/i.test(z),k=!C&&/[^-]mobi/i.test(z),u=/xbox/i.test(z),O;if(/opera/i.test(z))O={name:"Opera",opera:Z,version:T||B(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))O={name:"Opera",opera:Z,version:B(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||T};else if(/SamsungBrowser/i.test(z))O={name:"Samsung Internet for Android",samsungBrowser:Z,version:T||B(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))O={name:"NAVER Whale browser",whale:Z,version:B(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))O={name:"MZ Browser",mzbrowser:Z,version:B(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))O={name:"Opera Coast",coast:Z,version:T||B(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))O={name:"Focus",focus:Z,version:B(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))O={name:"Yandex Browser",yandexbrowser:Z,version:T||B(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))O={name:"UC Browser",ucbrowser:Z,version:B(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))O={name:"Maxthon",maxthon:Z,version:B(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))O={name:"Epiphany",epiphany:Z,version:B(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))O={name:"Puffin",puffin:Z,version:B(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))O={name:"Sleipnir",sleipnir:Z,version:B(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))O={name:"K-Meleon",kMeleon:Z,version:B(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(E)if(O={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},S)O.msedge=Z,O.version=S;else O.msie=Z,O.version=B(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))O={name:"Internet Explorer",msie:Z,version:B(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(I)O={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:B(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))O={name:"Microsoft Edge",msedge:Z,version:S};else if(/vivaldi/i.test(z))O={name:"Vivaldi",vivaldi:Z,version:B(/vivaldi\/(\d+(\.\d+)?)/i)||T};else if(w)O={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:B(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))O={name:"SeaMonkey",seamonkey:Z,version:B(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if(O={name:"Firefox",firefox:Z,version:B(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))O.firefoxos=Z,O.osname="Firefox OS"}else if(N)O={name:"Amazon Silk",silk:Z,version:B(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))O={name:"PhantomJS",phantom:Z,version:B(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))O={name:"SlimerJS",slimer:Z,version:B(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))O={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:T||B(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(D)O={name:"WebOS",osname:"WebOS",webos:Z,version:T||B(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&(O.touchpad=Z);else if(/bada/i.test(z))O={name:"Bada",osname:"Bada",bada:Z,version:B(/dolfin\/(\d+(\.\d+)?)/i)};else if(q)O={name:"Tizen",osname:"Tizen",tizen:Z,version:B(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||T};else if(/qupzilla/i.test(z))O={name:"QupZilla",qupzilla:Z,version:B(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||T};else if(/chromium/i.test(z))O={name:"Chromium",chromium:Z,version:B(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||T};else if(/chrome|crios|crmo/i.test(z))O={name:"Chrome",chrome:Z,version:B(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(M)O={name:"Android",version:T};else if(/safari|applewebkit/i.test(z)){if(O={name:"Safari",safari:Z},T)O.version=T}else if(L){if(O={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},T)O.version=T}else if(/googlebot/i.test(z))O={name:"Googlebot",googlebot:Z,version:B(/googlebot\/(\d+(\.\d+))/i)||T};else O={name:B(/^(.*)\/(.*) /),version:U(/^(.*)\/(.*) /)};if(!O.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))O.name=O.name||"Blink",O.blink=Z;else O.name=O.name||"Webkit",O.webkit=Z;if(!O.version&&T)O.version=T}else if(!O.opera&&/gecko\//i.test(z))O.name=O.name||"Gecko",O.gecko=Z,O.version=O.version||B(/gecko\/(\d+(\.\d+)?)/i);if(!O.windowsphone&&(M||O.silk))O.android=Z,O.osname="Android";else if(!O.windowsphone&&L)O[L]=Z,O.ios=Z,O.osname="iOS";else if(q1)O.mac=Z,O.osname="macOS";else if(u)O.xbox=Z,O.osname="Xbox";else if(m)O.windows=Z,O.osname="Windows";else if(R)O.linux=Z,O.osname="Linux";function o(v1){switch(v1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var p="";if(O.windows)p=o(B(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if(O.windowsphone)p=B(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if(O.mac)p=B(/Mac OS X (\d+([_\.\s]\d+)*)/i),p=p.replace(/[_\s]/g,".");else if(L)p=B(/os (\d+([_\s]\d+)*) like mac os x/i),p=p.replace(/[_\s]/g,".");else if(M)p=B(/android[ \/-](\d+(\.\d+)*)/i);else if(O.webos)p=B(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if(O.blackberry)p=B(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if(O.bada)p=B(/bada\/(\d+(\.\d+)*)/i);else if(O.tizen)p=B(/tizen[\/\s](\d+(\.\d+)*)/i);if(p)O.osversion=p;var F1=!O.windows&&p.split(".")[0];if(C||F||L=="ipad"||M&&(F1==3||F1>=4&&!k)||O.silk)O.tablet=Z;else if(k||L=="iphone"||L=="ipod"||M||K||O.blackberry||O.webos||O.bada)O.mobile=Z;if(O.msedge||O.msie&&O.version>=10||O.yandexbrowser&&O.version>=15||O.vivaldi&&O.version>=1||O.chrome&&O.version>=20||O.samsungBrowser&&O.version>=4||O.whale&&G([O.version,"1.0"])===1||O.mzbrowser&&G([O.version,"6.0"])===1||O.focus&&G([O.version,"1.0"])===1||O.firefox&&O.version>=20||O.safari&&O.version>=6||O.opera&&O.version>=10||O.ios&&O.osversion&&O.osversion.split(".")[0]>=6||O.blackberry&&O.version>=10.1||O.chromium&&O.version>=20)O.a=Z;else if(O.msie&&O.version<10||O.chrome&&O.version<20||O.firefox&&O.version<20||O.safari&&O.version<6||O.opera&&O.version<10||O.ios&&O.osversion&&O.osversion.split(".")[0]<6||O.chromium&&O.version<20)O.c=Z;else O.x=Z;return O}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var B=0;B<z.length;++B){var U=z[B];if(typeof U==="string"){if(U in Y)return!0}}return!1};function Q(z){return z.split(".").length}function X(z,B){var U=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,B);for(L=0;L<z.length;L++)U.push(B(z[L]));return U}function G(z){var B=Math.max(Q(z[0]),Q(z[1])),U=X(z,function(L){var $=B-Q(L);return L=L+Array($+1).join(".0"),X(L.split("."),function(M){return Array(20-M.length).join("0")+M}).reverse()});while(--B>=0)if(U[0][B]>U[1][B])return 1;else if(U[0][B]===U[1][B]){if(B===0)return 0}else return-1}function W(z,B,U){var L=Y;if(typeof B==="string")U=B,B=void 0;if(B===void 0)B=!1;if(U)L=J(U);var $=""+L.version;for(var M in z)if(z.hasOwnProperty(M)){if(L[M]){if(typeof z[M]!=="string")throw Error("Browser version in the minVersion map should be a string: "+M+": "+String(z));return G([$,z[M]])<0}}return B}function H(z,B,U){return!W(z,B,U)}return Y.isUnsupportedBrowser=W,Y.compareVersions=G,Y.check=H,Y._detect=J,Y.detect=J,Y})});var a7=A((c6,o7)=>{Object.defineProperty(c6,"__esModule",{value:!0});c6.default=sG;var nG=p7(),l7=oG(nG);function oG(Z){return Z&&Z.__esModule?Z:{default:Z}}var i7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},n7={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function aG(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in n7)if(Z.hasOwnProperty(J))return n7[J]}function sG(Z){var J=l7.default._detect(Z);if(J.yandexbrowser)J=l7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in i7)if(J.hasOwnProperty(Y)){var Q=i7[Y];J.jsPrefix=Q,J.cssPrefix="-"+Q.toLowerCase()+"-";break}if(J.browserName=aG(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}o7.exports=c6.default});var r7=A((p6,s7)=>{Object.defineProperty(p6,"__esModule",{value:!0});p6.default=tG;function tG(Z,J,Y){var Q="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+Q;return Q}s7.exports=p6.default});var Z4=A((l6,e7)=>{Object.defineProperty(l6,"__esModule",{value:!0});var ZW=function(){function Z(J,Y){for(var Q=0;Q<Y.length;Q++){var X=Y[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(J,X.key,X)}}return function(J,Y,Q){if(Y)Z(J.prototype,Y);if(Q)Z(J,Q);return J}}();l6.default=MW;var JW=a7(),YW=z0(JW),QW=r7(),XW=z0(QW),GW=M5(),WW=z0(GW),HW=y6(),zW=z0(HW),BW=u6(),UW=z0(BW),KW=b6(),t7=z0(KW);function z0(Z){return Z&&Z.__esModule?Z:{default:Z}}function LW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function MW(Z){var{prefixMap:J,plugins:Y}=Z,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(X){return X};return function(){function X(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};LW(this,X);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=G.userAgent||W,this._keepUnprefixed=G.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,YW.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,XW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return ZW(X,[{key:"prefix",value:function(W){if(this._useFallback)return Q(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,UW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var B=[];for(var U=0,L=z.length;U<L;++U){var $=(0,t7.default)(Y,H,z[U],W,this._metaData);(0,zW.default)(B,$||z[U])}if(B.length>0)W[H]=B}else{var M=(0,t7.default)(Y,H,z,W,this._metaData);if(M)W[H]=M;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,WW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return Q(W)}}]),X}()}e7.exports=l6.default});var i6=A((cO,$5)=>{/*!
5
+ */(function(Z,J,Y){if(typeof M5<"u"&&M5.exports)M5.exports=Y();else if(typeof define=="function"&&define.amd)define(J,Y);else Z[J]=Y()})(u7,"bowser",function(){var Z=!0;function J(z){function U(_1){var T1=z.match(_1);return T1&&T1.length>1&&T1[1]||""}function B(_1){var T1=z.match(_1);return T1&&T1.length>1&&T1[2]||""}var L=U(/(ipod|iphone|ipad)/i).toLowerCase(),V=/like android/i.test(z),F=!V&&/android/i.test(z),K=/nexus\s*[0-6]\s*/i.test(z),M=!K&&/nexus\s*[0-9]+/i.test(z),I=/CrOS/.test(z),N=/silk/i.test(z),P=/sailfish/i.test(z),D=/tizen/i.test(z),q=/(web|hpw)(o|0)s/i.test(z),E=/windows phone/i.test(z),C=/SamsungBrowser/i.test(z),m=!E&&/windows/i.test(z),i1=!L&&!N&&/macintosh/i.test(z),f1=!F&&!P&&!D&&!q&&/linux/i.test(z),j1=B(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),v=U(/version\/(\d+(\.\d+)?)/i),R1=/tablet/i.test(z)&&!/tablet pc/i.test(z),c=!R1&&/[^-]mobi/i.test(z),P1=/xbox/i.test(z),$;if(/opera/i.test(z))$={name:"Opera",opera:Z,version:v||U(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)};else if(/opr\/|opios/i.test(z))$={name:"Opera",opera:Z,version:U(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||v};else if(/SamsungBrowser/i.test(z))$={name:"Samsung Internet for Android",samsungBrowser:Z,version:v||U(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/Whale/i.test(z))$={name:"NAVER Whale browser",whale:Z,version:U(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)};else if(/MZBrowser/i.test(z))$={name:"MZ Browser",mzbrowser:Z,version:U(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/coast/i.test(z))$={name:"Opera Coast",coast:Z,version:v||U(/(?:coast)[\s\/](\d+(\.\d+)?)/i)};else if(/focus/i.test(z))$={name:"Focus",focus:Z,version:U(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)};else if(/yabrowser/i.test(z))$={name:"Yandex Browser",yandexbrowser:Z,version:v||U(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)};else if(/ucbrowser/i.test(z))$={name:"UC Browser",ucbrowser:Z,version:U(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)};else if(/mxios/i.test(z))$={name:"Maxthon",maxthon:Z,version:U(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)};else if(/epiphany/i.test(z))$={name:"Epiphany",epiphany:Z,version:U(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)};else if(/puffin/i.test(z))$={name:"Puffin",puffin:Z,version:U(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)};else if(/sleipnir/i.test(z))$={name:"Sleipnir",sleipnir:Z,version:U(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)};else if(/k-meleon/i.test(z))$={name:"K-Meleon",kMeleon:Z,version:U(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)};else if(E)if($={name:"Windows Phone",osname:"Windows Phone",windowsphone:Z},j1)$.msedge=Z,$.version=j1;else $.msie=Z,$.version=U(/iemobile\/(\d+(\.\d+)?)/i);else if(/msie|trident/i.test(z))$={name:"Internet Explorer",msie:Z,version:U(/(?:msie |rv:)(\d+(\.\d+)?)/i)};else if(I)$={name:"Chrome",osname:"Chrome OS",chromeos:Z,chromeBook:Z,chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(/edg([ea]|ios)/i.test(z))$={name:"Microsoft Edge",msedge:Z,version:j1};else if(/vivaldi/i.test(z))$={name:"Vivaldi",vivaldi:Z,version:U(/vivaldi\/(\d+(\.\d+)?)/i)||v};else if(P)$={name:"Sailfish",osname:"Sailfish OS",sailfish:Z,version:U(/sailfish\s?browser\/(\d+(\.\d+)?)/i)};else if(/seamonkey\//i.test(z))$={name:"SeaMonkey",seamonkey:Z,version:U(/seamonkey\/(\d+(\.\d+)?)/i)};else if(/firefox|iceweasel|fxios/i.test(z)){if($={name:"Firefox",firefox:Z,version:U(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(z))$.firefoxos=Z,$.osname="Firefox OS"}else if(N)$={name:"Amazon Silk",silk:Z,version:U(/silk\/(\d+(\.\d+)?)/i)};else if(/phantom/i.test(z))$={name:"PhantomJS",phantom:Z,version:U(/phantomjs\/(\d+(\.\d+)?)/i)};else if(/slimerjs/i.test(z))$={name:"SlimerJS",slimer:Z,version:U(/slimerjs\/(\d+(\.\d+)?)/i)};else if(/blackberry|\bbb\d+/i.test(z)||/rim\stablet/i.test(z))$={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Z,version:v||U(/blackberry[\d]+\/(\d+(\.\d+)?)/i)};else if(q)$={name:"WebOS",osname:"WebOS",webos:Z,version:v||U(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(z)&&($.touchpad=Z);else if(/bada/i.test(z))$={name:"Bada",osname:"Bada",bada:Z,version:U(/dolfin\/(\d+(\.\d+)?)/i)};else if(D)$={name:"Tizen",osname:"Tizen",tizen:Z,version:U(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||v};else if(/qupzilla/i.test(z))$={name:"QupZilla",qupzilla:Z,version:U(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||v};else if(/chromium/i.test(z))$={name:"Chromium",chromium:Z,version:U(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||v};else if(/chrome|crios|crmo/i.test(z))$={name:"Chrome",chrome:Z,version:U(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)};else if(F)$={name:"Android",version:v};else if(/safari|applewebkit/i.test(z)){if($={name:"Safari",safari:Z},v)$.version=v}else if(L){if($={name:L=="iphone"?"iPhone":L=="ipad"?"iPad":"iPod"},v)$.version=v}else if(/googlebot/i.test(z))$={name:"Googlebot",googlebot:Z,version:U(/googlebot\/(\d+(\.\d+))/i)||v};else $={name:U(/^(.*)\/(.*) /),version:B(/^(.*)\/(.*) /)};if(!$.msedge&&/(apple)?webkit/i.test(z)){if(/(apple)?webkit\/537\.36/i.test(z))$.name=$.name||"Blink",$.blink=Z;else $.name=$.name||"Webkit",$.webkit=Z;if(!$.version&&v)$.version=v}else if(!$.opera&&/gecko\//i.test(z))$.name=$.name||"Gecko",$.gecko=Z,$.version=$.version||U(/gecko\/(\d+(\.\d+)?)/i);if(!$.windowsphone&&(F||$.silk))$.android=Z,$.osname="Android";else if(!$.windowsphone&&L)$[L]=Z,$.ios=Z,$.osname="iOS";else if(i1)$.mac=Z,$.osname="macOS";else if(P1)$.xbox=Z,$.osname="Xbox";else if(m)$.windows=Z,$.osname="Windows";else if(f1)$.linux=Z,$.osname="Linux";function X1(_1){switch(_1){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var g="";if($.windows)g=X1(U(/Windows ((NT|XP)( \d\d?.\d)?)/i));else if($.windowsphone)g=U(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i);else if($.mac)g=U(/Mac OS X (\d+([_\.\s]\d+)*)/i),g=g.replace(/[_\s]/g,".");else if(L)g=U(/os (\d+([_\s]\d+)*) like mac os x/i),g=g.replace(/[_\s]/g,".");else if(F)g=U(/android[ \/-](\d+(\.\d+)*)/i);else if($.webos)g=U(/(?:web|hpw)os\/(\d+(\.\d+)*)/i);else if($.blackberry)g=U(/rim\stablet\sos\s(\d+(\.\d+)*)/i);else if($.bada)g=U(/bada\/(\d+(\.\d+)*)/i);else if($.tizen)g=U(/tizen[\/\s](\d+(\.\d+)*)/i);if(g)$.osversion=g;var B1=!$.windows&&g.split(".")[0];if(R1||M||L=="ipad"||F&&(B1==3||B1>=4&&!c)||$.silk)$.tablet=Z;else if(c||L=="iphone"||L=="ipod"||F||K||$.blackberry||$.webos||$.bada)$.mobile=Z;if($.msedge||$.msie&&$.version>=10||$.yandexbrowser&&$.version>=15||$.vivaldi&&$.version>=1||$.chrome&&$.version>=20||$.samsungBrowser&&$.version>=4||$.whale&&G([$.version,"1.0"])===1||$.mzbrowser&&G([$.version,"6.0"])===1||$.focus&&G([$.version,"1.0"])===1||$.firefox&&$.version>=20||$.safari&&$.version>=6||$.opera&&$.version>=10||$.ios&&$.osversion&&$.osversion.split(".")[0]>=6||$.blackberry&&$.version>=10.1||$.chromium&&$.version>=20)$.a=Z;else if($.msie&&$.version<10||$.chrome&&$.version<20||$.firefox&&$.version<20||$.safari&&$.version<6||$.opera&&$.version<10||$.ios&&$.osversion&&$.osversion.split(".")[0]<6||$.chromium&&$.version<20)$.c=Z;else $.x=Z;return $}var Y=J(typeof navigator<"u"?navigator.userAgent||"":"");Y.test=function(z){for(var U=0;U<z.length;++U){var B=z[U];if(typeof B==="string"){if(B in Y)return!0}}return!1};function Q(z){return z.split(".").length}function X(z,U){var B=[],L;if(Array.prototype.map)return Array.prototype.map.call(z,U);for(L=0;L<z.length;L++)B.push(U(z[L]));return B}function G(z){var U=Math.max(Q(z[0]),Q(z[1])),B=X(z,function(L){var V=U-Q(L);return L=L+Array(V+1).join(".0"),X(L.split("."),function(F){return Array(20-F.length).join("0")+F}).reverse()});while(--U>=0)if(B[0][U]>B[1][U])return 1;else if(B[0][U]===B[1][U]){if(U===0)return 0}else return-1}function W(z,U,B){var L=Y;if(typeof U==="string")B=U,U=void 0;if(U===void 0)U=!1;if(B)L=J(B);var V=""+L.version;for(var F in z)if(z.hasOwnProperty(F)){if(L[F]){if(typeof z[F]!=="string")throw Error("Browser version in the minVersion map should be a string: "+F+": "+String(z));return G([V,z[F]])<0}}return U}function H(z,U,B){return!W(z,U,B)}return Y.isUnsupportedBrowser=W,Y.compareVersions=G,Y.check=H,Y._detect=J,Y.detect=J,Y})});var n7=A((u6,i7)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.default=iG;var cG=d7(),c7=pG(cG);function pG(Z){return Z&&Z.__esModule?Z:{default:Z}}var p7={chrome:"Webkit",safari:"Webkit",ios:"Webkit",android:"Webkit",phantom:"Webkit",opera:"Webkit",webos:"Webkit",blackberry:"Webkit",bada:"Webkit",tizen:"Webkit",chromium:"Webkit",vivaldi:"Webkit",firefox:"Moz",seamoney:"Moz",sailfish:"Moz",msie:"ms",msedge:"ms"},l7={chrome:"chrome",chromium:"chrome",safari:"safari",firfox:"firefox",msedge:"edge",opera:"opera",vivaldi:"opera",msie:"ie"};function lG(Z){if(Z.firefox)return"firefox";if(Z.mobile||Z.tablet){if(Z.ios)return"ios_saf";else if(Z.android)return"android";else if(Z.opera)return"op_mini"}for(var J in l7)if(Z.hasOwnProperty(J))return l7[J]}function iG(Z){var J=c7.default._detect(Z);if(J.yandexbrowser)J=c7.default._detect(Z.replace(/YaBrowser\/[0-9.]*/,""));for(var Y in p7)if(J.hasOwnProperty(Y)){var Q=p7[Y];J.jsPrefix=Q,J.cssPrefix="-"+Q.toLowerCase()+"-";break}if(J.browserName=lG(J),J.version)J.browserVersion=parseFloat(J.version);else J.browserVersion=parseInt(parseFloat(J.osversion),10);if(J.osVersion=parseFloat(J.osversion),J.browserName==="ios_saf"&&J.browserVersion>J.osVersion)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.chrome&&J.browserVersion>37)J.browserName="and_chr";if(J.browserName==="android"&&J.osVersion<5)J.browserVersion=J.osVersion;if(J.browserName==="android"&&J.samsungBrowser)J.browserName="and_chr",J.browserVersion=44;return J}i7.exports=u6.default});var a7=A((d6,o7)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.default=oG;function oG(Z,J,Y){var Q="keyframes";if(Z==="chrome"&&J<43||(Z==="safari"||Z==="ios_saf")&&J<9||Z==="opera"&&J<30||Z==="android"&&J<=4.4||Z==="and_uc")return Y+Q;return Q}o7.exports=d6.default});var t7=A((c6,r7)=>{Object.defineProperty(c6,"__esModule",{value:!0});var sG=function(){function Z(J,Y){for(var Q=0;Q<Y.length;Q++){var X=Y[Q];if(X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X)X.writable=!0;Object.defineProperty(J,X.key,X)}}return function(J,Y,Q){if(Y)Z(J.prototype,Y);if(Q)Z(J,Q);return J}}();c6.default=UW;var rG=n7(),tG=H0(rG),eG=a7(),ZW=H0(eG),JW=K5(),YW=H0(JW),QW=b6(),XW=H0(QW),GW=y6(),WW=H0(GW),HW=k6(),s7=H0(HW);function H0(Z){return Z&&Z.__esModule?Z:{default:Z}}function zW(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function UW(Z){var{prefixMap:J,plugins:Y}=Z,Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(X){return X};return function(){function X(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zW(this,X);var W=typeof navigator<"u"?navigator.userAgent:void 0;if(this._userAgent=G.userAgent||W,this._keepUnprefixed=G.keepUnprefixed||!1,this._userAgent)this._browserInfo=(0,tG.default)(this._userAgent);if(this._browserInfo&&this._browserInfo.cssPrefix)this.prefixedKeyframes=(0,ZW.default)(this._browserInfo.browserName,this._browserInfo.browserVersion,this._browserInfo.cssPrefix);else return this._useFallback=!0,!1;var H=this._browserInfo.browserName&&J[this._browserInfo.browserName];if(H){this._requiresPrefix={};for(var z in H)if(H[z]>=this._browserInfo.browserVersion)this._requiresPrefix[z]=!0;this._hasPropsRequiringPrefix=Object.keys(this._requiresPrefix).length>0}else this._useFallback=!0;this._metaData={browserVersion:this._browserInfo.browserVersion,browserName:this._browserInfo.browserName,cssPrefix:this._browserInfo.cssPrefix,jsPrefix:this._browserInfo.jsPrefix,keepUnprefixed:this._keepUnprefixed,requiresPrefix:this._requiresPrefix}}return sG(X,[{key:"prefix",value:function(W){if(this._useFallback)return Q(W);if(!this._hasPropsRequiringPrefix)return W;return this._prefixStyle(W)}},{key:"_prefixStyle",value:function(W){for(var H in W){var z=W[H];if((0,WW.default)(z))W[H]=this.prefix(z);else if(Array.isArray(z)){var U=[];for(var B=0,L=z.length;B<L;++B){var V=(0,s7.default)(Y,H,z[B],W,this._metaData);(0,XW.default)(U,V||z[B])}if(U.length>0)W[H]=U}else{var F=(0,s7.default)(Y,H,z,W,this._metaData);if(F)W[H]=F;if(this._requiresPrefix.hasOwnProperty(H)){if(W[this._browserInfo.jsPrefix+(0,YW.default)(H)]=z,!this._keepUnprefixed)delete W[H]}}}return W}}],[{key:"prefixAll",value:function(W){return Q(W)}}]),X}()}r7.exports=c6.default});var p6=A((m$,F5)=>{/*!
6
6
  Copyright (c) 2015 Jed Watson.
7
7
  Based on code that is Copyright 2013-2015, Facebook, Inc.
8
8
  All rights reserved.
9
- */(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof $5<"u"&&$5.exports)$5.exports=J;else window.ExecutionEnvironment=J})()});var a1=A((n6,J4)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.default=$W;var OW=/-webkit-|-moz-|-ms-/;function $W(Z){return typeof Z==="string"&&OW.test(Z)}J4.exports=n6.default});var Q4=A((o6,Y4)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=AW;var VW=a1(),qW=DW(VW);function DW(Z){return Z&&Z.__esModule?Z:{default:Z}}var NW=["-webkit-","-moz-",""];function AW(Z,J){if(typeof J==="string"&&!(0,qW.default)(J)&&J.indexOf("calc(")>-1)return NW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}Y4.exports=o6.default});var G4=A((a6,X4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=SW;var PW=a1(),TW=wW(PW);function wW(Z){return Z&&Z.__esModule?Z:{default:Z}}var EW=["-webkit-",""];function SW(Z,J){if(typeof J==="string"&&!(0,TW.default)(J)&&J.indexOf("cross-fade(")>-1)return EW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}X4.exports=a6.default});var H4=A((s6,W4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=jW;var fW=["-webkit-","-moz-",""],CW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function jW(Z,J){if(Z==="cursor"&&CW.hasOwnProperty(J))return fW.map(function(Y){return Y+J})}W4.exports=s6.default});var B4=A((r6,z4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=gW;var vW=a1(),kW=hW(vW);function hW(Z){return Z&&Z.__esModule?Z:{default:Z}}var bW=["-webkit-",""];function gW(Z,J){if(typeof J==="string"&&!(0,kW.default)(J)&&J.indexOf("filter(")>-1)return bW.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}z4.exports=r6.default});var L4=A((t6,K4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=mW;var U4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function mW(Z,J){if(Z==="display"&&U4.hasOwnProperty(J))return U4[J]}K4.exports=t6.default});var O4=A((e6,F4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=cW;var dW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},M4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function cW(Z,J,Y){if(M4.hasOwnProperty(Z))Y[M4[Z]]=dW[J]||J}F4.exports=e6.default});var V4=A((Z8,I4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=iW;var lW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},$4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function iW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if($4.hasOwnProperty(Z))Y[$4[Z]]=lW[J]||J}I4.exports=Z8.default});var N4=A((J8,D4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=tW;var oW=a1(),aW=sW(oW);function sW(Z){return Z&&Z.__esModule?Z:{default:Z}}var rW=["-webkit-","-moz-",""],q4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function tW(Z,J){if(typeof J==="string"&&!(0,aW.default)(J)&&q4.test(J))return rW.map(function(Y){return J.replace(q4,function(Q){return Y+Q})})}D4.exports=J8.default});var R4=A((Y8,A4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=XH;var ZH=a1(),JH=YH(ZH);function YH(Z){return Z&&Z.__esModule?Z:{default:Z}}var QH=["-webkit-",""];function XH(Z,J){if(typeof J==="string"&&!(0,JH.default)(J)&&J.indexOf("image-set(")>-1)return QH.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}A4.exports=Y8.default});var T4=A((Q8,P4)=>{Object.defineProperty(Q8,"__esModule",{value:!0});Q8.default=WH;function WH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}P4.exports=Q8.default});var E4=A((X8,w4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=KH;var zH=["-webkit-","-moz-",""],BH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},UH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function KH(Z,J){if(BH.hasOwnProperty(Z)&&UH.hasOwnProperty(J))return zH.map(function(Y){return Y+J})}w4.exports=X8.default});var x4=A((pO,S4)=>{var MH=/[A-Z]/g,FH=/^ms-/,G8={};function OH(Z){return"-"+Z.toLowerCase()}function $H(Z){if(G8.hasOwnProperty(Z))return G8[Z];var J=Z.replace(MH,OH);return G8[Z]=FH.test(J)?"-"+J:J}S4.exports=$H});var H8=A((W8,f4)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.default=DH;var IH=x4(),VH=qH(IH);function qH(Z){return Z&&Z.__esModule?Z:{default:Z}}function DH(Z){return(0,VH.default)(Z)}f4.exports=W8.default});var _4=A((B8,j4)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=fH;var AH=H8(),RH=z8(AH),PH=a1(),TH=z8(PH),wH=M5(),C4=z8(wH);function z8(Z){return Z&&Z.__esModule?Z:{default:Z}}var EH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},SH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function xH(Z,J){if((0,TH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var Q=0,X=Y.length;Q<X;++Q){var G=Y[Q],W=[G];for(var H in J){var z=(0,RH.default)(H);if(G.indexOf(z)>-1&&z!=="order"){var B=J[H];for(var U=0,L=B.length;U<L;++U)W.unshift(G.replace(z,SH[B[U]]+z))}}Y[Q]=W.join(",")}return Y.join(",")}function fH(Z,J,Y,Q){if(typeof J==="string"&&EH.hasOwnProperty(Z)){var X=xH(J,Q),G=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return G;var W=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,C4.default)(Z)]=G,Y["Moz"+(0,C4.default)(Z)]=W,X}}j4.exports=B8.default});var B1=A((K8,n4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=jH;function jH(Z,J,Y){if(Y)return[Z,J];return Z}n4.exports=K8.default});var a4=A((L8,o4)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.default=bH;var vH=B1(),kH=hH(vH);function hH(Z){return Z&&Z.__esModule?Z:{default:Z}}function bH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(X==="firefox"&&G<15||X==="chrome"&&G<25||X==="safari"&&G<6.1||X==="ios_saf"&&G<7))return(0,kH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}o4.exports=L8.default});var r4=A((M8,s4)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=dH;var yH=B1(),mH=uH(yH);function uH(Z){return Z&&Z.__esModule?Z:{default:Z}}function dH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||(X==="ios_saf"||X==="safari")&&G<10))return(0,mH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}s4.exports=M8.default});var ZZ=A((F8,e4)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=oH;var pH=B1(),t4=lH(pH);function lH(Z){return Z&&Z.__esModule?Z:{default:Z}}var iH={grab:!0,grabbing:!0},nH={"zoom-in":!0,"zoom-out":!0};function oH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="cursor"&&iH[J]&&(X==="firefox"||X==="chrome"||X==="safari"||X==="opera"))return(0,t4.default)(W+J,J,H);if(Z==="cursor"&&nH[J]&&(X==="firefox"&&G<24||X==="chrome"&&G<37||X==="safari"&&G<9||X==="opera"&&G<24))return(0,t4.default)(W+J,J,H)}e4.exports=F8.default});var YZ=A((O8,JZ)=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.default=eH;var sH=B1(),rH=tH(sH);function tH(Z){return Z&&Z.__esModule?Z:{default:Z}}function eH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(X==="ios_saf"||X==="safari"&&G<9.1))return(0,rH.default)(J.replace(/filter\(/g,W+"filter("),J,H)}JZ.exports=O8.default});var XZ=A(($8,QZ)=>{Object.defineProperty($8,"__esModule",{value:!0});$8.default=Gz;var Jz=B1(),Yz=Qz(Jz);function Qz(Z){return Z&&Z.__esModule?Z:{default:Z}}var Xz={flex:!0,"inline-flex":!0};function Gz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="display"&&Xz[J]&&(X==="chrome"&&G<29&&G>20||(X==="safari"||X==="ios_saf")&&G<9&&G>6||X==="opera"&&(G===15||G===16)))return(0,Yz.default)(W+J,J,H)}QZ.exports=$8.default});var WZ=A((q8,GZ)=>{Object.defineProperty(q8,"__esModule",{value:!0});q8.default=Uz;var Hz=B1(),zz=Bz(Hz);function Bz(Z){return Z&&Z.__esModule?Z:{default:Z}}var I8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},V8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Uz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((V8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="ie_mob"||X==="ie")&&G===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&I8.hasOwnProperty(J))return(0,zz.default)(W+I8[J],J,H);if(V8.hasOwnProperty(Z))Y[V8[Z]]=I8[J]||J}}GZ.exports=q8.default});var zZ=A((A8,HZ)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Iz;var Lz=B1(),Mz=Fz(Lz);function Fz(Z){return Z&&Z.__esModule?Z:{default:Z}}var D8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},N8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Oz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],$z=Object.keys(N8).concat(Oz);function Iz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if(($z.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="firefox"&&G<22||X==="chrome"&&G<21||(X==="safari"||X==="ios_saf")&&G<=6.1||X==="android"&&G<4.4||X==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&D8.hasOwnProperty(J))return(0,Mz.default)(W+D8[J],J,H);if(N8.hasOwnProperty(Z))Y[N8[Z]]=D8[J]||J}}HZ.exports=A8.default});var KZ=A((R8,UZ)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=Az;var qz=B1(),Dz=Nz(qz);function Nz(Z){return Z&&Z.__esModule?Z:{default:Z}}var BZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Az(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&BZ.test(J)&&(X==="firefox"&&G<16||X==="chrome"&&G<26||(X==="safari"||X==="ios_saf")&&G<7||(X==="opera"||X==="op_mini")&&G<12.1||X==="android"&&G<4.4||X==="and_uc"))return(0,Dz.default)(J.replace(BZ,function(z){return W+z}),J,H)}UZ.exports=R8.default});var MZ=A((P8,LZ)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=Ez;var Pz=B1(),Tz=wz(Pz);function wz(Z){return Z&&Z.__esModule?Z:{default:Z}}function Ez(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||X==="and_uc"||X==="ios_saf"||X==="safari"))return(0,Tz.default)(J.replace(/image-set\(/g,G+"image-set("),J,W)}LZ.exports=P8.default});var OZ=A((T8,FZ)=>{Object.defineProperty(T8,"__esModule",{value:!0});T8.default=jz;var xz=B1(),fz=Cz(xz);function Cz(Z){return Z&&Z.__esModule?Z:{default:Z}}function jz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(Z==="position"&&J==="sticky"&&(X==="safari"||X==="ios_saf"))return(0,fz.default)(G+J,J,W)}FZ.exports=T8.default});var IZ=A((w8,$Z)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=yz;var vz=B1(),kz=hz(vz);function hz(Z){return Z&&Z.__esModule?Z:{default:Z}}var bz={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},gz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function yz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G}=Q;if(bz.hasOwnProperty(Z)&&gz.hasOwnProperty(J))return(0,kz.default)(X+J,J,G)}$Z.exports=w8.default});var qZ=A((S8,VZ)=>{Object.defineProperty(S8,"__esModule",{value:!0});S8.default=lz;var uz=H8(),dz=cz(uz);function cz(Z){return Z&&Z.__esModule?Z:{default:Z}}var pz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},E8=void 0;function lz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G,requiresPrefix:W}=Q;if(typeof J==="string"&&pz.hasOwnProperty(Z)){if(!E8)E8=Object.keys(W).map(function(z){return(0,dz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return E8.forEach(function(z){H.forEach(function(B,U){if(B.indexOf(z)>-1&&z!=="order")H[U]=B.replace(z,X+z)+(G?","+B:"")})}),H.join(",")}}VZ.exports=S8.default});var oY={};B7(oY,{default:()=>LK,__values:()=>t5,__spreadArrays:()=>vY,__spreadArray:()=>kY,__spread:()=>_Y,__setFunctionName:()=>SY,__runInitializers:()=>wY,__rewriteRelativeImportExtension:()=>nY,__rest:()=>AY,__read:()=>U9,__propKey:()=>EY,__param:()=>PY,__metadata:()=>xY,__makeTemplateObject:()=>yY,__importStar:()=>mY,__importDefault:()=>uY,__generator:()=>CY,__extends:()=>NY,__exportStar:()=>jY,__esDecorate:()=>TY,__disposeResources:()=>iY,__decorate:()=>RY,__createBinding:()=>e5,__classPrivateFieldSet:()=>cY,__classPrivateFieldIn:()=>pY,__classPrivateFieldGet:()=>dY,__awaiter:()=>fY,__await:()=>V0,__asyncValues:()=>gY,__asyncGenerator:()=>hY,__asyncDelegator:()=>bY,__assign:()=>r5,__addDisposableResource:()=>lY});function NY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");z9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function AY(Z,J){var Y={};for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)&&J.indexOf(Q)<0)Y[Q]=Z[Q];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,Q=Object.getOwnPropertySymbols(Z);X<Q.length;X++)if(J.indexOf(Q[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,Q[X]))Y[Q[X]]=Z[Q[X]]}return Y}function RY(Z,J,Y,Q){var X=arguments.length,G=X<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Y):Q,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(Z,J,Y,Q);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])G=(X<3?W(G):X>3?W(J,Y,G):W(J,Y))||G;return X>3&&G&&Object.defineProperty(J,Y,G),G}function PY(Z,J){return function(Y,Q){J(Y,Q,Z)}}function TY(Z,J,Y,Q,X,G){function W(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var H=Q.kind,z=H==="getter"?"get":H==="setter"?"set":"value",B=!J&&Z?Q.static?Z:Z.prototype:null,U=J||(B?Object.getOwnPropertyDescriptor(B,Q.name):{}),L,$=!1;for(var M=Y.length-1;M>=0;M--){var K={};for(var F in Q)K[F]=F==="access"?{}:Q[F];for(var F in Q.access)K.access[F]=Q.access[F];K.addInitializer=function(N){if($)throw TypeError("Cannot add initializers after decoration has completed");G.push(W(N||null))};var I=(0,Y[M])(H==="accessor"?{get:U.get,set:U.set}:U[z],K);if(H==="accessor"){if(I===void 0)continue;if(I===null||typeof I!=="object")throw TypeError("Object expected");if(L=W(I.get))U.get=L;if(L=W(I.set))U.set=L;if(L=W(I.init))X.unshift(L)}else if(L=W(I))if(H==="field")X.unshift(L);else U[z]=L}if(B)Object.defineProperty(B,Q.name,U);$=!0}function wY(Z,J,Y){var Q=arguments.length>2;for(var X=0;X<J.length;X++)Y=Q?J[X].call(Z,Y):J[X].call(Z);return Q?Y:void 0}function EY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function SY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function xY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function fY(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(U){try{B(Q.next(U))}catch(L){W(L)}}function z(U){try{B(Q.throw(U))}catch(L){W(L)}}function B(U){U.done?G(U.value):X(U.value).then(H,z)}B((Q=Q.apply(Z,J||[])).next())})}function CY(Z,J){var Y={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Q,X,G,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(B){return function(U){return z([B,U])}}function z(B){if(Q)throw TypeError("Generator is already executing.");while(W&&(W=0,B[0]&&(Y=0)),Y)try{if(Q=1,X&&(G=B[0]&2?X.return:B[0]?X.throw||((G=X.return)&&G.call(X),0):X.next)&&!(G=G.call(X,B[1])).done)return G;if(X=0,G)B=[B[0]&2,G.value];switch(B[0]){case 0:case 1:G=B;break;case 4:return Y.label++,{value:B[1],done:!1};case 5:Y.label++,X=B[1],B=[0];continue;case 7:B=Y.ops.pop(),Y.trys.pop();continue;default:if((G=Y.trys,!(G=G.length>0&&G[G.length-1]))&&(B[0]===6||B[0]===2)){Y=0;continue}if(B[0]===3&&(!G||B[1]>G[0]&&B[1]<G[3])){Y.label=B[1];break}if(B[0]===6&&Y.label<G[1]){Y.label=G[1],G=B;break}if(G&&Y.label<G[2]){Y.label=G[2],Y.ops.push(B);break}if(G[2])Y.ops.pop();Y.trys.pop();continue}B=J.call(Z,Y)}catch(U){B=[6,U],X=0}finally{Q=G=0}if(B[0]&5)throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}}function jY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))e5(J,Z,Y)}function t5(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],Q=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&Q>=Z.length)Z=void 0;return{value:Z&&Z[Q++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function U9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var Q=Y.call(Z),X,G=[],W;try{while((J===void 0||J-- >0)&&!(X=Q.next()).done)G.push(X.value)}catch(H){W={error:H}}finally{try{if(X&&!X.done&&(Y=Q.return))Y.call(Q)}finally{if(W)throw W.error}}return G}function _Y(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(U9(arguments[J]));return Z}function vY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var Q=Array(Z),X=0,J=0;J<Y;J++)for(var G=arguments[J],W=0,H=G.length;W<H;W++,X++)Q[X]=G[W];return Q}function kY(Z,J,Y){if(Y||arguments.length===2){for(var Q=0,X=J.length,G;Q<X;Q++)if(G||!(Q in J)){if(!G)G=Array.prototype.slice.call(J,0,Q);G[Q]=J[Q]}}return Z.concat(G||Array.prototype.slice.call(J))}function V0(Z){return this instanceof V0?(this.v=Z,this):new V0(Z)}function hY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=Y.apply(Z,J||[]),X,G=[];return X=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),X[Symbol.asyncIterator]=function(){return this},X;function W(M){return function(K){return Promise.resolve(K).then(M,L)}}function H(M,K){if(Q[M]){if(X[M]=function(F){return new Promise(function(I,N){G.push([M,F,I,N])>1||z(M,F)})},K)X[M]=K(X[M])}}function z(M,K){try{B(Q[M](K))}catch(F){$(G[0][3],F)}}function B(M){M.value instanceof V0?Promise.resolve(M.value.v).then(U,L):$(G[0][2],M)}function U(M){z("next",M)}function L(M){z("throw",M)}function $(M,K){if(M(K),G.shift(),G.length)z(G[0][0],G[0][1])}}function bY(Z){var J,Y;return J={},Q("next"),Q("throw",function(X){throw X}),Q("return"),J[Symbol.iterator]=function(){return this},J;function Q(X,G){J[X]=Z[X]?function(W){return(Y=!Y)?{value:V0(Z[X](W)),done:!1}:G?G(W):W}:G}}function gY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof t5==="function"?t5(Z):Z[Symbol.iterator](),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q(G){Y[G]=Z[G]&&function(W){return new Promise(function(H,z){W=Z[G](W),X(H,z,W.done,W.value)})}}function X(G,W,H,z){Promise.resolve(z).then(function(B){G({value:B,done:H})},W)}}function yY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function mY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=B9(Z),Q=0;Q<Y.length;Q++)if(Y[Q]!=="default")e5(J,Z,Y[Q])}return UK(J,Z),J}function uY(Z){return Z&&Z.__esModule?Z:{default:Z}}function dY(Z,J,Y,Q){if(Y==="a"&&!Q)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?Q:Y==="a"?Q.call(Z):Q?Q.value:J.get(Z)}function cY(Z,J,Y,Q,X){if(Q==="m")throw TypeError("Private method is not writable");if(Q==="a"&&!X)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!X:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return Q==="a"?X.call(Z,Y):X?X.value=Y:J.set(Z,Y),Y}function pY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function lY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var Q,X;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");Q=J[Symbol.asyncDispose]}if(Q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(Q=J[Symbol.dispose],Y)X=Q}if(typeof Q!=="function")throw TypeError("Object not disposable.");if(X)Q=function(){try{X.call(this)}catch(G){return Promise.reject(G)}};Z.stack.push({value:J,dispose:Q,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function iY(Z){function J(G){Z.error=Z.hasError?new KK(G,Z.error,"An error was suppressed during disposal."):G,Z.hasError=!0}var Y,Q=0;function X(){while(Y=Z.stack.pop())try{if(!Y.async&&Q===1)return Q=0,Z.stack.push(Y),Promise.resolve().then(X);if(Y.dispose){var G=Y.dispose.call(Y.value);if(Y.async)return Q|=2,Promise.resolve(G).then(X,function(W){return J(W),X()})}else Q|=1}catch(W){J(W)}if(Q===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return X()}function nY(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,Q,X,G,W){return Q?J?".jsx":".js":X&&(!G||!W)?Y:X+G+"."+W.toLowerCase()+"js"});return Z}var z9=function(Z,J){return z9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Y[X]=Q[X]},z9(Z,J)},r5=function(){return r5=Object.assign||function(J){for(var Y,Q=1,X=arguments.length;Q<X;Q++){Y=arguments[Q];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))J[G]=Y[G]}return J},r5.apply(this,arguments)},e5,UK,B9=function(Z){return B9=Object.getOwnPropertyNames||function(J){var Y=[];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Y[Y.length]=Q;return Y},B9(Z)},KK,LK;var aY=U7(()=>{e5=Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]};UK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};KK=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var Q=Error(Y);return Q.name="SuppressedError",Q.error=Z,Q.suppressed=J,Q};LK={__extends:NY,__assign:r5,__rest:AY,__decorate:RY,__param:PY,__esDecorate:TY,__runInitializers:wY,__propKey:EY,__setFunctionName:SY,__metadata:xY,__awaiter:fY,__generator:CY,__createBinding:e5,__exportStar:jY,__values:t5,__read:U9,__spread:_Y,__spreadArrays:vY,__spreadArray:kY,__await:V0,__asyncGenerator:hY,__asyncDelegator:bY,__asyncValues:gY,__makeTemplateObject:yY,__importStar:mY,__importDefault:uY,__classPrivateFieldGet:dY,__classPrivateFieldSet:cY,__classPrivateFieldIn:pY,__addDisposableResource:lY,__disposeResources:iY,__rewriteRelativeImportExtension:nY}});var hQ=A((vq,kQ)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function LQ(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:MK}=Object.prototype,{getPrototypeOf:V9}=Object,{iterator:W6,toStringTag:MQ}=Symbol,H6=((Z)=>(J)=>{let Y=MK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),I1=(Z)=>{return Z=Z.toLowerCase(),(J)=>H6(J)===Z},z6=(Z)=>(J)=>typeof J===Z,{isArray:D0}=Array,q0=z6("undefined");function o0(Z){return Z!==null&&!q0(Z)&&Z.constructor!==null&&!q0(Z.constructor)&&Q1(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var FQ=I1("ArrayBuffer");function FK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&FQ(Z.buffer);return J}var OK=z6("string"),Q1=z6("function"),OQ=z6("number"),a0=(Z)=>Z!==null&&typeof Z==="object",$K=(Z)=>Z===!0||Z===!1,J6=(Z)=>{if(H6(Z)!=="object")return!1;let J=V9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(MQ in Z)&&!(W6 in Z)},IK=(Z)=>{if(!a0(Z)||o0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},VK=I1("Date"),qK=I1("File"),DK=I1("Blob"),NK=I1("FileList"),AK=(Z)=>a0(Z)&&Q1(Z.pipe),RK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||Q1(Z.append)&&((J=H6(Z))==="formdata"||J==="object"&&Q1(Z.toString)&&Z.toString()==="[object FormData]"))},PK=I1("URLSearchParams"),[TK,wK,EK,SK]=["ReadableStream","Request","Response","Headers"].map(I1),xK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let Q,X;if(typeof Z!=="object")Z=[Z];if(D0(Z))for(Q=0,X=Z.length;Q<X;Q++)J.call(null,Z[Q],Q,Z);else{if(o0(Z))return;let G=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=G.length,H;for(Q=0;Q<W;Q++)H=G[Q],J.call(null,Z[H],H,Z)}}function $Q(Z,J){if(o0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),Q=Y.length,X;while(Q-- >0)if(X=Y[Q],J===X.toLowerCase())return X;return null}var Q0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),IQ=(Z)=>!q0(Z)&&Z!==Q0;function F9(){let{caseless:Z,skipUndefined:J}=IQ(this)&&this||{},Y={},Q=(X,G)=>{let W=Z&&$Q(Y,G)||G;if(J6(Y[W])&&J6(X))Y[W]=F9(Y[W],X);else if(J6(X))Y[W]=F9({},X);else if(D0(X))Y[W]=X.slice();else if(!J||!q0(X))Y[W]=X};for(let X=0,G=arguments.length;X<G;X++)arguments[X]&&s0(arguments[X],Q);return Y}var fK=(Z,J,Y,{allOwnKeys:Q}={})=>{return s0(J,(X,G)=>{if(Y&&Q1(X))Object.defineProperty(Z,G,{value:LQ(X,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,G,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},CK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},jK=(Z,J,Y,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},_K=(Z,J,Y,Q)=>{let X,G,W,H={};if(J=J||{},Z==null)return J;do{X=Object.getOwnPropertyNames(Z),G=X.length;while(G-- >0)if(W=X[G],(!Q||Q(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&V9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},vK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let Q=Z.indexOf(J,Y);return Q!==-1&&Q===Y},kK=(Z)=>{if(!Z)return null;if(D0(Z))return Z;let J=Z.length;if(!OQ(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},hK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&V9(Uint8Array)),bK=(Z,J)=>{let Q=(Z&&Z[W6]).call(Z),X;while((X=Q.next())&&!X.done){let G=X.value;J.call(Z,G[0],G[1])}},gK=(Z,J)=>{let Y,Q=[];while((Y=Z.exec(J))!==null)Q.push(Y);return Q},yK=I1("HTMLFormElement"),mK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,Q,X){return Q.toUpperCase()+X})},sY=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),uK=I1("RegExp"),VQ=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),Q={};s0(Y,(X,G)=>{let W;if((W=J(X,G,Z))!==!1)Q[G]=W||X}),Object.defineProperties(Z,Q)},dK=(Z)=>{VQ(Z,(J,Y)=>{if(Q1(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let Q=Z[Y];if(!Q1(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},cK=(Z,J)=>{let Y={},Q=(X)=>{X.forEach((G)=>{Y[G]=!0})};return D0(Z)?Q(Z):Q(String(Z).split(J)),Y},pK=()=>{},lK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function iK(Z){return!!(Z&&Q1(Z.append)&&Z[MQ]==="FormData"&&Z[W6])}var nK=(Z)=>{let J=[,,,,,,,,,,],Y=(Q,X)=>{if(a0(Q)){if(J.indexOf(Q)>=0)return;if(o0(Q))return Q;if(!("toJSON"in Q)){J[X]=Q;let G=D0(Q)?[]:{};return s0(Q,(W,H)=>{let z=Y(W,X+1);!q0(z)&&(G[H]=z)}),J[X]=void 0,G}}return Q};return Y(Z,0)},oK=I1("AsyncFunction"),aK=(Z)=>Z&&(a0(Z)||Q1(Z))&&Q1(Z.then)&&Q1(Z.catch),qQ=((Z,J)=>{if(Z)return setImmediate;return J?((Y,Q)=>{return Q0.addEventListener("message",({source:X,data:G})=>{if(X===Q0&&G===Y)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),Q0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",Q1(Q0.postMessage)),sK=typeof queueMicrotask<"u"?queueMicrotask.bind(Q0):typeof process<"u"&&process.nextTick||qQ,rK=(Z)=>Z!=null&&Q1(Z[W6]),V={isArray:D0,isArrayBuffer:FQ,isBuffer:o0,isFormData:RK,isArrayBufferView:FK,isString:OK,isNumber:OQ,isBoolean:$K,isObject:a0,isPlainObject:J6,isEmptyObject:IK,isReadableStream:TK,isRequest:wK,isResponse:EK,isHeaders:SK,isUndefined:q0,isDate:VK,isFile:qK,isBlob:DK,isRegExp:uK,isFunction:Q1,isStream:AK,isURLSearchParams:PK,isTypedArray:hK,isFileList:NK,forEach:s0,merge:F9,extend:fK,trim:xK,stripBOM:CK,inherits:jK,toFlatObject:_K,kindOf:H6,kindOfTest:I1,endsWith:vK,toArray:kK,forEachEntry:bK,matchAll:gK,isHTMLForm:yK,hasOwnProperty:sY,hasOwnProp:sY,reduceDescriptors:VQ,freezeMethods:dK,toObjectSet:cK,toCamelCase:mK,noop:pK,toFiniteNumber:lK,findKey:$Q,global:Q0,isContextDefined:IQ,isSpecCompliantForm:iK,toJSONObject:nK,isAsyncFn:oK,isThenable:aK,setImmediate:qQ,asap:sK,isIterable:rK};class Z1 extends Error{static from(Z,J,Y,Q,X,G){let W=new Z1(Z.message,J||Z.code,Y,Q,X);return W.cause=Z,W.name=Z.name,G&&Object.assign(W,G),W}constructor(Z,J,Y,Q,X){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){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:V.toJSONObject(this.config),code:this.code,status:this.status}}}Z1.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Z1.ERR_BAD_OPTION="ERR_BAD_OPTION";Z1.ECONNABORTED="ECONNABORTED";Z1.ETIMEDOUT="ETIMEDOUT";Z1.ERR_NETWORK="ERR_NETWORK";Z1.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Z1.ERR_DEPRECATED="ERR_DEPRECATED";Z1.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Z1.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Z1.ERR_CANCELED="ERR_CANCELED";Z1.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Z1.ERR_INVALID_URL="ERR_INVALID_URL";var _=Z1,tK=null;function O9(Z){return V.isPlainObject(Z)||V.isArray(Z)}function DQ(Z){return V.endsWith(Z,"[]")?Z.slice(0,-2):Z}function rY(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(X,G){return X=DQ(X),!Y&&G?"["+X+"]":X}).join(Y?".":"")}function eK(Z){return V.isArray(Z)&&!Z.some(O9)}var ZL=V.toFlatObject(V,{},null,function(J){return/^is[A-Z]/.test(J)});function B6(Z,J,Y){if(!V.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=V.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(F,I){return!V.isUndefined(I[F])});let Q=Y.metaTokens,X=Y.visitor||U,G=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(J);if(!V.isFunction(X))throw TypeError("visitor must be a function");function B(K){if(K===null)return"";if(V.isDate(K))return K.toISOString();if(V.isBoolean(K))return K.toString();if(!z&&V.isBlob(K))throw new _("Blob is not supported. Use a Buffer instead.");if(V.isArrayBuffer(K)||V.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function U(K,F,I){let N=K;if(K&&!I&&typeof K==="object"){if(V.endsWith(F,"{}"))F=Q?F:F.slice(0,-2),K=JSON.stringify(K);else if(V.isArray(K)&&eK(K)||(V.isFileList(K)||V.endsWith(F,"[]"))&&(N=V.toArray(K)))return F=DQ(F),N.forEach(function(q,D){!(V.isUndefined(q)||q===null)&&J.append(W===!0?rY([F],D,G):W===null?F:F+"[]",B(q))}),!1}if(O9(K))return!0;return J.append(rY(I,F,G),B(K)),!1}let L=[],$=Object.assign(ZL,{defaultVisitor:U,convertValue:B,isVisitable:O9});function M(K,F){if(V.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+F.join("."));L.push(K),V.forEach(K,function(N,w){if((!(V.isUndefined(N)||N===null)&&X.call(J,N,V.isString(w)?w.trim():w,F,$))===!0)M(N,F?F.concat(w):[w])}),L.pop()}if(!V.isObject(Z))throw TypeError("data must be an object");return M(Z),J}function tY(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(Q){return J[Q]})}function q9(Z,J){this._pairs=[],Z&&B6(Z,this,J)}var NQ=q9.prototype;NQ.append=function(J,Y){this._pairs.push([J,Y])};NQ.toString=function(J){let Y=J?function(Q){return J.call(this,Q,tY)}:tY;return this._pairs.map(function(X){return Y(X[0])+"="+Y(X[1])},"").join("&")};function JL(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function AQ(Z,J,Y){if(!J)return Z;let Q=Y&&Y.encode||JL,X=V.isFunction(Y)?{serialize:Y}:Y,G=X&&X.serialize,W;if(G)W=G(J,X);else W=V.isURLSearchParams(J)?J.toString():new q9(J,X).toString(Q);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class RQ{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){V.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var eY=RQ,PQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YL=typeof URLSearchParams<"u"?URLSearchParams:q9,QL=typeof FormData<"u"?FormData:null,XL=typeof Blob<"u"?Blob:null,GL={isBrowser:!0,classes:{URLSearchParams:YL,FormData:QL,Blob:XL},protocols:["http","https","file","blob","url","data"]},D9=typeof window<"u"&&typeof document<"u",$9=typeof navigator==="object"&&navigator||void 0,WL=D9&&(!$9||["ReactNative","NativeScript","NS"].indexOf($9.product)<0),HL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),zL=D9&&window.location.href||"http://localhost",BL=Object.freeze({__proto__:null,hasBrowserEnv:D9,hasStandardBrowserWebWorkerEnv:HL,hasStandardBrowserEnv:WL,navigator:$9,origin:zL}),r={...BL,...GL};function UL(Z,J){return B6(Z,new r.classes.URLSearchParams,{visitor:function(Y,Q,X,G){if(r.isNode&&V.isBuffer(Y))return this.append(Q,Y.toString("base64")),!1;return G.defaultVisitor.apply(this,arguments)},...J})}function KL(Z){return V.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function LL(Z){let J={},Y=Object.keys(Z),Q,X=Y.length,G;for(Q=0;Q<X;Q++)G=Y[Q],J[G]=Z[G];return J}function TQ(Z){function J(Y,Q,X,G){let W=Y[G++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=G>=Y.length;if(W=!W&&V.isArray(X)?X.length:W,z){if(V.hasOwnProp(X,W))X[W]=[X[W],Q];else X[W]=Q;return!H}if(!X[W]||!V.isObject(X[W]))X[W]=[];if(J(Y,Q,X[W],G)&&V.isArray(X[W]))X[W]=LL(X[W]);return!H}if(V.isFormData(Z)&&V.isFunction(Z.entries)){let Y={};return V.forEachEntry(Z,(Q,X)=>{J(KL(Q),X,Y,0)}),Y}return null}function ML(Z,J,Y){if(V.isString(Z))try{return(J||JSON.parse)(Z),V.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(Y||JSON.stringify)(Z)}var N9={transitional:PQ,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let Q=Y.getContentType()||"",X=Q.indexOf("application/json")>-1,G=V.isObject(J);if(G&&V.isHTMLForm(J))J=new FormData(J);if(V.isFormData(J))return X?JSON.stringify(TQ(J)):J;if(V.isArrayBuffer(J)||V.isBuffer(J)||V.isStream(J)||V.isFile(J)||V.isBlob(J)||V.isReadableStream(J))return J;if(V.isArrayBufferView(J))return J.buffer;if(V.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(G){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return UL(J,this.formSerializer).toString();if((H=V.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return B6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(G||X)return Y.setContentType("application/json",!1),ML(J);return J}],transformResponse:[function(J){let Y=this.transitional||N9.transitional,Q=Y&&Y.forcedJSONParsing,X=this.responseType==="json";if(V.isResponse(J)||V.isReadableStream(J))return J;if(J&&V.isString(J)&&(Q&&!this.responseType||X)){let W=!(Y&&Y.silentJSONParsing)&&X;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw _.from(H,_.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r.classes.FormData,Blob:r.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(Z)=>{N9.headers[Z]={}});var A9=N9,FL=V.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"]),OL=(Z)=>{let J={},Y,Q,X;return Z&&Z.split(`
10
- `).forEach(function(W){if(X=W.indexOf(":"),Y=W.substring(0,X).trim().toLowerCase(),Q=W.substring(X+1).trim(),!Y||J[Y]&&FL[Y])return;if(Y==="set-cookie")if(J[Y])J[Y].push(Q);else J[Y]=[Q];else J[Y]=J[Y]?J[Y]+", "+Q:Q}),J},ZQ=Symbol("internals");function i0(Z){return Z&&String(Z).trim().toLowerCase()}function Y6(Z){if(Z===!1||Z==null)return Z;return V.isArray(Z)?Z.map(Y6):String(Z)}function $L(Z){let J=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=Y.exec(Z))J[Q[1]]=Q[2];return J}var IL=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function K9(Z,J,Y,Q,X){if(V.isFunction(Q))return Q.call(this,J,Y);if(X)J=Y;if(!V.isString(J))return;if(V.isString(Q))return J.indexOf(Q)!==-1;if(V.isRegExp(Q))return Q.test(J)}function VL(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,Y,Q)=>{return Y.toUpperCase()+Q})}function qL(Z,J){let Y=V.toCamelCase(" "+J);["get","set","has"].forEach((Q)=>{Object.defineProperty(Z,Q+Y,{value:function(X,G,W){return this[Q].call(this,J,X,G,W)},configurable:!0})})}class r0{constructor(Z){Z&&this.set(Z)}set(Z,J,Y){let Q=this;function X(W,H,z){let B=i0(H);if(!B)throw Error("header name must be a non-empty string");let U=V.findKey(Q,B);if(!U||Q[U]===void 0||z===!0||z===void 0&&Q[U]!==!1)Q[U||H]=Y6(W)}let G=(W,H)=>V.forEach(W,(z,B)=>X(z,B,H));if(V.isPlainObject(Z)||Z instanceof this.constructor)G(Z,J);else if(V.isString(Z)&&(Z=Z.trim())&&!IL(Z))G(OL(Z),J);else if(V.isObject(Z)&&V.isIterable(Z)){let W={},H,z;for(let B of Z){if(!V.isArray(B))throw TypeError("Object iterator must return a key-value pair");W[z=B[0]]=(H=W[z])?V.isArray(H)?[...H,B[1]]:[H,B[1]]:B[1]}G(W,J)}else Z!=null&&X(J,Z,Y);return this}get(Z,J){if(Z=i0(Z),Z){let Y=V.findKey(this,Z);if(Y){let Q=this[Y];if(!J)return Q;if(J===!0)return $L(Q);if(V.isFunction(J))return J.call(this,Q,Y);if(V.isRegExp(J))return J.exec(Q);throw TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=i0(Z),Z){let Y=V.findKey(this,Z);return!!(Y&&this[Y]!==void 0&&(!J||K9(this,this[Y],Y,J)))}return!1}delete(Z,J){let Y=this,Q=!1;function X(G){if(G=i0(G),G){let W=V.findKey(Y,G);if(W&&(!J||K9(Y,Y[W],W,J)))delete Y[W],Q=!0}}if(V.isArray(Z))Z.forEach(X);else X(Z);return Q}clear(Z){let J=Object.keys(this),Y=J.length,Q=!1;while(Y--){let X=J[Y];if(!Z||K9(this,this[X],X,Z,!0))delete this[X],Q=!0}return Q}normalize(Z){let J=this,Y={};return V.forEach(this,(Q,X)=>{let G=V.findKey(Y,X);if(G){J[G]=Y6(Q),delete J[X];return}let W=Z?VL(X):String(X).trim();if(W!==X)delete J[X];J[W]=Y6(Q),Y[W]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return V.forEach(this,(Y,Q)=>{Y!=null&&Y!==!1&&(J[Q]=Z&&V.isArray(Y)?Y.join(", "):Y)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
11
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((Q)=>Y.set(Q)),Y}static accessor(Z){let Y=(this[ZQ]=this[ZQ]={accessors:{}}).accessors,Q=this.prototype;function X(G){let W=i0(G);if(!Y[W])qL(Q,G),Y[W]=!0}return V.isArray(Z)?Z.forEach(X):X(Z),this}}r0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(r0.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[Y]=Q}}});V.freezeMethods(r0);var $1=r0;function L9(Z,J){let Y=this||A9,Q=J||Y,X=$1.from(Q.headers),G=Q.data;return V.forEach(Z,function(H){G=H.call(Y,G,X.normalize(),J?J.status:void 0)}),X.normalize(),G}function wQ(Z){return!!(Z&&Z.__CANCEL__)}class EQ extends _{constructor(Z,J,Y){super(Z==null?"canceled":Z,_.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var t0=EQ;function SQ(Z,J,Y){let Q=Y.config.validateStatus;if(!Y.status||!Q||Q(Y.status))Z(Y);else J(new _("Request failed with status code "+Y.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function DL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function NL(Z,J){Z=Z||10;let Y=Array(Z),Q=Array(Z),X=0,G=0,W;return J=J!==void 0?J:1000,function(z){let B=Date.now(),U=Q[G];if(!W)W=B;Y[X]=z,Q[X]=B;let L=G,$=0;while(L!==X)$+=Y[L++],L=L%Z;if(X=(X+1)%Z,X===G)G=(G+1)%Z;if(B-W<J)return;let M=U&&B-U;return M?Math.round($*1000/M):void 0}}function AL(Z,J){let Y=0,Q=1000/J,X,G,W=(B,U=Date.now())=>{if(Y=U,X=null,G)clearTimeout(G),G=null;Z(...B)};return[(...B)=>{let U=Date.now(),L=U-Y;if(L>=Q)W(B,U);else if(X=B,!G)G=setTimeout(()=>{G=null,W(X)},Q-L)},()=>X&&W(X)]}var G6=(Z,J,Y=3)=>{let Q=0,X=NL(50,250);return AL((G)=>{let W=G.loaded,H=G.lengthComputable?G.total:void 0,z=W-Q,B=X(z),U=W<=H;Q=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:B?B:void 0,estimated:B&&H&&U?(H-W)/B:void 0,event:G,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},JQ=(Z,J)=>{let Y=Z!=null;return[(Q)=>J[0]({lengthComputable:Y,total:Z,loaded:Q}),J[1]]},YQ=(Z)=>(...J)=>V.asap(()=>Z(...J)),RL=r.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,r.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(r.origin),r.navigator&&/(msie|trident)/i.test(r.navigator.userAgent)):()=>!0,PL=r.hasStandardBrowserEnv?{write(Z,J,Y,Q,X,G,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(V.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(V.isString(Q))H.push(`path=${Q}`);if(V.isString(X))H.push(`domain=${X}`);if(G===!0)H.push("secure");if(V.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function TL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function wL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function xQ(Z,J,Y){let Q=!TL(J);if(Z&&(Q||Y==!1))return wL(Z,J);return J}var QQ=(Z)=>Z instanceof $1?{...Z}:Z;function X0(Z,J){J=J||{};let Y={};function Q(B,U,L,$){if(V.isPlainObject(B)&&V.isPlainObject(U))return V.merge.call({caseless:$},B,U);else if(V.isPlainObject(U))return V.merge({},U);else if(V.isArray(U))return U.slice();return U}function X(B,U,L,$){if(!V.isUndefined(U))return Q(B,U,L,$);else if(!V.isUndefined(B))return Q(void 0,B,L,$)}function G(B,U){if(!V.isUndefined(U))return Q(void 0,U)}function W(B,U){if(!V.isUndefined(U))return Q(void 0,U);else if(!V.isUndefined(B))return Q(void 0,B)}function H(B,U,L){if(L in J)return Q(B,U);else if(L in Z)return Q(void 0,B)}let z={url:G,method:G,data:G,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(B,U,L)=>X(QQ(B),QQ(U),L,!0)};return V.forEach(Object.keys({...Z,...J}),function(U){let L=z[U]||X,$=L(Z[U],J[U],U);V.isUndefined($)&&L!==H||(Y[U]=$)}),Y}var fQ=(Z)=>{let J=X0({},Z),{data:Y,withXSRFToken:Q,xsrfHeaderName:X,xsrfCookieName:G,headers:W,auth:H}=J;if(J.headers=W=$1.from(W),J.url=AQ(xQ(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(V.isFormData(Y)){if(r.hasStandardBrowserEnv||r.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(V.isFunction(Y.getHeaders)){let z=Y.getHeaders(),B=["content-type","content-length"];Object.entries(z).forEach(([U,L])=>{if(B.includes(U.toLowerCase()))W.set(U,L)})}}if(r.hasStandardBrowserEnv){if(Q&&V.isFunction(Q)&&(Q=Q(J)),Q||Q!==!1&&RL(J.url)){let z=X&&G&&PL.read(G);if(z)W.set(X,z)}}return J},EL=typeof XMLHttpRequest<"u",SL=EL&&function(Z){return new Promise(function(Y,Q){let X=fQ(Z),G=X.data,W=$1.from(X.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:B}=X,U,L,$,M,K;function F(){M&&M(),K&&K(),X.cancelToken&&X.cancelToken.unsubscribe(U),X.signal&&X.signal.removeEventListener("abort",U)}let I=new XMLHttpRequest;I.open(X.method.toUpperCase(),X.url,!0),I.timeout=X.timeout;function N(){if(!I)return;let q=$1.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),E={data:!H||H==="text"||H==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:q,config:Z,request:I};SQ(function(m){Y(m),F()},function(m){Q(m),F()},E),I=null}if("onloadend"in I)I.onloadend=N;else I.onreadystatechange=function(){if(!I||I.readyState!==4)return;if(I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0))return;setTimeout(N)};if(I.onabort=function(){if(!I)return;Q(new _("Request aborted",_.ECONNABORTED,Z,I)),I=null},I.onerror=function(D){let E=D&&D.message?D.message:"Network Error",v=new _(E,_.ERR_NETWORK,Z,I);v.event=D||null,Q(v),I=null},I.ontimeout=function(){let D=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",E=X.transitional||PQ;if(X.timeoutErrorMessage)D=X.timeoutErrorMessage;Q(new _(D,E.clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,Z,I)),I=null},G===void 0&&W.setContentType(null),"setRequestHeader"in I)V.forEach(W.toJSON(),function(D,E){I.setRequestHeader(E,D)});if(!V.isUndefined(X.withCredentials))I.withCredentials=!!X.withCredentials;if(H&&H!=="json")I.responseType=X.responseType;if(B)[$,K]=G6(B,!0),I.addEventListener("progress",$);if(z&&I.upload)[L,M]=G6(z),I.upload.addEventListener("progress",L),I.upload.addEventListener("loadend",M);if(X.cancelToken||X.signal){if(U=(q)=>{if(!I)return;Q(!q||q.type?new t0(null,Z,I):q),I.abort(),I=null},X.cancelToken&&X.cancelToken.subscribe(U),X.signal)X.signal.aborted?U():X.signal.addEventListener("abort",U)}let w=DL(X.url);if(w&&r.protocols.indexOf(w)===-1){Q(new _("Unsupported protocol "+w+":",_.ERR_BAD_REQUEST,Z));return}I.send(G||null)})},xL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let Q=new AbortController,X,G=function(B){if(!X){X=!0,H();let U=B instanceof Error?B:this.reason;Q.abort(U instanceof _?U:new t0(U instanceof Error?U.message:U))}},W=J&&setTimeout(()=>{W=null,G(new _(`timeout of ${J}ms exceeded`,_.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((B)=>{B.unsubscribe?B.unsubscribe(G):B.removeEventListener("abort",G)}),Z=null};Z.forEach((B)=>B.addEventListener("abort",G));let{signal:z}=Q;return z.unsubscribe=()=>V.asap(H),z}},fL=xL,CL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let Q=0,X;while(Q<Y)X=Q+J,yield Z.slice(Q,X),Q=X},jL=async function*(Z,J){for await(let Y of _L(Z))yield*CL(Y,J)},_L=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:Q}=await J.read();if(Y)break;yield Q}}finally{await J.cancel()}},XQ=(Z,J,Y,Q)=>{let X=jL(Z,J),G=0,W,H=(z)=>{if(!W)W=!0,Q&&Q(z)};return new ReadableStream({async pull(z){try{let{done:B,value:U}=await X.next();if(B){H(),z.close();return}let L=U.byteLength;if(Y){let $=G+=L;Y($)}z.enqueue(new Uint8Array(U))}catch(B){throw H(B),B}},cancel(z){return H(z),X.return()}},{highWaterMark:2})},GQ=65536,{isFunction:Z6}=V,vL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(V.global),{ReadableStream:WQ,TextEncoder:HQ}=V.global,zQ=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},kL=(Z)=>{Z=V.merge.call({skipUndefined:!0},vL,Z);let{fetch:J,Request:Y,Response:Q}=Z,X=J?Z6(J):typeof fetch==="function",G=Z6(Y),W=Z6(Q);if(!X)return!1;let H=X&&Z6(WQ),z=X&&(typeof HQ==="function"?((K)=>(F)=>K.encode(F))(new HQ):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),B=G&&H&&zQ(()=>{let K=!1,F=new Y(r.origin,{body:new WQ,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!F}),U=W&&H&&zQ(()=>V.isReadableStream(new Q("").body)),L={stream:U&&((K)=>K.body)};X&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=(F,I)=>{let N=F&&F[K];if(N)return N.call(F);throw new _(`Response type '${K}' is not supported`,_.ERR_NOT_SUPPORT,I)})})})();let $=async(K)=>{if(K==null)return 0;if(V.isBlob(K))return K.size;if(V.isSpecCompliantForm(K))return(await new Y(r.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(V.isArrayBufferView(K)||V.isArrayBuffer(K))return K.byteLength;if(V.isURLSearchParams(K))K=K+"";if(V.isString(K))return(await z(K)).byteLength},M=async(K,F)=>{let I=V.toFiniteNumber(K.getContentLength());return I==null?$(F):I};return async(K)=>{let{url:F,method:I,data:N,signal:w,cancelToken:q,timeout:D,onDownloadProgress:E,onUploadProgress:v,responseType:m,headers:q1,withCredentials:R="same-origin",fetchOptions:S}=fQ(K),T=J||fetch;m=m?(m+"").toLowerCase():"text";let C=fL([w,q&&q.toAbortSignal()],D),k=null,u=C&&C.unsubscribe&&(()=>{C.unsubscribe()}),O;try{if(v&&B&&I!=="get"&&I!=="head"&&(O=await M(q1,N))!==0){let k1=new Y(F,{method:"POST",body:N,duplex:"half"}),H0;if(V.isFormData(N)&&(H0=k1.headers.get("content-type")))q1.setContentType(H0);if(k1.body){let[w6,U5]=JQ(O,G6(YQ(v)));N=XQ(k1.body,GQ,w6,U5)}}if(!V.isString(R))R=R?"include":"omit";let o=G&&"credentials"in Y.prototype,p={...S,signal:C,method:I.toUpperCase(),headers:q1.normalize().toJSON(),body:N,duplex:"half",credentials:o?R:void 0};k=G&&new Y(F,p);let F1=await(G?T(k,S):T(F,p)),v1=U&&(m==="stream"||m==="response");if(U&&(E||v1&&u)){let k1={};["status","statusText","headers"].forEach((G7)=>{k1[G7]=F1[G7]});let H0=V.toFiniteNumber(F1.headers.get("content-length")),[w6,U5]=E&&JQ(H0,G6(YQ(E),!0))||[];F1=new Q(XQ(F1.body,GQ,w6,()=>{U5&&U5(),u&&u()}),k1)}m=m||"text";let S1=await L[V.findKey(L,m)||"text"](F1,K);return!v1&&u&&u(),await new Promise((k1,H0)=>{SQ(k1,H0,{data:S1,headers:$1.from(F1.headers),status:F1.status,statusText:F1.statusText,config:K,request:k})})}catch(o){if(u&&u(),o&&o.name==="TypeError"&&/Load failed|fetch/i.test(o.message))throw Object.assign(new _("Network Error",_.ERR_NETWORK,K,k),{cause:o.cause||o});throw _.from(o,o&&o.code,K,k)}}},hL=new Map,CQ=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:Q,Response:X}=J,G=[Q,X,Y],W=G.length,H=W,z,B,U=hL;while(H--)z=G[H],B=U.get(z),B===void 0&&U.set(z,B=H?new Map:kL(J)),U=B;return B};CQ();var R9={http:tK,xhr:SL,fetch:{get:CQ}};V.forEach(R9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var BQ=(Z)=>`- ${Z}`,bL=(Z)=>V.isFunction(Z)||Z===null||Z===!1;function gL(Z,J){Z=V.isArray(Z)?Z:[Z];let{length:Y}=Z,Q,X,G={};for(let W=0;W<Y;W++){Q=Z[W];let H;if(X=Q,!bL(Q)){if(X=R9[(H=String(Q)).toLowerCase()],X===void 0)throw new _(`Unknown adapter '${H}'`)}if(X&&(V.isFunction(X)||(X=X.get(J))))break;G[H||"#"+W]=X}if(!X){let W=Object.entries(G).map(([z,B])=>`adapter ${z} `+(B===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
12
- `+W.map(BQ).join(`
13
- `):" "+BQ(W[0]):"as no adapter specified";throw new _("There is no suitable adapter to dispatch the request "+H,"ERR_NOT_SUPPORT")}return X}var jQ={getAdapter:gL,adapters:R9};function M9(Z){if(Z.cancelToken)Z.cancelToken.throwIfRequested();if(Z.signal&&Z.signal.aborted)throw new t0(null,Z)}function UQ(Z){if(M9(Z),Z.headers=$1.from(Z.headers),Z.data=L9.call(Z,Z.transformRequest),["post","put","patch"].indexOf(Z.method)!==-1)Z.headers.setContentType("application/x-www-form-urlencoded",!1);return jQ.getAdapter(Z.adapter||A9.adapter,Z)(Z).then(function(Q){return M9(Z),Q.data=L9.call(Z,Z.transformResponse,Q),Q.headers=$1.from(Q.headers),Q},function(Q){if(!wQ(Q)){if(M9(Z),Q&&Q.response)Q.response.data=L9.call(Z,Z.transformResponse,Q.response),Q.response.headers=$1.from(Q.response.headers)}return Promise.reject(Q)})}var _Q="1.13.4",U6={};["object","boolean","number","function","string","symbol"].forEach((Z,J)=>{U6[Z]=function(Q){return typeof Q===Z||"a"+(J<1?"n ":" ")+Z}});var KQ={};U6.transitional=function(J,Y,Q){function X(G,W){return"[Axios v"+_Q+"] Transitional option '"+G+"'"+W+(Q?". "+Q:"")}return(G,W,H)=>{if(J===!1)throw new _(X(W," has been removed"+(Y?" in "+Y:"")),_.ERR_DEPRECATED);if(Y&&!KQ[W])KQ[W]=!0,console.warn(X(W," has been deprecated since v"+Y+" and will be removed in the near future"));return J?J(G,W,H):!0}};U6.spelling=function(J){return(Y,Q)=>{return console.warn(`${Q} is likely a misspelling of ${J}`),!0}};function yL(Z,J,Y){if(typeof Z!=="object")throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);let Q=Object.keys(Z),X=Q.length;while(X-- >0){let G=Q[X],W=J[G];if(W){let H=Z[G],z=H===void 0||W(H,G,Z);if(z!==!0)throw new _("option "+G+" must be "+z,_.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new _("Unknown option "+G,_.ERR_BAD_OPTION)}}var Q6={assertOptions:yL,validators:U6},T1=Q6.validators;class n0{constructor(Z){this.defaults=Z||{},this.interceptors={request:new eY,response:new eY}}async request(Z,J){try{return await this._request(Z,J)}catch(Y){if(Y instanceof Error){let Q={};Error.captureStackTrace?Error.captureStackTrace(Q):Q=Error();let X=Q.stack?Q.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=X;else if(X&&!String(Y.stack).endsWith(X.replace(/^.+\n.+\n/,"")))Y.stack+=`
14
- `+X}catch(G){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=X0(this.defaults,J);let{transitional:Y,paramsSerializer:Q,headers:X}=J;if(Y!==void 0)Q6.assertOptions(Y,{silentJSONParsing:T1.transitional(T1.boolean),forcedJSONParsing:T1.transitional(T1.boolean),clarifyTimeoutError:T1.transitional(T1.boolean)},!1);if(Q!=null)if(V.isFunction(Q))J.paramsSerializer={serialize:Q};else Q6.assertOptions(Q,{encode:T1.function,serialize:T1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;Q6.assertOptions(J,{baseUrl:T1.spelling("baseURL"),withXsrfToken:T1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let G=X&&V.merge(X.common,X[J.method]);X&&V.forEach(["delete","get","head","post","put","patch","common"],(M)=>{delete X[M]}),J.headers=$1.concat(G,X);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let B,U=0,L;if(!H){let M=[UQ.bind(this),void 0];M.unshift(...W),M.push(...z),L=M.length,B=Promise.resolve(J);while(U<L)B=B.then(M[U++],M[U++]);return B}L=W.length;let $=J;while(U<L){let M=W[U++],K=W[U++];try{$=M($)}catch(F){K.call(this,F);break}}try{B=UQ.call(this,$)}catch(M){return Promise.reject(M)}U=0,L=z.length;while(U<L)B=B.then(z[U++],z[U++]);return B}getUri(Z){Z=X0(this.defaults,Z);let J=xQ(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return AQ(J,Z.params,Z.paramsSerializer)}}V.forEach(["delete","get","head","options"],function(J){n0.prototype[J]=function(Y,Q){return this.request(X0(Q||{},{method:J,url:Y,data:(Q||{}).data}))}});V.forEach(["post","put","patch"],function(J){function Y(Q){return function(G,W,H){return this.request(X0(H||{},{method:J,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:G,data:W}))}}n0.prototype[J]=Y(),n0.prototype[J+"Form"]=Y(!0)});var X6=n0;class P9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(X){J=X});let Y=this;this.promise.then((Q)=>{if(!Y._listeners)return;let X=Y._listeners.length;while(X-- >0)Y._listeners[X](Q);Y._listeners=null}),this.promise.then=(Q)=>{let X,G=new Promise((W)=>{Y.subscribe(W),X=W}).then(Q);return G.cancel=function(){Y.unsubscribe(X)},G},Z(function(X,G,W){if(Y.reason)return;Y.reason=new t0(X,G,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new P9(function(Q){Z=Q}),cancel:Z}}}var mL=P9;function uL(Z){return function(Y){return Z.apply(null,Y)}}function dL(Z){return V.isObject(Z)&&Z.isAxiosError===!0}var I9={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(I9).forEach(([Z,J])=>{I9[J]=Z});var cL=I9;function vQ(Z){let J=new X6(Z),Y=LQ(X6.prototype.request,J);return V.extend(Y,X6.prototype,J,{allOwnKeys:!0}),V.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(X){return vQ(X0(Z,X))},Y}var c=vQ(A9);c.Axios=X6;c.CanceledError=t0;c.CancelToken=mL;c.isCancel=wQ;c.VERSION=_Q;c.toFormData=B6;c.AxiosError=_;c.Cancel=c.CanceledError;c.all=function(J){return Promise.all(J)};c.spread=uL;c.isAxiosError=dL;c.mergeConfig=X0;c.AxiosHeaders=$1;c.formToJSON=(Z)=>TQ(V.isHTMLForm(Z)?new FormData(Z):Z);c.getAdapter=jQ.getAdapter;c.HttpStatusCode=cL;c.default=c;kQ.exports=c});var w9=A((gQ)=>{Object.defineProperty(gQ,"__esModule",{value:!0});gQ.addAxiosDateTransformer=gQ.createAxiosDateTransformer=void 0;var pL=(aY(),vX(oY)),lL=pL.__importDefault(hQ()),iL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,nL=(Z)=>{return iL.test(Z)},oL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},aL=(Z,J,Y)=>{return typeof J==="string"&&nL(J)&&oL(Z,Y)},bQ=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(aL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=bQ(Z[Y],J)}return Z},sL=(Z,J)=>{if(Z.data)Z.data=bQ(Z.data,J);return Z},rL=(Z={})=>{return gQ.addAxiosDateTransformer(lL.default.create(Z),Z)};gQ.createAxiosDateTransformer=rL;var tL=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((Q)=>sL(Q,Y)),Z};gQ.addAxiosDateTransformer=tL});var C9=A((nQ)=>{Object.defineProperty(nQ,"__esModule",{value:!0});nQ.Doctype=nQ.CDATA=nQ.Tag=nQ.Style=nQ.Script=nQ.Comment=nQ.Directive=nQ.Text=nQ.Root=nQ.isTag=nQ.ElementType=void 0;var z1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(z1=nQ.ElementType||(nQ.ElementType={}));function WM(Z){return Z.type===z1.Tag||Z.type===z1.Script||Z.type===z1.Style}nQ.isTag=WM;nQ.Root=z1.Root;nQ.Text=z1.Text;nQ.Directive=z1.Directive;nQ.Comment=z1.Comment;nQ.Script=z1.Script;nQ.Style=z1.Style;nQ.Tag=z1.Tag;nQ.CDATA=z1.CDATA;nQ.Doctype=z1.Doctype});var k9=A((f)=>{var l1=f&&f.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,X){Q.__proto__=X}||function(Q,X){for(var G in X)if(Object.prototype.hasOwnProperty.call(X,G))Q[G]=X[G]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function Q(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}}(),e0=f&&f.__assign||function(){return e0=Object.assign||function(Z){for(var J,Y=1,Q=arguments.length;Y<Q;Y++){J=arguments[Y];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},e0.apply(this,arguments)};Object.defineProperty(f,"__esModule",{value:!0});f.cloneNode=f.hasChildren=f.isDocument=f.isDirective=f.isComment=f.isText=f.isCDATA=f.isTag=f.Element=f.Document=f.CDATA=f.NodeWithChildren=f.ProcessingInstruction=f.Comment=f.Text=f.DataNode=f.Node=void 0;var X1=C9(),_9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return v9(this,J)},Z}();f.Node=_9;var M6=function(Z){l1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.data=Y,Q}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(_9);f.DataNode=M6;var aQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=X1.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(M6);f.Text=aQ;var sQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=X1.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(M6);f.Comment=sQ;var rQ=function(Z){l1(J,Z);function J(Y,Q){var X=Z.call(this,Q)||this;return X.name=Y,X.type=X1.ElementType.Directive,X}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(M6);f.ProcessingInstruction=rQ;var F6=function(Z){l1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.children=Y,Q}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(_9);f.NodeWithChildren=F6;var tQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=X1.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(F6);f.CDATA=tQ;var eQ=function(Z){l1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=X1.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(F6);f.Document=eQ;var Z3=function(Z){l1(J,Z);function J(Y,Q,X,G){if(X===void 0)X=[];if(G===void 0)G=Y==="script"?X1.ElementType.Script:Y==="style"?X1.ElementType.Style:X1.ElementType.Tag;var W=Z.call(this,X)||this;return W.name=Y,W.attribs=Q,W.type=G,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(Q){var X,G;return{name:Q,value:Y.attribs[Q],namespace:(X=Y["x-attribsNamespace"])===null||X===void 0?void 0:X[Q],prefix:(G=Y["x-attribsPrefix"])===null||G===void 0?void 0:G[Q]}})},enumerable:!1,configurable:!0}),J}(F6);f.Element=Z3;function J3(Z){return(0,X1.isTag)(Z)}f.isTag=J3;function Y3(Z){return Z.type===X1.ElementType.CDATA}f.isCDATA=Y3;function Q3(Z){return Z.type===X1.ElementType.Text}f.isText=Q3;function X3(Z){return Z.type===X1.ElementType.Comment}f.isComment=X3;function G3(Z){return Z.type===X1.ElementType.Directive}f.isDirective=G3;function W3(Z){return Z.type===X1.ElementType.Root}f.isDocument=W3;function $M(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}f.hasChildren=$M;function v9(Z,J){if(J===void 0)J=!1;var Y;if(Q3(Z))Y=new aQ(Z.data);else if(X3(Z))Y=new sQ(Z.data);else if(J3(Z)){var Q=J?j9(Z.children):[],X=new Z3(Z.name,e0({},Z.attribs),Q);if(Q.forEach(function(z){return z.parent=X}),Z.namespace!=null)X.namespace=Z.namespace;if(Z["x-attribsNamespace"])X["x-attribsNamespace"]=e0({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])X["x-attribsPrefix"]=e0({},Z["x-attribsPrefix"]);Y=X}else if(Y3(Z)){var Q=J?j9(Z.children):[],G=new tQ(Q);Q.forEach(function(B){return B.parent=G}),Y=G}else if(W3(Z)){var Q=J?j9(Z.children):[],W=new eQ(Q);if(Q.forEach(function(B){return B.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(G3(Z)){var H=new rQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}f.cloneNode=v9;function j9(Z){var J=Z.map(function(Q){return v9(Q,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var b9=A((w1)=>{var IM=w1&&w1.__createBinding||(Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]}),VM=w1&&w1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))IM(J,Z,Y)};Object.defineProperty(w1,"__esModule",{value:!0});w1.DomHandler=void 0;var h9=C9(),i1=k9();VM(k9(),w1);var H3={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},z3=function(){function Z(J,Y,Q){if(this.dom=[],this.root=new i1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")Q=Y,Y=H3;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:H3,this.elementCB=Q!==null&&Q!==void 0?Q:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new i1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var Q=this.options.xmlMode?h9.ElementType.Tag:void 0,X=new i1.Element(J,Y,void 0,Q);this.addNode(X),this.tagStack.push(X)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===h9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var Q=new i1.Text(J);this.addNode(Q),this.lastNode=Q}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===h9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new i1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new i1.Text(""),Y=new i1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var Q=new i1.ProcessingInstruction(J,Y);this.addNode(Q)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],Q=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),Q)J.prev=Q,Q.next=J;J.parent=Y,this.lastNode=null},Z}();w1.DomHandler=z3;w1.default=z3});var F3=A((B3)=>{Object.defineProperty(B3,"__esModule",{value:!0});B3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=B3.CARRIAGE_RETURN_PLACEHOLDER=B3.CARRIAGE_RETURN_REGEX=B3.CARRIAGE_RETURN=B3.CASE_SENSITIVE_TAG_NAMES_MAP=B3.CASE_SENSITIVE_TAG_NAMES=void 0;B3.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];B3.CASE_SENSITIVE_TAG_NAMES_MAP=B3.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});B3.CARRIAGE_RETURN="\r";B3.CARRIAGE_RETURN_REGEX=new RegExp(B3.CARRIAGE_RETURN,"g");B3.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");B3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(B3.CARRIAGE_RETURN_PLACEHOLDER,"g")});var g9=A((V3)=>{Object.defineProperty(V3,"__esModule",{value:!0});V3.formatAttributes=O3;V3.escapeSpecialCharacters=RM;V3.revertEscapedCharacters=$3;V3.formatDOM=I3;var O6=b9(),Z5=F3();function NM(Z){return Z5.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function O3(Z){var J={},Y=0,Q=Z.length;for(;Y<Q;Y++){var X=Z[Y];J[X.name]=X.value}return J}function AM(Z){Z=Z.toLowerCase();var J=NM(Z);if(J)return J;return Z}function RM(Z){return Z.replace(Z5.CARRIAGE_RETURN_REGEX,Z5.CARRIAGE_RETURN_PLACEHOLDER)}function $3(Z){return Z.replace(Z5.CARRIAGE_RETURN_PLACEHOLDER_REGEX,Z5.CARRIAGE_RETURN)}function I3(Z,J,Y){var Q,X,G,W;if(J===void 0)J=null;var H=[],z,B=0,U=Z.length;for(;B<U;B++){var L=Z[B];switch(L.nodeType){case 1:{var $=AM(L.nodeName);z=new O6.Element($,O3(L.attributes)),z.children=I3($==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new O6.Text($3((Q=L.nodeValue)!==null&&Q!==void 0?Q:""));break;case 8:z=new O6.Comment((X=L.nodeValue)!==null&&X!==void 0?X:"");break;default:continue}var M=(G=H[B-1])!==null&&G!==void 0?G:null;if(M)M.next=z;z.parent=J,z.prev=M,z.next=null,H.push(z)}if(Y){if(z=new O6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var w3=A((T3)=>{Object.defineProperty(T3,"__esModule",{value:!0});T3.default=fM;var SM=g9(),q3="html",D3="head",$6="body",xM=/<([a-zA-Z]+[0-9]?)/,N3=/<head[^]*>/i,A3=/<body[^]*>/i,V6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},y9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},R3=typeof window==="object"&&window.DOMParser;if(typeof R3==="function")m9=new R3,u9="text/html",y9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return m9.parseFromString(Z,u9)},V6=y9;var m9,u9;if(typeof document==="object"&&document.implementation)N0=document.implementation.createHTMLDocument(),V6=function(Z,J){if(J){var Y=N0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return N0}return N0.documentElement.innerHTML=Z,N0};var N0,I6=typeof document==="object"&&document.createElement("template"),d9;if(I6&&I6.content)d9=function(Z){return I6.innerHTML=Z,I6.content.childNodes};var P3=function(){return document.createDocumentFragment().childNodes};function fM(Z){var J,Y,Q,X,G,W;Z=(0,SM.escapeSpecialCharacters)(Z);var H=xM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case q3:{var B=y9(Z);if(!N3.test(Z)){var U=B.querySelector(D3);(Y=U===null||U===void 0?void 0:U.parentNode)===null||Y===void 0||Y.removeChild(U)}if(!A3.test(Z)){var U=B.querySelector($6);(Q=U===null||U===void 0?void 0:U.parentNode)===null||Q===void 0||Q.removeChild(U)}return B.querySelectorAll(q3)}case D3:case $6:{var L=V6(Z).querySelectorAll(z);if(A3.test(Z)&&N3.test(Z))return(G=(X=L[0].parentNode)===null||X===void 0?void 0:X.childNodes)!==null&&G!==void 0?G:P3();return L}default:{if(d9)return d9(Z);var U=V6(Z,$6).querySelector($6);return(W=U===null||U===void 0?void 0:U.childNodes)!==null&&W!==void 0?W:P3()}}}});var E3=A((J5)=>{var jM=J5&&J5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(J5,"__esModule",{value:!0});J5.default=hM;var _M=jM(w3()),vM=g9(),kM=/<(![a-zA-Z\s]+)>/;function hM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=kM.exec(Z),Y=J?J[1]:void 0;return(0,vM.formatDOM)((0,_M.default)(Z),null,Y)}});var S3=A((yM)=>{var bM=0;yM.SAME=bM;var gM=1;yM.CAMELCASE=gM;yM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var f3=A((tM)=>{function cM(Z){return n.hasOwnProperty(Z)?n[Z]:null}function J1(Z,J,Y,Q,X,G,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=G,this.removeEmptyString=W}var n={},pM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];pM.forEach((Z)=>{n[Z]=new J1(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{n[Z]=new J1(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{n[Z]=new J1(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{n[Z]=new J1(Z,2,!1,Z,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((Z)=>{n[Z]=new J1(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{n[Z]=new J1(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{n[Z]=new J1(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{n[Z]=new J1(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{n[Z]=new J1(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var c9=/[\-\:]([a-z])/g,p9=(Z)=>Z[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((Z)=>{let J=Z.replace(c9,p9);n[J]=new J1(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(c9,p9);n[J]=new J1(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(c9,p9);n[J]=new J1(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{n[Z]=new J1(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var lM="xlinkHref";n[lM]=new J1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{n[Z]=new J1(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:iM,SAME:nM,possibleStandardNames:x3}=S3(),oM=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",aM=oM+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",sM=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+aM+"]*$")),rM=Object.keys(x3).reduce((Z,J)=>{let Y=x3[J];if(Y===nM)Z[J]=J;else if(Y===iM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});tM.BOOLEAN=3;tM.BOOLEANISH_STRING=2;tM.NUMERIC=5;tM.OVERLOADED_BOOLEAN=4;tM.POSITIVE_NUMERIC=6;tM.RESERVED=0;tM.STRING=1;tM.getPropertyInfo=cM;tM.isCustomAttribute=sM;tM.possibleStandardNames=rM});var h3=A((AD,k3)=>{var C3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,B2=/\n/g,U2=/^\s*/,K2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,L2=/^:\s*/,M2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,F2=/^[;\s]*/,O2=/^\s+|\s+$/g,$2=`
15
- `,j3="/",_3="*",G0="",I2="comment",V2="declaration";function q2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,Q=1;function X(K){var F=K.match(B2);if(F)Y+=F.length;var I=K.lastIndexOf($2);Q=~I?K.length-I:Q+K.length}function G(){var K={line:Y,column:Q};return function(F){return F.position=new W(K),B(),F}}function W(K){this.start=K,this.end={line:Y,column:Q},this.source=J.source}W.prototype.content=Z;function H(K){var F=Error(J.source+":"+Y+":"+Q+": "+K);if(F.reason=K,F.filename=J.source,F.line=Y,F.column=Q,F.source=Z,J.silent);else throw F}function z(K){var F=K.exec(Z);if(!F)return;var I=F[0];return X(I),Z=Z.slice(I.length),F}function B(){z(U2)}function U(K){var F;K=K||[];while(F=L())if(F!==!1)K.push(F);return K}function L(){var K=G();if(j3!=Z.charAt(0)||_3!=Z.charAt(1))return;var F=2;while(G0!=Z.charAt(F)&&(_3!=Z.charAt(F)||j3!=Z.charAt(F+1)))++F;if(F+=2,G0===Z.charAt(F-1))return H("End of comment missing");var I=Z.slice(2,F-2);return Q+=2,X(I),Z=Z.slice(F),Q+=2,K({type:I2,comment:I})}function $(){var K=G(),F=z(K2);if(!F)return;if(L(),!z(L2))return H("property missing ':'");var I=z(M2),N=K({type:V2,property:v3(F[0].replace(C3,G0)),value:I?v3(I[0].replace(C3,G0)):G0});return z(F2),N}function M(){var K=[];U(K);var F;while(F=$())if(F!==!1)K.push(F),U(K);return K}return B(),M()}function v3(Z){return Z?Z.replace(O2,G0):G0}k3.exports=q2});var b3=A((Y5)=>{var D2=Y5&&Y5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Y5,"__esModule",{value:!0});Y5.default=A2;var N2=D2(h3());function A2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let Q=(0,N2.default)(Z),X=typeof J==="function";return Q.forEach((G)=>{if(G.type!=="declaration")return;let{property:W,value:H}=G;if(X)J(W,H,G);else if(H)Y=Y||{},Y[W]=H}),Y}});var u3=A((y3)=>{Object.defineProperty(y3,"__esModule",{value:!0});y3.camelCase=void 0;var R2=/^--[a-zA-Z0-9_-]+$/,P2=/-([a-z])/g,T2=/^[^-]+$/,w2=/^-(webkit|moz|ms|o|khtml)-/,E2=/^-(ms)-/,S2=function(Z){return!Z||T2.test(Z)||R2.test(Z)},x2=function(Z,J){return J.toUpperCase()},g3=function(Z,J){return"".concat(J,"-")},f2=function(Z,J){if(J===void 0)J={};if(S2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(E2,g3);else Z=Z.replace(w2,g3);return Z.replace(P2,x2)};y3.camelCase=f2});var c3=A((i9,d3)=>{var C2=i9&&i9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},j2=C2(b3()),_2=u3();function l9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,j2.default)(Z,function(Q,X){if(Q&&X)Y[(0,_2.camelCase)(Q,J)]=X}),Y}l9.default=l9;d3.exports=l9});import*as p3 from"react";var n9=A((Y1)=>{var v2=Y1&&Y1.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Y1,"__esModule",{value:!0});Y1.returnFirstArg=Y1.canTextBeChildOfNode=Y1.ELEMENTS_WITH_NO_TEXT_CHILDREN=Y1.PRESERVE_CUSTOM_ATTRIBUTES=void 0;Y1.isCustomComponent=b2;Y1.setStyleProp=y2;var k2=v2(c3()),h2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function b2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(h2.has(Z))return!1;return!0}var g2={reactCompat:!0};function y2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,k2.default)(Z,g2)}catch(Y){J.style={}}}Y1.PRESERVE_CUSTOM_ATTRIBUTES=Number(p3.version.split(".")[0])>=16;Y1.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var m2=function(Z){return!Y1.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};Y1.canTextBeChildOfNode=m2;var u2=function(Z){return Z};Y1.returnFirstArg=u2});var o9=A((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.default=l2;var Q5=f3(),l3=n9(),d2=["checked","value"],c2=["input","select","textarea"],p2={reset:!0,submit:!0};function l2(Z,J){if(Z===void 0)Z={};var Y={},Q=Boolean(Z.type&&p2[Z.type]);for(var X in Z){var G=Z[X];if((0,Q5.isCustomAttribute)(X)){Y[X]=G;continue}var W=X.toLowerCase(),H=i3(W);if(H){var z=(0,Q5.getPropertyInfo)(H);if(d2.includes(H)&&c2.includes(J)&&!Q)H=i3("default"+W);switch(Y[H]=G,z===null||z===void 0?void 0:z.type){case Q5.BOOLEAN:Y[H]=!0;break;case Q5.OVERLOADED_BOOLEAN:if(G==="")Y[H]=!0;break}continue}if(l3.PRESERVE_CUSTOM_ATTRIBUTES)Y[X]=G}return(0,l3.setStyleProp)(Z.style,Y),Y}function i3(Z){return Q5.possibleStandardNames[Z]}});import*as A0 from"react";var a3=A((G5)=>{var n2=G5&&G5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(G5,"__esModule",{value:!0});G5.default=o3;var o2=n2(o9()),X5=n9(),a2={cloneElement:A0.cloneElement,createElement:A0.createElement,isValidElement:A0.isValidElement};function o3(Z,J){var Y,Q,X,G,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",B=(Y=J.transform)!==null&&Y!==void 0?Y:X5.returnFirstArg,U=(Q=J.library)!==null&&Q!==void 0?Q:a2,L=U.cloneElement,$=U.createElement,M=U.isValidElement,K=Z.length;for(var F=0;F<K;F++){var I=Z[F];if(z){var N=(X=J.replace)===null||X===void 0?void 0:X.call(J,I,F);if(M(N)){if(K>1)N=L(N,{key:(G=N.key)!==null&&G!==void 0?G:F});H.push(B(N,I,F));continue}}if(I.type==="text"){var w=!I.data.trim().length;if(w&&I.parent&&!(0,X5.canTextBeChildOfNode)(I.parent))continue;if(J.trim&&w)continue;H.push(B(I.data,I,F));continue}var q=I,D={};if(s2(q))(0,X5.setStyleProp)(q.attribs.style,q.attribs),D=q.attribs;else if(q.attribs)D=(0,o2.default)(q.attribs,q.name);var E=void 0;switch(I.type){case"script":case"style":if(I.children[0])D.dangerouslySetInnerHTML={__html:I.children[0].data};break;case"tag":if(I.name==="textarea"&&I.children[0])D.defaultValue=I.children[0].data;else if((W=I.children)===null||W===void 0?void 0:W.length)E=o3(I.children,J);break;default:continue}if(K>1)D.key=F;H.push(B($(I.name,D,E),I,F))}return H.length===1?H[0]:H}function s2(Z){return X5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,X5.isCustomComponent)(Z.name,Z.attribs)}});var s9=A((l)=>{var a9=l&&l.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(l,"__esModule",{value:!0});l.htmlToDOM=l.domToReact=l.attributesToProps=l.Text=l.ProcessingInstruction=l.Element=l.Comment=void 0;l.default=e2;var s3=a9(E3());l.htmlToDOM=s3.default;var r2=a9(o9());l.attributesToProps=r2.default;var r3=a9(a3());l.domToReact=r3.default;var q6=b9();Object.defineProperty(l,"Comment",{enumerable:!0,get:function(){return q6.Comment}});Object.defineProperty(l,"Element",{enumerable:!0,get:function(){return q6.Element}});Object.defineProperty(l,"ProcessingInstruction",{enumerable:!0,get:function(){return q6.ProcessingInstruction}});Object.defineProperty(l,"Text",{enumerable:!0,get:function(){return q6.Text}});var t2={lowerCaseAttributeNames:!1};function e2(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,r3.default)((0,s3.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:t2),J)}});var ZX=A((lD,W5)=>{var e3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z};//! annyang
16
- //! version : 2.6.1
17
- //! author : Tal Ater @TalAter
18
- //! license : MIT
19
- //! https://www.TalAter.com/annyang/
20
- //! annyang
21
- //! version : 2.6.1
22
- //! author : Tal Ater @TalAter
23
- //! license : MIT
24
- //! https://www.TalAter.com/annyang/
25
- (function(Z,J){typeof define=="function"&&define.amd?define([],function(){return Z.annyang=J(Z)}):(typeof W5>"u"?"undefined":e3(W5))==="object"&&W5.exports?W5.exports=J(Z):Z.annyang=J(Z)})(typeof window<"u"?window:void 0,function(Z,J){var Y,Q=Z.SpeechRecognition||Z.webkitSpeechRecognition||Z.mozSpeechRecognition||Z.msSpeechRecognition||Z.oSpeechRecognition;if(!Q)return null;var X,G,W=[],H={start:[],error:[],end:[],soundstart:[],result:[],resultMatch:[],resultNoMatch:[],errorNetwork:[],errorPermissionBlocked:[],errorPermissionDenied:[]},z=0,B=0,U=!1,L="font-weight: bold; color: #00f;",$=!1,M=!1,K=/\s*\((.*?)\)\s*/g,F=/(\(\?:[^)]+\))\?/g,I=/(\(\?)?:\w+/g,N=/\*\w+/g,w=/[\-{}\[\]+?.,\\\^$|#]/g,q=function(R){for(var S=arguments.length,T=Array(1<S?S-1:0),C=1;C<S;C++)T[C-1]=arguments[C];R.forEach(function(k){k.callback.apply(k.context,T)})},D=function(){return X!==J},E=function(R,S){R.indexOf("%c")!==-1||S?console.log(R,S||L):console.log(R)},v=function(){D()||Y.init({},!1)},m=function(R,S,T){W.push({command:R,callback:S,originalPhrase:T}),U&&E("Command successfully loaded: %c"+T,L)},q1=function(R){var S;q(H.result,R);for(var T=0;T<R.length;T++){S=R[T].trim(),U&&E("Speech recognized: %c"+S,L);for(var C=0,k=W.length;C<k;C++){var u=W[C],O=u.command.exec(S);if(O){var o=O.slice(1);return U&&(E("command matched: %c"+u.originalPhrase,L),o.length&&E("with parameters",o)),u.callback.apply(this,o),void q(H.resultMatch,S,u.originalPhrase,R)}}}q(H.resultNoMatch,R)};return Y={init:function(R){var S=!(1<arguments.length&&arguments[1]!==J)||arguments[1];X&&X.abort&&X.abort(),(X=new Q).maxAlternatives=5,X.continuous=Z.location.protocol==="http:",X.lang="en-US",X.onstart=function(){M=!0,q(H.start)},X.onsoundstart=function(){q(H.soundstart)},X.onerror=function(T){switch(q(H.error,T),T.error){case"network":q(H.errorNetwork,T);break;case"not-allowed":case"service-not-allowed":G=!1,new Date().getTime()-z<200?q(H.errorPermissionBlocked,T):q(H.errorPermissionDenied,T)}},X.onend=function(){if(M=!1,q(H.end),G){var T=new Date().getTime()-z;(B+=1)%10==0&&U&&E("Speech Recognition is repeatedly stopping and starting. See http://is.gd/annyang_restarts for tips."),T<1000?setTimeout(function(){Y.start({paused:$})},1000-T):Y.start({paused:$})}},X.onresult=function(T){if($)return U&&E("Speech heard, but annyang is paused"),!1;for(var C=T.results[T.resultIndex],k=[],u=0;u<C.length;u++)k[u]=C[u].transcript;q1(k)},S&&(W=[]),R.length&&this.addCommands(R)},start:function(R){v(),$=(R=R||{}).paused!==J&&!!R.paused,G=R.autoRestart===J||!!R.autoRestart,R.continuous!==J&&(X.continuous=!!R.continuous),z=new Date().getTime();try{X.start()}catch(S){U&&E(S.message)}},abort:function(){G=!1,B=0,D()&&X.abort()},pause:function(){$=!0},resume:function(){Y.start()},debug:function(){var R=!(0<arguments.length&&arguments[0]!==J)||arguments[0];U=!!R},setLanguage:function(R){v(),X.lang=R},addCommands:function(R){var S,T;for(var C in v(),R)if(R.hasOwnProperty(C))if(typeof(S=Z[R[C]]||R[C])=="function")m((T=(T=C).replace(w,"\\$&").replace(K,"(?:$1)?").replace(I,function(k,u){return u?k:"([^\\s]+)"}).replace(N,"(.*?)").replace(F,"\\s*$1?\\s*"),new RegExp("^"+T+"$","i")),S,C);else{if(!((S===void 0?"undefined":e3(S))==="object"&&S.regexp instanceof RegExp)){U&&E("Can not register command: %c"+C,L);continue}m(new RegExp(S.regexp.source,"i"),S.callback,C)}},removeCommands:function(R){R===J?W=[]:(R=Array.isArray(R)?R:[R],W=W.filter(function(S){for(var T=0;T<R.length;T++)if(R[T]===S.originalPhrase)return!1;return!0}))},addCallback:function(R,S,T){var C=Z[S]||S;typeof C=="function"&&H[R]!==J&&H[R].push({callback:C,context:T||this})},removeCallback:function(R,S){var T=function(k){return k.callback!==S};for(var C in H)H.hasOwnProperty(C)&&(R!==J&&R!==C||(H[C]=S===J?[]:H[C].filter(T)))},isListening:function(){return M&&!$},getSpeechRecognizer:function(){return X},trigger:function(R){Y.isListening()?(Array.isArray(R)||(R=[R]),q1(R)):U&&E(M?"Speech heard, but annyang is paused":"Cannot trigger while annyang is aborted")}}})});import{lazy as kX}from"react";var E6=new Map;function K7(Z,J){return kX(()=>{if(E6.has(J))return E6.get(J);let Y=Z().then((Q)=>Q);return E6.set(J,Y),Y})}var L7=new Map,hX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=K7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function o1(Z){let J=hX(Z);return L7.set(J.name,J),J.component}var M7=(Z)=>{return L7.get(Z)};import{Suspense as nX,useContext as oX}from"react";import{createContext as bX}from"react";import{jsx as mX,Fragment as yX}from"react/jsx-runtime";var gX=bX(mX(yX,{})),h1=gX;import{createContext as uX,useContext as dX}from"react";var P0=uX(null),K5=()=>{let Z=dX(P0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},cX=()=>{let{apiServer:Z}=K5();return Z},D1=cX,pX=()=>{let{centrifugeServer:Z}=K5();return Z},L5=pX,lX=()=>{let{enableRenderingLog:Z}=K5();return Z},N1=lX,iX=()=>{let{pageProcessor:Z}=K5();return Z},F7=iX;import{jsx as O7}from"react/jsx-runtime";function aX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=oX(h1),Q=N1();if(Q)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let X=M7(Z.card);if(!X?.component){if(Q)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(Q)console.log("[UI] Found component in registry:",{name:X.name,isLazy:X.isLazy,hasMetadata:!!X.metadata});let G=X.component,W=O7(G,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(X.isLazy){if(Q)console.log("[UI] Rendering lazy component with Suspense:",X.name);return O7(nX,{fallback:X.fallback??Y,children:W},`${X.name}`)}if(Q)console.log("[UI] Rendering component directly:",X.name);return W}var G1=aX;import{useEffect as nF,useMemo as oF}from"react";import{QueryClient as aF,QueryClientProvider as sF,useQuery as rF}from"@tanstack/react-query";var S5=j(S6(),1),KJ=j(C6(),1);import UJ,{useState as jB,useContext as JJ,useRef as _B,useEffect as YJ,forwardRef as vB}from"react";var NG={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function T0(Z,J){var Y=!NG[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function w0(Z,J){return Object.keys(Z).reduce(function(Y,Q){return Y[Q]=J(Z[Q],Q),Y},{})}function j6(Z){return w0(Z,function(J,Y){return T0(Y,Z[Y])+" !important"})}var AG=/([a-z])?([A-Z])/g,RG=function(J,Y,Q){return(Y||"")+"-"+Q.toLowerCase()},_6=function(J){return J.replace(AG,RG)},PG=function(J){return Object.keys(J).reduce(function(Y,Q){var X=_6(Q);if(/^ms-/.test(X))X="-".concat(X);return Y[X]=J[Q],Y},{})},j7=PG;var vZ=j(d7(),1),kZ=j(Z4(),1),hZ=j(i6(),1);var v4=j(Q4(),1),k4=j(G4(),1),h4=j(H4(),1),b4=j(B4(),1),g4=j(L4(),1),y4=j(O4(),1),m4=j(V4(),1),u4=j(N4(),1),d4=j(R4(),1),c4=j(T4(),1),p4=j(E4(),1),l4=j(_4(),1),P=["Webkit"],U8=["Moz"],y=["ms"],a=["Webkit","Moz"],i=["Webkit","ms"],E0=["Webkit","Moz","ms"],i4={plugins:[v4.default,k4.default,h4.default,b4.default,g4.default,y4.default,m4.default,u4.default,d4.default,c4.default,p4.default,l4.default],prefixMap:{transform:i,transformOrigin:i,transformOriginX:i,transformOriginY:i,backfaceVisibility:P,perspective:P,perspectiveOrigin:P,transformStyle:P,transformOriginZ:P,animation:P,animationDelay:P,animationDirection:P,animationFillMode:P,animationDuration:P,animationIterationCount:P,animationName:P,animationPlayState:P,animationTimingFunction:P,appearance:a,userSelect:E0,fontKerning:P,textEmphasisPosition:P,textEmphasis:P,textEmphasisStyle:P,textEmphasisColor:P,boxDecorationBreak:P,clipPath:P,maskImage:P,maskMode:P,maskRepeat:P,maskPosition:P,maskClip:P,maskOrigin:P,maskSize:P,maskComposite:P,mask:P,maskBorderSource:P,maskBorderMode:P,maskBorderSlice:P,maskBorderWidth:P,maskBorderOutset:P,maskBorderRepeat:P,maskBorder:P,maskType:P,textDecorationStyle:a,textDecorationSkip:a,textDecorationLine:a,textDecorationColor:a,filter:P,fontFeatureSettings:a,breakAfter:E0,breakBefore:E0,breakInside:E0,columnCount:a,columnFill:a,columnGap:a,columnRule:a,columnRuleColor:a,columnRuleStyle:a,columnRuleWidth:a,columns:a,columnSpan:a,columnWidth:a,writingMode:i,flex:i,flexBasis:P,flexDirection:i,flexGrow:P,flexFlow:i,flexShrink:P,flexWrap:i,alignContent:P,alignItems:P,alignSelf:P,justifyContent:P,order:P,transitionDelay:P,transitionDuration:P,transitionProperty:P,transitionTimingFunction:P,backdropFilter:P,scrollSnapType:i,scrollSnapPointsX:i,scrollSnapPointsY:i,scrollSnapDestination:i,scrollSnapCoordinate:i,shapeImageThreshold:P,shapeImageMargin:P,shapeImageOutside:P,hyphens:E0,flowInto:i,flowFrom:i,regionFragment:i,boxSizing:U8,textAlignLast:U8,tabSize:U8,wrapFlow:y,wrapThrough:y,wrapMargin:y,touchAction:y,gridTemplateColumns:y,gridTemplateRows:y,gridTemplateAreas:y,gridTemplate:y,gridAutoColumns:y,gridAutoRows:y,gridAutoFlow:y,grid:y,gridRowStart:y,gridColumnStart:y,gridRowEnd:y,gridRow:y,gridColumn:y,gridColumnEnd:y,gridColumnGap:y,gridRowGap:y,gridArea:y,gridGap:y,textSizeAdjust:i,borderImage:P,borderImageOutset:P,borderImageRepeat:P,borderImageSlice:P,borderImageSource:P,borderImageWidth:P}};var DZ=j(a4(),1),NZ=j(r4(),1),AZ=j(ZZ(),1),RZ=j(YZ(),1),PZ=j(XZ(),1),TZ=j(WZ(),1),wZ=j(zZ(),1),EZ=j(KZ(),1),SZ=j(MZ(),1),xZ=j(OZ(),1),fZ=j(IZ(),1),CZ=j(qZ(),1),jZ={plugins:[DZ.default,NZ.default,AZ.default,RZ.default,PZ.default,TZ.default,wZ.default,EZ.default,SZ.default,xZ.default,fZ.default,CZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function V5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")V5=function(Y){return typeof Y};else V5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return V5(Z)}var bZ=vZ.default(i4),nz=kZ.default(jZ,bZ);function oz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))Q=Q.join(";"+Y+":");else if(Q&&V5(Q)==="object"&&typeof Q.toString==="function")Q=Q.toString();return J[Y]=Q,J},{})}function az(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))if(hZ.default.canUseDOM)Q=Q[Q.length-1].toString();else Q=Q.join(";".concat(_6(Y),":"));return J[Y]=Q,J},{})}var _Z,I5;function gZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!I5||J!==_Z){if(J==="all")I5={prefix:bZ,prefixedKeyframes:"keyframes"};else I5=new nz({userAgent:J});_Z=J}return I5}function yZ(Z){return gZ(Z).prefixedKeyframes||"keyframes"}function q5(Z,J){var Y=oz(Z),Q=gZ(J),X=Q.prefix(Y),G=az(X);return G}function sz(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
26
- `)}function b1(Z,J,Y){if(!J)return"";var Q=w0(J,function(H,z){return T0(z,H)}),X=q5(Q,Y),G=j7(X),W=sz(G);return Z+"{"+W+"}"}var rz=function(J){return J===null||typeof J>"u"?"main":J.toString()},D5=rz;var tz=function(J,Y,Q){var X=D5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[X]&&J._radiumStyleState[X][Q]},N5=tz;var ez=function(J){return typeof J.ref==="string"?J.ref:J.key},s1=ez;var ZB=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},S0=ZB;function x0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function A5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")A5=function(Y){return typeof Y};else A5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return A5(Z)}function R5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function P5(Z){var J={};return Z.forEach(function(Y){if(!Y||A5(Y)!=="object")return;if(Array.isArray(Y))Y=P5(Y);Object.keys(Y).forEach(function(Q){if(!R5(Y[Q])||!R5(J[Q])){J[Q]=Y[Q];return}if(Q.indexOf("@media")===0){var X=Q;while(!0)if(X+=" ",!J[X]){J[X]=Y[Q];return}}J[Q]=P5([J[Q],Y[Q]])})}),J}var JB=function(){};var mZ=JB;function x8(Z){var{addCSS:J,config:Y,style:Q}=Z,X=function(H){var z=H,B=z.__process(Y.userAgent),U=B.animationName,L=B.css;return J(L),U},G=Object.keys(Q).reduce(function(W,H){var z=Q[H],B=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||B))if(B)z=z.map(X).join(", ");else z=X(z);return W[H]=z,W},{});return{style:G}}var YB=function(J){var{style:Y,mergeStyles:Q}=J,X=Array.isArray(Y)?Q(Y):Y;return{style:X}},uZ=YB;function f8(Z){var{config:J,style:Y}=Z,Q=q5(Y,J.userAgent);return{style:Q}}function C8(Z){var{isNestedStyle:J,style:Y}=Z,Q=Object.keys(Y).reduce(function(X,G){var W=Y[G];if(!J(W))X[G]=W;return X},{});return{style:Q}}var B0=[],T5=!1;function j8(){B0.forEach(function(Z){Z()})}var QB=function(J){if(B0.indexOf(J)===-1)B0.push(J);if(!T5)window.addEventListener("mouseup",j8),T5=!0;return{remove:function(){var Q=B0.indexOf(J);if(B0.splice(Q,1),B0.length===0&&T5)window.removeEventListener("mouseup",j8),T5=!1}}},dZ={subscribe:QB,__triggerForTests:j8};var cZ=function(J){return J===":hover"||J===":active"||J===":focus"},XB=function(J){var{ExecutionEnvironment:Y,getComponentField:Q,getState:X,mergeStyles:G,props:W,setState:H,style:z}=J,B={},U={};if(z[":hover"]){var L=W.onMouseEnter;U.onMouseEnter=function(D){L&&L(D),H(":hover",!0)};var $=W.onMouseLeave;U.onMouseLeave=function(D){$&&$(D),H(":hover",!1)}}if(z[":active"]){var M=W.onMouseDown;U.onMouseDown=function(D){M&&M(D),B._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;U.onKeyDown=function(D){if(K&&K(D),D.key===" "||D.key==="Enter")H(":active","viakeydown")};var F=W.onKeyUp;U.onKeyUp=function(D){if(F&&F(D),D.key===" "||D.key==="Enter")H(":active",!1)}}if(z[":focus"]){var I=W.onFocus;U.onFocus=function(D){I&&I(D),H(":focus",!0)};var N=W.onBlur;U.onBlur=function(D){N&&N(D),H(":focus",!1)}}if(z[":active"]&&!Q("_radiumMouseUpListener")&&Y.canUseEventListeners)B._radiumMouseUpListener=dZ.subscribe(function(){Object.keys(Q("state")._radiumStyleState).forEach(function(D){if(X(":active",D)==="viamousedown")H(":active",!1,D)})});var w=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(D){return cZ(D)&&X(D)}).map(function(D){return z[D]}),q=G([z].concat(w));return q=Object.keys(q).reduce(function(D,E){if(!cZ(E)&&E!==":disabled")D[E]=q[E];return D},{}),{componentFields:B,props:U,style:q}},pZ=XB;function GB(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){WB(Z,X,Y[X])})}return Z}function WB(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var _8;function HB(Z){if(_8===void 0)_8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return _8}function lZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,Q){return Y[Q]=Z[Q],Y},{})}function zB(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function BB(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:Q,hash:X,isNestedStyle:G,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(B){return B.indexOf("@media")===0}).map(function(B){var U=Y(lZ(W[B],function(K){return!G(K)}));if(!Object.keys(U).length)return;var L=Q("",U,H),$="rmq-"+X(B+L),M=B+"{ ."+$+L+"}";J(M),z+=(z?" ":"")+$}),z}function UB(Z){var{listener:J,listenersByQuery:Y,matchMedia:Q,mediaQueryListsByQuery:X,query:G}=Z;G=G.replace("@media ","");var W=X[G];if(!W&&Q)X[G]=W=Q(G);if(!Y||!Y[G])W.addListener(J),Y[G]={remove:function(){W.removeListener(J)}};return W}function v8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:Q,config:X,cssRuleSetToString:G,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:B,mergeStyles:U,props:L,setState:$,style:M}=Z,K=zB(M),F=BB({addCSS:Y,appendImportantToEachValue:Q,cssRuleSetToString:G,hash:z,isNestedStyle:B,style:M,userAgent:X.userAgent}),I=F?{className:F+(L.className?" "+L.className:"")}:null,N=X.matchMedia||HB(J);if(!N)return{props:I,style:K};var w=GB({},W("_radiumMediaQueryListenersByQuery")),q=H("mediaQueryListsByQuery")||{};return Object.keys(M).filter(function(D){return D.indexOf("@media")===0}).map(function(D){var E=lZ(M[D],B);if(!Object.keys(E).length)return;var v=UB({listener:function(){return $(D,v.matches,"_all")},listenersByQuery:w,matchMedia:N,mediaQueryListsByQuery:q,query:D});if(v.matches)K=U([K,E])}),{componentFields:{_radiumMediaQueryListenersByQuery:w},globalState:{mediaQueryListsByQuery:q},props:I,style:K}}function k8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:Q,cssRuleSetToString:X,hash:G,props:W,style:H}=Z,z=W.className,B=Object.keys(H).reduce(function(U,L){var $=H[L];if(L===":visited"){$=Y($);var M=X("",$,Q.userAgent),K="rad-"+G(M),F="."+K+":visited"+M;J(F),z=(z?z+" ":"")+K}else U[L]=$;return U},{});return{props:z===W.className?null:{className:z},style:B}}var U1={checkProps:mZ,keyframes:x8,mergeStyleArray:uZ,prefix:f8,removeNestedStyles:C8,resolveInteractionStyles:pZ,resolveMediaQueries:v8,visited:k8};var aZ=j(i6(),1);import g1 from"react";function KB(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function iZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function LB(Z,J,Y){if(J)iZ(Z.prototype,J);if(Y)iZ(Z,Y);return Z}var nZ=function(){function Z(J){KB(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return LB(Z,[{key:"subscribe",value:function(Y){var Q=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var G=Q._listeners.indexOf(Y);if(G>-1)Q._listeners.splice(G,1)}}}},{key:"addCSS",value:function(Y){var Q=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete Q._cssSet[Y],Q._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
27
- `)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function U0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){MB(Z,X,Y[X])})}return Z}function MB(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function w5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")w5=function(Y){return typeof Y};else w5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return w5(Z)}var sZ={plugins:[U1.mergeStyleArray,U1.checkProps,U1.resolveMediaQueries,U1.resolveInteractionStyles,U1.keyframes,U1.visited,U1.removeNestedStyles,U1.prefix,U1.checkProps]},oZ={},FB=!1,r1=null,OB=function(J){return J.type&&!J.type._isRadiumEnhanced},$B=function(J){var{children:Y,component:Q,config:X,existingKeyMap:G,extraStateKeyMap:W}=J;if(!Y)return Y;var H=w5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var $=Y.apply(this,arguments);if(g1.isValidElement($)){var M=s1($);delete W[M];var K=r1(Q,$,X,G,!0,W),F=K.element;return F}return $};if(g1.Children.count(Y)===1&&Y.type){var z=g1.Children.only(Y),B=s1(z);delete W[B];var U=r1(Q,z,X,G,!0,W),L=U.element;return L}return g1.Children.map(Y,function($){if(g1.isValidElement($)){var M=s1($);delete W[M];var K=r1(Q,$,X,G,!0,W),F=K.element;return F}return $})},IB=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,extraStateKeyMap:W}=J,H=G;return Object.keys(G).forEach(function(z){if(z==="children")return;var B=G[z];if(g1.isValidElement(B)){var U=s1(B);delete W[U],H=U0({},H);var L=r1(Y,B,Q,X,!0,W),$=L.element;H[z]=$}}),H},VB=function(J){var{componentName:Y,existingKeyMap:Q,renderedElement:X}=J,G=s1(X),W=D5(G),H=!1,z=function(){if(H)return W;if(H=!0,Q[W]){var U;if(typeof X.type==="string")U=X.type;else if(X.type.constructor)U=X.type.constructor.displayName||X.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(G?'Key "'+G+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(U?'Element: "'+U+'".':""))}return Q[W]=!0,W};return z},qB=function(J,Y,Q,X){if(!J._radiumIsMounted)return;var G=S0(J),W={_radiumStyleState:U0({},G)};W._radiumStyleState[Y]=U0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][Q]=X,J._lastRadiumState=W._radiumStyleState,J.setState(W)},DB=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,renderedElement:W}=J;if(!g1.isValidElement(W)||typeof W.type!=="string"||!G.style)return G;var H=G,z=Q.plugins||sZ.plugins,B=Y.constructor.displayName||Y.constructor.name,U=VB({renderedElement:W,existingKeyMap:X,componentName:B}),L=function(w){return Y[w]},$=function(w){return oZ[w]},M=function(w,q){return N5(Y.state,q||U(),w)},K=function(w,q,D){return qB(Y,D||U(),w,q)},F=function(w){var q=Y._radiumStyleKeeper;if(!q){if(FB)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+B+"`.")}return q.addCSS(w)},I=G.style;if(z.forEach(function(N){var w=N({ExecutionEnvironment:aZ.default,addCSS:F,appendImportantToEachValue:j6,componentName:B,config:Q,cssRuleSetToString:b1,getComponentField:L,getGlobalState:$,getState:M,hash:x0,mergeStyles:P5,props:H,setState:K,isNestedStyle:R5,style:I})||{};I=w.style||I,H=w.props&&Object.keys(w.props).length?U0({},H,w.props):H;var q=w.componentFields||{};Object.keys(q).forEach(function(E){Y[E]=q[E]});var D=w.globalState||{};Object.keys(D).forEach(function(E){oZ[E]=D[E]})}),I!==G.style)H=U0({},H,{style:I});return H},NB=function(J,Y,Q){if(typeof J.type==="string")Y=U0({},Y,{"data-radium":!0});return g1.cloneElement(J,Y,Q)};r1=function(J,Y){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sZ,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=S0(J);W=Object.keys(H).reduce(function(M,K){if(K!=="main")M[K]=!0;return M},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(M){if(W){var K=s1(M);delete W[K]}return r1(J,M,Q,X,G,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||G&&!OB(Y))return{extraStateKeyMap:W,element:Y};var B=Y.props.children,U=$B({children:B,component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W}),L=IB({component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W,props:Y.props});if(L=DB({component:J,config:Q,existingKeyMap:X,props:L,renderedElement:Y}),U===B&&L===Y.props)return{extraStateKeyMap:W,element:Y};var $=NB(Y,L!==Y.props?L:{},U);return{extraStateKeyMap:W,element:$}};var rZ=r1;var eZ=j(C6(),1);import E5,{useContext as tZ}from"react";function h8(){return h8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))Z[Q]=Y[Q]}return Z},h8.apply(this,arguments)}var f0=E5.createContext(void 0),K0=E5.createContext(void 0);function L0(Z){var J=E5.forwardRef(function(Y,Q){var X=tZ(K0),G=tZ(f0);return E5.createElement(Z,h8({ref:Q},Y,{radiumConfigContext:X,styleKeeperContext:G}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),eZ.default(J,Z)}function t1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")t1=function(Y){return typeof Y};else t1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return t1(Z)}function GJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function ZJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function AB(Z,J,Y){if(J)ZJ(Z.prototype,J);if(Y)ZJ(Z,Y);return Z}function WJ(Z,J){if(J&&(t1(J)==="object"||typeof J==="function"))return J;return HJ(Z)}function HJ(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function y1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)y1=Reflect.get;else y1=function(X,G,W){var H=RB(X,G);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,G);if(z.get)return z.get.call(W);return z.value};return y1(Z,J,Y||Z)}function RB(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=A1(Z),Z===null)break;return Z}function A1(Z){return A1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},A1(Z)}function zJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)b8(Z,J)}function b8(Z,J){return b8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},b8(Z,J)}function PB(Z,J){return EB(Z)||wB(Z,J)||TB()}function TB(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function wB(Z,J){var Y=[],Q=!0,X=!1,G=void 0;try{for(var W=Z[Symbol.iterator](),H;!(Q=(H=W.next()).done);Q=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){X=!0,G=z}finally{try{if(!Q&&W.return!=null)W.return()}finally{if(X)throw G}}return Y}function EB(Z){if(Array.isArray(Z))return Z}function g8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){SB(Z,X,Y[X])})}return Z}function SB(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function BJ(Z,J){if(Z==null)return{};var Y=xB(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function xB(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function fB(Z){var J=CB(Z,"string");return t1(J)==="symbol"?J:String(J)}function CB(Z,J){if(t1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var Q=Y.call(Z,J||"default");if(t1(Q)!=="object")return Q;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var kB=["arguments","callee","caller","length","name","prototype","type"],x5,LJ;function hB(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(kB.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var Q=Object.getOwnPropertyDescriptor(Z,Y);Q&&Object.defineProperty(J,Y,Q)}})}function bB(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function gB(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function yB(Z,J){LJ.forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(Z,Y),X=(Q||{}).value;if(!X)return;var G=Object.getOwnPropertyDescriptor(x5,Y),W=(G||{}).value,H=J.prototype[Y];if(!H&&X!==W)Q&&Object.defineProperty(J.prototype,Y,Q),delete Z[Y]})}function MJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,Q){var X=Y[Q],G=BJ(Y,[Q].map(fB));return G},S0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function FJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(Q){Y[Q].remove()},Z)}function OJ(Z,J,Y){var Q=Z||J||Y;if(Y&&Q!==Y)Q=g8({},Y,Q);return Q}function $J(Z,J,Y,Q){var X=rZ(Z,J,Y),G=X.extraStateKeyMap,W=X.element;if(Z._extraRadiumStateKeys=Object.keys(G),Q)return UJ.createElement(K0.Provider,{value:Q},W);return W}function QJ(Z,J){var Y=UJ.forwardRef(function(Q,X){var G=Q.radiumConfig,W=BJ(Q,["radiumConfig"]),H=JJ(K0),z=JJ(f0),B=jB({_radiumStyleState:{}}),U=PB(B,2),L=U[0],$=U[1],M=_B({state:L,setState:$,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;M.state=L,YJ(function(){return function(){FJ(M)}},[M]);var K=M._extraRadiumStateKeys&&M._extraRadiumStateKeys.length>0;YJ(function(){MJ(M)},[K,M]);var F=Z(W,X),I=OJ(G,H,J);return $J(M,F,I,G)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,KJ.default(Y,Z)}function mB(Z,J,Y){var Q=function(X){zJ(G,X);function G(){var W;GJ(this,G),W=WJ(this,A1(G).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=HJ(W);return yB(H,J),W}return AB(G,[{key:"componentDidUpdate",value:function(H,z,B){if(y1(A1(G.prototype),"componentDidUpdate",this))y1(A1(G.prototype),"componentDidUpdate",this).call(this,H,z,B);MJ(this)}},{key:"componentWillUnmount",value:function(){if(y1(A1(G.prototype),"componentWillUnmount",this))y1(A1(G.prototype),"componentWillUnmount",this).call(this);FJ(this)}},{key:"render",value:function(){var H=y1(A1(G.prototype),"render",this).call(this),z=OJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return $J(this,H,z,this.props.radiumConfig)}}]),G}(J);if(Q._isRadiumEnhanced=!0,x5=Q.prototype,LJ=Object.getOwnPropertyNames(x5).filter(function(X){return X!=="constructor"&&typeof x5[X]==="function"}),hB(Z,Q),Q.propTypes&&Q.propTypes.style)Q.propTypes=g8({},Q.propTypes,{style:S5.default.oneOfType([S5.default.array,S5.default.object])});return Q.displayName=Z.displayName||Z.name||"Component",L0(Q)}function uB(Z){return Z=function(J){function Y(){var Q=Reflect.construct(J,arguments,this.constructor);return Q}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var XJ=vB(function(){return null}).$$typeof;function M0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(XJ&&Z.$$typeof===XJ)return QJ(Z.render,J);if(typeof Z!=="function")return dB(J,Z);var Y=Z;if(bB(Y))return QJ(Y,J);var Q=Y;if(gB(Q))Q=uB(Q);if(Q===Y)Q=function(X){zJ(G,X);function G(){return GJ(this,G),WJ(this,A1(G).apply(this,arguments))}return G}(Q);return mB(Y,Q,J)}function dB(Z,J){var Y=g8({},Z,J);return function(Q){return M0(Q,Y)}}var f5=j(S6(),1);import oB,{PureComponent as aB}from"react";function F0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")F0=function(Y){return typeof Y};else F0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return F0(Z)}function cB(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function IJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function pB(Z,J,Y){if(J)IJ(Z.prototype,J);if(Y)IJ(Z,Y);return Z}function lB(Z,J){if(J&&(F0(J)==="object"||typeof J==="function"))return J;return iB(Z)}function iB(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function y8(Z){return y8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},y8(Z)}function nB(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)m8(Z,J)}function m8(Z,J){return m8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},m8(Z,J)}var u8=function(Z){nB(J,Z);function J(){return cB(this,J),lB(this,y8(J).apply(this,arguments))}return pB(J,[{key:"_buildStyles",value:function(Q){var X=this,G=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(Q).reduce(function(B,U){if(F0(Q[U])!=="object")B[U]=Q[U];return B},{}),z=Object.keys(H).length?b1(W||"",H,G):"";return z+Object.keys(Q).reduce(function(B,U){var L=Q[U];if(U==="mediaQueries")B+=X._buildMediaQueryString(L);else if(F0(Q[U])==="object"){var $=W?U.split(",").map(function(M){return W+" "+M.trim()}).join(","):U;B+=b1($,L,G)}return B},"")}},{key:"_buildMediaQueryString",value:function(Q){var X=this,G="";return Object.keys(Q).forEach(function(W){G+="@media "+W+"{"+X._buildStyles(Q[W])+"}"}),G}},{key:"render",value:function(){if(!this.props.rules)return null;var Q=this._buildStyles(this.props.rules);return oB.createElement("style",{dangerouslySetInnerHTML:{__html:Q}})}}]),J}(aB);u8.propTypes={radiumConfig:f5.default.object,rules:f5.default.object,scopeSelector:f5.default.string};u8.defaultProps={scopeSelector:""};var VJ=L0(u8);import j5,{useContext as WU,useRef as HU}from"react";import JU,{Component as YU}from"react";function C5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")C5=function(Y){return typeof Y};else C5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return C5(Z)}function sB(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function qJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function rB(Z,J,Y){if(J)qJ(Z.prototype,J);if(Y)qJ(Z,Y);return Z}function tB(Z,J){if(J&&(C5(J)==="object"||typeof J==="function"))return J;return eB(Z)}function eB(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function d8(Z){return d8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},d8(Z)}function ZU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)c8(Z,J)}function c8(Z,J){return c8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},c8(Z,J)}var QU=function(Z){ZU(J,Z);function J(){var Y;if(sB(this,J),Y=tB(this,d8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var Q=Y.styleKeeper.getCSS();if(Q!==Y._css){if(Y._root)Y._root.innerHTML=Q;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=Q}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return rB(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var Q=this;return JU.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(G){Q._root=G}})}}]),J}(YU),DJ=L0(QU);function XU(Z,J){if(Z==null)return{};var Y=GU(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function GU(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function zU(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new nZ(Y)}var BU=M0(function(Z){var J=Z.children,Y=XU(Z,["children"]);return j5.createElement("div",Y,J,j5.createElement(DJ,null))}),UU=function(J){var Y=J.radiumConfig,Q=WU(K0),X=HU(zU(Y,Q));return j5.createElement(f0.Provider,{value:X.current},j5.createElement(BU,J))},NJ=UU;function p8(Z,J){return{__radiumKeyframes:!0,__process:function(Q){var X=yZ(Q),G=Object.keys(Z).map(function(z){return b1(z,Z[z],Q)}).join(`
28
- `),W=(J?J+"-":"")+"radium-animation-"+x0(G),H="@"+X+" "+W+` {
9
+ */(function(){var Z=!!(typeof window<"u"&&window.document&&window.document.createElement),J={canUseDOM:Z,canUseWorkers:typeof Worker<"u",canUseEventListeners:Z&&!!(window.addEventListener||window.attachEvent),canUseViewport:Z&&!!window.screen};if(typeof define==="function"&&typeof define.amd==="object"&&define.amd)define(function(){return J});else if(typeof F5<"u"&&F5.exports)F5.exports=J;else window.ExecutionEnvironment=J})()});var o1=A((l6,e7)=>{Object.defineProperty(l6,"__esModule",{value:!0});l6.default=LW;var KW=/-webkit-|-moz-|-ms-/;function LW(Z){return typeof Z==="string"&&KW.test(Z)}e7.exports=l6.default});var J4=A((i6,Z4)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.default=IW;var FW=o1(),$W=OW(FW);function OW(Z){return Z&&Z.__esModule?Z:{default:Z}}var VW=["-webkit-","-moz-",""];function IW(Z,J){if(typeof J==="string"&&!(0,$W.default)(J)&&J.indexOf("calc(")>-1)return VW.map(function(Y){return J.replace(/calc\(/g,Y+"calc(")})}Z4.exports=i6.default});var Q4=A((n6,Y4)=>{Object.defineProperty(n6,"__esModule",{value:!0});n6.default=PW;var DW=o1(),NW=AW(DW);function AW(Z){return Z&&Z.__esModule?Z:{default:Z}}var RW=["-webkit-",""];function PW(Z,J){if(typeof J==="string"&&!(0,NW.default)(J)&&J.indexOf("cross-fade(")>-1)return RW.map(function(Y){return J.replace(/cross-fade\(/g,Y+"cross-fade(")})}Y4.exports=n6.default});var G4=A((o6,X4)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.default=SW;var wW=["-webkit-","-moz-",""],EW={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function SW(Z,J){if(Z==="cursor"&&EW.hasOwnProperty(J))return wW.map(function(Y){return Y+J})}X4.exports=o6.default});var H4=A((a6,W4)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.default=vW;var CW=o1(),fW=jW(CW);function jW(Z){return Z&&Z.__esModule?Z:{default:Z}}var _W=["-webkit-",""];function vW(Z,J){if(typeof J==="string"&&!(0,fW.default)(J)&&J.indexOf("filter(")>-1)return _W.map(function(Y){return J.replace(/filter\(/g,Y+"filter(")})}W4.exports=a6.default});var B4=A((s6,U4)=>{Object.defineProperty(s6,"__esModule",{value:!0});s6.default=hW;var z4={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function hW(Z,J){if(Z==="display"&&z4.hasOwnProperty(J))return z4[J]}U4.exports=s6.default});var M4=A((r6,L4)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.default=yW;var gW={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},K4={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function yW(Z,J,Y){if(K4.hasOwnProperty(Z))Y[K4[Z]]=gW[J]||J}L4.exports=r6.default});var O4=A((t6,$4)=>{Object.defineProperty(t6,"__esModule",{value:!0});t6.default=dW;var uW={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},F4={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function dW(Z,J,Y){if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(F4.hasOwnProperty(Z))Y[F4[Z]]=uW[J]||J}$4.exports=t6.default});var q4=A((e6,I4)=>{Object.defineProperty(e6,"__esModule",{value:!0});e6.default=oW;var pW=o1(),lW=iW(pW);function iW(Z){return Z&&Z.__esModule?Z:{default:Z}}var nW=["-webkit-","-moz-",""],V4=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function oW(Z,J){if(typeof J==="string"&&!(0,lW.default)(J)&&V4.test(J))return nW.map(function(Y){return J.replace(V4,function(Q){return Y+Q})})}I4.exports=e6.default});var N4=A((Z8,D4)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.default=ZH;var sW=o1(),rW=tW(sW);function tW(Z){return Z&&Z.__esModule?Z:{default:Z}}var eW=["-webkit-",""];function ZH(Z,J){if(typeof J==="string"&&!(0,rW.default)(J)&&J.indexOf("image-set(")>-1)return eW.map(function(Y){return J.replace(/image-set\(/g,Y+"image-set(")})}D4.exports=Z8.default});var R4=A((J8,A4)=>{Object.defineProperty(J8,"__esModule",{value:!0});J8.default=YH;function YH(Z,J){if(Z==="position"&&J==="sticky")return["-webkit-sticky","sticky"]}A4.exports=J8.default});var T4=A((Y8,P4)=>{Object.defineProperty(Y8,"__esModule",{value:!0});Y8.default=HH;var XH=["-webkit-","-moz-",""],GH={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},WH={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function HH(Z,J){if(GH.hasOwnProperty(Z)&&WH.hasOwnProperty(J))return XH.map(function(Y){return Y+J})}P4.exports=Y8.default});var E4=A((u$,w4)=>{var UH=/[A-Z]/g,BH=/^ms-/,Q8={};function KH(Z){return"-"+Z.toLowerCase()}function LH(Z){if(Q8.hasOwnProperty(Z))return Q8[Z];var J=Z.replace(UH,KH);return Q8[Z]=BH.test(J)?"-"+J:J}w4.exports=LH});var G8=A((X8,S4)=>{Object.defineProperty(X8,"__esModule",{value:!0});X8.default=OH;var MH=E4(),FH=$H(MH);function $H(Z){return Z&&Z.__esModule?Z:{default:Z}}function OH(Z){return(0,FH.default)(Z)}S4.exports=X8.default});var f4=A((H8,C4)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.default=wH;var IH=G8(),qH=W8(IH),DH=o1(),NH=W8(DH),AH=K5(),x4=W8(AH);function W8(Z){return Z&&Z.__esModule?Z:{default:Z}}var RH={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},PH={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function TH(Z,J){if((0,NH.default)(Z))return Z;var Y=Z.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var Q=0,X=Y.length;Q<X;++Q){var G=Y[Q],W=[G];for(var H in J){var z=(0,qH.default)(H);if(G.indexOf(z)>-1&&z!=="order"){var U=J[H];for(var B=0,L=U.length;B<L;++B)W.unshift(G.replace(z,PH[U[B]]+z))}}Y[Q]=W.join(",")}return Y.join(",")}function wH(Z,J,Y,Q){if(typeof J==="string"&&RH.hasOwnProperty(Z)){var X=TH(J,Q),G=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-moz-|-ms-/.test(H)}).join(",");if(Z.indexOf("Webkit")>-1)return G;var W=X.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(H){return!/-webkit-|-ms-/.test(H)}).join(",");if(Z.indexOf("Moz")>-1)return W;return Y["Webkit"+(0,x4.default)(Z)]=G,Y["Moz"+(0,x4.default)(Z)]=W,X}}C4.exports=H8.default});var G1=A((U8,l4)=>{Object.defineProperty(U8,"__esModule",{value:!0});U8.default=SH;function SH(Z,J,Y){if(Y)return[Z,J];return Z}l4.exports=U8.default});var n4=A((B8,i4)=>{Object.defineProperty(B8,"__esModule",{value:!0});B8.default=_H;var CH=G1(),fH=jH(CH);function jH(Z){return Z&&Z.__esModule?Z:{default:Z}}function _H(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("calc(")>-1&&(X==="firefox"&&G<15||X==="chrome"&&G<25||X==="safari"&&G<6.1||X==="ios_saf"&&G<7))return(0,fH.default)(J.replace(/calc\(/g,W+"calc("),J,H)}i4.exports=B8.default});var a4=A((K8,o4)=>{Object.defineProperty(K8,"__esModule",{value:!0});K8.default=gH;var kH=G1(),hH=bH(kH);function bH(Z){return Z&&Z.__esModule?Z:{default:Z}}function gH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("cross-fade(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||(X==="ios_saf"||X==="safari")&&G<10))return(0,hH.default)(J.replace(/cross-fade\(/g,W+"cross-fade("),J,H)}o4.exports=K8.default});var t4=A((L8,r4)=>{Object.defineProperty(L8,"__esModule",{value:!0});L8.default=pH;var mH=G1(),s4=uH(mH);function uH(Z){return Z&&Z.__esModule?Z:{default:Z}}var dH={grab:!0,grabbing:!0},cH={"zoom-in":!0,"zoom-out":!0};function pH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="cursor"&&dH[J]&&(X==="firefox"||X==="chrome"||X==="safari"||X==="opera"))return(0,s4.default)(W+J,J,H);if(Z==="cursor"&&cH[J]&&(X==="firefox"&&G<24||X==="chrome"&&G<37||X==="safari"&&G<9||X==="opera"&&G<24))return(0,s4.default)(W+J,J,H)}r4.exports=L8.default});var ZZ=A((M8,e4)=>{Object.defineProperty(M8,"__esModule",{value:!0});M8.default=aH;var iH=G1(),nH=oH(iH);function oH(Z){return Z&&Z.__esModule?Z:{default:Z}}function aH(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&J.indexOf("filter(")>-1&&(X==="ios_saf"||X==="safari"&&G<9.1))return(0,nH.default)(J.replace(/filter\(/g,W+"filter("),J,H)}e4.exports=M8.default});var YZ=A((F8,JZ)=>{Object.defineProperty(F8,"__esModule",{value:!0});F8.default=Jz;var rH=G1(),tH=eH(rH);function eH(Z){return Z&&Z.__esModule?Z:{default:Z}}var Zz={flex:!0,"inline-flex":!0};function Jz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(Z==="display"&&Zz[J]&&(X==="chrome"&&G<29&&G>20||(X==="safari"||X==="ios_saf")&&G<9&&G>6||X==="opera"&&(G===15||G===16)))return(0,tH.default)(W+J,J,H)}JZ.exports=F8.default});var XZ=A((V8,QZ)=>{Object.defineProperty(V8,"__esModule",{value:!0});V8.default=Wz;var Qz=G1(),Xz=Gz(Qz);function Gz(Z){return Z&&Z.__esModule?Z:{default:Z}}var $8={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end",flex:"flexbox","inline-flex":"inline-flexbox"},O8={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};function Wz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((O8.hasOwnProperty(Z)||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="ie_mob"||X==="ie")&&G===10){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="display"&&$8.hasOwnProperty(J))return(0,Xz.default)(W+$8[J],J,H);if(O8.hasOwnProperty(Z))Y[O8[Z]]=$8[J]||J}}QZ.exports=V8.default});var WZ=A((D8,GZ)=>{Object.defineProperty(D8,"__esModule",{value:!0});D8.default=Mz;var zz=G1(),Uz=Bz(zz);function Bz(Z){return Z&&Z.__esModule?Z:{default:Z}}var I8={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple",flex:"box","inline-flex":"inline-box"},q8={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"},Kz=["alignContent","alignSelf","order","flexGrow","flexShrink","flexBasis","flexDirection"],Lz=Object.keys(q8).concat(Kz);function Mz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H,requiresPrefix:z}=Q;if((Lz.indexOf(Z)>-1||Z==="display"&&typeof J==="string"&&J.indexOf("flex")>-1)&&(X==="firefox"&&G<22||X==="chrome"&&G<21||(X==="safari"||X==="ios_saf")&&G<=6.1||X==="android"&&G<4.4||X==="and_uc")){if(delete z[Z],!H&&!Array.isArray(Y[Z]))delete Y[Z];if(Z==="flexDirection"&&typeof J==="string"){if(J.indexOf("column")>-1)Y.WebkitBoxOrient="vertical";else Y.WebkitBoxOrient="horizontal";if(J.indexOf("reverse")>-1)Y.WebkitBoxDirection="reverse";else Y.WebkitBoxDirection="normal"}if(Z==="display"&&I8.hasOwnProperty(J))return(0,Uz.default)(W+I8[J],J,H);if(q8.hasOwnProperty(Z))Y[q8[Z]]=I8[J]||J}}GZ.exports=D8.default});var UZ=A((N8,zZ)=>{Object.defineProperty(N8,"__esModule",{value:!0});N8.default=Iz;var $z=G1(),Oz=Vz($z);function Vz(Z){return Z&&Z.__esModule?Z:{default:Z}}var HZ=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function Iz(Z,J,Y,Q){var{browserName:X,browserVersion:G,cssPrefix:W,keepUnprefixed:H}=Q;if(typeof J==="string"&&HZ.test(J)&&(X==="firefox"&&G<16||X==="chrome"&&G<26||(X==="safari"||X==="ios_saf")&&G<7||(X==="opera"||X==="op_mini")&&G<12.1||X==="android"&&G<4.4||X==="and_uc"))return(0,Oz.default)(J.replace(HZ,function(z){return W+z}),J,H)}zZ.exports=N8.default});var KZ=A((A8,BZ)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.default=Rz;var Dz=G1(),Nz=Az(Dz);function Az(Z){return Z&&Z.__esModule?Z:{default:Z}}function Rz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(typeof J==="string"&&J.indexOf("image-set(")>-1&&(X==="chrome"||X==="opera"||X==="and_chr"||X==="and_uc"||X==="ios_saf"||X==="safari"))return(0,Nz.default)(J.replace(/image-set\(/g,G+"image-set("),J,W)}BZ.exports=A8.default});var MZ=A((R8,LZ)=>{Object.defineProperty(R8,"__esModule",{value:!0});R8.default=Sz;var Tz=G1(),wz=Ez(Tz);function Ez(Z){return Z&&Z.__esModule?Z:{default:Z}}function Sz(Z,J,Y,Q){var{browserName:X,cssPrefix:G,keepUnprefixed:W}=Q;if(Z==="position"&&J==="sticky"&&(X==="safari"||X==="ios_saf"))return(0,wz.default)(G+J,J,W)}LZ.exports=R8.default});var $Z=A((P8,FZ)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.default=kz;var Cz=G1(),fz=jz(Cz);function jz(Z){return Z&&Z.__esModule?Z:{default:Z}}var _z={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},vz={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function kz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G}=Q;if(_z.hasOwnProperty(Z)&&vz.hasOwnProperty(J))return(0,fz.default)(X+J,J,G)}FZ.exports=P8.default});var VZ=A((w8,OZ)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.default=uz;var bz=G8(),gz=yz(bz);function yz(Z){return Z&&Z.__esModule?Z:{default:Z}}var mz={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},T8=void 0;function uz(Z,J,Y,Q){var{cssPrefix:X,keepUnprefixed:G,requiresPrefix:W}=Q;if(typeof J==="string"&&mz.hasOwnProperty(Z)){if(!T8)T8=Object.keys(W).map(function(z){return(0,gz.default)(z)});var H=J.split(/,(?![^()]*(?:\([^()]*\))?\))/g);return T8.forEach(function(z){H.forEach(function(U,B){if(U.indexOf(z)>-1&&z!=="order")H[B]=U.replace(z,X+z)+(G?","+U:"")})}),H.join(",")}}OZ.exports=w8.default});var iY={};H7(iY,{default:()=>zK,__values:()=>s5,__spreadArrays:()=>jY,__spreadArray:()=>_Y,__spread:()=>fY,__setFunctionName:()=>wY,__runInitializers:()=>PY,__rewriteRelativeImportExtension:()=>lY,__rest:()=>DY,__read:()=>z9,__propKey:()=>TY,__param:()=>AY,__metadata:()=>EY,__makeTemplateObject:()=>bY,__importStar:()=>gY,__importDefault:()=>yY,__generator:()=>xY,__extends:()=>qY,__exportStar:()=>CY,__esDecorate:()=>RY,__disposeResources:()=>pY,__decorate:()=>NY,__createBinding:()=>r5,__classPrivateFieldSet:()=>uY,__classPrivateFieldIn:()=>dY,__classPrivateFieldGet:()=>mY,__awaiter:()=>SY,__await:()=>V0,__asyncValues:()=>hY,__asyncGenerator:()=>vY,__asyncDelegator:()=>kY,__assign:()=>a5,__addDisposableResource:()=>cY});function qY(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Class extends value "+String(J)+" is not a constructor or null");W9(Z,J);function Y(){this.constructor=Z}Z.prototype=J===null?Object.create(J):(Y.prototype=J.prototype,new Y)}function DY(Z,J){var Y={};for(var Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q)&&J.indexOf(Q)<0)Y[Q]=Z[Q];if(Z!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var X=0,Q=Object.getOwnPropertySymbols(Z);X<Q.length;X++)if(J.indexOf(Q[X])<0&&Object.prototype.propertyIsEnumerable.call(Z,Q[X]))Y[Q[X]]=Z[Q[X]]}return Y}function NY(Z,J,Y,Q){var X=arguments.length,G=X<3?J:Q===null?Q=Object.getOwnPropertyDescriptor(J,Y):Q,W;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")G=Reflect.decorate(Z,J,Y,Q);else for(var H=Z.length-1;H>=0;H--)if(W=Z[H])G=(X<3?W(G):X>3?W(J,Y,G):W(J,Y))||G;return X>3&&G&&Object.defineProperty(J,Y,G),G}function AY(Z,J){return function(Y,Q){J(Y,Q,Z)}}function RY(Z,J,Y,Q,X,G){function W(N){if(N!==void 0&&typeof N!=="function")throw TypeError("Function expected");return N}var H=Q.kind,z=H==="getter"?"get":H==="setter"?"set":"value",U=!J&&Z?Q.static?Z:Z.prototype:null,B=J||(U?Object.getOwnPropertyDescriptor(U,Q.name):{}),L,V=!1;for(var F=Y.length-1;F>=0;F--){var K={};for(var M in Q)K[M]=M==="access"?{}:Q[M];for(var M in Q.access)K.access[M]=Q.access[M];K.addInitializer=function(N){if(V)throw TypeError("Cannot add initializers after decoration has completed");G.push(W(N||null))};var I=(0,Y[F])(H==="accessor"?{get:B.get,set:B.set}:B[z],K);if(H==="accessor"){if(I===void 0)continue;if(I===null||typeof I!=="object")throw TypeError("Object expected");if(L=W(I.get))B.get=L;if(L=W(I.set))B.set=L;if(L=W(I.init))X.unshift(L)}else if(L=W(I))if(H==="field")X.unshift(L);else B[z]=L}if(U)Object.defineProperty(U,Q.name,B);V=!0}function PY(Z,J,Y){var Q=arguments.length>2;for(var X=0;X<J.length;X++)Y=Q?J[X].call(Z,Y):J[X].call(Z);return Q?Y:void 0}function TY(Z){return typeof Z==="symbol"?Z:"".concat(Z)}function wY(Z,J,Y){if(typeof J==="symbol")J=J.description?"[".concat(J.description,"]"):"";return Object.defineProperty(Z,"name",{configurable:!0,value:Y?"".concat(Y," ",J):J})}function EY(Z,J){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(Z,J)}function SY(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function xY(Z,J){var Y={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Q,X,G,W=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return W.next=H(0),W.throw=H(1),W.return=H(2),typeof Symbol==="function"&&(W[Symbol.iterator]=function(){return this}),W;function H(U){return function(B){return z([U,B])}}function z(U){if(Q)throw TypeError("Generator is already executing.");while(W&&(W=0,U[0]&&(Y=0)),Y)try{if(Q=1,X&&(G=U[0]&2?X.return:U[0]?X.throw||((G=X.return)&&G.call(X),0):X.next)&&!(G=G.call(X,U[1])).done)return G;if(X=0,G)U=[U[0]&2,G.value];switch(U[0]){case 0:case 1:G=U;break;case 4:return Y.label++,{value:U[1],done:!1};case 5:Y.label++,X=U[1],U=[0];continue;case 7:U=Y.ops.pop(),Y.trys.pop();continue;default:if((G=Y.trys,!(G=G.length>0&&G[G.length-1]))&&(U[0]===6||U[0]===2)){Y=0;continue}if(U[0]===3&&(!G||U[1]>G[0]&&U[1]<G[3])){Y.label=U[1];break}if(U[0]===6&&Y.label<G[1]){Y.label=G[1],G=U;break}if(G&&Y.label<G[2]){Y.label=G[2],Y.ops.push(U);break}if(G[2])Y.ops.pop();Y.trys.pop();continue}U=J.call(Z,Y)}catch(B){U=[6,B],X=0}finally{Q=G=0}if(U[0]&5)throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}}function CY(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))r5(J,Z,Y)}function s5(Z){var J=typeof Symbol==="function"&&Symbol.iterator,Y=J&&Z[J],Q=0;if(Y)return Y.call(Z);if(Z&&typeof Z.length==="number")return{next:function(){if(Z&&Q>=Z.length)Z=void 0;return{value:Z&&Z[Q++],done:!Z}}};throw TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function z9(Z,J){var Y=typeof Symbol==="function"&&Z[Symbol.iterator];if(!Y)return Z;var Q=Y.call(Z),X,G=[],W;try{while((J===void 0||J-- >0)&&!(X=Q.next()).done)G.push(X.value)}catch(H){W={error:H}}finally{try{if(X&&!X.done&&(Y=Q.return))Y.call(Q)}finally{if(W)throw W.error}}return G}function fY(){for(var Z=[],J=0;J<arguments.length;J++)Z=Z.concat(z9(arguments[J]));return Z}function jY(){for(var Z=0,J=0,Y=arguments.length;J<Y;J++)Z+=arguments[J].length;for(var Q=Array(Z),X=0,J=0;J<Y;J++)for(var G=arguments[J],W=0,H=G.length;W<H;W++,X++)Q[X]=G[W];return Q}function _Y(Z,J,Y){if(Y||arguments.length===2){for(var Q=0,X=J.length,G;Q<X;Q++)if(G||!(Q in J)){if(!G)G=Array.prototype.slice.call(J,0,Q);G[Q]=J[Q]}}return Z.concat(G||Array.prototype.slice.call(J))}function V0(Z){return this instanceof V0?(this.v=Z,this):new V0(Z)}function vY(Z,J,Y){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var Q=Y.apply(Z,J||[]),X,G=[];return X=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),H("next"),H("throw"),H("return",W),X[Symbol.asyncIterator]=function(){return this},X;function W(F){return function(K){return Promise.resolve(K).then(F,L)}}function H(F,K){if(Q[F]){if(X[F]=function(M){return new Promise(function(I,N){G.push([F,M,I,N])>1||z(F,M)})},K)X[F]=K(X[F])}}function z(F,K){try{U(Q[F](K))}catch(M){V(G[0][3],M)}}function U(F){F.value instanceof V0?Promise.resolve(F.value.v).then(B,L):V(G[0][2],F)}function B(F){z("next",F)}function L(F){z("throw",F)}function V(F,K){if(F(K),G.shift(),G.length)z(G[0][0],G[0][1])}}function kY(Z){var J,Y;return J={},Q("next"),Q("throw",function(X){throw X}),Q("return"),J[Symbol.iterator]=function(){return this},J;function Q(X,G){J[X]=Z[X]?function(W){return(Y=!Y)?{value:V0(Z[X](W)),done:!1}:G?G(W):W}:G}}function hY(Z){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J=Z[Symbol.asyncIterator],Y;return J?J.call(Z):(Z=typeof s5==="function"?s5(Z):Z[Symbol.iterator](),Y={},Q("next"),Q("throw"),Q("return"),Y[Symbol.asyncIterator]=function(){return this},Y);function Q(G){Y[G]=Z[G]&&function(W){return new Promise(function(H,z){W=Z[G](W),X(H,z,W.done,W.value)})}}function X(G,W,H,z){Promise.resolve(z).then(function(U){G({value:U,done:H})},W)}}function bY(Z,J){if(Object.defineProperty)Object.defineProperty(Z,"raw",{value:J});else Z.raw=J;return Z}function gY(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var Y=H9(Z),Q=0;Q<Y.length;Q++)if(Y[Q]!=="default")r5(J,Z,Y[Q])}return WK(J,Z),J}function yY(Z){return Z&&Z.__esModule?Z:{default:Z}}function mY(Z,J,Y,Q){if(Y==="a"&&!Q)throw TypeError("Private accessor was defined without a getter");if(typeof J==="function"?Z!==J||!Q:!J.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return Y==="m"?Q:Y==="a"?Q.call(Z):Q?Q.value:J.get(Z)}function uY(Z,J,Y,Q,X){if(Q==="m")throw TypeError("Private method is not writable");if(Q==="a"&&!X)throw TypeError("Private accessor was defined without a setter");if(typeof J==="function"?Z!==J||!X:!J.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return Q==="a"?X.call(Z,Y):X?X.value=Y:J.set(Z,Y),Y}function dY(Z,J){if(J===null||typeof J!=="object"&&typeof J!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof Z==="function"?J===Z:Z.has(J)}function cY(Z,J,Y){if(J!==null&&J!==void 0){if(typeof J!=="object"&&typeof J!=="function")throw TypeError("Object expected.");var Q,X;if(Y){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");Q=J[Symbol.asyncDispose]}if(Q===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(Q=J[Symbol.dispose],Y)X=Q}if(typeof Q!=="function")throw TypeError("Object not disposable.");if(X)Q=function(){try{X.call(this)}catch(G){return Promise.reject(G)}};Z.stack.push({value:J,dispose:Q,async:Y})}else if(Y)Z.stack.push({async:!0});return J}function pY(Z){function J(G){Z.error=Z.hasError?new HK(G,Z.error,"An error was suppressed during disposal."):G,Z.hasError=!0}var Y,Q=0;function X(){while(Y=Z.stack.pop())try{if(!Y.async&&Q===1)return Q=0,Z.stack.push(Y),Promise.resolve().then(X);if(Y.dispose){var G=Y.dispose.call(Y.value);if(Y.async)return Q|=2,Promise.resolve(G).then(X,function(W){return J(W),X()})}else Q|=1}catch(W){J(W)}if(Q===1)return Z.hasError?Promise.reject(Z.error):Promise.resolve();if(Z.hasError)throw Z.error}return X()}function lY(Z,J){if(typeof Z==="string"&&/^\.\.?\//.test(Z))return Z.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(Y,Q,X,G,W){return Q?J?".jsx":".js":X&&(!G||!W)?Y:X+G+"."+W.toLowerCase()+"js"});return Z}var W9=function(Z,J){return W9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,Q){Y.__proto__=Q}||function(Y,Q){for(var X in Q)if(Object.prototype.hasOwnProperty.call(Q,X))Y[X]=Q[X]},W9(Z,J)},a5=function(){return a5=Object.assign||function(J){for(var Y,Q=1,X=arguments.length;Q<X;Q++){Y=arguments[Q];for(var G in Y)if(Object.prototype.hasOwnProperty.call(Y,G))J[G]=Y[G]}return J},a5.apply(this,arguments)},r5,WK,H9=function(Z){return H9=Object.getOwnPropertyNames||function(J){var Y=[];for(var Q in J)if(Object.prototype.hasOwnProperty.call(J,Q))Y[Y.length]=Q;return Y},H9(Z)},HK,zK;var nY=z7(()=>{r5=Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]};WK=Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J};HK=typeof SuppressedError==="function"?SuppressedError:function(Z,J,Y){var Q=Error(Y);return Q.name="SuppressedError",Q.error=Z,Q.suppressed=J,Q};zK={__extends:qY,__assign:a5,__rest:DY,__decorate:NY,__param:AY,__esDecorate:RY,__runInitializers:PY,__propKey:TY,__setFunctionName:wY,__metadata:EY,__awaiter:SY,__generator:xY,__createBinding:r5,__exportStar:CY,__values:s5,__read:z9,__spread:fY,__spreadArrays:jY,__spreadArray:_Y,__await:V0,__asyncGenerator:vY,__asyncDelegator:kY,__asyncValues:hY,__makeTemplateObject:bY,__importStar:gY,__importDefault:yY,__classPrivateFieldGet:mY,__classPrivateFieldSet:uY,__classPrivateFieldIn:dY,__addDisposableResource:cY,__disposeResources:pY,__rewriteRelativeImportExtension:lY}});var vQ=A((fq,_Q)=>{/*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */function BQ(Z,J){return function(){return Z.apply(J,arguments)}}var{toString:UK}=Object.prototype,{getPrototypeOf:O9}=Object,{iterator:X6,toStringTag:KQ}=Symbol,G6=((Z)=>(J)=>{let Y=UK.call(J);return Z[Y]||(Z[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),M1=(Z)=>{return Z=Z.toLowerCase(),(J)=>G6(J)===Z},W6=(Z)=>(J)=>typeof J===Z,{isArray:q0}=Array,I0=W6("undefined");function n0(Z){return Z!==null&&!I0(Z)&&Z.constructor!==null&&!I0(Z.constructor)&&t(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var LQ=M1("ArrayBuffer");function BK(Z){let J;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&LQ(Z.buffer);return J}var KK=W6("string"),t=W6("function"),MQ=W6("number"),o0=(Z)=>Z!==null&&typeof Z==="object",LK=(Z)=>Z===!0||Z===!1,e5=(Z)=>{if(G6(Z)!=="object")return!1;let J=O9(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(KQ in Z)&&!(X6 in Z)},MK=(Z)=>{if(!o0(Z)||n0(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},FK=M1("Date"),$K=M1("File"),OK=M1("Blob"),VK=M1("FileList"),IK=(Z)=>o0(Z)&&t(Z.pipe),qK=(Z)=>{let J;return Z&&(typeof FormData==="function"&&Z instanceof FormData||t(Z.append)&&((J=G6(Z))==="formdata"||J==="object"&&t(Z.toString)&&Z.toString()==="[object FormData]"))},DK=M1("URLSearchParams"),[NK,AK,RK,PK]=["ReadableStream","Request","Response","Headers"].map(M1),TK=(Z)=>Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function a0(Z,J,{allOwnKeys:Y=!1}={}){if(Z===null||typeof Z>"u")return;let Q,X;if(typeof Z!=="object")Z=[Z];if(q0(Z))for(Q=0,X=Z.length;Q<X;Q++)J.call(null,Z[Q],Q,Z);else{if(n0(Z))return;let G=Y?Object.getOwnPropertyNames(Z):Object.keys(Z),W=G.length,H;for(Q=0;Q<W;Q++)H=G[Q],J.call(null,Z[H],H,Z)}}function FQ(Z,J){if(n0(Z))return null;J=J.toLowerCase();let Y=Object.keys(Z),Q=Y.length,X;while(Q-- >0)if(X=Y[Q],J===X.toLowerCase())return X;return null}var Y0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})(),$Q=(Z)=>!I0(Z)&&Z!==Y0;function L9(){let{caseless:Z,skipUndefined:J}=$Q(this)&&this||{},Y={},Q=(X,G)=>{let W=Z&&FQ(Y,G)||G;if(e5(Y[W])&&e5(X))Y[W]=L9(Y[W],X);else if(e5(X))Y[W]=L9({},X);else if(q0(X))Y[W]=X.slice();else if(!J||!I0(X))Y[W]=X};for(let X=0,G=arguments.length;X<G;X++)arguments[X]&&a0(arguments[X],Q);return Y}var wK=(Z,J,Y,{allOwnKeys:Q}={})=>{return a0(J,(X,G)=>{if(Y&&t(X))Object.defineProperty(Z,G,{value:BQ(X,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,G,{value:X,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},EK=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},SK=(Z,J,Y,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{value:J.prototype}),Y&&Object.assign(Z.prototype,Y)},xK=(Z,J,Y,Q)=>{let X,G,W,H={};if(J=J||{},Z==null)return J;do{X=Object.getOwnPropertyNames(Z),G=X.length;while(G-- >0)if(W=X[G],(!Q||Q(W,Z,J))&&!H[W])J[W]=Z[W],H[W]=!0;Z=Y!==!1&&O9(Z)}while(Z&&(!Y||Y(Z,J))&&Z!==Object.prototype);return J},CK=(Z,J,Y)=>{if(Z=String(Z),Y===void 0||Y>Z.length)Y=Z.length;Y-=J.length;let Q=Z.indexOf(J,Y);return Q!==-1&&Q===Y},fK=(Z)=>{if(!Z)return null;if(q0(Z))return Z;let J=Z.length;if(!MQ(J))return null;let Y=Array(J);while(J-- >0)Y[J]=Z[J];return Y},jK=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array<"u"&&O9(Uint8Array)),_K=(Z,J)=>{let Q=(Z&&Z[X6]).call(Z),X;while((X=Q.next())&&!X.done){let G=X.value;J.call(Z,G[0],G[1])}},vK=(Z,J)=>{let Y,Q=[];while((Y=Z.exec(J))!==null)Q.push(Y);return Q},kK=M1("HTMLFormElement"),hK=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,Q,X){return Q.toUpperCase()+X})},oY=(({hasOwnProperty:Z})=>(J,Y)=>Z.call(J,Y))(Object.prototype),bK=M1("RegExp"),OQ=(Z,J)=>{let Y=Object.getOwnPropertyDescriptors(Z),Q={};a0(Y,(X,G)=>{let W;if((W=J(X,G,Z))!==!1)Q[G]=W||X}),Object.defineProperties(Z,Q)},gK=(Z)=>{OQ(Z,(J,Y)=>{if(t(Z)&&["arguments","caller","callee"].indexOf(Y)!==-1)return!1;let Q=Z[Y];if(!t(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},yK=(Z,J)=>{let Y={},Q=(X)=>{X.forEach((G)=>{Y[G]=!0})};return q0(Z)?Q(Z):Q(String(Z).split(J)),Y},mK=()=>{},uK=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function dK(Z){return!!(Z&&t(Z.append)&&Z[KQ]==="FormData"&&Z[X6])}var cK=(Z)=>{let J=[,,,,,,,,,,],Y=(Q,X)=>{if(o0(Q)){if(J.indexOf(Q)>=0)return;if(n0(Q))return Q;if(!("toJSON"in Q)){J[X]=Q;let G=q0(Q)?[]:{};return a0(Q,(W,H)=>{let z=Y(W,X+1);!I0(z)&&(G[H]=z)}),J[X]=void 0,G}}return Q};return Y(Z,0)},pK=M1("AsyncFunction"),lK=(Z)=>Z&&(o0(Z)||t(Z))&&t(Z.then)&&t(Z.catch),VQ=((Z,J)=>{if(Z)return setImmediate;return J?((Y,Q)=>{return Y0.addEventListener("message",({source:X,data:G})=>{if(X===Y0&&G===Y)Q.length&&Q.shift()()},!1),(X)=>{Q.push(X),Y0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",t(Y0.postMessage)),iK=typeof queueMicrotask<"u"?queueMicrotask.bind(Y0):typeof process<"u"&&process.nextTick||VQ,nK=(Z)=>Z!=null&&t(Z[X6]),O={isArray:q0,isArrayBuffer:LQ,isBuffer:n0,isFormData:qK,isArrayBufferView:BK,isString:KK,isNumber:MQ,isBoolean:LK,isObject:o0,isPlainObject:e5,isEmptyObject:MK,isReadableStream:NK,isRequest:AK,isResponse:RK,isHeaders:PK,isUndefined:I0,isDate:FK,isFile:$K,isBlob:OK,isRegExp:bK,isFunction:t,isStream:IK,isURLSearchParams:DK,isTypedArray:jK,isFileList:VK,forEach:a0,merge:L9,extend:wK,trim:TK,stripBOM:EK,inherits:SK,toFlatObject:xK,kindOf:G6,kindOfTest:M1,endsWith:CK,toArray:fK,forEachEntry:_K,matchAll:vK,isHTMLForm:kK,hasOwnProperty:oY,hasOwnProp:oY,reduceDescriptors:OQ,freezeMethods:gK,toObjectSet:yK,toCamelCase:hK,noop:mK,toFiniteNumber:uK,findKey:FQ,global:Y0,isContextDefined:$Q,isSpecCompliantForm:dK,toJSONObject:cK,isAsyncFn:pK,isThenable:lK,setImmediate:VQ,asap:iK,isIterable:nK};class a extends Error{static from(Z,J,Y,Q,X,G){let W=new a(Z.message,J||Z.code,Y,Q,X);return W.cause=Z,W.name=Z.name,G&&Object.assign(W,G),W}constructor(Z,J,Y,Q,X){super(Z);if(this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),Y&&(this.config=Y),Q&&(this.request=Q),X)this.response=X,this.status=X.status}toJSON(){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:O.toJSONObject(this.config),code:this.code,status:this.status}}}a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";var x=a,oK=null;function M9(Z){return O.isPlainObject(Z)||O.isArray(Z)}function IQ(Z){return O.endsWith(Z,"[]")?Z.slice(0,-2):Z}function aY(Z,J,Y){if(!Z)return J;return Z.concat(J).map(function(X,G){return X=IQ(X),!Y&&G?"["+X+"]":X}).join(Y?".":"")}function aK(Z){return O.isArray(Z)&&!Z.some(M9)}var sK=O.toFlatObject(O,{},null,function(J){return/^is[A-Z]/.test(J)});function H6(Z,J,Y){if(!O.isObject(Z))throw TypeError("target must be an object");J=J||new FormData,Y=O.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,I){return!O.isUndefined(I[M])});let Q=Y.metaTokens,X=Y.visitor||B,G=Y.dots,W=Y.indexes,z=(Y.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(J);if(!O.isFunction(X))throw TypeError("visitor must be a function");function U(K){if(K===null)return"";if(O.isDate(K))return K.toISOString();if(O.isBoolean(K))return K.toString();if(!z&&O.isBlob(K))throw new x("Blob is not supported. Use a Buffer instead.");if(O.isArrayBuffer(K)||O.isTypedArray(K))return z&&typeof Blob==="function"?new Blob([K]):Buffer.from(K);return K}function B(K,M,I){let N=K;if(K&&!I&&typeof K==="object"){if(O.endsWith(M,"{}"))M=Q?M:M.slice(0,-2),K=JSON.stringify(K);else if(O.isArray(K)&&aK(K)||(O.isFileList(K)||O.endsWith(M,"[]"))&&(N=O.toArray(K)))return M=IQ(M),N.forEach(function(D,q){!(O.isUndefined(D)||D===null)&&J.append(W===!0?aY([M],q,G):W===null?M:M+"[]",U(D))}),!1}if(M9(K))return!0;return J.append(aY(I,M,G),U(K)),!1}let L=[],V=Object.assign(sK,{defaultVisitor:B,convertValue:U,isVisitable:M9});function F(K,M){if(O.isUndefined(K))return;if(L.indexOf(K)!==-1)throw Error("Circular reference detected in "+M.join("."));L.push(K),O.forEach(K,function(N,P){if((!(O.isUndefined(N)||N===null)&&X.call(J,N,O.isString(P)?P.trim():P,M,V))===!0)F(N,M?M.concat(P):[P])}),L.pop()}if(!O.isObject(Z))throw TypeError("data must be an object");return F(Z),J}function sY(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(Z).replace(/[!'()~]|%20|%00/g,function(Q){return J[Q]})}function V9(Z,J){this._pairs=[],Z&&H6(Z,this,J)}var qQ=V9.prototype;qQ.append=function(J,Y){this._pairs.push([J,Y])};qQ.toString=function(J){let Y=J?function(Q){return J.call(this,Q,sY)}:sY;return this._pairs.map(function(X){return Y(X[0])+"="+Y(X[1])},"").join("&")};function rK(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DQ(Z,J,Y){if(!J)return Z;let Q=Y&&Y.encode||rK,X=O.isFunction(Y)?{serialize:Y}:Y,G=X&&X.serialize,W;if(G)W=G(J,X);else W=O.isURLSearchParams(J)?J.toString():new V9(J,X).toString(Q);if(W){let H=Z.indexOf("#");if(H!==-1)Z=Z.slice(0,H);Z+=(Z.indexOf("?")===-1?"?":"&")+W}return Z}class NQ{constructor(){this.handlers=[]}use(Z,J,Y){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){O.forEach(this.handlers,function(Y){if(Y!==null)Z(Y)})}}var rY=NQ,AQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tK=typeof URLSearchParams<"u"?URLSearchParams:V9,eK=typeof FormData<"u"?FormData:null,ZL=typeof Blob<"u"?Blob:null,JL={isBrowser:!0,classes:{URLSearchParams:tK,FormData:eK,Blob:ZL},protocols:["http","https","file","blob","url","data"]},I9=typeof window<"u"&&typeof document<"u",F9=typeof navigator==="object"&&navigator||void 0,YL=I9&&(!F9||["ReactNative","NativeScript","NS"].indexOf(F9.product)<0),QL=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),XL=I9&&window.location.href||"http://localhost",GL=Object.freeze({__proto__:null,hasBrowserEnv:I9,hasStandardBrowserWebWorkerEnv:QL,hasStandardBrowserEnv:YL,navigator:F9,origin:XL}),i={...GL,...JL};function WL(Z,J){return H6(Z,new i.classes.URLSearchParams,{visitor:function(Y,Q,X,G){if(i.isNode&&O.isBuffer(Y))return this.append(Q,Y.toString("base64")),!1;return G.defaultVisitor.apply(this,arguments)},...J})}function HL(Z){return O.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function zL(Z){let J={},Y=Object.keys(Z),Q,X=Y.length,G;for(Q=0;Q<X;Q++)G=Y[Q],J[G]=Z[G];return J}function RQ(Z){function J(Y,Q,X,G){let W=Y[G++];if(W==="__proto__")return!0;let H=Number.isFinite(+W),z=G>=Y.length;if(W=!W&&O.isArray(X)?X.length:W,z){if(O.hasOwnProp(X,W))X[W]=[X[W],Q];else X[W]=Q;return!H}if(!X[W]||!O.isObject(X[W]))X[W]=[];if(J(Y,Q,X[W],G)&&O.isArray(X[W]))X[W]=zL(X[W]);return!H}if(O.isFormData(Z)&&O.isFunction(Z.entries)){let Y={};return O.forEachEntry(Z,(Q,X)=>{J(HL(Q),X,Y,0)}),Y}return null}function UL(Z,J,Y){if(O.isString(Z))try{return(J||JSON.parse)(Z),O.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(Y||JSON.stringify)(Z)}var q9={transitional:AQ,adapter:["xhr","http","fetch"],transformRequest:[function(J,Y){let Q=Y.getContentType()||"",X=Q.indexOf("application/json")>-1,G=O.isObject(J);if(G&&O.isHTMLForm(J))J=new FormData(J);if(O.isFormData(J))return X?JSON.stringify(RQ(J)):J;if(O.isArrayBuffer(J)||O.isBuffer(J)||O.isStream(J)||O.isFile(J)||O.isBlob(J)||O.isReadableStream(J))return J;if(O.isArrayBufferView(J))return J.buffer;if(O.isURLSearchParams(J))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let H;if(G){if(Q.indexOf("application/x-www-form-urlencoded")>-1)return WL(J,this.formSerializer).toString();if((H=O.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let z=this.env&&this.env.FormData;return H6(H?{"files[]":J}:J,z&&new z,this.formSerializer)}}if(G||X)return Y.setContentType("application/json",!1),UL(J);return J}],transformResponse:[function(J){let Y=this.transitional||q9.transitional,Q=Y&&Y.forcedJSONParsing,X=this.responseType==="json";if(O.isResponse(J)||O.isReadableStream(J))return J;if(J&&O.isString(J)&&(Q&&!this.responseType||X)){let W=!(Y&&Y.silentJSONParsing)&&X;try{return JSON.parse(J,this.parseReviver)}catch(H){if(W){if(H.name==="SyntaxError")throw x.from(H,x.ERR_BAD_RESPONSE,this,null,this.response);throw H}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i.classes.FormData,Blob:i.classes.Blob},validateStatus:function(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],(Z)=>{q9.headers[Z]={}});var D9=q9,BL=O.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"]),KL=(Z)=>{let J={},Y,Q,X;return Z&&Z.split(`
10
+ `).forEach(function(W){if(X=W.indexOf(":"),Y=W.substring(0,X).trim().toLowerCase(),Q=W.substring(X+1).trim(),!Y||J[Y]&&BL[Y])return;if(Y==="set-cookie")if(J[Y])J[Y].push(Q);else J[Y]=[Q];else J[Y]=J[Y]?J[Y]+", "+Q:Q}),J},tY=Symbol("internals");function l0(Z){return Z&&String(Z).trim().toLowerCase()}function Z6(Z){if(Z===!1||Z==null)return Z;return O.isArray(Z)?Z.map(Z6):String(Z)}function LL(Z){let J=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=Y.exec(Z))J[Q[1]]=Q[2];return J}var ML=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function U9(Z,J,Y,Q,X){if(O.isFunction(Q))return Q.call(this,J,Y);if(X)J=Y;if(!O.isString(J))return;if(O.isString(Q))return J.indexOf(Q)!==-1;if(O.isRegExp(Q))return Q.test(J)}function FL(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,Y,Q)=>{return Y.toUpperCase()+Q})}function $L(Z,J){let Y=O.toCamelCase(" "+J);["get","set","has"].forEach((Q)=>{Object.defineProperty(Z,Q+Y,{value:function(X,G,W){return this[Q].call(this,J,X,G,W)},configurable:!0})})}class s0{constructor(Z){Z&&this.set(Z)}set(Z,J,Y){let Q=this;function X(W,H,z){let U=l0(H);if(!U)throw Error("header name must be a non-empty string");let B=O.findKey(Q,U);if(!B||Q[B]===void 0||z===!0||z===void 0&&Q[B]!==!1)Q[B||H]=Z6(W)}let G=(W,H)=>O.forEach(W,(z,U)=>X(z,U,H));if(O.isPlainObject(Z)||Z instanceof this.constructor)G(Z,J);else if(O.isString(Z)&&(Z=Z.trim())&&!ML(Z))G(KL(Z),J);else if(O.isObject(Z)&&O.isIterable(Z)){let W={},H,z;for(let U of Z){if(!O.isArray(U))throw TypeError("Object iterator must return a key-value pair");W[z=U[0]]=(H=W[z])?O.isArray(H)?[...H,U[1]]:[H,U[1]]:U[1]}G(W,J)}else Z!=null&&X(J,Z,Y);return this}get(Z,J){if(Z=l0(Z),Z){let Y=O.findKey(this,Z);if(Y){let Q=this[Y];if(!J)return Q;if(J===!0)return LL(Q);if(O.isFunction(J))return J.call(this,Q,Y);if(O.isRegExp(J))return J.exec(Q);throw TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=l0(Z),Z){let Y=O.findKey(this,Z);return!!(Y&&this[Y]!==void 0&&(!J||U9(this,this[Y],Y,J)))}return!1}delete(Z,J){let Y=this,Q=!1;function X(G){if(G=l0(G),G){let W=O.findKey(Y,G);if(W&&(!J||U9(Y,Y[W],W,J)))delete Y[W],Q=!0}}if(O.isArray(Z))Z.forEach(X);else X(Z);return Q}clear(Z){let J=Object.keys(this),Y=J.length,Q=!1;while(Y--){let X=J[Y];if(!Z||U9(this,this[X],X,Z,!0))delete this[X],Q=!0}return Q}normalize(Z){let J=this,Y={};return O.forEach(this,(Q,X)=>{let G=O.findKey(Y,X);if(G){J[G]=Z6(Q),delete J[X];return}let W=Z?FL(X):String(X).trim();if(W!==X)delete J[X];J[W]=Z6(Q),Y[W]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return O.forEach(this,(Y,Q)=>{Y!=null&&Y!==!1&&(J[Q]=Z&&O.isArray(Y)?Y.join(", "):Y)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
11
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let Y=new this(Z);return J.forEach((Q)=>Y.set(Q)),Y}static accessor(Z){let Y=(this[tY]=this[tY]={accessors:{}}).accessors,Q=this.prototype;function X(G){let W=l0(G);if(!Y[W])$L(Q,G),Y[W]=!0}return O.isArray(Z)?Z.forEach(X):X(Z),this}}s0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(s0.prototype,({value:Z},J)=>{let Y=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[Y]=Q}}});O.freezeMethods(s0);var L1=s0;function B9(Z,J){let Y=this||D9,Q=J||Y,X=L1.from(Q.headers),G=Q.data;return O.forEach(Z,function(H){G=H.call(Y,G,X.normalize(),J?J.status:void 0)}),X.normalize(),G}function PQ(Z){return!!(Z&&Z.__CANCEL__)}class TQ extends x{constructor(Z,J,Y){super(Z==null?"canceled":Z,x.ERR_CANCELED,J,Y);this.name="CanceledError",this.__CANCEL__=!0}}var r0=TQ;function wQ(Z,J,Y){let Q=Y.config.validateStatus;if(!Y.status||!Q||Q(Y.status))Z(Y);else J(new x("Request failed with status code "+Y.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(Y.status/100)-4],Y.config,Y.request,Y))}function OL(Z){let J=/^([-+\w]{1,25})(:?\/\/|:)/.exec(Z);return J&&J[1]||""}function VL(Z,J){Z=Z||10;let Y=Array(Z),Q=Array(Z),X=0,G=0,W;return J=J!==void 0?J:1000,function(z){let U=Date.now(),B=Q[G];if(!W)W=U;Y[X]=z,Q[X]=U;let L=G,V=0;while(L!==X)V+=Y[L++],L=L%Z;if(X=(X+1)%Z,X===G)G=(G+1)%Z;if(U-W<J)return;let F=B&&U-B;return F?Math.round(V*1000/F):void 0}}function IL(Z,J){let Y=0,Q=1000/J,X,G,W=(U,B=Date.now())=>{if(Y=B,X=null,G)clearTimeout(G),G=null;Z(...U)};return[(...U)=>{let B=Date.now(),L=B-Y;if(L>=Q)W(U,B);else if(X=U,!G)G=setTimeout(()=>{G=null,W(X)},Q-L)},()=>X&&W(X)]}var Q6=(Z,J,Y=3)=>{let Q=0,X=VL(50,250);return IL((G)=>{let W=G.loaded,H=G.lengthComputable?G.total:void 0,z=W-Q,U=X(z),B=W<=H;Q=W;let L={loaded:W,total:H,progress:H?W/H:void 0,bytes:z,rate:U?U:void 0,estimated:U&&H&&B?(H-W)/U:void 0,event:G,lengthComputable:H!=null,[J?"download":"upload"]:!0};Z(L)},Y)},eY=(Z,J)=>{let Y=Z!=null;return[(Q)=>J[0]({lengthComputable:Y,total:Z,loaded:Q}),J[1]]},ZQ=(Z)=>(...J)=>O.asap(()=>Z(...J)),qL=i.hasStandardBrowserEnv?((Z,J)=>(Y)=>{return Y=new URL(Y,i.origin),Z.protocol===Y.protocol&&Z.host===Y.host&&(J||Z.port===Y.port)})(new URL(i.origin),i.navigator&&/(msie|trident)/i.test(i.navigator.userAgent)):()=>!0,DL=i.hasStandardBrowserEnv?{write(Z,J,Y,Q,X,G,W){if(typeof document>"u")return;let H=[`${Z}=${encodeURIComponent(J)}`];if(O.isNumber(Y))H.push(`expires=${new Date(Y).toUTCString()}`);if(O.isString(Q))H.push(`path=${Q}`);if(O.isString(X))H.push(`domain=${X}`);if(G===!0)H.push("secure");if(O.isString(W))H.push(`SameSite=${W}`);document.cookie=H.join("; ")},read(Z){if(typeof document>"u")return null;let J=document.cookie.match(new RegExp("(?:^|; )"+Z+"=([^;]*)"));return J?decodeURIComponent(J[1]):null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};function NL(Z){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function AL(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function EQ(Z,J,Y){let Q=!NL(J);if(Z&&(Q||Y==!1))return AL(Z,J);return J}var JQ=(Z)=>Z instanceof L1?{...Z}:Z;function Q0(Z,J){J=J||{};let Y={};function Q(U,B,L,V){if(O.isPlainObject(U)&&O.isPlainObject(B))return O.merge.call({caseless:V},U,B);else if(O.isPlainObject(B))return O.merge({},B);else if(O.isArray(B))return B.slice();return B}function X(U,B,L,V){if(!O.isUndefined(B))return Q(U,B,L,V);else if(!O.isUndefined(U))return Q(void 0,U,L,V)}function G(U,B){if(!O.isUndefined(B))return Q(void 0,B)}function W(U,B){if(!O.isUndefined(B))return Q(void 0,B);else if(!O.isUndefined(U))return Q(void 0,U)}function H(U,B,L){if(L in J)return Q(U,B);else if(L in Z)return Q(void 0,U)}let z={url:G,method:G,data:G,baseURL:W,transformRequest:W,transformResponse:W,paramsSerializer:W,timeout:W,timeoutMessage:W,withCredentials:W,withXSRFToken:W,adapter:W,responseType:W,xsrfCookieName:W,xsrfHeaderName:W,onUploadProgress:W,onDownloadProgress:W,decompress:W,maxContentLength:W,maxBodyLength:W,beforeRedirect:W,transport:W,httpAgent:W,httpsAgent:W,cancelToken:W,socketPath:W,responseEncoding:W,validateStatus:H,headers:(U,B,L)=>X(JQ(U),JQ(B),L,!0)};return O.forEach(Object.keys({...Z,...J}),function(B){let L=z[B]||X,V=L(Z[B],J[B],B);O.isUndefined(V)&&L!==H||(Y[B]=V)}),Y}var SQ=(Z)=>{let J=Q0({},Z),{data:Y,withXSRFToken:Q,xsrfHeaderName:X,xsrfCookieName:G,headers:W,auth:H}=J;if(J.headers=W=L1.from(W),J.url=DQ(EQ(J.baseURL,J.url,J.allowAbsoluteUrls),Z.params,Z.paramsSerializer),H)W.set("Authorization","Basic "+btoa((H.username||"")+":"+(H.password?unescape(encodeURIComponent(H.password)):"")));if(O.isFormData(Y)){if(i.hasStandardBrowserEnv||i.hasStandardBrowserWebWorkerEnv)W.setContentType(void 0);else if(O.isFunction(Y.getHeaders)){let z=Y.getHeaders(),U=["content-type","content-length"];Object.entries(z).forEach(([B,L])=>{if(U.includes(B.toLowerCase()))W.set(B,L)})}}if(i.hasStandardBrowserEnv){if(Q&&O.isFunction(Q)&&(Q=Q(J)),Q||Q!==!1&&qL(J.url)){let z=X&&G&&DL.read(G);if(z)W.set(X,z)}}return J},RL=typeof XMLHttpRequest<"u",PL=RL&&function(Z){return new Promise(function(Y,Q){let X=SQ(Z),G=X.data,W=L1.from(X.headers).normalize(),{responseType:H,onUploadProgress:z,onDownloadProgress:U}=X,B,L,V,F,K;function M(){F&&F(),K&&K(),X.cancelToken&&X.cancelToken.unsubscribe(B),X.signal&&X.signal.removeEventListener("abort",B)}let I=new XMLHttpRequest;I.open(X.method.toUpperCase(),X.url,!0),I.timeout=X.timeout;function N(){if(!I)return;let D=L1.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),E={data:!H||H==="text"||H==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:D,config:Z,request:I};wQ(function(m){Y(m),M()},function(m){Q(m),M()},E),I=null}if("onloadend"in I)I.onloadend=N;else I.onreadystatechange=function(){if(!I||I.readyState!==4)return;if(I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0))return;setTimeout(N)};if(I.onabort=function(){if(!I)return;Q(new x("Request aborted",x.ECONNABORTED,Z,I)),I=null},I.onerror=function(q){let E=q&&q.message?q.message:"Network Error",C=new x(E,x.ERR_NETWORK,Z,I);C.event=q||null,Q(C),I=null},I.ontimeout=function(){let q=X.timeout?"timeout of "+X.timeout+"ms exceeded":"timeout exceeded",E=X.transitional||AQ;if(X.timeoutErrorMessage)q=X.timeoutErrorMessage;Q(new x(q,E.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,Z,I)),I=null},G===void 0&&W.setContentType(null),"setRequestHeader"in I)O.forEach(W.toJSON(),function(q,E){I.setRequestHeader(E,q)});if(!O.isUndefined(X.withCredentials))I.withCredentials=!!X.withCredentials;if(H&&H!=="json")I.responseType=X.responseType;if(U)[V,K]=Q6(U,!0),I.addEventListener("progress",V);if(z&&I.upload)[L,F]=Q6(z),I.upload.addEventListener("progress",L),I.upload.addEventListener("loadend",F);if(X.cancelToken||X.signal){if(B=(D)=>{if(!I)return;Q(!D||D.type?new r0(null,Z,I):D),I.abort(),I=null},X.cancelToken&&X.cancelToken.subscribe(B),X.signal)X.signal.aborted?B():X.signal.addEventListener("abort",B)}let P=OL(X.url);if(P&&i.protocols.indexOf(P)===-1){Q(new x("Unsupported protocol "+P+":",x.ERR_BAD_REQUEST,Z));return}I.send(G||null)})},TL=(Z,J)=>{let{length:Y}=Z=Z?Z.filter(Boolean):[];if(J||Y){let Q=new AbortController,X,G=function(U){if(!X){X=!0,H();let B=U instanceof Error?U:this.reason;Q.abort(B instanceof x?B:new r0(B instanceof Error?B.message:B))}},W=J&&setTimeout(()=>{W=null,G(new x(`timeout of ${J}ms exceeded`,x.ETIMEDOUT))},J),H=()=>{if(Z)W&&clearTimeout(W),W=null,Z.forEach((U)=>{U.unsubscribe?U.unsubscribe(G):U.removeEventListener("abort",G)}),Z=null};Z.forEach((U)=>U.addEventListener("abort",G));let{signal:z}=Q;return z.unsubscribe=()=>O.asap(H),z}},wL=TL,EL=function*(Z,J){let Y=Z.byteLength;if(!J||Y<J){yield Z;return}let Q=0,X;while(Q<Y)X=Q+J,yield Z.slice(Q,X),Q=X},SL=async function*(Z,J){for await(let Y of xL(Z))yield*EL(Y,J)},xL=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:Y,value:Q}=await J.read();if(Y)break;yield Q}}finally{await J.cancel()}},YQ=(Z,J,Y,Q)=>{let X=SL(Z,J),G=0,W,H=(z)=>{if(!W)W=!0,Q&&Q(z)};return new ReadableStream({async pull(z){try{let{done:U,value:B}=await X.next();if(U){H(),z.close();return}let L=B.byteLength;if(Y){let V=G+=L;Y(V)}z.enqueue(new Uint8Array(B))}catch(U){throw H(U),U}},cancel(z){return H(z),X.return()}},{highWaterMark:2})},QQ=65536,{isFunction:t5}=O,CL=(({Request:Z,Response:J})=>({Request:Z,Response:J}))(O.global),{ReadableStream:XQ,TextEncoder:GQ}=O.global,WQ=(Z,...J)=>{try{return!!Z(...J)}catch(Y){return!1}},fL=(Z)=>{Z=O.merge.call({skipUndefined:!0},CL,Z);let{fetch:J,Request:Y,Response:Q}=Z,X=J?t5(J):typeof fetch==="function",G=t5(Y),W=t5(Q);if(!X)return!1;let H=X&&t5(XQ),z=X&&(typeof GQ==="function"?((K)=>(M)=>K.encode(M))(new GQ):async(K)=>new Uint8Array(await new Y(K).arrayBuffer())),U=G&&H&&WQ(()=>{let K=!1,M=new Y(i.origin,{body:new XQ,method:"POST",get duplex(){return K=!0,"half"}}).headers.has("Content-Type");return K&&!M}),B=W&&H&&WQ(()=>O.isReadableStream(new Q("").body)),L={stream:B&&((K)=>K.body)};X&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((K)=>{!L[K]&&(L[K]=(M,I)=>{let N=M&&M[K];if(N)return N.call(M);throw new x(`Response type '${K}' is not supported`,x.ERR_NOT_SUPPORT,I)})})})();let V=async(K)=>{if(K==null)return 0;if(O.isBlob(K))return K.size;if(O.isSpecCompliantForm(K))return(await new Y(i.origin,{method:"POST",body:K}).arrayBuffer()).byteLength;if(O.isArrayBufferView(K)||O.isArrayBuffer(K))return K.byteLength;if(O.isURLSearchParams(K))K=K+"";if(O.isString(K))return(await z(K)).byteLength},F=async(K,M)=>{let I=O.toFiniteNumber(K.getContentLength());return I==null?V(M):I};return async(K)=>{let{url:M,method:I,data:N,signal:P,cancelToken:D,timeout:q,onDownloadProgress:E,onUploadProgress:C,responseType:m,headers:i1,withCredentials:f1="same-origin",fetchOptions:j1}=SQ(K),v=J||fetch;m=m?(m+"").toLowerCase():"text";let R1=wL([P,D&&D.toAbortSignal()],q),c=null,P1=R1&&R1.unsubscribe&&(()=>{R1.unsubscribe()}),$;try{if(C&&U&&I!=="get"&&I!=="head"&&($=await F(i1,N))!==0){let v1=new Y(M,{method:"POST",body:N,duplex:"half"}),W0;if(O.isFormData(N)&&(W0=v1.headers.get("content-type")))i1.setContentType(W0);if(v1.body){let[P6,z5]=eY($,Q6(ZQ(C)));N=YQ(v1.body,QQ,P6,z5)}}if(!O.isString(f1))f1=f1?"include":"omit";let X1=G&&"credentials"in Y.prototype,g={...j1,signal:R1,method:I.toUpperCase(),headers:i1.normalize().toJSON(),body:N,duplex:"half",credentials:X1?f1:void 0};c=G&&new Y(M,g);let B1=await(G?v(c,j1):v(M,g)),_1=B&&(m==="stream"||m==="response");if(B&&(E||_1&&P1)){let v1={};["status","statusText","headers"].forEach((Q7)=>{v1[Q7]=B1[Q7]});let W0=O.toFiniteNumber(B1.headers.get("content-length")),[P6,z5]=E&&eY(W0,Q6(ZQ(E),!0))||[];B1=new Q(YQ(B1.body,QQ,P6,()=>{z5&&z5(),P1&&P1()}),v1)}m=m||"text";let T1=await L[O.findKey(L,m)||"text"](B1,K);return!_1&&P1&&P1(),await new Promise((v1,W0)=>{wQ(v1,W0,{data:T1,headers:L1.from(B1.headers),status:B1.status,statusText:B1.statusText,config:K,request:c})})}catch(X1){if(P1&&P1(),X1&&X1.name==="TypeError"&&/Load failed|fetch/i.test(X1.message))throw Object.assign(new x("Network Error",x.ERR_NETWORK,K,c),{cause:X1.cause||X1});throw x.from(X1,X1&&X1.code,K,c)}}},jL=new Map,xQ=(Z)=>{let J=Z&&Z.env||{},{fetch:Y,Request:Q,Response:X}=J,G=[Q,X,Y],W=G.length,H=W,z,U,B=jL;while(H--)z=G[H],U=B.get(z),U===void 0&&B.set(z,U=H?new Map:fL(J)),B=U;return U};xQ();var N9={http:oK,xhr:PL,fetch:{get:xQ}};O.forEach(N9,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{value:J})}catch(Y){}Object.defineProperty(Z,"adapterName",{value:J})}});var HQ=(Z)=>`- ${Z}`,_L=(Z)=>O.isFunction(Z)||Z===null||Z===!1;function vL(Z,J){Z=O.isArray(Z)?Z:[Z];let{length:Y}=Z,Q,X,G={};for(let W=0;W<Y;W++){Q=Z[W];let H;if(X=Q,!_L(Q)){if(X=N9[(H=String(Q)).toLowerCase()],X===void 0)throw new x(`Unknown adapter '${H}'`)}if(X&&(O.isFunction(X)||(X=X.get(J))))break;G[H||"#"+W]=X}if(!X){let W=Object.entries(G).map(([z,U])=>`adapter ${z} `+(U===!1?"is not supported by the environment":"is not available in the build")),H=Y?W.length>1?`since :
12
+ `+W.map(HQ).join(`
13
+ `):" "+HQ(W[0]):"as no adapter specified";throw new x("There is no suitable adapter to dispatch the request "+H,"ERR_NOT_SUPPORT")}return X}var CQ={getAdapter:vL,adapters:N9};function K9(Z){if(Z.cancelToken)Z.cancelToken.throwIfRequested();if(Z.signal&&Z.signal.aborted)throw new r0(null,Z)}function zQ(Z){if(K9(Z),Z.headers=L1.from(Z.headers),Z.data=B9.call(Z,Z.transformRequest),["post","put","patch"].indexOf(Z.method)!==-1)Z.headers.setContentType("application/x-www-form-urlencoded",!1);return CQ.getAdapter(Z.adapter||D9.adapter,Z)(Z).then(function(Q){return K9(Z),Q.data=B9.call(Z,Z.transformResponse,Q),Q.headers=L1.from(Q.headers),Q},function(Q){if(!PQ(Q)){if(K9(Z),Q&&Q.response)Q.response.data=B9.call(Z,Z.transformResponse,Q.response),Q.response.headers=L1.from(Q.response.headers)}return Promise.reject(Q)})}var fQ="1.13.4",z6={};["object","boolean","number","function","string","symbol"].forEach((Z,J)=>{z6[Z]=function(Q){return typeof Q===Z||"a"+(J<1?"n ":" ")+Z}});var UQ={};z6.transitional=function(J,Y,Q){function X(G,W){return"[Axios v"+fQ+"] Transitional option '"+G+"'"+W+(Q?". "+Q:"")}return(G,W,H)=>{if(J===!1)throw new x(X(W," has been removed"+(Y?" in "+Y:"")),x.ERR_DEPRECATED);if(Y&&!UQ[W])UQ[W]=!0,console.warn(X(W," has been deprecated since v"+Y+" and will be removed in the near future"));return J?J(G,W,H):!0}};z6.spelling=function(J){return(Y,Q)=>{return console.warn(`${Q} is likely a misspelling of ${J}`),!0}};function kL(Z,J,Y){if(typeof Z!=="object")throw new x("options must be an object",x.ERR_BAD_OPTION_VALUE);let Q=Object.keys(Z),X=Q.length;while(X-- >0){let G=Q[X],W=J[G];if(W){let H=Z[G],z=H===void 0||W(H,G,Z);if(z!==!0)throw new x("option "+G+" must be "+z,x.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new x("Unknown option "+G,x.ERR_BAD_OPTION)}}var J6={assertOptions:kL,validators:z6},D1=J6.validators;class i0{constructor(Z){this.defaults=Z||{},this.interceptors={request:new rY,response:new rY}}async request(Z,J){try{return await this._request(Z,J)}catch(Y){if(Y instanceof Error){let Q={};Error.captureStackTrace?Error.captureStackTrace(Q):Q=Error();let X=Q.stack?Q.stack.replace(/^.+\n/,""):"";try{if(!Y.stack)Y.stack=X;else if(X&&!String(Y.stack).endsWith(X.replace(/^.+\n.+\n/,"")))Y.stack+=`
14
+ `+X}catch(G){}}throw Y}}_request(Z,J){if(typeof Z==="string")J=J||{},J.url=Z;else J=Z||{};J=Q0(this.defaults,J);let{transitional:Y,paramsSerializer:Q,headers:X}=J;if(Y!==void 0)J6.assertOptions(Y,{silentJSONParsing:D1.transitional(D1.boolean),forcedJSONParsing:D1.transitional(D1.boolean),clarifyTimeoutError:D1.transitional(D1.boolean)},!1);if(Q!=null)if(O.isFunction(Q))J.paramsSerializer={serialize:Q};else J6.assertOptions(Q,{encode:D1.function,serialize:D1.function},!0);if(J.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)J.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else J.allowAbsoluteUrls=!0;J6.assertOptions(J,{baseUrl:D1.spelling("baseURL"),withXsrfToken:D1.spelling("withXSRFToken")},!0),J.method=(J.method||this.defaults.method||"get").toLowerCase();let G=X&&O.merge(X.common,X[J.method]);X&&O.forEach(["delete","get","head","post","put","patch","common"],(F)=>{delete X[F]}),J.headers=L1.concat(G,X);let W=[],H=!0;this.interceptors.request.forEach(function(K){if(typeof K.runWhen==="function"&&K.runWhen(J)===!1)return;H=H&&K.synchronous,W.unshift(K.fulfilled,K.rejected)});let z=[];this.interceptors.response.forEach(function(K){z.push(K.fulfilled,K.rejected)});let U,B=0,L;if(!H){let F=[zQ.bind(this),void 0];F.unshift(...W),F.push(...z),L=F.length,U=Promise.resolve(J);while(B<L)U=U.then(F[B++],F[B++]);return U}L=W.length;let V=J;while(B<L){let F=W[B++],K=W[B++];try{V=F(V)}catch(M){K.call(this,M);break}}try{U=zQ.call(this,V)}catch(F){return Promise.reject(F)}B=0,L=z.length;while(B<L)U=U.then(z[B++],z[B++]);return U}getUri(Z){Z=Q0(this.defaults,Z);let J=EQ(Z.baseURL,Z.url,Z.allowAbsoluteUrls);return DQ(J,Z.params,Z.paramsSerializer)}}O.forEach(["delete","get","head","options"],function(J){i0.prototype[J]=function(Y,Q){return this.request(Q0(Q||{},{method:J,url:Y,data:(Q||{}).data}))}});O.forEach(["post","put","patch"],function(J){function Y(Q){return function(G,W,H){return this.request(Q0(H||{},{method:J,headers:Q?{"Content-Type":"multipart/form-data"}:{},url:G,data:W}))}}i0.prototype[J]=Y(),i0.prototype[J+"Form"]=Y(!0)});var Y6=i0;class A9{constructor(Z){if(typeof Z!=="function")throw TypeError("executor must be a function.");let J;this.promise=new Promise(function(X){J=X});let Y=this;this.promise.then((Q)=>{if(!Y._listeners)return;let X=Y._listeners.length;while(X-- >0)Y._listeners[X](Q);Y._listeners=null}),this.promise.then=(Q)=>{let X,G=new Promise((W)=>{Y.subscribe(W),X=W}).then(Q);return G.cancel=function(){Y.unsubscribe(X)},G},Z(function(X,G,W){if(Y.reason)return;Y.reason=new r0(X,G,W),J(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(Z){if(this.reason){Z(this.reason);return}if(this._listeners)this._listeners.push(Z);else this._listeners=[Z]}unsubscribe(Z){if(!this._listeners)return;let J=this._listeners.indexOf(Z);if(J!==-1)this._listeners.splice(J,1)}toAbortSignal(){let Z=new AbortController,J=(Y)=>{Z.abort(Y)};return this.subscribe(J),Z.signal.unsubscribe=()=>this.unsubscribe(J),Z.signal}static source(){let Z;return{token:new A9(function(Q){Z=Q}),cancel:Z}}}var hL=A9;function bL(Z){return function(Y){return Z.apply(null,Y)}}function gL(Z){return O.isObject(Z)&&Z.isAxiosError===!0}var $9={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($9).forEach(([Z,J])=>{$9[J]=Z});var yL=$9;function jQ(Z){let J=new Y6(Z),Y=BQ(Y6.prototype.request,J);return O.extend(Y,Y6.prototype,J,{allOwnKeys:!0}),O.extend(Y,J,null,{allOwnKeys:!0}),Y.create=function(X){return jQ(Q0(Z,X))},Y}var b=jQ(D9);b.Axios=Y6;b.CanceledError=r0;b.CancelToken=hL;b.isCancel=PQ;b.VERSION=fQ;b.toFormData=H6;b.AxiosError=x;b.Cancel=b.CanceledError;b.all=function(J){return Promise.all(J)};b.spread=bL;b.isAxiosError=gL;b.mergeConfig=Q0;b.AxiosHeaders=L1;b.formToJSON=(Z)=>RQ(O.isHTMLForm(Z)?new FormData(Z):Z);b.getAdapter=CQ.getAdapter;b.HttpStatusCode=yL;b.default=b;_Q.exports=b});var P9=A((hQ)=>{Object.defineProperty(hQ,"__esModule",{value:!0});hQ.addAxiosDateTransformer=hQ.createAxiosDateTransformer=void 0;var mL=(nY(),CX(iY)),uL=mL.__importDefault(vQ()),dL=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d*)?(?:[-+]\d{2}:?\d{2}|Z)?)?$/,cL=(Z)=>{return dL.test(Z)},pL=(Z,J)=>{return!J||J.length===0||J.includes(Z)},lL=(Z,J,Y)=>{return typeof J==="string"&&cL(J)&&pL(Z,Y)},kQ=(Z,J)=>{if(typeof Z==="object"){for(let Y in Z)if(lL(Y,Z[Y],J))Z[Y]=new Date(Z[Y]);else if(typeof Z[Y]==="object")Z[Y]=kQ(Z[Y],J)}return Z},iL=(Z,J)=>{if(Z.data)Z.data=kQ(Z.data,J);return Z},nL=(Z={})=>{return hQ.addAxiosDateTransformer(uL.default.create(Z),Z)};hQ.createAxiosDateTransformer=nL;var oL=(Z,J)=>{let Y=J===null||J===void 0?void 0:J.allowlist;return Z.interceptors.response.use((Q)=>iL(Q,Y)),Z};hQ.addAxiosDateTransformer=oL});var x9=A((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.Doctype=lQ.CDATA=lQ.Tag=lQ.Style=lQ.Script=lQ.Comment=lQ.Directive=lQ.Text=lQ.Root=lQ.isTag=lQ.ElementType=void 0;var Q1;(function(Z){Z.Root="root",Z.Text="text",Z.Directive="directive",Z.Comment="comment",Z.Script="script",Z.Style="style",Z.Tag="tag",Z.CDATA="cdata",Z.Doctype="doctype"})(Q1=lQ.ElementType||(lQ.ElementType={}));function YM(Z){return Z.type===Q1.Tag||Z.type===Q1.Script||Z.type===Q1.Style}lQ.isTag=YM;lQ.Root=Q1.Root;lQ.Text=Q1.Text;lQ.Directive=Q1.Directive;lQ.Comment=Q1.Comment;lQ.Script=Q1.Script;lQ.Style=Q1.Style;lQ.Tag=Q1.Tag;lQ.CDATA=Q1.CDATA;lQ.Doctype=Q1.Doctype});var _9=A((w)=>{var p1=w&&w.__extends||function(){var Z=function(J,Y){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,X){Q.__proto__=X}||function(Q,X){for(var G in X)if(Object.prototype.hasOwnProperty.call(X,G))Q[G]=X[G]},Z(J,Y)};return function(J,Y){if(typeof Y!=="function"&&Y!==null)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");Z(J,Y);function Q(){this.constructor=J}J.prototype=Y===null?Object.create(Y):(Q.prototype=Y.prototype,new Q)}}(),t0=w&&w.__assign||function(){return t0=Object.assign||function(Z){for(var J,Y=1,Q=arguments.length;Y<Q;Y++){J=arguments[Y];for(var X in J)if(Object.prototype.hasOwnProperty.call(J,X))Z[X]=J[X]}return Z},t0.apply(this,arguments)};Object.defineProperty(w,"__esModule",{value:!0});w.cloneNode=w.hasChildren=w.isDocument=w.isDirective=w.isComment=w.isText=w.isCDATA=w.isTag=w.Element=w.Document=w.CDATA=w.NodeWithChildren=w.ProcessingInstruction=w.Comment=w.Text=w.DataNode=w.Node=void 0;var e=x9(),f9=function(){function Z(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Z.prototype,"parentNode",{get:function(){return this.parent},set:function(J){this.parent=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"previousSibling",{get:function(){return this.prev},set:function(J){this.prev=J},enumerable:!1,configurable:!0}),Object.defineProperty(Z.prototype,"nextSibling",{get:function(){return this.next},set:function(J){this.next=J},enumerable:!1,configurable:!0}),Z.prototype.cloneNode=function(J){if(J===void 0)J=!1;return j9(this,J)},Z}();w.Node=f9;var K6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.data=Y,Q}return Object.defineProperty(J.prototype,"nodeValue",{get:function(){return this.data},set:function(Y){this.data=Y},enumerable:!1,configurable:!0}),J}(f9);w.DataNode=K6;var nQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Text,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),J}(K6);w.Text=nQ;var oQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Comment,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),J}(K6);w.Comment=oQ;var aQ=function(Z){p1(J,Z);function J(Y,Q){var X=Z.call(this,Q)||this;return X.name=Y,X.type=e.ElementType.Directive,X}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),J}(K6);w.ProcessingInstruction=aQ;var L6=function(Z){p1(J,Z);function J(Y){var Q=Z.call(this)||this;return Q.children=Y,Q}return Object.defineProperty(J.prototype,"firstChild",{get:function(){var Y;return(Y=this.children[0])!==null&&Y!==void 0?Y:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"childNodes",{get:function(){return this.children},set:function(Y){this.children=Y},enumerable:!1,configurable:!0}),J}(f9);w.NodeWithChildren=L6;var sQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.CDATA,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),J}(L6);w.CDATA=sQ;var rQ=function(Z){p1(J,Z);function J(){var Y=Z!==null&&Z.apply(this,arguments)||this;return Y.type=e.ElementType.Root,Y}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),J}(L6);w.Document=rQ;var tQ=function(Z){p1(J,Z);function J(Y,Q,X,G){if(X===void 0)X=[];if(G===void 0)G=Y==="script"?e.ElementType.Script:Y==="style"?e.ElementType.Style:e.ElementType.Tag;var W=Z.call(this,X)||this;return W.name=Y,W.attribs=Q,W.type=G,W}return Object.defineProperty(J.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"tagName",{get:function(){return this.name},set:function(Y){this.name=Y},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"attributes",{get:function(){var Y=this;return Object.keys(this.attribs).map(function(Q){var X,G;return{name:Q,value:Y.attribs[Q],namespace:(X=Y["x-attribsNamespace"])===null||X===void 0?void 0:X[Q],prefix:(G=Y["x-attribsPrefix"])===null||G===void 0?void 0:G[Q]}})},enumerable:!1,configurable:!0}),J}(L6);w.Element=tQ;function eQ(Z){return(0,e.isTag)(Z)}w.isTag=eQ;function Z3(Z){return Z.type===e.ElementType.CDATA}w.isCDATA=Z3;function J3(Z){return Z.type===e.ElementType.Text}w.isText=J3;function Y3(Z){return Z.type===e.ElementType.Comment}w.isComment=Y3;function Q3(Z){return Z.type===e.ElementType.Directive}w.isDirective=Q3;function X3(Z){return Z.type===e.ElementType.Root}w.isDocument=X3;function LM(Z){return Object.prototype.hasOwnProperty.call(Z,"children")}w.hasChildren=LM;function j9(Z,J){if(J===void 0)J=!1;var Y;if(J3(Z))Y=new nQ(Z.data);else if(Y3(Z))Y=new oQ(Z.data);else if(eQ(Z)){var Q=J?C9(Z.children):[],X=new tQ(Z.name,t0({},Z.attribs),Q);if(Q.forEach(function(z){return z.parent=X}),Z.namespace!=null)X.namespace=Z.namespace;if(Z["x-attribsNamespace"])X["x-attribsNamespace"]=t0({},Z["x-attribsNamespace"]);if(Z["x-attribsPrefix"])X["x-attribsPrefix"]=t0({},Z["x-attribsPrefix"]);Y=X}else if(Z3(Z)){var Q=J?C9(Z.children):[],G=new sQ(Q);Q.forEach(function(U){return U.parent=G}),Y=G}else if(X3(Z)){var Q=J?C9(Z.children):[],W=new rQ(Q);if(Q.forEach(function(U){return U.parent=W}),Z["x-mode"])W["x-mode"]=Z["x-mode"];Y=W}else if(Q3(Z)){var H=new aQ(Z.name,Z.data);if(Z["x-name"]!=null)H["x-name"]=Z["x-name"],H["x-publicId"]=Z["x-publicId"],H["x-systemId"]=Z["x-systemId"];Y=H}else throw Error("Not implemented yet: ".concat(Z.type));if(Y.startIndex=Z.startIndex,Y.endIndex=Z.endIndex,Z.sourceCodeLocation!=null)Y.sourceCodeLocation=Z.sourceCodeLocation;return Y}w.cloneNode=j9;function C9(Z){var J=Z.map(function(Q){return j9(Q,!0)});for(var Y=1;Y<J.length;Y++)J[Y].prev=J[Y-1],J[Y-1].next=J[Y];return J}});var k9=A((N1)=>{var MM=N1&&N1.__createBinding||(Object.create?function(Z,J,Y,Q){if(Q===void 0)Q=Y;var X=Object.getOwnPropertyDescriptor(J,Y);if(!X||("get"in X?!J.__esModule:X.writable||X.configurable))X={enumerable:!0,get:function(){return J[Y]}};Object.defineProperty(Z,Q,X)}:function(Z,J,Y,Q){if(Q===void 0)Q=Y;Z[Q]=J[Y]}),FM=N1&&N1.__exportStar||function(Z,J){for(var Y in Z)if(Y!=="default"&&!Object.prototype.hasOwnProperty.call(J,Y))MM(J,Z,Y)};Object.defineProperty(N1,"__esModule",{value:!0});N1.DomHandler=void 0;var v9=x9(),l1=_9();FM(_9(),N1);var G3={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},W3=function(){function Z(J,Y,Q){if(this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof Y==="function")Q=Y,Y=G3;if(typeof J==="object")Y=J,J=void 0;this.callback=J!==null&&J!==void 0?J:null,this.options=Y!==null&&Y!==void 0?Y:G3,this.elementCB=Q!==null&&Q!==void 0?Q:null}return Z.prototype.onparserinit=function(J){this.parser=J},Z.prototype.onreset=function(){this.dom=[],this.root=new l1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},Z.prototype.onend=function(){if(this.done)return;this.done=!0,this.parser=null,this.handleCallback(null)},Z.prototype.onerror=function(J){this.handleCallback(J)},Z.prototype.onclosetag=function(){this.lastNode=null;var J=this.tagStack.pop();if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(this.elementCB)this.elementCB(J)},Z.prototype.onopentag=function(J,Y){var Q=this.options.xmlMode?v9.ElementType.Tag:void 0,X=new l1.Element(J,Y,void 0,Q);this.addNode(X),this.tagStack.push(X)},Z.prototype.ontext=function(J){var Y=this.lastNode;if(Y&&Y.type===v9.ElementType.Text){if(Y.data+=J,this.options.withEndIndices)Y.endIndex=this.parser.endIndex}else{var Q=new l1.Text(J);this.addNode(Q),this.lastNode=Q}},Z.prototype.oncomment=function(J){if(this.lastNode&&this.lastNode.type===v9.ElementType.Comment){this.lastNode.data+=J;return}var Y=new l1.Comment(J);this.addNode(Y),this.lastNode=Y},Z.prototype.oncommentend=function(){this.lastNode=null},Z.prototype.oncdatastart=function(){var J=new l1.Text(""),Y=new l1.CDATA([J]);this.addNode(Y),J.parent=Y,this.lastNode=J},Z.prototype.oncdataend=function(){this.lastNode=null},Z.prototype.onprocessinginstruction=function(J,Y){var Q=new l1.ProcessingInstruction(J,Y);this.addNode(Q)},Z.prototype.handleCallback=function(J){if(typeof this.callback==="function")this.callback(J,this.dom);else if(J)throw J},Z.prototype.addNode=function(J){var Y=this.tagStack[this.tagStack.length-1],Q=Y.children[Y.children.length-1];if(this.options.withStartIndices)J.startIndex=this.parser.startIndex;if(this.options.withEndIndices)J.endIndex=this.parser.endIndex;if(Y.children.push(J),Q)J.prev=Q,Q.next=J;J.parent=Y,this.lastNode=null},Z}();N1.DomHandler=W3;N1.default=W3});var L3=A((H3)=>{Object.defineProperty(H3,"__esModule",{value:!0});H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=H3.CARRIAGE_RETURN_PLACEHOLDER=H3.CARRIAGE_RETURN_REGEX=H3.CARRIAGE_RETURN=H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES=void 0;H3.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];H3.CASE_SENSITIVE_TAG_NAMES_MAP=H3.CASE_SENSITIVE_TAG_NAMES.reduce(function(Z,J){return Z[J.toLowerCase()]=J,Z},{});H3.CARRIAGE_RETURN="\r";H3.CARRIAGE_RETURN_REGEX=new RegExp(H3.CARRIAGE_RETURN,"g");H3.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__");H3.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(H3.CARRIAGE_RETURN_PLACEHOLDER,"g")});var h9=A((O3)=>{Object.defineProperty(O3,"__esModule",{value:!0});O3.formatAttributes=M3;O3.escapeSpecialCharacters=qM;O3.revertEscapedCharacters=F3;O3.formatDOM=$3;var M6=k9(),e0=L3();function VM(Z){return e0.CASE_SENSITIVE_TAG_NAMES_MAP[Z]}function M3(Z){var J={},Y=0,Q=Z.length;for(;Y<Q;Y++){var X=Z[Y];J[X.name]=X.value}return J}function IM(Z){Z=Z.toLowerCase();var J=VM(Z);if(J)return J;return Z}function qM(Z){return Z.replace(e0.CARRIAGE_RETURN_REGEX,e0.CARRIAGE_RETURN_PLACEHOLDER)}function F3(Z){return Z.replace(e0.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e0.CARRIAGE_RETURN)}function $3(Z,J,Y){var Q,X,G,W;if(J===void 0)J=null;var H=[],z,U=0,B=Z.length;for(;U<B;U++){var L=Z[U];switch(L.nodeType){case 1:{var V=IM(L.nodeName);z=new M6.Element(V,M3(L.attributes)),z.children=$3(V==="template"?L.content.childNodes:L.childNodes,z);break}case 3:z=new M6.Text(F3((Q=L.nodeValue)!==null&&Q!==void 0?Q:""));break;case 8:z=new M6.Comment((X=L.nodeValue)!==null&&X!==void 0?X:"");break;default:continue}var F=(G=H[U-1])!==null&&G!==void 0?G:null;if(F)F.next=z;z.parent=J,z.prev=F,z.next=null,H.push(z)}if(Y){if(z=new M6.ProcessingInstruction(Y.substring(0,Y.indexOf(" ")).toLowerCase(),Y),z.next=(W=H[0])!==null&&W!==void 0?W:null,z.parent=J,H.unshift(z),H[1])H[1].prev=H[0]}return H}});var P3=A((R3)=>{Object.defineProperty(R3,"__esModule",{value:!0});R3.default=wM;var PM=h9(),V3="html",I3="head",F6="body",TM=/<([a-zA-Z]+[0-9]?)/,q3=/<head[^]*>/i,D3=/<body[^]*>/i,O6=function(Z,J){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},b9=function(Z,J){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},N3=typeof window==="object"&&window.DOMParser;if(typeof N3==="function")g9=new N3,y9="text/html",b9=function(Z,J){if(J)Z="<".concat(J,">").concat(Z,"</").concat(J,">");return g9.parseFromString(Z,y9)},O6=b9;var g9,y9;if(typeof document==="object"&&document.implementation)D0=document.implementation.createHTMLDocument(),O6=function(Z,J){if(J){var Y=D0.documentElement.querySelector(J);if(Y)Y.innerHTML=Z;return D0}return D0.documentElement.innerHTML=Z,D0};var D0,$6=typeof document==="object"&&document.createElement("template"),m9;if($6&&$6.content)m9=function(Z){return $6.innerHTML=Z,$6.content.childNodes};var A3=function(){return document.createDocumentFragment().childNodes};function wM(Z){var J,Y,Q,X,G,W;Z=(0,PM.escapeSpecialCharacters)(Z);var H=TM.exec(Z),z=(J=H===null||H===void 0?void 0:H[1])===null||J===void 0?void 0:J.toLowerCase();switch(z){case V3:{var U=b9(Z);if(!q3.test(Z)){var B=U.querySelector(I3);(Y=B===null||B===void 0?void 0:B.parentNode)===null||Y===void 0||Y.removeChild(B)}if(!D3.test(Z)){var B=U.querySelector(F6);(Q=B===null||B===void 0?void 0:B.parentNode)===null||Q===void 0||Q.removeChild(B)}return U.querySelectorAll(V3)}case I3:case F6:{var L=O6(Z).querySelectorAll(z);if(D3.test(Z)&&q3.test(Z))return(G=(X=L[0].parentNode)===null||X===void 0?void 0:X.childNodes)!==null&&G!==void 0?G:A3();return L}default:{if(m9)return m9(Z);var B=O6(Z,F6).querySelector(F6);return(W=B===null||B===void 0?void 0:B.childNodes)!==null&&W!==void 0?W:A3()}}}});var T3=A((Z5)=>{var SM=Z5&&Z5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Z5,"__esModule",{value:!0});Z5.default=jM;var xM=SM(P3()),CM=h9(),fM=/<(![a-zA-Z\s]+)>/;function jM(Z){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];var J=fM.exec(Z),Y=J?J[1]:void 0;return(0,CM.formatDOM)((0,xM.default)(Z),null,Y)}});var w3=A((kM)=>{var _M=0;kM.SAME=_M;var vM=1;kM.CAMELCASE=vM;kM.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}});var S3=A((oM)=>{function yM(Z){return d.hasOwnProperty(Z)?d[Z]:null}function s(Z,J,Y,Q,X,G,W){this.acceptsBooleans=J===2||J===3||J===4,this.attributeName=Q,this.attributeNamespace=X,this.mustUseProperty=Y,this.propertyName=Z,this.type=J,this.sanitizeURL=G,this.removeEmptyString=W}var d={},mM=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];mM.forEach((Z)=>{d[Z]=new s(Z,0,!1,Z,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([Z,J])=>{d[Z]=new s(Z,1,!1,J,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((Z)=>{d[Z]=new s(Z,2,!1,Z,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((Z)=>{d[Z]=new s(Z,3,!1,Z.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach((Z)=>{d[Z]=new s(Z,3,!0,Z,null,!1,!1)});["capture","download"].forEach((Z)=>{d[Z]=new s(Z,4,!1,Z,null,!1,!1)});["cols","rows","size","span"].forEach((Z)=>{d[Z]=new s(Z,6,!1,Z,null,!1,!1)});["rowSpan","start"].forEach((Z)=>{d[Z]=new s(Z,5,!1,Z.toLowerCase(),null,!1,!1)});var u9=/[\-\:]([a-z])/g,d9=(Z)=>Z[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach((Z)=>{let J=Z.replace(u9,d9);d[J]=new s(J,1,!1,Z,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!1,!1)});var uM="xlinkHref";d[uM]=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((Z)=>{d[Z]=new s(Z,1,!1,Z.toLowerCase(),null,!0,!0)});var{CAMELCASE:dM,SAME:cM,possibleStandardNames:E3}=w3(),pM=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",lM=pM+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",iM=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+lM+"]*$")),nM=Object.keys(E3).reduce((Z,J)=>{let Y=E3[J];if(Y===cM)Z[J]=J;else if(Y===dM)Z[J.toLowerCase()]=J;else Z[J]=Y;return Z},{});oM.BOOLEAN=3;oM.BOOLEANISH_STRING=2;oM.NUMERIC=5;oM.OVERLOADED_BOOLEAN=4;oM.POSITIVE_NUMERIC=6;oM.RESERVED=0;oM.STRING=1;oM.getPropertyInfo=yM;oM.isCustomAttribute=iM;oM.possibleStandardNames=nM});var v3=A((qD,_3)=>{var x3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G2=/\n/g,W2=/^\s*/,H2=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,z2=/^:\s*/,U2=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,B2=/^[;\s]*/,K2=/^\s+|\s+$/g,L2=`
15
+ `,C3="/",f3="*",X0="",M2="comment",F2="declaration";function $2(Z,J){if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];J=J||{};var Y=1,Q=1;function X(K){var M=K.match(G2);if(M)Y+=M.length;var I=K.lastIndexOf(L2);Q=~I?K.length-I:Q+K.length}function G(){var K={line:Y,column:Q};return function(M){return M.position=new W(K),U(),M}}function W(K){this.start=K,this.end={line:Y,column:Q},this.source=J.source}W.prototype.content=Z;function H(K){var M=Error(J.source+":"+Y+":"+Q+": "+K);if(M.reason=K,M.filename=J.source,M.line=Y,M.column=Q,M.source=Z,J.silent);else throw M}function z(K){var M=K.exec(Z);if(!M)return;var I=M[0];return X(I),Z=Z.slice(I.length),M}function U(){z(W2)}function B(K){var M;K=K||[];while(M=L())if(M!==!1)K.push(M);return K}function L(){var K=G();if(C3!=Z.charAt(0)||f3!=Z.charAt(1))return;var M=2;while(X0!=Z.charAt(M)&&(f3!=Z.charAt(M)||C3!=Z.charAt(M+1)))++M;if(M+=2,X0===Z.charAt(M-1))return H("End of comment missing");var I=Z.slice(2,M-2);return Q+=2,X(I),Z=Z.slice(M),Q+=2,K({type:M2,comment:I})}function V(){var K=G(),M=z(H2);if(!M)return;if(L(),!z(z2))return H("property missing ':'");var I=z(U2),N=K({type:F2,property:j3(M[0].replace(x3,X0)),value:I?j3(I[0].replace(x3,X0)):X0});return z(B2),N}function F(){var K=[];B(K);var M;while(M=V())if(M!==!1)K.push(M),B(K);return K}return U(),F()}function j3(Z){return Z?Z.replace(K2,X0):X0}_3.exports=$2});var k3=A((J5)=>{var O2=J5&&J5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(J5,"__esModule",{value:!0});J5.default=I2;var V2=O2(v3());function I2(Z,J){let Y=null;if(!Z||typeof Z!=="string")return Y;let Q=(0,V2.default)(Z),X=typeof J==="function";return Q.forEach((G)=>{if(G.type!=="declaration")return;let{property:W,value:H}=G;if(X)J(W,H,G);else if(H)Y=Y||{},Y[W]=H}),Y}});var y3=A((b3)=>{Object.defineProperty(b3,"__esModule",{value:!0});b3.camelCase=void 0;var q2=/^--[a-zA-Z0-9_-]+$/,D2=/-([a-z])/g,N2=/^[^-]+$/,A2=/^-(webkit|moz|ms|o|khtml)-/,R2=/^-(ms)-/,P2=function(Z){return!Z||N2.test(Z)||q2.test(Z)},T2=function(Z,J){return J.toUpperCase()},h3=function(Z,J){return"".concat(J,"-")},w2=function(Z,J){if(J===void 0)J={};if(P2(Z))return Z;if(Z=Z.toLowerCase(),J.reactCompat)Z=Z.replace(R2,h3);else Z=Z.replace(A2,h3);return Z.replace(D2,T2)};b3.camelCase=w2});var u3=A((p9,m3)=>{var E2=p9&&p9.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}},S2=E2(k3()),x2=y3();function c9(Z,J){var Y={};if(!Z||typeof Z!=="string")return Y;return(0,S2.default)(Z,function(Q,X){if(Q&&X)Y[(0,x2.camelCase)(Q,J)]=X}),Y}c9.default=c9;m3.exports=c9});import*as d3 from"react";var l9=A((r)=>{var C2=r&&r.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(r,"__esModule",{value:!0});r.returnFirstArg=r.canTextBeChildOfNode=r.ELEMENTS_WITH_NO_TEXT_CHILDREN=r.PRESERVE_CUSTOM_ATTRIBUTES=void 0;r.isCustomComponent=_2;r.setStyleProp=k2;var f2=C2(u3()),j2=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function _2(Z,J){if(!Z.includes("-"))return Boolean(J&&typeof J.is==="string");if(j2.has(Z))return!1;return!0}var v2={reactCompat:!0};function k2(Z,J){if(typeof Z!=="string")return;if(!Z.trim()){J.style={};return}try{J.style=(0,f2.default)(Z,v2)}catch(Y){J.style={}}}r.PRESERVE_CUSTOM_ATTRIBUTES=Number(d3.version.split(".")[0])>=16;r.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var h2=function(Z){return!r.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(Z.name)};r.canTextBeChildOfNode=h2;var b2=function(Z){return Z};r.returnFirstArg=b2});var i9=A((l3)=>{Object.defineProperty(l3,"__esModule",{value:!0});l3.default=u2;var Y5=S3(),c3=l9(),g2=["checked","value"],y2=["input","select","textarea"],m2={reset:!0,submit:!0};function u2(Z,J){if(Z===void 0)Z={};var Y={},Q=Boolean(Z.type&&m2[Z.type]);for(var X in Z){var G=Z[X];if((0,Y5.isCustomAttribute)(X)){Y[X]=G;continue}var W=X.toLowerCase(),H=p3(W);if(H){var z=(0,Y5.getPropertyInfo)(H);if(g2.includes(H)&&y2.includes(J)&&!Q)H=p3("default"+W);switch(Y[H]=G,z===null||z===void 0?void 0:z.type){case Y5.BOOLEAN:Y[H]=!0;break;case Y5.OVERLOADED_BOOLEAN:if(G==="")Y[H]=!0;break}continue}if(c3.PRESERVE_CUSTOM_ATTRIBUTES)Y[X]=G}return(0,c3.setStyleProp)(Z.style,Y),Y}function p3(Z){return Y5.possibleStandardNames[Z]}});import*as N0 from"react";var n3=A((X5)=>{var c2=X5&&X5.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(X5,"__esModule",{value:!0});X5.default=i3;var p2=c2(i9()),Q5=l9(),l2={cloneElement:N0.cloneElement,createElement:N0.createElement,isValidElement:N0.isValidElement};function i3(Z,J){var Y,Q,X,G,W;if(J===void 0)J={};var H=[],z=typeof J.replace==="function",U=(Y=J.transform)!==null&&Y!==void 0?Y:Q5.returnFirstArg,B=(Q=J.library)!==null&&Q!==void 0?Q:l2,L=B.cloneElement,V=B.createElement,F=B.isValidElement,K=Z.length;for(var M=0;M<K;M++){var I=Z[M];if(z){var N=(X=J.replace)===null||X===void 0?void 0:X.call(J,I,M);if(F(N)){if(K>1)N=L(N,{key:(G=N.key)!==null&&G!==void 0?G:M});H.push(U(N,I,M));continue}}if(I.type==="text"){var P=!I.data.trim().length;if(P&&I.parent&&!(0,Q5.canTextBeChildOfNode)(I.parent))continue;if(J.trim&&P)continue;H.push(U(I.data,I,M));continue}var D=I,q={};if(i2(D))(0,Q5.setStyleProp)(D.attribs.style,D.attribs),q=D.attribs;else if(D.attribs)q=(0,p2.default)(D.attribs,D.name);var E=void 0;switch(I.type){case"script":case"style":if(I.children[0])q.dangerouslySetInnerHTML={__html:I.children[0].data};break;case"tag":if(I.name==="textarea"&&I.children[0])q.defaultValue=I.children[0].data;else if((W=I.children)===null||W===void 0?void 0:W.length)E=i3(I.children,J);break;default:continue}if(K>1)q.key=M;H.push(U(V(I.name,q,E),I,M))}return H.length===1?H[0]:H}function i2(Z){return Q5.PRESERVE_CUSTOM_ATTRIBUTES&&Z.type==="tag"&&(0,Q5.isCustomComponent)(Z.name,Z.attribs)}});var o9=A((y)=>{var n9=y&&y.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(y,"__esModule",{value:!0});y.htmlToDOM=y.domToReact=y.attributesToProps=y.Text=y.ProcessingInstruction=y.Element=y.Comment=void 0;y.default=a2;var o3=n9(T3());y.htmlToDOM=o3.default;var n2=n9(i9());y.attributesToProps=n2.default;var a3=n9(n3());y.domToReact=a3.default;var V6=k9();Object.defineProperty(y,"Comment",{enumerable:!0,get:function(){return V6.Comment}});Object.defineProperty(y,"Element",{enumerable:!0,get:function(){return V6.Element}});Object.defineProperty(y,"ProcessingInstruction",{enumerable:!0,get:function(){return V6.ProcessingInstruction}});Object.defineProperty(y,"Text",{enumerable:!0,get:function(){return V6.Text}});var o2={lowerCaseAttributeNames:!1};function a2(Z,J){var Y;if(typeof Z!=="string")throw TypeError("First argument must be a string");if(!Z)return[];return(0,a3.default)((0,o3.default)(Z,(Y=J===null||J===void 0?void 0:J.htmlparser2)!==null&&Y!==void 0?Y:o2),J)}});import{lazy as fX}from"react";var T6=new Map;function U7(Z,J){return fX(()=>{if(T6.has(J))return T6.get(J);let Y=Z().then((Q)=>Q);return T6.set(J,Y),Y})}var B7=new Map,jX=(Z)=>{if(!Z.name)throw Error("Component registration requires a name");if(!Z.component&&!Z.loader)throw Error(`Component "${Z.name}" requires component or loader`);let J={name:Z.name,component:Z.component,loader:Z.loader,metadata:Z.metadata,fallback:Z.fallback,isLazy:!1};if(!J.component&&J.loader)J.component=U7(J.loader,Z.name),J.loader=void 0,J.isLazy=!0;return J};function n1(Z){let J=jX(Z);return B7.set(J.name,J),J.component}var K7=(Z)=>{return B7.get(Z)};import{Suspense as cX,useContext as pX}from"react";import{createContext as _X}from"react";import{jsx as hX,Fragment as kX}from"react/jsx-runtime";var vX=_X(hX(kX,{})),k1=vX;import{createContext as bX,useContext as gX}from"react";var R0=bX(null),U5=()=>{let Z=gX(R0);if(!Z)throw Error("usePieConfig must be used within PieConfigProvider");return Z},yX=()=>{let{apiServer:Z}=U5();return Z},$1=yX,mX=()=>{let{centrifugeServer:Z}=U5();return Z},B5=mX,uX=()=>{let{enableRenderingLog:Z}=U5();return Z},O1=uX,dX=()=>{let{pageProcessor:Z}=U5();return Z},L7=dX;import{jsx as M7}from"react/jsx-runtime";function lX({uiConfig:Z,setUiAjaxConfiguration:J}){let Y=pX(k1),Q=O1();if(Q)console.log("[UI] Rendering component:",Z.card),console.log("[UI] Component data:",Z.data),console.log("[UI] Component content:",Z.content),console.log("[UI] Has setUiAjaxConfiguration:",!!J);let X=K7(Z.card);if(!X?.component){if(Q)console.warn(`[UI] Component not found in registry: ${Z.card}`),console.log("[UI] Returning fallback component");return Y}if(Q)console.log("[UI] Found component in registry:",{name:X.name,isLazy:X.isLazy,hasMetadata:!!X.metadata});let G=X.component,W=M7(G,{data:Z.data,content:Z.content,setUiAjaxConfiguration:J});if(X.isLazy){if(Q)console.log("[UI] Rendering lazy component with Suspense:",X.name);return M7(cX,{fallback:X.fallback??Y,children:W},`${X.name}`)}if(Q)console.log("[UI] Rendering component directly:",X.name);return W}var Z1=lX;import{useEffect as pF,useMemo as lF}from"react";import{QueryClient as iF,QueryClientProvider as nF,useQuery as oF}from"@tanstack/react-query";var w5=S(w6(),1),UJ=S(x6(),1);import zJ,{useState as SU,useContext as eZ,useRef as xU,useEffect as ZJ,forwardRef as CU}from"react";var VG={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function P0(Z,J){var Y=!VG[Z]&&typeof J==="number"&&J!==0;return Y?J+"px":J}function T0(Z,J){return Object.keys(Z).reduce(function(Y,Q){return Y[Q]=J(Z[Q],Q),Y},{})}function C6(Z){return T0(Z,function(J,Y){return P0(Y,Z[Y])+" !important"})}var IG=/([a-z])?([A-Z])/g,qG=function(J,Y,Q){return(Y||"")+"-"+Q.toLowerCase()},f6=function(J){return J.replace(IG,qG)},DG=function(J){return Object.keys(J).reduce(function(Y,Q){var X=f6(Q);if(/^ms-/.test(X))X="-".concat(X);return Y[X]=J[Q],Y},{})},C7=DG;var jZ=S(m7(),1),_Z=S(t7(),1),vZ=S(p6(),1);var j4=S(J4(),1),_4=S(Q4(),1),v4=S(G4(),1),k4=S(H4(),1),h4=S(B4(),1),b4=S(M4(),1),g4=S(O4(),1),y4=S(q4(),1),m4=S(N4(),1),u4=S(R4(),1),d4=S(T4(),1),c4=S(f4(),1),R=["Webkit"],z8=["Moz"],k=["ms"],p=["Webkit","Moz"],u=["Webkit","ms"],w0=["Webkit","Moz","ms"],p4={plugins:[j4.default,_4.default,v4.default,k4.default,h4.default,b4.default,g4.default,y4.default,m4.default,u4.default,d4.default,c4.default],prefixMap:{transform:u,transformOrigin:u,transformOriginX:u,transformOriginY:u,backfaceVisibility:R,perspective:R,perspectiveOrigin:R,transformStyle:R,transformOriginZ:R,animation:R,animationDelay:R,animationDirection:R,animationFillMode:R,animationDuration:R,animationIterationCount:R,animationName:R,animationPlayState:R,animationTimingFunction:R,appearance:p,userSelect:w0,fontKerning:R,textEmphasisPosition:R,textEmphasis:R,textEmphasisStyle:R,textEmphasisColor:R,boxDecorationBreak:R,clipPath:R,maskImage:R,maskMode:R,maskRepeat:R,maskPosition:R,maskClip:R,maskOrigin:R,maskSize:R,maskComposite:R,mask:R,maskBorderSource:R,maskBorderMode:R,maskBorderSlice:R,maskBorderWidth:R,maskBorderOutset:R,maskBorderRepeat:R,maskBorder:R,maskType:R,textDecorationStyle:p,textDecorationSkip:p,textDecorationLine:p,textDecorationColor:p,filter:R,fontFeatureSettings:p,breakAfter:w0,breakBefore:w0,breakInside:w0,columnCount:p,columnFill:p,columnGap:p,columnRule:p,columnRuleColor:p,columnRuleStyle:p,columnRuleWidth:p,columns:p,columnSpan:p,columnWidth:p,writingMode:u,flex:u,flexBasis:R,flexDirection:u,flexGrow:R,flexFlow:u,flexShrink:R,flexWrap:u,alignContent:R,alignItems:R,alignSelf:R,justifyContent:R,order:R,transitionDelay:R,transitionDuration:R,transitionProperty:R,transitionTimingFunction:R,backdropFilter:R,scrollSnapType:u,scrollSnapPointsX:u,scrollSnapPointsY:u,scrollSnapDestination:u,scrollSnapCoordinate:u,shapeImageThreshold:R,shapeImageMargin:R,shapeImageOutside:R,hyphens:w0,flowInto:u,flowFrom:u,regionFragment:u,boxSizing:z8,textAlignLast:z8,tabSize:z8,wrapFlow:k,wrapThrough:k,wrapMargin:k,touchAction:k,gridTemplateColumns:k,gridTemplateRows:k,gridTemplateAreas:k,gridTemplate:k,gridAutoColumns:k,gridAutoRows:k,gridAutoFlow:k,grid:k,gridRowStart:k,gridColumnStart:k,gridRowEnd:k,gridRow:k,gridColumn:k,gridColumnEnd:k,gridColumnGap:k,gridRowGap:k,gridArea:k,gridGap:k,textSizeAdjust:u,borderImage:R,borderImageOutset:R,borderImageRepeat:R,borderImageSlice:R,borderImageSource:R,borderImageWidth:R}};var IZ=S(n4(),1),qZ=S(a4(),1),DZ=S(t4(),1),NZ=S(ZZ(),1),AZ=S(YZ(),1),RZ=S(XZ(),1),PZ=S(WZ(),1),TZ=S(UZ(),1),wZ=S(KZ(),1),EZ=S(MZ(),1),SZ=S($Z(),1),xZ=S(VZ(),1),CZ={plugins:[IZ.default,qZ.default,DZ.default,NZ.default,AZ.default,RZ.default,PZ.default,TZ.default,wZ.default,EZ.default,SZ.default,xZ.default],prefixMap:{chrome:{transform:35,transformOrigin:35,transformOriginX:35,transformOriginY:35,backfaceVisibility:35,perspective:35,perspectiveOrigin:35,transformStyle:35,transformOriginZ:35,animation:42,animationDelay:42,animationDirection:42,animationFillMode:42,animationDuration:42,animationIterationCount:42,animationName:42,animationPlayState:42,animationTimingFunction:42,appearance:66,userSelect:53,fontKerning:32,textEmphasisPosition:66,textEmphasis:66,textEmphasisStyle:66,textEmphasisColor:66,boxDecorationBreak:66,clipPath:54,maskImage:66,maskMode:66,maskRepeat:66,maskPosition:66,maskClip:66,maskOrigin:66,maskSize:66,maskComposite:66,mask:66,maskBorderSource:66,maskBorderMode:66,maskBorderSlice:66,maskBorderWidth:66,maskBorderOutset:66,maskBorderRepeat:66,maskBorder:66,maskType:66,textDecorationStyle:56,textDecorationSkip:56,textDecorationLine:56,textDecorationColor:56,filter:52,fontFeatureSettings:47,breakAfter:49,breakBefore:49,breakInside:49,columnCount:49,columnFill:49,columnGap:49,columnRule:49,columnRuleColor:49,columnRuleStyle:49,columnRuleWidth:49,columns:49,columnSpan:49,columnWidth:49,writingMode:47},safari:{flex:8,flexBasis:8,flexDirection:8,flexGrow:8,flexFlow:8,flexShrink:8,flexWrap:8,alignContent:8,alignItems:8,alignSelf:8,justifyContent:8,order:8,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8,transformOrigin:8,transformOriginX:8,transformOriginY:8,backfaceVisibility:8,perspective:8,perspectiveOrigin:8,transformStyle:8,transformOriginZ:8,animation:8,animationDelay:8,animationDirection:8,animationFillMode:8,animationDuration:8,animationIterationCount:8,animationName:8,animationPlayState:8,animationTimingFunction:8,appearance:11,userSelect:11,backdropFilter:11,fontKerning:9,scrollSnapType:10.1,scrollSnapPointsX:10.1,scrollSnapPointsY:10.1,scrollSnapDestination:10.1,scrollSnapCoordinate:10.1,textEmphasisPosition:7,textEmphasis:7,textEmphasisStyle:7,textEmphasisColor:7,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8,breakAfter:8,breakInside:8,regionFragment:11,columnCount:8,columnFill:8,columnGap:8,columnRule:8,columnRuleColor:8,columnRuleStyle:8,columnRuleWidth:8,columns:8,columnSpan:8,columnWidth:8,writingMode:10.1},firefox:{appearance:60,userSelect:60,boxSizing:28,textAlignLast:48,textDecorationStyle:35,textDecorationSkip:35,textDecorationLine:35,textDecorationColor:35,tabSize:60,hyphens:42,fontFeatureSettings:33,breakAfter:51,breakBefore:51,breakInside:51,columnCount:51,columnFill:51,columnGap:51,columnRule:51,columnRuleColor:51,columnRuleStyle:51,columnRuleWidth:51,columns:51,columnSpan:51,columnWidth:51},opera:{flex:16,flexBasis:16,flexDirection:16,flexGrow:16,flexFlow:16,flexShrink:16,flexWrap:16,alignContent:16,alignItems:16,alignSelf:16,justifyContent:16,order:16,transform:22,transformOrigin:22,transformOriginX:22,transformOriginY:22,backfaceVisibility:22,perspective:22,perspectiveOrigin:22,transformStyle:22,transformOriginZ:22,animation:29,animationDelay:29,animationDirection:29,animationFillMode:29,animationDuration:29,animationIterationCount:29,animationName:29,animationPlayState:29,animationTimingFunction:29,appearance:50,userSelect:40,fontKerning:19,textEmphasisPosition:50,textEmphasis:50,textEmphasisStyle:50,textEmphasisColor:50,boxDecorationBreak:50,clipPath:41,maskImage:50,maskMode:50,maskRepeat:50,maskPosition:50,maskClip:50,maskOrigin:50,maskSize:50,maskComposite:50,mask:50,maskBorderSource:50,maskBorderMode:50,maskBorderSlice:50,maskBorderWidth:50,maskBorderOutset:50,maskBorderRepeat:50,maskBorder:50,maskType:50,textDecorationStyle:43,textDecorationSkip:43,textDecorationLine:43,textDecorationColor:43,filter:39,fontFeatureSettings:34,breakAfter:36,breakBefore:36,breakInside:36,columnCount:36,columnFill:36,columnGap:36,columnRule:36,columnRuleColor:36,columnRuleStyle:36,columnRuleWidth:36,columns:36,columnSpan:36,columnWidth:36,writingMode:34},ie:{flex:10,flexDirection:10,flexFlow:10,flexWrap:10,transform:9,transformOrigin:9,transformOriginX:9,transformOriginY:9,userSelect:11,wrapFlow:11,wrapThrough:11,wrapMargin:11,scrollSnapType:11,scrollSnapPointsX:11,scrollSnapPointsY:11,scrollSnapDestination:11,scrollSnapCoordinate:11,touchAction:10,hyphens:11,flowInto:11,flowFrom:11,breakBefore:11,breakAfter:11,breakInside:11,regionFragment:11,gridTemplateColumns:11,gridTemplateRows:11,gridTemplateAreas:11,gridTemplate:11,gridAutoColumns:11,gridAutoRows:11,gridAutoFlow:11,grid:11,gridRowStart:11,gridColumnStart:11,gridRowEnd:11,gridRow:11,gridColumn:11,gridColumnEnd:11,gridColumnGap:11,gridRowGap:11,gridArea:11,gridGap:11,textSizeAdjust:11,writingMode:11},edge:{userSelect:17,wrapFlow:17,wrapThrough:17,wrapMargin:17,scrollSnapType:17,scrollSnapPointsX:17,scrollSnapPointsY:17,scrollSnapDestination:17,scrollSnapCoordinate:17,hyphens:17,flowInto:17,flowFrom:17,breakBefore:17,breakAfter:17,breakInside:17,regionFragment:17,gridTemplateColumns:15,gridTemplateRows:15,gridTemplateAreas:15,gridTemplate:15,gridAutoColumns:15,gridAutoRows:15,gridAutoFlow:15,grid:15,gridRowStart:15,gridColumnStart:15,gridRowEnd:15,gridRow:15,gridColumn:15,gridColumnEnd:15,gridColumnGap:15,gridRowGap:15,gridArea:15,gridGap:15},ios_saf:{flex:8.1,flexBasis:8.1,flexDirection:8.1,flexGrow:8.1,flexFlow:8.1,flexShrink:8.1,flexWrap:8.1,alignContent:8.1,alignItems:8.1,alignSelf:8.1,justifyContent:8.1,order:8.1,transition:6,transitionDelay:6,transitionDuration:6,transitionProperty:6,transitionTimingFunction:6,transform:8.1,transformOrigin:8.1,transformOriginX:8.1,transformOriginY:8.1,backfaceVisibility:8.1,perspective:8.1,perspectiveOrigin:8.1,transformStyle:8.1,transformOriginZ:8.1,animation:8.1,animationDelay:8.1,animationDirection:8.1,animationFillMode:8.1,animationDuration:8.1,animationIterationCount:8.1,animationName:8.1,animationPlayState:8.1,animationTimingFunction:8.1,appearance:11,userSelect:11,backdropFilter:11,fontKerning:11,scrollSnapType:10.3,scrollSnapPointsX:10.3,scrollSnapPointsY:10.3,scrollSnapDestination:10.3,scrollSnapCoordinate:10.3,boxDecorationBreak:11,clipPath:11,maskImage:11,maskMode:11,maskRepeat:11,maskPosition:11,maskClip:11,maskOrigin:11,maskSize:11,maskComposite:11,mask:11,maskBorderSource:11,maskBorderMode:11,maskBorderSlice:11,maskBorderWidth:11,maskBorderOutset:11,maskBorderRepeat:11,maskBorder:11,maskType:11,textSizeAdjust:11,textDecorationStyle:11,textDecorationSkip:11,textDecorationLine:11,textDecorationColor:11,shapeImageThreshold:10,shapeImageMargin:10,shapeImageOutside:10,filter:9,hyphens:11,flowInto:11,flowFrom:11,breakBefore:8.1,breakAfter:8.1,breakInside:8.1,regionFragment:11,columnCount:8.1,columnFill:8.1,columnGap:8.1,columnRule:8.1,columnRuleColor:8.1,columnRuleStyle:8.1,columnRuleWidth:8.1,columns:8.1,columnSpan:8.1,columnWidth:8.1,writingMode:10.3},android:{borderImage:4.2,borderImageOutset:4.2,borderImageRepeat:4.2,borderImageSlice:4.2,borderImageSource:4.2,borderImageWidth:4.2,flex:4.2,flexBasis:4.2,flexDirection:4.2,flexGrow:4.2,flexFlow:4.2,flexShrink:4.2,flexWrap:4.2,alignContent:4.2,alignItems:4.2,alignSelf:4.2,justifyContent:4.2,order:4.2,transition:4.2,transitionDelay:4.2,transitionDuration:4.2,transitionProperty:4.2,transitionTimingFunction:4.2,transform:4.4,transformOrigin:4.4,transformOriginX:4.4,transformOriginY:4.4,backfaceVisibility:4.4,perspective:4.4,perspectiveOrigin:4.4,transformStyle:4.4,transformOriginZ:4.4,animation:4.4,animationDelay:4.4,animationDirection:4.4,animationFillMode:4.4,animationDuration:4.4,animationIterationCount:4.4,animationName:4.4,animationPlayState:4.4,animationTimingFunction:4.4,appearance:62,userSelect:4.4,fontKerning:4.4,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,clipPath:4.4,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62,filter:4.4,fontFeatureSettings:4.4,breakAfter:4.4,breakBefore:4.4,breakInside:4.4,columnCount:4.4,columnFill:4.4,columnGap:4.4,columnRule:4.4,columnRuleColor:4.4,columnRuleStyle:4.4,columnRuleWidth:4.4,columns:4.4,columnSpan:4.4,columnWidth:4.4,writingMode:4.4},and_chr:{appearance:62,textEmphasisPosition:62,textEmphasis:62,textEmphasisStyle:62,textEmphasisColor:62,boxDecorationBreak:62,maskImage:62,maskMode:62,maskRepeat:62,maskPosition:62,maskClip:62,maskOrigin:62,maskSize:62,maskComposite:62,mask:62,maskBorderSource:62,maskBorderMode:62,maskBorderSlice:62,maskBorderWidth:62,maskBorderOutset:62,maskBorderRepeat:62,maskBorder:62,maskType:62},and_uc:{flex:11.4,flexBasis:11.4,flexDirection:11.4,flexGrow:11.4,flexFlow:11.4,flexShrink:11.4,flexWrap:11.4,alignContent:11.4,alignItems:11.4,alignSelf:11.4,justifyContent:11.4,order:11.4,transform:11.4,transformOrigin:11.4,transformOriginX:11.4,transformOriginY:11.4,backfaceVisibility:11.4,perspective:11.4,perspectiveOrigin:11.4,transformStyle:11.4,transformOriginZ:11.4,animation:11.4,animationDelay:11.4,animationDirection:11.4,animationFillMode:11.4,animationDuration:11.4,animationIterationCount:11.4,animationName:11.4,animationPlayState:11.4,animationTimingFunction:11.4,appearance:11.4,userSelect:11.4,textEmphasisPosition:11.4,textEmphasis:11.4,textEmphasisStyle:11.4,textEmphasisColor:11.4,clipPath:11.4,maskImage:11.4,maskMode:11.4,maskRepeat:11.4,maskPosition:11.4,maskClip:11.4,maskOrigin:11.4,maskSize:11.4,maskComposite:11.4,mask:11.4,maskBorderSource:11.4,maskBorderMode:11.4,maskBorderSlice:11.4,maskBorderWidth:11.4,maskBorderOutset:11.4,maskBorderRepeat:11.4,maskBorder:11.4,maskType:11.4,textSizeAdjust:11.4,filter:11.4,hyphens:11.4,fontFeatureSettings:11.4,breakAfter:11.4,breakBefore:11.4,breakInside:11.4,columnCount:11.4,columnFill:11.4,columnGap:11.4,columnRule:11.4,columnRuleColor:11.4,columnRuleStyle:11.4,columnRuleWidth:11.4,columns:11.4,columnSpan:11.4,columnWidth:11.4,writingMode:11.4},op_mini:{}}};function O5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")O5=function(Y){return typeof Y};else O5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return O5(Z)}var kZ=jZ.default(p4),cz=_Z.default(CZ,kZ);function pz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))Q=Q.join(";"+Y+":");else if(Q&&O5(Q)==="object"&&typeof Q.toString==="function")Q=Q.toString();return J[Y]=Q,J},{})}function lz(Z){return Object.keys(Z).reduce(function(J,Y){var Q=Z[Y];if(Array.isArray(Q))if(vZ.default.canUseDOM)Q=Q[Q.length-1].toString();else Q=Q.join(";".concat(f6(Y),":"));return J[Y]=Q,J},{})}var fZ,$5;function hZ(Z){var J=Z||global&&global.navigator&&global.navigator.userAgent;if(!$5||J!==fZ){if(J==="all")$5={prefix:kZ,prefixedKeyframes:"keyframes"};else $5=new cz({userAgent:J});fZ=J}return $5}function bZ(Z){return hZ(Z).prefixedKeyframes||"keyframes"}function V5(Z,J){var Y=pz(Z),Q=hZ(J),X=Q.prefix(Y),G=lz(X);return G}function iz(Z){return Object.keys(Z).map(function(J){return J+": "+Z[J]+";"}).join(`
16
+ `)}function h1(Z,J,Y){if(!J)return"";var Q=T0(J,function(H,z){return P0(z,H)}),X=V5(Q,Y),G=C7(X),W=iz(G);return Z+"{"+W+"}"}var nz=function(J){return J===null||typeof J>"u"?"main":J.toString()},I5=nz;var oz=function(J,Y,Q){var X=I5(Y);return!!J&&!!J._radiumStyleState&&!!J._radiumStyleState[X]&&J._radiumStyleState[X][Q]},q5=oz;var az=function(J){return typeof J.ref==="string"?J.ref:J.key},a1=az;var sz=function(J){return J._lastRadiumState||J.state&&J.state._radiumStyleState||{}},E0=sz;function S0(Z){if(!Z)return"";var J=5381,Y=Z.length-1;while(Y)J=J*33^Z.charCodeAt(Y),Y-=1;return(J>>>0).toString(16)}function D5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")D5=function(Y){return typeof Y};else D5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return D5(Z)}function N5(Z){return Z&&Z.constructor===Object&&Z.toString===Object.prototype.toString}function A5(Z){var J={};return Z.forEach(function(Y){if(!Y||D5(Y)!=="object")return;if(Array.isArray(Y))Y=A5(Y);Object.keys(Y).forEach(function(Q){if(!N5(Y[Q])||!N5(J[Q])){J[Q]=Y[Q];return}if(Q.indexOf("@media")===0){var X=Q;while(!0)if(X+=" ",!J[X]){J[X]=Y[Q];return}}J[Q]=A5([J[Q],Y[Q]])})}),J}var rz=function(){};var gZ=rz;function E8(Z){var{addCSS:J,config:Y,style:Q}=Z,X=function(H){var z=H,U=z.__process(Y.userAgent),B=U.animationName,L=U.css;return J(L),B},G=Object.keys(Q).reduce(function(W,H){var z=Q[H],U=Array.isArray(z);if(H==="animationName"&&z&&(z.__radiumKeyframes||U))if(U)z=z.map(X).join(", ");else z=X(z);return W[H]=z,W},{});return{style:G}}var tz=function(J){var{style:Y,mergeStyles:Q}=J,X=Array.isArray(Y)?Q(Y):Y;return{style:X}},yZ=tz;function S8(Z){var{config:J,style:Y}=Z,Q=V5(Y,J.userAgent);return{style:Q}}function x8(Z){var{isNestedStyle:J,style:Y}=Z,Q=Object.keys(Y).reduce(function(X,G){var W=Y[G];if(!J(W))X[G]=W;return X},{});return{style:Q}}var z0=[],R5=!1;function C8(){z0.forEach(function(Z){Z()})}var ez=function(J){if(z0.indexOf(J)===-1)z0.push(J);if(!R5)window.addEventListener("mouseup",C8),R5=!0;return{remove:function(){var Q=z0.indexOf(J);if(z0.splice(Q,1),z0.length===0&&R5)window.removeEventListener("mouseup",C8),R5=!1}}},mZ={subscribe:ez,__triggerForTests:C8};var uZ=function(J){return J===":hover"||J===":active"||J===":focus"},ZU=function(J){var{ExecutionEnvironment:Y,getComponentField:Q,getState:X,mergeStyles:G,props:W,setState:H,style:z}=J,U={},B={};if(z[":hover"]){var L=W.onMouseEnter;B.onMouseEnter=function(q){L&&L(q),H(":hover",!0)};var V=W.onMouseLeave;B.onMouseLeave=function(q){V&&V(q),H(":hover",!1)}}if(z[":active"]){var F=W.onMouseDown;B.onMouseDown=function(q){F&&F(q),U._lastMouseDown=Date.now(),H(":active","viamousedown")};var K=W.onKeyDown;B.onKeyDown=function(q){if(K&&K(q),q.key===" "||q.key==="Enter")H(":active","viakeydown")};var M=W.onKeyUp;B.onKeyUp=function(q){if(M&&M(q),q.key===" "||q.key==="Enter")H(":active",!1)}}if(z[":focus"]){var I=W.onFocus;B.onFocus=function(q){I&&I(q),H(":focus",!0)};var N=W.onBlur;B.onBlur=function(q){N&&N(q),H(":focus",!1)}}if(z[":active"]&&!Q("_radiumMouseUpListener")&&Y.canUseEventListeners)U._radiumMouseUpListener=mZ.subscribe(function(){Object.keys(Q("state")._radiumStyleState).forEach(function(q){if(X(":active",q)==="viamousedown")H(":active",!1,q)})});var P=W.disabled?[z[":disabled"]]:Object.keys(z).filter(function(q){return uZ(q)&&X(q)}).map(function(q){return z[q]}),D=G([z].concat(P));return D=Object.keys(D).reduce(function(q,E){if(!uZ(E)&&E!==":disabled")q[E]=D[E];return q},{}),{componentFields:U,props:B,style:D}},dZ=ZU;function JU(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){YU(Z,X,Y[X])})}return Z}function YU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}var f8;function QU(Z){if(f8===void 0)f8=!!Z.canUseDOM&&!!window&&!!window.matchMedia&&function(J){return window.matchMedia(J)}||null;return f8}function cZ(Z,J){return Object.keys(Z).filter(function(Y){return J(Z[Y],Y)}).reduce(function(Y,Q){return Y[Q]=Z[Q],Y},{})}function XU(Z){return Object.keys(Z).reduce(function(J,Y){if(Y.indexOf("@media")!==0)J[Y]=Z[Y];return J},{})}function GU(Z){var{addCSS:J,appendImportantToEachValue:Y,cssRuleSetToString:Q,hash:X,isNestedStyle:G,style:W,userAgent:H}=Z,z="";return Object.keys(W).filter(function(U){return U.indexOf("@media")===0}).map(function(U){var B=Y(cZ(W[U],function(K){return!G(K)}));if(!Object.keys(B).length)return;var L=Q("",B,H),V="rmq-"+X(U+L),F=U+"{ ."+V+L+"}";J(F),z+=(z?" ":"")+V}),z}function WU(Z){var{listener:J,listenersByQuery:Y,matchMedia:Q,mediaQueryListsByQuery:X,query:G}=Z;G=G.replace("@media ","");var W=X[G];if(!W&&Q)X[G]=W=Q(G);if(!Y||!Y[G])W.addListener(J),Y[G]={remove:function(){W.removeListener(J)}};return W}function j8(Z){var{ExecutionEnvironment:J,addCSS:Y,appendImportantToEachValue:Q,config:X,cssRuleSetToString:G,getComponentField:W,getGlobalState:H,hash:z,isNestedStyle:U,mergeStyles:B,props:L,setState:V,style:F}=Z,K=XU(F),M=GU({addCSS:Y,appendImportantToEachValue:Q,cssRuleSetToString:G,hash:z,isNestedStyle:U,style:F,userAgent:X.userAgent}),I=M?{className:M+(L.className?" "+L.className:"")}:null,N=X.matchMedia||QU(J);if(!N)return{props:I,style:K};var P=JU({},W("_radiumMediaQueryListenersByQuery")),D=H("mediaQueryListsByQuery")||{};return Object.keys(F).filter(function(q){return q.indexOf("@media")===0}).map(function(q){var E=cZ(F[q],U);if(!Object.keys(E).length)return;var C=WU({listener:function(){return V(q,C.matches,"_all")},listenersByQuery:P,matchMedia:N,mediaQueryListsByQuery:D,query:q});if(C.matches)K=B([K,E])}),{componentFields:{_radiumMediaQueryListenersByQuery:P},globalState:{mediaQueryListsByQuery:D},props:I,style:K}}function _8(Z){var{addCSS:J,appendImportantToEachValue:Y,config:Q,cssRuleSetToString:X,hash:G,props:W,style:H}=Z,z=W.className,U=Object.keys(H).reduce(function(B,L){var V=H[L];if(L===":visited"){V=Y(V);var F=X("",V,Q.userAgent),K="rad-"+G(F),M="."+K+":visited"+F;J(M),z=(z?z+" ":"")+K}else B[L]=V;return B},{});return{props:z===W.className?null:{className:z},style:U}}var W1={checkProps:gZ,keyframes:E8,mergeStyleArray:yZ,prefix:S8,removeNestedStyles:x8,resolveInteractionStyles:dZ,resolveMediaQueries:j8,visited:_8};var nZ=S(p6(),1);import b1 from"react";function HU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function pZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function zU(Z,J,Y){if(J)pZ(Z.prototype,J);if(Y)pZ(Z,Y);return Z}var lZ=function(){function Z(J){HU(this,Z),this._userAgent=void 0,this._listeners=void 0,this._cssSet=void 0,this._userAgent=J,this._listeners=[],this._cssSet={}}return zU(Z,[{key:"subscribe",value:function(Y){var Q=this;if(this._listeners.indexOf(Y)===-1)this._listeners.push(Y);return{remove:function(){var G=Q._listeners.indexOf(Y);if(G>-1)Q._listeners.splice(G,1)}}}},{key:"addCSS",value:function(Y){var Q=this;if(!this._cssSet[Y])this._cssSet[Y]=!0,this._emitChange();return{remove:function(){delete Q._cssSet[Y],Q._emitChange()}}}},{key:"getCSS",value:function(){return Object.keys(this._cssSet).join(`
17
+ `)}},{key:"_emitChange",value:function(){this._listeners.forEach(function(Y){return Y()})}}]),Z}();function U0(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){UU(Z,X,Y[X])})}return Z}function UU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function P5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")P5=function(Y){return typeof Y};else P5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return P5(Z)}var oZ={plugins:[W1.mergeStyleArray,W1.checkProps,W1.resolveMediaQueries,W1.resolveInteractionStyles,W1.keyframes,W1.visited,W1.removeNestedStyles,W1.prefix,W1.checkProps]},iZ={},BU=!1,s1=null,KU=function(J){return J.type&&!J.type._isRadiumEnhanced},LU=function(J){var{children:Y,component:Q,config:X,existingKeyMap:G,extraStateKeyMap:W}=J;if(!Y)return Y;var H=P5(Y);if(H==="string"||H==="number")return Y;if(H==="function")return function(){var V=Y.apply(this,arguments);if(b1.isValidElement(V)){var F=a1(V);delete W[F];var K=s1(Q,V,X,G,!0,W),M=K.element;return M}return V};if(b1.Children.count(Y)===1&&Y.type){var z=b1.Children.only(Y),U=a1(z);delete W[U];var B=s1(Q,z,X,G,!0,W),L=B.element;return L}return b1.Children.map(Y,function(V){if(b1.isValidElement(V)){var F=a1(V);delete W[F];var K=s1(Q,V,X,G,!0,W),M=K.element;return M}return V})},MU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,extraStateKeyMap:W}=J,H=G;return Object.keys(G).forEach(function(z){if(z==="children")return;var U=G[z];if(b1.isValidElement(U)){var B=a1(U);delete W[B],H=U0({},H);var L=s1(Y,U,Q,X,!0,W),V=L.element;H[z]=V}}),H},FU=function(J){var{componentName:Y,existingKeyMap:Q,renderedElement:X}=J,G=a1(X),W=I5(G),H=!1,z=function(){if(H)return W;if(H=!0,Q[W]){var B;if(typeof X.type==="string")B=X.type;else if(X.type.constructor)B=X.type.constructor.displayName||X.type.constructor.name;throw Error("Radium requires each element with interactive styles to have a unique key, set using either the ref or key prop. "+(G?'Key "'+G+'" is a duplicate.':"Multiple elements have no key specified.")+' Component: "'+Y+'". '+(B?'Element: "'+B+'".':""))}return Q[W]=!0,W};return z},$U=function(J,Y,Q,X){if(!J._radiumIsMounted)return;var G=E0(J),W={_radiumStyleState:U0({},G)};W._radiumStyleState[Y]=U0({},W._radiumStyleState[Y]),W._radiumStyleState[Y][Q]=X,J._lastRadiumState=W._radiumStyleState,J.setState(W)},OU=function(J){var{component:Y,config:Q,existingKeyMap:X,props:G,renderedElement:W}=J;if(!b1.isValidElement(W)||typeof W.type!=="string"||!G.style)return G;var H=G,z=Q.plugins||oZ.plugins,U=Y.constructor.displayName||Y.constructor.name,B=FU({renderedElement:W,existingKeyMap:X,componentName:U}),L=function(P){return Y[P]},V=function(P){return iZ[P]},F=function(P,D){return q5(Y.state,D||B(),P)},K=function(P,D,q){return $U(Y,q||B(),P,D)},M=function(P){var D=Y._radiumStyleKeeper;if(!D){if(BU)return{remove:function(){}};throw Error("To use plugins requiring `addCSS` (e.g. keyframes, media queries), please wrap your application in the StyleRoot component. Component name: `"+U+"`.")}return D.addCSS(P)},I=G.style;if(z.forEach(function(N){var P=N({ExecutionEnvironment:nZ.default,addCSS:M,appendImportantToEachValue:C6,componentName:U,config:Q,cssRuleSetToString:h1,getComponentField:L,getGlobalState:V,getState:F,hash:S0,mergeStyles:A5,props:H,setState:K,isNestedStyle:N5,style:I})||{};I=P.style||I,H=P.props&&Object.keys(P.props).length?U0({},H,P.props):H;var D=P.componentFields||{};Object.keys(D).forEach(function(E){Y[E]=D[E]});var q=P.globalState||{};Object.keys(q).forEach(function(E){iZ[E]=q[E]})}),I!==G.style)H=U0({},H,{style:I});return H},VU=function(J,Y,Q){if(typeof J.type==="string")Y=U0({},Y,{"data-radium":!0});return b1.cloneElement(J,Y,Q)};s1=function(J,Y){var Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oZ,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,W=arguments.length>5?arguments[5]:void 0;if(!W){var H=E0(J);W=Object.keys(H).reduce(function(F,K){if(K!=="main")F[K]=!0;return F},{})}if(Array.isArray(Y)&&!Y.props){var z=Y.map(function(F){if(W){var K=a1(F);delete W[K]}return s1(J,F,Q,X,G,W).element});return{extraStateKeyMap:W,element:z}}if(!Y||Y.props&&Y.props["data-radium"]||G&&!KU(Y))return{extraStateKeyMap:W,element:Y};var U=Y.props.children,B=LU({children:U,component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W}),L=MU({component:J,config:Q,existingKeyMap:X,extraStateKeyMap:W,props:Y.props});if(L=OU({component:J,config:Q,existingKeyMap:X,props:L,renderedElement:Y}),B===U&&L===Y.props)return{extraStateKeyMap:W,element:Y};var V=VU(Y,L!==Y.props?L:{},B);return{extraStateKeyMap:W,element:V}};var aZ=s1;var rZ=S(x6(),1);import T5,{useContext as sZ}from"react";function v8(){return v8=Object.assign||function(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J];for(var Q in Y)if(Object.prototype.hasOwnProperty.call(Y,Q))Z[Q]=Y[Q]}return Z},v8.apply(this,arguments)}var x0=T5.createContext(void 0),B0=T5.createContext(void 0);function K0(Z){var J=T5.forwardRef(function(Y,Q){var X=sZ(B0),G=sZ(x0);return T5.createElement(Z,v8({ref:Q},Y,{radiumConfigContext:X,styleKeeperContext:G}))});return J.displayName="withRadiumContexts(".concat(Z.displayName||Z.name||"Component",")"),rZ.default(J,Z)}function r1(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")r1=function(Y){return typeof Y};else r1=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return r1(Z)}function QJ(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function tZ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function IU(Z,J,Y){if(J)tZ(Z.prototype,J);if(Y)tZ(Z,Y);return Z}function XJ(Z,J){if(J&&(r1(J)==="object"||typeof J==="function"))return J;return GJ(Z)}function GJ(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function g1(Z,J,Y){if(typeof Reflect<"u"&&Reflect.get)g1=Reflect.get;else g1=function(X,G,W){var H=qU(X,G);if(!H)return;var z=Object.getOwnPropertyDescriptor(H,G);if(z.get)return z.get.call(W);return z.value};return g1(Z,J,Y||Z)}function qU(Z,J){while(!Object.prototype.hasOwnProperty.call(Z,J))if(Z=V1(Z),Z===null)break;return Z}function V1(Z){return V1=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},V1(Z)}function WJ(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)k8(Z,J)}function k8(Z,J){return k8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},k8(Z,J)}function DU(Z,J){return RU(Z)||AU(Z,J)||NU()}function NU(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function AU(Z,J){var Y=[],Q=!0,X=!1,G=void 0;try{for(var W=Z[Symbol.iterator](),H;!(Q=(H=W.next()).done);Q=!0)if(Y.push(H.value),J&&Y.length===J)break}catch(z){X=!0,G=z}finally{try{if(!Q&&W.return!=null)W.return()}finally{if(X)throw G}}return Y}function RU(Z){if(Array.isArray(Z))return Z}function h8(Z){for(var J=1;J<arguments.length;J++){var Y=arguments[J]!=null?arguments[J]:{},Q=Object.keys(Y);if(typeof Object.getOwnPropertySymbols==="function")Q=Q.concat(Object.getOwnPropertySymbols(Y).filter(function(X){return Object.getOwnPropertyDescriptor(Y,X).enumerable}));Q.forEach(function(X){PU(Z,X,Y[X])})}return Z}function PU(Z,J,Y){if(J in Z)Object.defineProperty(Z,J,{value:Y,enumerable:!0,configurable:!0,writable:!0});else Z[J]=Y;return Z}function HJ(Z,J){if(Z==null)return{};var Y=TU(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function TU(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function wU(Z){var J=EU(Z,"string");return r1(J)==="symbol"?J:String(J)}function EU(Z,J){if(r1(Z)!=="object"||Z===null)return Z;var Y=Z[Symbol.toPrimitive];if(Y!==void 0){var Q=Y.call(Z,J||"default");if(r1(Q)!=="object")return Q;throw TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Z)}var fU=["arguments","callee","caller","length","name","prototype","type"],E5,BJ;function jU(Z,J){Object.getOwnPropertyNames(Z).forEach(function(Y){if(fU.indexOf(Y)<0&&!J.hasOwnProperty(Y)){var Q=Object.getOwnPropertyDescriptor(Z,Y);Q&&Object.defineProperty(J,Y,Q)}})}function _U(Z){var J=Z.prototype||{};return!Z.isReactComponent&&!J.isReactComponent&&!Z.render&&!J.render}function vU(Z){return typeof Z==="function"&&/^\s*class\s+/.test(Z.toString())}function kU(Z,J){BJ.forEach(function(Y){var Q=Object.getOwnPropertyDescriptor(Z,Y),X=(Q||{}).value;if(!X)return;var G=Object.getOwnPropertyDescriptor(E5,Y),W=(G||{}).value,H=J.prototype[Y];if(!H&&X!==W)Q&&Object.defineProperty(J.prototype,Y,Q),delete Z[Y]})}function KJ(Z){if(Z._extraRadiumStateKeys&&Z._extraRadiumStateKeys.length>0){var J=Z._extraRadiumStateKeys.reduce(function(Y,Q){var X=Y[Q],G=HJ(Y,[Q].map(wU));return G},E0(Z));Z._lastRadiumState=J,Z.setState({_radiumStyleState:J})}}function LJ(Z){var{_radiumMouseUpListener:J,_radiumMediaQueryListenersByQuery:Y}=Z;if(Z._radiumIsMounted=!1,J)J.remove();if(Y)Object.keys(Y).forEach(function(Q){Y[Q].remove()},Z)}function MJ(Z,J,Y){var Q=Z||J||Y;if(Y&&Q!==Y)Q=h8({},Y,Q);return Q}function FJ(Z,J,Y,Q){var X=aZ(Z,J,Y),G=X.extraStateKeyMap,W=X.element;if(Z._extraRadiumStateKeys=Object.keys(G),Q)return zJ.createElement(B0.Provider,{value:Q},W);return W}function JJ(Z,J){var Y=zJ.forwardRef(function(Q,X){var G=Q.radiumConfig,W=HJ(Q,["radiumConfig"]),H=eZ(B0),z=eZ(x0),U=SU({_radiumStyleState:{}}),B=DU(U,2),L=B[0],V=B[1],F=xU({state:L,setState:V,_radiumMediaQueryListenersByQuery:void 0,_radiumMouseUpListener:void 0,_radiumIsMounted:!0,_lastRadiumState:void 0,_extraRadiumStateKeys:void 0,_radiumStyleKeeper:z}).current;F.state=L,ZJ(function(){return function(){LJ(F)}},[F]);var K=F._extraRadiumStateKeys&&F._extraRadiumStateKeys.length>0;ZJ(function(){KJ(F)},[K,F]);var M=Z(W,X),I=MJ(G,H,J);return FJ(F,M,I,G)});return Y._isRadiumEnhanced=!0,Y.defaultProps=Z.defaultProps,UJ.default(Y,Z)}function hU(Z,J,Y){var Q=function(X){WJ(G,X);function G(){var W;QJ(this,G),W=XJ(this,V1(G).apply(this,arguments)),W.state=W.state||{},W._radiumStyleKeeper=W.props.styleKeeperContext,W._radiumMediaQueryListenersByQuery=W._radiumMediaQueryListenersByQuery,W._radiumMouseUpListener=W._radiumMouseUpListener,W._radiumIsMounted=!0,W._lastRadiumState=void 0,W._extraRadiumStateKeys=void 0,W.state._radiumStyleState={};var H=GJ(W);return kU(H,J),W}return IU(G,[{key:"componentDidUpdate",value:function(H,z,U){if(g1(V1(G.prototype),"componentDidUpdate",this))g1(V1(G.prototype),"componentDidUpdate",this).call(this,H,z,U);KJ(this)}},{key:"componentWillUnmount",value:function(){if(g1(V1(G.prototype),"componentWillUnmount",this))g1(V1(G.prototype),"componentWillUnmount",this).call(this);LJ(this)}},{key:"render",value:function(){var H=g1(V1(G.prototype),"render",this).call(this),z=MJ(this.props.radiumConfig,this.props.radiumConfigContext,Y);return FJ(this,H,z,this.props.radiumConfig)}}]),G}(J);if(Q._isRadiumEnhanced=!0,E5=Q.prototype,BJ=Object.getOwnPropertyNames(E5).filter(function(X){return X!=="constructor"&&typeof E5[X]==="function"}),jU(Z,Q),Q.propTypes&&Q.propTypes.style)Q.propTypes=h8({},Q.propTypes,{style:w5.default.oneOfType([w5.default.array,w5.default.object])});return Q.displayName=Z.displayName||Z.name||"Component",K0(Q)}function bU(Z){return Z=function(J){function Y(){var Q=Reflect.construct(J,arguments,this.constructor);return Q}return Reflect.setPrototypeOf(Y.prototype,J.prototype),Reflect.setPrototypeOf(Y,J),Y}(Z),Z}var YJ=CU(function(){return null}).$$typeof;function L0(Z){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(YJ&&Z.$$typeof===YJ)return JJ(Z.render,J);if(typeof Z!=="function")return gU(J,Z);var Y=Z;if(_U(Y))return JJ(Y,J);var Q=Y;if(vU(Q))Q=bU(Q);if(Q===Y)Q=function(X){WJ(G,X);function G(){return QJ(this,G),XJ(this,V1(G).apply(this,arguments))}return G}(Q);return hU(Y,Q,J)}function gU(Z,J){var Y=h8({},Z,J);return function(Q){return L0(Q,Y)}}var S5=S(w6(),1);import pU,{PureComponent as lU}from"react";function M0(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")M0=function(Y){return typeof Y};else M0=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return M0(Z)}function yU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function $J(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function mU(Z,J,Y){if(J)$J(Z.prototype,J);if(Y)$J(Z,Y);return Z}function uU(Z,J){if(J&&(M0(J)==="object"||typeof J==="function"))return J;return dU(Z)}function dU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function b8(Z){return b8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},b8(Z)}function cU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)g8(Z,J)}function g8(Z,J){return g8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},g8(Z,J)}var y8=function(Z){cU(J,Z);function J(){return yU(this,J),uU(this,b8(J).apply(this,arguments))}return mU(J,[{key:"_buildStyles",value:function(Q){var X=this,G=this.props.radiumConfig&&this.props.radiumConfig.userAgent||this.props.radiumConfigContext&&this.props.radiumConfigContext.userAgent,W=this.props.scopeSelector,H=Object.keys(Q).reduce(function(U,B){if(M0(Q[B])!=="object")U[B]=Q[B];return U},{}),z=Object.keys(H).length?h1(W||"",H,G):"";return z+Object.keys(Q).reduce(function(U,B){var L=Q[B];if(B==="mediaQueries")U+=X._buildMediaQueryString(L);else if(M0(Q[B])==="object"){var V=W?B.split(",").map(function(F){return W+" "+F.trim()}).join(","):B;U+=h1(V,L,G)}return U},"")}},{key:"_buildMediaQueryString",value:function(Q){var X=this,G="";return Object.keys(Q).forEach(function(W){G+="@media "+W+"{"+X._buildStyles(Q[W])+"}"}),G}},{key:"render",value:function(){if(!this.props.rules)return null;var Q=this._buildStyles(this.props.rules);return pU.createElement("style",{dangerouslySetInnerHTML:{__html:Q}})}}]),J}(lU);y8.propTypes={radiumConfig:S5.default.object,rules:S5.default.object,scopeSelector:S5.default.string};y8.defaultProps={scopeSelector:""};var OJ=K0(y8);import C5,{useContext as YB,useRef as QB}from"react";import rU,{Component as tU}from"react";function x5(Z){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol")x5=function(Y){return typeof Y};else x5=function(Y){return Y&&typeof Symbol==="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y};return x5(Z)}function iU(Z,J){if(!(Z instanceof J))throw TypeError("Cannot call a class as a function")}function VJ(Z,J){for(var Y=0;Y<J.length;Y++){var Q=J[Y];if(Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q)Q.writable=!0;Object.defineProperty(Z,Q.key,Q)}}function nU(Z,J,Y){if(J)VJ(Z.prototype,J);if(Y)VJ(Z,Y);return Z}function oU(Z,J){if(J&&(x5(J)==="object"||typeof J==="function"))return J;return aU(Z)}function aU(Z){if(Z===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function m8(Z){return m8=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},m8(Z)}function sU(Z,J){if(typeof J!=="function"&&J!==null)throw TypeError("Super expression must either be null or a function");if(Z.prototype=Object.create(J&&J.prototype,{constructor:{value:Z,writable:!0,configurable:!0}}),J)u8(Z,J)}function u8(Z,J){return u8=Object.setPrototypeOf||function(Q,X){return Q.__proto__=X,Q},u8(Z,J)}var eU=function(Z){sU(J,Z);function J(){var Y;if(iU(this,J),Y=oU(this,m8(J).apply(this,arguments)),Y.styleKeeper=void 0,Y._subscription=void 0,Y._root=void 0,Y._css=void 0,Y._onChange=function(){var Q=Y.styleKeeper.getCSS();if(Q!==Y._css){if(Y._root)Y._root.innerHTML=Q;else throw Error("No root style object found, even after StyleSheet mount.");Y._css=Q}},!Y.props.styleKeeperContext)throw Error("StyleRoot is required to use StyleSheet");return Y.styleKeeper=Y.props.styleKeeperContext,Y._css=Y.styleKeeper.getCSS(),Y}return nU(J,[{key:"componentDidMount",value:function(){this._subscription=this.styleKeeper.subscribe(this._onChange),this._onChange()}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(this._subscription)this._subscription.remove()}},{key:"render",value:function(){var Q=this;return rU.createElement("style",{dangerouslySetInnerHTML:{__html:this._css},ref:function(G){Q._root=G}})}}]),J}(tU),IJ=K0(eU);function ZB(Z,J){if(Z==null)return{};var Y=JB(Z,J),Q,X;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Z);for(X=0;X<G.length;X++){if(Q=G[X],J.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Z,Q))continue;Y[Q]=Z[Q]}}return Y}function JB(Z,J){if(Z==null)return{};var Y={},Q=Object.keys(Z),X,G;for(G=0;G<Q.length;G++){if(X=Q[G],J.indexOf(X)>=0)continue;Y[X]=Z[X]}return Y}function XB(Z,J){var Y=Z&&Z.userAgent||J&&J.userAgent;return new lZ(Y)}var GB=L0(function(Z){var J=Z.children,Y=ZB(Z,["children"]);return C5.createElement("div",Y,J,C5.createElement(IJ,null))}),WB=function(J){var Y=J.radiumConfig,Q=YB(B0),X=QB(XB(Y,Q));return C5.createElement(x0.Provider,{value:X.current},C5.createElement(GB,J))},qJ=WB;function d8(Z,J){return{__radiumKeyframes:!0,__process:function(Q){var X=bZ(Q),G=Object.keys(Z).map(function(z){return h1(z,Z[z],Q)}).join(`
18
+ `),W=(J?J+"-":"")+"radium-animation-"+S0(G),H="@"+X+" "+W+` {
29
19
  `+G+`
30
20
  }
31
- `;return{css:H,animationName:W}}}}function O0(Z){return M0(Z)}O0.Plugins=U1;O0.Style=VJ;O0.StyleRoot=NJ;O0.getState=N5;O0.keyframes=p8;var K1=O0;function l8(Z){return{all:Z=Z||new Map,on:function(J,Y){var Q=Z.get(J);Q?Q.push(Y):Z.set(J,[Y])},off:function(J,Y){var Q=Z.get(J);Q&&(Y?Q.splice(Q.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var Q=Z.get(J);Q&&Q.slice().map(function(X){X(Y)}),(Q=Z.get("*"))&&Q.slice().map(function(X){X(J,Y)})}}}import{createContext as KU}from"react";var C0=l8(),LU=KU(C0),m1=LU;var O1=Object.create(null);O1.open="0";O1.close="1";O1.ping="2";O1.pong="3";O1.message="4";O1.upgrade="5";O1.noop="6";var j0=Object.create(null);Object.keys(O1).forEach((Z)=>{j0[O1[Z]]=Z});var _0={type:"error",data:"parser error"};var PJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",TJ=typeof ArrayBuffer==="function",wJ=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},v0=({type:Z,data:J},Y,Q)=>{if(PJ&&J instanceof Blob)if(Y)return Q(J);else return AJ(J,Q);else if(TJ&&(J instanceof ArrayBuffer||wJ(J)))if(Y)return Q(J);else return AJ(new Blob([J]),Q);return Q(O1[Z]+(J||""))},AJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let Q=Y.result.split(",")[1];J("b"+(Q||""))},Y.readAsDataURL(Z)};function RJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var i8;function EJ(Z,J){if(PJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(RJ).then(J);else if(TJ&&(Z.data instanceof ArrayBuffer||wJ(Z.data)))return J(RJ(Z.data));v0(Z,!1,(Y)=>{if(!i8)i8=new TextEncoder;J(i8.encode(Y))})}var k0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)k0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var SJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,Q,X=0,G,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let B=new ArrayBuffer(J),U=new Uint8Array(B);for(Q=0;Q<Y;Q+=4)G=k0[Z.charCodeAt(Q)],W=k0[Z.charCodeAt(Q+1)],H=k0[Z.charCodeAt(Q+2)],z=k0[Z.charCodeAt(Q+3)],U[X++]=G<<2|W>>4,U[X++]=(W&15)<<4|H>>2,U[X++]=(H&3)<<6|z&63;return B};var MU=typeof ArrayBuffer==="function",h0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:xJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:FU(Z.substring(1),J)};if(!j0[Y])return _0;return Z.length>1?{type:j0[Y],data:Z.substring(1)}:{type:j0[Y]}},FU=(Z,J)=>{if(MU){let Y=SJ(Z);return xJ(Y,J)}else return{base64:!0,data:Z}},xJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var fJ=String.fromCharCode(30),CJ=(Z,J)=>{let Y=Z.length,Q=Array(Y),X=0;Z.forEach((G,W)=>{v0(G,!1,(H)=>{if(Q[W]=H,++X===Y)J(Q.join(fJ))})})},jJ=(Z,J)=>{let Y=Z.split(fJ),Q=[];for(let X=0;X<Y.length;X++){let G=h0(Y[X],J);if(Q.push(G),G.type==="error")break}return Q};function _J(){return new TransformStream({transform(Z,J){EJ(Z,(Y)=>{let Q=Y.length,X;if(Q<126)X=new Uint8Array(1),new DataView(X.buffer).setUint8(0,Q);else if(Q<65536){X=new Uint8Array(3);let G=new DataView(X.buffer);G.setUint8(0,126),G.setUint16(1,Q)}else{X=new Uint8Array(9);let G=new DataView(X.buffer);G.setUint8(0,127),G.setBigUint64(1,BigInt(Q))}if(Z.data&&typeof Z.data!=="string")X[0]|=128;J.enqueue(X),J.enqueue(Y)})}})}var n8;function _5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function v5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),Q=0;for(let X=0;X<J;X++)if(Y[X]=Z[0][Q++],Q===Z[0].length)Z.shift(),Q=0;if(Z.length&&Q<Z[0].length)Z[0]=Z[0].slice(Q);return Y}function vJ(Z,J){if(!n8)n8=new TextDecoder;let Y=[],Q=0,X=-1,G=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(Q===0){if(_5(Y)<1)break;let z=v5(Y,1);if(G=(z[0]&128)===128,X=z[0]&127,X<126)Q=3;else if(X===126)Q=1;else Q=2}else if(Q===1){if(_5(Y)<2)break;let z=v5(Y,2);X=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),Q=3}else if(Q===2){if(_5(Y)<8)break;let z=v5(Y,8),B=new DataView(z.buffer,z.byteOffset,z.length),U=B.getUint32(0);if(U>Math.pow(2,21)-1){H.enqueue(_0);break}X=U*Math.pow(2,32)+B.getUint32(4),Q=3}else{if(_5(Y)<X)break;let z=v5(Y,X);H.enqueue(h0(G?z:n8.decode(z),J)),Q=0}if(X===0||X>Z){H.enqueue(_0);break}}}})}var o8=4;function b(Z){if(Z)return OU(Z)}function OU(Z){for(var J in b.prototype)Z[J]=b.prototype[J];return Z}b.prototype.on=b.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};b.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};b.prototype.off=b.prototype.removeListener=b.prototype.removeAllListeners=b.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var Q;for(var X=0;X<Y.length;X++)if(Q=Y[X],Q===J||Q.fn===J){Y.splice(X,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};b.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];if(Y){Y=Y.slice(0);for(var Q=0,X=Y.length;Q<X;++Q)Y[Q].apply(this,J)}return this};b.prototype.emitReserved=b.prototype.emit;b.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};b.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var x1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),t=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),kJ="arraybuffer";function hJ(){}function k5(Z,...J){return J.reduce((Y,Q)=>{if(Z.hasOwnProperty(Q))Y[Q]=Z[Q];return Y},{})}var $U=t.setTimeout,IU=t.clearTimeout;function f1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=$U.bind(t),Z.clearTimeoutFn=IU.bind(t);else Z.setTimeoutFn=t.setTimeout.bind(t),Z.clearTimeoutFn=t.clearTimeout.bind(t)}var VU=1.33;function bJ(Z){if(typeof Z==="string")return qU(Z);return Math.ceil((Z.byteLength||Z.size)*VU)}function qU(Z){let J=0,Y=0;for(let Q=0,X=Z.length;Q<X;Q++)if(J=Z.charCodeAt(Q),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else Q++,Y+=4;return Y}function h5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function yJ(Z){let J={},Y=Z.split("&");for(let Q=0,X=Y.length;Q<X;Q++){let G=Y[Q].split("=");J[decodeURIComponent(G[0])]=decodeURIComponent(G[1])}return J}class a8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class u1 extends b{constructor(Z){super();this.writable=!1,f1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new a8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=h0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=gJ(Z);return J.length?"?"+J:""}}class b5 extends u1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(jJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,CJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=h5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var mJ=!1;try{mJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var uJ=mJ;function DU(){}class cJ extends b5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(Q,X)=>{this.onError("xhr post error",Q,X)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class R1 extends b{constructor(Z,J,Y){super();this.createRequest=Z,f1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=k5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let Q in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(Q))Y.setRequestHeader(Q,this._opts.extraHeaders[Q])}}catch(Q){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Q){}try{Y.setRequestHeader("Accept","*/*")}catch(Q){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var Q;if(Y.readyState===3)(Q=this._opts.cookieJar)===null||Q===void 0||Q.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(Q){this.setTimeoutFn(()=>{this._onError(Q)},0);return}if(typeof document<"u")this._index=R1.requestsCount++,R1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=DU,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete R1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}R1.requestsCount=0;R1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",dJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in t?"pagehide":"unload";addEventListener(Z,dJ,!1)}}function dJ(){for(let Z in R1.requests)if(R1.requests.hasOwnProperty(Z))R1.requests[Z].abort()}var NU=function(){let Z=pJ({xdomain:!1});return Z&&Z.responseType!==null}();class e1 extends cJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=NU&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new R1(pJ,this.uri(),Z)}}function pJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||uJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var lJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class iJ extends u1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=lJ?{}:k5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(Q){return this.emitReserved("error",Q)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;v0(Y,this.supportsBinary,(X)=>{try{this.doWrite(Y,X)}catch(G){}if(Q)x1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=h5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var s8=t.WebSocket||t.MozWebSocket;class Z0 extends iJ{createSocket(Z,J,Y){return!lJ?J?new s8(Z,J):new s8(Z):new s8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class b0 extends u1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=vJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),Q=_J();Q.readable.pipeTo(Z.writable),this._writer=Q.writable.getWriter();let X=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),X()}).catch((W)=>{})};X();let G={type:"open"};if(this.query.sid)G.data=`{"sid":"${this.query.sid}"}`;this._writer.write(G).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;this._writer.write(Y).then(()=>{if(Q)x1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var r8={websocket:Z0,webtransport:b0,polling:e1};var AU=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RU=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function $0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),Q=Z.indexOf("]");if(Y!=-1&&Q!=-1)Z=Z.substring(0,Y)+Z.substring(Y,Q).replace(/:/g,";")+Z.substring(Q,Z.length);let X=AU.exec(Z||""),G={},W=14;while(W--)G[RU[W]]=X[W]||"";if(Y!=-1&&Q!=-1)G.source=J,G.host=G.host.substring(1,G.host.length-1).replace(/;/g,":"),G.authority=G.authority.replace("[","").replace("]","").replace(/;/g,":"),G.ipv6uri=!0;return G.pathNames=PU(G,G.path),G.queryKey=TU(G,G.query),G}function PU(Z,J){let Y=/\/{2,9}/g,Q=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)Q.splice(0,1);if(J.slice(-1)=="/")Q.splice(Q.length-1,1);return Q}function TU(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,X,G){if(X)Y[X]=G}),Y}var t8=typeof addEventListener==="function"&&typeof removeEventListener==="function",g5=[];if(t8)addEventListener("offline",()=>{g5.forEach((Z)=>Z())},!1);class C1 extends b{constructor(Z,J){super();if(this.binaryType=kJ,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=$0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=$0(J.host).host;if(f1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let Q=Y.prototype.name;this.transports.push(Q),this._transportsByName[Q]=Y}),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},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=yJ(this.opts.query);if(t8){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},g5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=hJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=o8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&C1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",C1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let Q=this.writeBuffer[Y].data;if(Q)J+=bJ(Q);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,x1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,Q){if(typeof J==="function")Q=J,J=void 0;if(typeof Y==="function")Q=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let X={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",X),this.writeBuffer.push(X),Q)this.once("flush",Q);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(C1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),t8){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=g5.indexOf(this._offlineEventListener);if(Y!==-1)g5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}C1.protocol=o8;class e8 extends C1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;C1.priorWebsocketSuccess=!1;let Q=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(U)=>{if(Y)return;if(U.type==="pong"&&U.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;C1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;B(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function X(){if(Y)return;Y=!0,B(),J.close(),J=null}let G=(U)=>{let L=Error("probe error: "+U);L.transport=J.name,X(),this.emitReserved("upgradeError",L)};function W(){G("transport closed")}function H(){G("socket closed")}function z(U){if(J&&U.name!==J.name)X()}let B=()=>{J.removeListener("open",Q),J.removeListener("error",G),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",Q),J.once("error",G),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class g0 extends e8{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((Q)=>r8[Q]).filter((Q)=>!!Q);super(Z,Y)}}var wV=g0.protocol;function nJ(Z,J="",Y){let Q=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;Q=$0(Z)}if(!Q.port){if(/^(http|ws)$/.test(Q.protocol))Q.port="80";else if(/^(http|ws)s$/.test(Q.protocol))Q.port="443"}Q.path=Q.path||"/";let G=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+G+":"+Q.port+J,Q.href=Q.protocol+"://"+G+(Y&&Y.port===Q.port?"":":"+Q.port),Q}var Q9={};B7(Q9,{protocol:()=>tJ,isPacketValid:()=>kU,PacketType:()=>x,Encoder:()=>eJ,Decoder:()=>Y9});var EU=typeof ArrayBuffer==="function",SU=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},oJ=Object.prototype.toString,xU=typeof Blob==="function"||typeof Blob<"u"&&oJ.call(Blob)==="[object BlobConstructor]",fU=typeof File==="function"||typeof File<"u"&&oJ.call(File)==="[object FileConstructor]";function m0(Z){return EU&&(Z instanceof ArrayBuffer||SU(Z))||xU&&Z instanceof Blob||fU&&Z instanceof File}function y0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,Q=Z.length;Y<Q;Y++)if(y0(Z[Y]))return!0;return!1}if(m0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return y0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&y0(Z[Y]))return!0;return!1}function aJ(Z){let J=[],Y=Z.data,Q=Z;return Q.data=Z9(Y,J),Q.attachments=J.length,{packet:Q,buffers:J}}function Z9(Z,J){if(!Z)return Z;if(m0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=Z9(Z[Q],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q))Y[Q]=Z9(Z[Q],J);return Y}return Z}function sJ(Z,J){return Z.data=J9(Z.data,J),delete Z.attachments,Z}function J9(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=J9(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=J9(Z[Y],J)}return Z}var rJ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tJ=5,x;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(x||(x={}));class eJ{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===x.EVENT||Z.type===x.ACK){if(y0(Z))return this.encodeAsBinary({type:Z.type===x.EVENT?x.BINARY_EVENT:x.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===x.BINARY_EVENT||Z.type===x.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=aJ(Z),Y=this.encodeAsString(J.packet),Q=J.buffers;return Q.unshift(Y),Q}}class Y9 extends b{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===x.BINARY_EVENT;if(Y||J.type===x.BINARY_ACK){if(J.type=Y?x.EVENT:x.ACK,this.reconstructor=new ZY(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(m0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(x[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===x.BINARY_EVENT||Y.type===x.BINARY_ACK){let X=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let G=Z.substring(X,J);if(G!=Number(G)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(G)}if(Z.charAt(J+1)==="/"){let X=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(X,J)}else Y.nsp="/";let Q=Z.charAt(J+1);if(Q!==""&&Number(Q)==Q){let X=J+1;while(++J){let G=Z.charAt(J);if(G==null||Number(G)!=G){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(X,J+1))}if(Z.charAt(++J)){let X=this.tryParse(Z.substr(J));if(Y9.isPayloadValid(Y.type,X))Y.data=X;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case x.CONNECT:return y5(J);case x.DISCONNECT:return J===void 0;case x.CONNECT_ERROR:return typeof J==="string"||y5(J);case x.EVENT:case x.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&rJ.indexOf(J[0])===-1);case x.ACK:case x.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class ZY{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=sJ(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function CU(Z){return typeof Z==="string"}var jU=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function _U(Z){return Z===void 0||jU(Z)}function y5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function vU(Z,J){switch(Z){case x.CONNECT:return J===void 0||y5(J);case x.DISCONNECT:return J===void 0;case x.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&rJ.indexOf(J[0])===-1);case x.ACK:return Array.isArray(J);case x.CONNECT_ERROR:return typeof J==="string"||y5(J);default:return!1}}function kU(Z){return CU(Z.nsp)&&_U(Z.id)&&vU(Z.type,Z.data)}function H1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var hU=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u0 extends b{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[H1(Z,"open",this.onopen.bind(this)),H1(Z,"packet",this.onpacket.bind(this)),H1(Z,"error",this.onerror.bind(this)),H1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,Q,X;if(hU.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let G={type:x.EVENT,data:J};if(G.options={},G.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let B=this.ids++,U=J.pop();this._registerAckCallback(B,U),G.id=B}let W=(Q=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||Q===void 0?void 0:Q.writable,H=this.connected&&!((X=this.io.engine)===null||X===void 0?void 0:X._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(G),this.packet(G);else this.sendBuffer.push(G);return this.flags={},this}_registerAckCallback(Z,J){var Y;let Q=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(Q===void 0){this.acks[Z]=J;return}let X=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},Q),G=(...W)=>{this.io.clearTimeoutFn(X),J.apply(this,W)};G.withError=!0,this.acks[Z]=G}emitWithAck(Z,...J){return new Promise((Y,Q)=>{let X=(G,W)=>{return G?Q(G):Y(W)};X.withError=!0,J.push(X),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((Q,...X)=>{if(Y!==this._queue[0]);if(Q!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(Q)}}else if(this._queue.shift(),J)J(null,...X);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:x.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case x.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",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 x.EVENT:case x.BINARY_EVENT:this.onevent(Z);break;case x.ACK:case x.BINARY_ACK:this.onack(Z);break;case x.DISCONNECT:this.ondisconnect();break;case x.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...Q){if(Y)return;Y=!0,J.packet({type:x.ACK,id:Z,data:Q})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:x.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function J0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}J0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};J0.prototype.reset=function(){this.attempts=0};J0.prototype.setMin=function(Z){this.ms=Z};J0.prototype.setMax=function(Z){this.max=Z};J0.prototype.setJitter=function(Z){this.jitter=Z};class d0 extends b{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,f1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new J0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let Q=J.parser||Q9;if(this.encoder=new Q.Encoder,this.decoder=new Q.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new g0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let Q=H1(J,"open",function(){Y.onopen(),Z&&Z()}),X=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},G=H1(J,"error",X);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{Q(),X(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(Q),this.subs.push(G),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(H1(Z,"ping",this.onping.bind(this)),H1(Z,"data",this.ondata.bind(this)),H1(Z,"error",this.onerror.bind(this)),H1(Z,"close",this.onclose.bind(this)),H1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){x1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new u0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((Q)=>{if(Q)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",Q);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var c0={};function p0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=nJ(Z,J.path||"/socket.io"),Q=Y.source,X=Y.id,G=Y.path,W=c0[X]&&G in c0[X].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new d0(Q,J);else{if(!c0[X])c0[X]=new d0(Q,J);z=c0[X]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(p0,{Manager:d0,Socket:u0,io:p0,connect:p0});import{createContext as bU}from"react";var m5=(Z)=>p0(Z,{autoConnect:!1,transports:["websocket"]}),gU=bU(null),d1=gU;import{createContext as JK}from"react";function s(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(U){try{B(Q.next(U))}catch(L){W(L)}}function z(U){try{B(Q.throw(U))}catch(L){W(L)}}function B(U){U.done?G(U.value):X(U.value).then(H,z)}B((Q=Q.apply(Z,J||[])).next())})}function yU(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var H9={exports:{}},I0=typeof Reflect==="object"?Reflect:null,JY=I0&&typeof I0.apply==="function"?I0.apply:function(J,Y,Q){return Function.prototype.apply.call(J,Y,Q)},u5;if(I0&&typeof I0.ownKeys==="function")u5=I0.ownKeys;else if(Object.getOwnPropertySymbols)u5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else u5=function(J){return Object.getOwnPropertyNames(J)};function mU(Z){if(console&&console.warn)console.warn(Z)}var QY=Number.isNaN||function(J){return J!==J};function h(){h.init.call(this)}H9.exports=h;H9.exports.once=pU;h.EventEmitter=h;h.prototype._events=void 0;h.prototype._eventsCount=0;h.prototype._maxListeners=void 0;var YY=10;function i5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(h,"defaultMaxListeners",{enumerable:!0,get:function(){return YY},set:function(Z){if(typeof Z!=="number"||Z<0||QY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");YY=Z}});h.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};h.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||QY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function XY(Z){if(Z._maxListeners===void 0)return h.defaultMaxListeners;return Z._maxListeners}h.prototype.getMaxListeners=function(){return XY(this)};h.prototype.emit=function(J){var Y=[];for(var Q=1;Q<arguments.length;Q++)Y.push(arguments[Q]);var X=J==="error",G=this._events;if(G!==void 0)X=X&&G.error===void 0;else if(!X)return!1;if(X){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=G[J];if(z===void 0)return!1;if(typeof z==="function")JY(z,this,Y);else{var B=z.length,U=BY(z,B);for(var Q=0;Q<B;++Q)JY(U[Q],this,Y)}return!0};function GY(Z,J,Y,Q){var X,G,W;if(i5(Y),G=Z._events,G===void 0)G=Z._events=Object.create(null),Z._eventsCount=0;else{if(G.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),G=Z._events;W=G[J]}if(W===void 0)W=G[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=G[J]=Q?[Y,W]:[W,Y];else if(Q)W.unshift(Y);else W.push(Y);if(X=XY(Z),X>0&&W.length>X&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,mU(H)}}return Z}h.prototype.addListener=function(J,Y){return GY(this,J,Y,!1)};h.prototype.on=h.prototype.addListener;h.prototype.prependListener=function(J,Y){return GY(this,J,Y,!0)};function uU(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function WY(Z,J,Y){var Q={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},X=uU.bind(Q);return X.listener=Y,Q.wrapFn=X,X}h.prototype.once=function(J,Y){return i5(Y),this.on(J,WY(this,J,Y)),this};h.prototype.prependOnceListener=function(J,Y){return i5(Y),this.prependListener(J,WY(this,J,Y)),this};h.prototype.removeListener=function(J,Y){var Q,X,G,W,H;if(i5(Y),X=this._events,X===void 0)return this;if(Q=X[J],Q===void 0)return this;if(Q===Y||Q.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete X[J],X.removeListener)this.emit("removeListener",J,Q.listener||Y)}else if(typeof Q!=="function"){G=-1;for(W=Q.length-1;W>=0;W--)if(Q[W]===Y||Q[W].listener===Y){H=Q[W].listener,G=W;break}if(G<0)return this;if(G===0)Q.shift();else dU(Q,G);if(Q.length===1)X[J]=Q[0];if(X.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};h.prototype.off=h.prototype.removeListener;h.prototype.removeAllListeners=function(J){var Y,Q,X;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(Q[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete Q[J];return this}if(arguments.length===0){var G=Object.keys(Q),W;for(X=0;X<G.length;++X){if(W=G[X],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=Q[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(X=Y.length-1;X>=0;X--)this.removeListener(J,Y[X]);return this};function HY(Z,J,Y){var Q=Z._events;if(Q===void 0)return[];var X=Q[J];if(X===void 0)return[];if(typeof X==="function")return Y?[X.listener||X]:[X];return Y?cU(X):BY(X,X.length)}h.prototype.listeners=function(J){return HY(this,J,!0)};h.prototype.rawListeners=function(J){return HY(this,J,!1)};h.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return zY.call(Z,J)};h.prototype.listenerCount=zY;function zY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}h.prototype.eventNames=function(){return this._eventsCount>0?u5(this._events):[]};function BY(Z,J){var Y=Array(J);for(var Q=0;Q<J;++Q)Y[Q]=Z[Q];return Y}function dU(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function cU(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function pU(Z,J){return new Promise(function(Y,Q){function X(W){Z.removeListener(J,G),Q(W)}function G(){if(typeof Z.removeListener==="function")Z.removeListener("error",X);Y([].slice.call(arguments))}if(UY(Z,J,G,{once:!0}),J!=="error")lU(Z,X,{once:!0})})}function lU(Z,J,Y){if(typeof Z.on==="function")UY(Z,"error",J,Y)}function UY(Z,J,Y,Q){if(typeof Z.on==="function")if(Q.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function X(G){if(Q.once)Z.removeEventListener(J,X);Y(G)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var iU=H9.exports,KY=yU(iU),g;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(g||(g={}));var c1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(c1||(c1={}));var l0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(l0||(l0={}));var d5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(d5||(d5={}));var c5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(c5||(c5={}));var X9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(X9||(X9={}));var d;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(d||(d={}));var e;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(e||(e={}));function nU(Z,J){return Z.lastIndexOf(J,0)===0}function LY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function oU(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(LY(Y))Y.apply(globalThis.console,J)}}function aU(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function p5(Z,J,Y){if(Z>31)Z=31;let Q=aU(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+Q)}function sU(Z){return"error"in Z&&Z.error!==null}function l5(Z){return Math.min(Z*1000,2147483647)}class MY extends KY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=e.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(Q)=>{this._debug("subscription state",J,Q.oldState,"->",Q.newState)}),this.on("error",(Q)=>{this._debug("subscription error",J,Q)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===e.Unsubscribed)return Promise.reject({code:g.subscriptionUnsubscribed,message:this.state});if(this.state===e.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(function(){Y({code:g.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(d5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(c5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return s(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return s(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return s(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return s(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:g.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,Q=setTimeout(()=>{J({code:g.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:Q,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===e.Unsubscribed}_isSubscribing(){return this.state===e.Subscribing}_isSubscribed(){return this.state===e.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(e.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let Q in Y){if(!Y.hasOwnProperty(Q))continue;this._handlePublication(Y[Q])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),l5(Z.ttl))}_setSubscribing(Z,J){return s(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(e.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof P1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:g.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof P1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:g.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let Q=Y.reply.subscribe;if(this._handleSubscribeResponse(Q),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=X9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let Q=this._getEpoch();if(Q)J.epoch=Q}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===g.timeout){this._centrifuge._disconnect(c1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let Q=Promise.resolve();if(this._isSubscribed()){if(Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(e.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:g.subscriptionUnsubscribed,message:this.state}),Q}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:Q}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=Q}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===d.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=p5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:g.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new P1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let Q={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(Q).then((X)=>{let G=X.reply.sub_refresh;if(Z._refreshResponse(G),X.next)X.next()},(X)=>{if(Z._refreshError(X.error),X.next)X.next()})}).catch(function(J){if(J instanceof P1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:g.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),l5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return p5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(c5.unauthorized,"unauthorized",!0)}}class FY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class G9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Q)=>{J.onError(Q)},this._transport.onclose=(Q)=>{J.onClose(Q)},this._transport.onmessage=(Q)=>{J.onMessage(Q.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class OY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let Q=new EventTarget,X=Z.options.fetch;return X(J,Y).then(Z._handleErrors).then((G)=>{Q.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,B=G.body.getReader();return new Z.options.readableStream({start(U){function L(){return B.read().then(({done:$,value:M})=>{if($){Q.dispatchEvent(new Event("close")),U.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(M);while(H<W.length)if(W[H]===`
32
- `){let K=W.substring(0,H);Q.dispatchEvent(new MessageEvent("message",{data:K})),W=W.substring(H+1),H=0}else++H}else{let K=new Uint8Array(z.length+M.length);K.set(z),K.set(M,z.length),z=K;while(!0){let F=Z.options.decoder.decodeReply(z);if(F.ok){let I=z.slice(0,F.pos);Q.dispatchEvent(new MessageEvent("message",{data:I})),z=z.slice(F.pos);continue}break}}}catch(K){Q.dispatchEvent(new Event("error",{detail:K})),Q.dispatchEvent(new Event("close")),U.close();return}L()}).catch(function($){Q.dispatchEvent(new Event("error",{detail:$})),Q.dispatchEvent(new Event("close")),U.close();return})}return L()}})}).catch((G)=>{Q.dispatchEvent(new Event("error",{detail:G})),Q.dispatchEvent(new Event("close"))}),Q}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(Z,J,Y){this._protocol=Z,this._abortController=new AbortController;let Q,X;if(Z==="json")Q={Accept:"application/json","Content-Type":"application/json"},X=Y;else Q={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},X=Y;let G={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},W=this._fetchEventTarget(this,this.endpoint,G);W.addEventListener("open",()=>{J.onOpen()}),W.addEventListener("error",(H)=>{this._abortController.abort(),J.onError(H)}),W.addEventListener("close",()=>{this._abortController.abort(),J.onClose({code:4,reason:"connection closed"})}),W.addEventListener("message",(H)=>{J.onMessage(H.data)})}close(){this._abortController.abort()}send(Z,J,Y){let Q,X,G={session:J,node:Y,data:Z};if(this._protocol==="json")Q={"Content-Type":"application/json"},X=JSON.stringify(G);else Q={"Content-Type":"application/octet-stream"},X=this.options.encoder.encodeEmulationRequest(G);let W=this.options.fetch,H={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class $Y{constructor(Z,J){this.endpoint=Z,this.options=J,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(Z,J,Y){let Q;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Q=new URL(this.endpoint,globalThis.document.baseURI);else Q=new URL(this.endpoint);Q.searchParams.append("cf_connect",Y);let X={},G=new this.options.eventsource(Q.toString(),X);this._transport=G;let W=this;G.onopen=function(){J.onOpen()},G.onerror=function(H){G.close(),J.onError(H),J.onClose({code:4,reason:"connection closed"})},G.onmessage=function(H){J.onMessage(H.data)},W._onClose=function(){J.onClose({code:4,reason:"connection closed"})}}close(){if(this._transport.close(),this._onClose!==null)this._onClose()}send(Z,J,Y){let Q={session:J,node:Y,data:Z},X={"Content-Type":"application/json"},G=JSON.stringify(Q),W=this.options.fetch,H={method:"POST",headers:X,body:G,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class IY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(Z,J){return s(this,void 0,void 0,function*(){let Y;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Y=new URL(this.endpoint,globalThis.document.baseURI);else Y=new URL(this.endpoint);if(Z==="protobuf")Y.searchParams.append("cf_protocol","protobuf");this._protocol=Z;let Q=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{J.onClose({code:4,reason:"connection closed"})}).catch(()=>{J.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(G){this.close();return}let X;try{X=yield this._transport.createBidirectionalStream()}catch(G){this.close();return}this._stream=X,this._writer=this._stream.writable.getWriter(),Q.addEventListener("close",()=>{J.onClose({code:4,reason:"connection closed"})}),Q.addEventListener("message",(G)=>{J.onMessage(G.data)}),this._startReading(Q),J.onOpen()})}_startReading(Z){return s(this,void 0,void 0,function*(){let J=this._stream.readable.getReader(),Y="",Q=0,X=new Uint8Array;try{while(!0){let{done:G,value:W}=yield J.read();if(W.length>0)if(this._protocol==="json"){Y+=this._utf8decoder.decode(W);while(Q<Y.length)if(Y[Q]===`
33
- `){let H=Y.substring(0,Q);Z.dispatchEvent(new MessageEvent("message",{data:H})),Y=Y.substring(Q+1),Q=0}else++Q}else{let H=new Uint8Array(X.length+W.length);H.set(X),H.set(W,X.length),X=H;while(!0){let z=this.options.decoder.decodeReply(X);if(z.ok){let B=X.slice(0,z.pos);Z.dispatchEvent(new MessageEvent("message",{data:B})),X=X.slice(z.pos);continue}break}}if(G)break}}catch(G){Z.dispatchEvent(new Event("close"))}})}close(){return s(this,void 0,void 0,function*(){try{if(this._writer)yield this._writer.close();this._transport.close()}catch(Z){}})}send(Z){return s(this,void 0,void 0,function*(){let J;if(this._protocol==="json")J=new TextEncoder().encode(Z+`
34
- `);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var rU=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class VY{constructor(Z){this.a=Z,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let Z=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return Z}getChar(){return String.fromCharCode(this.getByte())}getInt(){let Z=0,J;while(this.haveBytes()&&(J=rU[127&this.getByte()])>=0)Z=(Z<<6)+J;return this.pos--,Z>>>0}}class qY{constructor(){this.a=[]}toByteArray(Z){if(Array.isArray(Z))return this.a;return new Uint8Array(this.a)}putArray(Z,J,Y){for(let Q=J;Q<Y;Q++)this.a.push(Z[Q])}}function tU(Z){let J=0,Y=0,Q=0,X=0,G=0,W=Z.length;while(W>=16)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,J=J+Z[G+4]|0,Y=Y+Z[G+5]|0,Q=Q+Z[G+6]|0,X=X+Z[G+7]|0,J=J+Z[G+8]|0,Y=Y+Z[G+9]|0,Q=Q+Z[G+10]|0,X=X+Z[G+11]|0,J=J+Z[G+12]|0,Y=Y+Z[G+13]|0,Q=Q+Z[G+14]|0,X=X+Z[G+15]|0,G+=16,W-=16;while(W>=4)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,G+=4,W-=4;switch(X=((X+(Q<<8)|0)+(Y<<16)|0)+(J<<24)|0,W){case 3:X=X+(Z[G+2]<<8)|0;case 2:X=X+(Z[G+1]<<16)|0;case 1:X=X+(Z[G+0]<<24)|0}return X>>>0}function eU(Z,J){let Y=0,Q=new VY(J),X=Z.length,G=J.length,W=Q.getInt();if(Q.getChar()!==`
35
- `)throw Error("size integer not terminated by '\\n'");let H=new qY;while(Q.haveBytes()){let z=Q.getInt(),B;switch(Q.getChar()){case"@":if(B=Q.getInt(),Q.haveBytes()&&Q.getChar()!==",")throw Error("copy command not terminated by ','");if(Y+=z,Y>W)throw Error("copy exceeds output file size");if(B+z>X)throw Error("copy extends past end of input");H.putArray(Z,B,B+z);break;case":":if(Y+=z,Y>W)throw Error("insert command gives an output larger than predicted");if(z>G)throw Error("insert count exceeds size of delta");H.putArray(Q.a,Q.pos,Q.pos+z),Q.pos+=z;break;case";":{let U=H.toByteArray(Z);if(z!==tU(U))throw Error("bad checksum");if(Y!==W)throw Error("generated size does not match predicted size");return U}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}class W9{name(){return"json"}encodeCommands(Z){return Z.map((J)=>JSON.stringify(J)).join(`
21
+ `;return{css:H,animationName:W}}}}function F0(Z){return L0(Z)}F0.Plugins=W1;F0.Style=OJ;F0.StyleRoot=qJ;F0.getState=q5;F0.keyframes=d8;var H1=F0;function c8(Z){return{all:Z=Z||new Map,on:function(J,Y){var Q=Z.get(J);Q?Q.push(Y):Z.set(J,[Y])},off:function(J,Y){var Q=Z.get(J);Q&&(Y?Q.splice(Q.indexOf(Y)>>>0,1):Z.set(J,[]))},emit:function(J,Y){var Q=Z.get(J);Q&&Q.slice().map(function(X){X(Y)}),(Q=Z.get("*"))&&Q.slice().map(function(X){X(J,Y)})}}}import{createContext as HB}from"react";var C0=c8(),zB=HB(C0),y1=zB;var K1=Object.create(null);K1.open="0";K1.close="1";K1.ping="2";K1.pong="3";K1.message="4";K1.upgrade="5";K1.noop="6";var f0=Object.create(null);Object.keys(K1).forEach((Z)=>{f0[K1[Z]]=Z});var j0={type:"error",data:"parser error"};var AJ=typeof Blob==="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",RJ=typeof ArrayBuffer==="function",PJ=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z&&Z.buffer instanceof ArrayBuffer},_0=({type:Z,data:J},Y,Q)=>{if(AJ&&J instanceof Blob)if(Y)return Q(J);else return DJ(J,Q);else if(RJ&&(J instanceof ArrayBuffer||PJ(J)))if(Y)return Q(J);else return DJ(new Blob([J]),Q);return Q(K1[Z]+(J||""))},DJ=(Z,J)=>{let Y=new FileReader;return Y.onload=function(){let Q=Y.result.split(",")[1];J("b"+(Q||""))},Y.readAsDataURL(Z)};function NJ(Z){if(Z instanceof Uint8Array)return Z;else if(Z instanceof ArrayBuffer)return new Uint8Array(Z);else return new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength)}var p8;function TJ(Z,J){if(AJ&&Z.data instanceof Blob)return Z.data.arrayBuffer().then(NJ).then(J);else if(RJ&&(Z.data instanceof ArrayBuffer||PJ(Z.data)))return J(NJ(Z.data));_0(Z,!1,(Y)=>{if(!p8)p8=new TextEncoder;J(p8.encode(Y))})}var v0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let Z=0;Z<64;Z++)v0["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(Z)]=Z;var wJ=(Z)=>{let J=Z.length*0.75,Y=Z.length,Q,X=0,G,W,H,z;if(Z[Z.length-1]==="="){if(J--,Z[Z.length-2]==="=")J--}let U=new ArrayBuffer(J),B=new Uint8Array(U);for(Q=0;Q<Y;Q+=4)G=v0[Z.charCodeAt(Q)],W=v0[Z.charCodeAt(Q+1)],H=v0[Z.charCodeAt(Q+2)],z=v0[Z.charCodeAt(Q+3)],B[X++]=G<<2|W>>4,B[X++]=(W&15)<<4|H>>2,B[X++]=(H&3)<<6|z&63;return U};var UB=typeof ArrayBuffer==="function",k0=(Z,J)=>{if(typeof Z!=="string")return{type:"message",data:EJ(Z,J)};let Y=Z.charAt(0);if(Y==="b")return{type:"message",data:BB(Z.substring(1),J)};if(!f0[Y])return j0;return Z.length>1?{type:f0[Y],data:Z.substring(1)}:{type:f0[Y]}},BB=(Z,J)=>{if(UB){let Y=wJ(Z);return EJ(Y,J)}else return{base64:!0,data:Z}},EJ=(Z,J)=>{switch(J){case"blob":if(Z instanceof Blob)return Z;else return new Blob([Z]);case"arraybuffer":default:if(Z instanceof ArrayBuffer)return Z;else return Z.buffer}};var SJ=String.fromCharCode(30),xJ=(Z,J)=>{let Y=Z.length,Q=Array(Y),X=0;Z.forEach((G,W)=>{_0(G,!1,(H)=>{if(Q[W]=H,++X===Y)J(Q.join(SJ))})})},CJ=(Z,J)=>{let Y=Z.split(SJ),Q=[];for(let X=0;X<Y.length;X++){let G=k0(Y[X],J);if(Q.push(G),G.type==="error")break}return Q};function fJ(){return new TransformStream({transform(Z,J){TJ(Z,(Y)=>{let Q=Y.length,X;if(Q<126)X=new Uint8Array(1),new DataView(X.buffer).setUint8(0,Q);else if(Q<65536){X=new Uint8Array(3);let G=new DataView(X.buffer);G.setUint8(0,126),G.setUint16(1,Q)}else{X=new Uint8Array(9);let G=new DataView(X.buffer);G.setUint8(0,127),G.setBigUint64(1,BigInt(Q))}if(Z.data&&typeof Z.data!=="string")X[0]|=128;J.enqueue(X),J.enqueue(Y)})}})}var l8;function f5(Z){return Z.reduce((J,Y)=>J+Y.length,0)}function j5(Z,J){if(Z[0].length===J)return Z.shift();let Y=new Uint8Array(J),Q=0;for(let X=0;X<J;X++)if(Y[X]=Z[0][Q++],Q===Z[0].length)Z.shift(),Q=0;if(Z.length&&Q<Z[0].length)Z[0]=Z[0].slice(Q);return Y}function jJ(Z,J){if(!l8)l8=new TextDecoder;let Y=[],Q=0,X=-1,G=!1;return new TransformStream({transform(W,H){Y.push(W);while(!0){if(Q===0){if(f5(Y)<1)break;let z=j5(Y,1);if(G=(z[0]&128)===128,X=z[0]&127,X<126)Q=3;else if(X===126)Q=1;else Q=2}else if(Q===1){if(f5(Y)<2)break;let z=j5(Y,2);X=new DataView(z.buffer,z.byteOffset,z.length).getUint16(0),Q=3}else if(Q===2){if(f5(Y)<8)break;let z=j5(Y,8),U=new DataView(z.buffer,z.byteOffset,z.length),B=U.getUint32(0);if(B>Math.pow(2,21)-1){H.enqueue(j0);break}X=B*Math.pow(2,32)+U.getUint32(4),Q=3}else{if(f5(Y)<X)break;let z=j5(Y,X);H.enqueue(k0(G?z:l8.decode(z),J)),Q=0}if(X===0||X>Z){H.enqueue(j0);break}}}})}var i8=4;function j(Z){if(Z)return KB(Z)}function KB(Z){for(var J in j.prototype)Z[J]=j.prototype[J];return Z}j.prototype.on=j.prototype.addEventListener=function(Z,J){return this._callbacks=this._callbacks||{},(this._callbacks["$"+Z]=this._callbacks["$"+Z]||[]).push(J),this};j.prototype.once=function(Z,J){function Y(){this.off(Z,Y),J.apply(this,arguments)}return Y.fn=J,this.on(Z,Y),this};j.prototype.off=j.prototype.removeListener=j.prototype.removeAllListeners=j.prototype.removeEventListener=function(Z,J){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var Y=this._callbacks["$"+Z];if(!Y)return this;if(arguments.length==1)return delete this._callbacks["$"+Z],this;var Q;for(var X=0;X<Y.length;X++)if(Q=Y[X],Q===J||Q.fn===J){Y.splice(X,1);break}if(Y.length===0)delete this._callbacks["$"+Z];return this};j.prototype.emit=function(Z){this._callbacks=this._callbacks||{};var J=Array(arguments.length-1),Y=this._callbacks["$"+Z];for(var Q=1;Q<arguments.length;Q++)J[Q-1]=arguments[Q];if(Y){Y=Y.slice(0);for(var Q=0,X=Y.length;Q<X;++Q)Y[Q].apply(this,J)}return this};j.prototype.emitReserved=j.prototype.emit;j.prototype.listeners=function(Z){return this._callbacks=this._callbacks||{},this._callbacks["$"+Z]||[]};j.prototype.hasListeners=function(Z){return!!this.listeners(Z).length};var w1=(()=>{if(typeof Promise==="function"&&typeof Promise.resolve==="function")return(J)=>Promise.resolve().then(J);else return(J,Y)=>Y(J,0)})(),n=(()=>{if(typeof self<"u")return self;else if(typeof window<"u")return window;else return Function("return this")()})(),_J="arraybuffer";function vJ(){}function _5(Z,...J){return J.reduce((Y,Q)=>{if(Z.hasOwnProperty(Q))Y[Q]=Z[Q];return Y},{})}var LB=n.setTimeout,MB=n.clearTimeout;function E1(Z,J){if(J.useNativeTimers)Z.setTimeoutFn=LB.bind(n),Z.clearTimeoutFn=MB.bind(n);else Z.setTimeoutFn=n.setTimeout.bind(n),Z.clearTimeoutFn=n.clearTimeout.bind(n)}var FB=1.33;function kJ(Z){if(typeof Z==="string")return $B(Z);return Math.ceil((Z.byteLength||Z.size)*FB)}function $B(Z){let J=0,Y=0;for(let Q=0,X=Z.length;Q<X;Q++)if(J=Z.charCodeAt(Q),J<128)Y+=1;else if(J<2048)Y+=2;else if(J<55296||J>=57344)Y+=3;else Q++,Y+=4;return Y}function v5(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function hJ(Z){let J="";for(let Y in Z)if(Z.hasOwnProperty(Y)){if(J.length)J+="&";J+=encodeURIComponent(Y)+"="+encodeURIComponent(Z[Y])}return J}function bJ(Z){let J={},Y=Z.split("&");for(let Q=0,X=Y.length;Q<X;Q++){let G=Y[Q].split("=");J[decodeURIComponent(G[0])]=decodeURIComponent(G[1])}return J}class n8 extends Error{constructor(Z,J,Y){super(Z);this.description=J,this.context=Y,this.type="TransportError"}}class m1 extends j{constructor(Z){super();this.writable=!1,E1(this,Z),this.opts=Z,this.query=Z.query,this.socket=Z.socket,this.supportsBinary=!Z.forceBase64}onError(Z,J,Y){return super.emitReserved("error",new n8(Z,J,Y)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){if(this.readyState==="opening"||this.readyState==="open")this.doClose(),this.onClose();return this}send(Z){if(this.readyState==="open")this.write(Z)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(Z){let J=k0(Z,this.socket.binaryType);this.onPacket(J)}onPacket(Z){super.emitReserved("packet",Z)}onClose(Z){this.readyState="closed",super.emitReserved("close",Z)}pause(Z){}createUri(Z,J={}){return Z+"://"+this._hostname()+this._port()+this.opts.path+this._query(J)}_hostname(){let Z=this.opts.hostname;return Z.indexOf(":")===-1?Z:"["+Z+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80))return":"+this.opts.port;else return""}_query(Z){let J=hJ(Z);return J.length?"?"+J:""}}class k5 extends m1{constructor(){super(...arguments);this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(Z){this.readyState="pausing";let J=()=>{this.readyState="paused",Z()};if(this._polling||!this.writable){let Y=0;if(this._polling)Y++,this.once("pollComplete",function(){--Y||J()});if(!this.writable)Y++,this.once("drain",function(){--Y||J()})}else J()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(Z){let J=(Y)=>{if(this.readyState==="opening"&&Y.type==="open")this.onOpen();if(Y.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Y)};if(CJ(Z,this.socket.binaryType).forEach(J),this.readyState!=="closed"){if(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open")this._poll()}}doClose(){let Z=()=>{this.write([{type:"close"}])};if(this.readyState==="open")Z();else this.once("open",Z)}write(Z){this.writable=!1,xJ(Z,(J)=>{this.doWrite(J,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let Z=this.opts.secure?"https":"http",J=this.query||{};if(this.opts.timestampRequests!==!1)J[this.opts.timestampParam]=v5();if(!this.supportsBinary&&!J.sid)J.b64=1;return this.createUri(Z,J)}}var gJ=!1;try{gJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch(Z){}var yJ=gJ;function OB(){}class uJ extends k5{constructor(Z){super(Z);if(typeof location<"u"){let J=location.protocol==="https:",Y=location.port;if(!Y)Y=J?"443":"80";this.xd=typeof location<"u"&&Z.hostname!==location.hostname||Y!==Z.port}}doWrite(Z,J){let Y=this.request({method:"POST",data:Z});Y.on("success",J),Y.on("error",(Q,X)=>{this.onError("xhr post error",Q,X)})}doPoll(){let Z=this.request();Z.on("data",this.onData.bind(this)),Z.on("error",(J,Y)=>{this.onError("xhr poll error",J,Y)}),this.pollXhr=Z}}class I1 extends j{constructor(Z,J,Y){super();this.createRequest=Z,E1(this,Y),this._opts=Y,this._method=Y.method||"GET",this._uri=J,this._data=Y.data!==void 0?Y.data:null,this._create()}_create(){var Z;let J=_5(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");J.xdomain=!!this._opts.xd;let Y=this._xhr=this.createRequest(J);try{Y.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){Y.setDisableHeaderCheck&&Y.setDisableHeaderCheck(!0);for(let Q in this._opts.extraHeaders)if(this._opts.extraHeaders.hasOwnProperty(Q))Y.setRequestHeader(Q,this._opts.extraHeaders[Q])}}catch(Q){}if(this._method==="POST")try{Y.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(Q){}try{Y.setRequestHeader("Accept","*/*")}catch(Q){}if((Z=this._opts.cookieJar)===null||Z===void 0||Z.addCookies(Y),"withCredentials"in Y)Y.withCredentials=this._opts.withCredentials;if(this._opts.requestTimeout)Y.timeout=this._opts.requestTimeout;Y.onreadystatechange=()=>{var Q;if(Y.readyState===3)(Q=this._opts.cookieJar)===null||Q===void 0||Q.parseCookies(Y.getResponseHeader("set-cookie"));if(Y.readyState!==4)return;if(Y.status===200||Y.status===1223)this._onLoad();else this.setTimeoutFn(()=>{this._onError(typeof Y.status==="number"?Y.status:0)},0)},Y.send(this._data)}catch(Q){this.setTimeoutFn(()=>{this._onError(Q)},0);return}if(typeof document<"u")this._index=I1.requestsCount++,I1.requests[this._index]=this}_onError(Z){this.emitReserved("error",Z,this._xhr),this._cleanup(!0)}_cleanup(Z){if(typeof this._xhr>"u"||this._xhr===null)return;if(this._xhr.onreadystatechange=OB,Z)try{this._xhr.abort()}catch(J){}if(typeof document<"u")delete I1.requests[this._index];this._xhr=null}_onLoad(){let Z=this._xhr.responseText;if(Z!==null)this.emitReserved("data",Z),this.emitReserved("success"),this._cleanup()}abort(){this._cleanup()}}I1.requestsCount=0;I1.requests={};if(typeof document<"u"){if(typeof attachEvent==="function")attachEvent("onunload",mJ);else if(typeof addEventListener==="function"){let Z="onpagehide"in n?"pagehide":"unload";addEventListener(Z,mJ,!1)}}function mJ(){for(let Z in I1.requests)if(I1.requests.hasOwnProperty(Z))I1.requests[Z].abort()}var VB=function(){let Z=dJ({xdomain:!1});return Z&&Z.responseType!==null}();class t1 extends uJ{constructor(Z){super(Z);let J=Z&&Z.forceBase64;this.supportsBinary=VB&&!J}request(Z={}){return Object.assign(Z,{xd:this.xd},this.opts),new I1(dJ,this.uri(),Z)}}function dJ(Z){let J=Z.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!J||yJ))return new XMLHttpRequest}catch(Y){}if(!J)try{return new n[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(Y){}}var cJ=typeof navigator<"u"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class pJ extends m1{get name(){return"websocket"}doOpen(){let Z=this.uri(),J=this.opts.protocols,Y=cJ?{}:_5(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders)Y.headers=this.opts.extraHeaders;try{this.ws=this.createSocket(Z,J,Y)}catch(Q){return this.emitReserved("error",Q)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref)this.ws._socket.unref();this.onOpen()},this.ws.onclose=(Z)=>this.onClose({description:"websocket connection closed",context:Z}),this.ws.onmessage=(Z)=>this.onData(Z.data),this.ws.onerror=(Z)=>this.onError("websocket error",Z)}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;_0(Y,this.supportsBinary,(X)=>{try{this.doWrite(Y,X)}catch(G){}if(Q)w1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){if(typeof this.ws<"u")this.ws.onerror=()=>{},this.ws.close(),this.ws=null}uri(){let Z=this.opts.secure?"wss":"ws",J=this.query||{};if(this.opts.timestampRequests)J[this.opts.timestampParam]=v5();if(!this.supportsBinary)J.b64=1;return this.createUri(Z,J)}}var o8=n.WebSocket||n.MozWebSocket;class e1 extends pJ{createSocket(Z,J,Y){return!cJ?J?new o8(Z,J):new o8(Z):new o8(Z,J,Y)}doWrite(Z,J){this.ws.send(J)}}class h0 extends m1{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(Z){return this.emitReserved("error",Z)}this._transport.closed.then(()=>{this.onClose()}).catch((Z)=>{this.onError("webtransport error",Z)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then((Z)=>{let J=jJ(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Y=Z.readable.pipeThrough(J).getReader(),Q=fJ();Q.readable.pipeTo(Z.writable),this._writer=Q.writable.getWriter();let X=()=>{Y.read().then(({done:W,value:H})=>{if(W)return;this.onPacket(H),X()}).catch((W)=>{})};X();let G={type:"open"};if(this.query.sid)G.data=`{"sid":"${this.query.sid}"}`;this._writer.write(G).then(()=>this.onOpen())})})}write(Z){this.writable=!1;for(let J=0;J<Z.length;J++){let Y=Z[J],Q=J===Z.length-1;this._writer.write(Y).then(()=>{if(Q)w1(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var Z;(Z=this._transport)===null||Z===void 0||Z.close()}}var a8={websocket:e1,webtransport:h0,polling:t1};var IB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function $0(Z){if(Z.length>8000)throw"URI too long";let J=Z,Y=Z.indexOf("["),Q=Z.indexOf("]");if(Y!=-1&&Q!=-1)Z=Z.substring(0,Y)+Z.substring(Y,Q).replace(/:/g,";")+Z.substring(Q,Z.length);let X=IB.exec(Z||""),G={},W=14;while(W--)G[qB[W]]=X[W]||"";if(Y!=-1&&Q!=-1)G.source=J,G.host=G.host.substring(1,G.host.length-1).replace(/;/g,":"),G.authority=G.authority.replace("[","").replace("]","").replace(/;/g,":"),G.ipv6uri=!0;return G.pathNames=DB(G,G.path),G.queryKey=NB(G,G.query),G}function DB(Z,J){let Y=/\/{2,9}/g,Q=J.replace(Y,"/").split("/");if(J.slice(0,1)=="/"||J.length===0)Q.splice(0,1);if(J.slice(-1)=="/")Q.splice(Q.length-1,1);return Q}function NB(Z,J){let Y={};return J.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,X,G){if(X)Y[X]=G}),Y}var s8=typeof addEventListener==="function"&&typeof removeEventListener==="function",h5=[];if(s8)addEventListener("offline",()=>{h5.forEach((Z)=>Z())},!1);class S1 extends j{constructor(Z,J){super();if(this.binaryType=_J,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,Z&&typeof Z==="object")J=Z,Z=null;if(Z){let Y=$0(Z);if(J.hostname=Y.host,J.secure=Y.protocol==="https"||Y.protocol==="wss",J.port=Y.port,Y.query)J.query=Y.query}else if(J.host)J.hostname=$0(J.host).host;if(E1(this,J),this.secure=J.secure!=null?J.secure:typeof location<"u"&&location.protocol==="https:",J.hostname&&!J.port)J.port=this.secure?"443":"80";if(this.hostname=J.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=J.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},J.transports.forEach((Y)=>{let Q=Y.prototype.name;this.transports.push(Q),this._transportsByName[Q]=Y}),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},J),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query==="string")this.opts.query=bJ(this.opts.query);if(s8){if(this.opts.closeOnBeforeunload)this._beforeunloadEventListener=()=>{if(this.transport)this.transport.removeAllListeners(),this.transport.close()},addEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this.hostname!=="localhost")this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},h5.push(this._offlineEventListener)}if(this.opts.withCredentials)this._cookieJar=vJ();this._open()}createTransport(Z){let J=Object.assign({},this.opts.query);if(J.EIO=i8,J.transport=Z,this.id)J.sid=this.id;let Y=Object.assign({},this.opts,{query:J,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[Z]);return new this._transportsByName[Z](Y)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let Z=this.opts.rememberUpgrade&&S1.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let J=this.createTransport(Z);J.open(),this.setTransport(J)}setTransport(Z){if(this.transport)this.transport.removeAllListeners();this.transport=Z,Z.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",(J)=>this._onClose("transport close",J))}onOpen(){this.readyState="open",S1.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(Z){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",Z),this.emitReserved("heartbeat"),Z.type){case"open":this.onHandshake(JSON.parse(Z.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let J=Error("server error");J.code=Z.data,this._onError(J);break;case"message":this.emitReserved("data",Z.data),this.emitReserved("message",Z.data);break}}onHandshake(Z){if(this.emitReserved("handshake",Z),this.id=Z.sid,this.transport.query.sid=Z.sid,this._pingInterval=Z.pingInterval,this._pingTimeout=Z.pingTimeout,this._maxPayload=Z.maxPayload,this.onOpen(),this.readyState==="closed")return;this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let Z=this._pingInterval+this._pingTimeout;if(this._pingTimeoutTime=Date.now()+Z,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},Z),this.opts.autoUnref)this._pingTimeoutTimer.unref()}_onDrain(){if(this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0)this.emitReserved("drain");else this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let Z=this._getWritablePackets();this.transport.send(Z),this._prevBufferLen=Z.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let J=1;for(let Y=0;Y<this.writeBuffer.length;Y++){let Q=this.writeBuffer[Y].data;if(Q)J+=kJ(Q);if(Y>0&&J>this._maxPayload)return this.writeBuffer.slice(0,Y);J+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let Z=Date.now()>this._pingTimeoutTime;if(Z)this._pingTimeoutTime=0,w1(()=>{this._onClose("ping timeout")},this.setTimeoutFn);return Z}write(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}send(Z,J,Y){return this._sendPacket("message",Z,J,Y),this}_sendPacket(Z,J,Y,Q){if(typeof J==="function")Q=J,J=void 0;if(typeof Y==="function")Q=Y,Y=null;if(this.readyState==="closing"||this.readyState==="closed")return;Y=Y||{},Y.compress=Y.compress!==!1;let X={type:Z,data:J,options:Y};if(this.emitReserved("packetCreate",X),this.writeBuffer.push(X),Q)this.once("flush",Q);this.flush()}close(){let Z=()=>{this._onClose("forced close"),this.transport.close()},J=()=>{this.off("upgrade",J),this.off("upgradeError",J),Z()},Y=()=>{this.once("upgrade",J),this.once("upgradeError",J)};if(this.readyState==="opening"||this.readyState==="open")if(this.readyState="closing",this.writeBuffer.length)this.once("drain",()=>{if(this.upgrading)Y();else Z()});else if(this.upgrading)Y();else Z();return this}_onError(Z){if(S1.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",Z),this._onClose("transport error",Z)}_onClose(Z,J){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),s8){if(this._beforeunloadEventListener)removeEventListener("beforeunload",this._beforeunloadEventListener,!1);if(this._offlineEventListener){let Y=h5.indexOf(this._offlineEventListener);if(Y!==-1)h5.splice(Y,1)}}this.readyState="closed",this.id=null,this.emitReserved("close",Z,J),this.writeBuffer=[],this._prevBufferLen=0}}}S1.protocol=i8;class r8 extends S1{constructor(){super(...arguments);this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let Z=0;Z<this._upgrades.length;Z++)this._probe(this._upgrades[Z])}_probe(Z){let J=this.createTransport(Z),Y=!1;S1.priorWebsocketSuccess=!1;let Q=()=>{if(Y)return;J.send([{type:"ping",data:"probe"}]),J.once("packet",(B)=>{if(Y)return;if(B.type==="pong"&&B.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",J),!J)return;S1.priorWebsocketSuccess=J.name==="websocket",this.transport.pause(()=>{if(Y)return;if(this.readyState==="closed")return;U(),this.setTransport(J),J.send([{type:"upgrade"}]),this.emitReserved("upgrade",J),J=null,this.upgrading=!1,this.flush()})}else{let L=Error("probe error");L.transport=J.name,this.emitReserved("upgradeError",L)}})};function X(){if(Y)return;Y=!0,U(),J.close(),J=null}let G=(B)=>{let L=Error("probe error: "+B);L.transport=J.name,X(),this.emitReserved("upgradeError",L)};function W(){G("transport closed")}function H(){G("socket closed")}function z(B){if(J&&B.name!==J.name)X()}let U=()=>{J.removeListener("open",Q),J.removeListener("error",G),J.removeListener("close",W),this.off("close",H),this.off("upgrading",z)};if(J.once("open",Q),J.once("error",G),J.once("close",W),this.once("close",H),this.once("upgrading",z),this._upgrades.indexOf("webtransport")!==-1&&Z!=="webtransport")this.setTimeoutFn(()=>{if(!Y)J.open()},200);else J.open()}onHandshake(Z){this._upgrades=this._filterUpgrades(Z.upgrades),super.onHandshake(Z)}_filterUpgrades(Z){let J=[];for(let Y=0;Y<Z.length;Y++)if(~this.transports.indexOf(Z[Y]))J.push(Z[Y]);return J}}class b0 extends r8{constructor(Z,J={}){let Y=typeof Z==="object"?Z:J;if(!Y.transports||Y.transports&&typeof Y.transports[0]==="string")Y.transports=(Y.transports||["polling","websocket","webtransport"]).map((Q)=>a8[Q]).filter((Q)=>!!Q);super(Z,Y)}}var RI=b0.protocol;function lJ(Z,J="",Y){let Q=Z;if(Y=Y||typeof location<"u"&&location,Z==null)Z=Y.protocol+"//"+Y.host;if(typeof Z==="string"){if(Z.charAt(0)==="/")if(Z.charAt(1)==="/")Z=Y.protocol+Z;else Z=Y.host+Z;if(!/^(https?|wss?):\/\//.test(Z))if(typeof Y<"u")Z=Y.protocol+"//"+Z;else Z="https://"+Z;Q=$0(Z)}if(!Q.port){if(/^(http|ws)$/.test(Q.protocol))Q.port="80";else if(/^(http|ws)s$/.test(Q.protocol))Q.port="443"}Q.path=Q.path||"/";let G=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+G+":"+Q.port+J,Q.href=Q.protocol+"://"+G+(Y&&Y.port===Q.port?"":":"+Q.port),Q}var J9={};H7(J9,{protocol:()=>sJ,isPacketValid:()=>fB,PacketType:()=>T,Encoder:()=>rJ,Decoder:()=>Z9});var RB=typeof ArrayBuffer==="function",PB=(Z)=>{return typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(Z):Z.buffer instanceof ArrayBuffer},iJ=Object.prototype.toString,TB=typeof Blob==="function"||typeof Blob<"u"&&iJ.call(Blob)==="[object BlobConstructor]",wB=typeof File==="function"||typeof File<"u"&&iJ.call(File)==="[object FileConstructor]";function y0(Z){return RB&&(Z instanceof ArrayBuffer||PB(Z))||TB&&Z instanceof Blob||wB&&Z instanceof File}function g0(Z,J){if(!Z||typeof Z!=="object")return!1;if(Array.isArray(Z)){for(let Y=0,Q=Z.length;Y<Q;Y++)if(g0(Z[Y]))return!0;return!1}if(y0(Z))return!0;if(Z.toJSON&&typeof Z.toJSON==="function"&&arguments.length===1)return g0(Z.toJSON(),!0);for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y)&&g0(Z[Y]))return!0;return!1}function nJ(Z){let J=[],Y=Z.data,Q=Z;return Q.data=t8(Y,J),Q.attachments=J.length,{packet:Q,buffers:J}}function t8(Z,J){if(!Z)return Z;if(y0(Z)){let Y={_placeholder:!0,num:J.length};return J.push(Z),Y}else if(Array.isArray(Z)){let Y=Array(Z.length);for(let Q=0;Q<Z.length;Q++)Y[Q]=t8(Z[Q],J);return Y}else if(typeof Z==="object"&&!(Z instanceof Date)){let Y={};for(let Q in Z)if(Object.prototype.hasOwnProperty.call(Z,Q))Y[Q]=t8(Z[Q],J);return Y}return Z}function oJ(Z,J){return Z.data=e8(Z.data,J),delete Z.attachments,Z}function e8(Z,J){if(!Z)return Z;if(Z&&Z._placeholder===!0)if(typeof Z.num==="number"&&Z.num>=0&&Z.num<J.length)return J[Z.num];else throw Error("illegal attachments");else if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)Z[Y]=e8(Z[Y],J);else if(typeof Z==="object"){for(let Y in Z)if(Object.prototype.hasOwnProperty.call(Z,Y))Z[Y]=e8(Z[Y],J)}return Z}var aJ=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],sJ=5,T;(function(Z){Z[Z.CONNECT=0]="CONNECT",Z[Z.DISCONNECT=1]="DISCONNECT",Z[Z.EVENT=2]="EVENT",Z[Z.ACK=3]="ACK",Z[Z.CONNECT_ERROR=4]="CONNECT_ERROR",Z[Z.BINARY_EVENT=5]="BINARY_EVENT",Z[Z.BINARY_ACK=6]="BINARY_ACK"})(T||(T={}));class rJ{constructor(Z){this.replacer=Z}encode(Z){if(Z.type===T.EVENT||Z.type===T.ACK){if(g0(Z))return this.encodeAsBinary({type:Z.type===T.EVENT?T.BINARY_EVENT:T.BINARY_ACK,nsp:Z.nsp,data:Z.data,id:Z.id})}return[this.encodeAsString(Z)]}encodeAsString(Z){let J=""+Z.type;if(Z.type===T.BINARY_EVENT||Z.type===T.BINARY_ACK)J+=Z.attachments+"-";if(Z.nsp&&Z.nsp!=="/")J+=Z.nsp+",";if(Z.id!=null)J+=Z.id;if(Z.data!=null)J+=JSON.stringify(Z.data,this.replacer);return J}encodeAsBinary(Z){let J=nJ(Z),Y=this.encodeAsString(J.packet),Q=J.buffers;return Q.unshift(Y),Q}}class Z9 extends j{constructor(Z){super();this.reviver=Z}add(Z){let J;if(typeof Z==="string"){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");J=this.decodeString(Z);let Y=J.type===T.BINARY_EVENT;if(Y||J.type===T.BINARY_ACK){if(J.type=Y?T.EVENT:T.ACK,this.reconstructor=new tJ(J),J.attachments===0)super.emitReserved("decoded",J)}else super.emitReserved("decoded",J)}else if(y0(Z)||Z.base64){if(!this.reconstructor)throw Error("got binary data when not reconstructing a packet");else if(J=this.reconstructor.takeBinaryData(Z),J)this.reconstructor=null,super.emitReserved("decoded",J)}else throw Error("Unknown type: "+Z)}decodeString(Z){let J=0,Y={type:Number(Z.charAt(0))};if(T[Y.type]===void 0)throw Error("unknown packet type "+Y.type);if(Y.type===T.BINARY_EVENT||Y.type===T.BINARY_ACK){let X=J+1;while(Z.charAt(++J)!=="-"&&J!=Z.length);let G=Z.substring(X,J);if(G!=Number(G)||Z.charAt(J)!=="-")throw Error("Illegal attachments");Y.attachments=Number(G)}if(Z.charAt(J+1)==="/"){let X=J+1;while(++J){if(Z.charAt(J)===",")break;if(J===Z.length)break}Y.nsp=Z.substring(X,J)}else Y.nsp="/";let Q=Z.charAt(J+1);if(Q!==""&&Number(Q)==Q){let X=J+1;while(++J){let G=Z.charAt(J);if(G==null||Number(G)!=G){--J;break}if(J===Z.length)break}Y.id=Number(Z.substring(X,J+1))}if(Z.charAt(++J)){let X=this.tryParse(Z.substr(J));if(Z9.isPayloadValid(Y.type,X))Y.data=X;else throw Error("invalid payload")}return Y}tryParse(Z){try{return JSON.parse(Z,this.reviver)}catch(J){return!1}}static isPayloadValid(Z,J){switch(Z){case T.CONNECT:return b5(J);case T.DISCONNECT:return J===void 0;case T.CONNECT_ERROR:return typeof J==="string"||b5(J);case T.EVENT:case T.BINARY_EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case T.ACK:case T.BINARY_ACK:return Array.isArray(J)}}destroy(){if(this.reconstructor)this.reconstructor.finishedReconstruction(),this.reconstructor=null}}class tJ{constructor(Z){this.packet=Z,this.buffers=[],this.reconPack=Z}takeBinaryData(Z){if(this.buffers.push(Z),this.buffers.length===this.reconPack.attachments){let J=oJ(this.reconPack,this.buffers);return this.finishedReconstruction(),J}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function EB(Z){return typeof Z==="string"}var SB=Number.isInteger||function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z};function xB(Z){return Z===void 0||SB(Z)}function b5(Z){return Object.prototype.toString.call(Z)==="[object Object]"}function CB(Z,J){switch(Z){case T.CONNECT:return J===void 0||b5(J);case T.DISCONNECT:return J===void 0;case T.EVENT:return Array.isArray(J)&&(typeof J[0]==="number"||typeof J[0]==="string"&&aJ.indexOf(J[0])===-1);case T.ACK:return Array.isArray(J);case T.CONNECT_ERROR:return typeof J==="string"||b5(J);default:return!1}}function fB(Z){return EB(Z.nsp)&&xB(Z.id)&&CB(Z.type,Z.data)}function Y1(Z,J,Y){return Z.on(J,Y),function(){Z.off(J,Y)}}var jB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class m0 extends j{constructor(Z,J,Y){super();if(this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=Z,this.nsp=J,Y&&Y.auth)this.auth=Y.auth;if(this._opts=Object.assign({},Y),this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let Z=this.io;this.subs=[Y1(Z,"open",this.onopen.bind(this)),Y1(Z,"packet",this.onpacket.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;if(this.subEvents(),!this.io._reconnecting)this.io.open();if(this.io._readyState==="open")this.onopen();return this}open(){return this.connect()}send(...Z){return Z.unshift("message"),this.emit.apply(this,Z),this}emit(Z,...J){var Y,Q,X;if(jB.hasOwnProperty(Z))throw Error('"'+Z.toString()+'" is a reserved event name');if(J.unshift(Z),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(J),this;let G={type:T.EVENT,data:J};if(G.options={},G.options.compress=this.flags.compress!==!1,typeof J[J.length-1]==="function"){let U=this.ids++,B=J.pop();this._registerAckCallback(U,B),G.id=U}let W=(Q=(Y=this.io.engine)===null||Y===void 0?void 0:Y.transport)===null||Q===void 0?void 0:Q.writable,H=this.connected&&!((X=this.io.engine)===null||X===void 0?void 0:X._hasPingExpired());if(this.flags.volatile&&!W);else if(H)this.notifyOutgoingListeners(G),this.packet(G);else this.sendBuffer.push(G);return this.flags={},this}_registerAckCallback(Z,J){var Y;let Q=(Y=this.flags.timeout)!==null&&Y!==void 0?Y:this._opts.ackTimeout;if(Q===void 0){this.acks[Z]=J;return}let X=this.io.setTimeoutFn(()=>{delete this.acks[Z];for(let W=0;W<this.sendBuffer.length;W++)if(this.sendBuffer[W].id===Z)this.sendBuffer.splice(W,1);J.call(this,Error("operation has timed out"))},Q),G=(...W)=>{this.io.clearTimeoutFn(X),J.apply(this,W)};G.withError=!0,this.acks[Z]=G}emitWithAck(Z,...J){return new Promise((Y,Q)=>{let X=(G,W)=>{return G?Q(G):Y(W)};X.withError=!0,J.push(X),this.emit(Z,...J)})}_addToQueue(Z){let J;if(typeof Z[Z.length-1]==="function")J=Z.pop();let Y={id:this._queueSeq++,tryCount:0,pending:!1,args:Z,flags:Object.assign({fromQueue:!0},this.flags)};Z.push((Q,...X)=>{if(Y!==this._queue[0]);if(Q!==null){if(Y.tryCount>this._opts.retries){if(this._queue.shift(),J)J(Q)}}else if(this._queue.shift(),J)J(null,...X);return Y.pending=!1,this._drainQueue()}),this._queue.push(Y),this._drainQueue()}_drainQueue(Z=!1){if(!this.connected||this._queue.length===0)return;let J=this._queue[0];if(J.pending&&!Z)return;J.pending=!0,J.tryCount++,this.flags=J.flags,this.emit.apply(this,J.args)}packet(Z){Z.nsp=this.nsp,this.io._packet(Z)}onopen(){if(typeof this.auth=="function")this.auth((Z)=>{this._sendConnectPacket(Z)});else this._sendConnectPacket(this.auth)}_sendConnectPacket(Z){this.packet({type:T.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},Z):Z})}onerror(Z){if(!this.connected)this.emitReserved("connect_error",Z)}onclose(Z,J){this.connected=!1,delete this.id,this.emitReserved("disconnect",Z,J),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((Z)=>{if(!this.sendBuffer.some((Y)=>String(Y.id)===Z)){let Y=this.acks[Z];if(delete this.acks[Z],Y.withError)Y.call(this,Error("socket has been disconnected"))}})}onpacket(Z){if(Z.nsp!==this.nsp)return;switch(Z.type){case T.CONNECT:if(Z.data&&Z.data.sid)this.onconnect(Z.data.sid,Z.data.pid);else this.emitReserved("connect_error",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 T.EVENT:case T.BINARY_EVENT:this.onevent(Z);break;case T.ACK:case T.BINARY_ACK:this.onack(Z);break;case T.DISCONNECT:this.ondisconnect();break;case T.CONNECT_ERROR:this.destroy();let Y=Error(Z.data.message);Y.data=Z.data.data,this.emitReserved("connect_error",Y);break}}onevent(Z){let J=Z.data||[];if(Z.id!=null)J.push(this.ack(Z.id));if(this.connected)this.emitEvent(J);else this.receiveBuffer.push(Object.freeze(J))}emitEvent(Z){if(this._anyListeners&&this._anyListeners.length){let J=this._anyListeners.slice();for(let Y of J)Y.apply(this,Z)}if(super.emit.apply(this,Z),this._pid&&Z.length&&typeof Z[Z.length-1]==="string")this._lastOffset=Z[Z.length-1]}ack(Z){let J=this,Y=!1;return function(...Q){if(Y)return;Y=!0,J.packet({type:T.ACK,id:Z,data:Q})}}onack(Z){let J=this.acks[Z.id];if(typeof J!=="function")return;if(delete this.acks[Z.id],J.withError)Z.data.unshift(null);J.apply(this,Z.data)}onconnect(Z,J){this.id=Z,this.recovered=J&&this._pid===J,this._pid=J,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((Z)=>this.emitEvent(Z)),this.receiveBuffer=[],this.sendBuffer.forEach((Z)=>{this.notifyOutgoingListeners(Z),this.packet(Z)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){if(this.subs)this.subs.forEach((Z)=>Z()),this.subs=void 0;this.io._destroy(this)}disconnect(){if(this.connected)this.packet({type:T.DISCONNECT});if(this.destroy(),this.connected)this.onclose("io client disconnect");return this}close(){return this.disconnect()}compress(Z){return this.flags.compress=Z,this}get volatile(){return this.flags.volatile=!0,this}timeout(Z){return this.flags.timeout=Z,this}onAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(Z),this}prependAny(Z){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(Z),this}offAny(Z){if(!this._anyListeners)return this;if(Z){let J=this._anyListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(Z),this}prependAnyOutgoing(Z){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(Z),this}offAnyOutgoing(Z){if(!this._anyOutgoingListeners)return this;if(Z){let J=this._anyOutgoingListeners;for(let Y=0;Y<J.length;Y++)if(Z===J[Y])return J.splice(Y,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(Z){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let J=this._anyOutgoingListeners.slice();for(let Y of J)Y.apply(this,Z.data)}}}function Z0(Z){Z=Z||{},this.ms=Z.min||100,this.max=Z.max||1e4,this.factor=Z.factor||2,this.jitter=Z.jitter>0&&Z.jitter<=1?Z.jitter:0,this.attempts=0}Z0.prototype.duration=function(){var Z=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var J=Math.random(),Y=Math.floor(J*this.jitter*Z);Z=(Math.floor(J*10)&1)==0?Z-Y:Z+Y}return Math.min(Z,this.max)|0};Z0.prototype.reset=function(){this.attempts=0};Z0.prototype.setMin=function(Z){this.ms=Z};Z0.prototype.setMax=function(Z){this.max=Z};Z0.prototype.setJitter=function(Z){this.jitter=Z};class u0 extends j{constructor(Z,J){var Y;super();if(this.nsps={},this.subs=[],Z&&typeof Z==="object")J=Z,Z=void 0;J=J||{},J.path=J.path||"/socket.io",this.opts=J,E1(this,J),this.reconnection(J.reconnection!==!1),this.reconnectionAttempts(J.reconnectionAttempts||1/0),this.reconnectionDelay(J.reconnectionDelay||1000),this.reconnectionDelayMax(J.reconnectionDelayMax||5000),this.randomizationFactor((Y=J.randomizationFactor)!==null&&Y!==void 0?Y:0.5),this.backoff=new Z0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(J.timeout==null?20000:J.timeout),this._readyState="closed",this.uri=Z;let Q=J.parser||J9;if(this.encoder=new Q.Encoder,this.decoder=new Q.Decoder,this._autoConnect=J.autoConnect!==!1,this._autoConnect)this.open()}reconnection(Z){if(!arguments.length)return this._reconnection;if(this._reconnection=!!Z,!Z)this.skipReconnect=!0;return this}reconnectionAttempts(Z){if(Z===void 0)return this._reconnectionAttempts;return this._reconnectionAttempts=Z,this}reconnectionDelay(Z){var J;if(Z===void 0)return this._reconnectionDelay;return this._reconnectionDelay=Z,(J=this.backoff)===null||J===void 0||J.setMin(Z),this}randomizationFactor(Z){var J;if(Z===void 0)return this._randomizationFactor;return this._randomizationFactor=Z,(J=this.backoff)===null||J===void 0||J.setJitter(Z),this}reconnectionDelayMax(Z){var J;if(Z===void 0)return this._reconnectionDelayMax;return this._reconnectionDelayMax=Z,(J=this.backoff)===null||J===void 0||J.setMax(Z),this}timeout(Z){if(!arguments.length)return this._timeout;return this._timeout=Z,this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0)this.reconnect()}open(Z){if(~this._readyState.indexOf("open"))return this;this.engine=new b0(this.uri,this.opts);let J=this.engine,Y=this;this._readyState="opening",this.skipReconnect=!1;let Q=Y1(J,"open",function(){Y.onopen(),Z&&Z()}),X=(W)=>{if(this.cleanup(),this._readyState="closed",this.emitReserved("error",W),Z)Z(W);else this.maybeReconnectOnOpen()},G=Y1(J,"error",X);if(this._timeout!==!1){let W=this._timeout,H=this.setTimeoutFn(()=>{Q(),X(Error("timeout")),J.close()},W);if(this.opts.autoUnref)H.unref();this.subs.push(()=>{this.clearTimeoutFn(H)})}return this.subs.push(Q),this.subs.push(G),this}connect(Z){return this.open(Z)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let Z=this.engine;this.subs.push(Y1(Z,"ping",this.onping.bind(this)),Y1(Z,"data",this.ondata.bind(this)),Y1(Z,"error",this.onerror.bind(this)),Y1(Z,"close",this.onclose.bind(this)),Y1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(Z){try{this.decoder.add(Z)}catch(J){this.onclose("parse error",J)}}ondecoded(Z){w1(()=>{this.emitReserved("packet",Z)},this.setTimeoutFn)}onerror(Z){this.emitReserved("error",Z)}socket(Z,J){let Y=this.nsps[Z];if(!Y)Y=new m0(this,Z,J),this.nsps[Z]=Y;else if(this._autoConnect&&!Y.active)Y.connect();return Y}_destroy(Z){let J=Object.keys(this.nsps);for(let Y of J)if(this.nsps[Y].active)return;this._close()}_packet(Z){let J=this.encoder.encode(Z);for(let Y=0;Y<J.length;Y++)this.engine.write(J[Y],Z.options)}cleanup(){this.subs.forEach((Z)=>Z()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(Z,J){var Y;if(this.cleanup(),(Y=this.engine)===null||Y===void 0||Y.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",Z,J),this._reconnection&&!this.skipReconnect)this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let Z=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let J=this.backoff.duration();this._reconnecting=!0;let Y=this.setTimeoutFn(()=>{if(Z.skipReconnect)return;if(this.emitReserved("reconnect_attempt",Z.backoff.attempts),Z.skipReconnect)return;Z.open((Q)=>{if(Q)Z._reconnecting=!1,Z.reconnect(),this.emitReserved("reconnect_error",Q);else Z.onreconnect()})},J);if(this.opts.autoUnref)Y.unref();this.subs.push(()=>{this.clearTimeoutFn(Y)})}}onreconnect(){let Z=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",Z)}}var d0={};function c0(Z,J){if(typeof Z==="object")J=Z,Z=void 0;J=J||{};let Y=lJ(Z,J.path||"/socket.io"),Q=Y.source,X=Y.id,G=Y.path,W=d0[X]&&G in d0[X].nsps,H=J.forceNew||J["force new connection"]||J.multiplex===!1||W,z;if(H)z=new u0(Q,J);else{if(!d0[X])d0[X]=new u0(Q,J);z=d0[X]}if(Y.query&&!J.query)J.query=Y.queryKey;return z.socket(Y.path,J)}Object.assign(c0,{Manager:u0,Socket:m0,io:c0,connect:c0});import{createContext as _B}from"react";var g5=(Z)=>c0(Z,{autoConnect:!1,transports:["websocket"]}),vB=_B(null),u1=vB;import{createContext as rB}from"react";function l(Z,J,Y,Q){function X(G){return G instanceof Y?G:new Y(function(W){W(G)})}return new(Y||(Y=Promise))(function(G,W){function H(B){try{U(Q.next(B))}catch(L){W(L)}}function z(B){try{U(Q.throw(B))}catch(L){W(L)}}function U(B){B.done?G(B.value):X(B.value).then(H,z)}U((Q=Q.apply(Z,J||[])).next())})}function kB(Z){return Z&&Z.__esModule&&Object.prototype.hasOwnProperty.call(Z,"default")?Z.default:Z}var G9={exports:{}},O0=typeof Reflect==="object"?Reflect:null,eJ=O0&&typeof O0.apply==="function"?O0.apply:function(J,Y,Q){return Function.prototype.apply.call(J,Y,Q)},y5;if(O0&&typeof O0.ownKeys==="function")y5=O0.ownKeys;else if(Object.getOwnPropertySymbols)y5=function(J){return Object.getOwnPropertyNames(J).concat(Object.getOwnPropertySymbols(J))};else y5=function(J){return Object.getOwnPropertyNames(J)};function hB(Z){if(console&&console.warn)console.warn(Z)}var JY=Number.isNaN||function(J){return J!==J};function f(){f.init.call(this)}G9.exports=f;G9.exports.once=mB;f.EventEmitter=f;f.prototype._events=void 0;f.prototype._eventsCount=0;f.prototype._maxListeners=void 0;var ZY=10;function p5(Z){if(typeof Z!=="function")throw TypeError('The "listener" argument must be of type Function. Received type '+typeof Z)}Object.defineProperty(f,"defaultMaxListeners",{enumerable:!0,get:function(){return ZY},set:function(Z){if(typeof Z!=="number"||Z<0||JY(Z))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Z+".");ZY=Z}});f.init=function(){if(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)this._events=Object.create(null),this._eventsCount=0;this._maxListeners=this._maxListeners||void 0};f.prototype.setMaxListeners=function(J){if(typeof J!=="number"||J<0||JY(J))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+J+".");return this._maxListeners=J,this};function YY(Z){if(Z._maxListeners===void 0)return f.defaultMaxListeners;return Z._maxListeners}f.prototype.getMaxListeners=function(){return YY(this)};f.prototype.emit=function(J){var Y=[];for(var Q=1;Q<arguments.length;Q++)Y.push(arguments[Q]);var X=J==="error",G=this._events;if(G!==void 0)X=X&&G.error===void 0;else if(!X)return!1;if(X){var W;if(Y.length>0)W=Y[0];if(W instanceof Error)throw W;var H=Error("Unhandled error."+(W?" ("+W.message+")":""));throw H.context=W,H}var z=G[J];if(z===void 0)return!1;if(typeof z==="function")eJ(z,this,Y);else{var U=z.length,B=HY(z,U);for(var Q=0;Q<U;++Q)eJ(B[Q],this,Y)}return!0};function QY(Z,J,Y,Q){var X,G,W;if(p5(Y),G=Z._events,G===void 0)G=Z._events=Object.create(null),Z._eventsCount=0;else{if(G.newListener!==void 0)Z.emit("newListener",J,Y.listener?Y.listener:Y),G=Z._events;W=G[J]}if(W===void 0)W=G[J]=Y,++Z._eventsCount;else{if(typeof W==="function")W=G[J]=Q?[Y,W]:[W,Y];else if(Q)W.unshift(Y);else W.push(Y);if(X=YY(Z),X>0&&W.length>X&&!W.warned){W.warned=!0;var H=Error("Possible EventEmitter memory leak detected. "+W.length+" "+String(J)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=Z,H.type=J,H.count=W.length,hB(H)}}return Z}f.prototype.addListener=function(J,Y){return QY(this,J,Y,!1)};f.prototype.on=f.prototype.addListener;f.prototype.prependListener=function(J,Y){return QY(this,J,Y,!0)};function bB(){if(!this.fired){if(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0)return this.listener.call(this.target);return this.listener.apply(this.target,arguments)}}function XY(Z,J,Y){var Q={fired:!1,wrapFn:void 0,target:Z,type:J,listener:Y},X=bB.bind(Q);return X.listener=Y,Q.wrapFn=X,X}f.prototype.once=function(J,Y){return p5(Y),this.on(J,XY(this,J,Y)),this};f.prototype.prependOnceListener=function(J,Y){return p5(Y),this.prependListener(J,XY(this,J,Y)),this};f.prototype.removeListener=function(J,Y){var Q,X,G,W,H;if(p5(Y),X=this._events,X===void 0)return this;if(Q=X[J],Q===void 0)return this;if(Q===Y||Q.listener===Y){if(--this._eventsCount===0)this._events=Object.create(null);else if(delete X[J],X.removeListener)this.emit("removeListener",J,Q.listener||Y)}else if(typeof Q!=="function"){G=-1;for(W=Q.length-1;W>=0;W--)if(Q[W]===Y||Q[W].listener===Y){H=Q[W].listener,G=W;break}if(G<0)return this;if(G===0)Q.shift();else gB(Q,G);if(Q.length===1)X[J]=Q[0];if(X.removeListener!==void 0)this.emit("removeListener",J,H||Y)}return this};f.prototype.off=f.prototype.removeListener;f.prototype.removeAllListeners=function(J){var Y,Q,X;if(Q=this._events,Q===void 0)return this;if(Q.removeListener===void 0){if(arguments.length===0)this._events=Object.create(null),this._eventsCount=0;else if(Q[J]!==void 0)if(--this._eventsCount===0)this._events=Object.create(null);else delete Q[J];return this}if(arguments.length===0){var G=Object.keys(Q),W;for(X=0;X<G.length;++X){if(W=G[X],W==="removeListener")continue;this.removeAllListeners(W)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Y=Q[J],typeof Y==="function")this.removeListener(J,Y);else if(Y!==void 0)for(X=Y.length-1;X>=0;X--)this.removeListener(J,Y[X]);return this};function GY(Z,J,Y){var Q=Z._events;if(Q===void 0)return[];var X=Q[J];if(X===void 0)return[];if(typeof X==="function")return Y?[X.listener||X]:[X];return Y?yB(X):HY(X,X.length)}f.prototype.listeners=function(J){return GY(this,J,!0)};f.prototype.rawListeners=function(J){return GY(this,J,!1)};f.listenerCount=function(Z,J){if(typeof Z.listenerCount==="function")return Z.listenerCount(J);else return WY.call(Z,J)};f.prototype.listenerCount=WY;function WY(Z){var J=this._events;if(J!==void 0){var Y=J[Z];if(typeof Y==="function")return 1;else if(Y!==void 0)return Y.length}return 0}f.prototype.eventNames=function(){return this._eventsCount>0?y5(this._events):[]};function HY(Z,J){var Y=Array(J);for(var Q=0;Q<J;++Q)Y[Q]=Z[Q];return Y}function gB(Z,J){for(;J+1<Z.length;J++)Z[J]=Z[J+1];Z.pop()}function yB(Z){var J=Array(Z.length);for(var Y=0;Y<J.length;++Y)J[Y]=Z[Y].listener||Z[Y];return J}function mB(Z,J){return new Promise(function(Y,Q){function X(W){Z.removeListener(J,G),Q(W)}function G(){if(typeof Z.removeListener==="function")Z.removeListener("error",X);Y([].slice.call(arguments))}if(zY(Z,J,G,{once:!0}),J!=="error")uB(Z,X,{once:!0})})}function uB(Z,J,Y){if(typeof Z.on==="function")zY(Z,"error",J,Y)}function zY(Z,J,Y,Q){if(typeof Z.on==="function")if(Q.once)Z.once(J,Y);else Z.on(J,Y);else if(typeof Z.addEventListener==="function")Z.addEventListener(J,function X(G){if(Q.once)Z.removeEventListener(J,X);Y(G)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Z)}var dB=G9.exports,UY=kB(dB),_;(function(Z){Z[Z.timeout=1]="timeout",Z[Z.transportClosed=2]="transportClosed",Z[Z.clientDisconnected=3]="clientDisconnected",Z[Z.clientClosed=4]="clientClosed",Z[Z.clientConnectToken=5]="clientConnectToken",Z[Z.clientRefreshToken=6]="clientRefreshToken",Z[Z.subscriptionUnsubscribed=7]="subscriptionUnsubscribed",Z[Z.subscriptionSubscribeToken=8]="subscriptionSubscribeToken",Z[Z.subscriptionRefreshToken=9]="subscriptionRefreshToken",Z[Z.transportWriteError=10]="transportWriteError",Z[Z.connectionClosed=11]="connectionClosed",Z[Z.badConfiguration=12]="badConfiguration"})(_||(_={}));var d1;(function(Z){Z[Z.connectCalled=0]="connectCalled",Z[Z.transportClosed=1]="transportClosed",Z[Z.noPing=2]="noPing",Z[Z.subscribeTimeout=3]="subscribeTimeout",Z[Z.unsubscribeError=4]="unsubscribeError"})(d1||(d1={}));var p0;(function(Z){Z[Z.disconnectCalled=0]="disconnectCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.badProtocol=2]="badProtocol",Z[Z.messageSizeLimit=3]="messageSizeLimit"})(p0||(p0={}));var m5;(function(Z){Z[Z.subscribeCalled=0]="subscribeCalled",Z[Z.transportClosed=1]="transportClosed"})(m5||(m5={}));var u5;(function(Z){Z[Z.unsubscribeCalled=0]="unsubscribeCalled",Z[Z.unauthorized=1]="unauthorized",Z[Z.clientClosed=2]="clientClosed"})(u5||(u5={}));var Y9;(function(Z){Z[Z.channelCompaction=1]="channelCompaction"})(Y9||(Y9={}));var h;(function(Z){Z.Disconnected="disconnected",Z.Connecting="connecting",Z.Connected="connected"})(h||(h={}));var o;(function(Z){Z.Unsubscribed="unsubscribed",Z.Subscribing="subscribing",Z.Subscribed="subscribed"})(o||(o={}));function cB(Z,J){return Z.lastIndexOf(J,0)===0}function BY(Z){if(Z===void 0||Z===null)return!1;return typeof Z==="function"}function pB(Z,J){if(globalThis.console){let Y=globalThis.console[Z];if(BY(Y))Y.apply(globalThis.console,J)}}function lB(Z,J){return Math.floor(Math.random()*(J-Z+1)+Z)}function d5(Z,J,Y){if(Z>31)Z=31;let Q=lB(0,Math.min(Y,J*Math.pow(2,Z)));return Math.min(Y,J+Q)}function iB(Z){return"error"in Z&&Z.error!==null}function c5(Z){return Math.min(Z*1000,2147483647)}class KY extends UY{constructor(Z,J,Y){super();if(this._resubscribeTimeout=null,this._refreshTimeout=null,this.channel=J,this.state=o.Unsubscribed,this._centrifuge=Z,this._token="",this._getToken=null,this._data=null,this._getData=null,this._recover=!1,this._offset=null,this._epoch=null,this._id=0,this._recoverable=!1,this._positioned=!1,this._joinLeave=!1,this._minResubscribeDelay=500,this._maxResubscribeDelay=20000,this._resubscribeTimeout=null,this._resubscribeAttempts=0,this._promises={},this._promiseId=0,this._inflight=!1,this._refreshTimeout=null,this._delta="",this._delta_negotiated=!1,this._tagsFilter=null,this._prevValue=null,this._unsubPromise=Promise.resolve(),this._setOptions(Y),this._centrifuge._debugEnabled)this.on("state",(Q)=>{this._debug("subscription state",J,Q.oldState,"->",Q.newState)}),this.on("error",(Q)=>{this._debug("subscription error",J,Q)});else this.on("error",function(){Function.prototype()})}ready(Z){if(this.state===o.Unsubscribed)return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});if(this.state===o.Subscribed)return Promise.resolve();return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(function(){Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}subscribe(){if(this._isSubscribed())return;this._resubscribeAttempts=0,this._setSubscribing(m5.subscribeCalled,"subscribe called")}unsubscribe(){this._unsubPromise=this._setUnsubscribed(u5.unsubscribeCalled,"unsubscribe called",!0)}publish(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.publish(this.channel,Z)})}presence(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presence(this.channel)})}presenceStats(){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.presenceStats(this.channel)})}history(Z){return l(this,void 0,void 0,function*(){return yield this._methodCall(),this._centrifuge.history(this.channel,Z)})}setTagsFilter(Z){if(Z&&this._delta)throw Error("cannot use delta and tagsFilter together");this._tagsFilter=Z}setData(Z){this._data=Z}_methodCall(){if(this._isSubscribed())return Promise.resolve();if(this._isUnsubscribed())return Promise.reject({code:_.subscriptionUnsubscribed,message:this.state});return new Promise((Z,J)=>{let Y=this._centrifuge._config.timeout,Q=setTimeout(()=>{J({code:_.timeout,message:"timeout"})},Y);this._promises[this._nextPromiseId()]={timeout:Q,resolve:Z,reject:J}})}_nextPromiseId(){return++this._promiseId}_needRecover(){return this._recover===!0}_isUnsubscribed(){return this.state===o.Unsubscribed}_isSubscribing(){return this.state===o.Subscribing}_isSubscribed(){return this.state===o.Subscribed}_setState(Z){if(this.state!==Z){let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J,channel:this.channel}),!0}return!1}_usesToken(){return this._token!==""||this._getToken!==null}_clearSubscribingState(){this._resubscribeAttempts=0,this._clearResubscribeTimeout()}_clearSubscribedState(){this._clearRefreshTimeout()}_setSubscribed(Z){if(!this._isSubscribing())return;if(this._clearSubscribingState(),Z.id)this._id=Z.id;if(Z.recoverable)this._recover=!0,this._offset=Z.offset||0,this._epoch=Z.epoch||"";if(Z.delta)this._delta_negotiated=!0;else this._delta_negotiated=!1;this._setState(o.Subscribed);let J=this._centrifuge._getSubscribeContext(this.channel,Z);this.emit("subscribed",J),this._resolvePromises();let Y=Z.publications;if(Y&&Y.length>0)for(let Q in Y){if(!Y.hasOwnProperty(Q))continue;this._handlePublication(Y[Q])}if(Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_setSubscribing(Z,J){return l(this,void 0,void 0,function*(){if(this._isSubscribing())return;if(this._isSubscribed())this._clearSubscribedState();if(this._setState(o.Subscribing))this.emit("subscribing",{channel:this.channel,code:Z,reason:J});if(this._centrifuge._transport&&this._centrifuge._transport.emulation())yield this._unsubPromise;if(!this._isSubscribing())return;this._subscribe()})}_subscribe(){if(this._debug("subscribing on",this.channel),!this._isTransportOpen())return this._debug("delay subscribe on",this.channel,"till connected"),null;if(this._inflight)return null;if(this._inflight=!0,this._canSubscribeWithoutGettingToken())return this._subscribeWithoutToken();return this._getSubscriptionToken().then((Z)=>this._handleTokenResponse(Z)).catch((Z)=>this._handleTokenError(Z)),null}_isTransportOpen(){return this._centrifuge._transportIsOpen}_canSubscribeWithoutGettingToken(){return!this._usesToken()||!!this._token}_subscribeWithoutToken(){if(this._getData)return this._getDataAndSubscribe(this._token),null;else return this._sendSubscribe(this._token)}_getDataAndSubscribe(Z){if(!this._getData){this._inflight=!1;return}this._getData({channel:this.channel}).then((J)=>{if(!this._isSubscribing()){this._inflight=!1;return}this._data=J,this._sendSubscribe(Z)}).catch((J)=>this._handleGetDataError(J))}_handleGetDataError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof q1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeData",channel:this.channel,error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_handleTokenResponse(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(!Z){this._inflight=!1,this._failUnauthorized();return}if(this._token=Z,this._getData)this._getDataAndSubscribe(Z);else this._sendSubscribe(Z)}_handleTokenError(Z){if(!this._isSubscribing()){this._inflight=!1;return}if(Z instanceof q1){this._inflight=!1,this._failUnauthorized();return}this.emit("error",{type:"subscribeToken",channel:this.channel,error:{code:_.subscriptionSubscribeToken,message:(Z===null||Z===void 0?void 0:Z.toString())||""}}),this._inflight=!1,this._scheduleResubscribe()}_sendSubscribe(Z){if(!this._isTransportOpen())return this._inflight=!1,null;let J=this._buildSubscribeCommand(Z);return this._centrifuge._call(J).then((Y)=>{this._inflight=!1;let Q=Y.reply.subscribe;if(this._handleSubscribeResponse(Q),Y.next)Y.next()},(Y)=>{if(this._inflight=!1,this._handleSubscribeError(Y.error),Y.next)Y.next()}),J}_buildSubscribeCommand(Z){let J={channel:this.channel};if(Z)J.token=Z;if(this._data)J.data=this._data;if(this._positioned)J.positioned=!0;if(this._recoverable)J.recoverable=!0;if(this._joinLeave)J.join_leave=!0;if(J.flag=Y9.channelCompaction,this._needRecover()){J.recover=!0;let Y=this._getOffset();if(Y)J.offset=Y;let Q=this._getEpoch();if(Q)J.epoch=Q}if(this._delta)J.delta=this._delta;if(this._tagsFilter)J.tf=this._tagsFilter;return{subscribe:J}}_debug(...Z){this._centrifuge._debug(...Z)}_handleSubscribeError(Z){if(!this._isSubscribing())return;if(Z.code===_.timeout){this._centrifuge._disconnect(d1.subscribeTimeout,"subscribe timeout",!0);return}this._subscribeError(Z)}_handleSubscribeResponse(Z){if(!this._isSubscribing())return;this._setSubscribed(Z)}_setUnsubscribed(Z,J,Y){if(this._isUnsubscribed())return Promise.resolve();let Q=Promise.resolve();if(this._isSubscribed()){if(Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribedState()}else if(this._isSubscribing()){if(this._inflight&&Y)Q=this._centrifuge._unsubscribe(this);this._clearSubscribingState()}if(this._inflight=!1,this._setState(o.Unsubscribed))this.emit("unsubscribed",{channel:this.channel,code:Z,reason:J});return this._rejectPromises({code:_.subscriptionUnsubscribed,message:this.state}),Q}_handlePublication(Z){if(this._delta&&this._delta_negotiated){let{newData:Y,newPrevValue:Q}=this._centrifuge._codec.applyDeltaIfNeeded(Z,this._prevValue);Z.data=Y,this._prevValue=Q}let J=this._centrifuge._getPublicationContext(this.channel,Z);if(this.emit("publication",J),Z.offset)this._offset=Z.offset}_handleJoin(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("join",{channel:this.channel,info:J})}_handleLeave(Z){let J=this._centrifuge._getJoinLeaveContext(Z.info);this.emit("leave",{channel:this.channel,info:J})}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}_scheduleResubscribe(){if(!this._isSubscribing()){this._debug("not in subscribing state, skip resubscribe scheduling",this.channel);return}let Z=this,J=this._getResubscribeDelay();this._resubscribeTimeout=setTimeout(function(){if(Z._isSubscribing())Z._subscribe()},J),this._debug("resubscribe scheduled after "+J,this.channel)}_subscribeError(Z){if(!this._isSubscribing())return;if(Z.code<100||Z.code===109||Z.temporary===!0){if(Z.code===109)this._token="";let J={channel:this.channel,type:"subscribe",error:Z};if(this._centrifuge.state===h.Connected)this.emit("error",J);this._scheduleResubscribe()}else this._setUnsubscribed(Z.code,Z.message,!1)}_getResubscribeDelay(){let Z=d5(this._resubscribeAttempts,this._minResubscribeDelay,this._maxResubscribeDelay);return this._resubscribeAttempts++,Z}_setOptions(Z){if(!Z)return;if(Z.since)this._offset=Z.since.offset||0,this._epoch=Z.since.epoch||"",this._recover=!0;if(Z.data)this._data=Z.data;if(Z.getData)this._getData=Z.getData;if(Z.minResubscribeDelay!==void 0)this._minResubscribeDelay=Z.minResubscribeDelay;if(Z.maxResubscribeDelay!==void 0)this._maxResubscribeDelay=Z.maxResubscribeDelay;if(Z.token)this._token=Z.token;if(Z.getToken)this._getToken=Z.getToken;if(Z.positioned===!0)this._positioned=!0;if(Z.recoverable===!0)this._recoverable=!0;if(Z.joinLeave===!0)this._joinLeave=!0;if(Z.delta){if(Z.delta!=="fossil")throw Error("unsupported delta format");this._delta=Z.delta}if(Z.tagsFilter)this._tagsFilter=Z.tagsFilter;if(this._tagsFilter&&this._delta)throw Error("cannot use delta and tagsFilter together")}_getOffset(){let Z=this._offset;if(Z!==null)return Z;return 0}_getEpoch(){let Z=this._epoch;if(Z!==null)return Z;return""}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearResubscribeTimeout(){if(this._resubscribeTimeout!==null)clearTimeout(this._resubscribeTimeout),this._resubscribeTimeout=null}_getSubscriptionToken(){this._debug("get subscription token for channel",this.channel);let Z={channel:this.channel},J=this._getToken;if(J===null)return this.emit("error",{type:"configuration",channel:this.channel,error:{code:_.badConfiguration,message:"provide a function to get channel subscription token"}}),Promise.reject(new q1(""));return J(Z)}_refresh(){this._clearRefreshTimeout();let Z=this;this._getSubscriptionToken().then(function(J){if(!Z._isSubscribed())return;if(!J){Z._failUnauthorized();return}Z._token=J;let Q={sub_refresh:{channel:Z.channel,token:J}};Z._centrifuge._call(Q).then((X)=>{let G=X.reply.sub_refresh;if(Z._refreshResponse(G),X.next)X.next()},(X)=>{if(Z._refreshError(X.error),X.next)X.next()})}).catch(function(J){if(J instanceof q1){Z._failUnauthorized();return}Z.emit("error",{type:"refreshToken",channel:Z.channel,error:{code:_.subscriptionRefreshToken,message:J!==void 0?J.toString():""}}),Z._refreshTimeout=setTimeout(()=>Z._refresh(),Z._getRefreshRetryDelay())})}_refreshResponse(Z){if(!this._isSubscribed())return;if(this._debug("subscription token refreshed, channel",this.channel),this._clearRefreshTimeout(),Z.expires===!0)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_refreshError(Z){if(!this._isSubscribed())return;if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",channel:this.channel,error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._setUnsubscribed(Z.code,Z.message,!0)}_getRefreshRetryDelay(){return d5(0,1e4,20000)}_failUnauthorized(){this._setUnsubscribed(u5.unauthorized,"unauthorized",!0)}}class LY{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"sockjs"}subName(){return"sockjs-"+this._transport.transport}emulation(){return!1}supported(){return this.options.sockjs!==null}initialize(Z,J){this._transport=new this.options.sockjs(this.endpoint,null,this.options.sockjsOptions),this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Y)=>{J.onError(Y)},this._transport.onclose=(Y)=>{J.onClose(Y)},this._transport.onmessage=(Y)=>{J.onMessage(Y.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class Q9{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null}name(){return"websocket"}subName(){return"websocket"}emulation(){return!1}supported(){return this.options.websocket!==void 0&&this.options.websocket!==null}initialize(Z,J){let Y="";if(Z==="protobuf")Y="centrifuge-protobuf";if(Y!=="")this._transport=new this.options.websocket(this.endpoint,Y);else this._transport=new this.options.websocket(this.endpoint);if(Z==="protobuf")this._transport.binaryType="arraybuffer";this._transport.onopen=()=>{J.onOpen()},this._transport.onerror=(Q)=>{J.onError(Q)},this._transport.onclose=(Q)=>{J.onClose(Q)},this._transport.onmessage=(Q)=>{J.onMessage(Q.data)}}close(){this._transport.close()}send(Z){this._transport.send(Z)}}class MY{constructor(Z,J){this.endpoint=Z,this.options=J,this._abortController=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"http_stream"}subName(){return"http_stream"}emulation(){return!0}_handleErrors(Z){if(!Z.ok)throw Error(Z.status);return Z}_fetchEventTarget(Z,J,Y){let Q=new EventTarget,X=Z.options.fetch;return X(J,Y).then(Z._handleErrors).then((G)=>{Q.dispatchEvent(new Event("open"));let W="",H=0,z=new Uint8Array,U=G.body.getReader();return new Z.options.readableStream({start(B){function L(){return U.read().then(({done:V,value:F})=>{if(V){Q.dispatchEvent(new Event("close")),B.close();return}try{if(Z._protocol==="json"){W+=Z._utf8decoder.decode(F);while(H<W.length)if(W[H]===`
22
+ `){let K=W.substring(0,H);Q.dispatchEvent(new MessageEvent("message",{data:K})),W=W.substring(H+1),H=0}else++H}else{let K=new Uint8Array(z.length+F.length);K.set(z),K.set(F,z.length),z=K;while(!0){let M=Z.options.decoder.decodeReply(z);if(M.ok){let I=z.slice(0,M.pos);Q.dispatchEvent(new MessageEvent("message",{data:I})),z=z.slice(M.pos);continue}break}}}catch(K){Q.dispatchEvent(new Event("error",{detail:K})),Q.dispatchEvent(new Event("close")),B.close();return}L()}).catch(function(V){Q.dispatchEvent(new Event("error",{detail:V})),Q.dispatchEvent(new Event("close")),B.close();return})}return L()}})}).catch((G)=>{Q.dispatchEvent(new Event("error",{detail:G})),Q.dispatchEvent(new Event("close"))}),Q}supported(){return this.options.fetch!==null&&this.options.readableStream!==null&&typeof TextDecoder<"u"&&typeof AbortController<"u"&&typeof EventTarget<"u"&&typeof Event<"u"&&typeof MessageEvent<"u"&&typeof Error<"u"}initialize(Z,J,Y){this._protocol=Z,this._abortController=new AbortController;let Q,X;if(Z==="json")Q={Accept:"application/json","Content-Type":"application/json"},X=Y;else Q={Accept:"application/octet-stream","Content-Type":"application/octet-stream"},X=Y;let G={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin",signal:this._abortController.signal},W=this._fetchEventTarget(this,this.endpoint,G);W.addEventListener("open",()=>{J.onOpen()}),W.addEventListener("error",(H)=>{this._abortController.abort(),J.onError(H)}),W.addEventListener("close",()=>{this._abortController.abort(),J.onClose({code:4,reason:"connection closed"})}),W.addEventListener("message",(H)=>{J.onMessage(H.data)})}close(){this._abortController.abort()}send(Z,J,Y){let Q,X,G={session:J,node:Y,data:Z};if(this._protocol==="json")Q={"Content-Type":"application/json"},X=JSON.stringify(G);else Q={"Content-Type":"application/octet-stream"},X=this.options.encoder.encodeEmulationRequest(G);let W=this.options.fetch,H={method:"POST",headers:Q,body:X,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class FY{constructor(Z,J){this.endpoint=Z,this.options=J,this._protocol="json",this._transport=null,this._onClose=null}name(){return"sse"}subName(){return"sse"}emulation(){return!0}supported(){return this.options.eventsource!==null&&this.options.fetch!==null}initialize(Z,J,Y){let Q;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Q=new URL(this.endpoint,globalThis.document.baseURI);else Q=new URL(this.endpoint);Q.searchParams.append("cf_connect",Y);let X={},G=new this.options.eventsource(Q.toString(),X);this._transport=G;let W=this;G.onopen=function(){J.onOpen()},G.onerror=function(H){G.close(),J.onError(H),J.onClose({code:4,reason:"connection closed"})},G.onmessage=function(H){J.onMessage(H.data)},W._onClose=function(){J.onClose({code:4,reason:"connection closed"})}}close(){if(this._transport.close(),this._onClose!==null)this._onClose()}send(Z,J,Y){let Q={session:J,node:Y,data:Z},X={"Content-Type":"application/json"},G=JSON.stringify(Q),W=this.options.fetch,H={method:"POST",headers:X,body:G,mode:"cors",credentials:"same-origin"};W(this.options.emulationEndpoint,H)}}class $Y{constructor(Z,J){this.endpoint=Z,this.options=J,this._transport=null,this._stream=null,this._writer=null,this._utf8decoder=new TextDecoder,this._protocol="json"}name(){return"webtransport"}subName(){return"webtransport"}emulation(){return!1}supported(){return this.options.webtransport!==void 0&&this.options.webtransport!==null}initialize(Z,J){return l(this,void 0,void 0,function*(){let Y;if(globalThis&&globalThis.document&&globalThis.document.baseURI)Y=new URL(this.endpoint,globalThis.document.baseURI);else Y=new URL(this.endpoint);if(Z==="protobuf")Y.searchParams.append("cf_protocol","protobuf");this._protocol=Z;let Q=new EventTarget;this._transport=new this.options.webtransport(Y.toString()),this._transport.closed.then(()=>{J.onClose({code:4,reason:"connection closed"})}).catch(()=>{J.onClose({code:4,reason:"connection closed"})});try{yield this._transport.ready}catch(G){this.close();return}let X;try{X=yield this._transport.createBidirectionalStream()}catch(G){this.close();return}this._stream=X,this._writer=this._stream.writable.getWriter(),Q.addEventListener("close",()=>{J.onClose({code:4,reason:"connection closed"})}),Q.addEventListener("message",(G)=>{J.onMessage(G.data)}),this._startReading(Q),J.onOpen()})}_startReading(Z){return l(this,void 0,void 0,function*(){let J=this._stream.readable.getReader(),Y="",Q=0,X=new Uint8Array;try{while(!0){let{done:G,value:W}=yield J.read();if(W.length>0)if(this._protocol==="json"){Y+=this._utf8decoder.decode(W);while(Q<Y.length)if(Y[Q]===`
23
+ `){let H=Y.substring(0,Q);Z.dispatchEvent(new MessageEvent("message",{data:H})),Y=Y.substring(Q+1),Q=0}else++Q}else{let H=new Uint8Array(X.length+W.length);H.set(X),H.set(W,X.length),X=H;while(!0){let z=this.options.decoder.decodeReply(X);if(z.ok){let U=X.slice(0,z.pos);Z.dispatchEvent(new MessageEvent("message",{data:U})),X=X.slice(z.pos);continue}break}}if(G)break}}catch(G){Z.dispatchEvent(new Event("close"))}})}close(){return l(this,void 0,void 0,function*(){try{if(this._writer)yield this._writer.close();this._transport.close()}catch(Z){}})}send(Z){return l(this,void 0,void 0,function*(){let J;if(this._protocol==="json")J=new TextEncoder().encode(Z+`
24
+ `);else J=Z;try{yield this._writer.write(J)}catch(Y){this.close()}})}}var nB=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,36,-1,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,-1,-1,-1,63,-1];class OY{constructor(Z){this.a=Z,this.pos=0}haveBytes(){return this.pos<this.a.length}getByte(){let Z=this.a[this.pos];if(this.pos++,this.pos>this.a.length)throw RangeError("out of bounds");return Z}getChar(){return String.fromCharCode(this.getByte())}getInt(){let Z=0,J;while(this.haveBytes()&&(J=nB[127&this.getByte()])>=0)Z=(Z<<6)+J;return this.pos--,Z>>>0}}class VY{constructor(){this.a=[]}toByteArray(Z){if(Array.isArray(Z))return this.a;return new Uint8Array(this.a)}putArray(Z,J,Y){for(let Q=J;Q<Y;Q++)this.a.push(Z[Q])}}function oB(Z){let J=0,Y=0,Q=0,X=0,G=0,W=Z.length;while(W>=16)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,J=J+Z[G+4]|0,Y=Y+Z[G+5]|0,Q=Q+Z[G+6]|0,X=X+Z[G+7]|0,J=J+Z[G+8]|0,Y=Y+Z[G+9]|0,Q=Q+Z[G+10]|0,X=X+Z[G+11]|0,J=J+Z[G+12]|0,Y=Y+Z[G+13]|0,Q=Q+Z[G+14]|0,X=X+Z[G+15]|0,G+=16,W-=16;while(W>=4)J=J+Z[G+0]|0,Y=Y+Z[G+1]|0,Q=Q+Z[G+2]|0,X=X+Z[G+3]|0,G+=4,W-=4;switch(X=((X+(Q<<8)|0)+(Y<<16)|0)+(J<<24)|0,W){case 3:X=X+(Z[G+2]<<8)|0;case 2:X=X+(Z[G+1]<<16)|0;case 1:X=X+(Z[G+0]<<24)|0}return X>>>0}function aB(Z,J){let Y=0,Q=new OY(J),X=Z.length,G=J.length,W=Q.getInt();if(Q.getChar()!==`
25
+ `)throw Error("size integer not terminated by '\\n'");let H=new VY;while(Q.haveBytes()){let z=Q.getInt(),U;switch(Q.getChar()){case"@":if(U=Q.getInt(),Q.haveBytes()&&Q.getChar()!==",")throw Error("copy command not terminated by ','");if(Y+=z,Y>W)throw Error("copy exceeds output file size");if(U+z>X)throw Error("copy extends past end of input");H.putArray(Z,U,U+z);break;case":":if(Y+=z,Y>W)throw Error("insert command gives an output larger than predicted");if(z>G)throw Error("insert count exceeds size of delta");H.putArray(Q.a,Q.pos,Q.pos+z),Q.pos+=z;break;case";":{let B=H.toByteArray(Z);if(z!==oB(B))throw Error("bad checksum");if(Y!==W)throw Error("generated size does not match predicted size");return B}default:throw Error("unknown delta operator")}}throw Error("unterminated delta")}class X9{name(){return"json"}encodeCommands(Z){return Z.map((J)=>JSON.stringify(J)).join(`
36
26
  `)}decodeReplies(Z){return Z.trim().split(`
37
- `).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,Q;if(Z.delta){let X=eU(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(X)),Q=X}else Y=JSON.parse(Z.data),Q=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:Q}}}var ZK={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class P1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class Y0 extends KY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=d.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new W9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},ZK),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new MY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==e.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return s(this,void 0,void 0,function*(){switch(this.state){case d.Disconnected:throw{code:g.clientDisconnected,message:"client disconnected"};case d.Connected:return;default:return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(()=>{Y({code:g.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(l0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return s(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(g.transportWriteError,"transport write error")})}rpc(Z,J){return s(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(X)=>X.rpc)).data}})}publish(Z,J){return s(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return s(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let Q=yield this._callPromise(Y,(G)=>G.history),X=[];if(Q.publications)for(let G=0;G<Q.publications.length;G++)X.push(this._getPublicationContext(Z,Q.publications[G]));return{publications:X,epoch:Q.epoch||"",offset:Q.offset||0}})}presence(Z){return s(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let Q=(yield this._callPromise(J,(X)=>X.presence)).presence;for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)){let G=Q[X],W=G.conn_info,H=G.chan_info;if(W)G.connInfo=W;if(H)G.chanInfo=H}return{clients:Q}})}presenceStats(Z){return s(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(Q)=>{return Q.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;oU("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new W9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===d.Disconnected}_isConnecting(){return this.state===d.Connecting}_isConnected(){return this.state===d.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===d.Connected||this.state===d.Connecting)this._disconnect(c1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==d.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=p5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(g.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===e.Subscribed)J._setSubscribing(d5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let Q=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let X=Q.errback;X({error:this._createErrorObject(g.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let Q=null;if(this._config.fetch!==null)Q=this._config.fetch;else if(typeof globalThis.fetch<"u")Q=globalThis.fetch;let X=null;if(this._config.readableStream!==null)X=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")X=globalThis.ReadableStream;if(!this._emulation){if(nU(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new G9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let $=0;while(!0){if($>=this._transports.length)throw Error("no supported transport found");let M=this._transports[this._currentTransportIndex],K=M.transport,F=M.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new G9(F,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,$++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new IY(F,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,$++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new OY(F,{fetch:Q,readableStream:X,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,$++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new $Y(F,{eventsource:Y,fetch:Q,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,$++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new FY(F,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,$++;continue}}else throw Error("unknown transport "+K);break}}let G=this,W=this._transport,H=this._nextTransportId();G._debug("id of transport",H);let z=!1,B=[];if(this._transport.emulation()){let $=G._sendConnect(!0);B.push($)}this._setNetworkEvents();let U=this._codec.encodeCommands(B);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("open callback from non-actual transport"),W.close();return}if(z=!0,G._debug(W.subName(),"transport open"),W.emulation())return;G._transportIsOpen=!0,G._transportWasOpen=!0,G.startBatching(),G._sendConnect(!1),G._sendSubscribeCommands(),G.stopBatching(),G.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function($){if(G._transportId!=H){G._debug("error callback from non-actual transport");return}G._debug("transport level error",$)},onClose:function($){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("close callback from non-actual transport");return}G._debug(W.subName(),"transport closed"),G._transportClosed=!0,G._transportIsOpen=!1;let M="connection closed",K=!0,F=0;if($&&"code"in $&&$.code)F=$.code;if($&&$.reason)try{let I=JSON.parse($.reason);M=I.reason,K=I.reconnect}catch(I){if(M=$.reason,F>=3500&&F<4000||F>=4500&&F<5000)K=!1}if(F<3000){if(F===1009)F=l0.messageSizeLimit,M="message size limit exceeded",K=!1;else F=c1.transportClosed,M="transport closed";if(G._emulation&&!G._transportWasOpen){if(G._currentTransportIndex++,G._currentTransportIndex>=G._transports.length)G._triedAllTransports=!0,G._currentTransportIndex=0}}else G._transportWasOpen=!0;if(G._isConnecting()&&!z)G.emit("error",{type:"transport",error:{code:g.transportClosed,message:"transport closed"},transport:W.name()});G._reconnecting=!1,G._disconnect(F,M,K)},onMessage:function($){G._dataReceived($)}},U),G.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((Q)=>{let X=Q.reply.connect;if(Y._connectResponse(X),Q.next)Q.next()},(Q)=>{if(Y._connectError(Q.error),Q.next)Q.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((Q)=>{if(!this._isConnecting())return;this._data=Q,this._initializeTransport()}).catch((Q)=>this._handleGetDataError(Q));else this._initializeTransport();return}let Y=this;this._getToken().then(function(Q){if(!Y._isConnecting())return;if(Q==null||Q==null){Y._failUnauthorized();return}if(Y._token=Q,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(X){if(!Y._isConnecting())return;Y._data=X,Y._initializeTransport()}).catch((X)=>Y._handleGetDataError(X));else Y._initializeTransport()}).catch(function(Q){if(!Y._isConnecting())return;if(Q instanceof P1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:g.clientConnectToken,message:Q!==void 0?Q.toString():""}});let X=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+X+" milliseconds",Q),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},X)})}_handleGetDataError(Z){if(Z instanceof P1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:g.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==d.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let Q in this._serverSubs)if(this._serverSubs.hasOwnProperty(Q)&&this._serverSubs[Q].recoverable){Y=!0;let X={recover:!0};if(this._serverSubs[Q].offset)X.offset=this._serverSubs[Q].offset;if(this._serverSubs[Q].epoch)X.epoch=this._serverSubs[Q].epoch;J[Q]=X}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:g.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,Q)=>{this._call(Z,!1).then((X)=>{var G;let W=J(X.reply);Y(W),(G=X.next)===null||G===void 0||G.call(X)},(X)=>{var G;Q(X.error),(G=X.next)===null||G===void 0||G.call(X)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((Q)=>{Y=Q}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let Q in Z)if(Z.hasOwnProperty(Q))Y=Y.then(()=>{return this._dispatchReply(Z[Q])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((X)=>{J=X});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let Q=Z.id;if(Q&&Q>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,Q)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,Q),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(d.Connecting))this.emit("connecting",{code:c1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let Q=this.state;this._reconnecting=!1;let X={code:Z,reason:J},G=!1;if(Y)G=this._setState(d.Connecting);else G=this._setState(d.Disconnected),this._rejectPromises({code:g.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),Q===d.Connecting)this._clearReconnectTimeout();if(Q===d.Connected)this._clearConnectedState();if(G)if(this._isConnecting())this.emit("connecting",X);else this.emit("disconnected",X);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(l0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:g.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new P1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let Q={refresh:{token:J._token}};J._call(Q,!1).then((X)=>{let G=X.reply.refresh;if(J._refreshResponse(G),X.next)X.next()},(X)=>{if(J._refreshError(X.error),X.next)X.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof P1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:g.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return p5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),l5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},Q=this;return new Promise((G,W)=>{this._call(Y,!1).then((H)=>{if(G(),H.next)H.next()},(H)=>{if(G(),H.next)H.next();Q._disconnect(c1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let Q in this._subs)if(this._subs.hasOwnProperty(Q)){let X=this._subs[Q];if(X._id===J)return X}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===e.Subscribing){let Q=Y._subscribe();if(Q)Z.push(Q)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(d.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),l5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let Q=this._getSubscribeContext(J,Y);this.emit("subscribed",Q)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let Q=Y.publications;if(Q&&Q.length>0){for(let X in Q)if(Q.hasOwnProperty(X))this._handlePublication(J,Q[X])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(c1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let Q="";if("epoch"in J)Q=J.epoch;let X=0;if("offset"in J)X=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:X,epoch:Q};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let Q=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!sU(Z)){let X=Q.callback;if(!X)return;X({reply:Z,next:J})}else{let X=Q.errback;if(!X){J();return}let G={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};X({error:G,next:J})}}_handleJoin(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",X)}return}Q._handleJoin(J)}_handleLeave(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",X)}return}Q._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let Q=Z.chan_info;if(Q)J.chanInfo=Q;return J}_handlePublication(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X=this._getPublicationContext(Z,J);if(this.emit("publication",X),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}Q._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:Q}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,Q);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,Q);else if(Z.leave)this._handleLeave(Y,Z.leave,Q);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let Q={code:Z,message:J};if(Y)Q.temporary=!0;return Q}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],LY(Y))Y({error:this._createErrorObject(g.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}Y0.SubscriptionState=e;Y0.State=d;Y0.UnauthorizedError=P1;var n5=(Z,J)=>{async function Y(){let Q=await fetch(Z+"api/centrifuge/gen_token");if(!Q.ok){if(Q.status===403)throw new Y0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${Q.status}`)}return(await Q.json()).token}return J?new Y0(J||"",{getToken:Y}):null},YK=JK(null),p1=YK;import{useContext as XK,useEffect as GK}from"react";import{useEffect as QK,useState as DY}from"react";function o5(Z,J){let[Y,Q]=DY(null),[X,G]=DY(!1);return QK(()=>{if(!X)G(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{Q(W)})},[]),Y}var WK=({children:Z})=>{let J=XK(d1),Y=D1(),Q=o5(Y,"socketIO"),X=(G)=>{if(typeof window<"u")window.sid=G.sid,console.log(`SocketIO initialized: ${window.sid}`)};return GK(()=>{if(!J)return;let G=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(Q)J.on("pieinit",X),J.on("connect",G),J.on("disconnect",W),J.connect();return()=>{if(Q)J.off("pieinit",X),J.off("connect",G),J.off("disconnect",W),J.disconnect()}},[J,Q]),Z},a5=WK;import{useContext as HK,useEffect as zK}from"react";var BK=({children:Z})=>{let J=HK(p1),Y=D1(),Q=o5(Y,"centrifuge");return zK(()=>{if(!J)return;let X=()=>{console.log("Centrifuge connected")},G=(W)=>{console.log("Centrifuge disconnected:",W)};if(Q)J.on("connected",X),J.on("disconnected",G),J.connect();return()=>{if(Q)J.disconnect()}},[J,Q]),Z},s5=BK;var SX=j(w9(),1);import{useContext as E9,useEffect as S9}from"react";var ZM=({card:Z,data:J,children:Y,useSocketioSupport:Q=!1,useCentrifugeSupport:X=!1,useMittSupport:G=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=N1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:Q,centrifuge:X,mitt:G,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let B=E9(d1),U=E9(p1),L=E9(m1);if(S9(()=>{if(!B||!Q||!H||!J.name){if(z&&Q)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!B,useSocketioSupport:Q,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([$,M])=>{let K=`pie${$}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);B.on(K,M)}),()=>{Object.entries(H).forEach(([$,M])=>{let K=`pie${$}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);B.off(K,M)})}},[B,H,J.name]),S9(()=>{if(!U||!X||!W||!H||!J.name){if(z&&X)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!U,useCentrifugeSupport:X,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let $=Object.entries(H).map(([M,K])=>{let F=`pie${M}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${F}`);let I=U.newSubscription(F);return I.on("publication",(N)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${F}:`,N.data);K(N.data)}),I.subscribe(),I});return()=>{$.forEach((M)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");M.unsubscribe(),U.removeSubscription(M)})}},[U,W,H,J.name]),S9(()=>{if(!L||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([$,M])=>{let K=`pie${$}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,M)}),()=>{Object.entries(H).forEach(([$,M])=>{let K=`pie${$}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,M)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},V1=ZM;function K6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=K1.keyframes(J.animationName,Y)}return J}import{jsx as x9}from"react/jsx-runtime";var JM=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q,sx:X}=Z;return x9(V1,{card:Q,data:Z,children:x9("div",{style:K6(X),id:Q,children:J.map((G,W)=>{return x9(G1,{uiConfig:G,setUiAjaxConfiguration:Y},`children-${W}`)})})})},yQ=K1(JM);import{jsx as mQ}from"react/jsx-runtime";var YM=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q}=Z;return mQ(V1,{card:Q,data:Z,children:J.map((X,G)=>{return mQ(G1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${G}`)})})},uQ=YM;import{useContext as dQ,useEffect as QM,useRef as XM,useState as cQ}from"react";import{jsx as pQ}from"react/jsx-runtime";var GM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:Q,returnType:X,useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,B=dQ(h1),[U,L]=cQ(!1),[$,M]=cQ(null),K=XM(J),F=dQ(m1),I=(q)=>{if(q===null)L(!0);else if(L(!1),!Q)K.current=q;if(!Q)M(q)},N=(q)=>{K.current=q.content,M(q.content)},w=(q)=>{if(q===null)L(!0);else if(L(!1),!Q)for(let D of q)F.emit(D.name,D.data)};if(QM(()=>{M(J),L(!1)},[J]),!$&&Y)return B;return pQ(V1,{card:"AjaxGroupCard",data:Z,methods:{changeContent:N},useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:pQ(G1,{uiConfig:$??K.current,setUiAjaxConfiguration:X==="events"?w:I})})},lQ=K1(GM);function f9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}var L6=(Z,J={},Y=[],Q)=>{let X=N1();if(X)console.log("Registering AJAX: ",Q,J,Y);if(!Q||!Z){if(X)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(G={})=>{if(typeof window>"u"||typeof document>"u"){if(X)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await f9();let W=new FormData;for(let[z,B]of Object.entries({...J,...G}))W.append(z,B);for(let z of Y)if(z==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");W.append("sid",window.sid)}else{let B=document.getElementsByName(z);if(!B.length){if(X)console.warn(`No input found with name ${z}`);continue}let U=B[0];if(U instanceof HTMLInputElement)if(U.type==="file"&&U.files)Array.from(U.files).forEach((L)=>W.append(z,L));else W.append(z,U.value);else if(U instanceof HTMLTextAreaElement)W.append(z,U.value)}let H=D1()+"api/ajax_content"+Q;return Z(null),await fetch(H,{method:"POST",body:W}).then(async(z)=>{let U=(z.headers.get("content-type")||"").includes("application/json");if(!!z.body?.getReader&&!U){let $=z.body.getReader(),M=new TextDecoder,K="";while(!0){let{done:F,value:I}=await $.read();if(F)break;K+=M.decode(I,{stream:!0});let N=K.split(`
38
- `);K=N.pop()??"";for(let w of N){let q=w.trim();if(!q)continue;try{let D=JSON.parse(q);Z([D])}catch(D){if(X)console.warn("Failed to parse streamed line:",q)}}}if(K.trim())try{let F=JSON.parse(K);Z([F])}catch(F){if(X)console.warn("Failed to parse final streamed line:",K)}return{}}else{let $=await z.json();return Z($),$}}).catch((z)=>{if(X)console.error("AJAX request failed:",z);return Z(null),z})}};import{useMemo as ZF}from"react";var r9=j(s9(),1),W0=j(s9(),1),D6=r9.default.default||r9.default;import{jsx as t9,jsxs as YF}from"react/jsx-runtime";var JF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:Q,iconUrl:X,iconPosition:G,sx:W,pathname:H,kwargs:z,depsNames:B}=Z,U=ZF(()=>L6(J,z,B,H),[J,z,B,H]);return t9(V1,{card:"AjaxButtonCard",data:Z,children:YF("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>U(),style:K6(W),type:"button",children:[X&&G==="start"&&t9("img",{src:X,alt:""}),D6(Q),X&&G==="end"&&t9("img",{src:X,alt:""})]})})},t3=K1(JF);import{forwardRef as RF,useEffect as $X,useImperativeHandle as PF,useRef as TF,useState as P6}from"react";import{useRef as QF,useState as XF}from"react";import{jsx as GF}from"react/jsx-runtime";function e9(Z){let[J,Y]=XF(!1),Q=QF(null);return GF("textarea",{ref:Q,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),B=parseFloat(z.lineHeight);Q.current.style.height=Q.current.scrollHeight+B+"px"}}if(H.key==="Backspace"){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),B=parseFloat(z.lineHeight);if(Q.current.scrollHeight>B)Q.current.style.height=Q.current.scrollHeight-B+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}var n1=j(ZX(),1);import{useRef as HF,useCallback as zF}from"react";import{jsx as JX}from"react/jsx-runtime";var WF=()=>JX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:JX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),YX=WF;import{jsx as Z7}from"react/jsx-runtime";var BF=({type:Z="button",onClick:J,icons:Y})=>{let Q=HF(null),X=zF(()=>{let W=Q.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return Z7("button",{ref:Q,type:Z,onClick:(W)=>{if(J)J(W);X()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?Z7("img",{src:Y.sendIcon,alt:""}):Z7(YX,{})})},QX=BF;import{jsx as XX}from"react/jsx-runtime";var UF=()=>XX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:XX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),GX=UF;import{jsx as N6,jsxs as LF}from"react/jsx-runtime";var KF=({name:Z,accept:J,fileInputRef:Y,onSelectFile:Q,icons:X})=>{return LF("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:[N6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(G)=>{if(G.target.files)Q(G.target.files[0])}}),N6("label",{htmlFor:Z+"__pie__file"}),X.attachFileIcon?N6("img",{src:X.attachFileIcon,alt:""}):N6(GX,{})]})},WX=KF;import{jsx as HX}from"react/jsx-runtime";var MF=()=>HX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:HX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),zX=MF;import{jsx as BX}from"react/jsx-runtime";var FF=()=>BX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:BX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),A6=FF;import{jsx as H5,jsxs as $F}from"react/jsx-runtime";var OF=({name:Z,selectedFile:J,onDropFile:Y})=>{return $F("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[H5(zX,{}),H5("span",{className:"flex-1",children:J.name}),H5("input",{type:"hidden",name:Z,value:""}),H5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:H5(A6,{})})]})},UX=OF;import{jsx as KX,jsxs as VF}from"react/jsx-runtime";var IF=()=>VF("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[KX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),KX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),LX=IF;import{jsx as z5}from"react/jsx-runtime";var qF=({isListening:Z,toggleListening:J,icons:Y})=>{return z5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?z5("img",{src:Y.cancelIcon,alt:""}):z5(A6,{}):Y.voiceRecordingIcon?z5("img",{src:Y.voiceRecordingIcon,alt:""}):z5(LX,{})})},MX=qF;import{jsx as FX,jsxs as NF}from"react/jsx-runtime";var DF=({option:Z,onClickOption:J})=>{return NF("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&FX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&FX("img",{src:Z.iconUrl,alt:""})]})},R6=DF;import{jsx as OX}from"react/jsx-runtime";var AF=({options:Z,handleOptionClick:J})=>{return OX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,Q)=>{return OX(R6,{option:Y,onClickOption:J},Q)})})},J7=AF;import{jsx as j1,jsxs as IX}from"react/jsx-runtime";var wF=RF(({name:Z,defaultValue:J,defaultOptions:Y,isArea:Q,placeholder:X,fileAccept:G,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:B,sx:U},L)=>{let $=TF(null),[M,K]=P6(null),[F,I]=P6(J),[N,w]=P6(Y),[q,D]=P6(!1);PF(L,()=>({clear:()=>{if(I(""),K(null),$.current)$.current.value=""},setValue:(v)=>I(v),setOptions:(v)=>w(v)})),$X(()=>{I(J)},[J]),$X(()=>{if(n1.default)return n1.default.addCallback("result",(v)=>{I(v[0])}),()=>{n1.default.abort(),n1.default.removeCallback()}},[]);let E=()=>{if(!n1.default)return;if(q)n1.default.abort(),D(!1),B();else n1.default.start({autoRestart:!0,continuous:!0}),I(""),D(!0)};return IX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:U,children:[N&&W==="top"&&j1(J7,{options:N,handleOptionClick:z}),j1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:IX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[M?j1(UX,{name:Z,selectedFile:M,onDropFile:()=>{if(K(null),$.current)$.current.value=""}}):!Q?j1("input",{name:Z,value:F,onChange:(v)=>I(v.target.value),onKeyDown:(v)=>{if(v.key==="Enter")v.preventDefault(),B()},tabIndex:0,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):j1(e9,{name:Z,value:F,onChange:(v)=>I(v.target.value),onKeyDown:(v)=>{if(v.key==="Enter"&&!v.shiftKey)v.preventDefault(),B()},tabIndex:0,rows:2,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),j1(MX,{isListening:q,toggleListening:E,icons:H}),j1(WX,{name:Z,fileInputRef:$,accept:G,onSelectFile:K,icons:H}),j1(QX,{onClick:B,icons:H})]})}),N&&W==="bottom"&&j1(J7,{options:N,handleOptionClick:z})]})}),VX=wF;import{useState as _F,useEffect as vF}from"react";import{useEffect as EF,useState as SF}from"react";import{jsx as fF}from"react/jsx-runtime";function xF({children:Z}){let[J,Y]=SF(Z);return EF(()=>{Y(Z)},[Z]),fF("div",{className:"max-w-full first:mt-0",children:J})}var qX=xF;import{jsx as DX}from"react/jsx-runtime";var CF=()=>DX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:DX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),NX=CF;import{jsx as T6}from"react/jsx-runtime";function jF({username:Z,avatar:J}){return T6("div",{className:"w-[30px]",children:T6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?T6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):T6(NX,{})})})}var Y7=jF;import{jsx as E1,jsxs as AX}from"react/jsx-runtime";var kF=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[Q,X]=_F(!1);return vF(()=>{let G=setTimeout(()=>{if(Q)X(!1)},1000);return()=>clearTimeout(G)},[Q]),E1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:AX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&E1("div",{className:"relative flex shrink-0 flex-col items-end",children:E1(Y7,{username:Z.username,avatar:Z.avatar})}),AX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[E1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?E1(qX,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?D6(Z.content):Z.content:E1(G1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),E1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((G,W)=>E1(R6,{onClickOption:J,option:G},W))})]}),Z.align==="right"&&E1("div",{className:"relative flex shrink-0 flex-col items-end",children:E1(Y7,{username:Z.username,avatar:Z.avatar})})]})})},RX=kF;import{forwardRef as hF,useEffect as bF,useImperativeHandle as gF,useRef as yF,useState as mF}from"react";import{jsx as PX}from"react/jsx-runtime";var uF=hF(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:Q,setUiAjaxConfiguration:X},G)=>{let[W,H]=mF(Y),z=yF(null),B=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return bF(()=>{B()},[W]),gF(G,()=>({setMessages:(U)=>H(U),addMessage:(U)=>H((L)=>[...L,U]),scrollToBottom:B})),PX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:Q,ref:z,children:W.map((U)=>PX(RX,{message:U,handleOptionClick:J,setUiAjaxConfiguration:X},U.id))})}),TX=uF;import{useEffect as dF,useMemo as cF,useRef as wX,useState as pF}from"react";import{jsx as Q7,jsxs as iF}from"react/jsx-runtime";var lF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:Q,defaultMessages:X,defaultOptions:G,isArea:W,fileAccept:H,placeholder:z,icons:B,optionsPosition:U,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:$,pathname:M,kwargs:K,useSocketioSupport:F,useCentrifugeSupport:I,centrifugeChannel:N}=Z,w=wX(null),q=wX(null),[D,E]=pF(!1),v=cF(()=>L6(J,K,$,M),[J,K,$,M]);dF(()=>{if(D)requestAnimationFrame(()=>{v(),E(!1)})},[D]);let m=(k)=>{if(w.current)w.current.setValue(k),E(!0)},q1=()=>{if(w.current)w.current.clear()},R=(k)=>{if(w.current)w.current.setOptions(k.options)},S=(k)=>{if(q.current)q.current.addMessage(k.message)},T=(k)=>{if(q.current)q.current.setMessages(k.messages)},C=()=>{E(!0)};return Q7(V1,{card:"ChatCard",data:Z,methods:{clearInput:q1,setOptions:R,addMessage:S,setMessages:T},useSocketioSupport:F,useCentrifugeSupport:I,centrifugeChannel:N,children:iF("div",{className:"flex size-full flex-col",style:L.container,children:[Q7(TX,{ref:q,name:Y,defaultMessages:X,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),Q7(VX,{ref:w,name:Y,isArea:W,defaultOptions:G,placeholder:z,defaultValue:Q,fileAccept:H,sx:L.chatInput,handleSendMessage:C,handleOptionClick:m,optionsPosition:U,icons:B})]})})},EX=lF;var X7=!1;function B5(){if(X7)return;o1({name:"SequenceCard",component:yQ,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),o1({name:"UnionCard",component:uQ,metadata:{author:"PieData",description:"Renders one of many components"}}),o1({name:"AjaxGroupCard",component:lQ,metadata:{author:"PieData",description:"Group card with AJAX support"}}),o1({name:"AjaxButtonCard",component:t3,metadata:{author:"PieData",description:"Button with AJAX support"}}),o1({name:"ChatCard",component:EX,metadata:{author:"PieData"}}),X7=!0}function _1(){return X7}import{jsx as L1,Fragment as ZO}from"react/jsx-runtime";var tF=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=D1(),G=L5(),W=N1();nF(()=>{if(_1())return;B5(),Q()},[]);let H=oF(()=>SX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let{data:z,isLoading:B,error:U}=rF({queryKey:["uiConfig",Z.pathname+Z.search,_1()],queryFn:async()=>{if(!_1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let $=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",$.data);return $.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(U){if(W)console.error("[PieRoot] Error fetching UI configuration:",U),console.error("[PieRoot] Error details:",{message:U.message,status:U.response?.status,data:U.response?.data});return Y?.(),J}if(B||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return L1(m1.Provider,{value:C0,children:L1(d1.Provider,{value:m5(X),children:L1(p1.Provider,{value:n5(X,G),children:L1(h1.Provider,{value:J??L1(ZO,{}),children:L1(a5,{children:L1(s5,{children:L1(K1.StyleRoot,{children:L1(G1,{uiConfig:z})})})})})})})})},eF=(Z)=>{let J=new aF;return L1(P0.Provider,{value:Z.config,children:L1(sF,{client:J,children:L1(tF,{...Z})})})},JO=eF;import{useEffect as XO,useMemo as GO}from"react";import{QueryClient as WO,QueryClientProvider as HO,useQuery as zO}from"@tanstack/react-query";var fX=j(w9(),1);import{useEffect as YO,useState as QO}from"react";var xX=()=>{let[Z,J]=QO(null),Y=F7();return YO(()=>{if(typeof window>"u")return;let Q=window.Telegram.WebApp;if(Q.ready(),Y==="telegram_expanded"&&(Q.platform==="ios"||Q.platform==="android"))Q.expand();J(Q)},[]),Z};import{jsx as M1,Fragment as KO}from"react/jsx-runtime";var BO=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=D1(),G=L5(),W=N1();XO(()=>{if(_1())return;B5(),Q()},[]);let H=GO(()=>fX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=xX(),{data:B,isLoading:U,error:L}=zO({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,_1()],queryFn:async()=>{if(!_1())return;let $=Z.search?"&":"?",M=z?.initData?`${$}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+M;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let F=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",F.data);return F.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:($)=>Math.min(1000*2**$,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(U||!B){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!B});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",B),console.log("[PieRoot] Rendering UI with configuration");return M1(m1.Provider,{value:C0,children:M1(d1.Provider,{value:m5(X),children:M1(p1.Provider,{value:n5(X,G),children:M1(h1.Provider,{value:J??M1(KO,{}),children:M1(a5,{children:M1(s5,{children:M1(K1.StyleRoot,{children:M1(G1,{uiConfig:B})})})})})})})})},UO=(Z)=>{let J=new WO;return M1(P0.Provider,{value:Z.config,children:M1(HO,{client:J,children:M1(BO,{...Z})})})},LO=UO;export{o1 as registerPieComponent,_1 as isPieComponentsInitialized,B5 as initializePieComponents,G1 as UI,LO as PieTelegramRoot,JO as PieRoot,V1 as PieCard};
27
+ `).map((J)=>JSON.parse(J))}applyDeltaIfNeeded(Z,J){let Y,Q;if(Z.delta){let X=aB(J,new TextEncoder().encode(Z.data));Y=JSON.parse(new TextDecoder().decode(X)),Q=X}else Y=JSON.parse(Z.data),Q=new TextEncoder().encode(Z.data);return{newData:Y,newPrevValue:Q}}}var sB={headers:{},token:"",getToken:null,data:null,getData:null,debug:!1,name:"js",version:"",fetch:null,readableStream:null,websocket:null,eventsource:null,sockjs:null,sockjsOptions:{},emulationEndpoint:"/emulation",minReconnectDelay:500,maxReconnectDelay:20000,timeout:5000,maxServerPingDelay:1e4,networkEventTarget:null};class q1 extends Error{constructor(Z){super(Z);this.name=this.constructor.name}}class J0 extends UY{constructor(Z,J){super();if(this._reconnectTimeout=null,this._refreshTimeout=null,this._serverPingTimeout=null,this.state=h.Disconnected,this._transportIsOpen=!1,this._endpoint=Z,this._emulation=!1,this._transports=[],this._currentTransportIndex=0,this._triedAllTransports=!1,this._transportWasOpen=!1,this._transport=null,this._transportId=0,this._deviceWentOffline=!1,this._transportClosed=!0,this._codec=new X9,this._reconnecting=!1,this._reconnectTimeout=null,this._reconnectAttempts=0,this._client=null,this._session="",this._node="",this._subs={},this._serverSubs={},this._commandId=0,this._commands=[],this._batching=!1,this._refreshRequired=!1,this._refreshTimeout=null,this._callbacks={},this._token="",this._data=null,this._dispatchPromise=Promise.resolve(),this._serverPing=0,this._serverPingTimeout=null,this._sendPong=!1,this._promises={},this._promiseId=0,this._debugEnabled=!1,this._networkEventsSet=!1,this._config=Object.assign(Object.assign({},sB),J),this._configure(),this._debugEnabled)this.on("state",(Y)=>{this._debug("client state",Y.oldState,"->",Y.newState)}),this.on("error",(Y)=>{this._debug("client error",Y)});else this.on("error",function(){Function.prototype()})}newSubscription(Z,J){if(this.getSubscription(Z)!==null)throw Error("Subscription to the channel "+Z+" already exists");let Y=new KY(this,Z,J);return this._subs[Z]=Y,Y}getSubscription(Z){return this._getSub(Z)}removeSubscription(Z){if(!Z)return;if(Z.state!==o.Unsubscribed)Z.unsubscribe();this._removeSubscription(Z)}subscriptions(){return this._subs}ready(Z){return l(this,void 0,void 0,function*(){switch(this.state){case h.Disconnected:throw{code:_.clientDisconnected,message:"client disconnected"};case h.Connected:return;default:return new Promise((J,Y)=>{let Q={resolve:J,reject:Y};if(Z)Q.timeout=setTimeout(()=>{Y({code:_.timeout,message:"timeout"})},Z);this._promises[this._nextPromiseId()]=Q})}})}connect(){if(this._isConnected()){this._debug("connect called when already connected");return}if(this._isConnecting()){this._debug("connect called when already connecting");return}this._debug("connect called"),this._reconnectAttempts=0,this._startConnecting()}disconnect(){this._disconnect(p0.disconnectCalled,"disconnect called",!1)}setToken(Z){this._token=Z}setData(Z){this._data=Z}setHeaders(Z){this._config.headers=Z}send(Z){return l(this,void 0,void 0,function*(){let J={send:{data:Z}};if(yield this._methodCall(),!this._transportSendCommands([J]))throw this._createErrorObject(_.transportWriteError,"transport write error")})}rpc(Z,J){return l(this,void 0,void 0,function*(){let Y={rpc:{method:Z,data:J}};return yield this._methodCall(),{data:(yield this._callPromise(Y,(X)=>X.rpc)).data}})}publish(Z,J){return l(this,void 0,void 0,function*(){let Y={publish:{channel:Z,data:J}};return yield this._methodCall(),yield this._callPromise(Y,()=>({})),{}})}history(Z,J){return l(this,void 0,void 0,function*(){let Y={history:this._getHistoryRequest(Z,J)};yield this._methodCall();let Q=yield this._callPromise(Y,(G)=>G.history),X=[];if(Q.publications)for(let G=0;G<Q.publications.length;G++)X.push(this._getPublicationContext(Z,Q.publications[G]));return{publications:X,epoch:Q.epoch||"",offset:Q.offset||0}})}presence(Z){return l(this,void 0,void 0,function*(){let J={presence:{channel:Z}};yield this._methodCall();let Q=(yield this._callPromise(J,(X)=>X.presence)).presence;for(let X in Q)if(Object.prototype.hasOwnProperty.call(Q,X)){let G=Q[X],W=G.conn_info,H=G.chan_info;if(W)G.connInfo=W;if(H)G.chanInfo=H}return{clients:Q}})}presenceStats(Z){return l(this,void 0,void 0,function*(){let J={presence_stats:{channel:Z}};yield this._methodCall();let Y=yield this._callPromise(J,(Q)=>{return Q.presence_stats});return{numUsers:Y.num_users,numClients:Y.num_clients}})}startBatching(){this._batching=!0}stopBatching(){let Z=this;Promise.resolve().then(function(){Promise.resolve().then(function(){Z._batching=!1,Z._flush()})})}_debug(...Z){if(!this._debugEnabled)return;pB("debug",Z)}_codecName(){return this._codec.name()}_formatOverride(){return}_configure(){if(!("Promise"in globalThis))throw Error("Promise polyfill required");if(!this._endpoint)throw Error("endpoint configuration required");if(this._config.token!==null)this._token=this._config.token;if(this._config.data!==null)this._data=this._config.data;if(this._codec=new X9,this._formatOverride(),this._config.debug===!0||typeof localStorage<"u"&&typeof localStorage.getItem==="function"&&localStorage.getItem("centrifuge.debug"))this._debugEnabled=!0;if(this._debug("config",this._config),typeof this._endpoint==="string");else if(Array.isArray(this._endpoint)){this._transports=this._endpoint,this._emulation=!0;for(let Z in this._transports)if(this._transports.hasOwnProperty(Z)){let J=this._transports[Z];if(!J.endpoint||!J.transport)throw Error("malformed transport configuration");let Y=J.transport;if(["websocket","http_stream","sse","sockjs","webtransport"].indexOf(Y)<0)throw Error("unsupported transport name: "+Y)}}else throw Error("unsupported url configuration type: only string or array of objects are supported")}_setState(Z){if(this.state!==Z){this._reconnecting=!1;let J=this.state;return this.state=Z,this.emit("state",{newState:Z,oldState:J}),!0}return!1}_isDisconnected(){return this.state===h.Disconnected}_isConnecting(){return this.state===h.Connecting}_isConnected(){return this.state===h.Connected}_nextCommandId(){return++this._commandId}_setNetworkEvents(){if(this._networkEventsSet)return;let Z=null;if(this._config.networkEventTarget!==null)Z=this._config.networkEventTarget;else if(typeof globalThis.addEventListener<"u")Z=globalThis;if(Z)Z.addEventListener("offline",()=>{if(this._debug("offline event triggered"),this.state===h.Connected||this.state===h.Connecting)this._disconnect(d1.transportClosed,"transport closed",!0),this._deviceWentOffline=!0}),Z.addEventListener("online",()=>{if(this._debug("online event triggered"),this.state!==h.Connecting)return;if(this._deviceWentOffline&&!this._transportClosed)this._deviceWentOffline=!1,this._transportClosed=!0;this._clearReconnectTimeout(),this._startReconnecting()}),this._networkEventsSet=!0}_getReconnectDelay(){let Z=d5(this._reconnectAttempts,this._config.minReconnectDelay,this._config.maxReconnectDelay);return this._reconnectAttempts+=1,Z}_clearOutgoingRequests(){for(let Z in this._callbacks)if(this._callbacks.hasOwnProperty(Z)){let J=this._callbacks[Z];clearTimeout(J.timeout);let Y=J.errback;if(!Y)continue;Y({error:this._createErrorObject(_.connectionClosed,"connection closed")})}this._callbacks={}}_clearConnectedState(){this._client=null,this._clearServerPingTimeout(),this._clearRefreshTimeout();for(let Z in this._subs){if(!this._subs.hasOwnProperty(Z))continue;let J=this._subs[Z];if(J.state===o.Subscribed)J._setSubscribing(m5.transportClosed,"transport closed")}for(let Z in this._serverSubs)if(this._serverSubs.hasOwnProperty(Z))this.emit("subscribing",{channel:Z})}_handleWriteError(Z){for(let J of Z){let Y=J.id;if(!(Y in this._callbacks))continue;let Q=this._callbacks[Y];clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y];let X=Q.errback;X({error:this._createErrorObject(_.transportWriteError,"transport write error")})}}_transportSendCommands(Z){if(!Z.length)return!0;if(!this._transport)return!1;try{this._transport.send(this._codec.encodeCommands(Z),this._session,this._node)}catch(J){return this._debug("error writing commands",J),this._handleWriteError(Z),!1}return!0}_initializeTransport(){let Z;if(this._config.websocket!==null)Z=this._config.websocket;else if(!(typeof globalThis.WebSocket!=="function"&&typeof globalThis.WebSocket!=="object"))Z=globalThis.WebSocket;let J=null;if(this._config.sockjs!==null)J=this._config.sockjs;else if(typeof globalThis.SockJS<"u")J=globalThis.SockJS;let Y=null;if(this._config.eventsource!==null)Y=this._config.eventsource;else if(typeof globalThis.EventSource<"u")Y=globalThis.EventSource;let Q=null;if(this._config.fetch!==null)Q=this._config.fetch;else if(typeof globalThis.fetch<"u")Q=globalThis.fetch;let X=null;if(this._config.readableStream!==null)X=this._config.readableStream;else if(typeof globalThis.ReadableStream<"u")X=globalThis.ReadableStream;if(!this._emulation){if(cB(this._endpoint,"http"))throw Error("Provide explicit transport endpoints configuration in case of using HTTP (i.e. using array of TransportEndpoint instead of a single string), or use ws(s):// scheme in an endpoint if you aimed using WebSocket transport");else if(this._debug("client will use websocket"),this._transport=new Q9(this._endpoint,{websocket:Z}),!this._transport.supported())throw Error("WebSocket constructor not found, make sure it is available globally or passed as a dependency in Centrifuge options")}else{if(this._currentTransportIndex>=this._transports.length)this._triedAllTransports=!0,this._currentTransportIndex=0;let V=0;while(!0){if(V>=this._transports.length)throw Error("no supported transport found");let F=this._transports[this._currentTransportIndex],K=F.transport,M=F.endpoint;if(K==="websocket"){if(this._debug("trying websocket transport"),this._transport=new Q9(M,{websocket:Z}),!this._transport.supported()){this._debug("websocket transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="webtransport"){if(this._debug("trying webtransport transport"),this._transport=new $Y(M,{webtransport:globalThis.WebTransport,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("webtransport transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="http_stream"){if(this._debug("trying http_stream transport"),this._transport=new MY(M,{fetch:Q,readableStream:X,emulationEndpoint:this._config.emulationEndpoint,decoder:this._codec,encoder:this._codec}),!this._transport.supported()){this._debug("http_stream transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sse"){if(this._debug("trying sse transport"),this._transport=new FY(M,{eventsource:Y,fetch:Q,emulationEndpoint:this._config.emulationEndpoint}),!this._transport.supported()){this._debug("sse transport not available"),this._currentTransportIndex++,V++;continue}}else if(K==="sockjs"){if(this._debug("trying sockjs"),this._transport=new LY(M,{sockjs:J,sockjsOptions:this._config.sockjsOptions}),!this._transport.supported()){this._debug("sockjs transport not available"),this._currentTransportIndex++,V++;continue}}else throw Error("unknown transport "+K);break}}let G=this,W=this._transport,H=this._nextTransportId();G._debug("id of transport",H);let z=!1,U=[];if(this._transport.emulation()){let V=G._sendConnect(!0);U.push(V)}this._setNetworkEvents();let B=this._codec.encodeCommands(U);this._transportClosed=!1;let L;L=setTimeout(function(){W.close()},this._config.timeout),this._transport.initialize(this._codecName(),{onOpen:function(){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("open callback from non-actual transport"),W.close();return}if(z=!0,G._debug(W.subName(),"transport open"),W.emulation())return;G._transportIsOpen=!0,G._transportWasOpen=!0,G.startBatching(),G._sendConnect(!1),G._sendSubscribeCommands(),G.stopBatching(),G.emit("__centrifuge_debug:connect_frame_sent",{})},onError:function(V){if(G._transportId!=H){G._debug("error callback from non-actual transport");return}G._debug("transport level error",V)},onClose:function(V){if(L)clearTimeout(L),L=null;if(G._transportId!=H){G._debug("close callback from non-actual transport");return}G._debug(W.subName(),"transport closed"),G._transportClosed=!0,G._transportIsOpen=!1;let F="connection closed",K=!0,M=0;if(V&&"code"in V&&V.code)M=V.code;if(V&&V.reason)try{let I=JSON.parse(V.reason);F=I.reason,K=I.reconnect}catch(I){if(F=V.reason,M>=3500&&M<4000||M>=4500&&M<5000)K=!1}if(M<3000){if(M===1009)M=p0.messageSizeLimit,F="message size limit exceeded",K=!1;else M=d1.transportClosed,F="transport closed";if(G._emulation&&!G._transportWasOpen){if(G._currentTransportIndex++,G._currentTransportIndex>=G._transports.length)G._triedAllTransports=!0,G._currentTransportIndex=0}}else G._transportWasOpen=!0;if(G._isConnecting()&&!z)G.emit("error",{type:"transport",error:{code:_.transportClosed,message:"transport closed"},transport:W.name()});G._reconnecting=!1,G._disconnect(M,F,K)},onMessage:function(V){G._dataReceived(V)}},B),G.emit("__centrifuge_debug:transport_initialized",{})}_sendConnect(Z){let J=this._constructConnectCommand(),Y=this;return this._call(J,Z).then((Q)=>{let X=Q.reply.connect;if(Y._connectResponse(X),Q.next)Q.next()},(Q)=>{if(Y._connectError(Q.error),Q.next)Q.next()}),J}_startReconnecting(){if(this._debug("start reconnecting"),!this._isConnecting()){this._debug("stop reconnecting: client not in connecting state");return}if(this._reconnecting){this._debug("reconnect already in progress, return from reconnect routine");return}if(this._transportClosed===!1){this._debug("waiting for transport close");return}this._reconnecting=!0;let Z=this._token==="";if(!(this._refreshRequired||Z&&this._config.getToken!==null)){if(this._config.getData)this._config.getData().then((Q)=>{if(!this._isConnecting())return;this._data=Q,this._initializeTransport()}).catch((Q)=>this._handleGetDataError(Q));else this._initializeTransport();return}let Y=this;this._getToken().then(function(Q){if(!Y._isConnecting())return;if(Q==null||Q==null){Y._failUnauthorized();return}if(Y._token=Q,Y._debug("connection token refreshed"),Y._config.getData)Y._config.getData().then(function(X){if(!Y._isConnecting())return;Y._data=X,Y._initializeTransport()}).catch((X)=>Y._handleGetDataError(X));else Y._initializeTransport()}).catch(function(Q){if(!Y._isConnecting())return;if(Q instanceof q1){Y._failUnauthorized();return}Y.emit("error",{type:"connectToken",error:{code:_.clientConnectToken,message:Q!==void 0?Q.toString():""}});let X=Y._getReconnectDelay();Y._debug("error on getting connection token, reconnect after "+X+" milliseconds",Q),Y._reconnecting=!1,Y._reconnectTimeout=setTimeout(()=>{Y._startReconnecting()},X)})}_handleGetDataError(Z){if(Z instanceof q1){this._failUnauthorized();return}this.emit("error",{type:"connectData",error:{code:_.badConfiguration,message:(Z===null||Z===void 0?void 0:Z.toString())||""}});let J=this._getReconnectDelay();this._debug("error on getting connect data, reconnect after "+J+" milliseconds",Z),this._reconnecting=!1,this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_connectError(Z){if(this.state!==h.Connecting)return;if(Z.code===109)this._refreshRequired=!0;if(Z.code<100||Z.temporary===!0||Z.code===109)this.emit("error",{type:"connect",error:Z}),this._debug("closing transport due to connect error"),this._disconnect(Z.code,Z.message,!0);else this._disconnect(Z.code,Z.message,!1)}_scheduleReconnect(){if(!this._isConnecting())return;let Z=!1;if(this._emulation&&!this._transportWasOpen&&!this._triedAllTransports)Z=!0;let J=this._getReconnectDelay();if(Z)J=0;this._debug("reconnect after "+J+" milliseconds"),this._clearReconnectTimeout(),this._reconnectTimeout=setTimeout(()=>{this._startReconnecting()},J)}_constructConnectCommand(){let Z={};if(this._token)Z.token=this._token;if(this._data)Z.data=this._data;if(this._config.name)Z.name=this._config.name;if(this._config.version)Z.version=this._config.version;if(Object.keys(this._config.headers).length>0)Z.headers=this._config.headers;let J={},Y=!1;for(let Q in this._serverSubs)if(this._serverSubs.hasOwnProperty(Q)&&this._serverSubs[Q].recoverable){Y=!0;let X={recover:!0};if(this._serverSubs[Q].offset)X.offset=this._serverSubs[Q].offset;if(this._serverSubs[Q].epoch)X.epoch=this._serverSubs[Q].epoch;J[Q]=X}if(Y)Z.subs=J;return{connect:Z}}_getHistoryRequest(Z,J){let Y={channel:Z};if(J!==void 0){if(J.since){if(Y.since={offset:J.since.offset},J.since.epoch)Y.since.epoch=J.since.epoch}if(J.limit!==void 0)Y.limit=J.limit;if(J.reverse===!0)Y.reverse=!0}return Y}_methodCall(){if(this._isConnected())return Promise.resolve();return new Promise((Z,J)=>{let Y=setTimeout(function(){J({code:_.timeout,message:"timeout"})},this._config.timeout);this._promises[this._nextPromiseId()]={timeout:Y,resolve:Z,reject:J}})}_callPromise(Z,J){return new Promise((Y,Q)=>{this._call(Z,!1).then((X)=>{var G;let W=J(X.reply);Y(W),(G=X.next)===null||G===void 0||G.call(X)},(X)=>{var G;Q(X.error),(G=X.next)===null||G===void 0||G.call(X)})})}_dataReceived(Z){if(this._serverPing>0)this._waitServerPing();let J=this._codec.decodeReplies(Z);this._dispatchPromise=this._dispatchPromise.then(()=>{let Y;this._dispatchPromise=new Promise((Q)=>{Y=Q}),this._dispatchSynchronized(J,Y)})}_dispatchSynchronized(Z,J){let Y=Promise.resolve();for(let Q in Z)if(Z.hasOwnProperty(Q))Y=Y.then(()=>{return this._dispatchReply(Z[Q])});Y=Y.then(()=>{J()})}_dispatchReply(Z){let J,Y=new Promise((X)=>{J=X});if(Z===void 0||Z===null)return this._debug("dispatch: got undefined or null reply"),J(),Y;let Q=Z.id;if(Q&&Q>0)this._handleReply(Z,J);else if(!Z.push)this._handleServerPing(J);else this._handlePush(Z.push,J);return Y}_call(Z,J){return new Promise((Y,Q)=>{if(Z.id=this._nextCommandId(),this._registerCall(Z.id,Y,Q),!J)this._addCommand(Z)})}_startConnecting(){if(this._debug("start connecting"),this._setState(h.Connecting))this.emit("connecting",{code:d1.connectCalled,reason:"connect called"});this._client=null,this._startReconnecting()}_disconnect(Z,J,Y){if(this._isDisconnected())return;this._transportIsOpen=!1;let Q=this.state;this._reconnecting=!1;let X={code:Z,reason:J},G=!1;if(Y)G=this._setState(h.Connecting);else G=this._setState(h.Disconnected),this._rejectPromises({code:_.clientDisconnected,message:"disconnected"});if(this._clearOutgoingRequests(),Q===h.Connecting)this._clearReconnectTimeout();if(Q===h.Connected)this._clearConnectedState();if(G)if(this._isConnecting())this.emit("connecting",X);else this.emit("disconnected",X);if(this._transport){this._debug("closing existing transport");let W=this._transport;this._transport=null,W.close(),this._transportClosed=!0,this._nextTransportId()}else this._debug("no transport to close");this._scheduleReconnect()}_failUnauthorized(){this._disconnect(p0.unauthorized,"unauthorized",!1)}_getToken(){if(this._debug("get connection token"),!this._config.getToken)return this.emit("error",{type:"configuration",error:{code:_.badConfiguration,message:"token expired but no getToken function set in the configuration"}}),Promise.reject(new q1(""));return this._config.getToken({})}_refresh(){let Z=this._client,J=this;this._getToken().then(function(Y){if(Z!==J._client)return;if(!Y){J._failUnauthorized();return}if(J._token=Y,J._debug("connection token refreshed"),!J._isConnected())return;let Q={refresh:{token:J._token}};J._call(Q,!1).then((X)=>{let G=X.reply.refresh;if(J._refreshResponse(G),X.next)X.next()},(X)=>{if(J._refreshError(X.error),X.next)X.next()})}).catch(function(Y){if(!J._isConnected())return;if(Y instanceof q1){J._failUnauthorized();return}J.emit("error",{type:"refreshToken",error:{code:_.clientRefreshToken,message:Y!==void 0?Y.toString():""}}),J._refreshTimeout=setTimeout(()=>J._refresh(),J._getRefreshRetryDelay())})}_refreshError(Z){if(Z.code<100||Z.temporary===!0)this.emit("error",{type:"refresh",error:Z}),this._refreshTimeout=setTimeout(()=>this._refresh(),this._getRefreshRetryDelay());else this._disconnect(Z.code,Z.message,!1)}_getRefreshRetryDelay(){return d5(0,5000,1e4)}_refreshResponse(Z){if(this._refreshTimeout)clearTimeout(this._refreshTimeout),this._refreshTimeout=null;if(Z.expires)this._client=Z.client,this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl))}_removeSubscription(Z){if(Z===null)return;delete this._subs[Z.channel]}_unsubscribe(Z){if(!this._transportIsOpen)return Promise.resolve();let Y={unsubscribe:{channel:Z.channel}},Q=this;return new Promise((G,W)=>{this._call(Y,!1).then((H)=>{if(G(),H.next)H.next()},(H)=>{if(G(),H.next)H.next();Q._disconnect(d1.unsubscribeError,"unsubscribe error",!0)})})}_getSub(Z,J){if(J&&J>0){for(let Q in this._subs)if(this._subs.hasOwnProperty(Q)){let X=this._subs[Q];if(X._id===J)return X}return null}let Y=this._subs[Z];if(!Y)return null;return Y}_isServerSub(Z){return this._serverSubs[Z]!==void 0}_sendSubscribeCommands(){let Z=[];for(let J in this._subs){if(!this._subs.hasOwnProperty(J))continue;let Y=this._subs[J];if(Y._inflight===!0)continue;if(Y.state===o.Subscribing){let Q=Y._subscribe();if(Q)Z.push(Q)}}return Z}_connectResponse(Z){if(this._transportIsOpen=!0,this._transportWasOpen=!0,this._reconnectAttempts=0,this._refreshRequired=!1,this._isConnected())return;if(this._client=Z.client,this._setState(h.Connected),this._refreshTimeout)clearTimeout(this._refreshTimeout);if(Z.expires)this._refreshTimeout=setTimeout(()=>this._refresh(),c5(Z.ttl));this._session=Z.session,this._node=Z.node,this.startBatching(),this._sendSubscribeCommands(),this.stopBatching();let J={client:Z.client,transport:this._transport.subName()};if(Z.data)J.data=Z.data;if(this.emit("connected",J),this._resolvePromises(),this._processServerSubs(Z.subs||{}),Z.ping&&Z.ping>0)this._serverPing=Z.ping*1000,this._sendPong=Z.pong===!0,this._waitServerPing();else this._serverPing=0}_processServerSubs(Z){for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];this._serverSubs[J]={offset:Y.offset,epoch:Y.epoch,recoverable:Y.recoverable||!1};let Q=this._getSubscribeContext(J,Y);this.emit("subscribed",Q)}for(let J in Z){if(!Z.hasOwnProperty(J))continue;let Y=Z[J];if(Y.recovered){let Q=Y.publications;if(Q&&Q.length>0){for(let X in Q)if(Q.hasOwnProperty(X))this._handlePublication(J,Q[X])}}}for(let J in this._serverSubs){if(!this._serverSubs.hasOwnProperty(J))continue;if(!Z[J])this.emit("unsubscribed",{channel:J}),delete this._serverSubs[J]}}_clearRefreshTimeout(){if(this._refreshTimeout!==null)clearTimeout(this._refreshTimeout),this._refreshTimeout=null}_clearReconnectTimeout(){if(this._reconnectTimeout!==null)clearTimeout(this._reconnectTimeout),this._reconnectTimeout=null}_clearServerPingTimeout(){if(this._serverPingTimeout!==null)clearTimeout(this._serverPingTimeout),this._serverPingTimeout=null}_waitServerPing(){if(this._config.maxServerPingDelay===0)return;if(!this._isConnected())return;this._clearServerPingTimeout(),this._serverPingTimeout=setTimeout(()=>{if(!this._isConnected())return;this._disconnect(d1.noPing,"no ping",!0)},this._serverPing+this._config.maxServerPingDelay)}_getSubscribeContext(Z,J){let Y={channel:Z,positioned:!1,recoverable:!1,wasRecovering:!1,recovered:!1,hasRecoveredPublications:!1};if(J.recovered)Y.recovered=!0;if(J.positioned)Y.positioned=!0;if(J.recoverable)Y.recoverable=!0;if(J.was_recovering)Y.wasRecovering=!0;let Q="";if("epoch"in J)Q=J.epoch;let X=0;if("offset"in J)X=J.offset;if(Y.positioned||Y.recoverable)Y.streamPosition={offset:X,epoch:Q};if(Array.isArray(J.publications)&&J.publications.length>0)Y.hasRecoveredPublications=!0;if(J.data)Y.data=J.data;return Y}_handleReply(Z,J){let Y=Z.id;if(!(Y in this._callbacks)){J();return}let Q=this._callbacks[Y];if(clearTimeout(this._callbacks[Y].timeout),delete this._callbacks[Y],!iB(Z)){let X=Q.callback;if(!X)return;X({reply:Z,next:J})}else{let X=Q.errback;if(!X){J();return}let G={code:Z.error.code,message:Z.error.message||"",temporary:Z.error.temporary||!1};X({error:G,next:J})}}_handleJoin(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("join",X)}return}Q._handleJoin(J)}_handleLeave(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X={channel:Z,info:this._getJoinLeaveContext(J.info)};this.emit("leave",X)}return}Q._handleLeave(J)}_handleUnsubscribe(Z,J){let Y=this._getSub(Z,0);if(!Y&&Z){if(this._isServerSub(Z))delete this._serverSubs[Z],this.emit("unsubscribed",{channel:Z});return}if(J.code<2500)Y._setUnsubscribed(J.code,J.reason,!1);else Y._setSubscribing(J.code,J.reason)}_handleSubscribe(Z,J){this._serverSubs[Z]={offset:J.offset,epoch:J.epoch,recoverable:J.recoverable||!1},this.emit("subscribed",this._getSubscribeContext(Z,J))}_handleDisconnect(Z){let J=Z.code,Y=!0;if(J>=3500&&J<4000||J>=4500&&J<5000)Y=!1;this._disconnect(J,Z.reason,Y)}_getPublicationContext(Z,J){let Y={channel:Z,data:J.data};if(J.offset)Y.offset=J.offset;if(J.info)Y.info=this._getJoinLeaveContext(J.info);if(J.tags)Y.tags=J.tags;return Y}_getJoinLeaveContext(Z){let J={client:Z.client,user:Z.user},Y=Z.conn_info;if(Y)J.connInfo=Y;let Q=Z.chan_info;if(Q)J.chanInfo=Q;return J}_handlePublication(Z,J,Y){let Q=this._getSub(Z,Y);if(!Q&&Z){if(this._isServerSub(Z)){let X=this._getPublicationContext(Z,J);if(this.emit("publication",X),J.offset!==void 0)this._serverSubs[Z].offset=J.offset}return}Q._handlePublication(J)}_handleMessage(Z){this.emit("message",{data:Z.data})}_handleServerPing(Z){if(this._sendPong){let J={};this._transportSendCommands([J])}Z()}_handlePush(Z,J){let{channel:Y,id:Q}=Z;if(Z.pub)this._handlePublication(Y,Z.pub,Q);else if(Z.message)this._handleMessage(Z.message);else if(Z.join)this._handleJoin(Y,Z.join,Q);else if(Z.leave)this._handleLeave(Y,Z.leave,Q);else if(Z.unsubscribe)this._handleUnsubscribe(Y,Z.unsubscribe);else if(Z.subscribe)this._handleSubscribe(Y,Z.subscribe);else if(Z.disconnect)this._handleDisconnect(Z.disconnect);J()}_flush(){let Z=this._commands.slice(0);this._commands=[],this._transportSendCommands(Z)}_createErrorObject(Z,J,Y){let Q={code:Z,message:J};if(Y)Q.temporary=!0;return Q}_registerCall(Z,J,Y){this._callbacks[Z]={callback:J,errback:Y,timeout:null},this._callbacks[Z].timeout=setTimeout(()=>{if(delete this._callbacks[Z],BY(Y))Y({error:this._createErrorObject(_.timeout,"timeout")})},this._config.timeout)}_addCommand(Z){if(this._batching)this._commands.push(Z);else this._transportSendCommands([Z])}_nextPromiseId(){return++this._promiseId}_nextTransportId(){return++this._transportId}_resolvePromises(){for(let Z in this._promises){if(!this._promises.hasOwnProperty(Z))continue;if(this._promises[Z].timeout)clearTimeout(this._promises[Z].timeout);this._promises[Z].resolve(),delete this._promises[Z]}}_rejectPromises(Z){for(let J in this._promises){if(!this._promises.hasOwnProperty(J))continue;if(this._promises[J].timeout)clearTimeout(this._promises[J].timeout);this._promises[J].reject(Z),delete this._promises[J]}}}J0.SubscriptionState=o;J0.State=h;J0.UnauthorizedError=q1;var l5=(Z,J)=>{async function Y(){let Q=await fetch(Z+"api/centrifuge/gen_token");if(!Q.ok){if(Q.status===403)throw new J0.UnauthorizedError("Backend is not answering");throw Error(`Unexpected status code ${Q.status}`)}return(await Q.json()).token}return J?new J0(J||"",{getToken:Y}):null},tB=rB(null),c1=tB;import{useContext as ZK,useEffect as JK}from"react";import{useEffect as eB,useState as IY}from"react";function i5(Z,J){let[Y,Q]=IY(null),[X,G]=IY(!1);return eB(()=>{if(!X)G(!0),fetch(Z+`api/support/${J}`,{method:"GET"}).then((W)=>W.json()).then((W)=>{Q(W)})},[]),Y}var YK=({children:Z})=>{let J=ZK(u1),Y=$1(),Q=i5(Y,"socketIO"),X=(G)=>{if(typeof window<"u")window.sid=G.sid,console.log(`SocketIO initialized: ${window.sid}`)};return JK(()=>{if(!J)return;let G=()=>{console.log("SocketIO connected")},W=(H)=>{console.log(`SocketIO disconnected: ${H}`),J.connect()};if(Q)J.on("pieinit",X),J.on("connect",G),J.on("disconnect",W),J.connect();return()=>{if(Q)J.off("pieinit",X),J.off("connect",G),J.off("disconnect",W),J.disconnect()}},[J,Q]),Z},n5=YK;import{useContext as QK,useEffect as XK}from"react";var GK=({children:Z})=>{let J=QK(c1),Y=$1(),Q=i5(Y,"centrifuge");return XK(()=>{if(!J)return;let X=()=>{console.log("Centrifuge connected")},G=(W)=>{console.log("Centrifuge disconnected:",W)};if(Q)J.on("connected",X),J.on("disconnected",G),J.connect();return()=>{if(Q)J.disconnect()}},[J,Q]),Z},o5=GK;var PX=S(P9(),1);import{useContext as T9,useEffect as w9}from"react";var sL=({card:Z,data:J,children:Y,useSocketioSupport:Q=!1,useCentrifugeSupport:X=!1,useMittSupport:G=!1,centrifugeChannel:W=void 0,methods:H=void 0})=>{let z=O1();if(z)console.log("[PieCard] Rendering card:",Z),console.log("[PieCard] Card data:",J),console.log("[PieCard] Component name:",J?.name),console.log("[PieCard] Real-time support:",{socketio:Q,centrifuge:X,mitt:G,centrifugeChannel:W}),console.log("[PieCard] Methods:",H?Object.keys(H):"none"),console.log("[PieCard] Has children:",!!Y);let U=T9(u1),B=T9(c1),L=T9(y1);if(w9(()=>{if(!U||!Q||!H||!J.name){if(z&&Q)console.log("[PieCard] Socket.IO setup skipped:",{hasSocket:!!U,useSocketioSupport:Q,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,F])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO registering event: ${K}`);U.on(K,F)}),()=>{Object.entries(H).forEach(([V,F])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Socket.IO unregistering event: ${K}`);U.off(K,F)})}},[U,H,J.name]),w9(()=>{if(!B||!X||!W||!H||!J.name){if(z&&X)console.log("[PieCard] Centrifuge setup skipped:",{hasCentrifuge:!!B,useCentrifugeSupport:X,hasCentrifugeChannel:!!W,hasMethods:!!H,hasDataName:!!J?.name});return}let V=Object.entries(H).map(([F,K])=>{let M=`pie${F}_${J.name}_${W}`;if(z)console.log(`[PieCard] Centrifuge subscribing to channel: ${M}`);let I=B.newSubscription(M);return I.on("publication",(N)=>{if(z)console.log(`[PieCard] Centrifuge received data on ${M}:`,N.data);K(N.data)}),I.subscribe(),I});return()=>{V.forEach((F)=>{if(z)console.log("[PieCard] Centrifuge unsubscribing from channel");F.unsubscribe(),B.removeSubscription(F)})}},[B,W,H,J.name]),w9(()=>{if(!L||!G||!H||!J.name){if(z&&G)console.log("[PieCard] Mitt setup skipped:",{hasMitt:!!L,useMittSupport:G,hasMethods:!!H,hasDataName:!!J?.name});return}return Object.entries(H).forEach(([V,F])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt registering event: ${K}`);L.on(K,F)}),()=>{Object.entries(H).forEach(([V,F])=>{let K=`pie${V}_${J.name}`;if(z)console.log(`[PieCard] Mitt unregistering event: ${K}`);L.off(K,F)})}},[L,H,J.name]),z)console.log("[PieCard] Rendering complete, returning children");return Y},F1=sL;function U6(Z){if(!Z)return{};let J={...Z};if("animationName"in J&&typeof J.animationName==="object"){let Y="radiumAnimation_"+Math.random().toString(36).substring(2,8);J.animationName=H1.keyframes(J.animationName,Y)}return J}import{jsx as E9}from"react/jsx-runtime";var rL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q,sx:X}=Z;return E9(F1,{card:Q,data:Z,children:E9("div",{style:U6(X),id:Q,children:J.map((G,W)=>{return E9(Z1,{uiConfig:G,setUiAjaxConfiguration:Y},`children-${W}`)})})})},bQ=H1(rL);import{jsx as gQ}from"react/jsx-runtime";var tL=({data:Z,content:J,setUiAjaxConfiguration:Y})=>{let{name:Q}=Z;return gQ(F1,{card:Q,data:Z,children:J.map((X,G)=>{return gQ(Z1,{uiConfig:X,setUiAjaxConfiguration:Y},`children-${G}`)})})},yQ=tL;import{useContext as mQ,useEffect as eL,useRef as ZM,useState as uQ}from"react";import{jsx as dQ}from"react/jsx-runtime";var JM=({data:Z,content:J})=>{let{useLoader:Y,noReturn:Q,returnType:X,useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z}=Z,U=mQ(k1),[B,L]=uQ(!1),[V,F]=uQ(null),K=ZM(J),M=mQ(y1),I=(D)=>{if(D===null)L(!0);else if(L(!1),!Q)K.current=D;if(!Q)F(D)},N=(D)=>{K.current=D.content,F(D.content)},P=(D)=>{if(D===null)L(!0);else if(L(!1),!Q)for(let q of D)M.emit(q.name,q.data)};if(eL(()=>{F(J),L(!1)},[J]),!V&&Y)return U;return dQ(F1,{card:"AjaxGroupCard",data:Z,methods:{changeContent:N},useSocketioSupport:G,useCentrifugeSupport:W,useMittSupport:H,centrifugeChannel:z,children:dQ(Z1,{uiConfig:V??K.current,setUiAjaxConfiguration:X==="events"?P:I})})},cQ=H1(JM);function S9(Z=1000){return new Promise((J)=>{if(typeof window>"u"){J();return}let Y=()=>{if(typeof window.sid<"u")J();else setTimeout(Y,Z)};Y()})}var B6=(Z,J={},Y=[],Q)=>{let X=O1();if(X)console.log("Registering AJAX: ",Q,J,Y);if(!Q||!Z){if(X)console.warn("Registration FAILED: pathname or setUiAjaxConfiguration is missing!");return()=>{}}return async(G={})=>{if(typeof window>"u"||typeof document>"u"){if(X)console.warn("getAjaxSubmit called on server, skipping DOM-dependent logic");return}if(Y.includes("sid"))await S9();let W=new FormData;for(let[z,U]of Object.entries({...J,...G}))W.append(z,U);for(let z of Y)if(z==="sid"){if(!window.sid)throw Error("SocketIO isn't initialized properly");W.append("sid",window.sid)}else{let U=document.getElementsByName(z);if(!U.length){if(X)console.warn(`No input found with name ${z}`);continue}let B=U[0];if(B instanceof HTMLInputElement)if(B.type==="file"&&B.files)Array.from(B.files).forEach((L)=>W.append(z,L));else W.append(z,B.value);else if(B instanceof HTMLTextAreaElement)W.append(z,B.value)}let H=$1()+"api/ajax_content"+Q;return Z(null),await fetch(H,{method:"POST",body:W}).then(async(z)=>{let B=(z.headers.get("content-type")||"").includes("application/json");if(!!z.body?.getReader&&!B){let V=z.body.getReader(),F=new TextDecoder,K="";while(!0){let{done:M,value:I}=await V.read();if(M)break;K+=F.decode(I,{stream:!0});let N=K.split(`
28
+ `);K=N.pop()??"";for(let P of N){let D=P.trim();if(!D)continue;try{let q=JSON.parse(D);Z([q])}catch(q){if(X)console.warn("Failed to parse streamed line:",D)}}}if(K.trim())try{let M=JSON.parse(K);Z([M])}catch(M){if(X)console.warn("Failed to parse final streamed line:",K)}return{}}else{let V=await z.json();return Z(V),V}}).catch((z)=>{if(X)console.error("AJAX request failed:",z);return Z(null),z})}};import{useMemo as s2}from"react";var a9=S(o9(),1),G0=S(o9(),1),I6=a9.default.default||a9.default;import{jsx as s9,jsxs as t2}from"react/jsx-runtime";var r2=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,title:Q,iconUrl:X,iconPosition:G,sx:W,pathname:H,kwargs:z,depsNames:U}=Z,B=s2(()=>B6(J,z,U,H),[J,z,U,H]);return s9(F1,{card:"AjaxButtonCard",data:Z,children:t2("button",{id:Y,className:"box-border flex min-h-12 w-full min-w-min cursor-pointer items-center justify-center rounded-[16px] border border-[#080318] bg-white text-center font-[TTForsTrial] text-[#080318] hover:bg-neutral-300",value:Y,onClick:()=>B(),style:U6(W),type:"button",children:[X&&G==="start"&&s9("img",{src:X,alt:""}),I6(Q),X&&G==="end"&&s9("img",{src:X,alt:""})]})})},s3=H1(r2);import{forwardRef as DF,useEffect as LX,useImperativeHandle as NF,useRef as AF,useState as A6}from"react";import{useRef as e2,useState as ZF}from"react";import{jsx as JF}from"react/jsx-runtime";function r9(Z){let[J,Y]=ZF(!1),Q=e2(null);return JF("textarea",{ref:Q,...Z,onKeyUp:()=>{Y(!1)},onKeyDown:(H)=>{if(H.key==="Enter"&&H.shiftKey){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);Q.current.style.height=Q.current.scrollHeight+U+"px"}}if(H.key==="Backspace"){if(Y(!0),Q.current&&typeof window<"u"){let z=window.getComputedStyle(Q.current),U=parseFloat(z.lineHeight);if(Q.current.scrollHeight>U)Q.current.style.height=Q.current.scrollHeight-U+"px"}}Z.onKeyDown&&Z.onKeyDown(H)},onBlur:(H)=>{Y(!1),Z.onBlur&&Z.onBlur(H)},style:{resize:J?"vertical":"none",overflowY:"auto",...Z.style}})}import{useRef as QF,useCallback as XF}from"react";import{jsx as r3}from"react/jsx-runtime";var YF=()=>r3("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:r3("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})}),t3=YF;import{jsx as t9}from"react/jsx-runtime";var GF=({type:Z="button",onClick:J,icons:Y})=>{let Q=QF(null),X=XF(()=>{let W=Q.current;if(W)W.style.transform="scale(0.8)",setTimeout(()=>{W.style.transform="scale(1)"},600)},[]);return t9("button",{ref:Q,type:Z,onClick:(W)=>{if(J)J(W);X()},className:"mr-1.5 rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",style:{transition:"transform 300ms ease"},children:Y.sendIcon?t9("img",{src:Y.sendIcon,alt:""}):t9(t3,{})})},e3=GF;import{jsx as ZX}from"react/jsx-runtime";var WF=()=>ZX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:ZX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"})}),JX=WF;import{jsx as q6,jsxs as UF,Fragment as zF}from"react/jsx-runtime";var HF=({name:Z,accept:J,fileInputRef:Y,onSelectFile:Q,icons:X})=>{return UF(zF,{children:[q6("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:()=>{if(Y.current)Y.current.click()},children:X.attachFileIcon?q6("img",{src:X.attachFileIcon,alt:""}):q6(JX,{})}),q6("input",{id:Z+"__pie__file",name:Z+"__pie__file",className:"hidden",type:"file",accept:J,ref:Y,onChange:(G)=>{if(G.target.files)Q(G.target.files[0])}})]})},YX=HF;import{jsx as QX}from"react/jsx-runtime";var BF=()=>QX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5 text-gray-500",children:QX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),XX=BF;import{jsx as GX}from"react/jsx-runtime";var KF=()=>GX("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:GX("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),D6=KF;import{jsx as G5,jsxs as MF}from"react/jsx-runtime";var LF=({name:Z,selectedFile:J,onDropFile:Y})=>{return MF("div",{className:"flex w-full cursor-default flex-row items-center gap-2",children:[G5(XX,{}),G5("span",{className:"flex-1",children:J.name}),G5("input",{type:"hidden",name:Z,value:""}),G5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:Y,children:G5(D6,{})})]})},WX=LF;import{jsx as HX,jsxs as $F}from"react/jsx-runtime";var FF=()=>$F("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-5",children:[HX("path",{d:"M8 5C8 2.79086 9.79086 1 12 1C14.2091 1 16 2.79086 16 5V12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12V5Z"}),HX("path",{d:"M6.25 11.8438V12C6.25 13.525 6.8558 14.9875 7.93414 16.0659C9.01247 17.1442 10.475 17.75 12 17.75C13.525 17.75 14.9875 17.1442 16.0659 16.0659C17.1442 14.9875 17.75 13.525 17.75 12V11.8438C17.75 11.2915 18.1977 10.8438 18.75 10.8438H19.25C19.8023 10.8438 20.25 11.2915 20.25 11.8437V12C20.25 14.188 19.3808 16.2865 17.8336 17.8336C16.5842 19.0831 14.9753 19.8903 13.25 20.1548V22C13.25 22.5523 12.8023 23 12.25 23H11.75C11.1977 23 10.75 22.5523 10.75 22V20.1548C9.02471 19.8903 7.41579 19.0831 6.16637 17.8336C4.61919 16.2865 3.75 14.188 3.75 12V11.8438C3.75 11.2915 4.19772 10.8438 4.75 10.8438H5.25C5.80228 10.8438 6.25 11.2915 6.25 11.8438Z"})]}),zX=FF;import{jsx as W5}from"react/jsx-runtime";var OF=({isListening:Z,toggleListening:J,icons:Y})=>{return W5("button",{className:"rounded-md p-1 text-gray-500 ring-0 hover:bg-gray-100 disabled:opacity-40 disabled:hover:bg-transparent",type:"button",onClick:J,children:Z?Y.cancelIcon?W5("img",{src:Y.cancelIcon,alt:""}):W5(D6,{}):Y.voiceRecordingIcon?W5("img",{src:Y.voiceRecordingIcon,alt:""}):W5(zX,{})})},UX=OF;import{jsx as BX,jsxs as IF}from"react/jsx-runtime";var VF=({option:Z,onClickOption:J})=>{return IF("div",{className:"flex w-fit cursor-pointer flex-row place-content-center items-center gap-1 rounded-md border border-black bg-white px-2 py-1 text-black",onClick:()=>{J(Z.title)},style:Z.sx,children:[Z.iconPosition==="start"&&BX("img",{src:Z.iconUrl,alt:""}),Z.title,Z.iconPosition==="end"&&BX("img",{src:Z.iconUrl,alt:""})]})},N6=VF;import{jsx as KX}from"react/jsx-runtime";var qF=({options:Z,handleOptionClick:J})=>{return KX("div",{className:"flex w-full flex-row flex-wrap justify-start gap-[5px]",children:Z.map((Y,Q)=>{return KX(N6,{option:Y,onClickOption:J},Q)})})},e9=qF;import{jsx as x1,jsxs as MX}from"react/jsx-runtime";var RF=DF(({name:Z,defaultValue:J,defaultOptions:Y,isArea:Q,placeholder:X,fileAccept:G,optionsPosition:W,icons:H,handleOptionClick:z,handleSendMessage:U,sx:B},L)=>{let V=AF(null),[F,K]=A6(null),[M,I]=A6(J),[N,P]=A6(Y),[D,q]=A6(!1);NF(L,()=>({clear:()=>{if(I(""),K(null),V.current)V.current.value=""},setValue:(C)=>I(C),setOptions:(C)=>P(C)})),LX(()=>{I(J)},[J]),LX(()=>{},[]);let E=()=>{};return MX("div",{className:"flex flex-col items-center gap-[0.1rem]",id:Z+"_chat_input",style:B,children:[N&&W==="top"&&x1(e9,{options:N,handleOptionClick:z}),x1("div",{className:"stretch relative flex size-full flex-1 flex-row items-stretch gap-3 last:mb-2 md:mx-4 md:flex-col md:last:mb-6 lg:mx-auto",children:MX("div",{className:"flex w-full grow flex-row items-center rounded-md bg-transparent",children:[F?x1(WX,{name:Z,selectedFile:F,onDropFile:()=>{if(K(null),V.current)V.current.value=""}}):!Q?x1("input",{name:Z,value:M,onChange:(C)=>I(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter")C.preventDefault(),U()},tabIndex:0,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent outline-none",style:{maxHeight:200,height:"100%",overflowY:"hidden"}}):x1(r9,{name:Z,value:M,onChange:(C)=>I(C.target.value),onKeyDown:(C)=>{if(C.key==="Enter"&&!C.shiftKey)C.preventDefault(),U()},tabIndex:0,rows:2,placeholder:X,className:"m-0 w-full resize-none border-0 bg-transparent p-0 pl-2 pr-7 outline-none md:pl-0",style:{maxHeight:200,height:"100%",minHeight:24}}),x1(UX,{isListening:D,toggleListening:E,icons:H}),x1(YX,{name:Z,fileInputRef:V,accept:G,onSelectFile:K,icons:H}),x1(e3,{onClick:U,icons:H})]})}),N&&W==="bottom"&&x1(e9,{options:N,handleOptionClick:z})]})}),FX=RF;import{useState as CF,useEffect as fF}from"react";import{useEffect as PF,useState as TF}from"react";import{jsx as EF}from"react/jsx-runtime";function wF({children:Z}){let[J,Y]=TF(Z);return PF(()=>{Y(Z)},[Z]),EF("div",{className:"max-w-full first:mt-0",children:J})}var $X=wF;import{jsx as OX}from"react/jsx-runtime";var SF=()=>OX("svg",{width:"30",height:"30",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:OX("path",{d:"m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 0.5 c 0 1.109375 0.890625 2 2 2 h 8 c 1.109375 0 2 -0.890625 2 -2 v -0.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0",fill:"#2e3436"})}),VX=SF;import{jsx as R6}from"react/jsx-runtime";function xF({username:Z,avatar:J}){return R6("div",{className:"w-[30px]",children:R6("div",{className:"relative flex size-[30px] items-center justify-center rounded-sm p-1 text-white",children:J?R6("img",{src:J,className:"absolute inset-0 rounded",alt:Z}):R6(VX,{})})})}var Z7=xF;import{jsx as A1,jsxs as IX}from"react/jsx-runtime";var jF=({message:Z,handleOptionClick:J,setUiAjaxConfiguration:Y})=>{let[Q,X]=CF(!1);return fF(()=>{let G=setTimeout(()=>{if(Q)X(!1)},1000);return()=>clearTimeout(G)},[Q]),A1("div",{className:"group w-full border-b border-black/10",id:Z.id,children:IX("div",{className:`flex gap-4 p-4 text-base md:max-w-2xl md:gap-6 md:py-6 lg:max-w-3xl xl:max-w-5xl ${Z.align==="center"?"m-auto":""} ${Z.align==="right"?"ml-auto justify-end":""} ${Z.align==="left"?"mr-auto":""} `,children:[(Z.align==="left"||Z.align==="center")&&A1("div",{className:"relative flex shrink-0 flex-col items-end",children:A1(Z7,{username:Z.username,avatar:Z.avatar})}),IX("div",{className:"relative flex w-[calc(100%-50px)] flex-col gap-1 md:gap-3 lg:w-[calc(100%-115px)]",children:[A1("div",{className:`markdown light prose w-full break-words dark:prose-invert first:mt-0 ${Z.align==="right"?"flex justify-end self-end":""}`,children:typeof Z.content==="string"?Z.parseMode.toLowerCase()==="markdown"?A1($X,{children:Z.content},Date.now()+Math.random()):Z.parseMode.toLowerCase()==="html"?I6(Z.content):Z.content:A1(Z1,{uiConfig:Z.content,setUiAjaxConfiguration:Y})}),A1("div",{className:"flex flex-row flex-wrap justify-start gap-1",children:Z.options.map((G,W)=>A1(N6,{onClickOption:J,option:G},W))})]}),Z.align==="right"&&A1("div",{className:"relative flex shrink-0 flex-col items-end",children:A1(Z7,{username:Z.username,avatar:Z.avatar})})]})})},qX=jF;import{forwardRef as _F,useEffect as vF,useImperativeHandle as kF,useRef as hF,useState as bF}from"react";import{jsx as DX}from"react/jsx-runtime";var gF=_F(({name:Z,handleOptionClick:J,defaultMessages:Y,sx:Q,setUiAjaxConfiguration:X},G)=>{let[W,H]=bF(Y),z=hF(null),U=()=>{if(z.current)z.current.scrollTop=z.current.scrollHeight};return vF(()=>{U()},[W]),kF(G,()=>({setMessages:(B)=>H(B),addMessage:(B)=>H((L)=>[...L,B]),scrollToBottom:U})),DX("div",{id:Z+"_messages",className:"flex flex-col items-center overflow-y-scroll",style:Q,ref:z,children:W.map((B)=>DX(qX,{message:B,handleOptionClick:J,setUiAjaxConfiguration:X},B.id))})}),NX=gF;import{useEffect as yF,useMemo as mF,useRef as AX,useState as uF}from"react";import{jsx as J7,jsxs as cF}from"react/jsx-runtime";var dF=({data:Z,setUiAjaxConfiguration:J})=>{let{name:Y,defaultValue:Q,defaultMessages:X,defaultOptions:G,isArea:W,fileAccept:H,placeholder:z,icons:U,optionsPosition:B,sxMap:L={container:{},chatInput:{},messages:{}},depsNames:V,pathname:F,kwargs:K,useSocketioSupport:M,useCentrifugeSupport:I,centrifugeChannel:N}=Z,P=AX(null),D=AX(null),[q,E]=uF(!1),C=mF(()=>B6(J,K,V,F),[J,K,V,F]);yF(()=>{if(q)requestAnimationFrame(()=>{C(),E(!1)})},[q]);let m=(c)=>{if(P.current)P.current.setValue(c),E(!0)},i1=()=>{if(P.current)P.current.clear()},f1=(c)=>{if(P.current)P.current.setOptions(c.options)},j1=(c)=>{if(D.current)D.current.addMessage(c.message)},v=(c)=>{if(D.current)D.current.setMessages(c.messages)},R1=()=>{E(!0)};return J7(F1,{card:"ChatCard",data:Z,methods:{clearInput:i1,setOptions:f1,addMessage:j1,setMessages:v},useSocketioSupport:M,useCentrifugeSupport:I,centrifugeChannel:N,children:cF("div",{className:"flex size-full flex-col",style:L.container,children:[J7(NX,{ref:D,name:Y,defaultMessages:X,sx:L.messages,handleOptionClick:m,setUiAjaxConfiguration:J}),J7(FX,{ref:P,name:Y,isArea:W,defaultOptions:G,placeholder:z,defaultValue:Q,fileAccept:H,sx:L.chatInput,handleSendMessage:R1,handleOptionClick:m,optionsPosition:B,icons:U})]})})},RX=dF;var Y7=!1;function H5(){if(Y7)return;n1({name:"SequenceCard",component:bQ,metadata:{author:"PieData",description:"Simple div with styles joining few components"}}),n1({name:"UnionCard",component:yQ,metadata:{author:"PieData",description:"Renders one of many components"}}),n1({name:"AjaxGroupCard",component:cQ,metadata:{author:"PieData",description:"Group card with AJAX support"}}),n1({name:"AjaxButtonCard",component:s3,metadata:{author:"PieData",description:"Button with AJAX support"}}),n1({name:"ChatCard",component:RX,metadata:{author:"PieData"}}),Y7=!0}function C1(){return Y7}import{jsx as z1,Fragment as rF}from"react/jsx-runtime";var aF=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=$1(),G=B5(),W=O1();pF(()=>{if(C1())return;H5(),Q()},[]);let H=lF(()=>PX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let{data:z,isLoading:U,error:B}=oF({queryKey:["uiConfig",Z.pathname+Z.search,C1()],queryFn:async()=>{if(!C1())return;let L="/api/content"+Z.pathname+Z.search;if(W)console.log("[PieRoot] Fetching UI configuration from:",L);let V=await H.get(L,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",V.data);return V.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(L)=>Math.min(1000*2**L,30000)});if(B){if(W)console.error("[PieRoot] Error fetching UI configuration:",B),console.error("[PieRoot] Error details:",{message:B.message,status:B.response?.status,data:B.response?.data});return Y?.(),J}if(U||!z){if(W)console.log("[PieRoot] Loading state:",{isLoading:U,hasUiConfiguration:!!z});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",z),console.log("[PieRoot] Rendering UI with configuration");return z1(y1.Provider,{value:C0,children:z1(u1.Provider,{value:g5(X),children:z1(c1.Provider,{value:l5(X,G),children:z1(k1.Provider,{value:J??z1(rF,{}),children:z1(n5,{children:z1(o5,{children:z1(H1.StyleRoot,{children:z1(Z1,{uiConfig:z})})})})})})})})},sF=(Z)=>{let J=new iF;return z1(R0.Provider,{value:Z.config,children:z1(nF,{client:J,children:z1(aF,{...Z})})})},tF=sF;import{useEffect as J$,useMemo as Y$}from"react";import{QueryClient as Q$,QueryClientProvider as X$,useQuery as G$}from"@tanstack/react-query";var wX=S(P9(),1);import{useEffect as eF,useState as Z$}from"react";var TX=()=>{let[Z,J]=Z$(null),Y=L7();return eF(()=>{if(typeof window>"u")return;let Q=window.Telegram.WebApp;if(Q.ready(),Y==="telegram_expanded"&&(Q.platform==="ios"||Q.platform==="android"))Q.expand();J(Q)},[]),Z};import{jsx as U1,Fragment as z$}from"react/jsx-runtime";var W$=({location:Z,fallback:J,onError:Y,initializePie:Q})=>{let X=$1(),G=B5(),W=O1();J$(()=>{if(C1())return;H5(),Q()},[]);let H=Y$(()=>wX.createAxiosDateTransformer({baseURL:X}),[]);if(W)console.log("[PieRoot] Rendering with location:",Z),console.log("[PieRoot] API_SERVER:",X),console.log("[PieRoot] Fallback provided:",!!J);if(!X)throw Error("Set PIE_API_SERVER and PIE_CENTRIFUGE_SERVER");let z=TX(),{data:U,isLoading:B,error:L}=G$({queryKey:["uiConfig",Z.pathname+Z.search,z?.initData,C1()],queryFn:async()=>{if(!C1())return;let V=Z.search?"&":"?",F=z?.initData?`${V}initData=${encodeURIComponent(z.initData)}`:"",K="/api/content"+Z.pathname+Z.search+F;if(W)console.log("[PieRoot] Fetching UI configuration from:",K);let M=await H.get(K,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET,PUT,POST,DELETE,PATCH,OPTIONS","Content-type":"application/json"},withCredentials:!0});if(W)console.log("[PieRoot] Received UI configuration:",M.data);return M.data},staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,retry:!0,retryDelay:(V)=>Math.min(1000*2**V,30000)});if(L&&W)return console.error("[PieRoot] Error fetching UI configuration:",L),console.error("[PieRoot] Error details:",{message:L.message,status:L.response?.status,data:L.response?.data}),Y?.(),J;if(B||!U){if(W)console.log("[PieRoot] Loading state:",{isLoading:B,hasUiConfiguration:!!U});return J}if(W)console.log("[PieRoot] UI configuration loaded successfully:",U),console.log("[PieRoot] Rendering UI with configuration");return U1(y1.Provider,{value:C0,children:U1(u1.Provider,{value:g5(X),children:U1(c1.Provider,{value:l5(X,G),children:U1(k1.Provider,{value:J??U1(z$,{}),children:U1(n5,{children:U1(o5,{children:U1(H1.StyleRoot,{children:U1(Z1,{uiConfig:U})})})})})})})})},H$=(Z)=>{let J=new Q$;return U1(R0.Provider,{value:Z.config,children:U1(X$,{client:J,children:U1(W$,{...Z})})})},U$=H$;export{n1 as registerPieComponent,C1 as isPieComponentsInitialized,H5 as initializePieComponents,Z1 as UI,U$ as PieTelegramRoot,tF as PieRoot,F1 as PieCard};