var ER=Object.defineProperty;var SR=(e,t,n)=>t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xe=(e,t,n)=>(SR(e,typeof t!="symbol"?t+"":t,n),n),TR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var op=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var ll=(e,t,n)=>(TR(e,t,"access private method"),n);function xR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ka=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cX(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Hb={exports:{}},Df={},zb={exports:{}},ue={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Mu=Symbol.for("react.element"),OR=Symbol.for("react.portal"),kR=Symbol.for("react.fragment"),CR=Symbol.for("react.strict_mode"),AR=Symbol.for("react.profiler"),RR=Symbol.for("react.provider"),PR=Symbol.for("react.context"),IR=Symbol.for("react.forward_ref"),DR=Symbol.for("react.suspense"),LR=Symbol.for("react.memo"),MR=Symbol.for("react.lazy"),m0=Symbol.iterator;function NR(e){return e===null||typeof e!="object"?null:(e=m0&&e[m0]||e["@@iterator"],typeof e=="function"?e:null)}var qb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Vb=Object.assign,Wb={};function Ca(e,t,n){this.props=e,this.context=t,this.refs=Wb,this.updater=n||qb}Ca.prototype.isReactComponent={};Ca.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ca.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qb(){}Qb.prototype=Ca.prototype;function Nm(e,t,n){this.props=e,this.context=t,this.refs=Wb,this.updater=n||qb}var $m=Nm.prototype=new Qb;$m.constructor=Nm;Vb($m,Ca.prototype);$m.isPureReactComponent=!0;var g0=Array.isArray,Gb=Object.prototype.hasOwnProperty,Fm={current:null},Yb={key:!0,ref:!0,__self:!0,__source:!0};function Xb(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Gb.call(t,r)&&!Yb.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),l=0;l<s;l++)u[l]=arguments[l+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Mu,type:e,key:o,ref:a,props:i,_owner:Fm.current}}function $R(e,t){return{$$typeof:Mu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jm(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mu}function FR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var y0=/\/+/g;function ap(e,t){return typeof e=="object"&&e!==null&&e.key!=null?FR(""+e.key):t.toString(36)}function Zl(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Mu:case OR:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+ap(a,0):r,g0(i)?(n="",e!=null&&(n=e.replace(y0,"$&/")+"/"),Zl(i,t,n,"",function(l){return l})):i!=null&&(jm(i)&&(i=$R(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(y0,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",g0(e))for(var s=0;s<e.length;s++){o=e[s];var u=r+ap(o,s);a+=Zl(o,t,n,u,i)}else if(u=NR(e),typeof u=="function")for(e=u.call(e),s=0;!(o=e.next()).done;)o=o.value,u=r+ap(o,s++),a+=Zl(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function cl(e,t,n){if(e==null)return e;var r=[],i=0;return Zl(e,r,"","",function(o){return t.call(n,o,i++)}),r}function jR(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ot={current:null},ec={transition:null},UR={ReactCurrentDispatcher:Ot,ReactCurrentBatchConfig:ec,ReactCurrentOwner:Fm};function Kb(){throw Error("act(...) is not supported in production builds of React.")}ue.Children={map:cl,forEach:function(e,t,n){cl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return cl(e,function(){t++}),t},toArray:function(e){return cl(e,function(t){return t})||[]},only:function(e){if(!jm(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Component=Ca;ue.Fragment=kR;ue.Profiler=AR;ue.PureComponent=Nm;ue.StrictMode=CR;ue.Suspense=DR;ue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UR;ue.act=Kb;ue.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Vb({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Fm.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)Gb.call(t,u)&&!Yb.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var l=0;l<u;l++)s[l]=arguments[l+2];r.children=s}return{$$typeof:Mu,type:e.type,key:i,ref:o,props:r,_owner:a}};ue.createContext=function(e){return e={$$typeof:PR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RR,_context:e},e.Consumer=e};ue.createElement=Xb;ue.createFactory=function(e){var t=Xb.bind(null,e);return t.type=e,t};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:IR,render:e}};ue.isValidElement=jm;ue.lazy=function(e){return{$$typeof:MR,_payload:{_status:-1,_result:e},_init:jR}};ue.memo=function(e,t){return{$$typeof:LR,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=ec.transition;ec.transition={};try{e()}finally{ec.transition=t}};ue.unstable_act=Kb;ue.useCallback=function(e,t){return Ot.current.useCallback(e,t)};ue.useContext=function(e){return Ot.current.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e){return Ot.current.useDeferredValue(e)};ue.useEffect=function(e,t){return Ot.current.useEffect(e,t)};ue.useId=function(){return Ot.current.useId()};ue.useImperativeHandle=function(e,t,n){return Ot.current.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return Ot.current.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return Ot.current.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return Ot.current.useMemo(e,t)};ue.useReducer=function(e,t,n){return Ot.current.useReducer(e,t,n)};ue.useRef=function(e){return Ot.current.useRef(e)};ue.useState=function(e){return Ot.current.useState(e)};ue.useSyncExternalStore=function(e,t,n){return Ot.current.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return Ot.current.useTransition()};ue.version="18.3.1";zb.exports=ue;var N=zb.exports;const G=ft(N),_0=xR({__proto__:null,default:G},[N]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var BR=N,HR=Symbol.for("react.element"),zR=Symbol.for("react.fragment"),qR=Object.prototype.hasOwnProperty,VR=BR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,WR={key:!0,ref:!0,__self:!0,__source:!0};function Jb(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)qR.call(t,r)&&!WR.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:HR,type:e,key:o,ref:a,props:i,_owner:VR.current}}Df.Fragment=zR;Df.jsx=Jb;Df.jsxs=Jb;Hb.exports=Df;var Us=Hb.exports;function QR(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function GR(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var YR=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(GR(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=QR(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),vt="-ms-",Ac="-moz-",pe="-webkit-",Zb="comm",Um="rule",Bm="decl",XR="@import",eE="@keyframes",KR="@layer",JR=Math.abs,Lf=String.fromCharCode,ZR=Object.assign;function eP(e,t){return ot(e,0)^45?(((t<<2^ot(e,0))<<2^ot(e,1))<<2^ot(e,2))<<2^ot(e,3):0}function tE(e){return e.trim()}function tP(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,n){return e.replace(t,n)}function gh(e,t){return e.indexOf(t)}function ot(e,t){return e.charCodeAt(t)|0}function Bs(e,t,n){return e.slice(t,n)}function zn(e){return e.length}function Hm(e){return e.length}function fl(e,t){return t.push(e),e}function nP(e,t){return e.map(t).join("")}var Mf=1,sa=1,nE=0,jt=0,ze=0,Aa="";function Nf(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Mf,column:sa,length:a,return:""}}function Ha(e,t){return ZR(Nf("",null,null,"",null,null,0),e,{length:-e.length},t)}function rP(){return ze}function iP(){return ze=jt>0?ot(Aa,--jt):0,sa--,ze===10&&(sa=1,Mf--),ze}function Xt(){return ze=jt<nE?ot(Aa,jt++):0,sa++,ze===10&&(sa=1,Mf++),ze}function Kn(){return ot(Aa,jt)}function tc(){return jt}function Nu(e,t){return Bs(Aa,e,t)}function Hs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rE(e){return Mf=sa=1,nE=zn(Aa=e),jt=0,[]}function iE(e){return Aa="",e}function nc(e){return tE(Nu(jt-1,yh(e===91?e+2:e===40?e+1:e)))}function oP(e){for(;(ze=Kn())&&ze<33;)Xt();return Hs(e)>2||Hs(ze)>3?"":" "}function aP(e,t){for(;--t&&Xt()&&!(ze<48||ze>102||ze>57&&ze<65||ze>70&&ze<97););return Nu(e,tc()+(t<6&&Kn()==32&&Xt()==32))}function yh(e){for(;Xt();)switch(ze){case e:return jt;case 34:case 39:e!==34&&e!==39&&yh(ze);break;case 40:e===41&&yh(e);break;case 92:Xt();break}return jt}function sP(e,t){for(;Xt()&&e+ze!==57;)if(e+ze===84&&Kn()===47)break;return"/*"+Nu(t,jt-1)+"*"+Lf(e===47?e:Xt())}function uP(e){for(;!Hs(Kn());)Xt();return Nu(e,jt)}function lP(e){return iE(rc("",null,null,null,[""],e=rE(e),0,[0],e))}function rc(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,p=0,d=0,m=0,_=1,b=1,g=1,y=0,v="",h=i,w=o,E=r,S=v;b;)switch(m=y,y=Xt()){case 40:if(m!=108&&ot(S,f-1)==58){gh(S+=he(nc(y),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:S+=nc(y);break;case 9:case 10:case 13:case 32:S+=oP(m);break;case 92:S+=aP(tc()-1,7);continue;case 47:switch(Kn()){case 42:case 47:fl(cP(sP(Xt(),tc()),t,n),u);break;default:S+="/"}break;case 123*_:s[l++]=zn(S)*g;case 125*_:case 59:case 0:switch(y){case 0:case 125:b=0;case 59+c:g==-1&&(S=he(S,/\f/g,"")),d>0&&zn(S)-f&&fl(d>32?b0(S+";",r,n,f-1):b0(he(S," ","")+";",r,n,f-2),u);break;case 59:S+=";";default:if(fl(E=w0(S,t,n,l,c,i,s,v,h=[],w=[],f),o),y===123)if(c===0)rc(S,t,E,E,h,o,f,s,w);else switch(p===99&&ot(S,3)===110?100:p){case 100:case 108:case 109:case 115:rc(e,E,E,r&&fl(w0(e,E,E,0,0,i,s,v,i,h=[],f),w),i,w,f,s,r?h:w);break;default:rc(S,E,E,E,[""],w,0,s,w)}}l=c=d=0,_=g=1,v=S="",f=a;break;case 58:f=1+zn(S),d=m;default:if(_<1){if(y==123)--_;else if(y==125&&_++==0&&iP()==125)continue}switch(S+=Lf(y),y*_){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[l++]=(zn(S)-1)*g,g=1;break;case 64:Kn()===45&&(S+=nc(Xt())),p=Kn(),c=f=zn(v=S+=uP(tc())),y++;break;case 45:m===45&&zn(S)==2&&(_=0)}}return o}function w0(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,p=i===0?o:[""],d=Hm(p),m=0,_=0,b=0;m<r;++m)for(var g=0,y=Bs(e,f+1,f=JR(_=a[m])),v=e;g<d;++g)(v=tE(_>0?p[g]+" "+y:he(y,/&\f/g,p[g])))&&(u[b++]=v);return Nf(e,t,n,i===0?Um:s,u,l,c)}function cP(e,t,n){return Nf(e,t,n,Zb,Lf(rP()),Bs(e,2,-2),0)}function b0(e,t,n,r){return Nf(e,t,n,Bm,Bs(e,0,r),Bs(e,r+1,-1),r)}function Qo(e,t){for(var n="",r=Hm(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function fP(e,t,n,r){switch(e.type){case KR:if(e.children.length)break;case XR:case Bm:return e.return=e.return||e.value;case Zb:return"";case eE:return e.return=e.value+"{"+Qo(e.children,r)+"}";case Um:e.value=e.props.join(",")}return zn(n=Qo(e.children,r))?e.return=e.value+"{"+n+"}":""}function dP(e){var t=Hm(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function pP(e){return function(t){t.root||(t=t.return)&&e(t)}}function hP(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vP=function(t,n,r){for(var i=0,o=0;i=o,o=Kn(),i===38&&o===12&&(n[r]=1),!Hs(o);)Xt();return Nu(t,jt)},mP=function(t,n){var r=-1,i=44;do switch(Hs(i)){case 0:i===38&&Kn()===12&&(n[r]=1),t[r]+=vP(jt-1,n,r);break;case 2:t[r]+=nc(i);break;case 4:if(i===44){t[++r]=Kn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Lf(i)}while(i=Xt());return t},gP=function(t,n){return iE(mP(rE(t),n))},E0=new WeakMap,yP=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!E0.get(r))&&!i){E0.set(t,!0);for(var o=[],a=gP(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},_P=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function oE(e,t){switch(eP(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Ac+e+vt+e+e;case 6828:case 4268:return pe+e+vt+e+e;case 6165:return pe+e+vt+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+vt+"flex-$1$2")+e;case 5443:return pe+e+vt+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+vt+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+vt+he(e,"shrink","negative")+e;case 5292:return pe+e+vt+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+vt+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+vt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zn(e)-1-t>6)switch(ot(e,t+1)){case 109:if(ot(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Ac+(ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gh(e,"stretch")?oE(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ot(e,t+1)!==115)break;case 6444:switch(ot(e,zn(e)-3-(~gh(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(ot(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+vt+"$2box$3")+e}break;case 5936:switch(ot(e,t+11)){case 114:return pe+e+vt+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+vt+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+vt+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+vt+e+e}return e}var wP=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Bm:t.return=oE(t.value,t.length);break;case eE:return Qo([Ha(t,{value:he(t.value,"@","@"+pe)})],i);case Um:if(t.length)return nP(t.props,function(o){switch(tP(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qo([Ha(t,{props:[he(o,/:(read-\w+)/,":"+Ac+"$1")]})],i);case"::placeholder":return Qo([Ha(t,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),Ha(t,{props:[he(o,/:(plac\w+)/,":"+Ac+"$1")]}),Ha(t,{props:[he(o,/:(plac\w+)/,vt+"input-$1")]})],i)}return""})}},bP=[wP],EP=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var b=_.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var i=t.stylisPlugins||bP,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var b=_.getAttribute("data-emotion").split(" "),g=1;g<b.length;g++)o[b[g]]=!0;s.push(_)});var u,l=[yP,_P];{var c,f=[fP,pP(function(_){c.insert(_)})],p=dP(l.concat(i,f)),d=function(b){return Qo(lP(b),p)};u=function(b,g,y,v){c=y,d(b?b+"{"+g.styles+"}":g.styles),v&&(m.inserted[g.name]=!0)}}var m={key:n,sheet:new YR({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return m.sheet.hydrate(s),m};function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(this,arguments)}var aE={exports:{}},ye={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tt=typeof Symbol=="function"&&Symbol.for,zm=tt?Symbol.for("react.element"):60103,qm=tt?Symbol.for("react.portal"):60106,$f=tt?Symbol.for("react.fragment"):60107,Ff=tt?Symbol.for("react.strict_mode"):60108,jf=tt?Symbol.for("react.profiler"):60114,Uf=tt?Symbol.for("react.provider"):60109,Bf=tt?Symbol.for("react.context"):60110,Vm=tt?Symbol.for("react.async_mode"):60111,Hf=tt?Symbol.for("react.concurrent_mode"):60111,zf=tt?Symbol.for("react.forward_ref"):60112,qf=tt?Symbol.for("react.suspense"):60113,SP=tt?Symbol.for("react.suspense_list"):60120,Vf=tt?Symbol.for("react.memo"):60115,Wf=tt?Symbol.for("react.lazy"):60116,TP=tt?Symbol.for("react.block"):60121,xP=tt?Symbol.for("react.fundamental"):60117,OP=tt?Symbol.for("react.responder"):60118,kP=tt?Symbol.for("react.scope"):60119;function en(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zm:switch(e=e.type,e){case Vm:case Hf:case $f:case jf:case Ff:case qf:return e;default:switch(e=e&&e.$$typeof,e){case Bf:case zf:case Wf:case Vf:case Uf:return e;default:return t}}case qm:return t}}}function sE(e){return en(e)===Hf}ye.AsyncMode=Vm;ye.ConcurrentMode=Hf;ye.ContextConsumer=Bf;ye.ContextProvider=Uf;ye.Element=zm;ye.ForwardRef=zf;ye.Fragment=$f;ye.Lazy=Wf;ye.Memo=Vf;ye.Portal=qm;ye.Profiler=jf;ye.StrictMode=Ff;ye.Suspense=qf;ye.isAsyncMode=function(e){return sE(e)||en(e)===Vm};ye.isConcurrentMode=sE;ye.isContextConsumer=function(e){return en(e)===Bf};ye.isContextProvider=function(e){return en(e)===Uf};ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zm};ye.isForwardRef=function(e){return en(e)===zf};ye.isFragment=function(e){return en(e)===$f};ye.isLazy=function(e){return en(e)===Wf};ye.isMemo=function(e){return en(e)===Vf};ye.isPortal=function(e){return en(e)===qm};ye.isProfiler=function(e){return en(e)===jf};ye.isStrictMode=function(e){return en(e)===Ff};ye.isSuspense=function(e){return en(e)===qf};ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$f||e===Hf||e===jf||e===Ff||e===qf||e===SP||typeof e=="object"&&e!==null&&(e.$$typeof===Wf||e.$$typeof===Vf||e.$$typeof===Uf||e.$$typeof===Bf||e.$$typeof===zf||e.$$typeof===xP||e.$$typeof===OP||e.$$typeof===kP||e.$$typeof===TP)};ye.typeOf=en;aE.exports=ye;var CP=aE.exports,uE=CP,AP={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},RP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lE={};lE[uE.ForwardRef]=AP;lE[uE.Memo]=RP;var PP=!0;function cE(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Wm=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||PP===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},fE=function(t,n,r){Wm(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function IP(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DP={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},LP=/[A-Z]|^ms/g,MP=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dE=function(t){return t.charCodeAt(1)===45},S0=function(t){return t!=null&&typeof t!="boolean"},sp=hP(function(e){return dE(e)?e:e.replace(LP,"-$&").toLowerCase()}),T0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(MP,function(r,i,o){return qn={name:i,styles:o,next:qn},i})}return DP[t]!==1&&!dE(t)&&typeof n=="number"&&n!==0?n+"px":n};function zs(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qn={name:n.name,styles:n.styles,next:qn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qn={name:r.name,styles:r.styles,next:qn},r=r.next;var i=n.styles+";";return i}return NP(e,t,n)}case"function":{if(e!==void 0){var o=qn,a=n(e);return qn=o,zs(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function NP(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=zs(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":S0(a)&&(r+=sp(o)+":"+T0(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)S0(a[s])&&(r+=sp(o)+":"+T0(o,a[s])+";");else{var u=zs(e,t,a);switch(o){case"animation":case"animationName":{r+=sp(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var x0=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qn,Qm=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";qn=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=zs(r,n,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=zs(r,n,t[s]),i&&(o+=a[s]);x0.lastIndex=0;for(var u="",l;(l=x0.exec(o))!==null;)u+="-"+l[1];var c=IP(o)+u;return{name:c,styles:o,next:qn}},$P=function(t){return t()},FP=_0.useInsertionEffect?_0.useInsertionEffect:!1,pE=FP||$P,$u={}.hasOwnProperty,hE=N.createContext(typeof HTMLElement<"u"?EP({key:"css"}):null);hE.Provider;var vE=function(t){return N.forwardRef(function(n,r){var i=N.useContext(hE);return t(n,i,r)})},mE=N.createContext({}),_h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gm=function(t,n){var r={};for(var i in n)$u.call(n,i)&&(r[i]=n[i]);return r[_h]=t,r},jP=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Wm(n,r,i),pE(function(){return fE(n,r,i)}),null},UP=vE(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[_h],o=[r],a="";typeof e.className=="string"?a=cE(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Qm(o,void 0,N.useContext(mE));a+=t.key+"-"+s.name;var u={};for(var l in e)$u.call(e,l)&&l!=="css"&&l!==_h&&(u[l]=e[l]);return u.ref=n,u.className=a,N.createElement(N.Fragment,null,N.createElement(jP,{cache:t,serialized:s,isStringTag:typeof i=="string"}),N.createElement(i,u))}),Ym=UP,fX=Us.Fragment;function dX(e,t,n){return $u.call(t,"css")?Us.jsx(Ym,Gm(e,t),n):Us.jsx(e,t,n)}function pX(e,t,n){return $u.call(t,"css")?Us.jsxs(Ym,Gm(e,t),n):Us.jsxs(e,t,n)}const gE=Object.prototype.toString;function Xm(e){switch(gE.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Bi(e,Error)}}function Ra(e,t){return gE.call(e)===`[object ${t}]`}function Km(e){return Ra(e,"ErrorEvent")}function O0(e){return Ra(e,"DOMError")}function BP(e){return Ra(e,"DOMException")}function yr(e){return Ra(e,"String")}function Jm(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Zm(e){return e===null||Jm(e)||typeof e!="object"&&typeof e!="function"}function ua(e){return Ra(e,"Object")}function Qf(e){return typeof Event<"u"&&Bi(e,Event)}function HP(e){return typeof Element<"u"&&Bi(e,Element)}function zP(e){return Ra(e,"RegExp")}function Gf(e){return!!(e&&e.then&&typeof e.then=="function")}function qP(e){return ua(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function VP(e){return typeof e=="number"&&e!==e}function Bi(e,t){try{return e instanceof t}catch{return!1}}function yE(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Go(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function k0(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{yE(i)?n.push("[VueViewModel]"):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function WP(e,t,n=!1){return yr(e)?zP(t)?t.test(e):yr(t)?n?e===t:e.includes(t):!1:!1}function Yf(e,t=[],n=!1){return t.some(r=>WP(e,r,n))}function QP(e,t,n=250,r,i,o,a){if(!o.exception||!o.exception.values||!a||!Bi(a.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=GP(wh(e,t,i,a.originalException,r,o.exception.values,s,0),n))}function wh(e,t,n,r,i,o,a,s){if(o.length>=n+1)return o;let u=[...o];if(Bi(r[i],Error)){C0(a,s);const l=e(t,r[i]),c=u.length;A0(l,i,c,s),u=wh(e,t,n,r[i],i,[l,...u],l,c)}return Array.isArray(r.errors)&&r.errors.forEach((l,c)=>{if(Bi(l,Error)){C0(a,s);const f=e(t,l),p=u.length;A0(f,`errors[${c}]`,p,s),u=wh(e,t,n,l,i,[f,...u],f,p)}}),u}function C0(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function A0(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function GP(e,t){return e.map(n=>(n.value&&(n.value=Go(n.value,t)),n))}function dl(e){return e&&e.Math==Math?e:void 0}const me=typeof globalThis=="object"&&dl(globalThis)||typeof window=="object"&&dl(window)||typeof self=="object"&&dl(self)||typeof global=="object"&&dl(global)||function(){return this}()||{};function eg(){return me}function _E(e,t,n){const r=n||me,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const tg=eg(),YP=80;function wE(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,a=0;const s=" > ",u=s.length;let l;const c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||YP;for(;n&&o++<r&&(l=XP(n,c),!(l==="html"||o>1&&a+i.length*u+l.length>=f));)i.push(l),a+=l.length,n=n.parentNode;return i.reverse().join(s)}catch{return"<unknown>"}}function XP(e,t){const n=e,r=[];let i,o,a,s,u;if(!n||!n.tagName)return"";if(tg.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const l=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&yr(i))for(o=i.split(/\s+/),u=0;u<o.length;u++)r.push(`.${o[u]}`);const c=["aria-label","type","name","title","alt"];for(u=0;u<c.length;u++)a=c[u],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}function KP(){try{return tg.document.location.href}catch{return""}}function JP(e){if(!tg.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const Fu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ZP="Sentry Logger ",bh=["debug","info","warn","error","log","assert","trace"],Rc={};function Xf(e){if(!("console"in me))return e();const t=me.console,n={},r=Object.keys(Rc);r.forEach(i=>{const o=Rc[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function e2(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Fu?bh.forEach(n=>{t[n]=(...r)=>{e&&Xf(()=>{me.console[n](`${ZP}[${n}]:`,...r)})}}):bh.forEach(n=>{t[n]=()=>{}}),t}const te=e2(),t2=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function n2(e){return e==="http"||e==="https"}function Pa(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${a}`}function r2(e){const t=t2.exec(e);if(!t){Xf(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o,a="",s]=t.slice(1);let u="",l=s;const c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){const f=l.match(/^\d+/);f&&(l=f[0])}return bE({host:o,pass:i,path:u,projectId:l,port:a,protocol:n,publicKey:r})}function bE(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function i2(e){if(!Fu)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(te.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?n2(r)?t&&isNaN(parseInt(t,10))?(te.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(te.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(te.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function EE(e){const t=typeof e=="string"?r2(e):bE(e);if(!(!t||!i2(t)))return t}class Wn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function st(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&SE(i,r),e[t]=i}function qs(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Fu&&te.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function SE(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,qs(e,"__sentry_original__",t)}catch{}}function ng(e){return e.__sentry_original__}function o2(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function TE(e){if(Xm(e))return{message:e.message,name:e.name,stack:e.stack,...P0(e)};if(Qf(e)){const t={type:e.type,target:R0(e.target),currentTarget:R0(e.currentTarget),...P0(e)};return typeof CustomEvent<"u"&&Bi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function R0(e){try{return HP(e)?wE(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function P0(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function a2(e,t=40){const n=Object.keys(TE(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Go(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Go(i,t)}return""}function vr(e){return Eh(e,new Map)}function Eh(e,t){if(s2(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Eh(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Eh(i,t))}),r}return e}function s2(e){if(!ua(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const xE=50,I0=/\(error: (.*)\)/,D0=/captureMessage|captureException/;function OE(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],o=n.split(`
`);for(let a=r;a<o.length;a++){const s=o[a];if(s.length>1024)continue;const u=I0.test(s)?s.replace(I0,"$1"):s;if(!u.match(/\S*Error: /)){for(const l of t){const c=l(u);if(c){i.push(c);break}}if(i.length>=xE)break}}return l2(i)}}function u2(e){return Array.isArray(e)?OE(...e):e}function l2(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),D0.test(t[t.length-1].function||"")&&(t.pop(),D0.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,xE).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const up="<anonymous>";function ii(e){try{return!e||typeof e!="function"?up:e.name||up}catch{return up}}const ic={},L0={};function eo(e,t){ic[e]=ic[e]||[],ic[e].push(t)}function to(e,t){L0[e]||(t(),L0[e]=!0)}function Dn(e,t){const n=e&&ic[e];if(n)for(const r of n)try{r(t)}catch(i){Fu&&te.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${ii(r)}
Error:`,i)}}function c2(e){const t="console";eo(t,e),to(t,f2)}function f2(){"console"in me&&bh.forEach(function(e){e in me.console&&st(me.console,e,function(t){return Rc[e]=t,function(...n){Dn("console",{args:n,level:e});const i=Rc[e];i&&i.apply(me.console,n)}})})}function dn(){const e=me,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function kE(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Br(e){const{message:t,event_id:n}=e;if(t)return t;const r=kE(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Sh(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Vs(e,t){const n=kE(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function M0(e){if(e&&e.__sentry_captured__)return!0;try{qs(e,"__sentry_captured__",!0)}catch{}return!1}function CE(e){return Array.isArray(e)?e:[e]}const Ao=me,d2=1e3;let N0,Th,xh;function p2(e){const t="dom";eo(t,e),to(t,h2)}function h2(){if(!Ao.document)return;const e=Dn.bind(null,"dom"),t=$0(e,!0);Ao.document.addEventListener("click",t,!1),Ao.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Ao[n]&&Ao[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(st(r,"addEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const u=this,l=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},c=l[o]=l[o]||{refCount:0};if(!c.handler){const f=$0(e);c.handler=f,i.call(this,o,f,s)}c.refCount++}catch{}return i.call(this,o,a,s)}}),st(r,"removeEventListener",function(i){return function(o,a,s){if(o==="click"||o=="keypress")try{const u=this,l=u.__sentry_instrumentation_handlers__||{},c=l[o];c&&(c.refCount--,c.refCount<=0&&(i.call(this,o,c.handler,s),c.handler=void 0,delete l[o]),Object.keys(l).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,a,s)}}))})}function v2(e){if(e.type!==Th)return!1;try{if(!e.target||e.target._sentryId!==xh)return!1}catch{}return!0}function m2(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function $0(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=g2(n);if(m2(n.type,r))return;qs(n,"_sentryCaptured",!0),r&&!r._sentryId&&qs(r,"_sentryId",dn());const i=n.type==="keypress"?"input":n.type;v2(n)||(e({event:n,name:i,global:t}),Th=n.type,xh=r?r._sentryId:void 0),clearTimeout(N0),N0=Ao.setTimeout(()=>{xh=void 0,Th=void 0},d2)}}function g2(e){try{return e.target}catch{return null}}const Oh=eg();function AE(){if(!("fetch"in Oh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function kh(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function y2(){if(typeof EdgeRuntime=="string")return!0;if(!AE())return!1;if(kh(Oh.fetch))return!0;let e=!1;const t=Oh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=kh(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Fu&&te.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function _2(e){const t="fetch";eo(t,e),to(t,w2)}function w2(){y2()&&st(me,"fetch",function(e){return function(...t){const{method:n,url:r}=b2(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Dn("fetch",{...i}),e.apply(me,t).then(o=>{const a={...i,endTimestamp:Date.now(),response:o};return Dn("fetch",a),o},o=>{const a={...i,endTimestamp:Date.now(),error:o};throw Dn("fetch",a),o})}})}function Ch(e,t){return!!e&&typeof e=="object"&&!!e[t]}function F0(e){return typeof e=="string"?e:e?Ch(e,"url")?e.url:e.toString?e.toString():"":""}function b2(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:F0(n),method:Ch(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:F0(t),method:Ch(t,"method")?String(t.method).toUpperCase():"GET"}}let pl=null;function E2(e){const t="error";eo(t,e),to(t,S2)}function S2(){pl=me.onerror,me.onerror=function(e,t,n,r,i){return Dn("error",{column:r,error:i,line:n,msg:e,url:t}),pl&&!pl.__SENTRY_LOADER__?pl.apply(this,arguments):!1},me.onerror.__SENTRY_INSTRUMENTED__=!0}let hl=null;function T2(e){const t="unhandledrejection";eo(t,e),to(t,x2)}function x2(){hl=me.onunhandledrejection,me.onunhandledrejection=function(e){return Dn("unhandledrejection",e),hl&&!hl.__SENTRY_LOADER__?hl.apply(this,arguments):!0},me.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const vl=eg();function O2(){const e=vl.chrome,t=e&&e.app&&e.app.runtime,n="history"in vl&&!!vl.history.pushState&&!!vl.history.replaceState;return!t&&n}const za=me;let ml;function RE(e){const t="history";eo(t,e),to(t,k2)}function k2(){if(!O2())return;const e=za.onpopstate;za.onpopstate=function(...n){const r=za.location.href,i=ml;if(ml=r,Dn("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=ml,a=String(i);ml=a,Dn("history",{from:o,to:a})}return n.apply(this,r)}}st(za.history,"pushState",t),st(za.history,"replaceState",t)}const C2=me,cs="__sentry_xhr_v3__";function A2(e){const t="xhr";eo(t,e),to(t,R2)}function R2(){if(!C2.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;st(e,"open",function(t){return function(...n){const r=Date.now(),i=yr(n[0])?n[0].toUpperCase():void 0,o=P2(n[1]);if(!i||!o)return t.apply(this,n);this[cs]={method:i,url:o,request_headers:{}},i==="POST"&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const s=this[cs];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}const u={args:[i,o],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Dn("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?st(this,"onreadystatechange",function(s){return function(...u){return a(),s.apply(this,u)}}):this.addEventListener("readystatechange",a),st(this,"setRequestHeader",function(s){return function(...u){const[l,c]=u,f=this[cs];return f&&yr(l)&&yr(c)&&(f.request_headers[l.toLowerCase()]=c),s.apply(this,u)}}),t.apply(this,n)}}),st(e,"send",function(t){return function(...n){const r=this[cs];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Dn("xhr",i),t.apply(this,n)}})}function P2(e){if(yr(e))return e;try{return e.toString()}catch{}}function I2(){return"npm"}function D2(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function Nr(e,t=100,n=1/0){try{return Ah("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function PE(e,t=3,n=100*1024){const r=Nr(e,t);return $2(r)>n?PE(e,t-1,n):r}function Ah(e,t,n=1/0,r=1/0,i=D2()){const[o,a]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!VP(t))return t;const s=L2(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;const u=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(u===0)return s.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const d=l.toJSON();return Ah("",d,u-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let f=0;const p=TE(t);for(const d in p){if(!Object.prototype.hasOwnProperty.call(p,d))continue;if(f>=r){c[d]="[MaxProperties ~]";break}const m=p[d];c[d]=Ah(d,m,u-1,r,i),f++}return a(t),c}function L2(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(yE(t))return"[VueViewModel]";if(qP(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${ii(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=M2(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function M2(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function N2(e){return~-encodeURI(e).split(/%..|./).length}function $2(e){return N2(JSON.stringify(e))}var dr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(dr||(dr={}));function la(e){return new Vt(t=>{t(e)})}function rg(e){return new Vt((t,n)=>{n(e)})}class Vt{constructor(t){Vt.prototype.__init.call(this),Vt.prototype.__init2.call(this),Vt.prototype.__init3.call(this),Vt.prototype.__init4.call(this),this._state=dr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Vt((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(a){i(a)}},o=>{if(!n)i(o);else try{r(n(o))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Vt((n,r)=>{let i,o;return this.then(a=>{o=!1,i=a,t&&t()},a=>{o=!0,i=a,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(dr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(dr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===dr.PENDING){if(Gf(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===dr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===dr.RESOLVED&&n[1](this._value),this._state===dr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function F2(e){const t=[];function n(){return e===void 0||t.length<e}function r(a){return t.splice(t.indexOf(a),1)[0]}function i(a){if(!n())return rg(new Wn("Not adding Promise because buffer limit was reached."));const s=a();return t.indexOf(s)===-1&&t.push(s),s.then(()=>r(s)).then(null,()=>r(s).then(null,()=>{})),s}function o(a){return new Vt((s,u)=>{let l=t.length;if(!l)return s(!0);const c=setTimeout(()=>{a&&a>0&&s(!1)},a);t.forEach(f=>{la(f).then(()=>{--l||(clearTimeout(c),s(!0))},u)})})}return{$:t,add:i,drain:o}}function lp(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const j2=["fatal","error","warning","log","info","debug"];function U2(e){return e==="warn"?"warning":j2.includes(e)?e:"log"}const IE=1e3;function ju(){return Date.now()/IE}function B2(){const{performance:e}=me;if(!e||!e.now)return ju;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/IE}const DE=B2();(()=>{const{performance:e}=me;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,a=e.timing&&e.timing.navigationStart,u=typeof a=="number"?Math.abs(a+n-r):t,l=u<t;return o||l?i<=u?e.timeOrigin:a:r})();function Ia(e,t=[]){return[e,t]}function H2(e,t){const[n,r]=e;return[n,[...r,t]]}function j0(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Rh(e,t){return(t||new TextEncoder).encode(e)}function z2(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(a){typeof i=="string"?i=typeof a=="string"?i+a:[Rh(i,t),a]:i.push(typeof a=="string"?Rh(a,t):a)}for(const a of r){const[s,u]=a;if(o(`
${JSON.stringify(s)}
`),typeof u=="string"||u instanceof Uint8Array)o(u);else{let l;try{l=JSON.stringify(u)}catch{l=JSON.stringify(Nr(u))}o(l)}}return typeof i=="string"?i:q2(i)}function q2(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function V2(e,t){const n=typeof e.data=="string"?Rh(e.data,t):e.data;return[vr({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const W2={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"statsd"};function U0(e){return W2[e]}function LE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Q2(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Pa(r)},...i&&{trace:vr({...i})}}}function G2(e,t,n){const r=[{type:"client_report"},{timestamp:ju(),discarded_events:e}];return Ia(t?{dsn:t}:{},[r])}const Y2=60*1e3;function X2(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Y2:r-t}function K2(e,t){return e[t]||e.all||0}function J2(e,t,n=Date.now()){return K2(e,t)>n}function Z2(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(o)for(const s of o.trim().split(",")){const[u,l]=s.split(":",2),c=parseInt(u,10),f=(isNaN(c)?60:c)*1e3;if(!l)i.all=r+f;else for(const p of l.split(";"))i[p]=r+f}else a?i.all=r+X2(a,r):t===429&&(i.all=r+60*1e3);return i}const Se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Kf="production";function ig(){return _E("globalEventProcessors",()=>[])}function eI(e){ig().push(e)}function Pc(e,t,n,r=0){return new Vt((i,o)=>{const a=e[r];if(t===null||typeof a!="function")i(t);else{const s=a({...t},n);Se&&a.id&&s===null&&te.log(`Event processor "${a.id}" dropped event`),Gf(s)?s.then(u=>Pc(e,u,n,r+1).then(i)).then(null,o):Pc(e,s,n,r+1).then(i).then(null,o)}})}function ME(e){const t=DE(),n={sid:dn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>tI(n)};return e&&Hi(n,e),n}function Hi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||DE(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:dn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function NE(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Hi(e,n)}function tI(e){return vr({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const nI=1;function rI(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:a,tags:s,origin:u}=Ws(e);return vr({data:r,op:i,parent_span_id:o,span_id:t,status:a,tags:s,trace_id:n,origin:u})}function Ws(e){return iI(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function iI(e){return typeof e.getSpanJSON=="function"}function oI(e){const{traceFlags:t}=e.spanContext();return!!(t&nI)}function aI(e,t,n,r,i,o){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,u={...t,event_id:t.event_id||n.event_id||dn(),timestamp:t.timestamp||ju()},l=n.integrations||e.integrations.map(b=>b.name);sI(u,e),cI(u,l),t.type===void 0&&uI(u,e.stackParser);const c=dI(r,n.captureContext);n.mechanism&&Vs(u,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=TI().getScopeData();if(o){const b=o.getScopeData();q0(p,b)}if(c){const b=c.getScopeData();q0(p,b)}const d=[...n.attachments||[],...p.attachments];d.length&&(n.attachments=d),qE(u,p);const m=[...f,...ig(),...p.eventProcessors];return Pc(m,u,n).then(b=>(b&&lI(b),typeof a=="number"&&a>0?fI(b,a,s):b))}function sI(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:Kf),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Go(e.message,o));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Go(a.value,o));const s=e.request;s&&s.url&&(s.url=Go(s.url,o))}const B0=new WeakMap;function uI(e,t){const n=me._sentryDebugIds;if(!n)return;let r;const i=B0.get(t);i?r=i:(r=new Map,B0.set(t,r));const o=Object.keys(n).reduce((a,s)=>{let u;const l=r.get(s);l?u=l:(u=t(s),r.set(s,u));for(let c=u.length-1;c>=0;c--){const f=u[c];if(f.filename){a[f.filename]=n[s];break}}return a},{});try{e.exception.values.forEach(a=>{a.stacktrace.frames.forEach(s=>{s.filename&&(s.debug_id=o[s.filename])})})}catch{}}function lI(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function cI(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function fI(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Nr(i.data,t,n)}}))},...e.user&&{user:Nr(e.user,t,n)},...e.contexts&&{contexts:Nr(e.contexts,t,n)},...e.extra&&{extra:Nr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Nr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const o=Ws(i).data;return o&&(i.data=Nr(o,t,n)),i})),r}function dI(e,t){if(!t)return e;const n=e?e.clone():new _r;return n.update(t),n}function pI(e){if(e)return hI(e)?{captureContext:e}:mI(e)?{captureContext:e}:e}function hI(e){return e instanceof _r||typeof e=="function"}const vI=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function mI(e){return Object.keys(e).some(t=>vI.includes(t))}function $E(e,t){return Ut().captureException(e,pI(t))}function hX(e,t){const r={captureContext:t};return Ut().captureMessage(e,void 0,r)}function FE(e,t){return Ut().captureEvent(e,t)}function zi(e,t){Ut().addBreadcrumb(e,t)}function vX(e,t){Ut().setContext(e,t)}function mX(e,t){Ut().setExtra(e,t)}function gX(e,t){Ut().setTag(e,t)}function jE(...e){const t=Ut();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function kt(){return Ut().getClient()}function Uu(){return Ut().getScope()}function H0(e){const t=kt(),n=Zf(),r=Uu(),{release:i,environment:o=Kf}=t&&t.getOptions()||{},{userAgent:a}=me.navigator||{},s=ME({release:i,environment:o,user:r.getUser()||n.getUser(),...a&&{userAgent:a},...e}),u=n.getSession();return u&&u.status==="ok"&&Hi(u,{status:"exited"}),UE(),n.setSession(s),r.setSession(s),s}function UE(){const e=Zf(),t=Uu(),n=t.getSession()||e.getSession();n&&NE(n),BE(),e.setSession(),t.setSession()}function BE(){const e=Zf(),t=Uu(),n=kt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function z0(e=!1){if(e){UE();return}BE()}function HE(e){return e.transaction}function zE(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=vr({environment:r.environment||Kf,release:r.release,user_segment:o,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function gI(e){const t=kt();if(!t)return{};const n=zE(Ws(e).trace_id||"",t,Uu()),r=HE(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:o,source:a}=r.metadata;o!=null&&(n.sample_rate=`${o}`);const s=Ws(r);return a&&a!=="url"&&(n.transaction=s.description),n.sampled=String(oI(r)),t.emit&&t.emit("createDsc",n),n}function qE(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;yI(e,t),r&&bI(e,r),EI(e,n),_I(e,i),wI(e,o)}function q0(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:f,propagationContext:p,transactionName:d,span:m}=t;qa(e,"extra",n),qa(e,"tags",r),qa(e,"user",i),qa(e,"contexts",o),qa(e,"sdkProcessingMetadata",s),a&&(e.level=a),d&&(e.transactionName=d),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function qa(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function yI(e,t){const{extra:n,tags:r,user:i,contexts:o,level:a,transactionName:s}=t,u=vr(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=vr(r);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const c=vr(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const f=vr(o);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}function _I(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function wI(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function bI(e,t){e.contexts={trace:rI(t),...e.contexts};const n=HE(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:gI(t),...e.sdkProcessingMetadata};const r=Ws(n).description;r&&(e.tags={transaction:r,...e.tags})}}function EI(e,t){e.fingerprint=e.fingerprint?CE(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const SI=100;let cp;class _r{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=V0()}static clone(t){return t?t.clone():new _r}clone(){const t=new _r;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Hi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof _r){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(ua(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=V0(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:SI;if(r<=0)return this;const i={timestamp:ju(),...t},o=this._breadcrumbs;return o.push(i),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:o,_user:a,_level:s,_fingerprint:u,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:f,_transactionName:p,_span:d}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:o,user:a,level:s,fingerprint:u||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:f,transactionName:p,span:d}}applyToEvent(t,n={},r=[]){qE(t,this.getScopeData());const i=[...r,...ig(),...this._eventProcessors];return Pc(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:dn();if(!this._client)return te.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:dn();if(!this._client)return te.warn("No client configured on scope - will not capture message!"),i;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:dn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(te.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function TI(){return cp||(cp=new _r),cp}function V0(){return{traceId:dn(),spanId:dn().substring(16)}}const Ph="7.108.0",VE=parseFloat(Ph),xI=100;class WE{constructor(t,n,r,i=VE){this._version=i;let o;n?o=n:(o=new _r,o.setClient(t));let a;r?a=r:(a=new _r,a.setClient(t)),this._stack=[{scope:o}],t&&this.bindClient(t),this._isolationScope=a}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(i){throw this.popScope(),i}return Gf(r)?r.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:dn(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:dn(),o=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:dn();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:a=xI}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const u={timestamp:ju(),...t},l=o?Xf(()=>o(u,n)):u;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,n),r.addBreadcrumb(l,a))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=W0(this);try{t(this)}finally{W0(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return Se&&te.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return Se&&!r&&(this.getClient()?te.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):te.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&NE(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o=Kf}=r&&r.getOptions()||{},{userAgent:a}=me.navigator||{},s=ME({release:i,environment:o,user:n.getUser(),...a&&{userAgent:a},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&Hi(u,{status:"exited"}),this.endSession(),n.setSession(s),s}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=Jf().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);Se&&te.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Jf(){return me.__SENTRY__=me.__SENTRY__||{extensions:{},hub:void 0},me}function W0(e){const t=Jf(),n=Ih(t);return QE(t,e),n}function Ut(){const e=Jf();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return OI(e)}function Zf(){return Ut().getIsolationScope()}function OI(e=Jf()){return(!kI(e)||Ih(e).isOlderThan(VE))&&QE(e,new WE),Ih(e)}function kI(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Ih(e){return _E("hub",()=>new WE,e)}function QE(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function CI(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function AI(e,t,n,r){const i=LE(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Pa(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ia(o,[a])}function RI(e,t,n,r){const i=LE(n),o=e.type&&e.type!=="replay_event"?e.type:"event";CI(e,n&&n.sdk);const a=Q2(e,i,r,t);return delete e.sdkProcessingMetadata,Ia(a,[[{type:o},e]])}const PI="7";function GE(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function II(e){return`${GE(e)}${e.projectId}/envelope/`}function DI(e,t){return o2({sentry_key:e.publicKey,sentry_version:PI,...t&&{sentry_client:`${t.name}/${t.version}`}})}function LI(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${II(e)}?${DI(e,r)}`}function MI(e,t){const n=EE(e);if(!n)return"";const r=`${GE(n)}embed/error-page/`;let i=`dsn=${Pa(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const a=t.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}const Q0=[];function NI(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function $I(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(a=>{a.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=CE(n(t)):r=t;const i=NI(r),o=jI(i,a=>a.name==="Debug");if(o!==-1){const[a]=i.splice(o,1);i.push(a)}return i}function FI(e,t){const n={};return t.forEach(r=>{r&&YE(e,r,n)}),n}function G0(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function YE(e,t,n){if(n[t.name]){Se&&te.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Q0.indexOf(t.name)===-1&&(t.setupOnce(eI,Ut),Q0.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,a)=>r(o,a,e),{id:t.name});e.addEventProcessor(i)}Se&&te.log(`Integration installed: ${t.name}`)}function jI(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function ui(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function UI(e){let t="";for(const n of e){const r=Object.entries(n.tags),i=r.length>0?`|#${r.map(([o,a])=>`${o}:${a}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp}
`}return t}function BI(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=Pa(t));const o=HI(e);return Ia(i,[o])}function HI(e){const t=UI(e);return[{type:"statsd",length:t.length},t]}const Y0="Not capturing exception because it's already been captured.";class zI{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=EE(t.dsn):Se&&te.warn("No DSN provided, client will not send events."),this._dsn){const n=LI(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(M0(t)){Se&&te.log(Y0);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const a=Jm(t)?t:String(t),s=Zm(t)?this.eventFromMessage(a,n,r):this.eventFromException(t,r);return this._process(s.then(u=>this._captureEvent(u,r,i)).then(u=>{o=u})),o}captureEvent(t,n,r){if(n&&n.originalException&&M0(n.originalException)){Se&&te.log(Y0);return}let i=n&&n.event_id;const a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,a||r).then(s=>{i=s})),i}captureSession(t){typeof t.release!="string"?Se&&te.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Hi(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):la(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return Se&&te.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];YE(this,t,this._integrations),n||G0(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=RI(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=H2(r,V2(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=AI(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;Se&&te.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){Se&&te.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=BI(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=FI(this,t),G0(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const u of o){const l=u.mechanism;if(l&&l.handled===!1){r=!0;break}}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(Hi(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Vt(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Zf()){const o=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a.length>0&&(n.integrations=a),this.emit("preprocessEvent",t,n),aI(o,t,n,r,this,i).then(s=>{if(s===null)return s;const u={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(s.contexts&&s.contexts.trace)&&u){const{traceId:c,spanId:f,parentSpanId:p,dsc:d}=u;s.contexts={trace:{trace_id:c,span_id:f,parent_span_id:p},...s.contexts};const m=d||zE(c,this,r);s.sdkProcessingMetadata={dynamicSamplingContext:m,...s.sdkProcessingMetadata}}return s})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(Se){const o=i;o.logLevel==="log"?te.log(o.message):te.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i,a=KE(t),s=XE(t),u=t.type||"error",l=`before send for type \`${u}\``;if(s&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),rg(new Wn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c=u==="replay_event"?"replay":u,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",c,t),new Wn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const _=VI(i,d,n);return qI(_,l)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",c,t),new Wn(`${l} returned \`null\`, will not send event.`,"log");const m=r&&r.getSession();!a&&m&&this._updateSessionFromEvent(m,d);const _=d.transaction_info;if(a&&_&&d.transaction!==t.transaction){const b="custom";d.transaction_info={..._,source:b}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof Wn?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Wn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{Se&&te.error("Error while sending event:",n)});Se&&te.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function qI(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Gf(e))return e.then(r=>{if(!ua(r)&&r!==null)throw new Wn(n);return r},r=>{throw new Wn(`${t} rejected with ${r}`)});if(!ua(e)&&e!==null)throw new Wn(n);return e}function VI(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return XE(t)&&r?r(t,n):KE(t)&&i?i(t,n):t}function XE(e){return e.type===void 0}function KE(e){return e.type==="transaction"}function WI(e,t){t.debug===!0&&(Se?te.enable():Xf(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Uu().update(t.initialScope);const r=new e(t);QI(r),GI(r)}function QI(e){const n=Ut().getStackTop();n.client=e,n.scope.setClient(e)}function GI(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const YI=30;function JE(e,t,n=F2(e.bufferSize||YI)){let r={};const i=a=>n.drain(a);function o(a){const s=[];if(j0(a,(f,p)=>{const d=U0(p);if(J2(r,d)){const m=X0(f,p);e.recordDroppedEvent("ratelimit_backoff",d,m)}else s.push(f)}),s.length===0)return la();const u=Ia(a[0],s),l=f=>{j0(u,(p,d)=>{const m=X0(p,d);e.recordDroppedEvent(f,U0(d),m)})},c=()=>t({body:z2(u,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Se&&te.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Z2(r,f),f),f=>{throw l("network_error"),f});return n.add(c).then(f=>f,f=>{if(f instanceof Wn)return Se&&te.error("Skipped sending event because buffer is full."),l("queue_overflow"),la();throw f})}return o.__sentry__baseTransport__=!0,{send:o,flush:i}}function X0(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function ZE(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:Ph})),version:Ph}),e._metadata=i}const XI=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],KI=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],eS="InboundFilters",JI=(e={})=>({name:eS,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),o=ZI(e,i);return eD(t,o)?null:t}}),tS=JI;ui(eS,tS);function ZI(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:XI],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:KI],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function eD(e,t){return t.ignoreInternal&&aD(e)?(Se&&te.warn(`Event dropped due to being internal Sentry Error.
Event: ${Br(e)}`),!0):tD(e,t.ignoreErrors)?(Se&&te.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${Br(e)}`),!0):nD(e,t.ignoreTransactions)?(Se&&te.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${Br(e)}`),!0):rD(e,t.denyUrls)?(Se&&te.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${Br(e)}.
Url: ${Ic(e)}`),!0):iD(e,t.allowUrls)?!1:(Se&&te.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${Br(e)}.
Url: ${Ic(e)}`),!0)}function tD(e,t){return e.type||!t||!t.length?!1:oD(e).some(n=>Yf(n,t))}function nD(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Yf(n,t):!1}function rD(e,t){if(!t||!t.length)return!1;const n=Ic(e);return n?Yf(n,t):!1}function iD(e,t){if(!t||!t.length)return!0;const n=Ic(e);return n?Yf(n,t):!0}function oD(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Se&&t.length===0&&te.error(`Could not extract message for event ${Br(e)}`),t}function aD(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function sD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ic(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?sD(t):null}catch{return Se&&te.error(`Cannot extract url for event ${Br(e)}`),null}}let K0;const nS="FunctionToString",J0=new WeakMap,uD=()=>({name:nS,setupOnce(){K0=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=ng(this),n=J0.has(kt())&&t!==void 0?t:this;return K0.apply(n,e)}}catch{}},setup(e){J0.set(e,!0)}}),rS=uD;ui(nS,rS);const fe=me;let Dh=0;function iS(){return Dh>0}function lD(){Dh++,setTimeout(()=>{Dh--})}function ca(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(ng(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const o=i.map(a=>ca(a,t));return e.apply(this,o)}catch(o){throw lD(),jE(a=>{a.addEventProcessor(s=>(t.mechanism&&(Sh(s,void 0),Vs(s,t.mechanism)),s.extra={...s.extra,arguments:i},s)),$E(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}SE(r,e),qs(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const cn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function oS(e,t){const n=og(e,t),r={type:t&&t.name,value:pD(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function cD(e,t,n,r){const i=kt(),o=i&&i.getOptions().normalizeDepth,a={exception:{values:[{type:Qf(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:mD(t,{isUnhandledRejection:r})}]},extra:{__serialized__:PE(t,o)}};if(n){const s=og(e,n);s.length&&(a.exception.values[0].stacktrace={frames:s})}return a}function fp(e,t){return{exception:{values:[oS(e,t)]}}}function og(e,t){const n=t.stacktrace||t.stack||"",r=dD(t);try{return e(n,r)}catch{}return[]}const fD=/Minified React error #\d+;/i;function dD(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(fD.test(e.message))return 1}return 0}function pD(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function hD(e,t,n,r){const i=n&&n.syntheticException||void 0,o=ag(e,t,i,r);return Vs(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),la(o)}function vD(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,a=Lh(e,t,o,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),la(a)}function ag(e,t,n,r,i){let o;if(Km(t)&&t.error)return fp(e,t.error);if(O0(t)||BP(t)){const a=t;if("stack"in t)o=fp(e,t);else{const s=a.name||(O0(a)?"DOMError":"DOMException"),u=a.message?`${s}: ${a.message}`:s;o=Lh(e,u,n,r),Sh(o,u)}return"code"in a&&(o.tags={...o.tags,"DOMException.code":`${a.code}`}),o}return Xm(t)?fp(e,t):ua(t)||Qf(t)?(o=cD(e,t,n,i),Vs(o,{synthetic:!0}),o):(o=Lh(e,t,n,r),Sh(o,`${t}`),Vs(o,{synthetic:!0}),o)}function Lh(e,t,n,r){const i={};if(r&&n){const o=og(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(Jm(t)){const{__sentry_template_string__:o,__sentry_template_values__:a}=t;return i.logentry={message:o,params:a},i}return i.message=t,i}function mD(e,{isUnhandledRejection:t}){const n=a2(e),r=t?"promise rejection":"exception";return Km(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Qf(e)?`Event \`${gD(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function gD(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function yD(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Pa(r)}},o=_D(e);return Ia(i,[o])}function _D(e){return[{type:"user_report"},e]}class wD extends zI{constructor(t){const n=fe.SENTRY_SDK_SOURCE||I2();ZE(t,"browser",["browser"],n),super(t),t.sendClientReports&&fe.document&&fe.document.addEventListener("visibilitychange",()=>{fe.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return hD(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return vD(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){cn&&te.warn("SDK not enabled, will not capture user feedback.");return}const n=yD(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){cn&&te.log("No outcomes to send");return}if(!this._dsn){cn&&te.log("No dsn provided, will not send outcomes");return}cn&&te.log("Sending outcomes:",t);const n=G2(t,this._options.tunnel&&Pa(this._dsn));this._sendEnvelope(n)}}let fs;function bD(){if(fs)return fs;if(kh(fe.fetch))return fs=fe.fetch.bind(fe);const e=fe.document;let t=fe.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){cn&&te.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return fs=t.bind(fe)}function ED(){fs=void 0}function SD(e,t=bD()){let n=0,r=0;function i(o){const a=o.body.length;n+=a,r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,s).then(u=>(n-=a,r--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return ED(),n-=a,r--,rg(u)}}return JE(e,i)}const TD=4;function xD(e){function t(n){return new Vt((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===TD&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const a in e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&o.setRequestHeader(a,e.headers[a]);o.send(n.body)})}return JE(e,t)}const ed="?",OD=30,kD=40,CD=50;function sg(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const AD=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,RD=/\((\S*)(?::(\d+))(?::(\d+))\)/,PD=e=>{const t=AD.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=RD.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=aS(t[1]||ed,t[2]);return sg(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},ID=[OD,PD],DD=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,LD=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,MD=e=>{const t=DD.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=LD.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||ed;return[i,r]=aS(i,r),sg(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},ND=[CD,MD],$D=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,FD=e=>{const t=$D.exec(e);return t?sg(t[2],t[1]||ed,+t[3],t[4]?+t[4]:void 0):void 0},jD=[kD,FD],UD=[ID,ND,jD],BD=OE(...UD),aS=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ed,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},gl=1024,sS="Breadcrumbs",HD=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:sS,setupOnce(){},setup(n){t.console&&c2(VD(n)),t.dom&&p2(qD(n,t.dom)),t.xhr&&A2(WD(n)),t.fetch&&_2(QD(n)),t.history&&RE(GD(n)),t.sentry&&n.on&&n.on("beforeSendEvent",zD(n))}}},uS=HD;ui(sS,uS);function zD(e){return function(n){kt()===e&&zi({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Br(n)},{event:n})}}function qD(e,t){return function(r){if(kt()!==e)return;let i,o,a=typeof t=="object"?t.serializeAttribute:void 0,s=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;s&&s>gl&&(cn&&te.warn(`\`dom.maxStringLength\` cannot exceed ${gl}, but a value of ${s} was configured. Sentry will use ${gl} instead.`),s=gl),typeof a=="string"&&(a=[a]);try{const l=r.event,c=YD(l)?l.target:l;i=wE(c,{keyAttrs:a,maxStringLength:s}),o=JP(c)}catch{i="<unknown>"}if(i.length===0)return;const u={category:`ui.${r.name}`,message:i};o&&(u.data={"ui.component_name":o}),zi(u,{event:r.event,name:r.name,global:r.global})}}function VD(e){return function(n){if(kt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:U2(n.level),message:k0(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${k0(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;zi(r,{input:n.args,level:n.level})}}function WD(e){return function(n){if(kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[cs];if(!r||!i||!o)return;const{method:a,url:s,status_code:u,body:l}=o,c={method:a,url:s,status_code:u},f={xhr:n.xhr,input:l,startTimestamp:r,endTimestamp:i};zi({category:"xhr",data:c,type:"http"},f)}}function QD(e){return function(n){if(kt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};zi({category:"fetch",data:o,level:"error",type:"http"},a)}else{const o=n.response,a={...n.fetchData,status_code:o&&o.status},s={input:n.args,response:o,startTimestamp:r,endTimestamp:i};zi({category:"fetch",data:a,type:"http"},s)}}}function GD(e){return function(n){if(kt()!==e)return;let r=n.from,i=n.to;const o=lp(fe.location.href);let a=r?lp(r):void 0;const s=lp(i);(!a||!a.path)&&(a=o),o.protocol===s.protocol&&o.host===s.host&&(i=s.relative),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),zi({category:"navigation",data:{from:r,to:i}})}}function YD(e){return!!e&&!!e.target}const lS="Dedupe",XD=()=>{let e;return{name:lS,setupOnce(){},processEvent(t){if(t.type)return t;try{if(KD(t,e))return cn&&te.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},cS=XD;ui(lS,cS);function KD(e,t){return t?!!(JD(e,t)||ZD(e,t)):!1}function JD(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!dS(e,t)||!fS(e,t))}function ZD(e,t){const n=Z0(t),r=Z0(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!dS(e,t)||!fS(e,t))}function fS(e,t){let n=e1(e),r=e1(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function dS(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function Z0(e){return e.exception&&e.exception.values&&e.exception.values[0]}function e1(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const pS="GlobalHandlers",eL=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:pS,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(tL(n),t1("onerror")),t.onunhandledrejection&&(nL(n),t1("onunhandledrejection"))}}},hS=eL;ui(pS,hS);function tL(e){E2(t=>{const{stackParser:n,attachStacktrace:r}=mS();if(kt()!==e||iS())return;const{msg:i,url:o,line:a,column:s,error:u}=t,l=u===void 0&&yr(i)?oL(i,o,a,s):vS(ag(n,u||i,void 0,r,!1),o,a,s);l.level="error",FE(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function nL(e){T2(t=>{const{stackParser:n,attachStacktrace:r}=mS();if(kt()!==e||iS())return;const i=rL(t),o=Zm(i)?iL(i):ag(n,i,void 0,r,!0);o.level="error",FE(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function rL(e){if(Zm(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function iL(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function oL(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=Km(e)?e.message:e,a="Error";const s=o.match(i);return s&&(a=s[1],o=s[2]),vS({exception:{values:[{type:a,value:o}]}},t,n,r)}function vS(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=yr(t)&&t.length>0?t:KP();return u.length===0&&u.push({colno:l,filename:f,function:"?",in_app:!0,lineno:c}),e}function t1(e){cn&&te.log(`Global Handler attached: ${e}`)}function mS(){const e=kt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const gS="HttpContext",aL=()=>({name:gS,setupOnce(){},preprocessEvent(e){if(!fe.navigator&&!fe.location&&!fe.document)return;const t=e.request&&e.request.url||fe.location&&fe.location.href,{referrer:n}=fe.document||{},{userAgent:r}=fe.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:i};e.request=o}}),yS=aL;ui(gS,yS);const sL="cause",uL=5,_S="LinkedErrors",lL=(e={})=>{const t=e.limit||uL,n=e.key||sL;return{name:_S,setupOnce(){},preprocessEvent(r,i,o){const a=o.getOptions();QP(oS,a.stackParser,a.maxValueLength,n,t,r,i)}}},wS=lL;ui(_S,wS);const cL=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],bS="TryCatch",fL=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:bS,setupOnce(){t.setTimeout&&st(fe,"setTimeout",n1),t.setInterval&&st(fe,"setInterval",n1),t.requestAnimationFrame&&st(fe,"requestAnimationFrame",dL),t.XMLHttpRequest&&"XMLHttpRequest"in fe&&st(XMLHttpRequest.prototype,"send",pL);const n=t.eventTarget;n&&(Array.isArray(n)?n:cL).forEach(hL)}}},ES=fL;ui(bS,ES);function n1(e){return function(...t){const n=t[0];return t[0]=ca(n,{mechanism:{data:{function:ii(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function dL(e){return function(t){return e.apply(this,[ca(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ii(e)},handled:!1,type:"instrument"}})])}}function pL(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&st(n,i,function(o){const a={mechanism:{data:{function:i,handler:ii(o)},handled:!1,type:"instrument"}},s=ng(o);return s&&(a.mechanism.data.handler=ii(s)),ca(o,a)})}),e.apply(this,t)}}function hL(e){const t=fe,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(st(n,"addEventListener",function(r){return function(i,o,a){try{typeof o.handleEvent=="function"&&(o.handleEvent=ca(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:ii(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,ca(o,{mechanism:{data:{function:"addEventListener",handler:ii(o),target:e},handled:!1,type:"instrument"}}),a])}}),st(n,"removeEventListener",function(r){return function(i,o,a){const s=o;try{const u=s&&s.__sentry_wrapped__;u&&r.call(this,i,u,a)}catch{}return r.call(this,i,s,a)}}))}const vL=[tS(),rS(),ES(),uS(),hS(),wS(),cS(),yS()];function mL(e){return[...vL]}function gL(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=mL()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),fe.SENTRY_RELEASE&&fe.SENTRY_RELEASE.id&&(e.release=fe.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:u2(e.stackParser||BD),integrations:$I(e),transport:e.transport||(AE()?SD:xD)};WI(wD,t),e.autoSessionTracking&&yL()}const r1=(e={},t=Ut())=>{if(!fe.document){cn&&te.error("Global document not defined in showReportDialog call");return}const{client:n,scope:r}=t.getStackTop(),i=e.dsn||n&&n.getDsn();if(!i){cn&&te.error("DSN not configured for showReportDialog call");return}r&&(e.user={...r.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());const o=fe.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=MI(i,e),e.onLoad&&(o.onload=e.onLoad);const{onClose:a}=e;if(a){const u=l=>{if(l.data==="__sentry_reportdialog_closed__")try{a()}finally{fe.removeEventListener("message",u)}};fe.addEventListener("message",u)}const s=fe.document.head||fe.document.body;s?s.appendChild(o):cn&&te.error("Not injecting report dialog. No injection point found in HTML")};function yL(){if(typeof fe.document>"u"){cn&&te.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}H0({ignoreDuration:!0}),z0(),RE(({from:e,to:t})=>{e!==void 0&&e!==t&&(H0({ignoreDuration:!0}),z0())})}function yX(e){const t={...e};ZE(t,"react"),gL(t)}const _L=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function wL(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}const i1={componentStack:null,error:null,eventId:null};function bL(e,t){const n=new WeakMap;function r(i,o){if(!n.has(i)){if(i.cause)return n.set(i,!0),r(i.cause,o);i.cause=o}}r(e,t)}class SS extends N.Component{constructor(t){super(t),SS.prototype.__init.call(this),this.state=i1,this._openFallbackReportDialog=!0;const n=kt();n&&n.on&&t.showDialog&&(this._openFallbackReportDialog=!1,n.on("afterSendEvent",r=>{!r.type&&r.event_id===this._lastEventId&&r1({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:n}){const{beforeCapture:r,onError:i,showDialog:o,dialogOptions:a}=this.props;jE(s=>{if(wL(N.version)&&Xm(t)){const l=new Error(t.message);l.name=`React ErrorBoundary ${t.name}`,l.stack=n,bL(t,l)}r&&r(s,t,n);const u=$E(t,{captureContext:{contexts:{react:{componentStack:n}}},mechanism:{handled:!!this.props.fallback}});i&&i(t,n,u),o&&(this._lastEventId=u,this._openFallbackReportDialog&&r1({...a,eventId:u})),this.setState({error:t,componentStack:n,eventId:u})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:i}=this.props;i&&i(t,n,r)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:n,componentStack:r,eventId:i}=this.state;t&&t(n,r,i),this.setState(i1)}}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.error){let i;return typeof t=="function"?i=t({error:r.error,componentStack:r.componentStack,resetError:this.resetErrorBoundary,eventId:r.eventId}):i=t,N.isValidElement(i)?i:(t&&_L&&te.warn("fallback did not produce a valid ReactElement"),null)}return typeof n=="function"?n():n}}class no{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Qs=typeof window>"u"||"Deno"in window;function an(){}function EL(e,t){return typeof e=="function"?e(t):e}function Mh(e){return typeof e=="number"&&e>=0&&e!==1/0}function o1(e,t){return e.filter(n=>!t.includes(n))}function SL(e,t,n){const r=e.slice(0);return r[t]=n,r}function TS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Do(e,t,n){return Bu(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function TL(e,t,n){return Bu(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function $r(e,t,n){return Bu(e)?[{...t,queryKey:e},n]:[e||{},t]}function a1(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(Bu(a)){if(r){if(t.queryHash!==ug(a,t.options))return!1}else if(!Dc(t.queryKey,a))return!1}if(n!=="all"){const u=t.isActive();if(n==="active"&&!u||n==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function s1(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Bu(o)){if(!t.options.mutationKey)return!1;if(n){if(ki(t.options.mutationKey)!==ki(o))return!1}else if(!Dc(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function ug(e,t){return((t==null?void 0:t.queryKeyHashFn)||ki)(e)}function ki(e){return JSON.stringify(e,(t,n)=>Nh(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Dc(e,t){return xS(e,t)}function xS(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!xS(e[n],t[n])):!1}function OS(e,t){if(e===t)return e;const n=u1(e)&&u1(t);if(n||Nh(e)&&Nh(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{};let s=0;for(let u=0;u<o;u++){const l=n?u:i[u];a[l]=OS(e[l],t[l]),a[l]===e[l]&&s++}return r===o&&s===r?e:a}return t}function Lc(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function u1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nh(e){if(!l1(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!l1(n)||!n.hasOwnProperty("isPrototypeOf"))}function l1(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bu(e){return Array.isArray(e)}function kS(e){return new Promise(t=>{setTimeout(t,e)})}function c1(e){kS(0).then(e)}function xL(){if(typeof AbortController=="function")return new AbortController}function $h(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?OS(e,t):t}class OL extends no{constructor(){super(),this.setup=t=>{if(!Qs&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Mc=new OL,f1=["online","offline"];class kL extends no{constructor(){super(),this.setup=t=>{if(!Qs&&window.addEventListener){const n=()=>t();return f1.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{f1.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Nc=new kL;function CL(e){return Math.min(1e3*2**e,3e4)}function td(e){return(e!=null?e:"online")==="online"?Nc.isOnline():!0}class CS{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function oc(e){return e instanceof CS}function AS(e){let t=!1,n=0,r=!1,i,o,a;const s=new Promise((b,g)=>{o=b,a=g}),u=b=>{r||(d(new CS(b)),e.abort==null||e.abort())},l=()=>{t=!0},c=()=>{t=!1},f=()=>!Mc.isFocused()||e.networkMode!=="always"&&!Nc.isOnline(),p=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),i==null||i(),o(b))},d=b=>{r||(r=!0,e.onError==null||e.onError(b),i==null||i(),a(b))},m=()=>new Promise(b=>{i=g=>{const y=r||!f();return y&&b(g),y},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),_=()=>{if(r)return;let b;try{b=e.fn()}catch(g){b=Promise.reject(g)}Promise.resolve(b).then(p).catch(g=>{var y,v;if(r)return;const h=(y=e.retry)!=null?y:3,w=(v=e.retryDelay)!=null?v:CL,E=typeof w=="function"?w(n,g):w,S=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,g);if(t||!S){d(g);return}n++,e.onFail==null||e.onFail(n,g),kS(E).then(()=>{if(f())return m()}).then(()=>{t?d(g):_()})})};return td(e.networkMode)?_():m().then(_),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:l,continueRetry:c}}const lg=console;function AL(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},o=c=>{t?e.push(c):c1(()=>{n(c)})},a=c=>(...f)=>{o(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&c1(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:i,batchCalls:a,schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Ae=AL();class RS{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Mh(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Qs?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class RL extends RS{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||lg,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||PL(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=$h(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(an).catch(an):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!TS(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(m=>m.options.queryFn);d&&this.setOptions(d.options)}const a=xL(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(s);const l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};if(u(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const p=d=>{if(oc(d)&&d.silent||this.dispatch({type:"error",error:d}),!oc(d)){var m,_,b,g;(m=(_=this.cache.config).onError)==null||m.call(_,d,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,this.state.data,d,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=AS({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:d=>{var m,_,b,g;if(typeof d>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(d),(m=(_=this.cache.config).onSuccess)==null||m.call(_,d,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(d,m)=>{this.dispatch({type:"failed",failureCount:d,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:td(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return oc(a)&&a.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function PL(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class IL extends no{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,a=(i=n.queryHash)!=null?i:ug(o,n);let s=this.get(a);return s||(s=new RL({cache:this,logger:t.getLogger(),queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=$r(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>a1(r,i))}findAll(t,n){const[r]=$r(t,n);return Object.keys(r).length>0?this.queries.filter(i=>a1(r,i)):this.queries}notify(t){Ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){Ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class DL extends RS{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||lg,this.observers=[],this.state=t.state||PS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var S;return this.retryer=AS({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(T,O)=>{this.dispatch({type:"failed",failureCount:T,error:O})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(S=this.options.retry)!=null?S:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,a,s,u,l,c;if(!n){var f,p,d,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this));const T=await((d=(m=this.options).onMutate)==null?void 0:d.call(m,this.state.variables));T!==this.state.context&&this.dispatch({type:"loading",context:T,variables:this.state.variables})}const S=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,S,this.state.variables,this.state.context,this)),await((o=(a=this.options).onSuccess)==null?void 0:o.call(a,S,this.state.variables,this.state.context)),await((s=(u=this.mutationCache.config).onSettled)==null?void 0:s.call(u,S,null,this.state.variables,this.state.context,this)),await((l=(c=this.options).onSettled)==null?void 0:l.call(c,S,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:S}),S}catch(S){try{var _,b,g,y,v,h,w,E;throw await((_=(b=this.mutationCache.config).onError)==null?void 0:_.call(b,S,this.state.variables,this.state.context,this)),await((g=(y=this.options).onError)==null?void 0:g.call(y,S,this.state.variables,this.state.context)),await((v=(h=this.mutationCache.config).onSettled)==null?void 0:v.call(h,void 0,S,this.state.variables,this.state.context,this)),await((w=(E=this.options).onSettled)==null?void 0:w.call(E,void 0,S,this.state.variables,this.state.context)),S}finally{this.dispatch({type:"error",error:S})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!td(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function PS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class LL extends no{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new DL({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Ae.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>s1(t,n))}findAll(t){return this.mutations.filter(n=>s1(t,n))}notify(t){Ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Ae.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(an)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Fh(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,u=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,l=u==null?void 0:u.pageParam,c=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],d=((a=e.state.data)==null?void 0:a.pageParams)||[];let m=d,_=!1;const b=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)_=!0;else{var T;(T=e.signal)==null||T.addEventListener("abort",()=>{_=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(E,S,T,O)=>(m=O?[S,...m]:[...m,S],O?[T,...E]:[...E,T]),v=(E,S,T,O)=>{if(_)return Promise.reject("Cancelled");if(typeof T>"u"&&!S&&E.length)return Promise.resolve(E);const x={queryKey:e.queryKey,pageParam:T,meta:e.options.meta};b(x);const D=g(x);return Promise.resolve(D).then(B=>y(E,T,B,O))};let h;if(!p.length)h=v([]);else if(c){const E=typeof l<"u",S=E?l:jh(e.options,p);h=v(p,E,S)}else if(f){const E=typeof l<"u",S=E?l:IS(e.options,p);h=v(p,E,S,!0)}else{m=[];const E=typeof e.options.getNextPageParam>"u";h=(s&&p[0]?s(p[0],0,p):!0)?v([],E,d[0]):Promise.resolve(y([],d[0],p[0]));for(let T=1;T<p.length;T++)h=h.then(O=>{if(s&&p[T]?s(p[T],T,p):!0){const D=E?d[T]:jh(e.options,O);return v(O,E,D)}return Promise.resolve(y(O,d[T],p[T]))})}return h.then(E=>({pages:E,pageParams:m}))}}}}function jh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function IS(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function ML(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=jh(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function NL(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=IS(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class _X{constructor(t={}){this.queryCache=t.queryCache||new IL,this.mutationCache=t.mutationCache||new LL,this.logger=t.logger||lg,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Mc.subscribe(()=>{Mc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Nc.subscribe(()=>{Nc.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=$r(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=Do(t,n,r),o=this.getQueryData(i.queryKey);return o?Promise.resolve(o):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,a=EL(n,o);if(typeof a>"u")return;const s=Do(t),u=this.defaultQueryOptions(s);return this.queryCache.build(this,u).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=$r(t,n),i=this.queryCache;Ae.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=$r(t,n,r),a=this.queryCache,s={type:"active",...i};return Ae.batch(()=>(a.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(s,o)))}cancelQueries(t,n,r){const[i,o={}]=$r(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const a=Ae.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(o)));return Promise.all(a).then(an).catch(an)}invalidateQueries(t,n,r){const[i,o]=$r(t,n,r);return Ae.batch(()=>{var a,s;if(this.queryCache.findAll(i).forEach(l=>{l.invalidate()}),i.refetchType==="none")return Promise.resolve();const u={...i,type:(a=(s=i.refetchType)!=null?s:i.type)!=null?a:"active"};return this.refetchQueries(u,o)})}refetchQueries(t,n,r){const[i,o]=$r(t,n,r),a=Ae.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var l;return u.fetch(void 0,{...o,cancelRefetch:(l=o==null?void 0:o.cancelRefetch)!=null?l:!0,meta:{refetchPage:i.refetchPage}})}));let s=Promise.all(a).then(an);return o!=null&&o.throwOnError||(s=s.catch(an)),s}fetchQuery(t,n,r){const i=Do(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(an).catch(an)}fetchInfiniteQuery(t,n,r){const i=Do(t,n,r);return i.behavior=Fh(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(an).catch(an)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>ki(t)===ki(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Dc(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>ki(t)===ki(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Dc(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=ug(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class cg extends no{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),d1(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Uh(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Uh(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Lc(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const o=this.hasListeners();o&&p1(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();o&&(this.currentQuery!==i||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return FL(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(an)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Qs||this.currentResult.isStale||!Mh(this.options.staleTime))return;const n=TS(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Qs||this.options.enabled===!1||!Mh(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Mc.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,o=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,u=t!==r,l=u?t.state:this.currentQueryInitialState,c=u?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:d,errorUpdatedAt:m,fetchStatus:_,status:b}=f,g=!1,y=!1,v;if(n._optimisticResults){const T=this.hasListeners(),O=!T&&d1(t,n),x=T&&p1(t,r,n,i);(O||x)&&(_=td(t.options.networkMode)?"fetching":"paused",p||(b="loading")),n._optimisticResults==="isRestoring"&&(_="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")v=c.data,p=c.dataUpdatedAt,b=c.status,g=!0;else if(n.select&&typeof f.data<"u")if(o&&f.data===(a==null?void 0:a.data)&&n.select===this.selectFn)v=this.selectResult;else try{this.selectFn=n.select,v=n.select(f.data),v=$h(o==null?void 0:o.data,v,n),this.selectResult=v,this.selectError=null}catch(T){this.selectError=T}else v=f.data;if(typeof n.placeholderData<"u"&&typeof v>"u"&&b==="loading"){let T;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))T=o.data;else if(T=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof T<"u")try{T=n.select(T),this.selectError=null}catch(O){this.selectError=O}typeof T<"u"&&(b="success",v=$h(o==null?void 0:o.data,T,n),y=!0)}this.selectError&&(d=this.selectError,v=this.selectResult,m=Date.now(),b="error");const h=_==="fetching",w=b==="loading",E=b==="error";return{status:b,fetchStatus:_,isLoading:w,isSuccess:b==="success",isError:E,isInitialLoading:w&&h,data:v,dataUpdatedAt:p,error:d,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:h,isRefetching:h&&!w,isLoadingError:E&&f.dataUpdatedAt===0,isPaused:_==="paused",isPlaceholderData:y,isPreviousData:g,isRefetchError:E&&f.dataUpdatedAt!==0,isStale:fg(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Lc(r,n))return;this.currentResult=r;const i={cache:!0},o=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!this.trackedProps.size)return!0;const u=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(l=>{const c=l;return this.currentResult[c]!==n[c]&&u.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!oc(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Ae.batch(()=>{if(t.onSuccess){var n,r,i,o;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(o=this.options).onSettled)==null||i.call(o,this.currentResult.data,null)}else if(t.onError){var a,s,u,l;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(u=(l=this.options).onSettled)==null||u.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function $L(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function d1(e,t){return $L(e,t)||e.state.dataUpdatedAt>0&&Uh(e,t,t.refetchOnMount)}function Uh(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&fg(e,t)}return!1}function p1(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&fg(e,n)}function fg(e,t){return e.isStaleByTime(t.staleTime)}function FL(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Lc(e.getCurrentResult(),t)}class jL extends no{constructor(t,n){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},n&&this.setQueries(n)}onSubscribe(){this.listeners.size===1&&this.observers.forEach(t=>{t.subscribe(n=>{this.onUpdate(t,n)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,n){this.queries=t,Ae.batch(()=>{const r=this.observers,i=this.findMatchingObservers(this.queries);i.forEach(l=>l.observer.setOptions(l.defaultedQueryOptions,n));const o=i.map(l=>l.observer),a=Object.fromEntries(o.map(l=>[l.options.queryHash,l])),s=o.map(l=>l.getCurrentResult()),u=o.some((l,c)=>l!==r[c]);r.length===o.length&&!u||(this.observers=o,this.observersMap=a,this.result=s,this.hasListeners()&&(o1(r,o).forEach(l=>{l.destroy()}),o1(o,r).forEach(l=>{l.subscribe(c=>{this.onUpdate(l,c)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions))}findMatchingObservers(t){const n=this.observers,r=new Map(n.map(d=>[d.options.queryHash,d])),i=t.map(d=>this.client.defaultQueryOptions(d)),o=i.flatMap(d=>{const m=r.get(d.queryHash);return m!=null?[{defaultedQueryOptions:d,observer:m}]:[]}),a=new Set(o.map(d=>d.defaultedQueryOptions.queryHash)),s=i.filter(d=>!a.has(d.queryHash)),u=new Set(o.map(d=>d.observer)),l=n.filter(d=>!u.has(d)),c=d=>{const m=this.client.defaultQueryOptions(d),_=this.observersMap[m.queryHash];return _!=null?_:new cg(this.client,m)},f=s.map((d,m)=>{if(d.keepPreviousData){const _=l[m];if(_!==void 0)return{defaultedQueryOptions:d,observer:_}}return{defaultedQueryOptions:d,observer:c(d)}}),p=(d,m)=>i.indexOf(d.defaultedQueryOptions)-i.indexOf(m.defaultedQueryOptions);return o.concat(f).sort(p)}onUpdate(t,n){const r=this.observers.indexOf(t);r!==-1&&(this.result=SL(this.result,r,n),this.notify())}notify(){Ae.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class UL extends cg{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:Fh()},n)}getOptimisticResult(t){return t.behavior=Fh(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,o,a,s,u;const{state:l}=t,c=super.createResult(t,n),{isFetching:f,isRefetching:p}=c,d=f&&((r=l.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",m=f&&((o=l.fetchMeta)==null||(a=o.fetchMore)==null?void 0:a.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ML(n,(s=l.data)==null?void 0:s.pages),hasPreviousPage:NL(n,(u=l.data)==null?void 0:u.pages),isFetchingNextPage:d,isFetchingPreviousPage:m,isRefetching:p&&!d&&!m}}}class BL extends no{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Lc(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:PS(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Ae.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,o;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(o=this.mutateOptions).onSettled)==null||i.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,s,u,l;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(u=(l=this.mutateOptions).onSettled)==null||u.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}}var DS={exports:{}},tn={},LS={exports:{}},MS={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(k,C){var A=k.length;k.push(C);e:for(;0<A;){var j=A-1>>>1,M=k[j];if(0<i(M,C))k[j]=C,k[A]=M,A=j;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var C=k[0],A=k.pop();if(A!==C){k[0]=A;e:for(var j=0,M=k.length,H=M>>>1;j<H;){var I=2*(j+1)-1,P=k[I],W=I+1,Z=k[W];if(0>i(P,A))W<M&&0>i(Z,P)?(k[j]=Z,k[W]=A,j=W):(k[j]=P,k[I]=A,j=I);else if(W<M&&0>i(Z,A))k[j]=Z,k[W]=A,j=W;else break e}}return C}function i(k,C){var A=k.sortIndex-C.sortIndex;return A!==0?A:k.id-C.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],l=[],c=1,f=null,p=3,d=!1,m=!1,_=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var C=n(l);C!==null;){if(C.callback===null)r(l);else if(C.startTime<=k)r(l),C.sortIndex=C.expirationTime,t(u,C);else break;C=n(l)}}function h(k){if(_=!1,v(k),!m)if(n(u)!==null)m=!0,q(w);else{var C=n(l);C!==null&&R(h,C.startTime-k)}}function w(k,C){m=!1,_&&(_=!1,g(T),T=-1),d=!0;var A=p;try{for(v(C),f=n(u);f!==null&&(!(f.expirationTime>C)||k&&!D());){var j=f.callback;if(typeof j=="function"){f.callback=null,p=f.priorityLevel;var M=j(f.expirationTime<=C);C=e.unstable_now(),typeof M=="function"?f.callback=M:f===n(u)&&r(u),v(C)}else r(u);f=n(u)}if(f!==null)var H=!0;else{var I=n(l);I!==null&&R(h,I.startTime-C),H=!1}return H}finally{f=null,p=A,d=!1}}var E=!1,S=null,T=-1,O=5,x=-1;function D(){return!(e.unstable_now()-x<O)}function V(){if(S!==null){var k=e.unstable_now();x=k;var C=!0;try{C=S(!0,k)}finally{C?B():(E=!1,S=null)}}else E=!1}var B;if(typeof y=="function")B=function(){y(V)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,L=F.port2;F.port1.onmessage=V,B=function(){L.postMessage(null)}}else B=function(){b(V,0)};function q(k){S=k,E||(E=!0,B())}function R(k,C){T=b(function(){k(e.unstable_now())},C)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){m||d||(m=!0,q(w))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var C=3;break;default:C=p}var A=p;p=C;try{return k()}finally{p=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,C){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var A=p;p=k;try{return C()}finally{p=A}},e.unstable_scheduleCallback=function(k,C,A){var j=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?j+A:j):A=j,k){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=A+M,k={id:c++,callback:C,priorityLevel:k,startTime:A,expirationTime:M,sortIndex:-1},A>j?(k.sortIndex=A,t(l,k),n(u)===null&&k===n(l)&&(_?(g(T),T=-1):_=!0,R(h,A-j))):(k.sortIndex=M,t(u,k),m||d||(m=!0,q(w))),k},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(k){var C=p;return function(){var A=p;p=C;try{return k.apply(this,arguments)}finally{p=A}}}})(MS);LS.exports=MS;var HL=LS.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var zL=N,Jt=HL;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NS=new Set,Gs={};function ro(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(Gs[e]=t,e=0;e<t.length;e++)NS.add(t[e])}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bh=Object.prototype.hasOwnProperty,qL=/^[: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][: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\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h1={},v1={};function VL(e){return Bh.call(v1,e)?!0:Bh.call(h1,e)?!1:qL.test(e)?v1[e]=!0:(h1[e]=!0,!1)}function WL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function QL(e,t,n,r){if(t===null||typeof t>"u"||WL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ct={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ct[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ct[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ct[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ct[e]=new Ct(e,2,!1,e,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".split(" ").forEach(function(e){ct[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ct[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ct[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ct[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ct[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var dg=/[\-:]([a-z])/g;function pg(e){return e[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".split(" ").forEach(function(e){var t=e.replace(dg,pg);ct[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(dg,pg);ct[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(dg,pg);ct[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ct[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});ct.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ct[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function hg(e,t,n,r){var i=ct.hasOwnProperty(t)?ct[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(QL(t,n,i,r)&&(n=null),r||i===null?VL(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var kr=zL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yl=Symbol.for("react.element"),Lo=Symbol.for("react.portal"),Mo=Symbol.for("react.fragment"),vg=Symbol.for("react.strict_mode"),Hh=Symbol.for("react.profiler"),$S=Symbol.for("react.provider"),FS=Symbol.for("react.context"),mg=Symbol.for("react.forward_ref"),zh=Symbol.for("react.suspense"),qh=Symbol.for("react.suspense_list"),gg=Symbol.for("react.memo"),Fr=Symbol.for("react.lazy"),jS=Symbol.for("react.offscreen"),m1=Symbol.iterator;function Va(e){return e===null||typeof e!="object"?null:(e=m1&&e[m1]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Object.assign,dp;function ds(e){if(dp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);dp=t&&t[1]||""}return`
`+dp+e}var pp=!1;function hp(e,t){if(!e||pp)return"";pp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var i=l.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var u=`
`+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{pp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ds(e):""}function GL(e){switch(e.tag){case 5:return ds(e.type);case 16:return ds("Lazy");case 13:return ds("Suspense");case 19:return ds("SuspenseList");case 0:case 2:case 15:return e=hp(e.type,!1),e;case 11:return e=hp(e.type.render,!1),e;case 1:return e=hp(e.type,!0),e;default:return""}}function Vh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mo:return"Fragment";case Lo:return"Portal";case Hh:return"Profiler";case vg:return"StrictMode";case zh:return"Suspense";case qh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case FS:return(e.displayName||"Context")+".Consumer";case $S:return(e._context.displayName||"Context")+".Provider";case mg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case gg:return t=e.displayName||null,t!==null?t:Vh(e.type)||"Memo";case Fr:t=e._payload,e=e._init;try{return Vh(e(t))}catch{}}return null}function YL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vh(t);case 8:return t===vg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function oi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function US(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XL(e){var t=US(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _l(e){e._valueTracker||(e._valueTracker=XL(e))}function BS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=US(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $c(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wh(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function g1(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function HS(e,t){t=t.checked,t!=null&&hg(e,"checked",t,!1)}function Qh(e,t){HS(e,t);var n=oi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Gh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Gh(e,t.type,oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function y1(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Gh(e,t,n){(t!=="number"||$c(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ps=Array.isArray;function Yo(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _1(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(ps(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oi(n)}}function zS(e,t){var n=oi(t.value),r=oi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function w1(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function qS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?qS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wl,VS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wl=wl||document.createElement("div"),wl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ys(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gs={animationIterationCount:!0,aspectRatio:!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},KL=["Webkit","ms","Moz","O"];Object.keys(gs).forEach(function(e){KL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gs[t]=gs[e]})});function WS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gs.hasOwnProperty(e)&&gs[e]?(""+t).trim():t+"px"}function QS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=WS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var JL=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kh(e,t){if(t){if(JL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Jh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Zh=null;function yg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ev=null,Xo=null,Ko=null;function b1(e){if(e=qu(e)){if(typeof ev!="function")throw Error(z(280));var t=e.stateNode;t&&(t=ad(t),ev(e.stateNode,e.type,t))}}function GS(e){Xo?Ko?Ko.push(e):Ko=[e]:Xo=e}function YS(){if(Xo){var e=Xo,t=Ko;if(Ko=Xo=null,b1(e),t)for(e=0;e<t.length;e++)b1(t[e])}}function XS(e,t){return e(t)}function KS(){}var vp=!1;function JS(e,t,n){if(vp)return e(t,n);vp=!0;try{return XS(e,t,n)}finally{vp=!1,(Xo!==null||Ko!==null)&&(KS(),YS())}}function Xs(e,t){var n=e.stateNode;if(n===null)return null;var r=ad(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var tv=!1;if(br)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){tv=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{tv=!1}function ZL(e,t,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var ys=!1,Fc=null,jc=!1,nv=null,eM={onError:function(e){ys=!0,Fc=e}};function tM(e,t,n,r,i,o,a,s,u){ys=!1,Fc=null,ZL.apply(eM,arguments)}function nM(e,t,n,r,i,o,a,s,u){if(tM.apply(this,arguments),ys){if(ys){var l=Fc;ys=!1,Fc=null}else throw Error(z(198));jc||(jc=!0,nv=l)}}function io(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ZS(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E1(e){if(io(e)!==e)throw Error(z(188))}function rM(e){var t=e.alternate;if(!t){if(t=io(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return E1(i),e;if(o===r)return E1(i),t;o=o.sibling}throw Error(z(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function eT(e){return e=rM(e),e!==null?tT(e):null}function tT(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=tT(e);if(t!==null)return t;e=e.sibling}return null}var nT=Jt.unstable_scheduleCallback,S1=Jt.unstable_cancelCallback,iM=Jt.unstable_shouldYield,oM=Jt.unstable_requestPaint,He=Jt.unstable_now,aM=Jt.unstable_getCurrentPriorityLevel,_g=Jt.unstable_ImmediatePriority,rT=Jt.unstable_UserBlockingPriority,Uc=Jt.unstable_NormalPriority,sM=Jt.unstable_LowPriority,iT=Jt.unstable_IdlePriority,nd=null,Jn=null;function uM(e){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(nd,e,void 0,(e.current.flags&128)===128)}catch{}}var Ln=Math.clz32?Math.clz32:fM,lM=Math.log,cM=Math.LN2;function fM(e){return e>>>=0,e===0?32:31-(lM(e)/cM|0)|0}var bl=64,El=4194304;function hs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=hs(s):(o&=a,o!==0&&(r=hs(o)))}else a=n&~i,a!==0?r=hs(a):o!==0&&(r=hs(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ln(t),i=1<<n,r|=e[n],t&=~i;return r}function dM(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pM(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ln(o),s=1<<a,u=i[a];u===-1?(!(s&n)||s&r)&&(i[a]=dM(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}function rv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function oT(){var e=bl;return bl<<=1,!(bl&4194240)&&(bl=64),e}function mp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ln(t),e[t]=n}function hM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ln(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function wg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ln(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ge=0;function aT(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var sT,bg,uT,lT,cT,iv=!1,Sl=[],Gr=null,Yr=null,Xr=null,Ks=new Map,Js=new Map,Hr=[],vM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function T1(e,t){switch(e){case"focusin":case"focusout":Gr=null;break;case"dragenter":case"dragleave":Yr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Ks.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function Qa(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=qu(t),t!==null&&bg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function mM(e,t,n,r,i){switch(t){case"focusin":return Gr=Qa(Gr,e,t,n,r,i),!0;case"dragenter":return Yr=Qa(Yr,e,t,n,r,i),!0;case"mouseover":return Xr=Qa(Xr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ks.set(o,Qa(Ks.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Js.set(o,Qa(Js.get(o)||null,e,t,n,r,i)),!0}return!1}function fT(e){var t=Ci(e.target);if(t!==null){var n=io(t);if(n!==null){if(t=n.tag,t===13){if(t=ZS(n),t!==null){e.blockedOn=t,cT(e.priority,function(){uT(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ov(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zh=r,n.target.dispatchEvent(r),Zh=null}else return t=qu(n),t!==null&&bg(t),e.blockedOn=n,!1;t.shift()}return!0}function x1(e,t,n){ac(e)&&n.delete(t)}function gM(){iv=!1,Gr!==null&&ac(Gr)&&(Gr=null),Yr!==null&&ac(Yr)&&(Yr=null),Xr!==null&&ac(Xr)&&(Xr=null),Ks.forEach(x1),Js.forEach(x1)}function Ga(e,t){e.blockedOn===t&&(e.blockedOn=null,iv||(iv=!0,Jt.unstable_scheduleCallback(Jt.unstable_NormalPriority,gM)))}function Zs(e){function t(i){return Ga(i,e)}if(0<Sl.length){Ga(Sl[0],e);for(var n=1;n<Sl.length;n++){var r=Sl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Gr!==null&&Ga(Gr,e),Yr!==null&&Ga(Yr,e),Xr!==null&&Ga(Xr,e),Ks.forEach(t),Js.forEach(t),n=0;n<Hr.length;n++)r=Hr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Hr.length&&(n=Hr[0],n.blockedOn===null);)fT(n),n.blockedOn===null&&Hr.shift()}var Jo=kr.ReactCurrentBatchConfig,Hc=!0;function yM(e,t,n,r){var i=ge,o=Jo.transition;Jo.transition=null;try{ge=1,Eg(e,t,n,r)}finally{ge=i,Jo.transition=o}}function _M(e,t,n,r){var i=ge,o=Jo.transition;Jo.transition=null;try{ge=4,Eg(e,t,n,r)}finally{ge=i,Jo.transition=o}}function Eg(e,t,n,r){if(Hc){var i=ov(e,t,n,r);if(i===null)Op(e,t,r,zc,n),T1(e,r);else if(mM(i,e,t,n,r))r.stopPropagation();else if(T1(e,r),t&4&&-1<vM.indexOf(e)){for(;i!==null;){var o=qu(i);if(o!==null&&sT(o),o=ov(e,t,n,r),o===null&&Op(e,t,r,zc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Op(e,t,r,null,n)}}var zc=null;function ov(e,t,n,r){if(zc=null,e=yg(r),e=Ci(e),e!==null)if(t=io(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ZS(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zc=e,null}function dT(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(aM()){case _g:return 1;case rT:return 4;case Uc:case sM:return 16;case iT:return 536870912;default:return 16}default:return 16}}var qr=null,Sg=null,sc=null;function pT(){if(sc)return sc;var e,t=Sg,n=t.length,r,i="value"in qr?qr.value:qr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return sc=i.slice(e,1<r?1-r:void 0)}function uc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tl(){return!0}function O1(){return!1}function nn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Tl:O1,this.isPropagationStopped=O1,this}return Fe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Tl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Tl)},persist:function(){},isPersistent:Tl}),t}var Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tg=nn(Da),zu=Fe({},Da,{view:0,detail:0}),wM=nn(zu),gp,yp,Ya,rd=Fe({},zu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xg,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ya&&(Ya&&e.type==="mousemove"?(gp=e.screenX-Ya.screenX,yp=e.screenY-Ya.screenY):yp=gp=0,Ya=e),gp)},movementY:function(e){return"movementY"in e?e.movementY:yp}}),k1=nn(rd),bM=Fe({},rd,{dataTransfer:0}),EM=nn(bM),SM=Fe({},zu,{relatedTarget:0}),_p=nn(SM),TM=Fe({},Da,{animationName:0,elapsedTime:0,pseudoElement:0}),xM=nn(TM),OM=Fe({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kM=nn(OM),CM=Fe({},Da,{data:0}),C1=nn(CM),AM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},PM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PM[e])?!!t[e]:!1}function xg(){return IM}var DM=Fe({},zu,{key:function(e){if(e.key){var t=AM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?RM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xg,charCode:function(e){return e.type==="keypress"?uc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LM=nn(DM),MM=Fe({},rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A1=nn(MM),NM=Fe({},zu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xg}),$M=nn(NM),FM=Fe({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0}),jM=nn(FM),UM=Fe({},rd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),BM=nn(UM),HM=[9,13,27,32],Og=br&&"CompositionEvent"in window,_s=null;br&&"documentMode"in document&&(_s=document.documentMode);var zM=br&&"TextEvent"in window&&!_s,hT=br&&(!Og||_s&&8<_s&&11>=_s),R1=" ",P1=!1;function vT(e,t){switch(e){case"keyup":return HM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mT(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var No=!1;function qM(e,t){switch(e){case"compositionend":return mT(t);case"keypress":return t.which!==32?null:(P1=!0,R1);case"textInput":return e=t.data,e===R1&&P1?null:e;default:return null}}function VM(e,t){if(No)return e==="compositionend"||!Og&&vT(e,t)?(e=pT(),sc=Sg=qr=null,No=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return hT&&t.locale!=="ko"?null:t.data;default:return null}}var WM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function I1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WM[e.type]:t==="textarea"}function gT(e,t,n,r){GS(r),t=qc(t,"onChange"),0<t.length&&(n=new Tg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ws=null,eu=null;function QM(e){CT(e,0)}function id(e){var t=jo(e);if(BS(t))return e}function GM(e,t){if(e==="change")return t}var yT=!1;if(br){var wp;if(br){var bp="oninput"in document;if(!bp){var D1=document.createElement("div");D1.setAttribute("oninput","return;"),bp=typeof D1.oninput=="function"}wp=bp}else wp=!1;yT=wp&&(!document.documentMode||9<document.documentMode)}function L1(){ws&&(ws.detachEvent("onpropertychange",_T),eu=ws=null)}function _T(e){if(e.propertyName==="value"&&id(eu)){var t=[];gT(t,eu,e,yg(e)),JS(QM,t)}}function YM(e,t,n){e==="focusin"?(L1(),ws=t,eu=n,ws.attachEvent("onpropertychange",_T)):e==="focusout"&&L1()}function XM(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return id(eu)}function KM(e,t){if(e==="click")return id(t)}function JM(e,t){if(e==="input"||e==="change")return id(t)}function ZM(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nn=typeof Object.is=="function"?Object.is:ZM;function tu(e,t){if(Nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Bh.call(t,i)||!Nn(e[i],t[i]))return!1}return!0}function M1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function N1(e,t){var n=M1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=M1(n)}}function wT(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wT(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bT(){for(var e=window,t=$c();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$c(e.document)}return t}function kg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function eN(e){var t=bT(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&wT(n.ownerDocument.documentElement,n)){if(r!==null&&kg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=N1(n,o);var a=N1(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var tN=br&&"documentMode"in document&&11>=document.documentMode,$o=null,av=null,bs=null,sv=!1;function $1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sv||$o==null||$o!==$c(r)||(r=$o,"selectionStart"in r&&kg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bs&&tu(bs,r)||(bs=r,r=qc(av,"onSelect"),0<r.length&&(t=new Tg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$o)))}function xl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fo={animationend:xl("Animation","AnimationEnd"),animationiteration:xl("Animation","AnimationIteration"),animationstart:xl("Animation","AnimationStart"),transitionend:xl("Transition","TransitionEnd")},Ep={},ET={};br&&(ET=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function od(e){if(Ep[e])return Ep[e];if(!Fo[e])return e;var t=Fo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ET)return Ep[e]=t[n];return e}var ST=od("animationend"),TT=od("animationiteration"),xT=od("animationstart"),OT=od("transitionend"),kT=new Map,F1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function li(e,t){kT.set(e,t),ro(t,[e])}for(var Sp=0;Sp<F1.length;Sp++){var Tp=F1[Sp],nN=Tp.toLowerCase(),rN=Tp[0].toUpperCase()+Tp.slice(1);li(nN,"on"+rN)}li(ST,"onAnimationEnd");li(TT,"onAnimationIteration");li(xT,"onAnimationStart");li("dblclick","onDoubleClick");li("focusin","onFocus");li("focusout","onBlur");li(OT,"onTransitionEnd");fa("onMouseEnter",["mouseout","mouseover"]);fa("onMouseLeave",["mouseout","mouseover"]);fa("onPointerEnter",["pointerout","pointerover"]);fa("onPointerLeave",["pointerout","pointerover"]);ro("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ro("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ro("onBeforeInput",["compositionend","keypress","textInput","paste"]);ro("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ro("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ro("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iN=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function j1(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nM(r,t,void 0,e),e.currentTarget=null}function CT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;j1(i,s,l),o=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,l=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;j1(i,s,l),o=u}}}if(jc)throw e=nv,jc=!1,nv=null,e}function Oe(e,t){var n=t[dv];n===void 0&&(n=t[dv]=new Set);var r=e+"__bubble";n.has(r)||(AT(t,e,2,!1),n.add(r))}function xp(e,t,n){var r=0;t&&(r|=4),AT(n,e,r,t)}var Ol="_reactListening"+Math.random().toString(36).slice(2);function nu(e){if(!e[Ol]){e[Ol]=!0,NS.forEach(function(n){n!=="selectionchange"&&(iN.has(n)||xp(n,!1,e),xp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ol]||(t[Ol]=!0,xp("selectionchange",!1,t))}}function AT(e,t,n,r){switch(dT(t)){case 1:var i=yM;break;case 4:i=_M;break;default:i=Eg}n=i.bind(null,t,n,e),i=void 0,!tv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Op(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Ci(s),a===null)return;if(u=a.tag,u===5||u===6){r=o=a;continue e}s=s.parentNode}}r=r.return}JS(function(){var l=o,c=yg(n),f=[];e:{var p=kT.get(e);if(p!==void 0){var d=Tg,m=e;switch(e){case"keypress":if(uc(n)===0)break e;case"keydown":case"keyup":d=LM;break;case"focusin":m="focus",d=_p;break;case"focusout":m="blur",d=_p;break;case"beforeblur":case"afterblur":d=_p;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=k1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=EM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=$M;break;case ST:case TT:case xT:d=xM;break;case OT:d=jM;break;case"scroll":d=wM;break;case"wheel":d=BM;break;case"copy":case"cut":case"paste":d=kM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=A1}var _=(t&4)!==0,b=!_&&e==="scroll",g=_?p!==null?p+"Capture":null:p;_=[];for(var y=l,v;y!==null;){v=y;var h=v.stateNode;if(v.tag===5&&h!==null&&(v=h,g!==null&&(h=Xs(y,g),h!=null&&_.push(ru(y,h,v)))),b)break;y=y.return}0<_.length&&(p=new d(p,m,null,n,c),f.push({event:p,listeners:_}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==Zh&&(m=n.relatedTarget||n.fromElement)&&(Ci(m)||m[Er]))break e;if((d||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(m=n.relatedTarget||n.toElement,d=l,m=m?Ci(m):null,m!==null&&(b=io(m),m!==b||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=l),d!==m)){if(_=k1,h="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(_=A1,h="onPointerLeave",g="onPointerEnter",y="pointer"),b=d==null?p:jo(d),v=m==null?p:jo(m),p=new _(h,y+"leave",d,n,c),p.target=b,p.relatedTarget=v,h=null,Ci(c)===l&&(_=new _(g,y+"enter",m,n,c),_.target=v,_.relatedTarget=b,h=_),b=h,d&&m)t:{for(_=d,g=m,y=0,v=_;v;v=xo(v))y++;for(v=0,h=g;h;h=xo(h))v++;for(;0<y-v;)_=xo(_),y--;for(;0<v-y;)g=xo(g),v--;for(;y--;){if(_===g||g!==null&&_===g.alternate)break t;_=xo(_),g=xo(g)}_=null}else _=null;d!==null&&U1(f,p,d,_,!1),m!==null&&b!==null&&U1(f,b,m,_,!0)}}e:{if(p=l?jo(l):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var w=GM;else if(I1(p))if(yT)w=JM;else{w=XM;var E=YM}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(w=KM);if(w&&(w=w(e,l))){gT(f,w,n,c);break e}E&&E(e,p,l),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Gh(p,"number",p.value)}switch(E=l?jo(l):window,e){case"focusin":(I1(E)||E.contentEditable==="true")&&($o=E,av=l,bs=null);break;case"focusout":bs=av=$o=null;break;case"mousedown":sv=!0;break;case"contextmenu":case"mouseup":case"dragend":sv=!1,$1(f,n,c);break;case"selectionchange":if(tN)break;case"keydown":case"keyup":$1(f,n,c)}var S;if(Og)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else No?vT(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(hT&&n.locale!=="ko"&&(No||T!=="onCompositionStart"?T==="onCompositionEnd"&&No&&(S=pT()):(qr=c,Sg="value"in qr?qr.value:qr.textContent,No=!0)),E=qc(l,T),0<E.length&&(T=new C1(T,e,null,n,c),f.push({event:T,listeners:E}),S?T.data=S:(S=mT(n),S!==null&&(T.data=S)))),(S=zM?qM(e,n):VM(e,n))&&(l=qc(l,"onBeforeInput"),0<l.length&&(c=new C1("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:l}),c.data=S))}CT(f,t)})}function ru(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Xs(e,n),o!=null&&r.unshift(ru(e,o,i)),o=Xs(e,t),o!=null&&r.push(ru(e,o,i))),e=e.return}return r}function xo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function U1(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,u=s.alternate,l=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&l!==null&&(s=l,i?(u=Xs(n,o),u!=null&&a.unshift(ru(n,u,s))):i||(u=Xs(n,o),u!=null&&a.push(ru(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var oN=/\r\n?/g,aN=/\u0000|\uFFFD/g;function B1(e){return(typeof e=="string"?e:""+e).replace(oN,`
`).replace(aN,"")}function kl(e,t,n){if(t=B1(t),B1(e)!==t&&n)throw Error(z(425))}function Vc(){}var uv=null,lv=null;function cv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var fv=typeof setTimeout=="function"?setTimeout:void 0,sN=typeof clearTimeout=="function"?clearTimeout:void 0,H1=typeof Promise=="function"?Promise:void 0,uN=typeof queueMicrotask=="function"?queueMicrotask:typeof H1<"u"?function(e){return H1.resolve(null).then(e).catch(lN)}:fv;function lN(e){setTimeout(function(){throw e})}function kp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Zs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Zs(t)}function Kr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function z1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var La=Math.random().toString(36).slice(2),Qn="__reactFiber$"+La,iu="__reactProps$"+La,Er="__reactContainer$"+La,dv="__reactEvents$"+La,cN="__reactListeners$"+La,fN="__reactHandles$"+La;function Ci(e){var t=e[Qn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Er]||n[Qn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=z1(e);e!==null;){if(n=e[Qn])return n;e=z1(e)}return t}e=n,n=e.parentNode}return null}function qu(e){return e=e[Qn]||e[Er],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function ad(e){return e[iu]||null}var pv=[],Uo=-1;function ci(e){return{current:e}}function Re(e){0>Uo||(e.current=pv[Uo],pv[Uo]=null,Uo--)}function Te(e,t){Uo++,pv[Uo]=e.current,e.current=t}var ai={},yt=ci(ai),Lt=ci(!1),qi=ai;function da(e,t){var n=e.type.contextTypes;if(!n)return ai;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mt(e){return e=e.childContextTypes,e!=null}function Wc(){Re(Lt),Re(yt)}function q1(e,t,n){if(yt.current!==ai)throw Error(z(168));Te(yt,t),Te(Lt,n)}function RT(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,YL(e)||"Unknown",i));return Fe({},n,r)}function Qc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ai,qi=yt.current,Te(yt,e),Te(Lt,Lt.current),!0}function V1(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=RT(e,t,qi),r.__reactInternalMemoizedMergedChildContext=e,Re(Lt),Re(yt),Te(yt,e)):Re(Lt),Te(Lt,n)}var hr=null,sd=!1,Cp=!1;function PT(e){hr===null?hr=[e]:hr.push(e)}function dN(e){sd=!0,PT(e)}function fi(){if(!Cp&&hr!==null){Cp=!0;var e=0,t=ge;try{var n=hr;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}hr=null,sd=!1}catch(i){throw hr!==null&&(hr=hr.slice(e+1)),nT(_g,fi),i}finally{ge=t,Cp=!1}}return null}var Bo=[],Ho=0,Gc=null,Yc=0,sn=[],un=0,Vi=null,mr=1,gr="";function Si(e,t){Bo[Ho++]=Yc,Bo[Ho++]=Gc,Gc=e,Yc=t}function IT(e,t,n){sn[un++]=mr,sn[un++]=gr,sn[un++]=Vi,Vi=e;var r=mr;e=gr;var i=32-Ln(r)-1;r&=~(1<<i),n+=1;var o=32-Ln(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,mr=1<<32-Ln(t)+i|n<<i|r,gr=o+e}else mr=1<<o|n<<i|r,gr=e}function Cg(e){e.return!==null&&(Si(e,1),IT(e,1,0))}function Ag(e){for(;e===Gc;)Gc=Bo[--Ho],Bo[Ho]=null,Yc=Bo[--Ho],Bo[Ho]=null;for(;e===Vi;)Vi=sn[--un],sn[un]=null,gr=sn[--un],sn[un]=null,mr=sn[--un],sn[un]=null}var Kt=null,Qt=null,De=!1,An=null;function DT(e,t){var n=fn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function W1(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Kt=e,Qt=Kr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Kt=e,Qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vi!==null?{id:mr,overflow:gr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=fn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Kt=e,Qt=null,!0):!1;default:return!1}}function hv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vv(e){if(De){var t=Qt;if(t){var n=t;if(!W1(e,t)){if(hv(e))throw Error(z(418));t=Kr(n.nextSibling);var r=Kt;t&&W1(e,t)?DT(r,n):(e.flags=e.flags&-4097|2,De=!1,Kt=e)}}else{if(hv(e))throw Error(z(418));e.flags=e.flags&-4097|2,De=!1,Kt=e}}}function Q1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function Cl(e){if(e!==Kt)return!1;if(!De)return Q1(e),De=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!cv(e.type,e.memoizedProps)),t&&(t=Qt)){if(hv(e))throw LT(),Error(z(418));for(;t;)DT(e,t),t=Kr(t.nextSibling)}if(Q1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Qt=Kr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Qt=null}}else Qt=Kt?Kr(e.stateNode.nextSibling):null;return!0}function LT(){for(var e=Qt;e;)e=Kr(e.nextSibling)}function pa(){Qt=Kt=null,De=!1}function Rg(e){An===null?An=[e]:An.push(e)}var pN=kr.ReactCurrentBatchConfig;function Xa(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function Al(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function G1(e){var t=e._init;return t(e._payload)}function MT(e){function t(g,y){if(e){var v=g.deletions;v===null?(g.deletions=[y],g.flags|=16):v.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function i(g,y){return g=ti(g,y),g.index=0,g.sibling=null,g}function o(g,y,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<y?(g.flags|=2,y):v):(g.flags|=2,y)):(g.flags|=1048576,y)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,y,v,h){return y===null||y.tag!==6?(y=Mp(v,g.mode,h),y.return=g,y):(y=i(y,v),y.return=g,y)}function u(g,y,v,h){var w=v.type;return w===Mo?c(g,y,v.props.children,h,v.key):y!==null&&(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fr&&G1(w)===y.type)?(h=i(y,v.props),h.ref=Xa(g,y,v),h.return=g,h):(h=vc(v.type,v.key,v.props,null,g.mode,h),h.ref=Xa(g,y,v),h.return=g,h)}function l(g,y,v,h){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=Np(v,g.mode,h),y.return=g,y):(y=i(y,v.children||[]),y.return=g,y)}function c(g,y,v,h,w){return y===null||y.tag!==7?(y=Li(v,g.mode,h,w),y.return=g,y):(y=i(y,v),y.return=g,y)}function f(g,y,v){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Mp(""+y,g.mode,v),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case yl:return v=vc(y.type,y.key,y.props,null,g.mode,v),v.ref=Xa(g,null,y),v.return=g,v;case Lo:return y=Np(y,g.mode,v),y.return=g,y;case Fr:var h=y._init;return f(g,h(y._payload),v)}if(ps(y)||Va(y))return y=Li(y,g.mode,v,null),y.return=g,y;Al(g,y)}return null}function p(g,y,v,h){var w=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:s(g,y,""+v,h);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case yl:return v.key===w?u(g,y,v,h):null;case Lo:return v.key===w?l(g,y,v,h):null;case Fr:return w=v._init,p(g,y,w(v._payload),h)}if(ps(v)||Va(v))return w!==null?null:c(g,y,v,h,null);Al(g,v)}return null}function d(g,y,v,h,w){if(typeof h=="string"&&h!==""||typeof h=="number")return g=g.get(v)||null,s(y,g,""+h,w);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case yl:return g=g.get(h.key===null?v:h.key)||null,u(y,g,h,w);case Lo:return g=g.get(h.key===null?v:h.key)||null,l(y,g,h,w);case Fr:var E=h._init;return d(g,y,v,E(h._payload),w)}if(ps(h)||Va(h))return g=g.get(v)||null,c(y,g,h,w,null);Al(y,h)}return null}function m(g,y,v,h){for(var w=null,E=null,S=y,T=y=0,O=null;S!==null&&T<v.length;T++){S.index>T?(O=S,S=null):O=S.sibling;var x=p(g,S,v[T],h);if(x===null){S===null&&(S=O);break}e&&S&&x.alternate===null&&t(g,S),y=o(x,y,T),E===null?w=x:E.sibling=x,E=x,S=O}if(T===v.length)return n(g,S),De&&Si(g,T),w;if(S===null){for(;T<v.length;T++)S=f(g,v[T],h),S!==null&&(y=o(S,y,T),E===null?w=S:E.sibling=S,E=S);return De&&Si(g,T),w}for(S=r(g,S);T<v.length;T++)O=d(S,g,T,v[T],h),O!==null&&(e&&O.alternate!==null&&S.delete(O.key===null?T:O.key),y=o(O,y,T),E===null?w=O:E.sibling=O,E=O);return e&&S.forEach(function(D){return t(g,D)}),De&&Si(g,T),w}function _(g,y,v,h){var w=Va(v);if(typeof w!="function")throw Error(z(150));if(v=w.call(v),v==null)throw Error(z(151));for(var E=w=null,S=y,T=y=0,O=null,x=v.next();S!==null&&!x.done;T++,x=v.next()){S.index>T?(O=S,S=null):O=S.sibling;var D=p(g,S,x.value,h);if(D===null){S===null&&(S=O);break}e&&S&&D.alternate===null&&t(g,S),y=o(D,y,T),E===null?w=D:E.sibling=D,E=D,S=O}if(x.done)return n(g,S),De&&Si(g,T),w;if(S===null){for(;!x.done;T++,x=v.next())x=f(g,x.value,h),x!==null&&(y=o(x,y,T),E===null?w=x:E.sibling=x,E=x);return De&&Si(g,T),w}for(S=r(g,S);!x.done;T++,x=v.next())x=d(S,g,T,x.value,h),x!==null&&(e&&x.alternate!==null&&S.delete(x.key===null?T:x.key),y=o(x,y,T),E===null?w=x:E.sibling=x,E=x);return e&&S.forEach(function(V){return t(g,V)}),De&&Si(g,T),w}function b(g,y,v,h){if(typeof v=="object"&&v!==null&&v.type===Mo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case yl:e:{for(var w=v.key,E=y;E!==null;){if(E.key===w){if(w=v.type,w===Mo){if(E.tag===7){n(g,E.sibling),y=i(E,v.props.children),y.return=g,g=y;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Fr&&G1(w)===E.type){n(g,E.sibling),y=i(E,v.props),y.ref=Xa(g,E,v),y.return=g,g=y;break e}n(g,E);break}else t(g,E);E=E.sibling}v.type===Mo?(y=Li(v.props.children,g.mode,h,v.key),y.return=g,g=y):(h=vc(v.type,v.key,v.props,null,g.mode,h),h.ref=Xa(g,y,v),h.return=g,g=h)}return a(g);case Lo:e:{for(E=v.key;y!==null;){if(y.key===E)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(g,y.sibling),y=i(y,v.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Np(v,g.mode,h),y.return=g,g=y}return a(g);case Fr:return E=v._init,b(g,y,E(v._payload),h)}if(ps(v))return m(g,y,v,h);if(Va(v))return _(g,y,v,h);Al(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,v),y.return=g,g=y):(n(g,y),y=Mp(v,g.mode,h),y.return=g,g=y),a(g)):n(g,y)}return b}var ha=MT(!0),NT=MT(!1),Xc=ci(null),Kc=null,zo=null,Pg=null;function Ig(){Pg=zo=Kc=null}function Dg(e){var t=Xc.current;Re(Xc),e._currentValue=t}function mv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zo(e,t){Kc=e,Pg=zo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function gn(e){var t=e._currentValue;if(Pg!==e)if(e={context:e,memoizedValue:t,next:null},zo===null){if(Kc===null)throw Error(z(308));zo=e,Kc.dependencies={lanes:0,firstContext:e}}else zo=zo.next=e;return t}var Ai=null;function Lg(e){Ai===null?Ai=[e]:Ai.push(e)}function $T(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Lg(t)):(n.next=i.next,i.next=n),t.interleaved=n,Sr(e,r)}function Sr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var jr=!1;function Mg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function FT(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,de&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Sr(e,n)}return i=r.interleaved,i===null?(t.next=t,Lg(r)):(t.next=i.next,i.next=t),r.interleaved=t,Sr(e,n)}function lc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wg(e,n)}}function Y1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jc(e,t,n,r){var i=e.updateQueue;jr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,l=u.next;u.next=null,a===null?o=l:a.next=l,a=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(o!==null){var f=i.baseState;a=0,c=l=u=null,s=o;do{var p=s.lane,d=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,_=s;switch(p=t,d=n,_.tag){case 1:if(m=_.payload,typeof m=="function"){f=m.call(d,f,p);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=_.payload,p=typeof m=="function"?m.call(d,f,p):m,p==null)break e;f=Fe({},f,p);break e;case 2:jr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(l=c=d,u=f):c=c.next=d,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Qi|=a,e.lanes=a,e.memoizedState=f}}function X1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(z(191,i));i.call(r)}}}var Vu={},Zn=ci(Vu),ou=ci(Vu),au=ci(Vu);function Ri(e){if(e===Vu)throw Error(z(174));return e}function Ng(e,t){switch(Te(au,t),Te(ou,e),Te(Zn,Vu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xh(t,e)}Re(Zn),Te(Zn,t)}function va(){Re(Zn),Re(ou),Re(au)}function jT(e){Ri(au.current);var t=Ri(Zn.current),n=Xh(t,e.type);t!==n&&(Te(ou,e),Te(Zn,n))}function $g(e){ou.current===e&&(Re(Zn),Re(ou))}var Me=ci(0);function Zc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ap=[];function Fg(){for(var e=0;e<Ap.length;e++)Ap[e]._workInProgressVersionPrimary=null;Ap.length=0}var cc=kr.ReactCurrentDispatcher,Rp=kr.ReactCurrentBatchConfig,Wi=0,$e=null,Ye=null,Ze=null,ef=!1,Es=!1,su=0,hN=0;function pt(){throw Error(z(321))}function jg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nn(e[n],t[n]))return!1;return!0}function Ug(e,t,n,r,i,o){if(Wi=o,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,cc.current=e===null||e.memoizedState===null?yN:_N,e=n(r,i),Es){o=0;do{if(Es=!1,su=0,25<=o)throw Error(z(301));o+=1,Ze=Ye=null,t.updateQueue=null,cc.current=wN,e=n(r,i)}while(Es)}if(cc.current=tf,t=Ye!==null&&Ye.next!==null,Wi=0,Ze=Ye=$e=null,ef=!1,t)throw Error(z(300));return e}function Bg(){var e=su!==0;return su=0,e}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?$e.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function yn(){if(Ye===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=Ze===null?$e.memoizedState:Ze.next;if(t!==null)Ze=t,Ye=e;else{if(e===null)throw Error(z(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},Ze===null?$e.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function uu(e,t){return typeof t=="function"?t(e):t}function Pp(e){var t=yn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,u=null,l=o;do{var c=l.lane;if((Wi&c)===c)u!==null&&(u=u.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};u===null?(s=u=f,a=r):u=u.next=f,$e.lanes|=c,Qi|=c}l=l.next}while(l!==null&&l!==o);u===null?a=r:u.next=s,Nn(r,t.memoizedState)||(Dt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,$e.lanes|=o,Qi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ip(e){var t=yn(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Nn(o,t.memoizedState)||(Dt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function UT(){}function BT(e,t){var n=$e,r=yn(),i=t(),o=!Nn(r.memoizedState,i);if(o&&(r.memoizedState=i,Dt=!0),r=r.queue,Hg(qT.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(n.flags|=2048,lu(9,zT.bind(null,n,r,i,t),void 0,null),et===null)throw Error(z(349));Wi&30||HT(n,t,i)}return i}function HT(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zT(e,t,n,r){t.value=n,t.getSnapshot=r,VT(t)&&WT(e)}function qT(e,t,n){return n(function(){VT(t)&&WT(e)})}function VT(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nn(e,n)}catch{return!0}}function WT(e){var t=Sr(e,1);t!==null&&Mn(t,e,1,-1)}function K1(e){var t=Hn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:uu,lastRenderedState:e},t.queue=e,e=e.dispatch=gN.bind(null,$e,e),[t.memoizedState,e]}function lu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function QT(){return yn().memoizedState}function fc(e,t,n,r){var i=Hn();$e.flags|=e,i.memoizedState=lu(1|t,n,void 0,r===void 0?null:r)}function ud(e,t,n,r){var i=yn();r=r===void 0?null:r;var o=void 0;if(Ye!==null){var a=Ye.memoizedState;if(o=a.destroy,r!==null&&jg(r,a.deps)){i.memoizedState=lu(t,n,o,r);return}}$e.flags|=e,i.memoizedState=lu(1|t,n,o,r)}function J1(e,t){return fc(8390656,8,e,t)}function Hg(e,t){return ud(2048,8,e,t)}function GT(e,t){return ud(4,2,e,t)}function YT(e,t){return ud(4,4,e,t)}function XT(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function KT(e,t,n){return n=n!=null?n.concat([e]):null,ud(4,4,XT.bind(null,t,e),n)}function zg(){}function JT(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ZT(e,t){var n=yn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&jg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ex(e,t,n){return Wi&21?(Nn(n,t)||(n=oT(),$e.lanes|=n,Qi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=n)}function vN(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=Rp.transition;Rp.transition={};try{e(!1),t()}finally{ge=n,Rp.transition=r}}function tx(){return yn().memoizedState}function mN(e,t,n){var r=ei(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nx(e))rx(t,n);else if(n=$T(e,t,n,r),n!==null){var i=xt();Mn(n,e,r,i),ix(n,t,r)}}function gN(e,t,n){var r=ei(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nx(e))rx(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Nn(s,a)){var u=t.interleaved;u===null?(i.next=i,Lg(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=$T(e,t,i,r),n!==null&&(i=xt(),Mn(n,e,r,i),ix(n,t,r))}}function nx(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function rx(e,t){Es=ef=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ix(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wg(e,n)}}var tf={readContext:gn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},yN={readContext:gn,useCallback:function(e,t){return Hn().memoizedState=[e,t===void 0?null:t],e},useContext:gn,useEffect:J1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,fc(4194308,4,XT.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fc(4194308,4,e,t)},useInsertionEffect:function(e,t){return fc(4,2,e,t)},useMemo:function(e,t){var n=Hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mN.bind(null,$e,e),[r.memoizedState,e]},useRef:function(e){var t=Hn();return e={current:e},t.memoizedState=e},useState:K1,useDebugValue:zg,useDeferredValue:function(e){return Hn().memoizedState=e},useTransition:function(){var e=K1(!1),t=e[0];return e=vN.bind(null,e[1]),Hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=$e,i=Hn();if(De){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),et===null)throw Error(z(349));Wi&30||HT(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,J1(qT.bind(null,r,o,e),[e]),r.flags|=2048,lu(9,zT.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Hn(),t=et.identifierPrefix;if(De){var n=gr,r=mr;n=(r&~(1<<32-Ln(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=su++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=hN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_N={readContext:gn,useCallback:JT,useContext:gn,useEffect:Hg,useImperativeHandle:KT,useInsertionEffect:GT,useLayoutEffect:YT,useMemo:ZT,useReducer:Pp,useRef:QT,useState:function(){return Pp(uu)},useDebugValue:zg,useDeferredValue:function(e){var t=yn();return ex(t,Ye.memoizedState,e)},useTransition:function(){var e=Pp(uu)[0],t=yn().memoizedState;return[e,t]},useMutableSource:UT,useSyncExternalStore:BT,useId:tx,unstable_isNewReconciler:!1},wN={readContext:gn,useCallback:JT,useContext:gn,useEffect:Hg,useImperativeHandle:KT,useInsertionEffect:GT,useLayoutEffect:YT,useMemo:ZT,useReducer:Ip,useRef:QT,useState:function(){return Ip(uu)},useDebugValue:zg,useDeferredValue:function(e){var t=yn();return Ye===null?t.memoizedState=e:ex(t,Ye.memoizedState,e)},useTransition:function(){var e=Ip(uu)[0],t=yn().memoizedState;return[e,t]},useMutableSource:UT,useSyncExternalStore:BT,useId:tx,unstable_isNewReconciler:!1};function On(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function gv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ld={isMounted:function(e){return(e=e._reactInternals)?io(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xt(),i=ei(e),o=wr(r,i);o.payload=t,n!=null&&(o.callback=n),t=Jr(e,o,i),t!==null&&(Mn(t,e,i,r),lc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xt(),i=ei(e),o=wr(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Jr(e,o,i),t!==null&&(Mn(t,e,i,r),lc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),r=ei(e),i=wr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Jr(e,i,r),t!==null&&(Mn(t,e,r,n),lc(t,e,r))}};function Z1(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!tu(n,r)||!tu(i,o):!0}function ox(e,t,n){var r=!1,i=ai,o=t.contextType;return typeof o=="object"&&o!==null?o=gn(o):(i=Mt(t)?qi:yt.current,r=t.contextTypes,o=(r=r!=null)?da(e,i):ai),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ld,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function e_(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ld.enqueueReplaceState(t,t.state,null)}function yv(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Mg(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=gn(o):(o=Mt(t)?qi:yt.current,i.context=da(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(gv(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ld.enqueueReplaceState(i,i.state,null),Jc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ma(e,t){try{var n="",r=t;do n+=GL(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Dp(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function _v(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var bN=typeof WeakMap=="function"?WeakMap:Map;function ax(e,t,n){n=wr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rf||(rf=!0,Av=r),_v(e,t)},n}function sx(e,t,n){n=wr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){_v(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){_v(e,t),typeof r!="function"&&(Zr===null?Zr=new Set([this]):Zr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function t_(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=MN.bind(null,e,t,n),t.then(e,e))}function n_(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function r_(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wr(-1,1),t.tag=2,Jr(n,t,1))),n.lanes|=1),e)}var EN=kr.ReactCurrentOwner,Dt=!1;function Et(e,t,n,r){t.child=e===null?NT(t,null,n,r):ha(t,e.child,n,r)}function i_(e,t,n,r,i){n=n.render;var o=t.ref;return Zo(t,i),r=Ug(e,t,n,r,o,i),n=Bg(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tr(e,t,i)):(De&&n&&Cg(t),t.flags|=1,Et(e,t,r,i),t.child)}function o_(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Kg(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ux(e,t,o,r,i)):(e=vc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:tu,n(a,r)&&e.ref===t.ref)return Tr(e,t,i)}return t.flags|=1,e=ti(o,r),e.ref=t.ref,e.return=t,t.child=e}function ux(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(tu(o,r)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,Tr(e,t,i)}return wv(e,t,n,r,i)}function lx(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Te(Vo,zt),zt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Te(Vo,zt),zt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Te(Vo,zt),zt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Te(Vo,zt),zt|=r;return Et(e,t,i,n),t.child}function cx(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wv(e,t,n,r,i){var o=Mt(n)?qi:yt.current;return o=da(t,o),Zo(t,i),n=Ug(e,t,n,r,o,i),r=Bg(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Tr(e,t,i)):(De&&r&&Cg(t),t.flags|=1,Et(e,t,n,i),t.child)}function a_(e,t,n,r,i){if(Mt(n)){var o=!0;Qc(t)}else o=!1;if(Zo(t,i),t.stateNode===null)dc(e,t),ox(t,n,r),yv(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=gn(l):(l=Mt(n)?qi:yt.current,l=da(t,l));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==l)&&e_(t,a,r,l),jr=!1;var p=t.memoizedState;a.state=p,Jc(t,r,a,i),u=t.memoizedState,s!==r||p!==u||Lt.current||jr?(typeof c=="function"&&(gv(t,n,c,r),u=t.memoizedState),(s=jr||Z1(t,n,s,r,p,u,l))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,FT(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:On(t.type,s),a.props=l,f=t.pendingProps,p=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=gn(u):(u=Mt(n)?qi:yt.current,u=da(t,u));var d=n.getDerivedStateFromProps;(c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==u)&&e_(t,a,r,u),jr=!1,p=t.memoizedState,a.state=p,Jc(t,r,a,i);var m=t.memoizedState;s!==f||p!==m||Lt.current||jr?(typeof d=="function"&&(gv(t,n,d,r),m=t.memoizedState),(l=jr||Z1(t,n,l,r,p,m,u)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=u,r=l):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return bv(e,t,n,r,o,i)}function bv(e,t,n,r,i,o){cx(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&V1(t,n,!1),Tr(e,t,o);r=t.stateNode,EN.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ha(t,e.child,null,o),t.child=ha(t,null,s,o)):Et(e,t,s,o),t.memoizedState=r.state,i&&V1(t,n,!0),t.child}function fx(e){var t=e.stateNode;t.pendingContext?q1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&q1(e,t.context,!1),Ng(e,t.containerInfo)}function s_(e,t,n,r,i){return pa(),Rg(i),t.flags|=256,Et(e,t,n,r),t.child}var Ev={dehydrated:null,treeContext:null,retryLane:0};function Sv(e){return{baseLanes:e,cachePool:null,transitions:null}}function dx(e,t,n){var r=t.pendingProps,i=Me.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Te(Me,i&1),e===null)return vv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=dd(a,r,0,null),e=Li(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Sv(n),t.memoizedState=Ev,e):qg(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return SN(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ti(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=ti(s,o):(o=Li(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Sv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Ev,r}return o=e.child,e=o.sibling,r=ti(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function qg(e,t){return t=dd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Rl(e,t,n,r){return r!==null&&Rg(r),ha(t,e.child,null,n),e=qg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SN(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Dp(Error(z(422))),Rl(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=dd({mode:"visible",children:r.children},i,0,null),o=Li(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&ha(t,e.child,null,a),t.child.memoizedState=Sv(a),t.memoizedState=Ev,o);if(!(t.mode&1))return Rl(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(z(419)),r=Dp(o,r,void 0),Rl(e,t,a,r)}if(s=(a&e.childLanes)!==0,Dt||s){if(r=et,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Sr(e,i),Mn(r,e,i,-1))}return Xg(),r=Dp(Error(z(421))),Rl(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=NN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Qt=Kr(i.nextSibling),Kt=t,De=!0,An=null,e!==null&&(sn[un++]=mr,sn[un++]=gr,sn[un++]=Vi,mr=e.id,gr=e.overflow,Vi=t),t=qg(t,r.children),t.flags|=4096,t)}function u_(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mv(e.return,t,n)}function Lp(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function px(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Et(e,t,r.children,n),r=Me.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&u_(e,n,t);else if(e.tag===19)u_(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Te(Me,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Lp(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Lp(t,!0,n,null,o);break;case"together":Lp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function TN(e,t,n){switch(t.tag){case 3:fx(t),pa();break;case 5:jT(t);break;case 1:Mt(t.type)&&Qc(t);break;case 4:Ng(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Te(Xc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Te(Me,Me.current&1),t.flags|=128,null):n&t.child.childLanes?dx(e,t,n):(Te(Me,Me.current&1),e=Tr(e,t,n),e!==null?e.sibling:null);Te(Me,Me.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return px(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Te(Me,Me.current),r)break;return null;case 22:case 23:return t.lanes=0,lx(e,t,n)}return Tr(e,t,n)}var hx,Tv,vx,mx;hx=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tv=function(){};vx=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ri(Zn.current);var o=null;switch(n){case"input":i=Wh(e,i),r=Wh(e,r),o=[];break;case"select":i=Fe({},i,{value:void 0}),r=Fe({},r,{value:void 0}),o=[];break;case"textarea":i=Yh(e,i),r=Yh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Vc)}Kh(n,r);var a;n=null;for(l in i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&i[l]!=null)if(l==="style"){var s=i[l];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Gs.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var u=r[l];if(s=i!=null?i[l]:void 0,r.hasOwnProperty(l)&&u!==s&&(u!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(l,n)),n=u;else l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(l,u)):l==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(l,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Gs.hasOwnProperty(l)?(u!=null&&l==="onScroll"&&Oe("scroll",e),o||s===u||(o=[])):(o=o||[]).push(l,u))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}};mx=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ka(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xN(e,t,n){var r=t.pendingProps;switch(Ag(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Mt(t.type)&&Wc(),ht(t),null;case 3:return r=t.stateNode,va(),Re(Lt),Re(yt),Fg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,An!==null&&(Iv(An),An=null))),Tv(e,t),ht(t),null;case 5:$g(t);var i=Ri(au.current);if(n=t.type,e!==null&&t.stateNode!=null)vx(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return ht(t),null}if(e=Ri(Zn.current),Cl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Qn]=t,r[iu]=o,e=(t.mode&1)!==0,n){case"dialog":Oe("cancel",r),Oe("close",r);break;case"iframe":case"object":case"embed":Oe("load",r);break;case"video":case"audio":for(i=0;i<vs.length;i++)Oe(vs[i],r);break;case"source":Oe("error",r);break;case"img":case"image":case"link":Oe("error",r),Oe("load",r);break;case"details":Oe("toggle",r);break;case"input":g1(r,o),Oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Oe("invalid",r);break;case"textarea":_1(r,o),Oe("invalid",r)}Kh(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&kl(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&kl(r.textContent,s,e),i=["children",""+s]):Gs.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Oe("scroll",r)}switch(n){case"input":_l(r),y1(r,o,!0);break;case"textarea":_l(r),w1(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Vc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=qS(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Qn]=t,e[iu]=r,hx(e,t,!1,!1),t.stateNode=e;e:{switch(a=Jh(n,r),n){case"dialog":Oe("cancel",e),Oe("close",e),i=r;break;case"iframe":case"object":case"embed":Oe("load",e),i=r;break;case"video":case"audio":for(i=0;i<vs.length;i++)Oe(vs[i],e);i=r;break;case"source":Oe("error",e),i=r;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),i=r;break;case"details":Oe("toggle",e),i=r;break;case"input":g1(e,r),i=Wh(e,r),Oe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Fe({},r,{value:void 0}),Oe("invalid",e);break;case"textarea":_1(e,r),i=Yh(e,r),Oe("invalid",e);break;default:i=r}Kh(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var u=s[o];o==="style"?QS(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&VS(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Ys(e,u):typeof u=="number"&&Ys(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Gs.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Oe("scroll",e):u!=null&&hg(e,o,u,a))}switch(n){case"input":_l(e),y1(e,r,!1);break;case"textarea":_l(e),w1(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Yo(e,!!r.multiple,o,!1):r.defaultValue!=null&&Yo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Vc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)mx(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=Ri(au.current),Ri(Zn.current),Cl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Qn]=t,(o=r.nodeValue!==n)&&(e=Kt,e!==null))switch(e.tag){case 3:kl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&kl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Qn]=t,t.stateNode=r}return ht(t),null;case 13:if(Re(Me),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(De&&Qt!==null&&t.mode&1&&!(t.flags&128))LT(),pa(),t.flags|=98560,o=!1;else if(o=Cl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(z(317));o[Qn]=t}else pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),o=!1}else An!==null&&(Iv(An),An=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Me.current&1?Xe===0&&(Xe=3):Xg())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return va(),Tv(e,t),e===null&&nu(t.stateNode.containerInfo),ht(t),null;case 10:return Dg(t.type._context),ht(t),null;case 17:return Mt(t.type)&&Wc(),ht(t),null;case 19:if(Re(Me),o=t.memoizedState,o===null)return ht(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Ka(o,!1);else{if(Xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Zc(e),a!==null){for(t.flags|=128,Ka(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Te(Me,Me.current&1|2),t.child}e=e.sibling}o.tail!==null&&He()>ga&&(t.flags|=128,r=!0,Ka(o,!1),t.lanes=4194304)}else{if(!r)if(e=Zc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ka(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!De)return ht(t),null}else 2*He()-o.renderingStartTime>ga&&n!==1073741824&&(t.flags|=128,r=!0,Ka(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=He(),t.sibling=null,n=Me.current,Te(Me,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return Yg(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?zt&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function ON(e,t){switch(Ag(t),t.tag){case 1:return Mt(t.type)&&Wc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(),Re(Lt),Re(yt),Fg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $g(t),null;case 13:if(Re(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Me),null;case 4:return va(),null;case 10:return Dg(t.type._context),null;case 22:case 23:return Yg(),null;case 24:return null;default:return null}}var Pl=!1,gt=!1,kN=typeof WeakSet=="function"?WeakSet:Set,X=null;function qo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Be(e,t,r)}else n.current=null}function xv(e,t,n){try{n()}catch(r){Be(e,t,r)}}var l_=!1;function CN(e,t){if(uv=Hc,e=bT(),kg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,u=-1,l=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(u=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++l===i&&(s=a),p===o&&++c===r&&(u=a),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(lv={focusedElem:e,selectionRange:n},Hc=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var _=m.memoizedProps,b=m.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?_:On(t.type,_),b);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(h){Be(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return m=l_,l_=!1,m}function Ss(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&xv(t,n,o)}i=i.next}while(i!==r)}}function cd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ov(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gx(e){var t=e.alternate;t!==null&&(e.alternate=null,gx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qn],delete t[iu],delete t[dv],delete t[cN],delete t[fN])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function yx(e){return e.tag===5||e.tag===3||e.tag===4}function c_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Vc));else if(r!==4&&(e=e.child,e!==null))for(kv(e,t,n),e=e.sibling;e!==null;)kv(e,t,n),e=e.sibling}function Cv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Cv(e,t,n),e=e.sibling;e!==null;)Cv(e,t,n),e=e.sibling}var it=null,kn=!1;function Dr(e,t,n){for(n=n.child;n!==null;)_x(e,t,n),n=n.sibling}function _x(e,t,n){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(nd,n)}catch{}switch(n.tag){case 5:gt||qo(n,t);case 6:var r=it,i=kn;it=null,Dr(e,t,n),it=r,kn=i,it!==null&&(kn?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(kn?(e=it,n=n.stateNode,e.nodeType===8?kp(e.parentNode,n):e.nodeType===1&&kp(e,n),Zs(e)):kp(it,n.stateNode));break;case 4:r=it,i=kn,it=n.stateNode.containerInfo,kn=!0,Dr(e,t,n),it=r,kn=i;break;case 0:case 11:case 14:case 15:if(!gt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&xv(n,t,a),i=i.next}while(i!==r)}Dr(e,t,n);break;case 1:if(!gt&&(qo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Be(n,t,s)}Dr(e,t,n);break;case 21:Dr(e,t,n);break;case 22:n.mode&1?(gt=(r=gt)||n.memoizedState!==null,Dr(e,t,n),gt=r):Dr(e,t,n);break;default:Dr(e,t,n)}}function f_(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kN),t.forEach(function(r){var i=$N.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:it=s.stateNode,kn=!1;break e;case 3:it=s.stateNode.containerInfo,kn=!0;break e;case 4:it=s.stateNode.containerInfo,kn=!0;break e}s=s.return}if(it===null)throw Error(z(160));_x(o,a,i),it=null,kn=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(l){Be(i,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wx(t,e),t=t.sibling}function wx(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xn(t,e),Bn(e),r&4){try{Ss(3,e,e.return),cd(3,e)}catch(_){Be(e,e.return,_)}try{Ss(5,e,e.return)}catch(_){Be(e,e.return,_)}}break;case 1:xn(t,e),Bn(e),r&512&&n!==null&&qo(n,n.return);break;case 5:if(xn(t,e),Bn(e),r&512&&n!==null&&qo(n,n.return),e.flags&32){var i=e.stateNode;try{Ys(i,"")}catch(_){Be(e,e.return,_)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&HS(i,o),Jh(s,a);var l=Jh(s,o);for(a=0;a<u.length;a+=2){var c=u[a],f=u[a+1];c==="style"?QS(i,f):c==="dangerouslySetInnerHTML"?VS(i,f):c==="children"?Ys(i,f):hg(i,c,f,l)}switch(s){case"input":Qh(i,o);break;case"textarea":zS(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?Yo(i,!!o.multiple,d,!1):p!==!!o.multiple&&(o.defaultValue!=null?Yo(i,!!o.multiple,o.defaultValue,!0):Yo(i,!!o.multiple,o.multiple?[]:"",!1))}i[iu]=o}catch(_){Be(e,e.return,_)}}break;case 6:if(xn(t,e),Bn(e),r&4){if(e.stateNode===null)throw Error(z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Be(e,e.return,_)}}break;case 3:if(xn(t,e),Bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Zs(t.containerInfo)}catch(_){Be(e,e.return,_)}break;case 4:xn(t,e),Bn(e);break;case 13:xn(t,e),Bn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Qg=He())),r&4&&f_(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(gt=(l=gt)||c,xn(t,e),gt=l):xn(t,e),Bn(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(X=e,c=e.child;c!==null;){for(f=X=c;X!==null;){switch(p=X,d=p.child,p.tag){case 0:case 11:case 14:case 15:Ss(4,p,p.return);break;case 1:qo(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(_){Be(r,n,_)}}break;case 5:qo(p,p.return);break;case 22:if(p.memoizedState!==null){p_(f);continue}}d!==null?(d.return=p,X=d):p_(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,l?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,u=f.memoizedProps.style,a=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=WS("display",a))}catch(_){Be(e,e.return,_)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=l?"":f.memoizedProps}catch(_){Be(e,e.return,_)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xn(t,e),Bn(e),r&4&&f_(e);break;case 21:break;default:xn(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(yx(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ys(i,""),r.flags&=-33);var o=c_(e);Cv(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=c_(e);kv(e,s,a);break;default:throw Error(z(161))}}catch(u){Be(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function AN(e,t,n){X=e,bx(e)}function bx(e,t,n){for(var r=(e.mode&1)!==0;X!==null;){var i=X,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Pl;if(!a){var s=i.alternate,u=s!==null&&s.memoizedState!==null||gt;s=Pl;var l=gt;if(Pl=a,(gt=u)&&!l)for(X=i;X!==null;)a=X,u=a.child,a.tag===22&&a.memoizedState!==null?h_(i):u!==null?(u.return=a,X=u):h_(i);for(;o!==null;)X=o,bx(o),o=o.sibling;X=i,Pl=s,gt=l}d_(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,X=o):d_(e)}}function d_(e){for(;X!==null;){var t=X;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:gt||cd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!gt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:On(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&X1(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}X1(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Zs(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}gt||t.flags&512&&Ov(t)}catch(p){Be(t,t.return,p)}}if(t===e){X=null;break}if(n=t.sibling,n!==null){n.return=t.return,X=n;break}X=t.return}}function p_(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var n=t.sibling;if(n!==null){n.return=t.return,X=n;break}X=t.return}}function h_(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cd(4,t)}catch(u){Be(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){Be(t,i,u)}}var o=t.return;try{Ov(t)}catch(u){Be(t,o,u)}break;case 5:var a=t.return;try{Ov(t)}catch(u){Be(t,a,u)}}}catch(u){Be(t,t.return,u)}if(t===e){X=null;break}var s=t.sibling;if(s!==null){s.return=t.return,X=s;break}X=t.return}}var RN=Math.ceil,nf=kr.ReactCurrentDispatcher,Vg=kr.ReactCurrentOwner,pn=kr.ReactCurrentBatchConfig,de=0,et=null,Ve=null,ut=0,zt=0,Vo=ci(0),Xe=0,cu=null,Qi=0,fd=0,Wg=0,Ts=null,It=null,Qg=0,ga=1/0,pr=null,rf=!1,Av=null,Zr=null,Il=!1,Vr=null,of=0,xs=0,Rv=null,pc=-1,hc=0;function xt(){return de&6?He():pc!==-1?pc:pc=He()}function ei(e){return e.mode&1?de&2&&ut!==0?ut&-ut:pN.transition!==null?(hc===0&&(hc=oT()),hc):(e=ge,e!==0||(e=window.event,e=e===void 0?16:dT(e.type)),e):1}function Mn(e,t,n,r){if(50<xs)throw xs=0,Rv=null,Error(z(185));Hu(e,n,r),(!(de&2)||e!==et)&&(e===et&&(!(de&2)&&(fd|=n),Xe===4&&zr(e,ut)),Nt(e,r),n===1&&de===0&&!(t.mode&1)&&(ga=He()+500,sd&&fi()))}function Nt(e,t){var n=e.callbackNode;pM(e,t);var r=Bc(e,e===et?ut:0);if(r===0)n!==null&&S1(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&S1(n),t===1)e.tag===0?dN(v_.bind(null,e)):PT(v_.bind(null,e)),uN(function(){!(de&6)&&fi()}),n=null;else{switch(aT(r)){case 1:n=_g;break;case 4:n=rT;break;case 16:n=Uc;break;case 536870912:n=iT;break;default:n=Uc}n=Ax(n,Ex.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ex(e,t){if(pc=-1,hc=0,de&6)throw Error(z(327));var n=e.callbackNode;if(ea()&&e.callbackNode!==n)return null;var r=Bc(e,e===et?ut:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=af(e,r);else{t=r;var i=de;de|=2;var o=Tx();(et!==e||ut!==t)&&(pr=null,ga=He()+500,Di(e,t));do try{DN();break}catch(s){Sx(e,s)}while(!0);Ig(),nf.current=o,de=i,Ve!==null?t=0:(et=null,ut=0,t=Xe)}if(t!==0){if(t===2&&(i=rv(e),i!==0&&(r=i,t=Pv(e,i))),t===1)throw n=cu,Di(e,0),zr(e,r),Nt(e,He()),n;if(t===6)zr(e,r);else{if(i=e.current.alternate,!(r&30)&&!PN(i)&&(t=af(e,r),t===2&&(o=rv(e),o!==0&&(r=o,t=Pv(e,o))),t===1))throw n=cu,Di(e,0),zr(e,r),Nt(e,He()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:Ti(e,It,pr);break;case 3:if(zr(e,r),(r&130023424)===r&&(t=Qg+500-He(),10<t)){if(Bc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){xt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=fv(Ti.bind(null,e,It,pr),t);break}Ti(e,It,pr);break;case 4:if(zr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ln(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=He()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*RN(r/1960))-r,10<r){e.timeoutHandle=fv(Ti.bind(null,e,It,pr),r);break}Ti(e,It,pr);break;case 5:Ti(e,It,pr);break;default:throw Error(z(329))}}}return Nt(e,He()),e.callbackNode===n?Ex.bind(null,e):null}function Pv(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(Di(e,t).flags|=256),e=af(e,t),e!==2&&(t=It,It=n,t!==null&&Iv(t)),e}function Iv(e){It===null?It=e:It.push.apply(It,e)}function PN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Nn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function zr(e,t){for(t&=~Wg,t&=~fd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ln(t),r=1<<n;e[n]=-1,t&=~r}}function v_(e){if(de&6)throw Error(z(327));ea();var t=Bc(e,0);if(!(t&1))return Nt(e,He()),null;var n=af(e,t);if(e.tag!==0&&n===2){var r=rv(e);r!==0&&(t=r,n=Pv(e,r))}if(n===1)throw n=cu,Di(e,0),zr(e,t),Nt(e,He()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ti(e,It,pr),Nt(e,He()),null}function Gg(e,t){var n=de;de|=1;try{return e(t)}finally{de=n,de===0&&(ga=He()+500,sd&&fi())}}function Gi(e){Vr!==null&&Vr.tag===0&&!(de&6)&&ea();var t=de;de|=1;var n=pn.transition,r=ge;try{if(pn.transition=null,ge=1,e)return e()}finally{ge=r,pn.transition=n,de=t,!(de&6)&&fi()}}function Yg(){zt=Vo.current,Re(Vo)}function Di(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,sN(n)),Ve!==null)for(n=Ve.return;n!==null;){var r=n;switch(Ag(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wc();break;case 3:va(),Re(Lt),Re(yt),Fg();break;case 5:$g(r);break;case 4:va();break;case 13:Re(Me);break;case 19:Re(Me);break;case 10:Dg(r.type._context);break;case 22:case 23:Yg()}n=n.return}if(et=e,Ve=e=ti(e.current,null),ut=zt=t,Xe=0,cu=null,Wg=fd=Qi=0,It=Ts=null,Ai!==null){for(t=0;t<Ai.length;t++)if(n=Ai[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Ai=null}return e}function Sx(e,t){do{var n=Ve;try{if(Ig(),cc.current=tf,ef){for(var r=$e.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ef=!1}if(Wi=0,Ze=Ye=$e=null,Es=!1,su=0,Vg.current=null,n===null||n.return===null){Xe=1,cu=t,Ve=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=ut,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var l=u,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=n_(a);if(d!==null){d.flags&=-257,r_(d,a,s,o,t),d.mode&1&&t_(o,l,t),t=d,u=l;var m=t.updateQueue;if(m===null){var _=new Set;_.add(u),t.updateQueue=_}else m.add(u);break e}else{if(!(t&1)){t_(o,l,t),Xg();break e}u=Error(z(426))}}else if(De&&s.mode&1){var b=n_(a);if(b!==null){!(b.flags&65536)&&(b.flags|=256),r_(b,a,s,o,t),Rg(ma(u,s));break e}}o=u=ma(u,s),Xe!==4&&(Xe=2),Ts===null?Ts=[o]:Ts.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=ax(o,u,t);Y1(o,g);break e;case 1:s=u;var y=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Zr===null||!Zr.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var h=sx(o,s,t);Y1(o,h);break e}}o=o.return}while(o!==null)}Ox(n)}catch(w){t=w,Ve===n&&n!==null&&(Ve=n=n.return);continue}break}while(!0)}function Tx(){var e=nf.current;return nf.current=tf,e===null?tf:e}function Xg(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),et===null||!(Qi&268435455)&&!(fd&268435455)||zr(et,ut)}function af(e,t){var n=de;de|=2;var r=Tx();(et!==e||ut!==t)&&(pr=null,Di(e,t));do try{IN();break}catch(i){Sx(e,i)}while(!0);if(Ig(),de=n,nf.current=r,Ve!==null)throw Error(z(261));return et=null,ut=0,Xe}function IN(){for(;Ve!==null;)xx(Ve)}function DN(){for(;Ve!==null&&!iM();)xx(Ve)}function xx(e){var t=Cx(e.alternate,e,zt);e.memoizedProps=e.pendingProps,t===null?Ox(e):Ve=t,Vg.current=null}function Ox(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ON(n,t),n!==null){n.flags&=32767,Ve=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,Ve=null;return}}else if(n=xN(n,t,zt),n!==null){Ve=n;return}if(t=t.sibling,t!==null){Ve=t;return}Ve=t=e}while(t!==null);Xe===0&&(Xe=5)}function Ti(e,t,n){var r=ge,i=pn.transition;try{pn.transition=null,ge=1,LN(e,t,n,r)}finally{pn.transition=i,ge=r}return null}function LN(e,t,n,r){do ea();while(Vr!==null);if(de&6)throw Error(z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(hM(e,o),e===et&&(Ve=et=null,ut=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Il||(Il=!0,Ax(Uc,function(){return ea(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pn.transition,pn.transition=null;var a=ge;ge=1;var s=de;de|=4,Vg.current=null,CN(e,n),wx(n,e),eN(lv),Hc=!!uv,lv=uv=null,e.current=n,AN(n),oM(),de=s,ge=a,pn.transition=o}else e.current=n;if(Il&&(Il=!1,Vr=e,of=i),o=e.pendingLanes,o===0&&(Zr=null),uM(n.stateNode),Nt(e,He()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(rf)throw rf=!1,e=Av,Av=null,e;return of&1&&e.tag!==0&&ea(),o=e.pendingLanes,o&1?e===Rv?xs++:(xs=0,Rv=e):xs=0,fi(),null}function ea(){if(Vr!==null){var e=aT(of),t=pn.transition,n=ge;try{if(pn.transition=null,ge=16>e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,of=0,de&6)throw Error(z(331));var i=de;for(de|=4,X=e.current;X!==null;){var o=X,a=o.child;if(X.flags&16){var s=o.deletions;if(s!==null){for(var u=0;u<s.length;u++){var l=s[u];for(X=l;X!==null;){var c=X;switch(c.tag){case 0:case 11:case 15:Ss(8,c,o)}var f=c.child;if(f!==null)f.return=c,X=f;else for(;X!==null;){c=X;var p=c.sibling,d=c.return;if(gx(c),c===l){X=null;break}if(p!==null){p.return=d,X=p;break}X=d}}}var m=o.alternate;if(m!==null){var _=m.child;if(_!==null){m.child=null;do{var b=_.sibling;_.sibling=null,_=b}while(_!==null)}}X=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,X=a;else e:for(;X!==null;){if(o=X,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Ss(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,X=g;break e}X=o.return}}var y=e.current;for(X=y;X!==null;){a=X;var v=a.child;if(a.subtreeFlags&2064&&v!==null)v.return=a,X=v;else e:for(a=y;X!==null;){if(s=X,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:cd(9,s)}}catch(w){Be(s,s.return,w)}if(s===a){X=null;break e}var h=s.sibling;if(h!==null){h.return=s.return,X=h;break e}X=s.return}}if(de=i,fi(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(nd,e)}catch{}r=!0}return r}finally{ge=n,pn.transition=t}}return!1}function m_(e,t,n){t=ma(n,t),t=ax(e,t,1),e=Jr(e,t,1),t=xt(),e!==null&&(Hu(e,1,t),Nt(e,t))}function Be(e,t,n){if(e.tag===3)m_(e,e,n);else for(;t!==null;){if(t.tag===3){m_(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Zr===null||!Zr.has(r))){e=ma(n,e),e=sx(t,e,1),t=Jr(t,e,1),e=xt(),t!==null&&(Hu(t,1,e),Nt(t,e));break}}t=t.return}}function MN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xt(),e.pingedLanes|=e.suspendedLanes&n,et===e&&(ut&n)===n&&(Xe===4||Xe===3&&(ut&130023424)===ut&&500>He()-Qg?Di(e,0):Wg|=n),Nt(e,t)}function kx(e,t){t===0&&(e.mode&1?(t=El,El<<=1,!(El&130023424)&&(El=4194304)):t=1);var n=xt();e=Sr(e,t),e!==null&&(Hu(e,t,n),Nt(e,n))}function NN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kx(e,n)}function $N(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),kx(e,n)}var Cx;Cx=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)Dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Dt=!1,TN(e,t,n);Dt=!!(e.flags&131072)}else Dt=!1,De&&t.flags&1048576&&IT(t,Yc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;dc(e,t),e=t.pendingProps;var i=da(t,yt.current);Zo(t,n),i=Ug(null,t,r,e,i,n);var o=Bg();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(r)?(o=!0,Qc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Mg(t),i.updater=ld,t.stateNode=i,i._reactInternals=t,yv(t,r,e,n),t=bv(null,t,r,!0,o,n)):(t.tag=0,De&&o&&Cg(t),Et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(dc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jN(r),e=On(r,e),i){case 0:t=wv(null,t,r,e,n);break e;case 1:t=a_(null,t,r,e,n);break e;case 11:t=i_(null,t,r,e,n);break e;case 14:t=o_(null,t,r,On(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),wv(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),a_(e,t,r,i,n);case 3:e:{if(fx(t),e===null)throw Error(z(387));r=t.pendingProps,o=t.memoizedState,i=o.element,FT(e,t),Jc(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ma(Error(z(423)),t),t=s_(e,t,r,n,i);break e}else if(r!==i){i=ma(Error(z(424)),t),t=s_(e,t,r,n,i);break e}else for(Qt=Kr(t.stateNode.containerInfo.firstChild),Kt=t,De=!0,An=null,n=NT(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(pa(),r===i){t=Tr(e,t,n);break e}Et(e,t,r,n)}t=t.child}return t;case 5:return jT(t),e===null&&vv(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,cv(r,i)?a=null:o!==null&&cv(r,o)&&(t.flags|=32),cx(e,t),Et(e,t,a,n),t.child;case 6:return e===null&&vv(t),null;case 13:return dx(e,t,n);case 4:return Ng(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ha(t,null,r,n):Et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),i_(e,t,r,i,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Te(Xc,r._currentValue),r._currentValue=a,o!==null)if(Nn(o.value,a)){if(o.children===i.children&&!Lt.current){t=Tr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=wr(-1,n&-n),u.tag=2;var l=o.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?u.next=u:(u.next=c.next,c.next=u),l.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),mv(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(z(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),mv(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Zo(t,n),i=gn(i),r=r(i),t.flags|=1,Et(e,t,r,n),t.child;case 14:return r=t.type,i=On(r,t.pendingProps),i=On(r.type,i),o_(e,t,r,i,n);case 15:return ux(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:On(r,i),dc(e,t),t.tag=1,Mt(r)?(e=!0,Qc(t)):e=!1,Zo(t,n),ox(t,r,i),yv(t,r,i,n),bv(null,t,r,!0,e,n);case 19:return px(e,t,n);case 22:return lx(e,t,n)}throw Error(z(156,t.tag))};function Ax(e,t){return nT(e,t)}function FN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,n,r){return new FN(e,t,n,r)}function Kg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jN(e){if(typeof e=="function")return Kg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===mg)return 11;if(e===gg)return 14}return 2}function ti(e,t){var n=e.alternate;return n===null?(n=fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Kg(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mo:return Li(n.children,i,o,t);case vg:a=8,i|=8;break;case Hh:return e=fn(12,n,t,i|2),e.elementType=Hh,e.lanes=o,e;case zh:return e=fn(13,n,t,i),e.elementType=zh,e.lanes=o,e;case qh:return e=fn(19,n,t,i),e.elementType=qh,e.lanes=o,e;case jS:return dd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $S:a=10;break e;case FS:a=9;break e;case mg:a=11;break e;case gg:a=14;break e;case Fr:a=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=fn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Li(e,t,n,r){return e=fn(7,e,r,t),e.lanes=n,e}function dd(e,t,n,r){return e=fn(22,e,r,t),e.elementType=jS,e.lanes=n,e.stateNode={isHidden:!1},e}function Mp(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function Np(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function UN(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mp(0),this.expirationTimes=mp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Jg(e,t,n,r,i,o,a,s,u){return e=new UN(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=fn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mg(o),e}function BN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Rx(e){if(!e)return ai;e=e._reactInternals;e:{if(io(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(Mt(n))return RT(e,n,t)}return t}function Px(e,t,n,r,i,o,a,s,u){return e=Jg(n,r,!0,e,i,o,a,s,u),e.context=Rx(null),n=e.current,r=xt(),i=ei(n),o=wr(r,i),o.callback=t!=null?t:null,Jr(n,o,i),e.current.lanes=i,Hu(e,i,r),Nt(e,r),e}function pd(e,t,n,r){var i=t.current,o=xt(),a=ei(i);return n=Rx(n),t.context===null?t.context=n:t.pendingContext=n,t=wr(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Jr(i,t,a),e!==null&&(Mn(e,i,a,o),lc(e,i,a)),a}function sf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function g_(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zg(e,t){g_(e,t),(e=e.alternate)&&g_(e,t)}function HN(){return null}var Ix=typeof reportError=="function"?reportError:function(e){console.error(e)};function ey(e){this._internalRoot=e}hd.prototype.render=ey.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));pd(e,t,null,null)};hd.prototype.unmount=ey.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gi(function(){pd(null,e,null,null)}),t[Er]=null}};function hd(e){this._internalRoot=e}hd.prototype.unstable_scheduleHydration=function(e){if(e){var t=lT();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Hr.length&&t!==0&&t<Hr[n].priority;n++);Hr.splice(n,0,e),n===0&&fT(e)}};function ty(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function y_(){}function zN(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var l=sf(a);o.call(l)}}var a=Px(t,r,e,0,null,!1,!1,"",y_);return e._reactRootContainer=a,e[Er]=a.current,nu(e.nodeType===8?e.parentNode:e),Gi(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var l=sf(u);s.call(l)}}var u=Jg(e,0,!1,null,null,!1,!1,"",y_);return e._reactRootContainer=u,e[Er]=u.current,nu(e.nodeType===8?e.parentNode:e),Gi(function(){pd(t,u,n,r)}),u}function md(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var u=sf(a);s.call(u)}}pd(t,a,e,i)}else a=zN(n,t,e,i,r);return sf(a)}sT=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hs(t.pendingLanes);n!==0&&(wg(t,n|1),Nt(t,He()),!(de&6)&&(ga=He()+500,fi()))}break;case 13:Gi(function(){var r=Sr(e,1);if(r!==null){var i=xt();Mn(r,e,1,i)}}),Zg(e,1)}};bg=function(e){if(e.tag===13){var t=Sr(e,134217728);if(t!==null){var n=xt();Mn(t,e,134217728,n)}Zg(e,134217728)}};uT=function(e){if(e.tag===13){var t=ei(e),n=Sr(e,t);if(n!==null){var r=xt();Mn(n,e,t,r)}Zg(e,t)}};lT=function(){return ge};cT=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}};ev=function(e,t,n){switch(t){case"input":if(Qh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ad(r);if(!i)throw Error(z(90));BS(r),Qh(r,i)}}}break;case"textarea":zS(e,n);break;case"select":t=n.value,t!=null&&Yo(e,!!n.multiple,t,!1)}};XS=Gg;KS=Gi;var qN={usingClientEntryPoint:!1,Events:[qu,jo,ad,GS,YS,Gg]},Ja={findFiberByHostInstance:Ci,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},VN={bundleType:Ja.bundleType,version:Ja.version,rendererPackageName:Ja.rendererPackageName,rendererConfig:Ja.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:kr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=eT(e),e===null?null:e.stateNode},findFiberByHostInstance:Ja.findFiberByHostInstance||HN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{nd=Dl.inject(VN),Jn=Dl}catch{}}tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qN;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ty(t))throw Error(z(200));return BN(e,t,null,n)};tn.createRoot=function(e,t){if(!ty(e))throw Error(z(299));var n=!1,r="",i=Ix;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Jg(e,1,!1,null,null,n,!1,r,i),e[Er]=t.current,nu(e.nodeType===8?e.parentNode:e),new ey(t)};tn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=eT(t),e=e===null?null:e.stateNode,e};tn.flushSync=function(e){return Gi(e)};tn.hydrate=function(e,t,n){if(!vd(t))throw Error(z(200));return md(null,e,t,!0,n)};tn.hydrateRoot=function(e,t,n){if(!ty(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Ix;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Px(t,null,e,1,n!=null?n:null,i,!1,o,a),e[Er]=t.current,nu(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new hd(t)};tn.render=function(e,t,n){if(!vd(t))throw Error(z(200));return md(null,e,t,!1,n)};tn.unmountComponentAtNode=function(e){if(!vd(e))throw Error(z(40));return e._reactRootContainer?(Gi(function(){md(null,null,e,!1,function(){e._reactRootContainer=null,e[Er]=null})}),!0):!1};tn.unstable_batchedUpdates=Gg;tn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vd(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return md(e,t,n,!1,r)};tn.version="18.3.1-next-f1338f8080-20240426";function Dx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dx)}catch(e){console.error(e)}}Dx(),DS.exports=tn;var Lx=DS.exports;const wX=ft(Lx);var Mx={exports:{}},Nx={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ya=N;function WN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var QN=typeof Object.is=="function"?Object.is:WN,GN=ya.useState,YN=ya.useEffect,XN=ya.useLayoutEffect,KN=ya.useDebugValue;function JN(e,t){var n=t(),r=GN({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return XN(function(){i.value=n,i.getSnapshot=t,$p(i)&&o({inst:i})},[e,n,t]),YN(function(){return $p(i)&&o({inst:i}),e(function(){$p(i)&&o({inst:i})})},[e]),KN(n),n}function $p(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!QN(e,n)}catch{return!0}}function ZN(e,t){return t()}var e$=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ZN:JN;Nx.useSyncExternalStore=ya.useSyncExternalStore!==void 0?ya.useSyncExternalStore:e$;Mx.exports=Nx;var $x=Mx.exports;const ny=$x.useSyncExternalStore,__=N.createContext(void 0),Fx=N.createContext(!1);function jx(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=__),window.ReactQueryClientContext):__)}const ry=({context:e}={})=>{const t=N.useContext(jx(e,N.useContext(Fx)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},bX=({client:e,children:t,context:n,contextSharing:r=!1})=>{N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=jx(n,r);return N.createElement(Fx.Provider,{value:!n&&r},N.createElement(i.Provider,{value:e},t))},Ux=N.createContext(!1),Bx=()=>N.useContext(Ux);Ux.Provider;function t$(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const n$=N.createContext(t$()),Hx=()=>N.useContext(n$);function zx(e,t){return typeof e=="function"?e(...t):!!e}const qx=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Vx=e=>{N.useEffect(()=>{e.clearReset()},[e])},Wx=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&zx(n,[e.error,r]),Qx=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Gx=(e,t)=>e.isLoading&&e.isFetching&&!t,Dv=(e,t,n)=>(e==null?void 0:e.suspense)&&Gx(t,n),Lv=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function EX({queries:e,context:t}){const n=ry({context:t}),r=Bx(),i=Hx(),o=N.useMemo(()=>e.map(p=>{const d=n.defaultQueryOptions(p);return d._optimisticResults=r?"isRestoring":"optimistic",d}),[e,n,r]);o.forEach(p=>{Qx(p),qx(p,i)}),Vx(i);const[a]=N.useState(()=>new jL(n,o)),s=a.getOptimisticResult(o);ny(N.useCallback(p=>r?()=>{}:a.subscribe(Ae.batchCalls(p)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),N.useEffect(()=>{a.setQueries(o,{listeners:!1})},[o,a]);const l=s.some((p,d)=>Dv(o[d],p,r))?s.flatMap((p,d)=>{const m=o[d],_=a.getObservers()[d];if(m&&_){if(Dv(m,p,r))return Lv(m,_,i);Gx(p,r)&&Lv(m,_,i)}return[]}):[];if(l.length>0)throw Promise.all(l);const c=a.getQueries(),f=s.find((p,d)=>{var m,_;return Wx({result:p,errorResetBoundary:i,useErrorBoundary:(m=(_=o[d])==null?void 0:_.useErrorBoundary)!=null?m:!1,query:c[d]})});if(f!=null&&f.error)throw f.error;return s}function Yx(e,t){const n=ry({context:e.context}),r=Bx(),i=Hx(),o=n.defaultQueryOptions(e);o._optimisticResults=r?"isRestoring":"optimistic",o.onError&&(o.onError=Ae.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=Ae.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=Ae.batchCalls(o.onSettled)),Qx(o),qx(o,i),Vx(i);const[a]=N.useState(()=>new t(n,o)),s=a.getOptimisticResult(o);if(ny(N.useCallback(u=>{const l=r?()=>{}:a.subscribe(Ae.batchCalls(u));return a.updateResult(),l},[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),N.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),Dv(o,s,r))throw Lv(o,a,i);if(Wx({result:s,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return o.notifyOnChangeProps?s:a.trackResult(s)}function SX(e,t,n){const r=Do(e,t,n);return Yx(r,cg)}function TX(e,t,n){const r=TL(e,t,n),i=ry({context:r.context}),[o]=N.useState(()=>new BL(i,r));N.useEffect(()=>{o.setOptions(r)},[o,r]);const a=ny(N.useCallback(u=>o.subscribe(Ae.batchCalls(u)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),s=N.useCallback((u,l)=>{o.mutate(u,l).catch(r$)},[o]);if(a.error&&zx(o.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function r$(){}function xX(e,t,n){const r=Do(e,t,n);return Yx(r,UL)}const OX=function(){return null};function Xx(e,t){return function(){return e.apply(t,arguments)}}const{toString:i$}=Object.prototype,{getPrototypeOf:iy}=Object,gd=(e=>t=>{const n=i$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ar=e=>(e=e.toLowerCase(),t=>gd(t)===e),yd=e=>t=>typeof t===e,{isArray:Ma}=Array,fu=yd("undefined");function o$(e){return e!==null&&!fu(e)&&e.constructor!==null&&!fu(e.constructor)&&hn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Kx=ar("ArrayBuffer");function a$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kx(e.buffer),t}const s$=yd("string"),hn=yd("function"),Jx=yd("number"),_d=e=>e!==null&&typeof e=="object",u$=e=>e===!0||e===!1,mc=e=>{if(gd(e)!=="object")return!1;const t=iy(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},l$=ar("Date"),c$=ar("File"),f$=ar("Blob"),d$=ar("FileList"),p$=e=>_d(e)&&hn(e.pipe),h$=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hn(e.append)&&((t=gd(e))==="formdata"||t==="object"&&hn(e.toString)&&e.toString()==="[object FormData]"))},v$=ar("URLSearchParams"),m$=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ma(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function Zx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const eO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tO=e=>!fu(e)&&e!==eO;function Mv(){const{caseless:e}=tO(this)&&this||{},t={},n=(r,i)=>{const o=e&&Zx(t,i)||i;mc(t[o])&&mc(r)?t[o]=Mv(t[o],r):mc(r)?t[o]=Mv({},r):Ma(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Wu(arguments[r],n);return t}const g$=(e,t,n,{allOwnKeys:r}={})=>(Wu(t,(i,o)=>{n&&hn(i)?e[o]=Xx(i,n):e[o]=i},{allOwnKeys:r}),e),y$=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_$=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},w$=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&iy(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},b$=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},E$=e=>{if(!e)return null;if(Ma(e))return e;let t=e.length;if(!Jx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},S$=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&iy(Uint8Array)),T$=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},x$=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},O$=ar("HTMLFormElement"),k$=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),w_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),C$=ar("RegExp"),nO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wu(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},A$=e=>{nO(e,(t,n)=>{if(hn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(hn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},R$=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Ma(e)?r(e):r(String(e).split(t)),n},P$=()=>{},I$=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Fp="abcdefghijklmnopqrstuvwxyz",b_="0123456789",rO={DIGIT:b_,ALPHA:Fp,ALPHA_DIGIT:Fp+Fp.toUpperCase()+b_},D$=(e=16,t=rO.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function L$(e){return!!(e&&hn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const M$=e=>{const t=new Array(10),n=(r,i)=>{if(_d(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Ma(r)?[]:{};return Wu(r,(a,s)=>{const u=n(a,i+1);!fu(u)&&(o[s]=u)}),t[i]=void 0,o}}return r};return n(e,0)},N$=ar("AsyncFunction"),$$=e=>e&&(_d(e)||hn(e))&&hn(e.then)&&hn(e.catch),U={isArray:Ma,isArrayBuffer:Kx,isBuffer:o$,isFormData:h$,isArrayBufferView:a$,isString:s$,isNumber:Jx,isBoolean:u$,isObject:_d,isPlainObject:mc,isUndefined:fu,isDate:l$,isFile:c$,isBlob:f$,isRegExp:C$,isFunction:hn,isStream:p$,isURLSearchParams:v$,isTypedArray:S$,isFileList:d$,forEach:Wu,merge:Mv,extend:g$,trim:m$,stripBOM:y$,inherits:_$,toFlatObject:w$,kindOf:gd,kindOfTest:ar,endsWith:b$,toArray:E$,forEachEntry:T$,matchAll:x$,isHTMLForm:O$,hasOwnProperty:w_,hasOwnProp:w_,reduceDescriptors:nO,freezeMethods:A$,toObjectSet:R$,toCamelCase:k$,noop:P$,toFiniteNumber:I$,findKey:Zx,global:eO,isContextDefined:tO,ALPHABET:rO,generateString:D$,isSpecCompliantForm:L$,toJSONObject:M$,isAsyncFn:N$,isThenable:$$};function ce(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}U.inherits(ce,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const iO=ce.prototype,oO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oO[e]={value:e}});Object.defineProperties(ce,oO);Object.defineProperty(iO,"isAxiosError",{value:!0});ce.from=(e,t,n,r,i,o)=>{const a=Object.create(iO);return U.toFlatObject(e,a,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),ce.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const F$=null;function Nv(e){return U.isPlainObject(e)||U.isArray(e)}function aO(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function E_(e,t,n){return e?e.concat(t).map(function(i,o){return i=aO(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function j$(e){return U.isArray(e)&&!e.some(Nv)}const U$=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function wd(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,b){return!U.isUndefined(b[_])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(U.isDate(m))return m.toISOString();if(!u&&U.isBlob(m))throw new ce("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(m)||U.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,_,b){let g=m;if(m&&!b&&typeof m=="object"){if(U.endsWith(_,"{}"))_=r?_:_.slice(0,-2),m=JSON.stringify(m);else if(U.isArray(m)&&j$(m)||(U.isFileList(m)||U.endsWith(_,"[]"))&&(g=U.toArray(m)))return _=aO(_),g.forEach(function(v,h){!(U.isUndefined(v)||v===null)&&t.append(a===!0?E_([_],h,o):a===null?_:_+"[]",l(v))}),!1}return Nv(m)?!0:(t.append(E_(b,_,o),l(m)),!1)}const f=[],p=Object.assign(U$,{defaultVisitor:c,convertValue:l,isVisitable:Nv});function d(m,_){if(!U.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(m),U.forEach(m,function(g,y){(!(U.isUndefined(g)||g===null)&&i.call(t,g,U.isString(y)?y.trim():y,_,p))===!0&&d(g,_?_.concat(y):[y])}),f.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return d(e),t}function S_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oy(e,t){this._pairs=[],e&&wd(e,this,t)}const sO=oy.prototype;sO.append=function(t,n){this._pairs.push([t,n])};sO.toString=function(t){const n=t?function(r){return t.call(this,r,S_)}:S_;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function B$(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uO(e,t,n){if(!t)return e;const r=n&&n.encode||B$,i=n&&n.serialize;let o;if(i?o=i(t,n):o=U.isURLSearchParams(t)?t.toString():new oy(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class T_{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},H$=typeof URLSearchParams<"u"?URLSearchParams:oy,z$=typeof FormData<"u"?FormData:null,q$=typeof Blob<"u"?Blob:null,V$={isBrowser:!0,classes:{URLSearchParams:H$,FormData:z$,Blob:q$},protocols:["http","https","file","blob","url","data"]},cO=typeof window<"u"&&typeof document<"u",W$=(e=>cO&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Q$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",G$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cO,hasStandardBrowserEnv:W$,hasStandardBrowserWebWorkerEnv:Q$},Symbol.toStringTag,{value:"Module"})),Gn={...G$,...V$};function Y$(e,t){return wd(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Gn.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function X$(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function K$(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function fO(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=o>=n.length;return a=!a&&U.isArray(i)?i.length:a,u?(U.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!U.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&U.isArray(i[a])&&(i[a]=K$(i[a])),!s)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,i)=>{t(X$(r),i,n,0)}),n}return null}function J$(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qu={transitional:lO,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=U.isObject(t);if(o&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return i?JSON.stringify(fO(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Y$(t,this.formSerializer).toString();if((s=U.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return wd(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),J$(t)):t}],transformResponse:[function(t){const n=this.transitional||Qu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&U.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ce.from(s,ce.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{Qu.headers[e]={}});const Z$=U.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"]),e5=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Z$[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},x_=Symbol("internals");function Za(e){return e&&String(e).trim().toLowerCase()}function gc(e){return e===!1||e==null?e:U.isArray(e)?e.map(gc):String(e)}function t5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const n5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jp(e,t,n,r,i){if(U.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function r5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function i5(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let vn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,u,l){const c=Za(u);if(!c)throw new Error("header name must be a non-empty string");const f=U.findKey(i,c);(!f||i[f]===void 0||l===!0||l===void 0&&i[f]!==!1)&&(i[f||u]=gc(s))}const a=(s,u)=>U.forEach(s,(l,c)=>o(l,c,u));return U.isPlainObject(t)||t instanceof this.constructor?a(t,n):U.isString(t)&&(t=t.trim())&&!n5(t)?a(e5(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Za(t),t){const r=U.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return t5(i);if(U.isFunction(n))return n.call(this,i,r);if(U.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Za(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Za(a),a){const s=U.findKey(r,a);s&&(!n||jp(r,r[s],s,n))&&(delete r[s],i=!0)}}return U.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||jp(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return U.forEach(this,(i,o)=>{const a=U.findKey(r,o);if(a){n[a]=gc(i),delete n[o];return}const s=t?r5(o):String(o).trim();s!==o&&delete n[o],n[s]=gc(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[x_]=this[x_]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Za(a);r[s]||(i5(i,a),r[s]=!0)}return U.isArray(t)?t.forEach(o):o(t),this}};vn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);U.reduceDescriptors(vn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});U.freezeMethods(vn);function Up(e,t){const n=this||Qu,r=t||n,i=vn.from(r.headers);let o=r.data;return U.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function dO(e){return!!(e&&e.__CANCEL__)}function Gu(e,t,n){ce.call(this,e==null?"canceled":e,ce.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Gu,ce,{__CANCEL__:!0});function o5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const a5=Gn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];U.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),U.isString(r)&&a.push("path="+r),U.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function s5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function u5(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pO(e,t){return e&&!s5(t)?u5(e,t):t}const l5=Gn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=U.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function c5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function f5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),c=r[o];a||(a=l),n[i]=u,r[i]=l;let f=o,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const d=c&&l-c;return d?Math.round(p*1e3/d):void 0}}function O_(e,t){let n=0;const r=f5(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s),l=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&l?(a-o)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const d5=typeof XMLHttpRequest<"u",p5=d5&&function(e){return new Promise(function(n,r){let i=e.data;const o=vn.from(e.headers).normalize();let{responseType:a,withXSRFToken:s}=e,u;function l(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(U.isFormData(i)){if(Gn.hasStandardBrowserEnv||Gn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((c=o.getContentType())!==!1){const[_,...b]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];o.setContentType([_||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(_+":"+b))}const p=pO(e.baseURL,e.url);f.open(e.method.toUpperCase(),uO(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function d(){if(!f)return;const _=vn.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:_,config:e,request:f};o5(function(v){n(v),l()},function(v){r(v),l()},g),f=null}if("onloadend"in f?f.onloadend=d:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(d)},f.onabort=function(){f&&(r(new ce("Request aborted",ce.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new ce("Network Error",ce.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||lO;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new ce(b,g.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,f)),f=null},Gn.hasStandardBrowserEnv&&(s&&U.isFunction(s)&&(s=s(e)),s||s!==!1&&l5(p))){const _=e.xsrfHeaderName&&e.xsrfCookieName&&a5.read(e.xsrfCookieName);_&&o.set(e.xsrfHeaderName,_)}i===void 0&&o.setContentType(null),"setRequestHeader"in f&&U.forEach(o.toJSON(),function(b,g){f.setRequestHeader(g,b)}),U.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",O_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",O_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=_=>{f&&(r(!_||_.type?new Gu(null,e,f):_),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const m=c5(p);if(m&&Gn.protocols.indexOf(m)===-1){r(new ce("Unsupported protocol "+m+":",ce.ERR_BAD_REQUEST,e));return}f.send(i||null)})},$v={http:F$,xhr:p5};U.forEach($v,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k_=e=>`- ${e}`,h5=e=>U.isFunction(e)||e===null||e===!1,hO={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!h5(n)&&(r=$v[(a=String(n)).toLowerCase()],r===void 0))throw new ce(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
`+o.map(k_).join(`
`):" "+k_(o[0]):"as no adapter specified";throw new ce("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:$v};function Bp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gu(null,e)}function C_(e){return Bp(e),e.headers=vn.from(e.headers),e.data=Up.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),hO.getAdapter(e.adapter||Qu.adapter)(e).then(function(r){return Bp(e),r.data=Up.call(e,e.transformResponse,r),r.headers=vn.from(r.headers),r},function(r){return dO(r)||(Bp(e),r&&r.response&&(r.response.data=Up.call(e,e.transformResponse,r.response),r.response.headers=vn.from(r.response.headers))),Promise.reject(r)})}const A_=e=>e instanceof vn?{...e}:e;function _a(e,t){t=t||{};const n={};function r(l,c,f){return U.isPlainObject(l)&&U.isPlainObject(c)?U.merge.call({caseless:f},l,c):U.isPlainObject(c)?U.merge({},c):U.isArray(c)?c.slice():c}function i(l,c,f){if(U.isUndefined(c)){if(!U.isUndefined(l))return r(void 0,l,f)}else return r(l,c,f)}function o(l,c){if(!U.isUndefined(c))return r(void 0,c)}function a(l,c){if(U.isUndefined(c)){if(!U.isUndefined(l))return r(void 0,l)}else return r(void 0,c)}function s(l,c,f){if(f in t)return r(l,c);if(f in e)return r(void 0,l)}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,c)=>i(A_(l),A_(c),!0)};return U.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||i,p=f(e[c],t[c],c);U.isUndefined(p)&&f!==s||(n[c]=p)}),n}const vO="1.6.8",ay={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ay[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const R_={};ay.transitional=function(t,n,r){function i(o,a){return"[Axios v"+vO+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new ce(i(a," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED);return n&&!R_[a]&&(R_[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function v5(e,t,n){if(typeof e!="object")throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],u=s===void 0||a(s,o,e);if(u!==!0)throw new ce("option "+o+" must be "+u,ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ce("Unknown option "+o,ce.ERR_BAD_OPTION)}}const Fv={assertOptions:v5,validators:ay},Lr=Fv.validators;let Mi=class{constructor(t){this.defaults=t,this.interceptors={request:new T_,response:new T_}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_a(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Fv.assertOptions(r,{silentJSONParsing:Lr.transitional(Lr.boolean),forcedJSONParsing:Lr.transitional(Lr.boolean),clarifyTimeoutError:Lr.transitional(Lr.boolean)},!1),i!=null&&(U.isFunction(i)?n.paramsSerializer={serialize:i}:Fv.assertOptions(i,{encode:Lr.function,serialize:Lr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&U.merge(o.common,o[n.method]);o&&U.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=vn.concat(a,o);const s=[];let u=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(u=u&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const l=[];this.interceptors.response.forEach(function(_){l.push(_.fulfilled,_.rejected)});let c,f=0,p;if(!u){const m=[C_.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,l),p=m.length,c=Promise.resolve(n);f<p;)c=c.then(m[f++],m[f++]);return c}p=s.length;let d=n;for(f=0;f<p;){const m=s[f++],_=s[f++];try{d=m(d)}catch(b){_.call(this,b);break}}try{c=C_.call(this,d)}catch(m){return Promise.reject(m)}for(f=0,p=l.length;f<p;)c=c.then(l[f++],l[f++]);return c}getUri(t){t=_a(this.defaults,t);const n=pO(t.baseURL,t.url);return uO(n,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){Mi.prototype[t]=function(n,r){return this.request(_a(r||{},{method:t,url:n,data:(r||{}).data}))}});U.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(_a(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Mi.prototype[t]=n(),Mi.prototype[t+"Form"]=n(!0)});let m5=class mO{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Gu(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new mO(function(i){t=i}),cancel:t}}};function g5(e){return function(n){return e.apply(null,n)}}function y5(e){return U.isObject(e)&&e.isAxiosError===!0}const jv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jv).forEach(([e,t])=>{jv[t]=e});function gO(e){const t=new Mi(e),n=Xx(Mi.prototype.request,t);return U.extend(n,Mi.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return gO(_a(e,i))},n}const We=gO(Qu);We.Axios=Mi;We.CanceledError=Gu;We.CancelToken=m5;We.isCancel=dO;We.VERSION=vO;We.toFormData=wd;We.AxiosError=ce;We.Cancel=We.CanceledError;We.all=function(t){return Promise.all(t)};We.spread=g5;We.isAxiosError=y5;We.mergeConfig=_a;We.AxiosHeaders=vn;We.formToJSON=e=>fO(U.isHTMLForm(e)?new FormData(e):e);We.getAdapter=hO.getAdapter;We.HttpStatusCode=jv;We.default=We;const{Axios:AX,AxiosError:RX,CanceledError:PX,isCancel:IX,CancelToken:DX,VERSION:LX,all:MX,Cancel:NX,isAxiosError:$X,spread:FX,toFormData:jX,AxiosHeaders:UX,HttpStatusCode:BX,formToJSON:HX,getAdapter:zX,mergeConfig:qX}=We;var _5,P_=Lx;_5=P_.createRoot,P_.hydrateRoot;function Uv(e,t){return Uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Uv(e,t)}function rr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Uv(e,t)}var yO={exports:{}},w5="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",b5=w5,E5=b5;function _O(){}function wO(){}wO.resetWarningCache=_O;var S5=function(){function e(r,i,o,a,s,u){if(u!==E5){var l=new 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 l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wO,resetWarningCache:_O};return n.PropTypes=n,n};yO.exports=S5();var T5=yO.exports;const be=ft(T5);function Ll(e){return e.charAt(0)==="/"}function Hp(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function x5(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&Ll(e),o=t&&Ll(t),a=i||o;if(e&&Ll(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s;if(r.length){var u=r[r.length-1];s=u==="."||u===".."||u===""}else s=!1;for(var l=0,c=r.length;c>=0;c--){var f=r[c];f==="."?Hp(r,c):f===".."?(Hp(r,c),l++):l&&(Hp(r,c),l--)}if(!a)for(;l--;l)r.unshift("..");a&&r[0]!==""&&(!r[0]||!Ll(r[0]))&&r.unshift("");var p=r.join("/");return s&&p.substr(-1)!=="/"&&(p+="/"),p}function I_(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function yc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(i,o){return yc(i,t[o])});if(typeof e=="object"||typeof t=="object"){var n=I_(e),r=I_(t);return n!==e||r!==t?yc(n,r):Object.keys(Object.assign({},e,t)).every(function(i){return yc(e[i],t[i])})}return!1}var O5="Invariant failed";function di(e,t){throw new Error(O5)}function Os(e){return e.charAt(0)==="/"?e:"/"+e}function D_(e){return e.charAt(0)==="/"?e.substr(1):e}function k5(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function bO(e,t){return k5(e,t)?e.substr(t.length):e}function EO(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function C5(e){var t=e||"/",n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return o!==-1&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function Pt(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Tt(e,t,n,r){var i;typeof e=="string"?(i=C5(e),i.state=t):(i=lt({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=x5(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function A5(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&yc(e.state,t.state)}function sy(){var e=null;function t(a){return e=a,function(){e===a&&(e=null)}}function n(a,s,u,l){if(e!=null){var c=typeof e=="function"?e(a,s):e;typeof c=="string"?typeof u=="function"?u(c,l):l(!0):l(c!==!1)}else l(!0)}var r=[];function i(a){var s=!0;function u(){s&&a.apply(void 0,arguments)}return r.push(u),function(){s=!1,r=r.filter(function(l){return l!==u})}}function o(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r.forEach(function(l){return l.apply(void 0,s)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:i,notifyListeners:o}}var SO=!!(typeof window<"u"&&window.document&&window.document.createElement);function TO(e,t){t(window.confirm(e))}function R5(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function P5(){return window.navigator.userAgent.indexOf("Trident")===-1}function I5(){return window.navigator.userAgent.indexOf("Firefox")===-1}function D5(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var L_="popstate",M_="hashchange";function N_(){try{return window.history.state||{}}catch{return{}}}function L5(e){e===void 0&&(e={}),SO||di();var t=window.history,n=R5(),r=!P5(),i=e,o=i.forceRefresh,a=o===void 0?!1:o,s=i.getUserConfirmation,u=s===void 0?TO:s,l=i.keyLength,c=l===void 0?6:l,f=e.basename?EO(Os(e.basename)):"";function p(C){var A=C||{},j=A.key,M=A.state,H=window.location,I=H.pathname,P=H.search,W=H.hash,Z=I+P+W;return f&&(Z=bO(Z,f)),Tt(Z,M,j)}function d(){return Math.random().toString(36).substr(2,c)}var m=sy();function _(C){lt(k,C),k.length=t.length,m.notifyListeners(k.location,k.action)}function b(C){D5(C)||v(p(C.state))}function g(){v(p(N_()))}var y=!1;function v(C){if(y)y=!1,_();else{var A="POP";m.confirmTransitionTo(C,A,u,function(j){j?_({action:A,location:C}):h(C)})}}function h(C){var A=k.location,j=E.indexOf(A.key);j===-1&&(j=0);var M=E.indexOf(C.key);M===-1&&(M=0);var H=j-M;H&&(y=!0,x(H))}var w=p(N_()),E=[w.key];function S(C){return f+Pt(C)}function T(C,A){var j="PUSH",M=Tt(C,A,d(),k.location);m.confirmTransitionTo(M,j,u,function(H){if(H){var I=S(M),P=M.key,W=M.state;if(n)if(t.pushState({key:P,state:W},null,I),a)window.location.href=I;else{var Z=E.indexOf(k.location.key),ne=E.slice(0,Z+1);ne.push(M.key),E=ne,_({action:j,location:M})}else window.location.href=I}})}function O(C,A){var j="REPLACE",M=Tt(C,A,d(),k.location);m.confirmTransitionTo(M,j,u,function(H){if(H){var I=S(M),P=M.key,W=M.state;if(n)if(t.replaceState({key:P,state:W},null,I),a)window.location.replace(I);else{var Z=E.indexOf(k.location.key);Z!==-1&&(E[Z]=M.key),_({action:j,location:M})}else window.location.replace(I)}})}function x(C){t.go(C)}function D(){x(-1)}function V(){x(1)}var B=0;function F(C){B+=C,B===1&&C===1?(window.addEventListener(L_,b),r&&window.addEventListener(M_,g)):B===0&&(window.removeEventListener(L_,b),r&&window.removeEventListener(M_,g))}var L=!1;function q(C){C===void 0&&(C=!1);var A=m.setPrompt(C);return L||(F(1),L=!0),function(){return L&&(L=!1,F(-1)),A()}}function R(C){var A=m.appendListener(C);return F(1),function(){F(-1),A()}}var k={length:t.length,action:"POP",location:w,createHref:S,push:T,replace:O,go:x,goBack:D,goForward:V,block:q,listen:R};return k}var $_="hashchange",M5={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+D_(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:D_,decodePath:Os},slash:{encodePath:Os,decodePath:Os}};function xO(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function es(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function N5(e){window.location.hash=e}function zp(e){window.location.replace(xO(window.location.href)+"#"+e)}function $5(e){e===void 0&&(e={}),SO||di();var t=window.history;I5();var n=e,r=n.getUserConfirmation,i=r===void 0?TO:r,o=n.hashType,a=o===void 0?"slash":o,s=e.basename?EO(Os(e.basename)):"",u=M5[a],l=u.encodePath,c=u.decodePath;function f(){var A=c(es());return s&&(A=bO(A,s)),Tt(A)}var p=sy();function d(A){lt(C,A),C.length=t.length,p.notifyListeners(C.location,C.action)}var m=!1,_=null;function b(A,j){return A.pathname===j.pathname&&A.search===j.search&&A.hash===j.hash}function g(){var A=es(),j=l(A);if(A!==j)zp(j);else{var M=f(),H=C.location;if(!m&&b(H,M)||_===Pt(M))return;_=null,y(M)}}function y(A){if(m)m=!1,d();else{var j="POP";p.confirmTransitionTo(A,j,i,function(M){M?d({action:j,location:A}):v(A)})}}function v(A){var j=C.location,M=S.lastIndexOf(Pt(j));M===-1&&(M=0);var H=S.lastIndexOf(Pt(A));H===-1&&(H=0);var I=M-H;I&&(m=!0,D(I))}var h=es(),w=l(h);h!==w&&zp(w);var E=f(),S=[Pt(E)];function T(A){var j=document.querySelector("base"),M="";return j&&j.getAttribute("href")&&(M=xO(window.location.href)),M+"#"+l(s+Pt(A))}function O(A,j){var M="PUSH",H=Tt(A,void 0,void 0,C.location);p.confirmTransitionTo(H,M,i,function(I){if(I){var P=Pt(H),W=l(s+P),Z=es()!==W;if(Z){_=P,N5(W);var ne=S.lastIndexOf(Pt(C.location)),oe=S.slice(0,ne+1);oe.push(P),S=oe,d({action:M,location:H})}else d()}})}function x(A,j){var M="REPLACE",H=Tt(A,void 0,void 0,C.location);p.confirmTransitionTo(H,M,i,function(I){if(I){var P=Pt(H),W=l(s+P),Z=es()!==W;Z&&(_=P,zp(W));var ne=S.indexOf(Pt(C.location));ne!==-1&&(S[ne]=P),d({action:M,location:H})}})}function D(A){t.go(A)}function V(){D(-1)}function B(){D(1)}var F=0;function L(A){F+=A,F===1&&A===1?window.addEventListener($_,g):F===0&&window.removeEventListener($_,g)}var q=!1;function R(A){A===void 0&&(A=!1);var j=p.setPrompt(A);return q||(L(1),q=!0),function(){return q&&(q=!1,L(-1)),j()}}function k(A){var j=p.appendListener(A);return L(1),function(){L(-1),j()}}var C={length:t.length,action:"POP",location:E,createHref:T,push:O,replace:x,go:D,goBack:V,goForward:B,block:R,listen:k};return C}function F_(e,t,n){return Math.min(Math.max(e,t),n)}function F5(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=r===void 0?["/"]:r,o=t.initialIndex,a=o===void 0?0:o,s=t.keyLength,u=s===void 0?6:s,l=sy();function c(T){lt(S,T),S.length=S.entries.length,l.notifyListeners(S.location,S.action)}function f(){return Math.random().toString(36).substr(2,u)}var p=F_(a,0,i.length-1),d=i.map(function(T){return typeof T=="string"?Tt(T,void 0,f()):Tt(T,void 0,T.key||f())}),m=Pt;function _(T,O){var x="PUSH",D=Tt(T,O,f(),S.location);l.confirmTransitionTo(D,x,n,function(V){if(V){var B=S.index,F=B+1,L=S.entries.slice(0);L.length>F?L.splice(F,L.length-F,D):L.push(D),c({action:x,location:D,index:F,entries:L})}})}function b(T,O){var x="REPLACE",D=Tt(T,O,f(),S.location);l.confirmTransitionTo(D,x,n,function(V){V&&(S.entries[S.index]=D,c({action:x,location:D}))})}function g(T){var O=F_(S.index+T,0,S.entries.length-1),x="POP",D=S.entries[O];l.confirmTransitionTo(D,x,n,function(V){V?c({action:x,location:D,index:O}):c()})}function y(){g(-1)}function v(){g(1)}function h(T){var O=S.index+T;return O>=0&&O<S.entries.length}function w(T){return T===void 0&&(T=!1),l.setPrompt(T)}function E(T){return l.appendListener(T)}var S={length:d.length,action:"POP",location:d[p],index:p,entries:d,createHref:m,push:_,replace:b,go:g,goBack:y,goForward:v,canGo:h,block:w,listen:E};return S}var Na={exports:{}},j5=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},uf=j5;Na.exports=CO;Na.exports.parse=uy;Na.exports.compile=B5;Na.exports.tokensToFunction=OO;Na.exports.tokensToRegExp=kO;var U5=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function uy(e,t){for(var n=[],r=0,i=0,o="",a=t&&t.delimiter||"/",s;(s=U5.exec(e))!=null;){var u=s[0],l=s[1],c=s.index;if(o+=e.slice(i,c),i=c+u.length,l){o+=l[1];continue}var f=e[i],p=s[2],d=s[3],m=s[4],_=s[5],b=s[6],g=s[7];o&&(n.push(o),o="");var y=p!=null&&f!=null&&f!==p,v=b==="+"||b==="*",h=b==="?"||b==="*",w=s[2]||a,E=m||_;n.push({name:d||r++,prefix:p||"",delimiter:w,optional:h,repeat:v,partial:y,asterisk:!!g,pattern:E?q5(E):g?".*":"[^"+_c(w)+"]+?"})}return i<e.length&&(o+=e.substr(i)),o&&n.push(o),n}function B5(e,t){return OO(uy(e,t),t)}function H5(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function z5(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function OO(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",cy(t)));return function(i,o){for(var a="",s=i||{},u=o||{},l=u.pretty?H5:encodeURIComponent,c=0;c<e.length;c++){var f=e[c];if(typeof f=="string"){a+=f;continue}var p=s[f.name],d;if(p==null)if(f.optional){f.partial&&(a+=f.prefix);continue}else throw new TypeError('Expected "'+f.name+'" to be defined');if(uf(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var m=0;m<p.length;m++){if(d=l(p[m]),!n[c].test(d))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(m===0?f.prefix:f.delimiter)+d}continue}if(d=f.asterisk?z5(p):l(p),!n[c].test(d))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+d+'"');a+=f.prefix+d}return a}}function _c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function q5(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function ly(e,t){return e.keys=t,e}function cy(e){return e&&e.sensitive?"":"i"}function V5(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return ly(e,t)}function W5(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(CO(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",cy(n));return ly(o,t)}function Q5(e,t,n){return kO(uy(e,n),t,n)}function kO(e,t,n){uf(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,o="",a=0;a<e.length;a++){var s=e[a];if(typeof s=="string")o+=_c(s);else{var u=_c(s.prefix),l="(?:"+s.pattern+")";t.push(s),s.repeat&&(l+="(?:"+u+l+")*"),s.optional?s.partial?l=u+"("+l+")?":l="(?:"+u+"("+l+"))?":l=u+"("+l+")",o+=l}}var c=_c(n.delimiter||"/"),f=o.slice(-c.length)===c;return r||(o=(f?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),i?o+="$":o+=r&&f?"":"(?="+c+"|$)",ly(new RegExp("^"+o,cy(n)),t)}function CO(e,t,n){return uf(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?V5(e,t):uf(e)?W5(e,t,n):Q5(e,t,n)}var G5=Na.exports;const AO=ft(G5);function bd(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qp=1073741823,j_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Y5(){var e="__global_unique_id__";return j_[e]=(j_[e]||0)+1}function X5(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function K5(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(i){return i!==r})},get:function(){return e},set:function(r,i){e=r,t.forEach(function(o){return o(e,i)})}}}function J5(e){return Array.isArray(e)?e[0]:e}function Z5(e,t){var n,r,i="__create-react-context-"+Y5()+"__",o=function(s){rr(u,s);function u(){for(var c,f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=s.call.apply(s,[this].concat(p))||this,c.emitter=K5(c.props.value),c}var l=u.prototype;return l.getChildContext=function(){var f;return f={},f[i]=this.emitter,f},l.componentWillReceiveProps=function(f){if(this.props.value!==f.value){var p=this.props.value,d=f.value,m;X5(p,d)?m=0:(m=typeof t=="function"?t(p,d):qp,m|=0,m!==0&&this.emitter.set(f.value,m))}},l.render=function(){return this.props.children},u}(G.Component);o.childContextTypes=(n={},n[i]=be.object.isRequired,n);var a=function(s){rr(u,s);function u(){for(var c,f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=s.call.apply(s,[this].concat(p))||this,c.observedBits=void 0,c.state={value:c.getValue()},c.onUpdate=function(m,_){var b=c.observedBits|0;b&_&&c.setState({value:c.getValue()})},c}var l=u.prototype;return l.componentWillReceiveProps=function(f){var p=f.observedBits;this.observedBits=p==null?qp:p},l.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var f=this.props.observedBits;this.observedBits=f==null?qp:f},l.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},l.getValue=function(){return this.context[i]?this.context[i].get():e},l.render=function(){return J5(this.props.children)(this.state.value)},u}(G.Component);return a.contextTypes=(r={},r[i]=be.object,r),{Provider:o,Consumer:a}}var e3=G.createContext||Z5,RO=function(t){var n=e3();return n.displayName=t,n},PO=RO("Router-History"),ir=RO("Router"),Ed=function(e){rr(t,e),t.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function t(r){var i;return i=e.call(this,r)||this,i.state={location:r.history.location},i._isMounted=!1,i._pendingLocation=null,r.staticContext||(i.unlisten=r.history.listen(function(o){i._pendingLocation=o})),i}var n=t.prototype;return n.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){i._isMounted&&i.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return G.createElement(ir.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},G.createElement(PO.Provider,{children:this.props.children||null,value:this.props.history}))},t}(G.Component);G.Component;var t3=function(e){rr(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(i){this.props.onUpdate&&this.props.onUpdate.call(this,this,i)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(G.Component),Vp={},n3=1e4,U_=0;function r3(e){if(Vp[e])return Vp[e];var t=AO.compile(e);return U_<n3&&(Vp[e]=t,U_++),t}function B_(e,t){return e===void 0&&(e="/"),t===void 0&&(t={}),e==="/"?e:r3(e)(t,{pretty:!0})}function VX(e){var t=e.computedMatch,n=e.to,r=e.push,i=r===void 0?!1:r;return G.createElement(ir.Consumer,null,function(o){o||di();var a=o.history,s=o.staticContext,u=i?a.push:a.replace,l=Tt(t?typeof n=="string"?B_(n,t.params):lt({},n,{pathname:B_(n.pathname,t.params)}):n);return s?(u(l),null):G.createElement(t3,{onMount:function(){u(l)},onUpdate:function(f,p){var d=Tt(p.to);A5(d,lt({},l,{key:d.key}))||u(l)},to:n})})}var H_={},i3=1e4,z_=0;function o3(e,t){var n=""+t.end+t.strict+t.sensitive,r=H_[n]||(H_[n]={});if(r[e])return r[e];var i=[],o=AO(e,i,t),a={regexp:o,keys:i};return z_<i3&&(r[e]=a,z_++),a}function Sd(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=i===void 0?!1:i,a=n.strict,s=a===void 0?!1:a,u=n.sensitive,l=u===void 0?!1:u,c=[].concat(r);return c.reduce(function(f,p){if(!p&&p!=="")return null;if(f)return f;var d=o3(p,{end:o,strict:s,sensitive:l}),m=d.regexp,_=d.keys,b=m.exec(e);if(!b)return null;var g=b[0],y=b.slice(1),v=e===g;return o&&!v?null:{path:p,url:p==="/"&&g===""?"/":g,isExact:v,params:_.reduce(function(h,w,E){return h[w.name]=y[E],h},{})}},null)}function a3(e){return G.Children.count(e)===0}var WX=function(e){rr(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return G.createElement(ir.Consumer,null,function(o){o||di();var a=i.props.location||o.location,s=i.props.computedMatch?i.props.computedMatch:i.props.path?Sd(a.pathname,i.props):o.match,u=lt({},o,{location:a,match:s}),l=i.props,c=l.children,f=l.component,p=l.render;return Array.isArray(c)&&a3(c)&&(c=null),G.createElement(ir.Provider,{value:u},u.match?c?typeof c=="function"?c(u):c:f?G.createElement(f,u):p?p(u):null:typeof c=="function"?c(u):null)})},t}(G.Component);function fy(e){return e.charAt(0)==="/"?e:"/"+e}function s3(e,t){return e?lt({},t,{pathname:fy(e)+t.pathname}):t}function u3(e,t){if(!e)return t;var n=fy(e);return t.pathname.indexOf(n)!==0?t:lt({},t,{pathname:t.pathname.substr(n.length)})}function q_(e){return typeof e=="string"?e:Pt(e)}function Wp(e){return function(){di()}}function V_(){}G.Component;var QX=function(e){rr(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return G.createElement(ir.Consumer,null,function(o){o||di();var a=i.props.location||o.location,s,u;return G.Children.forEach(i.props.children,function(l){if(u==null&&G.isValidElement(l)){s=l;var c=l.props.path||l.props.from;u=c?Sd(a.pathname,lt({},l.props,{path:c})):o.match}}),u?G.cloneElement(s,{location:a,computedMatch:u}):null})},t}(G.Component),Td=G.useContext;function GX(){return Td(PO)}function l3(){return Td(ir).location}function YX(){var e=Td(ir).match;return e?e.params:{}}function XX(e){var t=l3(),n=Td(ir).match;return e?Sd(t.pathname,e):n}var KX=function(e){rr(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.history=L5(r.props),r}var n=t.prototype;return n.render=function(){return G.createElement(Ed,{history:this.history,children:this.props.children})},t}(G.Component);G.Component;var Bv=function(t,n){return typeof t=="function"?t(n):t},Hv=function(t,n){return typeof t=="string"?Tt(t,null,null,n):t},dy=function(t){return t},wa=G.forwardRef;typeof wa>"u"&&(wa=dy);function c3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var f3=wa(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=bd(e,["innerRef","navigate","onClick"]),a=o.target,s=lt({},o,{onClick:function(l){try{i&&i(l)}catch(c){throw l.preventDefault(),c}!l.defaultPrevented&&l.button===0&&(!a||a==="_self")&&!c3(l)&&(l.preventDefault(),r())}});return dy!==wa?s.ref=t||n:s.ref=n,G.createElement("a",s)}),d3=wa(function(e,t){var n=e.component,r=n===void 0?f3:n,i=e.replace,o=e.to,a=e.innerRef,s=bd(e,["component","replace","to","innerRef"]);return G.createElement(ir.Consumer,null,function(u){u||di();var l=u.history,c=Hv(Bv(o,u.location),u.location),f=c?l.createHref(c):"",p=lt({},s,{href:f,navigate:function(){var m=Bv(o,u.location),_=Pt(u.location)===Pt(Hv(m)),b=i||_?l.replace:l.push;b(m)}});return dy!==wa?p.ref=t||a:p.innerRef=a,G.createElement(r,p)})}),IO=function(t){return t},lf=G.forwardRef;typeof lf>"u"&&(lf=IO);function p3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r}).join(" ")}lf(function(e,t){var n=e["aria-current"],r=n===void 0?"page":n,i=e.activeClassName,o=i===void 0?"active":i,a=e.activeStyle,s=e.className,u=e.exact,l=e.isActive,c=e.location,f=e.sensitive,p=e.strict,d=e.style,m=e.to,_=e.innerRef,b=bd(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return G.createElement(ir.Consumer,null,function(g){g||di();var y=c||g.location,v=Hv(Bv(m,y),y),h=v.pathname,w=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=w?Sd(y.pathname,{path:w,exact:u,sensitive:f,strict:p}):null,S=!!(l?l(E,y):E),T=typeof s=="function"?s(S):s,O=typeof d=="function"?d(S):d;S&&(T=p3(T,o),O=lt({},O,a));var x=lt({"aria-current":S&&r||null,className:T,style:O,to:v},b);return IO!==lf?x.ref=t||_:x.innerRef=_,G.createElement(d3,x)})});var DO={exports:{}};(function(e,t){(function(){function n(){var r=window,i=document;if("scrollBehavior"in i.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var o=r.HTMLElement||r.Element,a=468,s={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:o.prototype.scroll||f,scrollIntoView:o.prototype.scrollIntoView},u=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function l(h){var w=["MSIE ","Trident/","Edge/"];return new RegExp(w.join("|")).test(h)}var c=l(r.navigator.userAgent)?1:0;function f(h,w){this.scrollLeft=h,this.scrollTop=w}function p(h){return .5*(1-Math.cos(Math.PI*h))}function d(h){if(h===null||typeof h!="object"||h.behavior===void 0||h.behavior==="auto"||h.behavior==="instant")return!0;if(typeof h=="object"&&h.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+h.behavior+" is not a valid value for enumeration ScrollBehavior.")}function m(h,w){if(w==="Y")return h.clientHeight+c<h.scrollHeight;if(w==="X")return h.clientWidth+c<h.scrollWidth}function _(h,w){var E=r.getComputedStyle(h,null)["overflow"+w];return E==="auto"||E==="scroll"}function b(h){var w=m(h,"Y")&&_(h,"Y"),E=m(h,"X")&&_(h,"X");return w||E}function g(h){for(;h!==i.body&&b(h)===!1;)h=h.parentNode||h.host;return h}function y(h){var w=u(),E,S,T,O=(w-h.startTime)/a;O=O>1?1:O,E=p(O),S=h.startX+(h.x-h.startX)*E,T=h.startY+(h.y-h.startY)*E,h.method.call(h.scrollable,S,T),(S!==h.x||T!==h.y)&&r.requestAnimationFrame(y.bind(r,h))}function v(h,w,E){var S,T,O,x,D=u();h===i.body?(S=r,T=r.scrollX||r.pageXOffset,O=r.scrollY||r.pageYOffset,x=s.scroll):(S=h,T=h.scrollLeft,O=h.scrollTop,x=f),y({scrollable:S,method:x,startTime:D,startX:T,startY:O,x:w,y:E})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){s.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}v.call(r,i.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(d(arguments[0])){s.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}v.call(r,i.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},o.prototype.scroll=o.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var h=arguments[0].left,w=arguments[0].top;v.call(this,this,typeof h>"u"?this.scrollLeft:~~h,typeof w>"u"?this.scrollTop:~~w)}},o.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(d(arguments[0])===!0){s.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},o.prototype.scrollIntoView=function(){if(d(arguments[0])===!0){s.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var h=g(this),w=h.getBoundingClientRect(),E=this.getBoundingClientRect();h!==i.body?(v.call(this,h,h.scrollLeft+E.left-w.left,h.scrollTop+E.top-w.top),r.getComputedStyle(h).position!=="fixed"&&r.scrollBy({left:w.left,top:w.top,behavior:"smooth"})):r.scrollBy({left:E.left,top:E.top,behavior:"smooth"})}}e.exports={polyfill:n}})()})(DO);var h3=DO.exports;const JX=ft(h3);var ZX=function(t,n){var r=arguments;if(n==null||!$u.call(n,"css"))return N.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=Ym,o[1]=Gm(t,n);for(var a=2;a<i;a++)o[a]=r[a];return N.createElement.apply(null,o)};function v3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Qm(t)}var eK=function(){var t=v3.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},m3=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=e(o);else{a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function g3(e,t,n){var r=[],i=cE(e,r,n);return r.length<2?n:i+t(r)}var y3=function(t){var n=t.cache,r=t.serializedArr;return pE(function(){for(var i=0;i<r.length;i++)fE(n,r[i],!1)}),null},tK=vE(function(e,t){var n=!1,r=[],i=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var p=Qm(c,t.registered);return r.push(p),Wm(t,p,!1),t.key+"-"+p.name},o=function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];return g3(t.registered,i,m3(c))},a={css:i,cx:o,theme:N.useContext(mE)},s=e.children(a);return n=!0,N.createElement(N.Fragment,null,N.createElement(y3,{cache:t,serializedArr:r}),s)}),LO=typeof global=="object"&&global&&global.Object===Object&&global,_3=typeof self=="object"&&self&&self.Object===Object&&self,$n=LO||_3||Function("return this")(),_n=$n.Symbol,MO=Object.prototype,w3=MO.hasOwnProperty,b3=MO.toString,ts=_n?_n.toStringTag:void 0;function E3(e){var t=w3.call(e,ts),n=e[ts];try{e[ts]=void 0;var r=!0}catch{}var i=b3.call(e);return r&&(t?e[ts]=n:delete e[ts]),i}var S3=Object.prototype,T3=S3.toString;function x3(e){return T3.call(e)}var O3="[object Null]",k3="[object Undefined]",W_=_n?_n.toStringTag:void 0;function oo(e){return e==null?e===void 0?k3:O3:W_&&W_ in Object(e)?E3(e):x3(e)}function xr(e){return e!=null&&typeof e=="object"}var C3="[object Symbol]";function Yi(e){return typeof e=="symbol"||xr(e)&&oo(e)==C3}function ta(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var _t=Array.isArray,A3=1/0,Q_=_n?_n.prototype:void 0,G_=Q_?Q_.toString:void 0;function py(e){if(typeof e=="string")return e;if(_t(e))return ta(e,py)+"";if(Yi(e))return G_?G_.call(e):"";var t=e+"";return t=="0"&&1/e==-A3?"-0":t}var R3=/\s/;function P3(e){for(var t=e.length;t--&&R3.test(e.charAt(t)););return t}var I3=/^\s+/;function NO(e){return e&&e.slice(0,P3(e)+1).replace(I3,"")}function Zt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Y_=NaN,D3=/^[-+]0x[0-9a-f]+$/i,L3=/^0b[01]+$/i,M3=/^0o[0-7]+$/i,N3=parseInt;function Ni(e){if(typeof e=="number")return e;if(Yi(e))return Y_;if(Zt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NO(e);var n=L3.test(e);return n||M3.test(e)?N3(e.slice(2),n?2:8):D3.test(e)?Y_:+e}var X_=1/0,$3=17976931348623157e292;function wc(e){if(!e)return e===0?e:0;if(e=Ni(e),e===X_||e===-X_){var t=e<0?-1:1;return t*$3}return e===e?e:0}function F3(e){var t=wc(e),n=t%1;return t===t?n?t-n:t:0}function $a(e){return e}var j3="[object AsyncFunction]",U3="[object Function]",B3="[object GeneratorFunction]",H3="[object Proxy]";function $O(e){if(!Zt(e))return!1;var t=oo(e);return t==U3||t==B3||t==j3||t==H3}var Qp=$n["__core-js_shared__"],K_=function(){var e=/[^.]+$/.exec(Qp&&Qp.keys&&Qp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function z3(e){return!!K_&&K_ in e}var q3=Function.prototype,V3=q3.toString;function ao(e){if(e!=null){try{return V3.call(e)}catch{}try{return e+""}catch{}}return""}var W3=/[\\^$.*+?()[\]{}|]/g,Q3=/^\[object .+?Constructor\]$/,G3=Function.prototype,Y3=Object.prototype,X3=G3.toString,K3=Y3.hasOwnProperty,J3=RegExp("^"+X3.call(K3).replace(W3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Z3(e){if(!Zt(e)||z3(e))return!1;var t=$O(e)?J3:Q3;return t.test(ao(e))}function eF(e,t){return e==null?void 0:e[t]}function so(e,t){var n=eF(e,t);return Z3(n)?n:void 0}var zv=so($n,"WeakMap"),J_=Object.create,tF=function(){function e(){}return function(t){if(!Zt(t))return{};if(J_)return J_(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function nF(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rF(){}function iF(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var oF=800,aF=16,sF=Date.now;function uF(e){var t=0,n=0;return function(){var r=sF(),i=aF-(r-n);if(n=r,i>0){if(++t>=oF)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function lF(e){return function(){return e}}var cf=function(){try{var e=so(Object,"defineProperty");return e({},"",{}),e}catch{}}(),cF=cf?function(e,t){return cf(e,"toString",{configurable:!0,enumerable:!1,value:lF(t),writable:!0})}:$a,FO=uF(cF);function fF(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function jO(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function dF(e){return e!==e}function pF(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function hy(e,t,n){return t===t?pF(e,t,n):jO(e,dF,n)}function hF(e,t){var n=e==null?0:e.length;return!!n&&hy(e,t,0)>-1}var vF=9007199254740991,mF=/^(?:0|[1-9]\d*)$/;function xd(e,t){var n=typeof e;return t=t==null?vF:t,!!t&&(n=="number"||n!="symbol"&&mF.test(e))&&e>-1&&e%1==0&&e<t}function vy(e,t,n){t=="__proto__"&&cf?cf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Od(e,t){return e===t||e!==e&&t!==t}var gF=Object.prototype,yF=gF.hasOwnProperty;function my(e,t,n){var r=e[t];(!(yF.call(e,t)&&Od(r,n))||n===void 0&&!(t in e))&&vy(e,t,n)}function Yu(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=void 0;u===void 0&&(u=e[s]),i?vy(n,s,u):my(n,s,u)}return n}var Z_=Math.max;function UO(e,t,n){return t=Z_(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Z_(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),nF(e,this,s)}}function BO(e,t){return FO(UO(e,t,$a),e+"")}var _F=9007199254740991;function gy(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_F}function uo(e){return e!=null&&gy(e.length)&&!$O(e)}function qv(e,t,n){if(!Zt(n))return!1;var r=typeof t;return(r=="number"?uo(n)&&xd(t,n.length):r=="string"&&t in n)?Od(n[t],e):!1}var wF=Object.prototype;function kd(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wF;return e===n}function bF(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var EF="[object Arguments]";function ew(e){return xr(e)&&oo(e)==EF}var HO=Object.prototype,SF=HO.hasOwnProperty,TF=HO.propertyIsEnumerable,Cd=ew(function(){return arguments}())?ew:function(e){return xr(e)&&SF.call(e,"callee")&&!TF.call(e,"callee")};function xF(){return!1}var zO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tw=zO&&typeof module=="object"&&module&&!module.nodeType&&module,OF=tw&&tw.exports===zO,nw=OF?$n.Buffer:void 0,kF=nw?nw.isBuffer:void 0,du=kF||xF,CF="[object Arguments]",AF="[object Array]",RF="[object Boolean]",PF="[object Date]",IF="[object Error]",DF="[object Function]",LF="[object Map]",MF="[object Number]",NF="[object Object]",$F="[object RegExp]",FF="[object Set]",jF="[object String]",UF="[object WeakMap]",BF="[object ArrayBuffer]",HF="[object DataView]",zF="[object Float32Array]",qF="[object Float64Array]",VF="[object Int8Array]",WF="[object Int16Array]",QF="[object Int32Array]",GF="[object Uint8Array]",YF="[object Uint8ClampedArray]",XF="[object Uint16Array]",KF="[object Uint32Array]",Ce={};Ce[zF]=Ce[qF]=Ce[VF]=Ce[WF]=Ce[QF]=Ce[GF]=Ce[YF]=Ce[XF]=Ce[KF]=!0;Ce[CF]=Ce[AF]=Ce[BF]=Ce[RF]=Ce[HF]=Ce[PF]=Ce[IF]=Ce[DF]=Ce[LF]=Ce[MF]=Ce[NF]=Ce[$F]=Ce[FF]=Ce[jF]=Ce[UF]=!1;function JF(e){return xr(e)&&gy(e.length)&&!!Ce[oo(e)]}function Ad(e){return function(t){return e(t)}}var qO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ks=qO&&typeof module=="object"&&module&&!module.nodeType&&module,ZF=ks&&ks.exports===qO,Gp=ZF&&LO.process,ba=function(){try{var e=ks&&ks.require&&ks.require("util").types;return e||Gp&&Gp.binding&&Gp.binding("util")}catch{}}(),rw=ba&&ba.isTypedArray,yy=rw?Ad(rw):JF,ej=Object.prototype,tj=ej.hasOwnProperty;function VO(e,t){var n=_t(e),r=!n&&Cd(e),i=!n&&!r&&du(e),o=!n&&!r&&!i&&yy(e),a=n||r||i||o,s=a?bF(e.length,String):[],u=s.length;for(var l in e)(t||tj.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||xd(l,u)))&&s.push(l);return s}function WO(e,t){return function(n){return e(t(n))}}var nj=WO(Object.keys,Object),rj=Object.prototype,ij=rj.hasOwnProperty;function QO(e){if(!kd(e))return nj(e);var t=[];for(var n in Object(e))ij.call(e,n)&&n!="constructor"&&t.push(n);return t}function Fa(e){return uo(e)?VO(e):QO(e)}function oj(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var aj=Object.prototype,sj=aj.hasOwnProperty;function uj(e){if(!Zt(e))return oj(e);var t=kd(e),n=[];for(var r in e)r=="constructor"&&(t||!sj.call(e,r))||n.push(r);return n}function _y(e){return uo(e)?VO(e,!0):uj(e)}var lj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cj=/^\w*$/;function wy(e,t){if(_t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Yi(e)?!0:cj.test(e)||!lj.test(e)||t!=null&&e in Object(t)}var pu=so(Object,"create");function fj(){this.__data__=pu?pu(null):{},this.size=0}function dj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pj="__lodash_hash_undefined__",hj=Object.prototype,vj=hj.hasOwnProperty;function mj(e){var t=this.__data__;if(pu){var n=t[e];return n===pj?void 0:n}return vj.call(t,e)?t[e]:void 0}var gj=Object.prototype,yj=gj.hasOwnProperty;function _j(e){var t=this.__data__;return pu?t[e]!==void 0:yj.call(t,e)}var wj="__lodash_hash_undefined__";function bj(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pu&&t===void 0?wj:t,this}function Xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xi.prototype.clear=fj;Xi.prototype.delete=dj;Xi.prototype.get=mj;Xi.prototype.has=_j;Xi.prototype.set=bj;function Ej(){this.__data__=[],this.size=0}function Rd(e,t){for(var n=e.length;n--;)if(Od(e[n][0],t))return n;return-1}var Sj=Array.prototype,Tj=Sj.splice;function xj(e){var t=this.__data__,n=Rd(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tj.call(t,n,1),--this.size,!0}function Oj(e){var t=this.__data__,n=Rd(t,e);return n<0?void 0:t[n][1]}function kj(e){return Rd(this.__data__,e)>-1}function Cj(e,t){var n=this.__data__,r=Rd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cr.prototype.clear=Ej;Cr.prototype.delete=xj;Cr.prototype.get=Oj;Cr.prototype.has=kj;Cr.prototype.set=Cj;var hu=so($n,"Map");function Aj(){this.size=0,this.__data__={hash:new Xi,map:new(hu||Cr),string:new Xi}}function Rj(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pd(e,t){var n=e.__data__;return Rj(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Pj(e){var t=Pd(this,e).delete(e);return this.size-=t?1:0,t}function Ij(e){return Pd(this,e).get(e)}function Dj(e){return Pd(this,e).has(e)}function Lj(e,t){var n=Pd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ar.prototype.clear=Aj;Ar.prototype.delete=Pj;Ar.prototype.get=Ij;Ar.prototype.has=Dj;Ar.prototype.set=Lj;var Mj="Expected a function";function by(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Mj);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(by.Cache||Ar),n}by.Cache=Ar;var Nj=500;function $j(e){var t=by(e,function(r){return n.size===Nj&&n.clear(),r}),n=t.cache;return t}var Fj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jj=/\\(\\)?/g,Uj=$j(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fj,function(n,r,i,o){t.push(i?o.replace(jj,"$1"):r||n)}),t});function Id(e){return e==null?"":py(e)}function ja(e,t){return _t(e)?e:wy(e,t)?[e]:Uj(Id(e))}var Bj=1/0;function Ua(e){if(typeof e=="string"||Yi(e))return e;var t=e+"";return t=="0"&&1/e==-Bj?"-0":t}function Xu(e,t){t=ja(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ua(t[n++])];return n&&n==r?e:void 0}function Hj(e,t,n){var r=e==null?void 0:Xu(e,t);return r===void 0?n:r}function Ey(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var iw=_n?_n.isConcatSpreadable:void 0;function zj(e){return _t(e)||Cd(e)||!!(iw&&e&&e[iw])}function GO(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=zj),i||(i=[]);++o<a;){var s=e[o];n(s)?Ey(i,s):i[i.length]=s}return i}function qj(e){var t=e==null?0:e.length;return t?GO(e):[]}function Vj(e){return FO(UO(e,void 0,qj),e+"")}var Sy=WO(Object.getPrototypeOf,Object),Wj="[object Object]",Qj=Function.prototype,Gj=Object.prototype,YO=Qj.toString,Yj=Gj.hasOwnProperty,Xj=YO.call(Object);function Kj(e){if(!xr(e)||oo(e)!=Wj)return!1;var t=Sy(e);if(t===null)return!0;var n=Yj.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&YO.call(n)==Xj}function ff(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function Jj(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:ff(e,t,n)}var Zj="\\ud800-\\udfff",e4="\\u0300-\\u036f",t4="\\ufe20-\\ufe2f",n4="\\u20d0-\\u20ff",r4=e4+t4+n4,i4="\\ufe0e\\ufe0f",o4="\\u200d",a4=RegExp("["+o4+Zj+r4+i4+"]");function s4(e){return a4.test(e)}function u4(e){return e.split("")}var XO="\\ud800-\\udfff",l4="\\u0300-\\u036f",c4="\\ufe20-\\ufe2f",f4="\\u20d0-\\u20ff",d4=l4+c4+f4,p4="\\ufe0e\\ufe0f",h4="["+XO+"]",Vv="["+d4+"]",Wv="\\ud83c[\\udffb-\\udfff]",v4="(?:"+Vv+"|"+Wv+")",KO="[^"+XO+"]",JO="(?:\\ud83c[\\udde6-\\uddff]){2}",ZO="[\\ud800-\\udbff][\\udc00-\\udfff]",m4="\\u200d",ek=v4+"?",tk="["+p4+"]?",g4="(?:"+m4+"(?:"+[KO,JO,ZO].join("|")+")"+tk+ek+")*",y4=tk+ek+g4,_4="(?:"+[KO+Vv+"?",Vv,JO,ZO,h4].join("|")+")",w4=RegExp(Wv+"(?="+Wv+")|"+_4+y4,"g");function b4(e){return e.match(w4)||[]}function ow(e){return s4(e)?b4(e):u4(e)}function E4(e){return function(t){return e==null?void 0:e[t]}}function S4(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function nK(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Ni(n),n=n===n?n:0),t!==void 0&&(t=Ni(t),t=t===t?t:0),S4(Ni(e),t,n)}function T4(){this.__data__=new Cr,this.size=0}function x4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function O4(e){return this.__data__.get(e)}function k4(e){return this.__data__.has(e)}var C4=200;function A4(e,t){var n=this.__data__;if(n instanceof Cr){var r=n.__data__;if(!hu||r.length<C4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ar(r)}return n.set(e,t),this.size=n.size,this}function er(e){var t=this.__data__=new Cr(e);this.size=t.size}er.prototype.clear=T4;er.prototype.delete=x4;er.prototype.get=O4;er.prototype.has=k4;er.prototype.set=A4;function R4(e,t){return e&&Yu(t,Fa(t),e)}function P4(e,t){return e&&Yu(t,_y(t),e)}var nk=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aw=nk&&typeof module=="object"&&module&&!module.nodeType&&module,I4=aw&&aw.exports===nk,sw=I4?$n.Buffer:void 0,uw=sw?sw.allocUnsafe:void 0;function D4(e,t){if(t)return e.slice();var n=e.length,r=uw?uw(n):new e.constructor(n);return e.copy(r),r}function L4(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function rk(){return[]}var M4=Object.prototype,N4=M4.propertyIsEnumerable,lw=Object.getOwnPropertySymbols,Ty=lw?function(e){return e==null?[]:(e=Object(e),L4(lw(e),function(t){return N4.call(e,t)}))}:rk;function $4(e,t){return Yu(e,Ty(e),t)}var F4=Object.getOwnPropertySymbols,ik=F4?function(e){for(var t=[];e;)Ey(t,Ty(e)),e=Sy(e);return t}:rk;function j4(e,t){return Yu(e,ik(e),t)}function ok(e,t,n){var r=t(e);return _t(e)?r:Ey(r,n(e))}function Qv(e){return ok(e,Fa,Ty)}function xy(e){return ok(e,_y,ik)}var Gv=so($n,"DataView"),Yv=so($n,"Promise"),na=so($n,"Set"),cw="[object Map]",U4="[object Object]",fw="[object Promise]",dw="[object Set]",pw="[object WeakMap]",hw="[object DataView]",B4=ao(Gv),H4=ao(hu),z4=ao(Yv),q4=ao(na),V4=ao(zv),ln=oo;(Gv&&ln(new Gv(new ArrayBuffer(1)))!=hw||hu&&ln(new hu)!=cw||Yv&&ln(Yv.resolve())!=fw||na&&ln(new na)!=dw||zv&&ln(new zv)!=pw)&&(ln=function(e){var t=oo(e),n=t==U4?e.constructor:void 0,r=n?ao(n):"";if(r)switch(r){case B4:return hw;case H4:return cw;case z4:return fw;case q4:return dw;case V4:return pw}return t});var W4=Object.prototype,Q4=W4.hasOwnProperty;function G4(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Q4.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var df=$n.Uint8Array;function Oy(e){var t=new e.constructor(e.byteLength);return new df(t).set(new df(e)),t}function Y4(e,t){var n=t?Oy(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var X4=/\w*$/;function K4(e){var t=new e.constructor(e.source,X4.exec(e));return t.lastIndex=e.lastIndex,t}var vw=_n?_n.prototype:void 0,mw=vw?vw.valueOf:void 0;function J4(e){return mw?Object(mw.call(e)):{}}function Z4(e,t){var n=t?Oy(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var eU="[object Boolean]",tU="[object Date]",nU="[object Map]",rU="[object Number]",iU="[object RegExp]",oU="[object Set]",aU="[object String]",sU="[object Symbol]",uU="[object ArrayBuffer]",lU="[object DataView]",cU="[object Float32Array]",fU="[object Float64Array]",dU="[object Int8Array]",pU="[object Int16Array]",hU="[object Int32Array]",vU="[object Uint8Array]",mU="[object Uint8ClampedArray]",gU="[object Uint16Array]",yU="[object Uint32Array]";function _U(e,t,n){var r=e.constructor;switch(t){case uU:return Oy(e);case eU:case tU:return new r(+e);case lU:return Y4(e,n);case cU:case fU:case dU:case pU:case hU:case vU:case mU:case gU:case yU:return Z4(e,n);case nU:return new r;case rU:case aU:return new r(e);case iU:return K4(e);case oU:return new r;case sU:return J4(e)}}function wU(e){return typeof e.constructor=="function"&&!kd(e)?tF(Sy(e)):{}}var bU="[object Map]";function EU(e){return xr(e)&&ln(e)==bU}var gw=ba&&ba.isMap,SU=gw?Ad(gw):EU,TU="[object Set]";function xU(e){return xr(e)&&ln(e)==TU}var yw=ba&&ba.isSet,OU=yw?Ad(yw):xU,kU=1,CU=2,AU=4,ak="[object Arguments]",RU="[object Array]",PU="[object Boolean]",IU="[object Date]",DU="[object Error]",sk="[object Function]",LU="[object GeneratorFunction]",MU="[object Map]",NU="[object Number]",uk="[object Object]",$U="[object RegExp]",FU="[object Set]",jU="[object String]",UU="[object Symbol]",BU="[object WeakMap]",HU="[object ArrayBuffer]",zU="[object DataView]",qU="[object Float32Array]",VU="[object Float64Array]",WU="[object Int8Array]",QU="[object Int16Array]",GU="[object Int32Array]",YU="[object Uint8Array]",XU="[object Uint8ClampedArray]",KU="[object Uint16Array]",JU="[object Uint32Array]",Ee={};Ee[ak]=Ee[RU]=Ee[HU]=Ee[zU]=Ee[PU]=Ee[IU]=Ee[qU]=Ee[VU]=Ee[WU]=Ee[QU]=Ee[GU]=Ee[MU]=Ee[NU]=Ee[uk]=Ee[$U]=Ee[FU]=Ee[jU]=Ee[UU]=Ee[YU]=Ee[XU]=Ee[KU]=Ee[JU]=!0;Ee[DU]=Ee[sk]=Ee[BU]=!1;function bc(e,t,n,r,i,o){var a,s=t&kU,u=t&CU,l=t&AU;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Zt(e))return e;var c=_t(e);if(c){if(a=G4(e),!s)return iF(e,a)}else{var f=ln(e),p=f==sk||f==LU;if(du(e))return D4(e,s);if(f==uk||f==ak||p&&!i){if(a=u||p?{}:wU(e),!s)return u?j4(e,P4(a,e)):$4(e,R4(a,e))}else{if(!Ee[f])return i?e:{};a=_U(e,f,s)}}o||(o=new er);var d=o.get(e);if(d)return d;o.set(e,a),OU(e)?e.forEach(function(b){a.add(bc(b,t,n,b,e,o))}):SU(e)&&e.forEach(function(b,g){a.set(g,bc(b,t,n,g,e,o))});var m=l?u?xy:Qv:u?_y:Fa,_=c?void 0:m(e);return fF(_||e,function(b,g){_&&(g=b,b=e[g]),my(a,g,bc(b,t,n,g,e,o))}),a}var ZU="__lodash_hash_undefined__";function eB(e){return this.__data__.set(e,ZU),this}function tB(e){return this.__data__.has(e)}function vu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ar;++t<n;)this.add(e[t])}vu.prototype.add=vu.prototype.push=eB;vu.prototype.has=tB;function nB(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function lk(e,t){return e.has(t)}var rB=1,iB=2;function ck(e,t,n,r,i,o){var a=n&rB,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var f=-1,p=!0,d=n&iB?new vu:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var m=e[f],_=t[f];if(r)var b=a?r(_,m,f,t,e,o):r(m,_,f,e,t,o);if(b!==void 0){if(b)continue;p=!1;break}if(d){if(!nB(t,function(g,y){if(!lk(d,y)&&(m===g||i(m,g,n,r,o)))return d.push(y)})){p=!1;break}}else if(!(m===_||i(m,_,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function oB(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function ky(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var aB=1,sB=2,uB="[object Boolean]",lB="[object Date]",cB="[object Error]",fB="[object Map]",dB="[object Number]",pB="[object RegExp]",hB="[object Set]",vB="[object String]",mB="[object Symbol]",gB="[object ArrayBuffer]",yB="[object DataView]",_w=_n?_n.prototype:void 0,Yp=_w?_w.valueOf:void 0;function _B(e,t,n,r,i,o,a){switch(n){case yB:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gB:return!(e.byteLength!=t.byteLength||!o(new df(e),new df(t)));case uB:case lB:case dB:return Od(+e,+t);case cB:return e.name==t.name&&e.message==t.message;case pB:case vB:return e==t+"";case fB:var s=oB;case hB:var u=r&aB;if(s||(s=ky),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=sB,a.set(e,t);var c=ck(s(e),s(t),r,i,o,a);return a.delete(e),c;case mB:if(Yp)return Yp.call(e)==Yp.call(t)}return!1}var wB=1,bB=Object.prototype,EB=bB.hasOwnProperty;function SB(e,t,n,r,i,o){var a=n&wB,s=Qv(e),u=s.length,l=Qv(t),c=l.length;if(u!=c&&!a)return!1;for(var f=u;f--;){var p=s[f];if(!(a?p in t:EB.call(t,p)))return!1}var d=o.get(e),m=o.get(t);if(d&&m)return d==t&&m==e;var _=!0;o.set(e,t),o.set(t,e);for(var b=a;++f<u;){p=s[f];var g=e[p],y=t[p];if(r)var v=a?r(y,g,p,t,e,o):r(g,y,p,e,t,o);if(!(v===void 0?g===y||i(g,y,n,r,o):v)){_=!1;break}b||(b=p=="constructor")}if(_&&!b){var h=e.constructor,w=t.constructor;h!=w&&"constructor"in e&&"constructor"in t&&!(typeof h=="function"&&h instanceof h&&typeof w=="function"&&w instanceof w)&&(_=!1)}return o.delete(e),o.delete(t),_}var TB=1,ww="[object Arguments]",bw="[object Array]",Ml="[object Object]",xB=Object.prototype,Ew=xB.hasOwnProperty;function OB(e,t,n,r,i,o){var a=_t(e),s=_t(t),u=a?bw:ln(e),l=s?bw:ln(t);u=u==ww?Ml:u,l=l==ww?Ml:l;var c=u==Ml,f=l==Ml,p=u==l;if(p&&du(e)){if(!du(t))return!1;a=!0,c=!1}if(p&&!c)return o||(o=new er),a||yy(e)?ck(e,t,n,r,i,o):_B(e,t,u,n,r,i,o);if(!(n&TB)){var d=c&&Ew.call(e,"__wrapped__"),m=f&&Ew.call(t,"__wrapped__");if(d||m){var _=d?e.value():e,b=m?t.value():t;return o||(o=new er),i(_,b,n,r,o)}}return p?(o||(o=new er),SB(e,t,n,r,i,o)):!1}function Dd(e,t,n,r,i){return e===t?!0:e==null||t==null||!xr(e)&&!xr(t)?e!==e&&t!==t:OB(e,t,n,r,Dd,i)}var kB=1,CB=2;function AB(e,t,n,r){var i=n.length,o=i;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var s=a[0],u=e[s],l=a[1];if(a[2]){if(u===void 0&&!(s in e))return!1}else{var c=new er,f;if(!(f===void 0?Dd(l,u,kB|CB,r,c):f))return!1}}return!0}function fk(e){return e===e&&!Zt(e)}function RB(e){for(var t=Fa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fk(i)]}return t}function dk(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function PB(e){var t=RB(e);return t.length==1&&t[0][2]?dk(t[0][0],t[0][1]):function(n){return n===e||AB(n,e,t)}}function IB(e,t){return e!=null&&t in Object(e)}function DB(e,t,n){t=ja(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Ua(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&gy(i)&&xd(a,i)&&(_t(e)||Cd(e)))}function LB(e,t){return e!=null&&DB(e,t,IB)}var MB=1,NB=2;function $B(e,t){return wy(e)&&fk(t)?dk(Ua(e),t):function(n){var r=Hj(n,e);return r===void 0&&r===t?LB(n,e):Dd(t,r,MB|NB)}}function FB(e){return function(t){return t==null?void 0:t[e]}}function jB(e){return function(t){return Xu(t,e)}}function UB(e){return wy(e)?FB(Ua(e)):jB(e)}function Rr(e){return typeof e=="function"?e:e==null?$a:typeof e=="object"?_t(e)?$B(e[0],e[1]):PB(e):UB(e)}function BB(e,t,n,r){for(var i=-1,o=e==null?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function HB(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[++i];if(n(o[u],u,o)===!1)break}return t}}var zB=HB();function pk(e,t){return e&&zB(e,t,Fa)}function qB(e,t){return function(n,r){if(n==null)return n;if(!uo(n))return e(n,r);for(var i=n.length,o=-1,a=Object(n);++o<i&&r(a[o],o,a)!==!1;);return n}}var hk=qB(pk);function VB(e,t,n,r){return hk(e,function(i,o,a){t(r,i,n(i),a)}),r}function WB(e,t){return function(n,r){var i=_t(n)?BB:VB,o=t?t():{};return i(n,e,Rr(r),o)}}var Xp=function(){return $n.Date.now()},QB="Expected a function",GB=Math.max,YB=Math.min;function XB(e,t,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(QB);t=Ni(t)||0,Zt(n)&&(c=!!n.leading,f="maxWait"in n,o=f?GB(Ni(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function d(E){var S=r,T=i;return r=i=void 0,l=E,a=e.apply(T,S),a}function m(E){return l=E,s=setTimeout(g,t),c?d(E):a}function _(E){var S=E-u,T=E-l,O=t-S;return f?YB(O,o-T):O}function b(E){var S=E-u,T=E-l;return u===void 0||S>=t||S<0||f&&T>=o}function g(){var E=Xp();if(b(E))return y(E);s=setTimeout(g,_(E))}function y(E){return s=void 0,p&&r?d(E):(r=i=void 0,a)}function v(){s!==void 0&&clearTimeout(s),l=0,r=u=i=s=void 0}function h(){return s===void 0?a:y(Xp())}function w(){var E=Xp(),S=b(E);if(r=arguments,i=this,u=E,S){if(s===void 0)return m(u);if(f)return clearTimeout(s),s=setTimeout(g,t),d(u)}return s===void 0&&(s=setTimeout(g,t)),a}return w.cancel=v,w.flush=h,w}var KB="Expected a function";function JB(e,t,n){if(typeof e!="function")throw new TypeError(KB);return setTimeout(function(){e.apply(void 0,n)},t)}var rK=BO(function(e,t,n){return JB(e,Ni(t)||0,n)});function ZB(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function eH(e,t,n,r){for(var i=e.length,o=-1;++o<i&&t(e[o],o,e););return n?ff(e,o,i):ff(e,0,o)}function tH(e){return function(t,n,r){var i=Object(t);if(!uo(t)){var o=Rr(n);t=Fa(t),n=function(s){return o(i[s],s,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var nH=Math.max,rH=Math.min;function iH(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=F3(n),i=n<0?nH(r+i,0):rH(i,r-1)),jO(e,Rr(t),i,!0)}var iK=tH(iH);function oH(e,t){var n=-1,r=uo(e)?Array(e.length):[];return hk(e,function(i,o,a){r[++n]=t(i,o,a)}),r}function aH(e,t){return e>t}function sH(e,t){return t.length<2?e:Xu(e,ff(t,0,-1))}var uH="[object Map]",lH="[object Set]",cH=Object.prototype,fH=cH.hasOwnProperty;function oK(e){if(e==null)return!0;if(uo(e)&&(_t(e)||typeof e=="string"||typeof e.splice=="function"||du(e)||yy(e)||Cd(e)))return!e.length;var t=ln(e);if(t==uH||t==lH)return!e.size;if(kd(e))return!QO(e).length;for(var n in e)if(fH.call(e,n))return!1;return!0}function aK(e,t){return Dd(e,t)}function sK(e){return e===void 0}function uK(e,t){var n={};return t=Rr(t),pk(e,function(r,i,o){vy(n,i,t(r,i,o))}),n}function dH(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!Yi(a):n(a,s)))var s=a,u=o}return u}function lK(e){return e&&e.length?dH(e,$a,aH):void 0}function pH(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==void 0&&(n=n===void 0?o:n+o)}return n}var hH="Expected a function";function vH(e){if(typeof e!="function")throw new TypeError(hH);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function mH(e,t){return t=ja(t,e),e=sH(e,t),e==null||delete e[Ua(ZB(t))]}function gH(e){return Kj(e)?void 0:e}var yH=1,_H=2,wH=4,cK=Vj(function(e,t){var n={};if(e==null)return n;var r=!1;t=ta(t,function(o){return o=ja(o,e),r||(r=o.length>1),o}),Yu(e,xy(e),n),r&&(n=bc(n,yH|_H|wH,gH));for(var i=t.length;i--;)mH(n,t[i]);return n});function bH(e,t,n,r){if(!Zt(e))return e;t=ja(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var u=Ua(t[i]),l=n;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=a){var c=s[u];l=void 0,l===void 0&&(l=Zt(c)?c:xd(t[i+1])?[]:{})}my(s,u,l),s=s[u]}return e}function EH(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Xu(e,a);n(s,a)&&bH(o,ja(a,e),s)}return o}function SH(e,t){if(e==null)return{};var n=ta(xy(e),function(r){return[r]});return t=Rr(t),EH(e,n,function(r,i){return t(r,i[0])})}function fK(e,t){return SH(e,vH(Rr(t)))}function TH(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function xH(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Yi(e),a=t!==void 0,s=t===null,u=t===t,l=Yi(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function OH(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=xH(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*(l=="desc"?-1:1)}}return e.index-t.index}function vk(e,t,n){t.length?t=ta(t,function(o){return _t(o)?function(a){return Xu(a,o.length===1?o[0]:o)}:o}):t=[$a];var r=-1;t=ta(t,Ad(Rr));var i=oH(e,function(o,a,s){var u=ta(t,function(l){return l(o)});return{criteria:u,index:++r,value:o}});return TH(i,function(o,a){return OH(o,a,n)})}function dK(e,t,n,r){return e==null?[]:(_t(t)||(t=t==null?[]:[t]),n=n,_t(n)||(n=n==null?[]:[n]),vk(e,t,n))}var pK=WB(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),kH=Math.ceil,CH=Math.max;function AH(e,t,n,r){for(var i=-1,o=CH(kH((t-e)/(n||1)),0),a=Array(o);o--;)a[++i]=e,e+=n;return a}function RH(e){return function(t,n,r){return r&&typeof r!="number"&&qv(t,n,r)&&(n=r=void 0),t=wc(t),n===void 0?(n=t,t=0):n=wc(n),r=r===void 0?t<n?1:-1:wc(r),AH(t,n,r)}}var hK=RH(),vK=BO(function(e,t){if(e==null)return[];var n=t.length;return n>1&&qv(e,t[0],t[1])?t=[]:n>2&&qv(t[0],t[1],t[2])&&(t=[t[0]]),vk(e,GO(t),[])});function mK(e){return e&&e.length?pH(e,$a):0}function gK(e,t){return e&&e.length?eH(e,Rr(t)):[]}var PH="Expected a function";function yK(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(PH);return Zt(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),XB(e,t,{leading:r,maxWait:t,trailing:i})}function IH(e,t){for(var n=e.length;n--&&hy(t,e[n],0)>-1;);return n}function DH(e,t){for(var n=-1,r=e.length;++n<r&&hy(t,e[n],0)>-1;);return n}function _K(e,t,n){if(e=Id(e),e&&t===void 0)return NO(e);if(!e||!(t=py(t)))return e;var r=ow(e),i=ow(t),o=DH(r,i),a=IH(r,i)+1;return Jj(r,o,a).join("")}var LH={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},MH=E4(LH),mk=/&(?:amp|lt|gt|quot|#39);/g,NH=RegExp(mk.source);function wK(e){return e=Id(e),e&&NH.test(e)?e.replace(mk,MH):e}var $H=1/0,FH=na&&1/ky(new na([,-0]))[1]==$H?function(e){return new na(e)}:rF,jH=200;function UH(e,t,n){var r=-1,i=hF,o=e.length,a=!0,s=[],u=s;if(o>=jH){var l=t?null:FH(e);if(l)return ky(l);a=!1,i=lk,u=new vu}else u=t?[]:s;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=c!==0?c:0,a&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function bK(e,t){return e&&e.length?UH(e,Rr(t)):[]}var BH=0;function EK(e){var t=++BH;return Id(e)+t}/*! js-cookie v3.0.5 | MIT */function Nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var HH={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Xv(e,t){function n(i,o,a){if(!(typeof document>"u")){a=Nl({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,a[u]!==!0&&(s+="="+a[u].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var u=o[s].split("="),l=u.slice(1).join("=");try{var c=decodeURIComponent(u[0]);if(a[c]=e.read(l,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Nl({},o,{expires:-1}))},withAttributes:function(i){return Xv(this.converter,Nl({},this.attributes,i))},withConverter:function(i){return Xv(Nl({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var SK=Xv(HH,{path:"/"});function Ld(){throw new Error("Cycle detected")}var zH=Symbol.for("preact-signals");function Cy(){if(ra>1)ra--;else{for(var e,t=!1;Cs!==void 0;){var n=Cs;for(Cs=void 0,Kv++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&yk(n))try{n.c()}catch(i){t||(e=i,t=!0)}n=r}}if(Kv=0,ra--,t)throw e}}var Ue=void 0,Cs=void 0,ra=0,Kv=0,pf=0;function gk(e){if(Ue!==void 0){var t=e.n;if(t===void 0||t.t!==Ue)return t={i:0,S:e,p:Ue.s,n:void 0,t:Ue,e:void 0,x:void 0,r:t},Ue.s!==void 0&&(Ue.s.n=t),Ue.s=t,e.n=t,32&Ue.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Ue.s,t.n=void 0,Ue.s.n=t,Ue.s=t),t}}function wt(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}wt.prototype.brand=zH;wt.prototype.h=function(){return!0};wt.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};wt.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};wt.prototype.subscribe=function(e){var t=this;return Ek(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})};wt.prototype.valueOf=function(){return this.value};wt.prototype.toString=function(){return this.value+""};wt.prototype.toJSON=function(){return this.value};wt.prototype.peek=function(){return this.v};Object.defineProperty(wt.prototype,"value",{get:function(){var e=gk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(Ue instanceof lo&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Kv>100&&Ld(),this.v=e,this.i++,pf++,ra++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Cy()}}}});function TK(e){return new wt(e)}function yk(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _k(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function wk(e){for(var t=e.s,n=void 0;t!==void 0;){var r=t.p;t.i===-1?(t.S.U(t),r!==void 0&&(r.n=t.n),t.n!==void 0&&(t.n.p=r)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=r}e.s=n}function lo(e){wt.call(this,void 0),this.x=e,this.s=void 0,this.g=pf-1,this.f=4}(lo.prototype=new wt).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===pf))return!0;if(this.g=pf,this.f|=1,this.i>0&&!yk(this))return this.f&=-2,!0;var e=Ue;try{_k(this),Ue=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return Ue=e,wk(this),this.f&=-2,!0};lo.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}wt.prototype.S.call(this,e)};lo.prototype.U=function(e){if(this.t!==void 0&&(wt.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};lo.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};lo.prototype.peek=function(){if(this.h()||Ld(),16&this.f)throw this.v;return this.v};Object.defineProperty(lo.prototype,"value",{get:function(){1&this.f&&Ld();var e=gk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function bk(e){var t=e.u;if(e.u=void 0,typeof t=="function"){ra++;var n=Ue;Ue=void 0;try{t()}catch(r){throw e.f&=-2,e.f|=8,Ay(e),r}finally{Ue=n,Cy()}}}function Ay(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,bk(e)}function qH(e){if(Ue!==this)throw new Error("Out-of-order effect");wk(this),Ue=e,this.f&=-2,8&this.f&&Ay(this),Cy()}function Ku(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ku.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ku.prototype.S=function(){1&this.f&&Ld(),this.f|=1,this.f&=-9,bk(this),_k(this),ra++;var e=Ue;return Ue=this,qH.bind(this,e)};Ku.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cs,Cs=this)};Ku.prototype.d=function(){this.f|=8,1&this.f||Ay(this)};function Ek(e){var t=new Ku(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}function VH(e){const[t,n]=N.useState(e.value);return N.useEffect(()=>Ek(()=>n(e.value)),[e]),t}var WH=Symbol.for("react.element");function QH({data:e}){return VH(e)}Object.defineProperties(wt.prototype,{$$typeof:{configurable:!0,value:WH},type:{configurable:!0,value:QH},props:{configurable:!0,get(){return{data:this}}},ref:{configurable:!0,value:null}});function Sk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Sk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Wr(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sk(e))&&(r&&(r+=" "),r+=t);return r}const mu=e=>typeof e=="number"&&!isNaN(e),$i=e=>typeof e=="string",Gt=e=>typeof e=="function",Ec=e=>$i(e)||Gt(e)?e:null,Jv=e=>N.isValidElement(e)||$i(e)||Gt(e)||mu(e);function GH(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Md(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(a){let{children:s,position:u,preventExitTransition:l,done:c,nodeRef:f,isIn:p,playToast:d}=a;const m=r?`${t}--${u}`:t,_=r?`${n}--${u}`:n,b=N.useRef(0);return N.useLayoutEffect(()=>{const g=f.current,y=m.split(" "),v=h=>{h.target===f.current&&(d(),g.removeEventListener("animationend",v),g.removeEventListener("animationcancel",v),b.current===0&&h.type!=="animationcancel"&&g.classList.remove(...y))};g.classList.add(...y),g.addEventListener("animationend",v),g.addEventListener("animationcancel",v)},[]),N.useEffect(()=>{const g=f.current,y=()=>{g.removeEventListener("animationend",y),i?GH(g,c,o):c()};p||(l?y():(b.current=1,g.className+=` ${_}`,g.addEventListener("animationend",y)))},[p]),G.createElement(G.Fragment,null,s)}}function Sw(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const St=new Map;let gu=[];const Zv=new Set,YH=e=>Zv.forEach(t=>t(e)),Tk=()=>St.size>0;function xk(e,t){var n;if(t)return!((n=St.get(t))==null||!n.isToastActive(e));let r=!1;return St.forEach(i=>{i.isToastActive(e)&&(r=!0)}),r}function Ok(e,t){Jv(e)&&(Tk()||gu.push({content:e,options:t}),St.forEach(n=>{n.buildToast(e,t)}))}function Tw(e,t){St.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function XH(e){const{subscribe:t,getSnapshot:n,setProps:r}=N.useRef(function(o){const a=o.containerId||1;return{subscribe(s){const u=function(c,f,p){let d=1,m=0,_=[],b=[],g=[],y=f;const v=new Map,h=new Set,w=()=>{g=Array.from(v.values()),h.forEach(T=>T())},E=T=>{b=T==null?[]:b.filter(O=>O!==T),w()},S=T=>{const{toastId:O,onOpen:x,updateId:D,children:V}=T.props,B=D==null;T.staleId&&v.delete(T.staleId),v.set(O,T),b=[...b,T.props.toastId].filter(F=>F!==T.staleId),w(),p(Sw(T,B?"added":"updated")),B&&Gt(x)&&x(N.isValidElement(V)&&V.props)};return{id:c,props:y,observe:T=>(h.add(T),()=>h.delete(T)),toggle:(T,O)=>{v.forEach(x=>{O!=null&&O!==x.props.toastId||Gt(x.toggle)&&x.toggle(T)})},removeToast:E,toasts:v,clearQueue:()=>{m-=_.length,_=[]},buildToast:(T,O)=>{if((M=>{let{containerId:H,toastId:I,updateId:P}=M;const W=H?H!==c:c!==1,Z=v.has(I)&&P==null;return W||Z})(O))return;const{toastId:x,updateId:D,data:V,staleId:B,delay:F}=O,L=()=>{E(x)},q=D==null;q&&m++;const R={...y,style:y.toastStyle,key:d++,...Object.fromEntries(Object.entries(O).filter(M=>{let[H,I]=M;return I!=null})),toastId:x,updateId:D,data:V,closeToast:L,isIn:!1,className:Ec(O.className||y.toastClassName),bodyClassName:Ec(O.bodyClassName||y.bodyClassName),progressClassName:Ec(O.progressClassName||y.progressClassName),autoClose:!O.isLoading&&(k=O.autoClose,C=y.autoClose,k===!1||mu(k)&&k>0?k:C),deleteToast(){const M=v.get(x),{onClose:H,children:I}=M.props;Gt(H)&&H(N.isValidElement(I)&&I.props),p(Sw(M,"removed")),v.delete(x),m--,m<0&&(m=0),_.length>0?S(_.shift()):w()}};var k,C;R.closeButton=y.closeButton,O.closeButton===!1||Jv(O.closeButton)?R.closeButton=O.closeButton:O.closeButton===!0&&(R.closeButton=!Jv(y.closeButton)||y.closeButton);let A=T;N.isValidElement(T)&&!$i(T.type)?A=N.cloneElement(T,{closeToast:L,toastProps:R,data:V}):Gt(T)&&(A=T({closeToast:L,toastProps:R,data:V}));const j={content:A,props:R,staleId:B};y.limit&&y.limit>0&&m>y.limit&&q?_.push(j):mu(F)?setTimeout(()=>{S(j)},F):S(j)},setProps(T){y=T},setToggle:(T,O)=>{v.get(T).toggle=O},isToastActive:T=>b.some(O=>O===T),getSnapshot:()=>y.newestOnTop?g.reverse():g}}(a,o,YH);St.set(a,u);const l=u.observe(s);return gu.forEach(c=>Ok(c.content,c.options)),gu=[],()=>{l(),St.delete(a)}},setProps(s){var u;(u=St.get(a))==null||u.setProps(s)},getSnapshot(){var s;return(s=St.get(a))==null?void 0:s.getSnapshot()}}}(e)).current;r(e);const i=N.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return i.forEach(s=>{const{position:u}=s.props;a.has(u)||a.set(u,[]),a.get(u).push(s)}),Array.from(a,s=>o(s[0],s[1]))},isToastActive:xk,count:i==null?void 0:i.length}}function KH(e){const[t,n]=N.useState(!1),[r,i]=N.useState(!1),o=N.useRef(null),a=N.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:u,closeToast:l,onClick:c,closeOnClick:f}=e;var p,d;function m(){n(!0)}function _(){n(!1)}function b(v){const h=o.current;a.canDrag&&h&&(a.didMove=!0,t&&_(),a.delta=e.draggableDirection==="x"?v.clientX-a.start:v.clientY-a.start,a.start!==v.clientX&&(a.canCloseOnClick=!1),h.style.transform=`translate3d(${e.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,h.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function g(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",g);const v=o.current;if(a.canDrag&&a.didMove&&v){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),e.closeToast(),void e.collapseAll();v.style.transition="transform 0.2s, opacity 0.2s",v.style.removeProperty("transform"),v.style.removeProperty("opacity")}}(d=St.get((p={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||d.setToggle(p.id,p.fn),N.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||_(),window.addEventListener("focus",m),window.addEventListener("blur",_),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",_)}},[e.pauseOnFocusLoss]);const y={onPointerDown:function(v){if(e.draggable===!0||e.draggable===v.pointerType){a.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",g);const h=o.current;a.canCloseOnClick=!0,a.canDrag=!0,h.style.transition="none",e.draggableDirection==="x"?(a.start=v.clientX,a.removalDistance=h.offsetWidth*(e.draggablePercent/100)):(a.start=v.clientY,a.removalDistance=h.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(v){const{top:h,bottom:w,left:E,right:S}=o.current.getBoundingClientRect();v.nativeEvent.type!=="touchend"&&e.pauseOnHover&&v.clientX>=E&&v.clientX<=S&&v.clientY>=h&&v.clientY<=w?_():m()}};return s&&u&&(y.onMouseEnter=_,e.stacked||(y.onMouseLeave=m)),f&&(y.onClick=v=>{c&&c(v),a.canCloseOnClick&&l()}),{playToast:m,pauseToast:_,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:y}}function JH(e){let{delay:t,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:s,controlledProgress:u,progress:l,rtl:c,isIn:f,theme:p}=e;const d=o||u&&l===0,m={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(m.transform=`scaleX(${l})`);const _=Wr("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${p}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),b=Gt(a)?a({rtl:c,type:i,defaultClassName:_}):Wr(_,a),g={[u&&l>=1?"onTransitionEnd":"onAnimationEnd"]:u&&l<1?null:()=>{f&&r()}};return G.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},G.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${p} Toastify__progress-bar--${i}`}),G.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:b,style:m,...g}))}let ZH=1;const kk=()=>""+ZH++;function e6(e){return e&&($i(e.toastId)||mu(e.toastId))?e.toastId:kk()}function As(e,t){return Ok(e,t),t.toastId}function hf(e,t){return{...t,type:t&&t.type||e,toastId:e6(t)}}function $l(e){return(t,n)=>As(t,hf(e,n))}function ke(e,t){return As(e,hf("default",t))}ke.loading=(e,t)=>As(e,hf("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),ke.promise=function(e,t,n){let r,{pending:i,error:o,success:a}=t;i&&(r=$i(i)?ke.loading(i,n):ke.loading(i.render,{...n,...i}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(c,f,p)=>{if(f==null)return void ke.dismiss(r);const d={type:c,...s,...n,data:p},m=$i(f)?{render:f}:f;return r?ke.update(r,{...d,...m}):ke(m.render,{...d,...m}),p},l=Gt(e)?e():e;return l.then(c=>u("success",a,c)).catch(c=>u("error",o,c)),l},ke.success=$l("success"),ke.info=$l("info"),ke.error=$l("error"),ke.warning=$l("warning"),ke.warn=ke.warning,ke.dark=(e,t)=>As(e,hf("default",{theme:"dark",...t})),ke.dismiss=function(e){(function(t){var n;if(Tk()){if(t==null||$i(n=t)||mu(n))St.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=St.get(t.containerId);r?r.removeToast(t.id):St.forEach(i=>{i.removeToast(t.id)})}}else gu=gu.filter(r=>t!=null&&r.options.toastId!==t)})(e)},ke.clearWaitingQueue=function(e){e===void 0&&(e={}),St.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},ke.isActive=xk,ke.update=function(e,t){t===void 0&&(t={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=St.get(a||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:i}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:kk()};o.toastId!==e&&(o.staleId=e);const a=o.render||i;delete o.render,As(a,o)}},ke.done=e=>{ke.update(e,{progress:1})},ke.onChange=function(e){return Zv.add(e),()=>{Zv.delete(e)}},ke.play=e=>Tw(!0,e),ke.pause=e=>Tw(!1,e);const t6=typeof window<"u"?N.useLayoutEffect:N.useEffect,Fl=e=>{let{theme:t,type:n,isLoading:r,...i}=e;return G.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Kp={info:function(e){return G.createElement(Fl,{...e},G.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return G.createElement(Fl,{...e},G.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return G.createElement(Fl,{...e},G.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return G.createElement(Fl,{...e},G.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return G.createElement("div",{className:"Toastify__spinner"})}},n6=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=KH(e),{closeButton:a,children:s,autoClose:u,onClick:l,type:c,hideProgressBar:f,closeToast:p,transition:d,position:m,className:_,style:b,bodyClassName:g,bodyStyle:y,progressClassName:v,progressStyle:h,updateId:w,role:E,progress:S,rtl:T,toastId:O,deleteToast:x,isIn:D,isLoading:V,closeOnClick:B,theme:F}=e,L=Wr("Toastify__toast",`Toastify__toast-theme--${F}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":B}),q=Gt(_)?_({rtl:T,position:m,type:c,defaultClassName:L}):Wr(L,_),R=function(j){let{theme:M,type:H,isLoading:I,icon:P}=j,W=null;const Z={theme:M,type:H};return P===!1||(Gt(P)?W=P({...Z,isLoading:I}):N.isValidElement(P)?W=N.cloneElement(P,Z):I?W=Kp.spinner():(ne=>ne in Kp)(H)&&(W=Kp[H](Z))),W}(e),k=!!S||!u,C={closeToast:p,type:c,theme:F};let A=null;return a===!1||(A=Gt(a)?a(C):N.isValidElement(a)?N.cloneElement(a,C):function(j){let{closeToast:M,theme:H,ariaLabel:I="close"}=j;return G.createElement("button",{className:`Toastify__close-button Toastify__close-button--${H}`,type:"button",onClick:P=>{P.stopPropagation(),M(P)},"aria-label":I},G.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},G.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(C)),G.createElement(d,{isIn:D,done:x,position:m,preventExitTransition:n,nodeRef:r,playToast:o},G.createElement("div",{id:O,onClick:l,"data-in":D,className:q,...i,style:b,ref:r},G.createElement("div",{...D&&{role:E},className:Gt(g)?g({type:c}):Wr("Toastify__toast-body",g),style:y},R!=null&&G.createElement("div",{className:Wr("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!V})},R),G.createElement("div",null,s)),A,G.createElement(JH,{...w&&!k?{key:`pb-${w}`}:{},rtl:T,theme:F,delay:u,isRunning:t,isIn:D,closeToast:p,hide:f,type:c,style:h,className:v,controlledProgress:k,progress:S||0})))},Nd=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},r6=Md(Nd("bounce",!0));Md(Nd("slide",!0));Md(Nd("zoom"));Md(Nd("flip"));const i6={position:"top-right",transition:r6,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function xK(e){let t={...i6,...e};const n=e.stacked,[r,i]=N.useState(!0),o=N.useRef(null),{getToastToRender:a,isToastActive:s,count:u}=XH(t),{className:l,style:c,rtl:f,containerId:p}=t;function d(_){const b=Wr("Toastify__toast-container",`Toastify__toast-container--${_}`,{"Toastify__toast-container--rtl":f});return Gt(l)?l({position:_,rtl:f,defaultClassName:b}):Wr(b,Ec(l))}function m(){n&&(i(!0),ke.play())}return t6(()=>{if(n){var _;const b=o.current.querySelectorAll('[data-in="true"]'),g=12,y=(_=t.position)==null?void 0:_.includes("top");let v=0,h=0;Array.from(b).reverse().forEach((w,E)=>{const S=w;S.classList.add("Toastify__toast--stacked"),E>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=y?"top":"bot");const T=v*(r?.2:1)+(r?0:g*E);S.style.setProperty("--y",`${y?T:-1*T}px`),S.style.setProperty("--g",`${g}`),S.style.setProperty("--s",""+(1-(r?h:0))),v+=S.offsetHeight,h+=.025})}},[r,u,n]),G.createElement("div",{ref:o,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),ke.pause())},onMouseLeave:m},a((_,b)=>{const g=b.length?{...c}:{...c,pointerEvents:"none"};return G.createElement("div",{className:d(_),style:g,key:`container-${_}`},b.map(y=>{let{content:v,props:h}=y;return G.createElement(n6,{...h,stacked:n,collapseAll:m,isIn:s(h.toastId,h.containerId),style:h.style,key:`toast-${h.key}`},v)}))}))}var $t="top",wn="bottom",bn="right",Ft="left",Ry="auto",Ju=[$t,wn,bn,Ft],Ea="start",yu="end",o6="clippingParents",Ck="viewport",ns="popper",a6="reference",xw=Ju.reduce(function(e,t){return e.concat([t+"-"+Ea,t+"-"+yu])},[]),Ak=[].concat(Ju,[Ry]).reduce(function(e,t){return e.concat([t,t+"-"+Ea,t+"-"+yu])},[]),s6="beforeRead",u6="read",l6="afterRead",c6="beforeMain",f6="main",d6="afterMain",p6="beforeWrite",h6="write",v6="afterWrite",m6=[s6,u6,l6,c6,f6,d6,p6,h6,v6];function or(e){return e?(e.nodeName||"").toLowerCase():null}function Fn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sa(e){var t=Fn(e).Element;return e instanceof t||e instanceof Element}function mn(e){var t=Fn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Py(e){if(typeof ShadowRoot>"u")return!1;var t=Fn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function g6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!mn(o)||!or(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function y6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(u,l){return u[l]="",u},{});!mn(i)||!or(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}const Rk={name:"applyStyles",enabled:!0,phase:"write",fn:g6,effect:y6,requires:["computeStyles"]};function tr(e){return e.split("-")[0]}var Fi=Math.max,vf=Math.min,Ta=Math.round;function xa(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(mn(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ta(n.width)/a||1),o>0&&(i=Ta(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Iy(e){var t=xa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pk(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Py(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Or(e){return Fn(e).getComputedStyle(e)}function _6(e){return["table","td","th"].indexOf(or(e))>=0}function pi(e){return((Sa(e)?e.ownerDocument:e.document)||window.document).documentElement}function $d(e){return or(e)==="html"?e:e.assignedSlot||e.parentNode||(Py(e)?e.host:null)||pi(e)}function Ow(e){return!mn(e)||Or(e).position==="fixed"?null:e.offsetParent}function w6(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&mn(e)){var r=Or(e);if(r.position==="fixed")return null}var i=$d(e);for(Py(i)&&(i=i.host);mn(i)&&["html","body"].indexOf(or(i))<0;){var o=Or(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zu(e){for(var t=Fn(e),n=Ow(e);n&&_6(n)&&Or(n).position==="static";)n=Ow(n);return n&&(or(n)==="html"||or(n)==="body"&&Or(n).position==="static")?t:n||w6(e)||t}function Dy(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rs(e,t,n){return Fi(e,vf(t,n))}function b6(e,t,n){var r=Rs(e,t,n);return r>n?n:r}function Ik(){return{top:0,right:0,bottom:0,left:0}}function Dk(e){return Object.assign({},Ik(),e)}function Lk(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var E6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Dk(typeof t!="number"?t:Lk(t,Ju))};function S6(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=tr(n.placement),u=Dy(s),l=[Ft,bn].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!a)){var f=E6(i.padding,n),p=Iy(o),d=u==="y"?$t:Ft,m=u==="y"?wn:bn,_=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],b=a[u]-n.rects.reference[u],g=Zu(o),y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0,v=_/2-b/2,h=f[d],w=y-p[c]-f[m],E=y/2-p[c]/2+v,S=Rs(h,E,w),T=u;n.modifiersData[r]=(t={},t[T]=S,t.centerOffset=S-E,t)}}function T6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Pk(t.elements.popper,i)&&(t.elements.arrow=i))}const x6={name:"arrow",enabled:!0,phase:"main",fn:S6,effect:T6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Oa(e){return e.split("-")[1]}var O6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k6(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ta(t*i)/i||0,y:Ta(n*i)/i||0}}function kw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,d=p===void 0?0:p,m=a.y,_=m===void 0?0:m,b=typeof c=="function"?c({x:d,y:_}):{x:d,y:_};d=b.x,_=b.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=Ft,h=$t,w=window;if(l){var E=Zu(n),S="clientHeight",T="clientWidth";if(E===Fn(n)&&(E=pi(n),Or(E).position!=="static"&&s==="absolute"&&(S="scrollHeight",T="scrollWidth")),E=E,i===$t||(i===Ft||i===bn)&&o===yu){h=wn;var O=f&&E===w&&w.visualViewport?w.visualViewport.height:E[S];_-=O-r.height,_*=u?1:-1}if(i===Ft||(i===$t||i===wn)&&o===yu){v=bn;var x=f&&E===w&&w.visualViewport?w.visualViewport.width:E[T];d-=x-r.width,d*=u?1:-1}}var D=Object.assign({position:s},l&&O6),V=c===!0?k6({x:d,y:_}):{x:d,y:_};if(d=V.x,_=V.y,u){var B;return Object.assign({},D,(B={},B[h]=y?"0":"",B[v]=g?"0":"",B.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+_+"px)":"translate3d("+d+"px, "+_+"px, 0)",B))}return Object.assign({},D,(t={},t[h]=y?_+"px":"",t[v]=g?d+"px":"",t.transform="",t))}function C6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,u=s===void 0?!0:s,l={placement:tr(t.placement),variation:Oa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kw(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kw(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const A6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C6,data:{}};var jl={passive:!0};function R6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,u=Fn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",n.update,jl)}),s&&u.addEventListener("resize",n.update,jl),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",n.update,jl)}),s&&u.removeEventListener("resize",n.update,jl)}}const P6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:R6,data:{}};var I6={left:"right",right:"left",bottom:"top",top:"bottom"};function Sc(e){return e.replace(/left|right|bottom|top/g,function(t){return I6[t]})}var D6={start:"end",end:"start"};function Cw(e){return e.replace(/start|end/g,function(t){return D6[t]})}function Ly(e){var t=Fn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function My(e){return xa(pi(e)).left+Ly(e).scrollLeft}function L6(e){var t=Fn(e),n=pi(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+My(e),y:s}}function M6(e){var t,n=pi(e),r=Ly(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Fi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Fi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+My(e),u=-r.scrollTop;return Or(i||n).direction==="rtl"&&(s+=Fi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function Ny(e){var t=Or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Mk(e){return["html","body","#document"].indexOf(or(e))>=0?e.ownerDocument.body:mn(e)&&Ny(e)?e:Mk($d(e))}function Ps(e,t){var n;t===void 0&&(t=[]);var r=Mk(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Fn(r),a=i?[o].concat(o.visualViewport||[],Ny(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Ps($d(a)))}function em(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function N6(e){var t=xa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Aw(e,t){return t===Ck?em(L6(e)):Sa(t)?N6(t):em(M6(pi(e)))}function $6(e){var t=Ps($d(e)),n=["absolute","fixed"].indexOf(Or(e).position)>=0,r=n&&mn(e)?Zu(e):e;return Sa(r)?t.filter(function(i){return Sa(i)&&Pk(i,r)&&or(i)!=="body"}):[]}function F6(e,t,n){var r=t==="clippingParents"?$6(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,u){var l=Aw(e,u);return s.top=Fi(l.top,s.top),s.right=vf(l.right,s.right),s.bottom=vf(l.bottom,s.bottom),s.left=Fi(l.left,s.left),s},Aw(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Nk(e){var t=e.reference,n=e.element,r=e.placement,i=r?tr(r):null,o=r?Oa(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(i){case $t:u={x:a,y:t.y-n.height};break;case wn:u={x:a,y:t.y+t.height};break;case bn:u={x:t.x+t.width,y:s};break;case Ft:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?Dy(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case Ea:u[l]=u[l]-(t[c]/2-n[c]/2);break;case yu:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function _u(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?o6:o,s=n.rootBoundary,u=s===void 0?Ck:s,l=n.elementContext,c=l===void 0?ns:l,f=n.altBoundary,p=f===void 0?!1:f,d=n.padding,m=d===void 0?0:d,_=Dk(typeof m!="number"?m:Lk(m,Ju)),b=c===ns?a6:ns,g=e.rects.popper,y=e.elements[p?b:c],v=F6(Sa(y)?y:y.contextElement||pi(e.elements.popper),a,u),h=xa(e.elements.reference),w=Nk({reference:h,element:g,strategy:"absolute",placement:i}),E=em(Object.assign({},g,w)),S=c===ns?E:h,T={top:v.top-S.top+_.top,bottom:S.bottom-v.bottom+_.bottom,left:v.left-S.left+_.left,right:S.right-v.right+_.right},O=e.modifiersData.offset;if(c===ns&&O){var x=O[i];Object.keys(T).forEach(function(D){var V=[bn,wn].indexOf(D)>=0?1:-1,B=[$t,wn].indexOf(D)>=0?"y":"x";T[D]+=x[B]*V})}return T}function j6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?Ak:u,c=Oa(r),f=c?s?xw:xw.filter(function(m){return Oa(m)===c}):Ju,p=f.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=f);var d=p.reduce(function(m,_){return m[_]=_u(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[tr(_)],m},{});return Object.keys(d).sort(function(m,_){return d[m]-d[_]})}function U6(e){if(tr(e)===Ry)return[];var t=Sc(e);return[Cw(e),t,Cw(t)]}function B6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,m=d===void 0?!0:d,_=n.allowedAutoPlacements,b=t.options.placement,g=tr(b),y=g===b,v=u||(y||!m?[Sc(b)]:U6(b)),h=[b].concat(v).reduce(function(I,P){return I.concat(tr(P)===Ry?j6(t,{placement:P,boundary:c,rootBoundary:f,padding:l,flipVariations:m,allowedAutoPlacements:_}):P)},[]),w=t.rects.reference,E=t.rects.popper,S=new Map,T=!0,O=h[0],x=0;x<h.length;x++){var D=h[x],V=tr(D),B=Oa(D)===Ea,F=[$t,wn].indexOf(V)>=0,L=F?"width":"height",q=_u(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:p,padding:l}),R=F?B?bn:Ft:B?wn:$t;w[L]>E[L]&&(R=Sc(R));var k=Sc(R),C=[];if(o&&C.push(q[V]<=0),s&&C.push(q[R]<=0,q[k]<=0),C.every(function(I){return I})){O=D,T=!1;break}S.set(D,C)}if(T)for(var A=m?3:1,j=function(P){var W=h.find(function(Z){var ne=S.get(Z);if(ne)return ne.slice(0,P).every(function(oe){return oe})});if(W)return O=W,"break"},M=A;M>0;M--){var H=j(M);if(H==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const H6={name:"flip",enabled:!0,phase:"main",fn:B6,requiresIfExists:["offset"],data:{_skip:!1}};function Rw(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pw(e){return[$t,bn,wn,Ft].some(function(t){return e[t]>=0})}function z6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_u(t,{elementContext:"reference"}),s=_u(t,{altBoundary:!0}),u=Rw(a,r),l=Rw(s,i,o),c=Pw(u),f=Pw(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const q6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z6};function V6(e,t,n){var r=tr(e),i=[Ft,$t].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ft,bn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function W6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Ak.reduce(function(c,f){return c[f]=V6(f,t.rects,o),c},{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const Q6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:W6};function G6(e){var t=e.state,n=e.name;t.modifiersData[n]=Nk({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Y6={name:"popperOffsets",enabled:!0,phase:"read",fn:G6,data:{}};function X6(e){return e==="x"?"y":"x"}function K6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,d=p===void 0?!0:p,m=n.tetherOffset,_=m===void 0?0:m,b=_u(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),g=tr(t.placement),y=Oa(t.placement),v=!y,h=Dy(g),w=X6(h),E=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,O=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,x=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(E){if(o){var B,F=h==="y"?$t:Ft,L=h==="y"?wn:bn,q=h==="y"?"height":"width",R=E[h],k=R+b[F],C=R-b[L],A=d?-T[q]/2:0,j=y===Ea?S[q]:T[q],M=y===Ea?-T[q]:-S[q],H=t.elements.arrow,I=d&&H?Iy(H):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ik(),W=P[F],Z=P[L],ne=Rs(0,S[q],I[q]),oe=v?S[q]/2-A-ne-W-x.mainAxis:j-ne-W-x.mainAxis,ve=v?-S[q]/2+A+ne+Z+x.mainAxis:M+ne+Z+x.mainAxis,Je=t.elements.arrow&&Zu(t.elements.arrow),Sn=Je?h==="y"?Je.clientTop||0:Je.clientLeft||0:0,hi=(B=D==null?void 0:D[h])!=null?B:0,go=R+oe-hi-Sn,yo=R+ve-hi,vi=Rs(d?vf(k,go):k,R,d?Fi(C,yo):C);E[h]=vi,V[h]=vi-R}if(s){var mi,_o=h==="x"?$t:Ft,wo=h==="x"?wn:bn,Tn=E[w],jn=w==="y"?"height":"width",gi=Tn+b[_o],lr=Tn-b[wo],Ir=[$t,Ft].indexOf(g)!==-1,bo=(mi=D==null?void 0:D[w])!=null?mi:0,Eo=Ir?gi:Tn-S[jn]-T[jn]-bo+x.altAxis,yi=Ir?Tn+S[jn]+T[jn]-bo-x.altAxis:lr,So=d&&Ir?b6(Eo,Tn,yi):Rs(d?Eo:gi,Tn,d?yi:lr);E[w]=So,V[w]=So-Tn}t.modifiersData[r]=V}}const J6={name:"preventOverflow",enabled:!0,phase:"main",fn:K6,requiresIfExists:["offset"]};function Z6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ez(e){return e===Fn(e)||!mn(e)?Ly(e):Z6(e)}function tz(e){var t=e.getBoundingClientRect(),n=Ta(t.width)/e.offsetWidth||1,r=Ta(t.height)/e.offsetHeight||1;return n!==1||r!==1}function nz(e,t,n){n===void 0&&(n=!1);var r=mn(t),i=mn(t)&&tz(t),o=pi(t),a=xa(e,i),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((or(t)!=="body"||Ny(o))&&(s=ez(t)),mn(t)?(u=xa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=My(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function rz(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function iz(e){var t=rz(e);return m6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function oz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function az(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Iw={placement:"bottom",modifiers:[],strategy:"absolute"};function Dw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function sz(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?Iw:i;return function(s,u,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Iw,o),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],p=!1,d={state:c,setOptions:function(g){var y=typeof g=="function"?g(c.options):g;_(),c.options=Object.assign({},o,c.options,y),c.scrollParents={reference:Sa(s)?Ps(s):s.contextElement?Ps(s.contextElement):[],popper:Ps(u)};var v=iz(az([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(h){return h.enabled}),m(),d.update()},forceUpdate:function(){if(!p){var g=c.elements,y=g.reference,v=g.popper;if(Dw(y,v)){c.rects={reference:nz(y,Zu(v),c.options.strategy==="fixed"),popper:Iy(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(x){return c.modifiersData[x.name]=Object.assign({},x.data)});for(var h=0;h<c.orderedModifiers.length;h++){if(c.reset===!0){c.reset=!1,h=-1;continue}var w=c.orderedModifiers[h],E=w.fn,S=w.options,T=S===void 0?{}:S,O=w.name;typeof E=="function"&&(c=E({state:c,options:T,name:O,instance:d})||c)}}}},update:oz(function(){return new Promise(function(b){d.forceUpdate(),b(c)})}),destroy:function(){_(),p=!0}};if(!Dw(s,u))return d;d.setOptions(l).then(function(b){!p&&l.onFirstUpdate&&l.onFirstUpdate(b)});function m(){c.orderedModifiers.forEach(function(b){var g=b.name,y=b.options,v=y===void 0?{}:y,h=b.effect;if(typeof h=="function"){var w=h({state:c,name:g,instance:d,options:v}),E=function(){};f.push(w||E)}})}function _(){f.forEach(function(b){return b()}),f=[]}return d}}var uz=[P6,Y6,A6,Rk,Q6,H6,J6,x6,q6],lz=sz({defaultModifiers:uz}),cz="tippy-box",$k="tippy-content",fz="tippy-backdrop",Fk="tippy-arrow",jk="tippy-svg-arrow",xi={passive:!0,capture:!0},Uk=function(){return document.body};function Jp(e,t,n){if(Array.isArray(e)){var r=e[t];return r==null?Array.isArray(n)?n[t]:n:r}return e}function $y(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Bk(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Lw(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function dz(e){return e.split(/\s+/).filter(Boolean)}function Ro(e){return[].concat(e)}function Mw(e,t){e.indexOf(t)===-1&&e.push(t)}function pz(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function hz(e){return e.split("-")[0]}function mf(e){return[].slice.call(e)}function Nw(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Is(){return document.createElement("div")}function Fd(e){return["Element","Fragment"].some(function(t){return $y(e,t)})}function vz(e){return $y(e,"NodeList")}function mz(e){return $y(e,"MouseEvent")}function gz(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function yz(e){return Fd(e)?[e]:vz(e)?mf(e):Array.isArray(e)?e:mf(document.querySelectorAll(e))}function Zp(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function $w(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function _z(e){var t,n=Ro(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function wz(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,u=s.interactiveBorder,l=hz(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=l==="bottom"?c.top.y:0,p=l==="top"?c.bottom.y:0,d=l==="right"?c.left.x:0,m=l==="left"?c.right.x:0,_=o.top-r+f>u,b=r-o.bottom-p>u,g=o.left-n+d>u,y=n-o.right-m>u;return _||b||g||y})}function eh(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function Fw(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Vn={isTouch:!1},jw=0;function bz(){Vn.isTouch||(Vn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Hk))}function Hk(){var e=performance.now();e-jw<20&&(Vn.isTouch=!1,document.removeEventListener("mousemove",Hk)),jw=e}function Ez(){var e=document.activeElement;if(gz(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Sz(){document.addEventListener("touchstart",bz,xi),window.addEventListener("blur",Ez)}var Tz=typeof window<"u"&&typeof document<"u",xz=Tz?!!window.msCrypto:!1,Oz={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},kz={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pn=Object.assign({appendTo:Uk,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Oz,kz),Cz=Object.keys(Pn),Az=function(t){var n=Object.keys(t);n.forEach(function(r){Pn[r]=t[r]})};function zk(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Pn[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Rz(e,t){var n=t?Object.keys(zk(Object.assign({},Pn,{plugins:t}))):Cz,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function Uw(e,t){var n=Object.assign({},t,{content:Bk(t.content,[e])},t.ignoreAttributes?{}:Rz(e,t.plugins));return n.aria=Object.assign({},Pn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Pz=function(){return"innerHTML"};function tm(e,t){e[Pz()]=t}function Bw(e){var t=Is();return e===!0?t.className=Fk:(t.className=jk,Fd(e)?t.appendChild(e):tm(t,e)),t}function Hw(e,t){Fd(t.content)?(tm(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?tm(e,t.content):e.textContent=t.content)}function nm(e){var t=e.firstElementChild,n=mf(t.children);return{box:t,content:n.find(function(r){return r.classList.contains($k)}),arrow:n.find(function(r){return r.classList.contains(Fk)||r.classList.contains(jk)}),backdrop:n.find(function(r){return r.classList.contains(fz)})}}function qk(e){var t=Is(),n=Is();n.className=cz,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Is();r.className=$k,r.setAttribute("data-state","hidden"),Hw(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=nm(t),u=s.box,l=s.content,c=s.arrow;a.theme?u.setAttribute("data-theme",a.theme):u.removeAttribute("data-theme"),typeof a.animation=="string"?u.setAttribute("data-animation",a.animation):u.removeAttribute("data-animation"),a.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?u.setAttribute("role",a.role):u.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&Hw(l,e.props),a.arrow?c?o.arrow!==a.arrow&&(u.removeChild(c),u.appendChild(Bw(a.arrow))):u.appendChild(Bw(a.arrow)):c&&u.removeChild(c)}return{popper:t,onUpdate:i}}qk.$$tippy=!0;var Iz=1,Ul=[],th=[];function Dz(e,t){var n=Uw(e,Object.assign({},Pn,zk(Nw(t)))),r,i,o,a=!1,s=!1,u=!1,l=!1,c,f,p,d=[],m=Lw(go,n.interactiveDebounce),_,b=Iz++,g=null,y=pz(n.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},h={id:b,reference:e,popper:Is(),popperInstance:g,props:n,state:v,plugins:y,clearDelayTimeouts:Eo,setProps:yi,setContent:So,show:Jd,hide:Zd,hideWithInteractivity:ep,enable:Ir,disable:bo,unmount:tp,destroy:np};if(!n.render)return h;var w=n.render(h),E=w.popper,S=w.onUpdate;E.setAttribute("data-tippy-root",""),E.id="tippy-"+h.id,h.popper=E,e._tippy=h,E._tippy=h;var T=y.map(function($){return $.fn(h)}),O=e.hasAttribute("aria-expanded");return Je(),A(),R(),k("onCreate",[h]),n.showOnCreate&&gi(),E.addEventListener("mouseenter",function(){h.props.interactive&&h.state.isVisible&&h.clearDelayTimeouts()}),E.addEventListener("mouseleave",function(){h.props.interactive&&h.props.trigger.indexOf("mouseenter")>=0&&F().addEventListener("mousemove",m)}),h;function x(){var $=h.props.touch;return Array.isArray($)?$:[$,0]}function D(){return x()[0]==="hold"}function V(){var $;return!!(($=h.props.render)!=null&&$.$$tippy)}function B(){return _||e}function F(){var $=B().parentNode;return $?_z($):document}function L(){return nm(E)}function q($){return h.state.isMounted&&!h.state.isVisible||Vn.isTouch||c&&c.type==="focus"?0:Jp(h.props.delay,$?0:1,Pn.delay)}function R($){$===void 0&&($=!1),E.style.pointerEvents=h.props.interactive&&!$?"":"none",E.style.zIndex=""+h.props.zIndex}function k($,Y,ee){if(ee===void 0&&(ee=!0),T.forEach(function(se){se[$]&&se[$].apply(se,Y)}),ee){var le;(le=h.props)[$].apply(le,Y)}}function C(){var $=h.props.aria;if($.content){var Y="aria-"+$.content,ee=E.id,le=Ro(h.props.triggerTarget||e);le.forEach(function(se){var Qe=se.getAttribute(Y);if(h.state.isVisible)se.setAttribute(Y,Qe?Qe+" "+ee:ee);else{var rt=Qe&&Qe.replace(ee,"").trim();rt?se.setAttribute(Y,rt):se.removeAttribute(Y)}})}}function A(){if(!(O||!h.props.aria.expanded)){var $=Ro(h.props.triggerTarget||e);$.forEach(function(Y){h.props.interactive?Y.setAttribute("aria-expanded",h.state.isVisible&&Y===B()?"true":"false"):Y.removeAttribute("aria-expanded")})}}function j(){F().removeEventListener("mousemove",m),Ul=Ul.filter(function($){return $!==m})}function M($){if(!(Vn.isTouch&&(u||$.type==="mousedown"))){var Y=$.composedPath&&$.composedPath()[0]||$.target;if(!(h.props.interactive&&Fw(E,Y))){if(Ro(h.props.triggerTarget||e).some(function(ee){return Fw(ee,Y)})){if(Vn.isTouch||h.state.isVisible&&h.props.trigger.indexOf("click")>=0)return}else k("onClickOutside",[h,$]);h.props.hideOnClick===!0&&(h.clearDelayTimeouts(),h.hide(),s=!0,setTimeout(function(){s=!1}),h.state.isMounted||W())}}}function H(){u=!0}function I(){u=!1}function P(){var $=F();$.addEventListener("mousedown",M,!0),$.addEventListener("touchend",M,xi),$.addEventListener("touchstart",I,xi),$.addEventListener("touchmove",H,xi)}function W(){var $=F();$.removeEventListener("mousedown",M,!0),$.removeEventListener("touchend",M,xi),$.removeEventListener("touchstart",I,xi),$.removeEventListener("touchmove",H,xi)}function Z($,Y){oe($,function(){!h.state.isVisible&&E.parentNode&&E.parentNode.contains(E)&&Y()})}function ne($,Y){oe($,Y)}function oe($,Y){var ee=L().box;function le(se){se.target===ee&&(eh(ee,"remove",le),Y())}if($===0)return Y();eh(ee,"remove",f),eh(ee,"add",le),f=le}function ve($,Y,ee){ee===void 0&&(ee=!1);var le=Ro(h.props.triggerTarget||e);le.forEach(function(se){se.addEventListener($,Y,ee),d.push({node:se,eventType:$,handler:Y,options:ee})})}function Je(){D()&&(ve("touchstart",hi,{passive:!0}),ve("touchend",yo,{passive:!0})),dz(h.props.trigger).forEach(function($){if($!=="manual")switch(ve($,hi),$){case"mouseenter":ve("mouseleave",yo);break;case"focus":ve(xz?"focusout":"blur",vi);break;case"focusin":ve("focusout",vi);break}})}function Sn(){d.forEach(function($){var Y=$.node,ee=$.eventType,le=$.handler,se=$.options;Y.removeEventListener(ee,le,se)}),d=[]}function hi($){var Y,ee=!1;if(!(!h.state.isEnabled||mi($)||s)){var le=((Y=c)==null?void 0:Y.type)==="focus";c=$,_=$.currentTarget,A(),!h.state.isVisible&&mz($)&&Ul.forEach(function(se){return se($)}),$.type==="click"&&(h.props.trigger.indexOf("mouseenter")<0||a)&&h.props.hideOnClick!==!1&&h.state.isVisible?ee=!0:gi($),$.type==="click"&&(a=!ee),ee&&!le&&lr($)}}function go($){var Y=$.target,ee=B().contains(Y)||E.contains(Y);if(!($.type==="mousemove"&&ee)){var le=jn().concat(E).map(function(se){var Qe,rt=se._tippy,Un=(Qe=rt.popperInstance)==null?void 0:Qe.state;return Un?{popperRect:se.getBoundingClientRect(),popperState:Un,props:n}:null}).filter(Boolean);wz(le,$)&&(j(),lr($))}}function yo($){var Y=mi($)||h.props.trigger.indexOf("click")>=0&&a;if(!Y){if(h.props.interactive){h.hideWithInteractivity($);return}lr($)}}function vi($){h.props.trigger.indexOf("focusin")<0&&$.target!==B()||h.props.interactive&&$.relatedTarget&&E.contains($.relatedTarget)||lr($)}function mi($){return Vn.isTouch?D()!==$.type.indexOf("touch")>=0:!1}function _o(){wo();var $=h.props,Y=$.popperOptions,ee=$.placement,le=$.offset,se=$.getReferenceClientRect,Qe=$.moveTransition,rt=V()?nm(E).arrow:null,Un=se?{getBoundingClientRect:se,contextElement:se.contextElement||B()}:e,v0={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(sl){var To=sl.state;if(V()){var bR=L(),ip=bR.box;["placement","reference-hidden","escaped"].forEach(function(ul){ul==="placement"?ip.setAttribute("data-placement",To.placement):To.attributes.popper["data-popper-"+ul]?ip.setAttribute("data-"+ul,""):ip.removeAttribute("data-"+ul)}),To.attributes.popper={}}}},_i=[{name:"offset",options:{offset:le}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Qe}},v0];V()&&rt&&_i.push({name:"arrow",options:{element:rt,padding:3}}),_i.push.apply(_i,(Y==null?void 0:Y.modifiers)||[]),h.popperInstance=lz(Un,E,Object.assign({},Y,{placement:ee,onFirstUpdate:p,modifiers:_i}))}function wo(){h.popperInstance&&(h.popperInstance.destroy(),h.popperInstance=null)}function Tn(){var $=h.props.appendTo,Y,ee=B();h.props.interactive&&$===Uk||$==="parent"?Y=ee.parentNode:Y=Bk($,[ee]),Y.contains(E)||Y.appendChild(E),h.state.isMounted=!0,_o()}function jn(){return mf(E.querySelectorAll("[data-tippy-root]"))}function gi($){h.clearDelayTimeouts(),$&&k("onTrigger",[h,$]),P();var Y=q(!0),ee=x(),le=ee[0],se=ee[1];Vn.isTouch&&le==="hold"&&se&&(Y=se),Y?r=setTimeout(function(){h.show()},Y):h.show()}function lr($){if(h.clearDelayTimeouts(),k("onUntrigger",[h,$]),!h.state.isVisible){W();return}if(!(h.props.trigger.indexOf("mouseenter")>=0&&h.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf($.type)>=0&&a)){var Y=q(!1);Y?i=setTimeout(function(){h.state.isVisible&&h.hide()},Y):o=requestAnimationFrame(function(){h.hide()})}}function Ir(){h.state.isEnabled=!0}function bo(){h.hide(),h.state.isEnabled=!1}function Eo(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function yi($){if(!h.state.isDestroyed){k("onBeforeUpdate",[h,$]),Sn();var Y=h.props,ee=Uw(e,Object.assign({},Y,Nw($),{ignoreAttributes:!0}));h.props=ee,Je(),Y.interactiveDebounce!==ee.interactiveDebounce&&(j(),m=Lw(go,ee.interactiveDebounce)),Y.triggerTarget&&!ee.triggerTarget?Ro(Y.triggerTarget).forEach(function(le){le.removeAttribute("aria-expanded")}):ee.triggerTarget&&e.removeAttribute("aria-expanded"),A(),R(),S&&S(Y,ee),h.popperInstance&&(_o(),jn().forEach(function(le){requestAnimationFrame(le._tippy.popperInstance.forceUpdate)})),k("onAfterUpdate",[h,$])}}function So($){h.setProps({content:$})}function Jd(){var $=h.state.isVisible,Y=h.state.isDestroyed,ee=!h.state.isEnabled,le=Vn.isTouch&&!h.props.touch,se=Jp(h.props.duration,0,Pn.duration);if(!($||Y||ee||le)&&!B().hasAttribute("disabled")&&(k("onShow",[h],!1),h.props.onShow(h)!==!1)){if(h.state.isVisible=!0,V()&&(E.style.visibility="visible"),R(),P(),h.state.isMounted||(E.style.transition="none"),V()){var Qe=L(),rt=Qe.box,Un=Qe.content;Zp([rt,Un],0)}p=function(){var _i;if(!(!h.state.isVisible||l)){if(l=!0,E.offsetHeight,E.style.transition=h.props.moveTransition,V()&&h.props.animation){var rp=L(),sl=rp.box,To=rp.content;Zp([sl,To],se),$w([sl,To],"visible")}C(),A(),Mw(th,h),(_i=h.popperInstance)==null||_i.forceUpdate(),k("onMount",[h]),h.props.animation&&V()&&ne(se,function(){h.state.isShown=!0,k("onShown",[h])})}},Tn()}}function Zd(){var $=!h.state.isVisible,Y=h.state.isDestroyed,ee=!h.state.isEnabled,le=Jp(h.props.duration,1,Pn.duration);if(!($||Y||ee)&&(k("onHide",[h],!1),h.props.onHide(h)!==!1)){if(h.state.isVisible=!1,h.state.isShown=!1,l=!1,a=!1,V()&&(E.style.visibility="hidden"),j(),W(),R(!0),V()){var se=L(),Qe=se.box,rt=se.content;h.props.animation&&(Zp([Qe,rt],le),$w([Qe,rt],"hidden"))}C(),A(),h.props.animation?V()&&Z(le,h.unmount):h.unmount()}}function ep($){F().addEventListener("mousemove",m),Mw(Ul,m),m($)}function tp(){h.state.isVisible&&h.hide(),h.state.isMounted&&(wo(),jn().forEach(function($){$._tippy.unmount()}),E.parentNode&&E.parentNode.removeChild(E),th=th.filter(function($){return $!==h}),h.state.isMounted=!1,k("onHidden",[h]))}function np(){h.state.isDestroyed||(h.clearDelayTimeouts(),h.unmount(),Sn(),delete e._tippy,h.state.isDestroyed=!0,k("onDestroy",[h]))}}function jd(e,t){t===void 0&&(t={});var n=Pn.plugins.concat(t.plugins||[]);Sz();var r=Object.assign({},t,{plugins:n}),i=yz(e),o=i.reduce(function(a,s){var u=s&&Dz(s,r);return u&&a.push(u),a},[]);return Fd(e)?o[0]:o}jd.defaultProps=Pn;jd.setDefaultProps=Az;jd.currentInput=Vn;Object.assign({},Rk,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});var OK={name:"sticky",defaultValue:!1,fn:function(t){var n=t.reference,r=t.popper;function i(){return t.popperInstance?t.popperInstance.state.elements.reference:n}function o(l){return t.props.sticky===!0||t.props.sticky===l}var a=null,s=null;function u(){var l=o("reference")?i().getBoundingClientRect():null,c=o("popper")?r.getBoundingClientRect():null;(l&&zw(a,l)||c&&zw(s,c))&&t.popperInstance&&t.popperInstance.update(),a=l,s=c,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function zw(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}jd.setDefaultProps({render:qk});function Lz(e){try{return JSON.stringify(e)}catch{return'"[Circular]"'}}var Mz=Nz;function Nz(e,t,n){var r=n&&n.stringify||Lz,i=1;if(typeof e=="object"&&e!==null){var o=t.length+i;if(o===1)return e;var a=new Array(o);a[0]=r(e);for(var s=1;s<o;s++)a[s]=r(t[s]);return a.join(" ")}if(typeof e!="string")return e;var u=t.length;if(u===0)return e;for(var l="",c=1-i,f=-1,p=e&&e.length||0,d=0;d<p;){if(e.charCodeAt(d)===37&&d+1<p){switch(f=f>-1?f:0,e.charCodeAt(d+1)){case 100:case 102:if(c>=u||t[c]==null)break;f<d&&(l+=e.slice(f,d)),l+=Number(t[c]),f=d+2,d++;break;case 105:if(c>=u||t[c]==null)break;f<d&&(l+=e.slice(f,d)),l+=Math.floor(Number(t[c])),f=d+2,d++;break;case 79:case 111:case 106:if(c>=u||t[c]===void 0)break;f<d&&(l+=e.slice(f,d));var m=typeof t[c];if(m==="string"){l+="'"+t[c]+"'",f=d+2,d++;break}if(m==="function"){l+=t[c].name||"<anonymous>",f=d+2,d++;break}l+=r(t[c]),f=d+2,d++;break;case 115:if(c>=u)break;f<d&&(l+=e.slice(f,d)),l+=String(t[c]),f=d+2,d++;break;case 37:f<d&&(l+=e.slice(f,d)),l+="%",f=d+2,d++,c--;break}++c}++d}return f===-1?e:(f<p&&(l+=e.slice(f)),l)}const qw=Mz;var $z=nr;const wu=Qz().console||{},Fz={mapHttpRequest:Bl,mapHttpResponse:Bl,wrapRequestSerializer:nh,wrapResponseSerializer:nh,wrapErrorSerializer:nh,req:Bl,res:Bl,err:zz};function jz(e,t){return Array.isArray(e)?e.filter(function(r){return r!=="!stdSerializers.err"}):e===!0?Object.keys(t):!1}function nr(e){e=e||{},e.browser=e.browser||{};const t=e.browser.transmit;if(t&&typeof t.send!="function")throw Error("pino: transmit option must have a send function");const n=e.browser.write||wu;e.browser.write&&(e.browser.asObject=!0);const r=e.serializers||{},i=jz(e.browser.serialize,r);let o=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(o=!1);const a=["error","fatal","warn","info","debug","trace"];typeof n=="function"&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),e.enabled===!1&&(e.level="silent");const s=e.level||"info",u=Object.create(n);u.log||(u.log=bu),Object.defineProperty(u,"levelVal",{get:c}),Object.defineProperty(u,"level",{get:f,set:p});const l={transmit:t,serialize:i,asObject:e.browser.asObject,levels:a,timestamp:qz(e)};u.levels=nr.levels,u.level=s,u.setMaxListeners=u.getMaxListeners=u.emit=u.addListener=u.on=u.prependListener=u.once=u.prependOnceListener=u.removeListener=u.removeAllListeners=u.listeners=u.listenerCount=u.eventNames=u.write=u.flush=bu,u.serializers=r,u._serialize=i,u._stdErrSerialize=o,u.child=d,t&&(u._logEvent=rm());function c(){return this.level==="silent"?1/0:this.levels.values[this.level]}function f(){return this._level}function p(m){if(m!=="silent"&&!this.levels.values[m])throw Error("unknown level "+m);this._level=m,Oo(l,u,"error","log"),Oo(l,u,"fatal","error"),Oo(l,u,"warn","error"),Oo(l,u,"info","log"),Oo(l,u,"debug","log"),Oo(l,u,"trace","log")}function d(m,_){if(!m)throw new Error("missing bindings for child Pino");_=_||{},i&&m.serializers&&(_.serializers=m.serializers);const b=_.serializers;if(i&&b){var g=Object.assign({},r,b),y=e.browser.serialize===!0?Object.keys(g):i;delete m.serializers,Ud([m],y,g,this._stdErrSerialize)}function v(h){this._childLevel=(h._childLevel|0)+1,this.error=ko(h,m,"error"),this.fatal=ko(h,m,"fatal"),this.warn=ko(h,m,"warn"),this.info=ko(h,m,"info"),this.debug=ko(h,m,"debug"),this.trace=ko(h,m,"trace"),g&&(this.serializers=g,this._serialize=y),t&&(this._logEvent=rm([].concat(h._logEvent.bindings,m)))}return v.prototype=this,new v(this)}return u}nr.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}};nr.stdSerializers=Fz;nr.stdTimeFunctions=Object.assign({},{nullTime:Vk,epochTime:Wk,unixTime:Vz,isoTime:Wz});function Oo(e,t,n,r){const i=Object.getPrototypeOf(t);t[n]=t.levelVal>t.levels.values[n]?bu:i[n]?i[n]:wu[n]||wu[r]||bu,Uz(e,t,n)}function Uz(e,t,n){!e.transmit&&t[n]===bu||(t[n]=function(r){return function(){const o=e.timestamp(),a=new Array(arguments.length),s=Object.getPrototypeOf&&Object.getPrototypeOf(this)===wu?wu:this;for(var u=0;u<a.length;u++)a[u]=arguments[u];if(e.serialize&&!e.asObject&&Ud(a,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?r.call(s,Bz(this,n,a,o)):r.apply(s,a),e.transmit){const l=e.transmit.level||t.level,c=nr.levels.values[l],f=nr.levels.values[n];if(f<c)return;Hz(this,{ts:o,methodLevel:n,methodValue:f,transmitLevel:l,transmitValue:nr.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},a)}}}(t[n]))}function Bz(e,t,n,r){e._serialize&&Ud(n,e._serialize,e.serializers,e._stdErrSerialize);const i=n.slice();let o=i[0];const a={};r&&(a.time=r),a.level=nr.levels.values[t];let s=(e._childLevel|0)+1;if(s<1&&(s=1),o!==null&&typeof o=="object"){for(;s--&&typeof i[0]=="object";)Object.assign(a,i.shift());o=i.length?qw(i.shift(),i):void 0}else typeof o=="string"&&(o=qw(i.shift(),i));return o!==void 0&&(a.msg=o),a}function Ud(e,t,n,r){for(const i in e)if(r&&e[i]instanceof Error)e[i]=nr.stdSerializers.err(e[i]);else if(typeof e[i]=="object"&&!Array.isArray(e[i]))for(const o in e[i])t&&t.indexOf(o)>-1&&o in n&&(e[i][o]=n[o](e[i][o]))}function ko(e,t,n){return function(){const r=new Array(1+arguments.length);r[0]=t;for(var i=1;i<r.length;i++)r[i]=arguments[i-1];return e[n].apply(this,r)}}function Hz(e,t,n){const r=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,s=t.val,u=e._logEvent.bindings;Ud(n,e._serialize||Object.keys(e.serializers),e.serializers,e._stdErrSerialize===void 0?!0:e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=n.filter(function(l){return u.indexOf(l)===-1}),e._logEvent.level.label=o,e._logEvent.level.value=a,r(o,e._logEvent,s),e._logEvent=rm(u)}function rm(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function zz(e){const t={type:e.constructor.name,msg:e.message,stack:e.stack};for(const n in e)t[n]===void 0&&(t[n]=e[n]);return t}function qz(e){return typeof e.timestamp=="function"?e.timestamp:e.timestamp===!1?Vk:Wk}function Bl(){return{}}function nh(e){return e}function bu(){}function Vk(){return!1}function Wk(){return Date.now()}function Vz(){return Math.round(Date.now()/1e3)}function Wz(){return new Date(Date.now()).toISOString()}function Qz(){function e(t){return typeof t<"u"&&t}try{return typeof globalThis<"u"||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch{return e(self)||e(window)||e(this)||{}}}const kK=ft($z);var Qk={exports:{}},Gk={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Yk={exports:{}},Gz=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Yz=Gz,Xz=Array.prototype.concat,Kz=Array.prototype.slice,Vw=Yk.exports=function(t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];Yz(o)?n=Xz.call(n,Kz.call(o)):n.push(o)}return n};Vw.wrap=function(e){return function(){return e(Vw(arguments))}};var Jz=Yk.exports,Ds=Gk,el=Jz,Xk=Object.hasOwnProperty,Kk=Object.create(null);for(var rh in Ds)Xk.call(Ds,rh)&&(Kk[Ds[rh]]=rh);var Yt=Qk.exports={to:{},get:{}};Yt.get=function(e){var t=e.substring(0,3).toLowerCase(),n,r;switch(t){case"hsl":n=Yt.get.hsl(e),r="hsl";break;case"hwb":n=Yt.get.hwb(e),r="hwb";break;default:n=Yt.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null};Yt.get.rgb=function(e){if(!e)return null;var t=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,r=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,i=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,o=/^(\w+)$/,a=[0,0,0,1],s,u,l;if(s=e.match(n)){for(l=s[2],s=s[1],u=0;u<3;u++){var c=u*2;a[u]=parseInt(s.slice(c,c+2),16)}l&&(a[3]=parseInt(l,16)/255)}else if(s=e.match(t)){for(s=s[1],l=s[3],u=0;u<3;u++)a[u]=parseInt(s[u]+s[u],16);l&&(a[3]=parseInt(l+l,16)/255)}else if(s=e.match(r)){for(u=0;u<3;u++)a[u]=parseInt(s[u+1],0);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else if(s=e.match(i)){for(u=0;u<3;u++)a[u]=Math.round(parseFloat(s[u+1])*2.55);s[4]&&(s[5]?a[3]=parseFloat(s[4])*.01:a[3]=parseFloat(s[4]))}else return(s=e.match(o))?s[1]==="transparent"?[0,0,0,0]:Xk.call(Ds,s[1])?(a=Ds[s[1]],a[3]=1,a):null:null;for(u=0;u<3;u++)a[u]=ni(a[u],0,255);return a[3]=ni(a[3],0,1),a};Yt.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=ni(parseFloat(n[2]),0,100),a=ni(parseFloat(n[3]),0,100),s=ni(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null};Yt.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=ni(parseFloat(n[2]),0,100),a=ni(parseFloat(n[3]),0,100),s=ni(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null};Yt.to.hex=function(){var e=el(arguments);return"#"+Hl(e[0])+Hl(e[1])+Hl(e[2])+(e[3]<1?Hl(Math.round(e[3]*255)):"")};Yt.to.rgb=function(){var e=el(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};Yt.to.rgb.percent=function(){var e=el(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"};Yt.to.hsl=function(){var e=el(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};Yt.to.hwb=function(){var e=el(arguments),t="";return e.length>=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Yt.to.keyword=function(e){return Kk[e.slice(0,3)]};function ni(e,t,n){return Math.min(Math.max(t,e),n)}function Hl(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var Zz=Qk.exports,Jk={exports:{}},ji=Gk,Zk={};for(var ih in ji)ji.hasOwnProperty(ih)&&(Zk[ji[ih]]=ih);var J=Jk.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var At in J)if(J.hasOwnProperty(At)){if(!("channels"in J[At]))throw new Error("missing channels property: "+At);if(!("labels"in J[At]))throw new Error("missing channel labels property: "+At);if(J[At].labels.length!==J[At].channels)throw new Error("channel and label counts mismatch: "+At);var eq=J[At].channels,tq=J[At].labels;delete J[At].channels,delete J[At].labels,Object.defineProperty(J[At],"channels",{value:eq}),Object.defineProperty(J[At],"labels",{value:tq})}J.rgb.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i,s,u,l;return o===i?s=0:t===o?s=(n-r)/a:n===o?s=2+(r-t)/a:r===o&&(s=4+(t-n)/a),s=Math.min(s*60,360),s<0&&(s+=360),l=(i+o)/2,o===i?u=0:l<=.5?u=a/(o+i):u=a/(2-o-i),[s,u*100,l*100]};J.rgb.hsv=function(e){var t,n,r,i,o,a=e[0]/255,s=e[1]/255,u=e[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(p){return(l-p)/6/c+1/2};return c===0?i=o=0:(o=c/l,t=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,l*100]};J.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2],i=J.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]};J.rgb.cmyk=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i,o,a,s;return s=Math.min(1-t,1-n,1-r),i=(1-t-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,a=(1-r-s)/(1-s)||0,[i*100,o*100,a*100,s*100]};function nq(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}J.rgb.keyword=function(e){var t=Zk[e];if(t)return t;var n=1/0,r;for(var i in ji)if(ji.hasOwnProperty(i)){var o=ji[i],a=nq(e,o);a<n&&(n=a,r=i)}return r};J.keyword.rgb=function(e){return ji[e]};J.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var i=t*.4124+n*.3576+r*.1805,o=t*.2126+n*.7152+r*.0722,a=t*.0193+n*.1192+r*.9505;return[i*100,o*100,a*100]};J.rgb.lab=function(e){var t=J.rgb.xyz(e),n=t[0],r=t[1],i=t[2],o,a,s;return n/=95.047,r/=100,i/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,o=116*r-16,a=500*(n-r),s=200*(r-i),[o,a,s]};J.hsl.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i,o,a,s,u;if(n===0)return u=r*255,[u,u,u];r<.5?o=r*(1+n):o=r+n-r*n,i=2*r-o,s=[0,0,0];for(var l=0;l<3;l++)a=t+1/3*-(l-1),a<0&&a++,a>1&&a--,6*a<1?u=i+(o-i)*6*a:2*a<1?u=o:3*a<2?u=i+(o-i)*(2/3-a)*6:u=i,s[l]=u*255;return s};J.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01),a,s;return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,s=(r+n)/2,a=r===0?2*i/(o+i):2*n/(r+n),[t,a*100,s*100]};J.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}};J.hsv.hsl=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),o,a,s;return s=(2-n)*r,o=(2-n)*i,a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};J.hwb.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,o,a,s,u;i>1&&(n/=i,r/=i),o=Math.floor(6*t),a=1-r,s=6*t-o,o&1&&(s=1-s),u=n+s*(a-n);var l,c,f;switch(o){default:case 6:case 0:l=a,c=u,f=n;break;case 1:l=u,c=a,f=n;break;case 2:l=n,c=a,f=u;break;case 3:l=n,c=u,f=a;break;case 4:l=u,c=n,f=a;break;case 5:l=a,c=n,f=u;break}return[l*255,c*255,f*255]};J.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,o,a,s;return o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),[o*255,a*255,s*255]};J.xyz.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i,o,a;return i=t*3.2406+n*-1.5372+r*-.4986,o=t*-.9689+n*1.8758+r*.0415,a=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};J.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2],i,o,a;return t/=95.047,n/=100,r/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=116*n-16,o=500*(t-n),a=200*(n-r),[i,o,a]};J.lab.xyz=function(e){var t=e[0],n=e[1],r=e[2],i,o,a;o=(t+16)/116,i=n/500+o,a=o-r/200;var s=Math.pow(o,3),u=Math.pow(i,3),l=Math.pow(a,3);return o=s>.008856?s:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,a=l>.008856?l:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};J.lab.lch=function(e){var t=e[0],n=e[1],r=e[2],i,o,a;return i=Math.atan2(r,n),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(n*n+r*r),[t,a,o]};J.lch.lab=function(e){var t=e[0],n=e[1],r=e[2],i,o,a;return a=r/360*2*Math.PI,i=n*Math.cos(a),o=n*Math.sin(a),[t,i,o]};J.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:J.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};J.hsv.ansi16=function(e){return J.rgb.ansi16(J.hsv.rgb(e),e[2])};J.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i};J.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,o=(t>>2&1)*n*255;return[r,i,o]};J.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var n,r=Math.floor(e/36)/5*255,i=Math.floor((n=e%36)/6)/5*255,o=n%6/5*255;return[r,i,o]};J.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};J.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];t[0].length===3&&(n=n.split("").map(function(s){return s+s}).join(""));var r=parseInt(n,16),i=r>>16&255,o=r>>8&255,a=r&255;return[i,o,a]};J.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),a=i-o,s,u;return a<1?s=o/(1-a):s=0,a<=0?u=0:i===t?u=(n-r)/a%6:i===n?u=2+(r-t)/a:u=4+(t-n)/a+4,u/=6,u%=1,[u*360,a*100,s*100]};J.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return n<.5?r=2*t*n:r=2*t*(1-n),r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]};J.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]};J.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];var i=[0,0,0],o=t%1*6,a=o%1,s=1-a,u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return u=(1-n)*r,[(n*i[0]+u)*255,(n*i[1]+u)*255,(n*i[2]+u)*255]};J.hcg.hsv=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t),i=0;return r>0&&(i=t/r),[e[0],i*100,r*100]};J.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t,i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],i*100,r*100]};J.hcg.hwb=function(e){var t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};J.hwb.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1-n,i=r-t,o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};J.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};J.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};J.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};J.gray.hsl=J.gray.hsv=function(e){return[0,0,e[0]]};J.gray.hwb=function(e){return[0,100,e[0]]};J.gray.cmyk=function(e){return[0,0,0,e[0]]};J.gray.lab=function(e){return[e[0],0,0]};J.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};J.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var eC=Jk.exports,gf=eC;function rq(){for(var e={},t=Object.keys(gf),n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function iq(e){var t=rq(),n=[e];for(t[e].distance=0;n.length;)for(var r=n.pop(),i=Object.keys(gf[r]),o=i.length,a=0;a<o;a++){var s=i[a],u=t[s];u.distance===-1&&(u.distance=t[r].distance+1,u.parent=r,n.unshift(s))}return t}function oq(e,t){return function(n){return t(e(n))}}function aq(e,t){for(var n=[t[e].parent,e],r=gf[t[e].parent][e],i=t[e].parent;t[i].parent;)n.unshift(t[i].parent),r=oq(gf[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}var sq=function(e){for(var t=iq(e),n={},r=Object.keys(t),i=r.length,o=0;o<i;o++){var a=r[o],s=t[a];s.parent!==null&&(n[a]=aq(a,t))}return n},im=eC,uq=sq,Po={},lq=Object.keys(im);function cq(e){var t=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function fq(e){var t=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var r=e(n);if(typeof r=="object")for(var i=r.length,o=0;o<i;o++)r[o]=Math.round(r[o]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}lq.forEach(function(e){Po[e]={},Object.defineProperty(Po[e],"channels",{value:im[e].channels}),Object.defineProperty(Po[e],"labels",{value:im[e].labels});var t=uq(e),n=Object.keys(t);n.forEach(function(r){var i=t[r];Po[e][r]=fq(i),Po[e][r].raw=cq(i)})});var dq=Po,ms=Zz,Wt=dq,Fy=[].slice,tC=["keyword","gray","hex"],om={};Object.keys(Wt).forEach(function(e){om[Fy.call(Wt[e].labels).sort().join("")]=e});var yf={};function at(e,t){if(!(this instanceof at))return new at(e,t);if(t&&t in tC&&(t=null),t&&!(t in Wt))throw new Error("Unknown model: "+t);var n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof at)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if(typeof e=="string"){var i=ms.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Wt[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length){this.model=t||"rgb",r=Wt[this.model].channels;var o=Fy.call(e,0,r);this.color=am(o,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;var a=Object.keys(e);"alpha"in e&&(a.splice(a.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);var s=a.sort().join("");if(!(s in om))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=om[s];var u=Wt[this.model].labels,l=[];for(n=0;n<u.length;n++)l.push(e[u[n]]);this.color=am(l)}if(yf[this.model])for(r=Wt[this.model].channels,n=0;n<r;n++){var c=yf[this.model][n];c&&(this.color[n]=c(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}at.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(e){var t=this.model in ms.to?this:this.rgb();t=t.round(typeof e=="number"?e:1);var n=t.valpha===1?t.color:t.color.concat(this.valpha);return ms.to[t.model](n)},percentString:function(e){var t=this.rgb().round(typeof e=="number"?e:1),n=t.valpha===1?t.color:t.color.concat(this.valpha);return ms.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var e={},t=Wt[this.model].channels,n=Wt[this.model].labels,r=0;r<t;r++)e[n[r]]=this.color[r];return this.valpha!==1&&(e.alpha=this.valpha),e},unitArray:function(){var e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,this.valpha!==1&&e.push(this.valpha),e},unitObject:function(){var e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,this.valpha!==1&&(e.alpha=this.valpha),e},round:function(e){return e=Math.max(e||0,0),new at(this.color.map(hq(e)).concat(this.valpha),this.model)},alpha:function(e){return arguments.length?new at(this.color.concat(Math.max(0,Math.min(1,e))),this.model):this.valpha},red:je("rgb",0,Ge(255)),green:je("rgb",1,Ge(255)),blue:je("rgb",2,Ge(255)),hue:je(["hsl","hsv","hsl","hwb","hcg"],0,function(e){return(e%360+360)%360}),saturationl:je("hsl",1,Ge(100)),lightness:je("hsl",2,Ge(100)),saturationv:je("hsv",1,Ge(100)),value:je("hsv",2,Ge(100)),chroma:je("hcg",1,Ge(100)),gray:je("hcg",2,Ge(100)),white:je("hwb",1,Ge(100)),wblack:je("hwb",2,Ge(100)),cyan:je("cmyk",0,Ge(100)),magenta:je("cmyk",1,Ge(100)),yellow:je("cmyk",2,Ge(100)),black:je("cmyk",3,Ge(100)),x:je("xyz",0,Ge(100)),y:je("xyz",1,Ge(100)),z:je("xyz",2,Ge(100)),l:je("lab",0,Ge(100)),a:je("lab",1),b:je("lab",2),keyword:function(e){return arguments.length?new at(e):Wt[this.model].keyword(this.color)},hex:function(e){return arguments.length?new at(e):ms.to.hex(this.rgb().round().color)},rgbNumber:function(){var e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity:function(){for(var e=this.rgb().color,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color,t=(e[0]*299+e[1]*587+e[2]*114)/1e3;return t<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=e[0]*.3+e[1]*.59+e[2]*.11;return at.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return at.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};Object.keys(Wt).forEach(function(e){if(tC.indexOf(e)===-1){var t=Wt[e].channels;at.prototype[e]=function(){if(this.model===e)return new at(this);if(arguments.length)return new at(arguments,e);var n=typeof arguments[t]=="number"?t:this.valpha;return new at(vq(Wt[this.model][e].raw(this.color)).concat(n),e)},at[e]=function(n){return typeof n=="number"&&(n=am(Fy.call(arguments),t)),new at(n,e)}}});function pq(e,t){return Number(e.toFixed(t))}function hq(e){return function(t){return pq(t,e)}}function je(e,t,n){return e=Array.isArray(e)?e:[e],e.forEach(function(r){(yf[r]||(yf[r]=[]))[t]=n}),e=e[0],function(r){var i;return arguments.length?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Ge(e){return function(t){return Math.max(0,Math.min(e,t))}}function vq(e){return Array.isArray(e)?e:[e]}function am(e,t){for(var n=0;n<t;n++)typeof e[n]!="number"&&(e[n]=0);return e}var mq=at;const CK=ft(mq);function jy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let co=jy();function nC(e){co=e}const rC=/[&<>"']/,gq=new RegExp(rC.source,"g"),iC=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,yq=new RegExp(iC.source,"g"),_q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ww=e=>_q[e];function qt(e,t){if(t){if(rC.test(e))return e.replace(gq,Ww)}else if(iC.test(e))return e.replace(yq,Ww);return e}const wq=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function bq(e){return e.replace(wq,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Eq=/(^|[^\[])\^/g;function we(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(Eq,"$1"),n=n.replace(i,a),r},getRegex:()=>new RegExp(n,t)};return r}function Qw(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Ls={exec:()=>null};function Gw(e,t){const n=e.replace(/\|/g,(o,a,s)=>{let u=!1,l=a;for(;--l>=0&&s[l]==="\\";)u=!u;return u?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function zl(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o===t&&!n)i++;else if(o!==t&&n)i++;else break}return e.slice(0,r-i)}function Sq(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Yw(e,t,n,r){const i=t.href,o=t.title?qt(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const s={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,s}return{type:"image",raw:n,href:i,title:o,text:qt(a)}}function Tq(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
`).map(i=>{const o=i.match(/^\s+/);if(o===null)return i;const[a]=o;return a.length>=r.length?i.slice(r.length):i}).join(`
`)}class _f{constructor(t){xe(this,"options");xe(this,"rules");xe(this,"lexer");this.options=t||co}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:zl(r,`
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Tq(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=zl(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=zl(n[0].replace(/^ *>[ \t]?/gm,""),`
`),i=this.lexer.state.top;this.lexer.state.top=!0;const o=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:o,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,o={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const a=new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`);let s="",u="",l=!1;for(;t;){let c=!1;if(!(n=a.exec(t))||this.rules.block.hr.test(t))break;s=n[0],t=t.substring(s.length);let f=n[2].split(`
`,1)[0].replace(/^\t+/,g=>" ".repeat(3*g.length)),p=t.split(`
`,1)[0],d=0;this.options.pedantic?(d=2,u=f.trimStart()):(d=n[2].search(/[^ ]/),d=d>4?1:d,u=f.slice(d),d+=n[1].length);let m=!1;if(!f&&/^ *$/.test(p)&&(s+=p+`
`,t=t.substring(p.length+1),c=!0),!c){const g=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),y=new RegExp(`^ {0,${Math.min(3,d-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,d-1)}}(?:\`\`\`|~~~)`),h=new RegExp(`^ {0,${Math.min(3,d-1)}}#`);for(;t;){const w=t.split(`
`,1)[0];if(p=w,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),v.test(p)||h.test(p)||g.test(p)||y.test(t))break;if(p.search(/[^ ]/)>=d||!p.trim())u+=`
`+p.slice(d);else{if(m||f.search(/[^ ]/)>=4||v.test(f)||h.test(f)||y.test(f))break;u+=`
`+p}!m&&!p.trim()&&(m=!0),s+=w+`
`,t=t.substring(w.length+1),f=p.slice(d)}}o.loose||(l?o.loose=!0:/\n *\n *$/.test(s)&&(l=!0));let _=null,b;this.options.gfm&&(_=/^\[[ xX]\] /.exec(u),_&&(b=_[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),o.items.push({type:"list_item",raw:s,task:!!_,checked:b,loose:!1,text:u,tokens:[]}),o.raw+=s}o.items[o.items.length-1].raw=s.trimEnd(),o.items[o.items.length-1].text=u.trimEnd(),o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){const f=o.items[c].tokens.filter(d=>d.type==="space"),p=f.length>0&&f.some(d=>/\n.*\n/.test(d.raw));o.loose=p}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:o}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Gw(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),o=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const s of i)/^ *-+: *$/.test(s)?a.align.push("right"):/^ *:-+: *$/.test(s)?a.align.push("center"):/^ *:-+ *$/.test(s)?a.align.push("left"):a.align.push(null);for(const s of r)a.header.push({text:s,tokens:this.lexer.inline(s)});for(const s of o)a.rows.push(Gw(s,a.header.length).map(u=>({text:u,tokens:this.lexer.inline(u)})));return a}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:qt(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const a=zl(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=Sq(n[2],"()");if(a>-1){const u=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,u).trim(),n[3]=""}}let i=n[2],o="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],o=a[3])}else o=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),Yw(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),o=n[i.toLowerCase()];if(!o){const a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return Yw(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const a=[...i[0]].length-1;let s,u,l=a,c=0;const f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+a);(i=f.exec(n))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(u=[...s].length,i[3]||i[4]){l+=u;continue}else if((i[5]||i[6])&&a%3&&!((a+u)%3)){c+=u;continue}if(l-=u,l>0)continue;u=Math.min(u,u+l+c);const p=[...i[0]][0].length,d=t.slice(0,a+i.index+p+u);if(Math.min(a,u)%2){const _=d.slice(1,-1);return{type:"em",raw:d,text:_,tokens:this.lexer.inlineTokens(_)}}const m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),o=/^ /.test(r)&&/ $/.test(r);return i&&o&&(r=r.substring(1,r.length-1)),r=qt(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=qt(n[1]),i="mailto:"+r):(r=qt(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r,i;let n;if(n=this.rules.inline.url.exec(t)){let o,a;if(n[2]==="@")o=qt(n[0]),a="mailto:"+o;else{let s;do s=n[0],n[0]=(i=(r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])!=null?i:"";while(s!==n[0]);o=qt(n[0]),n[1]==="www."?a="http://"+n[0]:a=n[0]}return{type:"link",raw:n[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=qt(n[0]),{type:"text",raw:n[0],text:r}}}}const xq=/^(?: *(?:\n|$))+/,Oq=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,kq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,oC=/(?:[*+-]|\d{1,9}[.)])/,aC=we(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,oC).getRegex(),Uy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Aq=/^[^\n]+/,By=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Rq=we(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",By).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Pq=we(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,oC).getRegex(),Bd="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Hy=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Iq=we("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Hy).replace("tag",Bd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sC=we(Uy).replace("hr",tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bd).getRegex(),Dq=we(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",sC).getRegex(),zy={blockquote:Dq,code:Oq,def:Rq,fences:kq,heading:Cq,hr:tl,html:Iq,lheading:aC,list:Pq,newline:xq,paragraph:sC,table:Ls,text:Aq},Xw=we("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bd).getRegex(),Lq={...zy,table:Xw,paragraph:we(Uy).replace("hr",tl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Bd).getRegex()},Mq={...zy,html:we(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Hy).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ls,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:we(Uy).replace("hr",tl).replace("heading",` *#{1,6} *[^
]`).replace("lheading",aC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},uC=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nq=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,lC=/^( {2,}|\\)\n(?!\s*$)/,$q=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,nl="\\p{P}$+<=>`^|~",Fq=we(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,nl).getRegex(),jq=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Uq=we(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,nl).getRegex(),Bq=we("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,nl).getRegex(),Hq=we("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,nl).getRegex(),zq=we(/\\([punct])/,"gu").replace(/punct/g,nl).getRegex(),qq=we(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Vq=we(Hy).replace("(?:-->|$)","-->").getRegex(),Wq=we("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Vq).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wf=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qq=we(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wf).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cC=we(/^!?\[(label)\]\[(ref)\]/).replace("label",wf).replace("ref",By).getRegex(),fC=we(/^!?\[(ref)\](?:\[\])?/).replace("ref",By).getRegex(),Gq=we("reflink|nolink(?!\\()","g").replace("reflink",cC).replace("nolink",fC).getRegex(),qy={_backpedal:Ls,anyPunctuation:zq,autolink:qq,blockSkip:jq,br:lC,code:Nq,del:Ls,emStrongLDelim:Uq,emStrongRDelimAst:Bq,emStrongRDelimUnd:Hq,escape:uC,link:Qq,nolink:fC,punctuation:Fq,reflink:cC,reflinkSearch:Gq,tag:Wq,text:$q,url:Ls},Yq={...qy,link:we(/^!?\[(label)\]\((.*?)\)/).replace("label",wf).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wf).getRegex()},sm={...qy,escape:we(uC).replace("])","~|])").getRegex(),url:we(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Xq={...sm,br:we(lC).replace("{2,}","*").getRegex(),text:we(sm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ql={normal:zy,gfm:Lq,pedantic:Mq},rs={normal:qy,gfm:sm,breaks:Xq,pedantic:Yq};class Yn{constructor(t){xe(this,"tokens");xe(this,"options");xe(this,"state");xe(this,"tokenizer");xe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||co,this.options.tokenizer=this.options.tokenizer||new _f,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:ql.normal,inline:rs.normal};this.options.pedantic?(n.block=ql.pedantic,n.inline=rs.pedantic):this.options.gfm&&(n.block=ql.gfm,this.options.breaks?n.inline=rs.breaks:n.inline=rs.gfm),this.tokenizer.rules=n}static get rules(){return{block:ql,inline:rs}}static lex(t,n){return new Yn(n).lex(t)}static lexInline(t,n){return new Yn(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(s,u,l)=>u+"    ".repeat(l.length));let r,i,o,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(r=s.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
`:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+r.raw,i.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+r.raw,i.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const u=t.slice(1);let l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},u),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(o=t.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(o))){i=n[n.length-1],a&&i.type==="paragraph"?(i.raw+=`
`+r.raw,i.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),a=o.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
`+r.raw,i.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(t){const s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,o,a=t,s,u,l;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)c.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,s.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(u||(l=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,a,l)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(o=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const f=t.slice(1);let p;this.options.extensions.startInline.forEach(d=>{p=d.call({lexer:this},f),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(o=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(o)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(l=r.raw.slice(-1)),u=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class bf{constructor(t){xe(this,"options");this.options=t||co}code(t,n,r){var o;const i=(o=(n||"").match(/^\S*/))==null?void 0:o[0];return t=t.replace(/\n$/,"")+`
`,i?'<pre><code class="language-'+qt(i)+'">'+(r?t:qt(t,!0))+`</code></pre>
`:"<pre><code>"+(r?t:qt(t,!0))+`</code></pre>
`}blockquote(t){return`<blockquote>
${t}</blockquote>
`}html(t,n){return t}heading(t,n,r){return`<h${n}>${t}</h${n}>
`}hr(){return`<hr>
`}list(t,n,r){const i=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+i+o+`>
`+t+"</"+i+`>
`}listitem(t,n,r){return`<li>${t}</li>
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow(t){return`<tr>
${t}</tr>
`}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+`</${r}>
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,r){const i=Qw(t);if(i===null)return r;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+n+'"'),o+=">"+r+"</a>",o}image(t,n,r){const i=Qw(t);if(i===null)return r;t=i;let o=`<img src="${t}" alt="${r}"`;return n&&(o+=` title="${n}"`),o+=">",o}text(t){return t}}class Vy{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,r){return""+r}image(t,n,r){return""+r}br(){return""}}class Xn{constructor(t){xe(this,"options");xe(this,"renderer");xe(this,"textRenderer");this.options=t||co,this.options.renderer=this.options.renderer||new bf,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Vy}static parse(t,n){return new Xn(n).parse(t)}static parseInline(t,n){return new Xn(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const o=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const a=o,s=this.options.extensions.renderers[a.type].call({parser:this},a);if(s!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=s||"";continue}}switch(o.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const a=o;r+=this.renderer.heading(this.parseInline(a.tokens),a.depth,bq(this.parseInline(a.tokens,this.textRenderer)));continue}case"code":{const a=o;r+=this.renderer.code(a.text,a.lang,!!a.escaped);continue}case"table":{const a=o;let s="",u="";for(let c=0;c<a.header.length;c++)u+=this.renderer.tablecell(this.parseInline(a.header[c].tokens),{header:!0,align:a.align[c]});s+=this.renderer.tablerow(u);let l="";for(let c=0;c<a.rows.length;c++){const f=a.rows[c];u="";for(let p=0;p<f.length;p++)u+=this.renderer.tablecell(this.parseInline(f[p].tokens),{header:!1,align:a.align[p]});l+=this.renderer.tablerow(u)}r+=this.renderer.table(s,l);continue}case"blockquote":{const a=o,s=this.parse(a.tokens);r+=this.renderer.blockquote(s);continue}case"list":{const a=o,s=a.ordered,u=a.start,l=a.loose;let c="";for(let f=0;f<a.items.length;f++){const p=a.items[f],d=p.checked,m=p.task;let _="";if(p.task){const b=this.renderer.checkbox(!!d);l?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=b+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=b+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:b+" "}):_+=b+" "}_+=this.parse(p.tokens,l),c+=this.renderer.listitem(_,m,!!d)}r+=this.renderer.list(c,s,u);continue}case"html":{const a=o;r+=this.renderer.html(a.text,a.block);continue}case"paragraph":{const a=o;r+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=o,s=a.tokens?this.parseInline(a.tokens):a.text;for(;i+1<t.length&&t[i+1].type==="text";)a=t[++i],s+=`
`+(a.tokens?this.parseInline(a.tokens):a.text);r+=n?this.renderer.paragraph(s):s;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const o=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){const a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=a||"";continue}}switch(o.type){case"escape":{const a=o;r+=n.text(a.text);break}case"html":{const a=o;r+=n.html(a.text);break}case"link":{const a=o;r+=n.link(a.href,a.title,this.parseInline(a.tokens,n));break}case"image":{const a=o;r+=n.image(a.href,a.title,a.text);break}case"strong":{const a=o;r+=n.strong(this.parseInline(a.tokens,n));break}case"em":{const a=o;r+=n.em(this.parseInline(a.tokens,n));break}case"codespan":{const a=o;r+=n.codespan(a.text);break}case"br":{r+=n.br();break}case"del":{const a=o;r+=n.del(this.parseInline(a.tokens,n));break}case"text":{const a=o;r+=n.text(a.text);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class Ms{constructor(t){xe(this,"options");this.options=t||co}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}xe(Ms,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var Lu,um,If,dC;class Kq{constructor(...t){op(this,Lu);op(this,If);xe(this,"defaults",jy());xe(this,"options",this.setOptions);xe(this,"parse",ll(this,Lu,um).call(this,Yn.lex,Xn.parse));xe(this,"parseInline",ll(this,Lu,um).call(this,Yn.lexInline,Xn.parseInline));xe(this,"Parser",Xn);xe(this,"Renderer",bf);xe(this,"TextRenderer",Vy);xe(this,"Lexer",Yn);xe(this,"Tokenizer",_f);xe(this,"Hooks",Ms);this.use(...t)}walkTokens(t,n){var i,o;let r=[];for(const a of t)switch(r=r.concat(n.call(this,a)),a.type){case"table":{const s=a;for(const u of s.header)r=r.concat(this.walkTokens(u.tokens,n));for(const u of s.rows)for(const l of u)r=r.concat(this.walkTokens(l.tokens,n));break}case"list":{const s=a;r=r.concat(this.walkTokens(s.items,n));break}default:{const s=a;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{const l=s[u].flat(1/0);r=r.concat(this.walkTokens(l,n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const a=n.renderers[o.name];a?n.renderers[o.name]=function(...s){let u=o.renderer.apply(this,s);return u===!1&&(u=a.apply(this,s)),u}:n.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=n[o.level];a?a.unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&(o.level==="block"?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:o.level==="inline"&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),i.extensions=n),r.renderer){const o=this.defaults.renderer||new bf(this.defaults);for(const a in r.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(a==="options")continue;const s=a,u=r.renderer[s],l=o[s];o[s]=(...c)=>{let f=u.apply(o,c);return f===!1&&(f=l.apply(o,c)),f||""}}i.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new _f(this.defaults);for(const a in r.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;const s=a,u=r.tokenizer[s],l=o[s];o[s]=(...c)=>{let f=u.apply(o,c);return f===!1&&(f=l.apply(o,c)),f}}i.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Ms;for(const a in r.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;const s=a,u=r.hooks[s],l=o[s];Ms.passThroughHooks.has(a)?o[s]=c=>{if(this.defaults.async)return Promise.resolve(u.call(o,c)).then(p=>l.call(o,p));const f=u.call(o,c);return l.call(o,f)}:o[s]=(...c)=>{let f=u.apply(o,c);return f===!1&&(f=l.apply(o,c)),f}}i.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,a=r.walkTokens;i.walkTokens=function(s){let u=[];return u.push(a.call(this,s)),o&&(u=u.concat(o.call(this,s))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Yn.lex(t,n!=null?n:this.defaults)}parser(t,n){return Xn.parse(t,n!=null?n:this.defaults)}}Lu=new WeakSet,um=function(t,n){return(r,i)=>{const o={...i},a={...this.defaults,...o};this.defaults.async===!0&&o.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);const s=ll(this,If,dC).call(this,!!a.silent,!!a.async);if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(u=>t(u,a)).then(u=>a.hooks?a.hooks.processAllTokens(u):u).then(u=>a.walkTokens?Promise.all(this.walkTokens(u,a.walkTokens)).then(()=>u):u).then(u=>n(u,a)).then(u=>a.hooks?a.hooks.postprocess(u):u).catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let u=t(r,a);a.hooks&&(u=a.hooks.processAllTokens(u)),a.walkTokens&&this.walkTokens(u,a.walkTokens);let l=n(u,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(u){return s(u)}}},If=new WeakSet,dC=function(t,n){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+qt(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}};const Ki=new Kq;function _e(e,t){return Ki.parse(e,t)}_e.options=_e.setOptions=function(e){return Ki.setOptions(e),_e.defaults=Ki.defaults,nC(_e.defaults),_e};_e.getDefaults=jy;_e.defaults=co;_e.use=function(...e){return Ki.use(...e),_e.defaults=Ki.defaults,nC(_e.defaults),_e};_e.walkTokens=function(e,t){return Ki.walkTokens(e,t)};_e.parseInline=Ki.parseInline;_e.Parser=Xn;_e.parser=Xn.parse;_e.Renderer=bf;_e.TextRenderer=Vy;_e.Lexer=Yn;_e.lexer=Yn.lex;_e.Tokenizer=_f;_e.Hooks=Ms;_e.parse=_e;_e.options;_e.setOptions;_e.use;_e.walkTokens;_e.parseInline;Xn.parse;Yn.lex;const Kw=e=>{let t;const n=new Set,r=(u,l)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const f=t;t=(l!=null?l:typeof c!="object")?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},i=()=>t,s={setState:r,getState:i,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>n.clear()};return t=e(r,i,s),s},Jq=e=>e?Kw(e):Kw;var pC={exports:{}},hC={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hd=N,Zq=$x;function e8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var t8=typeof Object.is=="function"?Object.is:e8,n8=Zq.useSyncExternalStore,r8=Hd.useRef,i8=Hd.useEffect,o8=Hd.useMemo,a8=Hd.useDebugValue;hC.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=r8(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=o8(function(){function u(d){if(!l){if(l=!0,c=d,d=r(d),i!==void 0&&a.hasValue){var m=a.value;if(i(m,d))return f=m}return f=d}if(m=f,t8(c,d))return m;var _=r(d);return i!==void 0&&i(m,_)?m:(c=d,f=_)}var l=!1,c,f,p=n===void 0?null:n;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,n,r,i]);var s=n8(e,o[0],o[1]);return i8(function(){a.hasValue=!0,a.value=s},[s]),a8(s),s};pC.exports=hC;var s8=pC.exports;const u8=ft(s8),{useSyncExternalStoreWithSelector:l8}=u8;function c8(e,t=e.getState,n){const r=l8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return N.useDebugValue(r),r}const Jw=e=>{const t=typeof e=="function"?Jq(e):e,n=(r,i)=>c8(t,r,i);return Object.assign(n,t),n},AK=e=>e?Jw(e):Jw,f8=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(a,s,u)=>{let l=a;if(s){const c=(u==null?void 0:u.equalityFn)||Object.is;let f=a(r.getState());l=p=>{const d=a(p);if(!c(f,d)){const m=f;s(f=d,m)}},u!=null&&u.fireImmediately&&s(f,f)}return i(l)},e(t,n,r)},RK=f8;var lm=function(e,t){return lm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},lm(e,t)};function d8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var K=function(){return K=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},K.apply(this,arguments)};function En(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Bt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Ji(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var p8={NODE_ENV:"production"},h8="production",vC=typeof process>"u"||p8===void 0?h8:"production",cr=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Eu={measureLayout:cr(["layout","layoutId","drag"]),animation:cr(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:cr(["exit"]),drag:cr(["drag","dragControls"]),focus:cr(["whileFocus"]),hover:cr(["whileHover","onHoverStart","onHoverEnd"]),tap:cr(["whileTap","onTap","onTapStart","onTapCancel"]),pan:cr(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:cr(["whileInView","onViewportEnter","onViewportLeave"])};function cm(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Eu.projectionNodeConstructor=e[t]:Eu[t].Component=e[t])}var Su=function(){},Wy=N.createContext({strict:!1}),mC=Object.keys(Eu),v8=mC.length;function m8(e,t,n){var r=[],i=N.useContext(Wy);if(!t)return null;vC!=="production"&&n&&i.strict;for(var o=0;o<v8;o++){var a=mC[o],s=Eu[a],u=s.isEnabled,l=s.Component;u(e)&&l&&r.push(N.createElement(l,K({key:a},e,{visualElement:t})))}return r}var gC=N.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),zd=N.createContext({});function g8(){return N.useContext(zd).visualElement}var qd=N.createContext(null),Ba=typeof document<"u",Zw=Ba?N.useLayoutEffect:N.useEffect,fm={current:null},yC=!1;function y8(){if(yC=!0,!!Ba)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return fm.current=e.matches};e.addListener(t),t()}else fm.current=!1}function _8(){!yC&&y8();var e=Bt(N.useState(fm.current),1),t=e[0];return t}function w8(){var e=_8(),t=N.useContext(gC).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function b8(e,t,n,r){var i=N.useContext(Wy),o=g8(),a=N.useContext(qd),s=w8(),u=N.useRef(void 0);r||(r=i.renderer),!u.current&&r&&(u.current=r(e,{visualState:t,parent:o,props:n,presenceId:a==null?void 0:a.id,blockInitialAnimation:(a==null?void 0:a.initial)===!1,shouldReduceMotion:s}));var l=u.current;return Zw(function(){l==null||l.syncRender()}),N.useEffect(function(){var c;(c=l==null?void 0:l.animationState)===null||c===void 0||c.animateChanges()}),Zw(function(){return function(){return l==null?void 0:l.notifyUnmount()}},[]),l}function _C(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E8(e,t,n){return N.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_C(n)&&(n.current=r))},[t])}function wC(e){return Array.isArray(e)}function Cn(e){return typeof e=="string"||wC(e)}function S8(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function T8(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function bC(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n!=null?n:e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n!=null?n:e.custom,r,i)),t}function Vd(e,t,n){var r=e.getProps();return bC(r,t,n!=null?n:r.custom,S8(e),T8(e))}function Wd(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Cn(e.initial)||Cn(e.animate)||Cn(e.whileHover)||Cn(e.whileDrag)||Cn(e.whileTap)||Cn(e.whileFocus)||Cn(e.exit)}function EC(e){return!!(Wd(e)||e.variants)}function x8(e,t){if(Wd(e)){var n=e.initial,r=e.animate;return{initial:n===!1||Cn(n)?n:void 0,animate:Cn(r)?r:void 0}}return e.inherit!==!1?t:{}}function O8(e){var t=x8(e,N.useContext(zd)),n=t.initial,r=t.animate;return N.useMemo(function(){return{initial:n,animate:r}},[eb(n),eb(r)])}function eb(e){return Array.isArray(e)?e.join(" "):e}function Qy(e){var t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}function k8(){return Qy(function(){})}var C8=N.createContext({}),A8=N.createContext({});function R8(e,t,n,r){var i,o=t.layoutId,a=t.layout,s=t.drag,u=t.dragConstraints,l=t.layoutScroll,c=N.useContext(A8);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&_C(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:c,layoutScroll:l}))}var P8=function(e){d8(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(G.Component);function I8(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&cm(t);function s(u,l){var c=D8(u);u=K(K({},u),{layoutId:c});var f=N.useContext(gC),p=null,d=O8(u),m=f.isStatic?void 0:k8(),_=o(u,f.isStatic);return!f.isStatic&&Ba&&(d.visualElement=b8(a,_,K(K({},f),u),n),R8(m,u,d.visualElement,r||Eu.projectionNodeConstructor),p=m8(u,d.visualElement,t)),N.createElement(P8,{visualElement:d.visualElement,props:K(K({},f),u)},p,N.createElement(zd.Provider,{value:d},i(a,u,m,E8(_,d.visualElement,l),_,f.isStatic,d.visualElement)))}return N.forwardRef(s)}function D8(e){var t,n=e.layoutId,r=(t=N.useContext(C8))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function L8(e){function t(r,i){return i===void 0&&(i={}),I8(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var M8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Gy(e){return typeof e!="string"||e.includes("-")?!1:!!(M8.indexOf(e)>-1||/[A-Z]/.test(e))}var N8={},$8=["","X","Y","Z"],F8=["translate","scale","rotate","skew"],Tu=["transformPerspective","x","y","z"];F8.forEach(function(e){return $8.forEach(function(t){return Tu.push(e+t)})});function j8(e,t){return Tu.indexOf(e)-Tu.indexOf(t)}var U8=new Set(Tu);function rl(e){return U8.has(e)}var B8=new Set(["originX","originY","originZ"]);function SC(e){return B8.has(e)}function TC(e,t){var n=t.layout,r=t.layoutId;return rl(e)||SC(e)||(n||r!==void 0)&&(!!N8[e]||e==="opacity")}var si=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},H8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function z8(e,t,n,r){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,u=t.allowTransformNone,l=u===void 0?!0:u,c="";o.sort(j8);for(var f=!1,p=o.length,d=0;d<p;d++){var m=o[d];c+="".concat(H8[m]||m,"(").concat(i[m],") "),m==="z"&&(f=!0)}return!f&&s?c+="translateZ(0)":c=c.trim(),r?c=r(i,n?"":c):l&&n&&(c="none"),c}function q8(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,a=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(a)}function xC(e){return e.startsWith("--")}var V8=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const OC=(e,t)=>n=>Math.max(Math.min(n,t),e),Ns=e=>e%1?Number(e.toFixed(5)):e,xu=/(-)?([\d]*\.?[\d])+/g,dm=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,W8=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function il(e){return typeof e=="string"}const fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$s=Object.assign(Object.assign({},fo),{transform:OC(0,1)}),Vl=Object.assign(Object.assign({},fo),{default:1}),ol=e=>({test:t=>il(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mr=ol("deg"),ia=ol("%"),ie=ol("px"),Q8=ol("vh"),G8=ol("vw"),tb=Object.assign(Object.assign({},ia),{parse:e=>ia.parse(e)/100,transform:e=>ia.transform(e*100)}),Yy=(e,t)=>n=>!!(il(n)&&W8.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),kC=(e,t,n)=>r=>{if(!il(r))return r;const[i,o,a,s]=r.match(xu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Pi={test:Yy("hsl","hue"),parse:kC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ia.transform(Ns(t))+", "+ia.transform(Ns(n))+", "+Ns($s.transform(r))+")"},Y8=OC(0,255),oh=Object.assign(Object.assign({},fo),{transform:e=>Math.round(Y8(e))}),Qr={test:Yy("rgb","red"),parse:kC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+oh.transform(e)+", "+oh.transform(t)+", "+oh.transform(n)+", "+Ns($s.transform(r))+")"};function X8(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const pm={test:Yy("#"),parse:X8,transform:Qr.transform},bt={test:e=>Qr.test(e)||pm.test(e)||Pi.test(e),parse:e=>Qr.test(e)?Qr.parse(e):Pi.test(e)?Pi.parse(e):pm.parse(e),transform:e=>il(e)?e:e.hasOwnProperty("red")?Qr.transform(e):Pi.transform(e)},CC="${c}",AC="${n}";function K8(e){var t,n,r,i;return isNaN(e)&&il(e)&&((n=(t=e.match(xu))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(dm))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function RC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(dm);r&&(n=r.length,e=e.replace(dm,CC),t.push(...r.map(bt.parse)));const i=e.match(xu);return i&&(e=e.replace(xu,AC),t.push(...i.map(fo.parse))),{values:t,numColors:n,tokenised:e}}function PC(e){return RC(e).values}function IC(e){const{values:t,numColors:n,tokenised:r}=RC(e),i=t.length;return o=>{let a=r;for(let s=0;s<i;s++)a=a.replace(s<n?CC:AC,s<n?bt.transform(o[s]):Ns(o[s]));return a}}const J8=e=>typeof e=="number"?0:e;function Z8(e){const t=PC(e);return IC(e)(t.map(J8))}const po={test:K8,parse:PC,createTransformer:IC,getAnimatableNone:Z8},eV=new Set(["brightness","contrast","saturate","opacity"]);function tV(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xu)||[];if(!r)return e;const i=n.replace(r,"");let o=eV.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const nV=/([a-z-]*)\(.*?\)/g,hm=Object.assign(Object.assign({},po),{getAnimatableNone:e=>{const t=e.match(nV);return t?t.map(tV).join(" "):e}});var nb=K(K({},fo),{transform:Math.round}),DC={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,size:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,rotate:Mr,rotateX:Mr,rotateY:Mr,rotateZ:Mr,scale:Vl,scaleX:Vl,scaleY:Vl,scaleZ:Vl,skew:Mr,skewX:Mr,skewY:Mr,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:$s,originX:tb,originY:tb,originZ:ie,zIndex:nb,fillOpacity:$s,strokeOpacity:$s,numOctaves:nb};function Xy(e,t,n,r){var i,o=e.style,a=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,f=!1,p=!0;for(var d in t){var m=t[d];if(xC(d)){a[d]=m;continue}var _=DC[d],b=V8(m,_);if(rl(d)){if(c=!0,s[d]=b,u.push(d),!p)continue;m!==((i=_.default)!==null&&i!==void 0?i:0)&&(p=!1)}else SC(d)?(l[d]=b,f=!0):o[d]=b}c?o.transform=z8(e,n,p,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),f&&(o.transformOrigin=q8(l))}var Ky=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function LC(e,t,n){for(var r in t)!si(t[r])&&!TC(r,n)&&(e[r]=t[r])}function rV(e,t,n){var r=e.transformTemplate;return N.useMemo(function(){var i=Ky();Xy(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,a=i.style;return K(K({},o),a)},[t])}function iV(e,t,n){var r=e.style||{},i={};return LC(i,r,e),Object.assign(i,rV(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function oV(e,t,n){var r={},i=iV(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var aV=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Ef(e){return aV.has(e)}var MC=function(e){return!Ef(e)};function sV(e){e&&(MC=function(t){return t.startsWith("on")?!Ef(t):e(t)})}try{sV(require("@emotion/is-prop-valid").default)}catch{}function uV(e,t,n){var r={};for(var i in e)(MC(i)||n===!0&&Ef(i)||!t&&!Ef(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function rb(e,t,n){return typeof e=="string"?e:ie.transform(t+n*e)}function lV(e,t,n){var r=rb(t,e.x,e.width),i=rb(n,e.y,e.height);return"".concat(r," ").concat(i)}var cV={offset:"strokeDashoffset",array:"strokeDasharray"};function fV(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=cV;e[o.offset]=ie.transform(-r);var a=ie.transform(t),s=ie.transform(n);e[o.array]="".concat(a," ").concat(s)}function Jy(e,t,n,r){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=l===void 0?1:l,f=t.pathOffset,p=f===void 0?0:f,d=En(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Xy(e,d,n,r),e.attrs=e.style,e.style={};var m=e.attrs,_=e.style,b=e.dimensions;m.transform&&(b&&(_.transform=m.transform),delete m.transform),b&&(a!==void 0||s!==void 0||_.transform)&&(_.transformOrigin=lV(b,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(m.x=i),o!==void 0&&(m.y=o),u!==void 0&&fV(m,u,c,p)}var NC=function(){return K(K({},Ky()),{attrs:{}})};function dV(e,t){var n=N.useMemo(function(){var i=NC();return Jy(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),K(K({},i.attrs),{style:K({},i.style)})},[t]);if(e.style){var r={};LC(r,e.style,e),n.style=K(K({},r),n.style)}return n}function pV(e){e===void 0&&(e=!1);var t=function(n,r,i,o,a,s){var u=a.latestValues,l=Gy(n)?dV:oV,c=l(r,u,s),f=uV(r,typeof n=="string",e),p=K(K(K({},f),c),{ref:o});return i&&(p["data-projection-id"]=i),N.createElement(n,p)};return t}var hV=/([a-z])([A-Z])/g,vV="$1-$2",$C=function(e){return e.replace(hV,vV).toLowerCase()};function FC(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var a in o)e.style.setProperty(a,o[a])}var jC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function UC(e,t,n,r){FC(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(jC.has(i)?i:$C(i),t.attrs[i])}function Zy(e){var t=e.style,n={};for(var r in t)(si(t[r])||TC(r,e))&&(n[r]=t[r]);return n}function BC(e){var t=Zy(e);for(var n in e)if(si(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function e0(e){return typeof e=="object"&&typeof e.start=="function"}var Ou=function(e){return Array.isArray(e)},mV=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},HC=function(e){return Ou(e)?e[e.length-1]||0:e};function gV(e){var t=si(e)?e.get():e;return mV(t)?t.toValue():t}function ib(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:yV(t,n,r,i),renderState:o()};return a&&(s.mount=function(u){return a(t,u,s)}),s}var zC=function(e){return function(t,n){var r=N.useContext(zd),i=N.useContext(qd);return n?ib(e,t,r,i):Qy(function(){return ib(e,t,r,i)})}};function yV(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,a=r(e);for(var s in a)i[s]=gV(a[s]);var u=e.initial,l=e.animate,c=Wd(e),f=EC(e);t&&f&&!c&&e.inherit!==!1&&(u!=null||(u=t.initial),l!=null||(l=t.animate));var p=o||u===!1,d=p?l:u;if(d&&typeof d!="boolean"&&!e0(d)){var m=Array.isArray(d)?d:[d];m.forEach(function(_){var b=bC(e,_);if(b){var g=b.transitionEnd;b.transition;var y=En(b,["transitionEnd","transition"]);for(var v in y){var h=y[v];if(Array.isArray(h)){var w=p?h.length-1:0;h=h[w]}h!==null&&(i[v]=h)}for(var v in g)i[v]=g[v]}})}return i}var _V={useVisualState:zC({scrapeMotionValuesFromProps:BC,createRenderState:NC,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Jy(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),UC(t,r)}})},wV={useVisualState:zC({scrapeMotionValuesFromProps:Zy,createRenderState:Ky})};function bV(e,t,n,r,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=Gy(e)?_V:wV;return K(K({},s),{preloadedFeatures:n,useRender:pV(a),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var Ie;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Ie||(Ie={}));function qC(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function vm(e,t,n,r){N.useEffect(function(){var i=e.current;if(n&&i)return qC(i,t,n,r)},[e,t,n,r])}function EV(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Ie.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(Ie.Focus,!1)};vm(n,"focus",t?r:void 0),vm(n,"blur",t?i:void 0)}function SV(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function TV(e){var t=!!e.touches;return t}function xV(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var OV={pageX:0,pageY:0};function kV(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||OV;return{x:r[t+"X"],y:r[t+"Y"]}}function CV(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function AV(e,t){return t===void 0&&(t="page"),{point:TV(e)?kV(e,t):CV(e,t)}}var VC=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,AV(r))};return t?xV(n):n},RV=function(){return Ba&&window.onpointerdown===null},PV=function(){return Ba&&window.ontouchstart===null},IV=function(){return Ba&&window.onmousedown===null},DV={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},LV={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function WC(e){return RV()?e:PV()?LV[e]:IV()?DV[e]:e}function ob(e,t,n,r){return qC(e,WC(t),VC(n,t==="pointerdown"),r)}function mm(e,t,n,r){return vm(e,WC(t),n&&VC(n,t==="pointerdown"),r)}function QC(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var MV=QC("dragHorizontal"),NV=QC("dragVertical");function $V(e){var t=!1;{var n=MV(),r=NV();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function GC(){var e=$V();return e?(e(),!1):!0}function ab(e,t,n){return function(r,i){var o;!SV(r)||GC()||((o=e.animationState)===null||o===void 0||o.setActive(Ie.Hover,t),n==null||n(r,i))}}function FV(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;mm(i,"pointerenter",t||r?ab(i,!0,t):void 0,{passive:!t}),mm(i,"pointerleave",n||r?ab(i,!1,n):void 0,{passive:!n})}var YC=function(e,t){return t?e===t?!0:YC(e,t.parentElement):!1};function jV(e){return N.useEffect(function(){return function(){return e()}},[])}function XC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}const gm=(e,t,n)=>Math.min(Math.max(n,e),t),ah=.001,UV=.01,BV=10,HV=.05,zV=1;function qV({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,a=1-t;a=gm(HV,zV,a),e=gm(UV,BV,e/1e3),a<1?(i=l=>{const c=l*a,f=c*e,p=c-n,d=ym(l,a),m=Math.exp(-f);return ah-p/d*m},o=l=>{const f=l*a*e,p=f*n+n,d=Math.pow(a,2)*Math.pow(l,2)*e,m=Math.exp(-f),_=ym(Math.pow(l,2),a);return(-i(l)+ah>0?-1:1)*((p-d)*m)/_}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-ah+c*f},o=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const s=5/e,u=WV(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const VV=12;function WV(e,t,n){let r=n;for(let i=1;i<VV;i++)r=r-e(r)/t(r);return r}function ym(e,t){return e*Math.sqrt(1-t*t)}const QV=["duration","bounce"],GV=["stiffness","damping","mass"];function sb(e,t){return t.some(n=>e[n]!==void 0)}function YV(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!sb(e,GV)&&sb(e,QV)){const n=qV(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function t0(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=XC(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:f,isResolvedFromDuration:p}=YV(o),d=ub,m=ub;function _(){const b=c?-(c/1e3):0,g=n-t,y=u/(2*Math.sqrt(s*l)),v=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),y<1){const h=ym(v,y);d=w=>{const E=Math.exp(-y*v*w);return n-E*((b+y*v*g)/h*Math.sin(h*w)+g*Math.cos(h*w))},m=w=>{const E=Math.exp(-y*v*w);return y*v*E*(Math.sin(h*w)*(b+y*v*g)/h+g*Math.cos(h*w))-E*(Math.cos(h*w)*(b+y*v*g)-h*g*Math.sin(h*w))}}else if(y===1)d=h=>n-Math.exp(-v*h)*(g+(b+v*g)*h);else{const h=v*Math.sqrt(y*y-1);d=w=>{const E=Math.exp(-y*v*w),S=Math.min(h*w,300);return n-E*((b+y*v*g)*Math.sinh(S)+h*g*Math.cosh(S))/h}}}return _(),{next:b=>{const g=d(b);if(p)a.done=b>=f;else{const y=m(b)*1e3,v=Math.abs(y)<=r,h=Math.abs(n-g)<=i;a.done=v&&h}return a.value=a.done?n:g,a},flipTarget:()=>{c=-c,[t,n]=[n,t],_()}}}t0.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const ub=e=>0,KC=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},n0=(e,t,n)=>-n*e+n*t+e;function sh(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lb({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;i=sh(u,s,e+1/3),o=sh(u,s,e),a=sh(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const XV=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},KV=[pm,Qr,Pi],cb=e=>KV.find(t=>t.test(e)),JC=(e,t)=>{let n=cb(e),r=cb(t),i=n.parse(e),o=r.parse(t);n===Pi&&(i=lb(i),n=Qr),r===Pi&&(o=lb(o),r=Qr);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=XV(i[u],o[u],s));return a.alpha=n0(i.alpha,o.alpha,s),n.transform(a)}},JV=e=>typeof e=="number",ZV=(e,t)=>n=>t(e(n)),r0=(...e)=>e.reduce(ZV);function ZC(e,t){return JV(e)?n=>n0(e,t,n):bt.test(e)?JC(e,t):tA(e,t)}const eA=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>ZC(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},e9=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=ZC(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function fb(e){const t=po.parse(e),n=t.length;let r=0,i=0,o=0;for(let a=0;a<n;a++)r||typeof t[a]=="number"?r++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const tA=(e,t)=>{const n=po.createTransformer(t),r=fb(e),i=fb(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?r0(eA(r.parsed,i.parsed),n):a=>`${a>0?t:e}`},t9=(e,t)=>n=>n0(e,t,n);function n9(e){if(typeof e=="number")return t9;if(typeof e=="string")return bt.test(e)?JC:tA;if(Array.isArray(e))return eA;if(typeof e=="object")return e9}function r9(e,t,n){const r=[],i=n||n9(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]:t;s=r0(u,s)}r.push(s)}return r}function i9([e,t],[n]){return r=>n(KC(e,t,r))}function o9(e,t){const n=e.length,r=n-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[r]&&(o=r-1,a=!0),!a){let u=1;for(;u<n&&!(e[u]>i||u===r);u++);o=u-1}const s=KC(e[o],e[o+1],i);return t[o](s)}}function nA(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;Su(o===t.length),Su(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=r9(t,r,i),s=o===2?i9(e,a):o9(e,a);return n?u=>s(gm(e[0],e[o-1],u)):s}const Qd=e=>t=>1-e(1-t),i0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,a9=e=>t=>Math.pow(t,e),rA=e=>t=>t*t*((e+1)*t-e),s9=e=>{const t=rA(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},iA=1.525,u9=4/11,l9=8/11,c9=9/10,oA=e=>e,o0=a9(2),f9=Qd(o0),aA=i0(o0),sA=e=>1-Math.sin(Math.acos(e)),uA=Qd(sA),d9=i0(uA),a0=rA(iA),p9=Qd(a0),h9=i0(a0),v9=s9(iA),m9=4356/361,g9=35442/1805,y9=16061/1805,Sf=e=>{if(e===1||e===0)return e;const t=e*e;return e<u9?7.5625*t:e<l9?9.075*t-9.9*e+3.4:e<c9?m9*t-g9*e+y9:10.8*e*e-20.52*e+10.72},_9=Qd(Sf),w9=e=>e<.5?.5*(1-Sf(1-e*2)):.5*Sf(e*2-1)+.5;function b9(e,t){return e.map(()=>t||aA).splice(0,e.length-1)}function E9(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function S9(e,t){return e.map(n=>n*t)}function Tc({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=S9(r&&r.length===a.length?r:E9(a),i);function u(){return nA(s,a,{ease:Array.isArray(n)?n:b9(a,n)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function T9({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=n*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const f=-s*Math.exp(-c/r);return a.done=!(f>i||f<-i),a.value=a.done?l:l+f,a},flipTarget:()=>{}}}const db={keyframes:Tc,spring:t0,decay:T9};function x9(e){if(Array.isArray(e.to))return Tc;if(db[e.type])return db[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Tc:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?t0:Tc}const lA=1/60*1e3,O9=typeof performance<"u"?()=>performance.now():()=>Date.now(),cA=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(O9()),lA);function k9(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const f=c&&i,p=f?t:n;return l&&a.add(u),p.indexOf(u)===-1&&(p.push(u),f&&i&&(r=t.length)),u},cancel:u=>{const l=n.indexOf(u);l!==-1&&n.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let l=0;l<r;l++){const c=t[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const C9=40;let _m=!0,ku=!1,wm=!1;const oa={delta:0,timestamp:0},al=["read","update","preRender","render","postRender"],Gd=al.reduce((e,t)=>(e[t]=k9(()=>ku=!0),e),{}),Cu=al.reduce((e,t)=>{const n=Gd[t];return e[t]=(r,i=!1,o=!1)=>(ku||R9(),n.schedule(r,i,o)),e},{}),bm=al.reduce((e,t)=>(e[t]=Gd[t].cancel,e),{});al.reduce((e,t)=>(e[t]=()=>Gd[t].process(oa),e),{});const A9=e=>Gd[e].process(oa),fA=e=>{ku=!1,oa.delta=_m?lA:Math.max(Math.min(e-oa.timestamp,C9),1),oa.timestamp=e,wm=!0,al.forEach(A9),wm=!1,ku&&(_m=!1,cA(fA))},R9=()=>{ku=!0,_m=!0,wm||cA(fA)},dA=()=>oa;function pA(e,t,n=0){return e-t-n}function P9(e,t,n=0,r=!0){return r?pA(t+-e,t,n):t-(e-t)+n}function I9(e,t,n,r){return r?e>=t+n:e<=-n}const D9=e=>{const t=({delta:n})=>e(n);return{start:()=>Cu.update(t,!0),stop:()=>bm.update(t)}};function hA(e){var t,n,{from:r,autoplay:i=!0,driver:o=D9,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:f,onComplete:p,onRepeat:d,onUpdate:m}=e,_=XC(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=_,g,y=0,v=_.duration,h,w=!1,E=!0,S;const T=x9(_);!((n=(t=T).needsInterpolation)===null||n===void 0)&&n.call(t,r,b)&&(S=nA([0,100],[r,b],{clamp:!1}),r=0,b=100);const O=T(Object.assign(Object.assign({},_),{from:r,to:b}));function x(){y++,u==="reverse"?(E=y%2===0,a=P9(a,v,l,E)):(a=pA(a,v,l),u==="mirror"&&O.flipTarget()),w=!1,d&&d()}function D(){g.stop(),p&&p()}function V(F){if(E||(F=-F),a+=F,!w){const L=O.next(Math.max(0,a));h=L.value,S&&(h=S(h)),w=E?L.done:a<=0}m==null||m(h),w&&(y===0&&(v!=null||(v=a)),y<s?I9(a,v,l,E)&&x():D())}function B(){c==null||c(),g=o(V),g.start()}return i&&B(),{stop:()=>{f==null||f(),g.stop()}}}function vA(e,t){return t?e*(1e3/t):0}function L9({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:f,onComplete:p,onStop:d}){let m;function _(v){return n!==void 0&&v<n||r!==void 0&&v>r}function b(v){return n===void 0?r:r===void 0||Math.abs(n-v)<Math.abs(r-v)?n:r}function g(v){m==null||m.stop(),m=hA(Object.assign(Object.assign({},v),{driver:c,onUpdate:h=>{var w;f==null||f(h),(w=v.onUpdate)===null||w===void 0||w.call(v,h)},onComplete:p,onStop:d}))}function y(v){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},v))}if(_(e))y({from:e,velocity:t,to:b(e)});else{let v=i*t+e;typeof l<"u"&&(v=l(v));const h=b(v),w=h===n?-1:1;let E,S;const T=O=>{E=S,S=O,t=vA(O-E,dA().delta),(w===1&&O>h||w===-1&&O<h)&&y({from:O,to:h,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:_(v)?T:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const mA=(e,t)=>1-3*t+3*e,gA=(e,t)=>3*t-6*e,yA=e=>3*e,Tf=(e,t,n)=>((mA(t,n)*e+gA(t,n))*e+yA(t))*e,_A=(e,t,n)=>3*mA(t,n)*e*e+2*gA(t,n)*e+yA(t),M9=1e-7,N9=10;function $9(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=Tf(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>M9&&++s<N9);return a}const F9=8,j9=.001;function U9(e,t,n,r){for(let i=0;i<F9;++i){const o=_A(t,n,r);if(o===0)return t;const a=Tf(t,n,r)-e;t-=a/o}return t}const xc=11,Wl=1/(xc-1);function B9(e,t,n,r){if(e===t&&n===r)return oA;const i=new Float32Array(xc);for(let a=0;a<xc;++a)i[a]=Tf(a*Wl,e,n);function o(a){let s=0,u=1;const l=xc-1;for(;u!==l&&i[u]<=a;++u)s+=Wl;--u;const c=(a-i[u])/(i[u+1]-i[u]),f=s+c*Wl,p=_A(f,e,n);return p>=j9?U9(a,f,e,n):p===0?f:$9(a,s,s+Wl,e,n)}return a=>a===0||a===1?a:Tf(o(a),t,r)}function H9(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||n||r||i,s=N.useRef(!1),u=N.useRef(null),l={passive:!(n||t||r||m)};function c(){var _;(_=u.current)===null||_===void 0||_.call(u),u.current=null}function f(){var _;return c(),s.current=!1,(_=o.animationState)===null||_===void 0||_.setActive(Ie.Tap,!1),!GC()}function p(_,b){f()&&(YC(o.getInstance(),_.target)?t==null||t(_,b):r==null||r(_,b))}function d(_,b){f()&&(r==null||r(_,b))}function m(_,b){var g;c(),!s.current&&(s.current=!0,u.current=r0(ob(window,"pointerup",p,l),ob(window,"pointercancel",d,l)),(g=o.animationState)===null||g===void 0||g.setActive(Ie.Tap,!0),n==null||n(_,b))}mm(o,"pointerdown",a?m:void 0,l),jV(c)}var pb=new Set;function z9(e,t,n){pb.has(t)||(console.warn(t),pb.add(t))}var Em=new WeakMap,uh=new WeakMap,q9=function(e){var t;(t=Em.get(e.target))===null||t===void 0||t(e)},V9=function(e){e.forEach(q9)};function W9(e){var t=e.root,n=En(e,["root"]),r=t||document;uh.has(r)||uh.set(r,{});var i=uh.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(V9,K({root:t},n))),i[o]}function Q9(e,t,n){var r=W9(t);return Em.set(e,n),r.observe(e),function(){Em.delete(e),r.unobserve(e)}}function G9(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=N.useRef({hasEnteredView:!1,isInView:!1}),u=!!(n||r||i);a.once&&s.current.hasEnteredView&&(u=!1);var l=typeof IntersectionObserver>"u"?K9:X9;l(u,s.current,t,a)}var Y9={some:0,all:1};function X9(e,t,n,r){var i=r.root,o=r.margin,a=r.amount,s=a===void 0?"some":a,u=r.once;N.useEffect(function(){if(e){var l={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof s=="number"?s:Y9[s]},c=function(f){var p,d=f.isIntersecting;if(t.isInView!==d&&(t.isInView=d,!(u&&!d&&t.hasEnteredView))){d&&(t.hasEnteredView=!0),(p=n.animationState)===null||p===void 0||p.setActive(Ie.InView,d);var m=n.getProps(),_=d?m.onViewportEnter:m.onViewportLeave;_==null||_(f)}};return Q9(n.getInstance(),l,c)}},[e,i,o,s])}function K9(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;N.useEffect(function(){!e||!o||(vC!=="production"&&z9(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=n.getProps().onViewportEnter;s==null||s(null),(a=n.animationState)===null||a===void 0||a.setActive(Ie.InView,!0)}))},[e])}var Wo=function(e){return function(t){return e(t),null}},J9={inView:Wo(G9),tap:Wo(H9),focus:Wo(EV),hover:Wo(FV)},Z9=0,e7=function(){return Z9++},t7=function(){return Qy(e7)};function n7(){var e=N.useContext(qd);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=t7();N.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function wA(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Sm=function(e){return e*1e3},hb={linear:oA,easeIn:o0,easeInOut:aA,easeOut:f9,circIn:sA,circInOut:d9,circOut:uA,backIn:a0,backInOut:h9,backOut:p9,anticipate:v9,bounceIn:_9,bounceInOut:w9,bounceOut:Sf},vb=function(e){if(Array.isArray(e)){Su(e.length===4);var t=Bt(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return B9(n,r,i,o)}else if(typeof e=="string")return Su(hb[e]!==void 0),hb[e];return e},r7=function(e){return Array.isArray(e)&&typeof e[0]!="number"},mb=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&po.test(t)&&!t.startsWith("url("))},wi=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ql=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},lh=function(){return{type:"keyframes",ease:"linear",duration:.3}},i7=function(e){return{type:"keyframes",duration:.8,values:e}},gb={x:wi,y:wi,z:wi,rotate:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scaleX:Ql,scaleY:Ql,scale:Ql,opacity:lh,backgroundColor:lh,color:lh,default:Ql},o7=function(e,t){var n;return Ou(t)?n=i7:n=gb[e]||gb.default,K({to:t},n(t))},a7=K(K({},DC),{color:bt,backgroundColor:bt,outlineColor:bt,fill:bt,stroke:bt,borderColor:bt,borderTopColor:bt,borderRightColor:bt,borderBottomColor:bt,borderLeftColor:bt,filter:hm,WebkitFilter:hm}),s0=function(e){return a7[e]};function u0(e,t){var n,r=s0(e);return r!==hm&&(r=po),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function s7(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=En(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function u7(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,a=En(e,["ease","times","yoyo","flip","loop"]),s=K({},a);return n&&(s.offset=n),a.duration&&(s.duration=Sm(a.duration)),a.repeatDelay&&(s.repeatDelay=Sm(a.repeatDelay)),t&&(s.ease=r7(t)?t.map(vb):vb(t)),a.type==="tween"&&(s.type="keyframes"),(r||o||i)&&(r?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||r||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function l7(e,t){var n,r,i=bA(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function c7(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=Ji([],Bt(e.to),!1),e.to[0]=e.from),e}function f7(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),c7(t),s7(e)||(e=K(K({},e),o7(n,t.to))),K(K({},t),u7(e))}function d7(e,t,n,r,i){var o,a=bA(r,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),u=mb(e,n);s==="none"&&u&&typeof n=="string"?s=u0(e,n):yb(s)&&typeof n=="string"?s=_b(n):!Array.isArray(n)&&yb(n)&&typeof s=="string"&&(n=_b(s));var l=mb(e,s);function c(){var p={from:s,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(d){return t.set(d)}};return a.type==="inertia"||a.type==="decay"?L9(K(K({},p),a)):hA(K(K({},f7(a,p,e)),{onUpdate:function(d){var m;p.onUpdate(d),(m=a.onUpdate)===null||m===void 0||m.call(a,d)},onComplete:function(){var d;p.onComplete(),(d=a.onComplete)===null||d===void 0||d.call(a)}}))}function f(){var p,d,m=HC(n);return t.set(m),i(),(p=a==null?void 0:a.onUpdate)===null||p===void 0||p.call(a,m),(d=a==null?void 0:a.onComplete)===null||d===void 0||d.call(a),{stop:function(){}}}return!l||!u||a.type===!1?f:c}function yb(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function _b(e){return typeof e=="number"?0:u0("",e)}function bA(e,t){return e[t]||e.default||e}function p7(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,a,s=d7(e,t,n,r,i),u=l7(r,e),l=function(){return a=s()};return u?o=window.setTimeout(l,Sm(u)):l(),function(){clearTimeout(o),a==null||a.stop()}})}var h7=function(e){return/^\-?\d*\.?\d+$/.test(e)},v7=function(e){return/^0[^.\s]+$/.test(e)};function m7(e,t){e.indexOf(t)===-1&&e.push(t)}function g7(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Oc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return m7(this.subscriptions,t),function(){return g7(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),y7=function(e){return!isNaN(parseFloat(e))},_7=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Oc,this.velocityUpdateSubscribers=new Oc,this.renderSubscribers=new Oc,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=dA(),a=o.delta,s=o.timestamp;n.lastUpdated!==s&&(n.timeDelta=a,n.lastUpdated=s,Cu.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Cu.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=y7(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?vA(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Au(e){return new _7(e)}var EA=function(e){return function(t){return t.test(e)}},w7={test:function(e){return e==="auto"},parse:function(e){return e}},SA=[fo,ie,ia,Mr,G8,Q8,w7],is=function(e){return SA.find(EA(e))},b7=Ji(Ji([],Bt(SA),!1),[bt,po],!1),E7=function(e){return b7.find(EA(e))};function S7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Au(n))}function T7(e,t){var n=Vd(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var a=En(r,["transitionEnd","transition"]);a=K(K({},a),o);for(var s in a){var u=HC(a[s]);S7(e,s,u)}}function x7(e,t,n){var r,i,o,a,s=Object.keys(t).filter(function(d){return!e.hasValue(d)}),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],f=t[c],p=null;Array.isArray(f)&&(p=f[0]),p===null&&(p=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),p!=null&&(typeof p=="string"&&(h7(p)||v7(p))?p=parseFloat(p):!E7(p)&&po.test(f)&&(p=u0(c,f)),e.addValue(c,Au(p)),(o=(a=n)[c])!==null&&o!==void 0||(a[c]=p),e.setBaseTarget(c,p))}}function O7(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function k7(e,t,n){var r,i,o={};for(var a in e)o[a]=(r=O7(a,t))!==null&&r!==void 0?r:(i=n.getValue(a))===null||i===void 0?void 0:i.get();return o}function C7(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(a){return Tm(e,a,n)});r=Promise.all(i)}else if(typeof t=="string")r=Tm(e,t,n);else{var o=typeof t=="function"?Vd(e,t,n.custom):t;r=TA(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function Tm(e,t,n){var r;n===void 0&&(n={});var i=Vd(e,t,n.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(a=n.transitionOverride);var s=i?function(){return TA(e,i,n)}:function(){return Promise.resolve()},u=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(d){d===void 0&&(d=0);var m=a.delayChildren,_=m===void 0?0:m,b=a.staggerChildren,g=a.staggerDirection;return A7(e,t,_+d,b,g,n)}:function(){return Promise.resolve()},l=a.when;if(l){var c=Bt(l==="beforeChildren"?[s,u]:[u,s],2),f=c[0],p=c[1];return f().then(p)}else return Promise.all([s(),u(n.delay)])}function TA(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,f=c===void 0?e.getDefaultTransition():c,p=l.transitionEnd,d=En(l,["transition","transitionEnd"]);s&&(f=s);var m=[],_=u&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[u]);for(var b in d){var g=e.getValue(b),y=d[b];if(!(!g||y===void 0||_&&P7(_,b))){var v=K({delay:a},f);e.shouldReduceMotion&&rl(b)&&(v=K(K({},v),{type:!1,delay:0}));var h=p7(b,g,y,v);m.push(h)}}return Promise.all(m).then(function(){p&&T7(e,p)})}function A7(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*r,u=i===1?function(l){return l===void 0&&(l=0),l*r}:function(l){return l===void 0&&(l=0),s-l*r};return Array.from(e.variantChildren).sort(R7).forEach(function(l,c){a.push(Tm(l,t,K(K({},o),{delay:n+u(c)})).then(function(){return l.notifyAnimationComplete(t)}))}),Promise.all(a)}function R7(e,t){return e.sortNodePosition(t)}function P7(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var l0=[Ie.Animate,Ie.InView,Ie.Focus,Ie.Hover,Ie.Tap,Ie.Drag,Ie.Exit],I7=Ji([],Bt(l0),!1).reverse(),D7=l0.length;function L7(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return C7(e,r,i)}))}}function M7(e){var t=L7(e),n=$7(),r={},i=!0,o=function(c,f){var p=Vd(e,f);if(p){p.transition;var d=p.transitionEnd,m=En(p,["transition","transitionEnd"]);c=K(K(K({},c),m),d)}return c};function a(c){return r[c]!==void 0}function s(c){t=c(e)}function u(c,f){for(var p,d=e.getProps(),m=e.getVariantContext(!0)||{},_=[],b=new Set,g={},y=1/0,v=function(S){var T=I7[S],O=n[T],x=(p=d[T])!==null&&p!==void 0?p:m[T],D=Cn(x),V=T===f?O.isActive:null;V===!1&&(y=S);var B=x===m[T]&&x!==d[T]&&D;if(B&&i&&e.manuallyAnimateOnMount&&(B=!1),O.protectedKeys=K({},g),!O.isActive&&V===null||!x&&!O.prevProp||e0(x)||typeof x=="boolean")return"continue";var F=N7(O.prevProp,x),L=F||T===f&&O.isActive&&!B&&D||S>y&&D,q=Array.isArray(x)?x:[x],R=q.reduce(o,{});V===!1&&(R={});var k=O.prevResolvedValues,C=k===void 0?{}:k,A=K(K({},C),R),j=function(P){L=!0,b.delete(P),O.needsAnimating[P]=!0};for(var M in A){var H=R[M],I=C[M];g.hasOwnProperty(M)||(H!==I?Ou(H)&&Ou(I)?!wA(H,I)||F?j(M):O.protectedKeys[M]=!0:H!==void 0?j(M):b.add(M):H!==void 0&&b.has(M)?j(M):O.protectedKeys[M]=!0)}O.prevProp=x,O.prevResolvedValues=R,O.isActive&&(g=K(K({},g),R)),i&&e.blockInitialAnimation&&(L=!1),L&&!B&&_.push.apply(_,Ji([],Bt(q.map(function(P){return{animation:P,options:K({type:T},c)}})),!1))},h=0;h<D7;h++)v(h);if(r=K({},g),b.size){var w={};b.forEach(function(S){var T=e.getBaseTarget(S);T!==void 0&&(w[S]=T)}),_.push({animation:w})}var E=!!_.length;return i&&d.initial===!1&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(_):Promise.resolve()}function l(c,f,p){var d;if(n[c].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(function(b){var g;return(g=b.animationState)===null||g===void 0?void 0:g.setActive(c,f)}),n[c].isActive=f;var m=u(p,c);for(var _ in n)n[_].protectedKeys={};return m}return{isAnimated:a,animateChanges:u,setActive:l,setAnimateFunction:s,getState:function(){return n}}}function N7(e,t){return typeof t=="string"?t!==e:wC(t)?!wA(t,e):!1}function bi(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $7(){var e;return e={},e[Ie.Animate]=bi(!0),e[Ie.InView]=bi(),e[Ie.Hover]=bi(),e[Ie.Tap]=bi(),e[Ie.Drag]=bi(),e[Ie.Focus]=bi(),e[Ie.Exit]=bi(),e}var F7={animation:Wo(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=M7(t)),e0(n)&&N.useEffect(function(){return n.subscribe(t)},[n])}),exit:Wo(function(e){var t=e.custom,n=e.visualElement,r=Bt(n7(),2),i=r[0],o=r[1],a=N.useContext(qd);N.useEffect(function(){var s,u;n.isPresent=i;var l=(s=n.animationState)===null||s===void 0?void 0:s.setActive(Ie.Exit,!i,{custom:(u=a==null?void 0:a.custom)!==null&&u!==void 0?u:t});!i&&(l==null||l.then(o))},[i])})};function j7(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function U7(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function B7(e,t){return j7(U7(e.getBoundingClientRect(),t))}var Gl=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function H7(){var e=Gl.map(function(){return new Oc}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Gl.forEach(function(i){var o,a="on"+i,s=r[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=n[a](s))})}};return e.forEach(function(r,i){n["on"+Gl[i]]=function(o){return r.add(o)},n["notify"+Gl[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return r.notify.apply(r,Ji([],Bt(o),!1))}}),n}function z7(e,t,n){var r;for(var i in t){var o=t[i],a=n[i];if(si(o))e.addValue(i,o);else if(si(a))e.addValue(i,Au(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Au((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var xA=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,f=e.scrapeMotionValuesFromProps;return function(p,d){var m=p.parent,_=p.props,b=p.presenceId,g=p.blockInitialAnimation,y=p.visualState,v=p.shouldReduceMotion;d===void 0&&(d={});var h=!1,w=y.latestValues,E=y.renderState,S,T=H7(),O=new Map,x=new Map,D={},V=K({},w),B;function F(){!S||!h||(L(),s(S,E,_.style,H.projection))}function L(){r(H,E,w,d,_)}function q(){T.notifyUpdate(w)}function R(I,P){var W=P.onChange(function(ne){w[I]=ne,_.onUpdate&&Cu.update(q,!1,!0)}),Z=P.onRenderRequest(H.scheduleRender);x.set(I,function(){W(),Z()})}var k=f(_);for(var C in k){var A=k[C];w[C]!==void 0&&si(A)&&A.set(w[C],!1)}var j=Wd(_),M=EC(_),H=K(K({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,presenceId:b,shouldReduceMotion:v,variantChildren:M?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(m!=null&&m.isMounted()),blockInitialAnimation:g,isMounted:function(){return!!S},mount:function(I){h=!0,S=H.current=I,H.projection&&H.projection.mount(I),M&&m&&!j&&(B=m==null?void 0:m.addVariantChild(H)),O.forEach(function(P,W){return R(W,P)}),m==null||m.children.add(H),H.setProps(_)},unmount:function(){var I;(I=H.projection)===null||I===void 0||I.unmount(),bm.update(q),bm.render(F),x.forEach(function(P){return P()}),B==null||B(),m==null||m.children.delete(H),T.clearAllListeners(),S=void 0,h=!1},addVariantChild:function(I){var P,W=H.getClosestVariantNode();if(W)return(P=W.variantChildren)===null||P===void 0||P.add(I),function(){return W.variantChildren.delete(I)}},sortNodePosition:function(I){return!c||n!==I.treeType?0:c(H.getInstance(),I.getInstance())},getClosestVariantNode:function(){return M?H:m==null?void 0:m.getClosestVariantNode()},getLayoutId:function(){return _.layoutId},getInstance:function(){return S},getStaticValue:function(I){return w[I]},setStaticValue:function(I,P){return w[I]=P},getLatestValues:function(){return w},setVisibility:function(I){H.isVisible!==I&&(H.isVisible=I,H.scheduleRender())},makeTargetAnimatable:function(I,P){return P===void 0&&(P=!0),o(H,I,_,P)},measureViewportBox:function(){return a(S,_)},addValue:function(I,P){H.hasValue(I)&&H.removeValue(I),O.set(I,P),w[I]=P.get(),R(I,P)},removeValue:function(I){var P;O.delete(I),(P=x.get(I))===null||P===void 0||P(),x.delete(I),delete w[I],l(I,E)},hasValue:function(I){return O.has(I)},getValue:function(I,P){var W=O.get(I);return W===void 0&&P!==void 0&&(W=Au(P),H.addValue(I,W)),W},forEachValue:function(I){return O.forEach(I)},readValue:function(I){var P;return(P=w[I])!==null&&P!==void 0?P:u(S,I,d)},setBaseTarget:function(I,P){V[I]=P},getBaseTarget:function(I){if(i){var P=i(_,I);if(P!==void 0&&!si(P))return P}return V[I]}},T),{build:function(){return L(),E},scheduleRender:function(){Cu.render(F,!1,!0)},syncRender:F,setProps:function(I){(I.transformTemplate||_.transformTemplate)&&H.scheduleRender(),_=I,T.updatePropListeners(I),D=z7(H,f(_),D)},getProps:function(){return _},getVariant:function(I){var P;return(P=_.variants)===null||P===void 0?void 0:P[I]},getDefaultTransition:function(){return _.transition},getTransformPagePoint:function(){return _.transformPagePoint},getVariantContext:function(I){if(I===void 0&&(I=!1),I)return m==null?void 0:m.getVariantContext();if(!j){var P=(m==null?void 0:m.getVariantContext())||{};return _.initial!==void 0&&(P.initial=_.initial),P}for(var W={},Z=0;Z<q7;Z++){var ne=OA[Z],oe=_[ne];(Cn(oe)||oe===!1)&&(W[ne]=oe)}return W}});return H}},OA=Ji(["initial"],Bt(l0),!1),q7=OA.length;function xm(e){return typeof e=="string"&&e.startsWith("var(--")}var V7=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function W7(e){var t=V7.exec(e);if(!t)return[,];var n=Bt(t,3),r=n[1],i=n[2];return[r,i]}function Om(e,t,n){var r=Bt(W7(e),2),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():xm(o)?Om(o,t):o}}function Q7(e,t,n){var r,i=En(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=K({},n)),e.forEachValue(function(l){var c=l.get();if(xm(c)){var f=Om(c,o);f&&l.set(f)}});for(var a in i){var s=i[a];if(xm(s)){var u=Om(s,o);u&&(i[a]=u,n&&((r=n[a])!==null&&r!==void 0||(n[a]=s)))}}return{target:i,transitionEnd:n}}var G7=new Set(["width","height","top","left","right","bottom","x","y"]),kA=function(e){return G7.has(e)},Y7=function(e){return Object.keys(e).some(kA)},CA=function(e,t){e.set(t,!1),e.set(t)},wb=function(e){return e===fo||e===ie},bb;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(bb||(bb={}));var Eb=function(e,t){return parseFloat(e.split(", ")[t])},Sb=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Eb(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?Eb(a[1],e):0}},X7=new Set(["x","y","z"]),K7=Tu.filter(function(e){return!X7.has(e)});function J7(e){var t=[];return K7.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var Tb={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,a=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Sb(4,13),y:Sb(5,14)},Z7=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(l){s[l]=Tb[l](r,o)}),t.syncRender();var u=t.measureViewportBox();return n.forEach(function(l){var c=t.getValue(l);CA(c,s[l]),e[l]=Tb[l](u,o)}),e},eW=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=K({},t),r=K({},r);var i=Object.keys(t).filter(kA),o=[],a=!1,s=[];if(i.forEach(function(c){var f=e.getValue(c);if(e.hasValue(c)){var p=n[c],d=is(p),m=t[c],_;if(Ou(m)){var b=m.length,g=m[0]===null?1:0;p=m[g],d=is(p);for(var y=g;y<b;y++)_?Su(is(m[y])===_):_=is(m[y])}else _=is(m);if(d!==_)if(wb(d)&&wb(_)){var v=f.get();typeof v=="string"&&f.set(parseFloat(v)),typeof m=="string"?t[c]=parseFloat(m):Array.isArray(m)&&_===ie&&(t[c]=m.map(parseFloat))}else d!=null&&d.transform&&(_!=null&&_.transform)&&(p===0||m===0)?p===0?f.set(_.transform(p)):t[c]=d.transform(m):(a||(o=J7(e),a=!0),s.push(c),r[c]=r[c]!==void 0?r[c]:t[c],CA(f,m))}}),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=Z7(t,e,s);return o.length&&o.forEach(function(c){var f=Bt(c,2),p=f[0],d=f[1];e.getValue(p).set(d)}),e.syncRender(),u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}else return{target:t,transitionEnd:r}};function tW(e,t,n,r){return Y7(t)?eW(e,t,n,r):{target:t,transitionEnd:r}}var nW=function(e,t,n,r){var i=Q7(e,t,r);return t=i.target,r=i.transitionEnd,tW(e,t,n,r)};function rW(e){return window.getComputedStyle(e)}var AA={treeType:"dom",readValueFromInstance:function(e,t){if(rl(t)){var n=s0(t);return n&&n.default||0}else{var r=rW(e);return(xC(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return B7(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,a=t.transitionEnd,s=En(t,["transition","transitionEnd"]),u=k7(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),r){x7(e,s,u);var l=nW(e,s,u,a);a=l.transitionEnd,s=l.target}return K({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Zy,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Xy(t,n,r,i.transformTemplate)},render:FC},iW=xA(AA),oW=xA(K(K({},AA),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return rl(t)?((n=s0(t))===null||n===void 0?void 0:n.default)||0:(t=jC.has(t)?t:$C(t),e.getAttribute(t))},scrapeMotionValuesFromProps:BC,build:function(e,t,n,r,i){Jy(t,n,r,i.transformTemplate)},render:UC})),aW=function(e,t){return Gy(e)?oW(t,{enableHardwareAcceleration:!1}):iW(t,{enableHardwareAcceleration:!0})},PK=L8(bV);function IK(e){var t=e.children,n=e.features,r=e.strict,i=r===void 0?!1:r,o=Bt(N.useState(!ch(n)),2),a=o[1],s=N.useRef(void 0);if(!ch(n)){var u=n.renderer,l=En(n,["renderer"]);s.current=u,cm(l)}return N.useEffect(function(){ch(n)&&n().then(function(c){var f=c.renderer,p=En(c,["renderer"]);cm(p),s.current=f,a(!0)})},[]),N.createElement(Wy.Provider,{value:{renderer:s.current,strict:i}},t)}function ch(e){return typeof e=="function"}var DK=K(K({renderer:aW},F7),J9);function sW(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var RA=N,uW=sW(RA);function xb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var cW=!!(typeof window<"u"&&window.document&&window.document.createElement);function fW(e,t,n){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],s;function u(){s=e(a.map(function(c){return c.props})),l.canUseDOM?t(s):n&&(s=n(s))}var l=function(c){lW(f,c);function f(){return c.apply(this,arguments)||this}f.peek=function(){return s},f.rewind=function(){if(f.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var m=s;return s=void 0,a=[],m};var p=f.prototype;return p.UNSAFE_componentWillMount=function(){a.push(this),u()},p.componentDidUpdate=function(){u()},p.componentWillUnmount=function(){var m=a.indexOf(this);a.splice(m,1),u()},p.render=function(){return uW.createElement(o,this.props)},f}(RA.PureComponent);return xb(l,"displayName","SideEffect("+r(o)+")"),xb(l,"canUseDOM",cW),l}}var dW=fW;const pW=ft(dW);var hW=typeof Element<"u",vW=typeof Map=="function",mW=typeof Set=="function",gW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function kc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!kc(e[r],t[r]))return!1;return!0}var o;if(vW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!kc(r.value[1],t.get(r.value[0])))return!1;return!0}if(mW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(gW&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(hW&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!kc(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var yW=function(t,n){try{return kc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const _W=ft(yW);/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Ob=Object.getOwnPropertySymbols,wW=Object.prototype.hasOwnProperty,bW=Object.prototype.propertyIsEnumerable;function EW(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function SW(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var TW=SW()?Object.assign:function(e,t){for(var n,r=EW(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)wW.call(n,a)&&(r[a]=n[a]);if(Ob){i=Ob(n);for(var s=0;s<i.length;s++)bW.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r};const xW=ft(TW);var Ui={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},ae={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(ae).map(function(e){return ae[e]});var Pe={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},xf={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ru={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},OW=Object.keys(xf).reduce(function(e,t){return e[xf[t]]=t,e},{}),kW=[ae.NOSCRIPT,ae.SCRIPT,ae.STYLE],In="data-react-helmet",CW=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AW=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},RW=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PW=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},kb=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},IW=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},km=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},DW=function(t){var n=aa(t,ae.TITLE),r=aa(t,Ru.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=aa(t,Ru.DEFAULT_TITLE);return n||i||void 0},LW=function(t){return aa(t,Ru.ON_CHANGE_CLIENT_STATE)||function(){}},fh=function(t,n){return n.filter(function(r){return typeof r[t]<"u"}).map(function(r){return r[t]}).reduce(function(r,i){return Rt({},r,i)},{})},MW=function(t,n){return n.filter(function(r){return typeof r[ae.BASE]<"u"}).map(function(r){return r[ae.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();if(t.indexOf(u)!==-1&&i[u])return r.concat(i)}return r},[])},os=function(t,n,r){var i={};return r.filter(function(o){return Array.isArray(o[t])?!0:(typeof o[t]<"u"&&jW("Helmet: "+t+' should be of type "Array". Instead found type "'+CW(o[t])+'"'),!1)}).map(function(o){return o[t]}).reverse().reduce(function(o,a){var s={};a.filter(function(p){for(var d=void 0,m=Object.keys(p),_=0;_<m.length;_++){var b=m[_],g=b.toLowerCase();n.indexOf(g)!==-1&&!(d===Pe.REL&&p[d].toLowerCase()==="canonical")&&!(g===Pe.REL&&p[g].toLowerCase()==="stylesheet")&&(d=g),n.indexOf(b)!==-1&&(b===Pe.INNER_HTML||b===Pe.CSS_TEXT||b===Pe.ITEM_PROP)&&(d=b)}if(!d||!p[d])return!1;var y=p[d].toLowerCase();return i[d]||(i[d]={}),s[d]||(s[d]={}),i[d][y]?!1:(s[d][y]=!0,!0)}).reverse().forEach(function(p){return o.push(p)});for(var u=Object.keys(s),l=0;l<u.length;l++){var c=u[l],f=xW({},i[c],s[c]);i[c]=f}return o},[]).reverse()},aa=function(t,n){for(var r=t.length-1;r>=0;r--){var i=t[r];if(i.hasOwnProperty(n))return i[n]}return null},NW=function(t){return{baseTag:MW([Pe.HREF,Pe.TARGET],t),bodyAttributes:fh(Ui.BODY,t),defer:aa(t,Ru.DEFER),encode:aa(t,Ru.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fh(Ui.HTML,t),linkTags:os(ae.LINK,[Pe.REL,Pe.HREF],t),metaTags:os(ae.META,[Pe.NAME,Pe.CHARSET,Pe.HTTPEQUIV,Pe.PROPERTY,Pe.ITEM_PROP],t),noscriptTags:os(ae.NOSCRIPT,[Pe.INNER_HTML],t),onChangeClientState:LW(t),scriptTags:os(ae.SCRIPT,[Pe.SRC,Pe.INNER_HTML],t),styleTags:os(ae.STYLE,[Pe.CSS_TEXT],t),title:DW(t),titleAttributes:fh(Ui.TITLE,t)}},Cm=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout(function(){Cm(t)},0)}}(),Cb=function(t){return clearTimeout(t)},$W=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Cm:global.requestAnimationFrame||Cm,FW=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Cb:global.cancelAnimationFrame||Cb,jW=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},as=null,UW=function(t){as&&FW(as),t.defer?as=$W(function(){Ab(t,function(){as=null})}):(Ab(t),as=null)},Ab=function(t,n){var r=t.baseTag,i=t.bodyAttributes,o=t.htmlAttributes,a=t.linkTags,s=t.metaTags,u=t.noscriptTags,l=t.onChangeClientState,c=t.scriptTags,f=t.styleTags,p=t.title,d=t.titleAttributes;Am(ae.BODY,i),Am(ae.HTML,o),BW(p,d);var m={baseTag:Co(ae.BASE,r),linkTags:Co(ae.LINK,a),metaTags:Co(ae.META,s),noscriptTags:Co(ae.NOSCRIPT,u),scriptTags:Co(ae.SCRIPT,c),styleTags:Co(ae.STYLE,f)},_={},b={};Object.keys(m).forEach(function(g){var y=m[g],v=y.newTags,h=y.oldTags;v.length&&(_[g]=v),h.length&&(b[g]=m[g].oldTags)}),n&&n(),l(t,_,b)},PA=function(t){return Array.isArray(t)?t.join(""):t},BW=function(t,n){typeof t<"u"&&document.title!==t&&(document.title=PA(t)),Am(ae.TITLE,n)},Am=function(t,n){var r=document.getElementsByTagName(t)[0];if(r){for(var i=r.getAttribute(In),o=i?i.split(","):[],a=[].concat(o),s=Object.keys(n),u=0;u<s.length;u++){var l=s[u],c=n[l]||"";r.getAttribute(l)!==c&&r.setAttribute(l,c),o.indexOf(l)===-1&&o.push(l);var f=a.indexOf(l);f!==-1&&a.splice(f,1)}for(var p=a.length-1;p>=0;p--)r.removeAttribute(a[p]);o.length===a.length?r.removeAttribute(In):r.getAttribute(In)!==s.join(",")&&r.setAttribute(In,s.join(","))}},Co=function(t,n){var r=document.head||document.querySelector(ae.HEAD),i=r.querySelectorAll(t+"["+In+"]"),o=Array.prototype.slice.call(i),a=[],s=void 0;return n&&n.length&&n.forEach(function(u){var l=document.createElement(t);for(var c in u)if(u.hasOwnProperty(c))if(c===Pe.INNER_HTML)l.innerHTML=u.innerHTML;else if(c===Pe.CSS_TEXT)l.styleSheet?l.styleSheet.cssText=u.cssText:l.appendChild(document.createTextNode(u.cssText));else{var f=typeof u[c]>"u"?"":u[c];l.setAttribute(c,f)}l.setAttribute(In,"true"),o.some(function(p,d){return s=d,l.isEqualNode(p)})?o.splice(s,1):a.push(l)}),o.forEach(function(u){return u.parentNode.removeChild(u)}),a.forEach(function(u){return r.appendChild(u)}),{oldTags:o,newTags:a}},IA=function(t){return Object.keys(t).reduce(function(n,r){var i=typeof t[r]<"u"?r+'="'+t[r]+'"':""+r;return n?n+" "+i:i},"")},HW=function(t,n,r,i){var o=IA(r),a=PA(n);return o?"<"+t+" "+In+'="true" '+o+">"+km(a,i)+"</"+t+">":"<"+t+" "+In+'="true">'+km(a,i)+"</"+t+">"},zW=function(t,n,r){return n.reduce(function(i,o){var a=Object.keys(o).filter(function(l){return!(l===Pe.INNER_HTML||l===Pe.CSS_TEXT)}).reduce(function(l,c){var f=typeof o[c]>"u"?c:c+'="'+km(o[c],r)+'"';return l?l+" "+f:f},""),s=o.innerHTML||o.cssText||"",u=kW.indexOf(t)===-1;return i+"<"+t+" "+In+'="true" '+a+(u?"/>":">"+s+"</"+t+">")},"")},DA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[xf[i]||i]=t[i],r},n)},qW=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(r,i){return r[OW[i]||i]=t[i],r},n)},VW=function(t,n,r){var i,o=(i={key:n},i[In]=!0,i),a=DA(r,o);return[G.createElement(ae.TITLE,a,n)]},WW=function(t,n){return n.map(function(r,i){var o,a=(o={key:i},o[In]=!0,o);return Object.keys(r).forEach(function(s){var u=xf[s]||s;if(u===Pe.INNER_HTML||u===Pe.CSS_TEXT){var l=r.innerHTML||r.cssText;a.dangerouslySetInnerHTML={__html:l}}else a[u]=r[s]}),G.createElement(t,a)})},fr=function(t,n,r){switch(t){case ae.TITLE:return{toComponent:function(){return VW(t,n.title,n.titleAttributes)},toString:function(){return HW(t,n.title,n.titleAttributes,r)}};case Ui.BODY:case Ui.HTML:return{toComponent:function(){return DA(n)},toString:function(){return IA(n)}};default:return{toComponent:function(){return WW(t,n)},toString:function(){return zW(t,n,r)}}}},LA=function(t){var n=t.baseTag,r=t.bodyAttributes,i=t.encode,o=t.htmlAttributes,a=t.linkTags,s=t.metaTags,u=t.noscriptTags,l=t.scriptTags,c=t.styleTags,f=t.title,p=f===void 0?"":f,d=t.titleAttributes;return{base:fr(ae.BASE,n,i),bodyAttributes:fr(Ui.BODY,r,i),htmlAttributes:fr(Ui.HTML,o,i),link:fr(ae.LINK,a,i),meta:fr(ae.META,s,i),noscript:fr(ae.NOSCRIPT,u,i),script:fr(ae.SCRIPT,l,i),style:fr(ae.STYLE,c,i),title:fr(ae.TITLE,{title:p,titleAttributes:d},i)}},QW=function(t){var n,r;return r=n=function(i){PW(o,i);function o(){return AW(this,o),IW(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(s){return!_W(this.props,s)},o.prototype.mapNestedChildrenToProps=function(s,u){if(!u)return null;switch(s.type){case ae.SCRIPT:case ae.NOSCRIPT:return{innerHTML:u};case ae.STYLE:return{cssText:u}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(s){var u,l=s.child,c=s.arrayTypeChildren,f=s.newChildProps,p=s.nestedChildren;return Rt({},c,(u={},u[l.type]=[].concat(c[l.type]||[],[Rt({},f,this.mapNestedChildrenToProps(l,p))]),u))},o.prototype.mapObjectTypeChildren=function(s){var u,l,c=s.child,f=s.newProps,p=s.newChildProps,d=s.nestedChildren;switch(c.type){case ae.TITLE:return Rt({},f,(u={},u[c.type]=d,u.titleAttributes=Rt({},p),u));case ae.BODY:return Rt({},f,{bodyAttributes:Rt({},p)});case ae.HTML:return Rt({},f,{htmlAttributes:Rt({},p)})}return Rt({},f,(l={},l[c.type]=Rt({},p),l))},o.prototype.mapArrayTypeChildrenToProps=function(s,u){var l=Rt({},u);return Object.keys(s).forEach(function(c){var f;l=Rt({},l,(f={},f[c]=s[c],f))}),l},o.prototype.warnOnInvalidChildren=function(s,u){return!0},o.prototype.mapChildrenToProps=function(s,u){var l=this,c={};return G.Children.forEach(s,function(f){if(!(!f||!f.props)){var p=f.props,d=p.children,m=kb(p,["children"]),_=qW(m);switch(l.warnOnInvalidChildren(f,d),f.type){case ae.LINK:case ae.META:case ae.NOSCRIPT:case ae.SCRIPT:case ae.STYLE:c=l.flattenArrayTypeChildren({child:f,arrayTypeChildren:c,newChildProps:_,nestedChildren:d});break;default:u=l.mapObjectTypeChildren({child:f,newProps:u,newChildProps:_,nestedChildren:d});break}}}),u=this.mapArrayTypeChildrenToProps(c,u),u},o.prototype.render=function(){var s=this.props,u=s.children,l=kb(s,["children"]),c=Rt({},l);return u&&(c=this.mapChildrenToProps(u,c)),G.createElement(t,c)},RW(o,null,[{key:"canUseDOM",set:function(s){t.canUseDOM=s}}]),o}(G.Component),n.propTypes={base:be.object,bodyAttributes:be.object,children:be.oneOfType([be.arrayOf(be.node),be.node]),defaultTitle:be.string,defer:be.bool,encodeSpecialCharacters:be.bool,htmlAttributes:be.object,link:be.arrayOf(be.object),meta:be.arrayOf(be.object),noscript:be.arrayOf(be.object),onChangeClientState:be.func,script:be.arrayOf(be.object),style:be.arrayOf(be.object),title:be.string,titleAttributes:be.object,titleTemplate:be.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=t.peek,n.rewind=function(){var i=t.rewind();return i||(i=LA({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},GW=function(){return null},YW=pW(NW,UW,LA)(GW),Rb=QW(YW);Rb.renderStatic=Rb.rewind;var MA={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(e,t){(function(n,r){e.exports=r()})(typeof self<"u"?self:ka,function(){return function(){var n={808:function(a,s,u){var l,c,f;f=function(){function p(){for(var m=0,_={};m<arguments.length;m++){var b=arguments[m];for(var g in b)_[g]=b[g]}return _}function d(m){return m.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function m(_){function b(){}function g(v,h,w){if(typeof document<"u"){typeof(w=p({path:"/"},b.defaults,w)).expires=="number"&&(w.expires=new Date(1*new Date+864e5*w.expires)),w.expires=w.expires?w.expires.toUTCString():"";try{var E=JSON.stringify(h);/^[\{\[]/.test(E)&&(h=E)}catch{}h=_.write?_.write(h,v):encodeURIComponent(String(h)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),v=encodeURIComponent(String(v)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var S="";for(var T in w)w[T]&&(S+="; "+T,w[T]!==!0&&(S+="="+w[T].split(";")[0]));return document.cookie=v+"="+h+S}}function y(v,h){if(typeof document<"u"){for(var w={},E=document.cookie?document.cookie.split("; "):[],S=0;S<E.length;S++){var T=E[S].split("="),O=T.slice(1).join("=");h||O.charAt(0)!=='"'||(O=O.slice(1,-1));try{var x=d(T[0]);if(O=(_.read||_)(O,x)||d(O),h)try{O=JSON.parse(O)}catch{}if(w[x]=O,v===x)break}catch{}}return v?w[v]:w}}return b.set=g,b.get=function(v){return y(v,!1)},b.getJSON=function(v){return y(v,!0)},b.remove=function(v,h){g(v,"",p(h,{expires:-1}))},b.defaults={},b.withConverter=m,b}(function(){})},(c=typeof(l=f)=="function"?l.call(s,u,s,a):l)===void 0||(a.exports=c),a.exports=f()},703:function(a,s,u){var l=u(414);function c(){}function f(){}f.resetWarningCache=c,a.exports=function(){function p(_,b,g,y,v,h){if(h!==l){var w=new 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 w.name="Invariant Violation",w}}function d(){return p}p.isRequired=p;var m={array:p,bool:p,func:p,number:p,object:p,string:p,symbol:p,any:p,arrayOf:d,element:p,elementType:p,instanceOf:d,node:p,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:f,resetWarningCache:c};return m.PropTypes=m,m}},697:function(a,s,u){a.exports=u(703)()},414:function(a){a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},r={};function i(a){var s=r[a];if(s!==void 0)return s.exports;var u=r[a]={exports:{}};return n[a](u,u.exports,i),u.exports}i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,{a:s}),s},i.d=function(a,s){for(var u in s)i.o(s,u)&&!i.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:s[u]})},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var o={};return function(){i.r(o),i.d(o,{Cookies:function(){return f()},OPTIONS:function(){return S},SAME_SITE_OPTIONS:function(){return T},VISIBLE_OPTIONS:function(){return O},default:function(){return q},getCookieConsentValue:function(){return x},resetCookieConsentValue:function(){return D}});const a=N;var s=i.n(a),u=i(697),l=i.n(u),c=i(808),f=i.n(c);function p(R){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},p(R)}var d=["children"];function m(){return m=Object.assign||function(R){for(var k=1;k<arguments.length;k++){var C=arguments[k];for(var A in C)Object.prototype.hasOwnProperty.call(C,A)&&(R[A]=C[A])}return R},m.apply(this,arguments)}function _(R,k){var C=Object.keys(R);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(R);k&&(A=A.filter(function(j){return Object.getOwnPropertyDescriptor(R,j).enumerable})),C.push.apply(C,A)}return C}function b(R){for(var k=1;k<arguments.length;k++){var C=arguments[k]!=null?arguments[k]:{};k%2?_(Object(C),!0).forEach(function(A){E(R,A,C[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(C)):_(Object(C)).forEach(function(A){Object.defineProperty(R,A,Object.getOwnPropertyDescriptor(C,A))})}return R}function g(R,k){for(var C=0;C<k.length;C++){var A=k[C];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(R,A.key,A)}}function y(R,k){return y=Object.setPrototypeOf||function(C,A){return C.__proto__=A,C},y(R,k)}function v(R,k){if(k&&(p(k)==="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(R)}function h(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function w(R){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},w(R)}function E(R,k,C){return k in R?Object.defineProperty(R,k,{value:C,enumerable:!0,configurable:!0,writable:!0}):R[k]=C,R}var S={TOP:"top",BOTTOM:"bottom",NONE:"none"},T={STRICT:"strict",LAX:"lax",NONE:"none"},O={HIDDEN:"hidden",SHOW:"show",BY_COOKIE_VALUE:"byCookieValue"},x=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B,k=f().get(R);return k===void 0?f().get(V(R)):k},D=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B;f().remove(R)},V=function(R){return"".concat(R,"-legacy")},B="CookieConsent",F=function(R){var k=R.condition,C=R.wrapper,A=R.children;return k?C(A):A},L=function(R){(function(I,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(P&&P.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),P&&y(I,P)})(H,R);var k,C,A,j,M=(A=H,j=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var I,P=w(A);if(j){var W=w(this).constructor;I=Reflect.construct(P,arguments,W)}else I=P.apply(this,arguments);return v(this,I)});function H(I){var P;return function(W,Z){if(!(W instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,H),E(h(P=M.call(this,I)),"handleScroll",function(){var W=P.props.acceptOnScrollPercentage,Z=document.documentElement,ne=document.body,oe="scrollTop",ve="scrollHeight";(Z[oe]||ne[oe])/((Z[ve]||ne[ve])-Z.clientHeight)*100>W&&P.accept(!0)}),E(h(P),"removeScrollListener",function(){P.props.acceptOnScroll&&window.removeEventListener("scroll",P.handleScroll)}),P.state={visible:!1,style:{alignItems:"baseline",background:"#353535",color:"white",display:"flex",flexWrap:"wrap",justifyContent:"space-between",left:"0",position:"fixed",width:"100%",zIndex:"999"},buttonStyle:{background:"#ffd42d",border:"0",borderRadius:"0px",boxShadow:"none",color:"black",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},declineButtonStyle:{background:"#c12a2a",border:"0",borderRadius:"0px",boxShadow:"none",color:"#e5e5e5",cursor:"pointer",flex:"0 0 auto",padding:"5px 10px",margin:"15px"},contentStyle:{flex:"1 0 300px",margin:"15px"},overlayStyle:{position:"fixed",left:0,top:0,width:"100%",height:"100%",zIndex:"999",backgroundColor:"rgba(0,0,0,0.3)"}},P}return k=H,C=[{key:"componentDidMount",value:function(){var I=this.props.debug;(this.getCookieValue()===void 0||I)&&(this.setState({visible:!0}),this.props.acceptOnScroll&&window.addEventListener("scroll",this.handleScroll,{passive:!0}))}},{key:"componentWillUnmount",value:function(){this.removeScrollListener()}},{key:"accept",value:function(){var I=arguments.length>0&&arguments[0]!==void 0&&arguments[0],P=this.props,W=P.cookieName,Z=P.cookieValue,ne=P.hideOnAccept,oe=P.onAccept;this.setCookie(W,Z),oe(I!=null&&I),ne&&(this.setState({visible:!1}),this.removeScrollListener())}},{key:"overlayClick",value:function(){var I=this.props,P=I.acceptOnOverlayClick,W=I.onOverlayClick;P&&this.accept(),W()}},{key:"decline",value:function(){var I=this.props,P=I.cookieName,W=I.declineCookieValue,Z=I.hideOnDecline,ne=I.onDecline;I.setDeclineCookie&&this.setCookie(P,W),ne(),Z&&this.setState({visible:!1})}},{key:"setCookie",value:function(I,P){var W=this.props,Z=W.extraCookieOptions,ne=W.expires,oe=W.sameSite,ve=this.props.cookieSecurity;ve===void 0&&(ve=!location||location.protocol==="https:");var Je=b(b({expires:ne},Z),{},{sameSite:oe,secure:ve});oe===T.NONE&&f().set(V(I),P,Je),f().set(I,P,Je)}},{key:"getCookieValue",value:function(){var I=this.props.cookieName;return x(I)}},{key:"render",value:function(){var I=this;switch(this.props.visible){case O.HIDDEN:return null;case O.BY_COOKIE_VALUE:if(!this.state.visible)return null}var P=this.props,W=P.location,Z=P.style,ne=P.buttonStyle,oe=P.declineButtonStyle,ve=P.contentStyle,Je=P.disableStyles,Sn=P.buttonText,hi=P.declineButtonText,go=P.containerClasses,yo=P.contentClasses,vi=P.buttonClasses,mi=P.buttonWrapperClasses,_o=P.declineButtonClasses,wo=P.buttonId,Tn=P.declineButtonId,jn=P.disableButtonStyles,gi=P.enableDeclineButton,lr=P.flipButtons,Ir=P.ButtonComponent,bo=P.overlay,Eo=P.overlayClasses,yi=P.overlayStyle,So=P.ariaAcceptLabel,Jd=P.ariaDeclineLabel,Zd=P.customContainerAttributes,ep=P.customContentAttributes,tp=P.customButtonProps,np=P.customDeclineButtonProps,$=P.customButtonWrapperAttributes,Y={},ee={},le={},se={},Qe={};switch(Je?(Y=m({},Z),ee=m({},ne),le=m({},oe),se=m({},ve),Qe=m({},yi)):(Y=m({},b(b({},this.state.style),Z)),se=m({},b(b({},this.state.contentStyle),ve)),Qe=m({},b(b({},this.state.overlayStyle),yi)),jn?(ee=m({},ne),le=m({},oe)):(ee=m({},b(b({},this.state.buttonStyle),ne)),le=m({},b(b({},this.state.declineButtonStyle),oe)))),W){case S.TOP:Y.top="0";break;case S.BOTTOM:Y.bottom="0"}var rt=[];return gi&&rt.push(s().createElement(Ir,m({key:"declineButton",style:le,className:_o,id:Tn,"aria-label":Jd,onClick:function(){I.decline()}},np),hi)),rt.push(s().createElement(Ir,m({key:"acceptButton",style:ee,className:vi,id:wo,"aria-label":So,onClick:function(){I.accept()}},tp),Sn)),lr&&rt.reverse(),s().createElement(F,{condition:bo,wrapper:function(Un){return s().createElement("div",{style:Qe,className:Eo,onClick:function(){I.overlayClick()}},Un)}},s().createElement("div",m({className:"".concat(go),style:Y},Zd),s().createElement("div",m({style:se,className:yo},ep),this.props.children),s().createElement("div",m({className:"".concat(mi)},$),rt.map(function(Un){return Un}))))}}],C&&g(k.prototype,C),Object.defineProperty(k,"prototype",{writable:!1}),H}(a.Component);L.propTypes={location:l().oneOf(Object.keys(S).map(function(R){return S[R]})),visible:l().oneOf(Object.keys(O).map(function(R){return O[R]})),sameSite:l().oneOf(Object.keys(T).map(function(R){return T[R]})),style:l().object,buttonStyle:l().object,declineButtonStyle:l().object,contentStyle:l().object,children:l().any,disableStyles:l().bool,hideOnAccept:l().bool,hideOnDecline:l().bool,onAccept:l().func,onDecline:l().func,buttonText:l().oneOfType([l().string,l().func,l().element]),declineButtonText:l().oneOfType([l().string,l().func,l().element]),cookieName:l().string,cookieValue:l().oneOfType([l().string,l().bool,l().number]),declineCookieValue:l().oneOfType([l().string,l().bool,l().number]),setDeclineCookie:l().bool,debug:l().bool,expires:l().number,containerClasses:l().string,contentClasses:l().string,buttonClasses:l().string,buttonWrapperClasses:l().string,declineButtonClasses:l().string,buttonId:l().string,declineButtonId:l().string,extraCookieOptions:l().object,disableButtonStyles:l().bool,enableDeclineButton:l().bool,flipButtons:l().bool,ButtonComponent:l().elementType,cookieSecurity:l().bool,overlay:l().bool,overlayClasses:l().string,overlayStyle:l().object,onOverlayClick:l().func,acceptOnOverlayClick:l().bool,ariaAcceptLabel:l().string,ariaDeclineLabel:l().string,acceptOnScroll:l().bool,acceptOnScrollPercentage:l().number,customContentAttributes:l().object,customContainerAttributes:l().object,customButtonProps:l().object,customDeclineButtonProps:l().object,customButtonWrapperAttributes:l().object},L.defaultProps={disableStyles:!1,hideOnAccept:!0,hideOnDecline:!0,location:S.BOTTOM,visible:O.BY_COOKIE_VALUE,onAccept:function(){},onDecline:function(){},cookieName:B,cookieValue:!0,declineCookieValue:!1,setDeclineCookie:!0,buttonText:"I understand",declineButtonText:"I decline",debug:!1,expires:365,containerClasses:"CookieConsent",contentClasses:"",buttonClasses:"",buttonWrapperClasses:"",declineButtonClasses:"",buttonId:"rcc-confirm-button",declineButtonId:"rcc-decline-button",extraCookieOptions:{},disableButtonStyles:!1,enableDeclineButton:!1,flipButtons:!1,sameSite:T.LAX,ButtonComponent:function(R){var k=R.children,C=function(A,j){if(A==null)return{};var M,H,I=function(W,Z){if(W==null)return{};var ne,oe,ve={},Je=Object.keys(W);for(oe=0;oe<Je.length;oe++)ne=Je[oe],Z.indexOf(ne)>=0||(ve[ne]=W[ne]);return ve}(A,j);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(A);for(H=0;H<P.length;H++)M=P[H],j.indexOf(M)>=0||Object.prototype.propertyIsEnumerable.call(A,M)&&(I[M]=A[M])}return I}(R,d);return s().createElement("button",C,k)},overlay:!1,overlayClasses:"",onOverlayClick:function(){},acceptOnOverlayClick:!1,ariaAcceptLabel:"Accept cookies",ariaDeclineLabel:"Decline cookies",acceptOnScroll:!1,acceptOnScrollPercentage:25,customContentAttributes:{},customContainerAttributes:{},customButtonProps:{},customDeclineButtonProps:{},customButtonWrapperAttributes:{}};const q=L}(),o}()})})(MA);var XW=MA.exports;const LK=ft(XW);var NA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ka,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",u="hour",l="day",c="week",f="month",p="quarter",d="year",m="date",_="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(B,F,L){var q=String(B);return!q||q.length>=F?B:""+Array(F+1-q.length).join(L)+B},h={s:v,z:function(B){var F=-B.utcOffset(),L=Math.abs(F),q=Math.floor(L/60),R=L%60;return(F<=0?"+":"-")+v(q,2,"0")+":"+v(R,2,"0")},m:function B(F,L){if(F.date()<L.date())return-B(L,F);var q=12*(L.year()-F.year())+(L.month()-F.month()),R=F.clone().add(q,f),k=L-R<0,C=F.clone().add(q+(k?-1:1),f);return+(-(q+(L-R)/(k?R-C:C-R))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:f,y:d,w:c,d:l,D:m,h:u,m:s,s:a,ms:o,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},w="en",E={};E[w]=y;var S=function(B){return B instanceof D},T=function B(F,L,q){var R;if(!F)return w;if(typeof F=="string"){var k=F.toLowerCase();E[k]&&(R=k),L&&(E[k]=L,R=k);var C=F.split("-");if(!R&&C.length>1)return B(C[0])}else{var A=F.name;E[A]=F,R=A}return!q&&R&&(w=R),R||!q&&w},O=function(B,F){if(S(B))return B.clone();var L=typeof F=="object"?F:{};return L.date=B,L.args=arguments,new D(L)},x=h;x.l=T,x.i=S,x.w=function(B,F){return O(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var D=function(){function B(L){this.$L=T(L.locale,null,!0),this.parse(L)}var F=B.prototype;return F.parse=function(L){this.$d=function(q){var R=q.date,k=q.utc;if(R===null)return new Date(NaN);if(x.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var C=R.match(b);if(C){var A=C[2]-1||0,j=(C[7]||"0").substring(0,3);return k?new Date(Date.UTC(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,j)):new Date(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,j)}}return new Date(R)}(L),this.$x=L.x||{},this.init()},F.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},F.$utils=function(){return x},F.isValid=function(){return this.$d.toString()!==_},F.isSame=function(L,q){var R=O(L);return this.startOf(q)<=R&&R<=this.endOf(q)},F.isAfter=function(L,q){return O(L)<this.startOf(q)},F.isBefore=function(L,q){return this.endOf(q)<O(L)},F.$g=function(L,q,R){return x.u(L)?this[q]:this.set(R,L)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(L,q){var R=this,k=!!x.u(q)||q,C=x.p(L),A=function(ne,oe){var ve=x.w(R.$u?Date.UTC(R.$y,oe,ne):new Date(R.$y,oe,ne),R);return k?ve:ve.endOf(l)},j=function(ne,oe){return x.w(R.toDate()[ne].apply(R.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(oe)),R)},M=this.$W,H=this.$M,I=this.$D,P="set"+(this.$u?"UTC":"");switch(C){case d:return k?A(1,0):A(31,11);case f:return k?A(1,H):A(0,H+1);case c:var W=this.$locale().weekStart||0,Z=(M<W?M+7:M)-W;return A(k?I-Z:I+(6-Z),H);case l:case m:return j(P+"Hours",0);case u:return j(P+"Minutes",1);case s:return j(P+"Seconds",2);case a:return j(P+"Milliseconds",3);default:return this.clone()}},F.endOf=function(L){return this.startOf(L,!1)},F.$set=function(L,q){var R,k=x.p(L),C="set"+(this.$u?"UTC":""),A=(R={},R[l]=C+"Date",R[m]=C+"Date",R[f]=C+"Month",R[d]=C+"FullYear",R[u]=C+"Hours",R[s]=C+"Minutes",R[a]=C+"Seconds",R[o]=C+"Milliseconds",R)[k],j=k===l?this.$D+(q-this.$W):q;if(k===f||k===d){var M=this.clone().set(m,1);M.$d[A](j),M.init(),this.$d=M.set(m,Math.min(this.$D,M.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},F.set=function(L,q){return this.clone().$set(L,q)},F.get=function(L){return this[x.p(L)]()},F.add=function(L,q){var R,k=this;L=Number(L);var C=x.p(q),A=function(H){var I=O(k);return x.w(I.date(I.date()+Math.round(H*L)),k)};if(C===f)return this.set(f,this.$M+L);if(C===d)return this.set(d,this.$y+L);if(C===l)return A(1);if(C===c)return A(7);var j=(R={},R[s]=r,R[u]=i,R[a]=n,R)[C]||1,M=this.$d.getTime()+L*j;return x.w(M,this)},F.subtract=function(L,q){return this.add(-1*L,q)},F.format=function(L){var q=this,R=this.$locale();if(!this.isValid())return R.invalidDate||_;var k=L||"YYYY-MM-DDTHH:mm:ssZ",C=x.z(this),A=this.$H,j=this.$m,M=this.$M,H=R.weekdays,I=R.months,P=function(oe,ve,Je,Sn){return oe&&(oe[ve]||oe(q,k))||Je[ve].slice(0,Sn)},W=function(oe){return x.s(A%12||12,oe,"0")},Z=R.meridiem||function(oe,ve,Je){var Sn=oe<12?"AM":"PM";return Je?Sn.toLowerCase():Sn},ne={YY:String(this.$y).slice(-2),YYYY:this.$y,M:M+1,MM:x.s(M+1,2,"0"),MMM:P(R.monthsShort,M,I,3),MMMM:P(I,M),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:P(R.weekdaysMin,this.$W,H,2),ddd:P(R.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(A),HH:x.s(A,2,"0"),h:W(1),hh:W(2),a:Z(A,j,!0),A:Z(A,j,!1),m:String(j),mm:x.s(j,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:C};return k.replace(g,function(oe,ve){return ve||ne[oe]||C.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(L,q,R){var k,C=x.p(q),A=O(L),j=(A.utcOffset()-this.utcOffset())*r,M=this-A,H=x.m(this,A);return H=(k={},k[d]=H/12,k[f]=H,k[p]=H/3,k[c]=(M-j)/6048e5,k[l]=(M-j)/864e5,k[u]=M/i,k[s]=M/r,k[a]=M/n,k)[C]||M,R?H:x.a(H)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return E[this.$L]},F.locale=function(L,q){if(!L)return this.$L;var R=this.clone(),k=T(L,q,!0);return k&&(R.$L=k),R},F.clone=function(){return x.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},B}(),V=D.prototype;return O.prototype=V,[["$ms",o],["$s",a],["$m",s],["$H",u],["$W",l],["$M",f],["$y",d],["$D",m]].forEach(function(B){V[B[1]]=function(F){return this.$g(F,B[0],B[1])}}),O.extend=function(B,F){return B.$i||(B(F,D,O),B.$i=!0),O},O.locale=T,O.isDayjs=S,O.unix=function(B){return O(1e3*B)},O.en=E[w],O.Ls=E,O.p={},O})})(NA);var KW=NA.exports;const MK=ft(KW);var JW={NODE_ENV:"production"},ZW=JW.DEBUG||!1,Of;(function(e){e.PAGE_VIEW="trackPageView",e.CUSTOM_EVENT="trackEvent",e.GOAL="trackGoal",e.SEARCH="trackSiteSearch",e.ADD_ECOMMERCE_ITEM="addEcommerceItem",e.REMOVE_ECOMMERCE_ITEM="removeEcommerceItem",e.CLEAR_ECOMMERCE_CART="clearEcommerceCart",e.SET_ECOMMERCE_VIEW="setEcommerceView",e.UPDATE_ECOMMERCE_CART="trackEcommerceCartUpdate",e.ORDER_ECOMMERCE="trackEcommerceOrder",e.SET_CUSTOM_VARIABLE="setCustomVariable",e.DELETE_CUSTOM_VARIABLE="deleteCustomVariable",e.STORE_CUSTOM_VARIABLES_IN_COOKIE="storeCustomVariablesInCookie",e.SET_CUSTOM_DIMENSION_VALUE="setCustomDimensionValue",e.DELETE_CUSTOM_DIMENSION="deleteCustomDimension",e.SET_CUSTOM_DIMENSION="setCustomDimension",e.ALL_CONTENT_IMPRESSIONS="trackAllContentImpressions",e.VISIBLE_CONTENT_IMPRESSIONS="trackVisibleContentImpressions",e.CONTENT_IMPRESSIONS_WITH_NODE="trackContentImpressionsWithinNode",e.CONTENT_IMPRESSION="trackContentImpression",e.LOG_ALL_CONTENT_BLOCKS_ON_PAGE="logAllContentBlocksOnPage",e.CONTENT_INTERACTION_NODE="trackContentInteractionNode",e.CONTENT_INTERACTION="trackContentInteraction",e.LINK="trackLink",e.ENABLE_LINK_TRACKING="enableLinkTracking",e.SET_IGNORE_CLASSES="setIgnoreClasses",e.SET_LINK_CLASSES="setLinkClasses",e.SET_DOWNLOAD_CLASSES="setDownloadClasses",e.SET_DOWNLOAD_EXTENSIONS="setDownloadExtensions",e.ADD_DOWNLOAD_EXTENSIONS="addDownloadExtensions",e.REMOVE_DOWNLOAD_EXTENSIONS="removeDownloadExtensions",e.SET_LINK_TRACKING_TIMER="setLinkTrackingTimer",e.SET_USER_ID="setUserId",e.RESET_USER_ID="resetUserId",e.SET_USER_IS_ANONYMOUS="setUserIsAnonymous",e.DEANONYMIZE_USER="deanonymizeUser",e.SET_SESSION_ID_STRICT_PRIVACY_MODE="setSessionIdStrictPrivacyMode",e.DISABLE_COOKIES="disableCookies",e.ENABLE_COOKIES="enableCookies",e.DELETE_COOKIES="deleteCookies",e.SET_COOKIE_NAME_PREFIX="setCookieNamePrefix",e.SET_COOKIE_DOMAIN="setCookieDomain",e.SET_COOKIE_PATH="setCookiePath",e.SET_SECURE_COOKIE="setSecureCookie",e.SET_VISITOR_COOKIE_TIMEOUT="setVisitorCookieTimeout",e.SET_SESSION_COOKIE_TIMEOUT="setSessionCookieTimeout",e.SET_VISITOR_ID_COOKIE="setVisitorIdCookie",e.SET_DOCUMENT_TITLE="setDocumentTitle",e.SET_DOMAINS="setDomains",e.SET_CUSTOM_URL="setCustomUrl",e.SET_REFERRER_URL="setReferrerUrl",e.SET_API_URL="setApiUrl",e.GET_PIWIK_URL="getPiwikUrl",e.GET_CURRENT_URL="getCurrentUrl",e.DISCARD_HASH_TAG="discardHashTag",e.SET_GENERATION_TIME_MS="setGenerationTimeMs",e.APPEND_TO_TRACKING_URL="appendToTrackingUrl",e.SET_DO_NOT_TRACK="setDoNotTrack",e.KILL_FRAME="killFrame",e.REDIRECT_FILE="redirectFile",e.SET_CAMPAIGN_NAME_KEY="setCampaignNameKey",e.SET_CAMPAIGN_KEYWORD_KEY="setCampaignKeywordKey",e.PING="ping",e.ADD_LISTENER="addListener",e.SET_REQUEST_METHOD="setRequestMethod",e.SET_CUSTOM_REQUEST_PROCESSING="setCustomRequestProcessing",e.SET_REQUEST_CONTENT_TYPE="setRequestContentType",e.ENABLE_JS_ERROR_TRACKING="enableJSErrorTracking",e.ERROR="trackError",e.SET_TRACKING_SOURCE="setTrackingSource"})(Of||(Of={}));function eQ(e){return window._paq||(window._paq=[]),window._paq.push(["setCustomUrl",window.location.href]),window._paq.push(["setDocumentTitle",document.title]),ZW&&console.log("Push",e),window._paq.push(e)}var $A={push:eQ};function tQ(e){$A.push([Of.PAGE_VIEW].concat(e?[e]:[]))}var NK={__proto__:null,trackPageView:tQ};function nQ(e,t,n,r){var i=[e,t].concat(n?[n]:[],n?[r]:[]);$A.push([Of.CUSTOM_EVENT].concat(i))}var $K={__proto__:null,trackEvent:nQ},rQ=Object.create,FA=Object.defineProperty,iQ=Object.getOwnPropertyDescriptor,oQ=Object.getOwnPropertyNames,aQ=Object.getPrototypeOf,sQ=Object.prototype.hasOwnProperty,jA=function(e,t){return function(){return e&&(t=e(e=0)),t}},dt=function(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}},uQ=function(e,t,n,r){if(t&&typeof t=="object"||typeof t=="function")for(var i=oQ(t),o=0,a=i.length,s;o<a;o++)s=i[o],!sQ.call(e,s)&&s!==n&&FA(e,s,{get:(function(u){return t[u]}).bind(null,s),enumerable:!(r=iQ(t,s))||r.enumerable});return e},Ht=function(e,t,n){return n=e!=null?rQ(aQ(e)):{},uQ(!e||!e.__esModule?FA(n,"default",{value:e,enumerable:!0}):n,e)},sr=dt(function(e,t){var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n={},t.exports=n});function mt(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}var Yd=jA(function(){}),lQ=dt(function(e,t){Yd(),function(n,r){typeof define=="function"&&define.amd?define(r):typeof t=="object"&&t.exports?t.exports=r():n.log=r()}(e,function(){var n=function(){},r="undefined",i=(typeof window>"u"?"undefined":mt(window))!==r&&mt(window.navigator)!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"];function a(b,g){var y=b[g];if(typeof y.bind=="function")return y.bind(b);try{return Function.prototype.bind.call(y,b)}catch{return function(){return Function.prototype.apply.apply(y,[b,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(b){return b==="debug"&&(b="log"),(typeof console>"u"?"undefined":mt(console))===r?!1:b==="trace"&&i?s:console[b]!==void 0?a(console,b):console.log!==void 0?a(console,"log"):n}function l(b,g){for(var y=0;y<o.length;y++){var v=o[y];this[v]=y<b?n:this.methodFactory(v,b,g)}this.log=this.debug}function c(b,g,y){return function(){(typeof console>"u"?"undefined":mt(console))!==r&&(l.call(this,g,y),this[b].apply(this,arguments))}}function f(b,g,y){return u(b)||c.apply(this,arguments)}function p(b,g,y){var v=this,h;g=g==null?"WARN":g;var w="loglevel";typeof b=="string"?w+=":"+b:(typeof b>"u"?"undefined":mt(b))==="symbol"&&(w=void 0);function E(x){var D=(o[x]||"silent").toUpperCase();if(!((typeof window>"u"?"undefined":mt(window))===r||!w)){try{window.localStorage[w]=D;return}catch{}try{window.document.cookie=encodeURIComponent(w)+"="+D+";"}catch{}}}function S(){var x;if(!((typeof window>"u"?"undefined":mt(window))===r||!w)){try{x=window.localStorage[w]}catch{}if((typeof x>"u"?"undefined":mt(x))===r)try{var D=window.document.cookie,V=D.indexOf(encodeURIComponent(w)+"=");V!==-1&&(x=/^([^;]+)/.exec(D.slice(V))[1])}catch{}return v.levels[x]===void 0&&(x=void 0),x}}function T(){if(!((typeof window>"u"?"undefined":mt(window))===r||!w)){try{window.localStorage.removeItem(w);return}catch{}try{window.document.cookie=encodeURIComponent(w)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}v.name=b,v.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},v.methodFactory=y||f,v.getLevel=function(){return h},v.setLevel=function(x,D){if(typeof x=="string"&&v.levels[x.toUpperCase()]!==void 0&&(x=v.levels[x.toUpperCase()]),typeof x=="number"&&x>=0&&x<=v.levels.SILENT){if(h=x,D!==!1&&E(x),l.call(v,x,b),(typeof console>"u"?"undefined":mt(console))===r&&x<v.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+x},v.setDefaultLevel=function(x){g=x,S()||v.setLevel(x,!1)},v.resetLevel=function(){v.setLevel(g,!1),T()},v.enableAll=function(x){v.setLevel(v.levels.TRACE,x)},v.disableAll=function(x){v.setLevel(v.levels.SILENT,x)};var O=S();O==null&&(O=g),v.setLevel(O,!1)}var d=new p,m={};d.getLogger=function(b){if((typeof b>"u"?"undefined":mt(b))!=="symbol"&&typeof b!="string"||b==="")throw new TypeError("You must supply a name when creating a logger.");var g=m[b];return g||(g=m[b]=new p(b,d.getLevel(),d.methodFactory)),g};var _=(typeof window>"u"?"undefined":mt(window))!==r?window.log:void 0;return d.noConflict=function(){return(typeof window>"u"?"undefined":mt(window))!==r&&window.log===d&&(window.log=_),d},d.getLoggers=function(){return m},d.default=d,d})});function ho(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):ho(e,t)}var vo=jA(function(){vo()}),cQ=dt(function(e){var t=Object.prototype.hasOwnProperty,n;function r(s){try{return decodeURIComponent(s.replace(/\+/g," "))}catch{return null}}function i(s){try{return encodeURIComponent(s)}catch{return null}}function o(s){for(var u=/([^=?#&]+)=?([^&]*)/g,l={},c;c=u.exec(s);){var f=r(c[1]),p=r(c[2]);f===null||p===null||f in l||(l[f]=p)}return l}function a(s,u){u=u||"";var l=[],c,f;typeof u!="string"&&(u="?");for(f in s)if(t.call(s,f)){if(c=s[f],!c&&(c===null||c===n||isNaN(c))&&(c=""),f=i(f),c=i(c),f===null||c===null)continue;l.push(f+"="+c)}return l.length?u+l.join("&"):""}e.stringify=a,e.parse=o}),fQ=dt(function(e,t){(function(n){var r=!1;if(typeof define=="function"&&define.amd&&(define(n),r=!0),typeof e=="object"&&(t.exports=n(),r=!0),!r){var i=window.Cookies,o=window.Cookies=n();o.noConflict=function(){return window.Cookies=i,o}}})(function(){var n=function(){for(var i=0,o={};i<arguments.length;i++){var a=arguments[i];for(var s in a)o[s]=a[s]}return o};function r(i){function o(a,s,u){var l;if(typeof document<"u"){if(arguments.length>1){if(u=n({path:"/"},o.defaults,u),typeof u.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+u.expires*864e5),u.expires=c}try{l=JSON.stringify(s),/^[\{\[]/.test(l)&&(s=l)}catch{}return i.write?s=i.write(s,a):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),a=encodeURIComponent(String(a)),a=a.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),a=a.replace(/[\(\)]/g,escape),document.cookie=[a,"=",s,u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}a||(l={});for(var f=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,d=0;d<f.length;d++){var m=f[d].split("="),_=m.slice(1).join("=");_.charAt(0)==='"'&&(_=_.slice(1,-1));try{var b=m[0].replace(p,decodeURIComponent);if(_=i.read?i.read(_,b):i(_,b)||_.replace(p,decodeURIComponent),this.json)try{_=JSON.parse(_)}catch{}if(a===b){l=_;break}a||(l[b]=_)}catch{}}return l}}return o.set=o,o.get=function(a){return o.call(o,a)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(a,s){o(a,"",n(s,{expires:-1}))},o.withConverter=r,o}return r(function(){})})}),UA=dt(function(e,t){var n=Array.prototype.slice;t.exports=r;function r(i,o){for(("length"in i)||(i=[i]),i=n.call(i);i.length;){var a=i.shift(),s=o(a);if(s)return s;a.childNodes&&a.childNodes.length&&(i=n.call(a.childNodes).concat(i))}}}),dQ=dt(function(e,t){vo(),t.exports=n;function n(r,i){if(!ho(this,n))return new n(r,i);this.data=r,this.nodeValue=r,this.length=r.length,this.ownerDocument=i||null}n.prototype.nodeType=8,n.prototype.nodeName="#comment",n.prototype.toString=function(){return"[object Comment]"}}),pQ=dt(function(e,t){vo(),t.exports=n;function n(r,i){if(!ho(this,n))return new n(r);this.data=r||"",this.length=this.data.length,this.ownerDocument=i||null}n.prototype.type="DOMTextNode",n.prototype.nodeType=3,n.prototype.nodeName="#text",n.prototype.toString=function(){return this.data},n.prototype.replaceData=function(r,i,o){var a=this.data,s=a.substring(0,r),u=a.substring(r+i,a.length);this.data=s+o+u,this.length=this.data.length}}),BA=dt(function(e,t){t.exports=n;function n(r){var i=this,o=r.type;r.target||(r.target=i),i.listeners||(i.listeners={});var a=i.listeners[o];if(a)return a.forEach(function(s){r.currentTarget=i,typeof s=="function"?s(r):s.handleEvent(r)});i.parentNode&&i.parentNode.dispatchEvent(r)}}),HA=dt(function(e,t){t.exports=n;function n(r,i){var o=this;o.listeners||(o.listeners={}),o.listeners[r]||(o.listeners[r]=[]),o.listeners[r].indexOf(i)===-1&&o.listeners[r].push(i)}}),zA=dt(function(e,t){t.exports=n;function n(r,i){var o=this;if(o.listeners&&o.listeners[r]){var a=o.listeners[r],s=a.indexOf(i);s!==-1&&a.splice(s,1)}}}),hQ=dt(function(e,t){Yd(),t.exports=r;var n=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function r(p){switch(p.nodeType){case 3:return c(p.data);case 8:return"<!--"+p.data+"-->";default:return i(p)}}function i(p){var d=[],m=p.tagName;return p.namespaceURI==="http://www.w3.org/1999/xhtml"&&(m=m.toLowerCase()),d.push("<"+m+l(p)+s(p)),n.indexOf(m)>-1?d.push(" />"):(d.push(">"),p.childNodes.length?d.push.apply(d,p.childNodes.map(r)):p.textContent||p.innerText?d.push(c(p.textContent||p.innerText)):p.innerHTML&&d.push(p.innerHTML),d.push("</"+m+">")),d.join("")}function o(p,d){var m=mt(p[d]);return d==="style"&&Object.keys(p.style).length>0?!0:p.hasOwnProperty(d)&&(m==="string"||m==="boolean"||m==="number")&&d!=="nodeName"&&d!=="className"&&d!=="tagName"&&d!=="textContent"&&d!=="innerText"&&d!=="namespaceURI"&&d!=="innerHTML"}function a(p){if(typeof p=="string")return p;var d="";return Object.keys(p).forEach(function(m){var _=p[m];m=m.replace(/[A-Z]/g,function(b){return"-"+b.toLowerCase()}),d+=m+":"+_+";"}),d}function s(p){var d=p.dataset,m=[];for(var _ in d)m.push({name:"data-"+_,value:d[_]});return m.length?u(m):""}function u(p){var d=[];return p.forEach(function(m){var _=m.name,b=m.value;_==="style"&&(b=a(b)),d.push(_+'="'+f(b)+'"')}),d.length?" "+d.join(" "):""}function l(p){var d=[];for(var m in p)o(p,m)&&d.push({name:m,value:p[m]});for(var _ in p._attributes)for(var b in p._attributes[_]){var g=p._attributes[_][b],y=(g.prefix?g.prefix+":":"")+b;d.push({name:y,value:g.value})}return p.className&&d.push({name:"class",value:p.className}),d.length?u(d):""}function c(p){var d="";return typeof p=="string"?d=p:p&&(d=p.toString()),d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function f(p){return c(p).replace(/"/g,"&quot;")}}),qA=dt(function(e,t){vo();var n=UA(),r=BA(),i=HA(),o=zA(),a=hQ(),s="http://www.w3.org/1999/xhtml";t.exports=u;function u(l,c,f){if(!ho(this,u))return new u(l);var p=f===void 0?s:f||null;this.tagName=p===s?String(l).toUpperCase():l,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=c||null,this.namespaceURI=p,this._attributes={},this.tagName==="INPUT"&&(this.type="text")}u.prototype.type="DOMElement",u.prototype.nodeType=1,u.prototype.appendChild=function(l){return l.parentNode&&l.parentNode.removeChild(l),this.childNodes.push(l),l.parentNode=this,l},u.prototype.replaceChild=function(l,c){l.parentNode&&l.parentNode.removeChild(l);var f=this.childNodes.indexOf(c);return c.parentNode=null,this.childNodes[f]=l,l.parentNode=this,c},u.prototype.removeChild=function(l){var c=this.childNodes.indexOf(l);return this.childNodes.splice(c,1),l.parentNode=null,l},u.prototype.insertBefore=function(l,c){l.parentNode&&l.parentNode.removeChild(l);var f=c==null?-1:this.childNodes.indexOf(c);return f>-1?this.childNodes.splice(f,0,l):this.childNodes.push(l),l.parentNode=this,l},u.prototype.setAttributeNS=function(l,c,f){var p=null,d=c,m=c.indexOf(":");if(m>-1&&(p=c.substr(0,m),d=c.substr(m+1)),this.tagName==="INPUT"&&c==="type")this.type=f;else{var _=this._attributes[l]||(this._attributes[l]={});_[d]={value:f,prefix:p}}},u.prototype.getAttributeNS=function(l,c){var f=this._attributes[l],p=f&&f[c]&&f[c].value;return this.tagName==="INPUT"&&c==="type"?this.type:typeof p!="string"?null:p},u.prototype.removeAttributeNS=function(l,c){var f=this._attributes[l];f&&delete f[c]},u.prototype.hasAttributeNS=function(l,c){var f=this._attributes[l];return!!f&&c in f},u.prototype.setAttribute=function(l,c){return this.setAttributeNS(null,l,c)},u.prototype.getAttribute=function(l){return this.getAttributeNS(null,l)},u.prototype.removeAttribute=function(l){return this.removeAttributeNS(null,l)},u.prototype.hasAttribute=function(l){return this.hasAttributeNS(null,l)},u.prototype.removeEventListener=o,u.prototype.addEventListener=i,u.prototype.dispatchEvent=r,u.prototype.focus=function(){},u.prototype.toString=function(){return a(this)},u.prototype.getElementsByClassName=function(l){var c=l.split(" "),f=[];return n(this,function(p){if(p.nodeType===1){var d=p.className||"",m=d.split(" ");c.every(function(_){return m.indexOf(_)!==-1})&&f.push(p)}}),f},u.prototype.getElementsByTagName=function(l){l=l.toLowerCase();var c=[];return n(this.childNodes,function(f){f.nodeType===1&&(l==="*"||f.tagName.toLowerCase()===l)&&c.push(f)}),c},u.prototype.contains=function(l){return n(this,function(c){return l===c})||!1}}),vQ=dt(function(e,t){vo();var n=qA();t.exports=r;function r(i){if(!ho(this,r))return new r;this.childNodes=[],this.parentNode=null,this.ownerDocument=i||null}r.prototype.type="DocumentFragment",r.prototype.nodeType=11,r.prototype.nodeName="#document-fragment",r.prototype.appendChild=n.prototype.appendChild,r.prototype.replaceChild=n.prototype.replaceChild,r.prototype.removeChild=n.prototype.removeChild,r.prototype.toString=function(){return this.childNodes.map(function(i){return String(i)}).join("")}}),mQ=dt(function(e,t){t.exports=n;function n(r){}n.prototype.initEvent=function(r,i,o){this.type=r,this.bubbles=i,this.cancelable=o},n.prototype.preventDefault=function(){}}),gQ=dt(function(e,t){vo();var n=UA(),r=dQ(),i=pQ(),o=qA(),a=vQ(),s=mQ(),u=BA(),l=HA(),c=zA();t.exports=f;function f(){if(!ho(this,f))return new f;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}var p=f.prototype;p.createTextNode=function(d){return new i(d,this)},p.createElementNS=function(d,m){var _=d===null?null:String(d);return new o(m,this,_)},p.createElement=function(d){return new o(d,this)},p.createDocumentFragment=function(){return new a(this)},p.createEvent=function(d){return new s(d)},p.createComment=function(d){return new r(d,this)},p.getElementById=function(d){d=String(d);var m=n(this.childNodes,function(_){if(String(_.id)===d)return _});return m||null},p.getElementsByClassName=o.prototype.getElementsByClassName,p.getElementsByTagName=o.prototype.getElementsByTagName,p.contains=o.prototype.contains,p.removeEventListener=c,p.addEventListener=l,p.dispatchEvent=u}),yQ=dt(function(e,t){var n=gQ();t.exports=new n}),_Q=dt(function(e,t){var n=typeof global<"u"?global:typeof window<"u"?window:{},r=yQ(),i;typeof document<"u"?i=document:(i=n["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=n["__GLOBAL_DOCUMENT_CACHE@4"]=r)),t.exports=i});function wQ(e){if(Array.isArray(e))return e}function bQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(u){o=!0,s=u}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function EQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function SQ(e,t){if(e){if(typeof e=="string")return Pb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pb(e,t)}}function Zi(e,t){return wQ(e)||bQ(e,t)||SQ(e,t)||EQ()}var Fs=Ht(sr()),Pu=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e==="x"?t:t&3|8;return n.toString(16)})},VA=function(){return("000000"+(Math.random()*Math.pow(36,6)<<0).toString(36)).slice(-6)},Oi=function(e){if(e&&typeof e.nodeName<"u")return e.muxId||(e.muxId=VA()),e.muxId;var t;try{t=document.querySelector(e)}catch{}return t&&!t.muxId&&(t.muxId=e),(t==null?void 0:t.muxId)||e},Rm=function(e){var t;e&&typeof e.nodeName<"u"?(t=e,e=Oi(t)):t=document.querySelector(e);var n=t&&t.nodeName?t.nodeName.toLowerCase():"";return[t,e,n]},Iu=Ht(lQ()),TQ=Iu.default.methodFactory;Iu.default.methodFactory=function(e,t,n){var r=TQ(e,t,n);return function(){for(var i=["[mux]"],o=0;o<arguments.length;o++)i.push(arguments[o]);r.apply(void 0,i)}};Iu.default.setLevel(Iu.default.getLevel());var Ne=Iu.default,dh=Ht(sr());function Pm(){var e=dh.default.doNotTrack||dh.default.navigator&&dh.default.navigator.doNotTrack;return e==="1"}var xQ=Ht(sr()),OQ={now:function(){var e=xQ.default.performance,t=e&&e.timing,n=t&&t.navigationStart,r=typeof n=="number"&&typeof e.now=="function"?n+e.now():Date.now();return Math.round(r)}},Ke=OQ;function re(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}vo();function nt(e,t){if(!ho(e,t))throw new TypeError("Cannot call a class as a function")}function kQ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ur(e,t,n){return t&&kQ(e.prototype,t),e}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Im(e,t){return Im=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Im(e,t)}function CQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Im(e,t)}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},kf(e)}function AQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}Yd();function RQ(e,t){return t&&(mt(t)==="object"||typeof t=="function")?t:re(e)}function PQ(e){var t=AQ();return function(){var n=kf(e),r;if(t){var i=kf(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return RQ(this,r)}}var Rn=function(e){return Du(e)[0]},Du=function(e){if(typeof e!="string"||e==="")return["localhost"];var t=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,n=e.match(t)||[],r=n[4],i;return r&&(i=(r.match(/[^\.]+\.[^\.]+$/)||[])[0]),[r,i]},ph=Ht(sr()),IQ={exists:function(){var e=ph.default.performance,t=e&&e.timing;return t!==void 0},domContentLoadedEventEnd:function(){var e=ph.default.performance,t=e&&e.timing;return t&&t.domContentLoadedEventEnd},navigationStart:function(){var e=ph.default.performance,t=e&&e.timing;return t&&t.navigationStart}},Cf=IQ;function qe(e,t,n){n=n===void 0?1:n,e[t]=e[t]||0,e[t]+=n}function Af(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Q(e,i,n[i])})}return e}function DQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n}function c0(e,t){return t=t!=null?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):DQ(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var LQ=["x-cdn","content-type"],WA=["x-request-id","cf-ray","x-amz-cf-id","x-akamai-request-id"],MQ=LQ.concat(WA);function f0(e){e=e||"";var t={},n=e.trim().split(/[\r\n]+/);return n.forEach(function(r){if(r){var i=r.split(": "),o=i.shift();o&&(MQ.indexOf(o.toLowerCase())>=0||o.toLowerCase().indexOf("x-litix-")===0)&&(t[o]=i.join(": "))}}),t}function Rf(e){if(e){var t=WA.find(function(n){return e[n]!==void 0});return t?e[t]:void 0}}var NQ=function(e){var t={};for(var n in e){var r=e[n],i=r["DATA-ID"].search("io.litix.data.");if(i!==-1){var o=r["DATA-ID"].replace("io.litix.data.","");t[o]=r.VALUE}}return t},QA=NQ,Yl=function(e){if(!e)return{};var t=Cf.navigationStart(),n=e.loading,r=n?n.start:e.trequest,i=n?n.first:e.tfirst,o=n?n.end:e.tload;return{bytesLoaded:e.total,requestStart:Math.round(t+r),responseStart:Math.round(t+i),responseEnd:Math.round(t+o)}},ss=function(e){if(!(!e||typeof e.getAllResponseHeaders!="function"))return f0(e.getAllResponseHeaders())},$Q=function(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=e.log,o=e.utils.secondsToMs,a=function(b){var g=parseInt(r.version),y;return g===1&&b.programDateTime!==null&&(y=b.programDateTime),g===0&&b.pdt!==null&&(y=b.pdt),y};if(!Cf.exists()){i.warn("performance timing not supported. Not tracking HLS.js.");return}var s=function(b,g){return e.emit(t,b,g)},u=function(b,g){var y=g.levels,v=g.audioTracks,h=g.url,w=g.stats,E=g.networkDetails,S=g.sessionData,T={},O={};y.forEach(function(L,q){T[q]={width:L.width,height:L.height,bitrate:L.bitrate,attrs:L.attrs}}),v.forEach(function(L,q){O[q]={name:L.name,language:L.lang,bitrate:L.bitrate}});var x=Yl(w),D=x.bytesLoaded,V=x.requestStart,B=x.responseStart,F=x.responseEnd;s("requestcompleted",c0(Af({},QA(S)),{request_event_type:b,request_bytes_loaded:D,request_start:V,request_response_start:B,request_response_end:F,request_type:"manifest",request_hostname:Rn(h),request_response_headers:ss(E),request_rendition_lists:{media:T,audio:O,video:{}}}))};n.on(r.Events.MANIFEST_LOADED,u);var l=function(b,g){var y=g.details,v=g.level,h=g.networkDetails,w=g.stats,E=Yl(w),S=E.bytesLoaded,T=E.requestStart,O=E.responseStart,x=E.responseEnd,D=y.fragments[y.fragments.length-1],V=a(D)+o(D.duration);s("requestcompleted",{request_event_type:b,request_bytes_loaded:S,request_start:T,request_response_start:O,request_response_end:x,request_current_level:v,request_type:"manifest",request_hostname:Rn(y.url),request_response_headers:ss(h),video_holdback:y.holdBack&&o(y.holdBack),video_part_holdback:y.partHoldBack&&o(y.partHoldBack),video_part_target_duration:y.partTarget&&o(y.partTarget),video_target_duration:y.targetduration&&o(y.targetduration),video_source_is_live:y.live,player_manifest_newest_program_time:isNaN(V)?void 0:V})};n.on(r.Events.LEVEL_LOADED,l);var c=function(b,g){var y=g.details,v=g.networkDetails,h=g.stats,w=Yl(h),E=w.bytesLoaded,S=w.requestStart,T=w.responseStart,O=w.responseEnd;s("requestcompleted",{request_event_type:b,request_bytes_loaded:E,request_start:S,request_response_start:T,request_response_end:O,request_type:"manifest",request_hostname:Rn(y.url),request_response_headers:ss(v)})};n.on(r.Events.AUDIO_TRACK_LOADED,c);var f=function(b,g){var y=g.stats,v=g.networkDetails,h=g.frag;y=y||h.stats;var w=Yl(y),E=w.bytesLoaded,S=w.requestStart,T=w.responseStart,O=w.responseEnd,x=v?ss(v):void 0,D={request_event_type:b,request_bytes_loaded:E,request_start:S,request_response_start:T,request_response_end:O,request_hostname:v?Rn(v.responseURL):void 0,request_id:x?Rf(x):void 0,request_response_headers:x,request_media_duration:h.duration,request_url:v==null?void 0:v.responseURL};h.type==="main"?(D.request_type="media",D.request_current_level=h.level,D.request_video_width=(n.levels[h.level]||{}).width,D.request_video_height=(n.levels[h.level]||{}).height,D.request_labeled_bitrate=(n.levels[h.level]||{}).bitrate):D.request_type=h.type,s("requestcompleted",D)};n.on(r.Events.FRAG_LOADED,f);var p=function(b,g){var y=g.frag,v=y.start,h=a(y),w={currentFragmentPDT:h,currentFragmentStart:o(v)};s("fragmentchange",w)};n.on(r.Events.FRAG_CHANGED,p);var d=function(b,g){var y=g.type,v=g.details,h=g.response,w=g.fatal,E=g.frag,S=g.networkDetails,T=(E==null?void 0:E.url)||g.url||"",O=S?ss(S):void 0;if((v===r.ErrorDetails.MANIFEST_LOAD_ERROR||v===r.ErrorDetails.MANIFEST_LOAD_TIMEOUT||v===r.ErrorDetails.FRAG_LOAD_ERROR||v===r.ErrorDetails.FRAG_LOAD_TIMEOUT||v===r.ErrorDetails.LEVEL_LOAD_ERROR||v===r.ErrorDetails.LEVEL_LOAD_TIMEOUT||v===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||v===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT||v===r.ErrorDetails.SUBTITLE_LOAD_ERROR||v===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT||v===r.ErrorDetails.KEY_LOAD_ERROR||v===r.ErrorDetails.KEY_LOAD_TIMEOUT)&&s("requestfailed",{request_error:v,request_url:T,request_hostname:Rn(T),request_id:O?Rf(O):void 0,request_type:v===r.ErrorDetails.FRAG_LOAD_ERROR||v===r.ErrorDetails.FRAG_LOAD_TIMEOUT?"media":v===r.ErrorDetails.AUDIO_TRACK_LOAD_ERROR||v===r.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT?"audio":v===r.ErrorDetails.SUBTITLE_LOAD_ERROR||v===r.ErrorDetails.SUBTITLE_LOAD_TIMEOUT?"subtitle":v===r.ErrorDetails.KEY_LOAD_ERROR||v===r.ErrorDetails.KEY_LOAD_TIMEOUT?"encryption":"manifest",request_error_code:h==null?void 0:h.code,request_error_text:h==null?void 0:h.text}),w){var x,D="".concat(T?"url: ".concat(T,`
`):"")+"".concat(h&&(h.code||h.text)?"response: ".concat(h.code,", ").concat(h.text,`
`):"")+"".concat(g.reason?"failure reason: ".concat(g.reason,`
`):"")+"".concat(g.level?"level: ".concat(g.level,`
`):"")+"".concat(g.parent?"parent stream controller: ".concat(g.parent,`
`):"")+"".concat(g.buffer?"buffer length: ".concat(g.buffer,`
`):"")+"".concat(g.error?"error: ".concat(g.error,`
`):"")+"".concat(g.event?"event: ".concat(g.event,`
`):"")+"".concat(g.err?"error message: ".concat((x=g.err)===null||x===void 0?void 0:x.message,`
`):"");s("error",{player_error_code:y,player_error_message:v,player_error_context:D})}};n.on(r.Events.ERROR,d);var m=function(b,g){var y=g.frag,v=y&&y._url||"";s("requestcanceled",{request_event_type:b,request_url:v,request_type:"media",request_hostname:Rn(v)})};n.on(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,m);var _=function(b,g){var y=g.level,v=n.levels[y];if(v&&v.attrs&&v.attrs.BANDWIDTH){var h=v.attrs.BANDWIDTH,w,E=parseFloat(v.attrs["FRAME-RATE"]);isNaN(E)||(w=E),h?s("renditionchange",{video_source_fps:w,video_source_bitrate:h,video_source_width:v.width,video_source_height:v.height,video_source_rendition_name:v.name,video_source_codec:v==null?void 0:v.videoCodec}):i.warn("missing BANDWIDTH from HLS manifest parsed by HLS.js")}};n.on(r.Events.LEVEL_SWITCHED,_),n._stopMuxMonitor=function(){n.off(r.Events.MANIFEST_LOADED,u),n.off(r.Events.LEVEL_LOADED,l),n.off(r.Events.AUDIO_TRACK_LOADED,c),n.off(r.Events.FRAG_LOADED,f),n.off(r.Events.FRAG_CHANGED,p),n.off(r.Events.ERROR,d),n.off(r.Events.FRAG_LOAD_EMERGENCY_ABORTED,m),n.off(r.Events.LEVEL_SWITCHED,_),n.off(r.Events.DESTROYING,n._stopMuxMonitor),delete n._stopMuxMonitor},n.on(r.Events.DESTROYING,n._stopMuxMonitor)},FQ=function(e){e&&typeof e._stopMuxMonitor=="function"&&e._stopMuxMonitor()},Ib=function(e,t){if(!e||!e.requestEndDate)return{};var n=Rn(e.url),r=e.url,i=e.bytesLoaded,o=new Date(e.requestStartDate).getTime(),a=new Date(e.firstByteDate).getTime(),s=new Date(e.requestEndDate).getTime(),u=isNaN(e.duration)?0:e.duration,l=typeof t.getMetricsFor=="function"?t.getMetricsFor(e.mediaType).HttpList:t.getDashMetrics().getHttpRequests(e.mediaType),c;l.length>0&&(c=f0(l[l.length-1]._responseHeaders||""));var f=c?Rf(c):void 0;return{requestStart:o,requestResponseStart:a,requestResponseEnd:s,requestBytesLoaded:i,requestResponseHeaders:c,requestMediaDuration:u,requestHostname:n,requestUrl:r,requestId:f}},jQ=function(e,t){var n=t.getQualityFor(e),r=t.getCurrentTrackFor(e).bitrateList;return r?{currentLevel:n,renditionWidth:r[n].width||null,renditionHeight:r[n].height||null,renditionBitrate:r[n].bandwidth}:{}},UQ=function(e){var t;return(t=e.match(/.*codecs\*?="(.*)"/))===null||t===void 0?void 0:t[1]},BQ=function(e){try{var t,n,r=(n=e.getVersion)===null||n===void 0||(t=n.call(e))===null||t===void 0?void 0:t.split(".").map(function(i){return parseInt(i)})[0];return r}catch{return!1}},HQ=function(e,t,n){var r=e.log;if(!n||!n.on){r.warn("Invalid dash.js player reference. Monitoring blocked.");return}var i=BQ(n),o=function(y,v){return e.emit(t,y,v)},a=function(y){var v=y.type,h=y.data,w=(h||{}).url;o("requestcompleted",{request_event_type:v,request_start:0,request_response_start:0,request_response_end:0,request_bytes_loaded:-1,request_type:"manifest",request_hostname:Rn(w),request_url:w})};n.on("manifestLoaded",a);var s={},u=function(y){if(typeof y.getRequests!="function")return null;var v=y.getRequests({state:"executed"});return v.length===0?null:v[v.length-1]},l=function(y){var v=y.type,h=y.fragmentModel,w=y.chunk,E=u(h);c({type:v,request:E,chunk:w})},c=function(y){var v=y.type,h=y.chunk,w=y.request,E=(h||{}).mediaInfo,S=E||{},T=S.type,O=S.bitrateList;O=O||[];var x={};O.forEach(function(A,j){x[j]={},x[j].width=A.width,x[j].height=A.height,x[j].bitrate=A.bandwidth,x[j].attrs={}}),T==="video"?s.video=x:T==="audio"?s.audio=x:s.media=x;var D=Ib(w,n),V=D.requestStart,B=D.requestResponseStart,F=D.requestResponseEnd,L=D.requestResponseHeaders,q=D.requestMediaDuration,R=D.requestHostname,k=D.requestUrl,C=D.requestId;o("requestcompleted",{request_event_type:v,request_start:V,request_response_start:B,request_response_end:F,request_bytes_loaded:-1,request_type:T+"_init",request_response_headers:L,request_hostname:R,request_id:C,request_url:k,request_media_duration:q,request_rendition_lists:s})};i>=4?n.on("initFragmentLoaded",c):n.on("initFragmentLoaded",l);var f=function(y){var v=y.type,h=y.fragmentModel,w=y.chunk,E=u(h);p({type:v,request:E,chunk:w})},p=function(y){var v=y.type,h=y.chunk,w=y.request,E=h||{},S=E.mediaInfo,T=E.start,O=S||{},x=O.type,D=Ib(w,n),V=D.requestStart,B=D.requestResponseStart,F=D.requestResponseEnd,L=D.requestBytesLoaded,q=D.requestResponseHeaders,R=D.requestMediaDuration,k=D.requestHostname,C=D.requestUrl,A=D.requestId,j=jQ(x,n),M=j.currentLevel,H=j.renditionWidth,I=j.renditionHeight,P=j.renditionBitrate;o("requestcompleted",{request_event_type:v,request_start:V,request_response_start:B,request_response_end:F,request_bytes_loaded:L,request_type:x,request_response_headers:q,request_hostname:k,request_id:A,request_url:C,request_media_start_time:T,request_media_duration:R,request_current_level:M,request_labeled_bitrate:P,request_video_width:H,request_video_height:I})};i>=4?n.on("mediaFragmentLoaded",p):n.on("mediaFragmentLoaded",f);var d={video:void 0,audio:void 0,totalBitrate:void 0},m=function(){if(d.video&&typeof d.video.bitrate=="number"){if(!(d.video.width&&d.video.height)){r.warn("have bitrate info for video but missing width/height");return}var y=d.video.bitrate;if(d.audio&&typeof d.audio.bitrate=="number"&&(y+=d.audio.bitrate),y!==d.totalBitrate)return d.totalBitrate=y,{video_source_bitrate:y,video_source_height:d.video.height,video_source_width:d.video.width,video_source_codec:UQ(d.video.codec)}}},_=function(y,v,h){if(typeof y.newQuality!="number"){r.warn("missing evt.newQuality in qualityChangeRendered event",y);return}var w=y.mediaType;if(w==="audio"||w==="video"){var E=n.getBitrateInfoListFor(w).find(function(T){var O=T.qualityIndex;return O===y.newQuality});if(!(E&&typeof E.bitrate=="number")){r.warn("missing bitrate info for ".concat(w));return}d[w]=c0(Af({},E),{codec:n.getCurrentTrackFor(w).codec});var S=m();S&&o("renditionchange",S)}};n.on("qualityChangeRendered",_);var b=function(y){var v=y.request,h=y.mediaType;v=v||{},o("requestcanceled",{request_event_type:v.type+"_"+v.action,request_url:v.url,request_type:h,request_hostname:Rn(v.url)})};n.on("fragmentLoadingAbandoned",b);var g=function(y){var v=y.error,h,w,E=(v==null||(h=v.data)===null||h===void 0?void 0:h.request)||{},S=(v==null||(w=v.data)===null||w===void 0?void 0:w.response)||{};(v==null?void 0:v.code)===27&&o("requestfailed",{request_error:E.type+"_"+E.action,request_url:E.url,request_hostname:Rn(E.url),request_type:E.mediaType,request_error_code:S.status,request_error_text:S.statusText});var T="".concat(E!=null&&E.url?"url: ".concat(E.url,`
`):"")+"".concat(S!=null&&S.status||S!=null&&S.statusText?"response: ".concat(S==null?void 0:S.status,", ").concat(S==null?void 0:S.statusText,`
`):"");o("error",{player_error_code:v==null?void 0:v.code,player_error_message:v==null?void 0:v.message,player_error_context:T})};n.on("error",g),n._stopMuxMonitor=function(){n.off("manifestLoaded",a),n.off("initFragmentLoaded",c),n.off("mediaFragmentLoaded",p),n.off("qualityChangeRendered",_),n.off("error",g),n.off("fragmentLoadingAbandoned",b),delete n._stopMuxMonitor}},zQ=function(e){e&&typeof e._stopMuxMonitor=="function"&&e._stopMuxMonitor()},Db=0,qQ=function(){function e(){nt(this,e),Q(this,"_listeners",void 0)}return ur(e,[{key:"on",value:function(t,n,r){return n._eventEmitterGuid=n._eventEmitterGuid||++Db,this._listeners=this._listeners||{},this._listeners[t]=this._listeners[t]||[],r&&(n=n.bind(r)),this._listeners[t].push(n),n}},{key:"off",value:function(t,n){var r=this._listeners&&this._listeners[t];r&&r.forEach(function(i,o){i._eventEmitterGuid===n._eventEmitterGuid&&r.splice(o,1)})}},{key:"one",value:function(t,n,r){var i=this;n._eventEmitterGuid=n._eventEmitterGuid||++Db;var o=function(){i.off(t,o),n.apply(r||this,arguments)};o._eventEmitterGuid=n._eventEmitterGuid,this.on(t,o)}},{key:"emit",value:function(t,n){var r=this;if(this._listeners){n=n||{};var i=this._listeners["before*"]||[],o=this._listeners[t]||[],a=this._listeners["after"+t]||[],s=function(u,l){u=u.slice(),u.forEach(function(c){c.call(r,{type:t},l)})};s(i,n),s(o,n),s(a,n)}}}]),e}(),VQ=qQ,hh=Ht(sr()),WQ=function(){function e(t){var n=this;nt(this,e),Q(this,"_playbackHeartbeatInterval",void 0),Q(this,"_playheadShouldBeProgressing",void 0),Q(this,"pm",void 0),this.pm=t,this._playbackHeartbeatInterval=null,this._playheadShouldBeProgressing=!1,t.on("playing",function(){n._playheadShouldBeProgressing=!0}),t.on("play",this._startPlaybackHeartbeatInterval.bind(this)),t.on("playing",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adbreakstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplay",this._startPlaybackHeartbeatInterval.bind(this)),t.on("adplaying",this._startPlaybackHeartbeatInterval.bind(this)),t.on("devicewake",this._startPlaybackHeartbeatInterval.bind(this)),t.on("viewstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("rebufferstart",this._startPlaybackHeartbeatInterval.bind(this)),t.on("pause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("ended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("viewend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("error",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("aderror",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adpause",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adended",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("adbreakend",this._stopPlaybackHeartbeatInterval.bind(this)),t.on("seeked",function(){t.data.player_is_paused?n._stopPlaybackHeartbeatInterval():n._startPlaybackHeartbeatInterval()}),t.on("timeupdate",function(){n._playbackHeartbeatInterval!==null&&t.emit("playbackheartbeat")}),t.on("devicesleep",function(r,i){n._playbackHeartbeatInterval!==null&&(hh.default.clearInterval(n._playbackHeartbeatInterval),t.emit("playbackheartbeatend",{viewer_time:i.viewer_time}),n._playbackHeartbeatInterval=null)})}return ur(e,[{key:"_startPlaybackHeartbeatInterval",value:function(){var t=this;this._playbackHeartbeatInterval===null&&(this.pm.emit("playbackheartbeat"),this._playbackHeartbeatInterval=hh.default.setInterval(function(){t.pm.emit("playbackheartbeat")},this.pm.playbackHeartbeatTime))}},{key:"_stopPlaybackHeartbeatInterval",value:function(){this._playheadShouldBeProgressing=!1,this._playbackHeartbeatInterval!==null&&(hh.default.clearInterval(this._playbackHeartbeatInterval),this.pm.emit("playbackheartbeatend"),this._playbackHeartbeatInterval=null)}}]),e}(),QQ=WQ,GQ=function e(t){var n=this;nt(this,e),Q(this,"viewErrored",void 0),t.on("viewinit",function(){n.viewErrored=!1}),t.on("error",function(r,i){try{var o=t.errorTranslator({player_error_code:i.player_error_code,player_error_message:i.player_error_message,player_error_context:i.player_error_context,player_error_severity:i.player_error_severity,player_error_business_exception:i.player_error_business_exception});o&&(t.data.player_error_code=o.player_error_code||i.player_error_code,t.data.player_error_message=o.player_error_message||i.player_error_message,t.data.player_error_context=o.player_error_context||i.player_error_context,t.data.player_error_severity=o.player_error_severity||i.player_error_severity,t.data.player_error_business_exception=o.player_error_business_exception||i.player_error_business_exception,n.viewErrored=!0)}catch(a){t.mux.log.warn("Exception in error translator callback.",a),n.viewErrored=!0}}),t.on("aftererror",function(){var r,i,o,a,s;(r=t.data)===null||r===void 0||delete r.player_error_code,(i=t.data)===null||i===void 0||delete i.player_error_message,(o=t.data)===null||o===void 0||delete o.player_error_context,(a=t.data)===null||a===void 0||delete a.player_error_severity,(s=t.data)===null||s===void 0||delete s.player_error_business_exception})},YQ=GQ,XQ=function(){function e(t){nt(this,e),Q(this,"_watchTimeTrackerLastCheckedTime",void 0),Q(this,"pm",void 0),this.pm=t,this._watchTimeTrackerLastCheckedTime=null,t.on("playbackheartbeat",this._updateWatchTime.bind(this)),t.on("playbackheartbeatend",this._clearWatchTimeState.bind(this))}return ur(e,[{key:"_updateWatchTime",value:function(t,n){var r=n.viewer_time;this._watchTimeTrackerLastCheckedTime===null&&(this._watchTimeTrackerLastCheckedTime=r),qe(this.pm.data,"view_watch_time",r-this._watchTimeTrackerLastCheckedTime),this._watchTimeTrackerLastCheckedTime=r}},{key:"_clearWatchTimeState",value:function(t,n){this._updateWatchTime(t,n),this._watchTimeTrackerLastCheckedTime=null}}]),e}(),KQ=XQ,JQ=function(){function e(t){var n=this;nt(this,e),Q(this,"_playbackTimeTrackerLastPlayheadPosition",void 0),Q(this,"_lastTime",void 0),Q(this,"_isAdPlaying",void 0),Q(this,"_callbackUpdatePlaybackTime",void 0),Q(this,"pm",void 0),this.pm=t,this._playbackTimeTrackerLastPlayheadPosition=-1,this._lastTime=Ke.now(),this._isAdPlaying=!1,this._callbackUpdatePlaybackTime=null;var r=this._startPlaybackTimeTracking.bind(this);t.on("playing",r),t.on("adplaying",r),t.on("seeked",r);var i=this._stopPlaybackTimeTracking.bind(this);t.on("playbackheartbeatend",i),t.on("seeking",i),t.on("adplaying",function(){n._isAdPlaying=!0}),t.on("adended",function(){n._isAdPlaying=!1}),t.on("adpause",function(){n._isAdPlaying=!1}),t.on("adbreakstart",function(){n._isAdPlaying=!1}),t.on("adbreakend",function(){n._isAdPlaying=!1}),t.on("adplay",function(){n._isAdPlaying=!1}),t.on("viewinit",function(){n._playbackTimeTrackerLastPlayheadPosition=-1,n._lastTime=Ke.now(),n._isAdPlaying=!1,n._callbackUpdatePlaybackTime=null})}return ur(e,[{key:"_startPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime===null&&(this._callbackUpdatePlaybackTime=this._updatePlaybackTime.bind(this),this._playbackTimeTrackerLastPlayheadPosition=this.pm.data.player_playhead_time,this.pm.on("playbackheartbeat",this._callbackUpdatePlaybackTime))}},{key:"_stopPlaybackTimeTracking",value:function(){this._callbackUpdatePlaybackTime&&(this._updatePlaybackTime(),this.pm.off("playbackheartbeat",this._callbackUpdatePlaybackTime),this._callbackUpdatePlaybackTime=null,this._playbackTimeTrackerLastPlayheadPosition=-1)}},{key:"_updatePlaybackTime",value:function(){var t=this.pm.data.player_playhead_time,n=Ke.now(),r=-1;this._playbackTimeTrackerLastPlayheadPosition>=0&&t>this._playbackTimeTrackerLastPlayheadPosition?r=t-this._playbackTimeTrackerLastPlayheadPosition:this._isAdPlaying&&(r=n-this._lastTime),r>0&&r<=1e3&&qe(this.pm.data,"view_content_playback_time",r),this._playbackTimeTrackerLastPlayheadPosition=t,this._lastTime=n}}]),e}(),ZQ=JQ,eG=function(){function e(t){nt(this,e),Q(this,"pm",void 0),this.pm=t;var n=this._updatePlayheadTime.bind(this);t.on("playbackheartbeat",n),t.on("playbackheartbeatend",n),t.on("timeupdate",n),t.on("destroy",function(){t.off("timeupdate",n)})}return ur(e,[{key:"_updateMaxPlayheadPosition",value:function(){this.pm.data.view_max_playhead_position=typeof this.pm.data.view_max_playhead_position>"u"?this.pm.data.player_playhead_time:Math.max(this.pm.data.view_max_playhead_position,this.pm.data.player_playhead_time)}},{key:"_updatePlayheadTime",value:function(t,n){var r=this,i=function(){r.pm.currentFragmentPDT&&r.pm.currentFragmentStart&&(r.pm.data.player_program_time=r.pm.currentFragmentPDT+r.pm.data.player_playhead_time-r.pm.currentFragmentStart)};if(n&&n.player_playhead_time)this.pm.data.player_playhead_time=n.player_playhead_time,i(),this._updateMaxPlayheadPosition();else if(this.pm.getPlayheadTime){var o=this.pm.getPlayheadTime();typeof o<"u"&&(this.pm.data.player_playhead_time=o,i(),this._updateMaxPlayheadPosition())}}}]),e}(),tG=eG,Lb=5*60*1e3,nG=function e(t){if(nt(this,e),!t.disableRebufferTracking){var n,r=function(o,a){i(a),n=void 0},i=function(o){if(n){var a=o.viewer_time-n;qe(t.data,"view_rebuffer_duration",a),n=o.viewer_time,t.data.view_rebuffer_duration>Lb&&(t.emit("viewend"),t.send("viewend"),t.mux.log.warn("Ending view after rebuffering for longer than ".concat(Lb,"ms, future events will be ignored unless a programchange or videochange occurs.")))}t.data.view_watch_time>=0&&t.data.view_rebuffer_count>0&&(t.data.view_rebuffer_frequency=t.data.view_rebuffer_count/t.data.view_watch_time,t.data.view_rebuffer_percentage=t.data.view_rebuffer_duration/t.data.view_watch_time)};t.on("playbackheartbeat",function(o,a){return i(a)}),t.on("rebufferstart",function(o,a){n||(qe(t.data,"view_rebuffer_count",1),n=a.viewer_time,t.one("rebufferend",r))}),t.on("viewinit",function(){n=void 0,t.off("rebufferend",r)})}},rG=nG,iG=function(){function e(t){var n=this;nt(this,e),Q(this,"_lastCheckedTime",void 0),Q(this,"_lastPlayheadTime",void 0),Q(this,"_lastPlayheadTimeUpdatedTime",void 0),Q(this,"_rebuffering",void 0),Q(this,"pm",void 0),this.pm=t,!(t.disableRebufferTracking||t.disablePlayheadRebufferTracking)&&(this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null,t.on("playbackheartbeat",this._checkIfRebuffering.bind(this)),t.on("playbackheartbeatend",this._cleanupRebufferTracker.bind(this)),t.on("seeking",function(){n._cleanupRebufferTracker(null,{viewer_time:Ke.now()})}))}return ur(e,[{key:"_checkIfRebuffering",value:function(t,n){if(this.pm.seekingTracker.isSeeking||this.pm.adTracker.isAdBreak||!this.pm.playbackHeartbeat._playheadShouldBeProgressing){this._cleanupRebufferTracker(t,n);return}if(this._lastCheckedTime===null){this._prepareRebufferTrackerState(n.viewer_time);return}if(this._lastPlayheadTime!==this.pm.data.player_playhead_time){this._cleanupRebufferTracker(t,n,!0);return}var r=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.sustainedRebufferThreshold=="number"&&r>=this.pm.sustainedRebufferThreshold&&(this._rebuffering||(this._rebuffering=!0,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}))),this._lastCheckedTime=n.viewer_time}},{key:"_clearRebufferTrackerState",value:function(){this._lastCheckedTime=null,this._lastPlayheadTime=null,this._lastPlayheadTimeUpdatedTime=null}},{key:"_prepareRebufferTrackerState",value:function(t){this._lastCheckedTime=t,this._lastPlayheadTime=this.pm.data.player_playhead_time,this._lastPlayheadTimeUpdatedTime=t}},{key:"_cleanupRebufferTracker",value:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this._rebuffering)this._rebuffering=!1,this.pm.emit("rebufferend",{viewer_time:n.viewer_time});else{if(this._lastCheckedTime===null)return;var i=this.pm.data.player_playhead_time-this._lastPlayheadTime,o=n.viewer_time-this._lastPlayheadTimeUpdatedTime;typeof this.pm.minimumRebufferDuration=="number"&&i>0&&o-i>this.pm.minimumRebufferDuration&&(this._lastCheckedTime=null,this.pm.emit("rebufferstart",{viewer_time:this._lastPlayheadTimeUpdatedTime}),this.pm.emit("rebufferend",{viewer_time:this._lastPlayheadTimeUpdatedTime+o-i}))}r?this._prepareRebufferTrackerState(n.viewer_time):this._clearRebufferTrackerState()}}]),e}(),oG=iG,aG=function(){function e(t){var n=this;nt(this,e),Q(this,"NAVIGATION_START",void 0),Q(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){var r=t.data,i=r.view_id;if(!r.view_program_changed){var o=function(a,s){var u=s.viewer_time;(a.type==="playing"&&typeof t.data.view_time_to_first_frame>"u"||a.type==="adplaying"&&(typeof t.data.view_time_to_first_frame>"u"||n._inPrerollPosition()))&&n.calculateTimeToFirstFrame(u||Ke.now(),i)};t.one("playing",o),t.one("adplaying",o),t.one("viewend",function(){t.off("playing",o),t.off("adplaying",o)})}})}return ur(e,[{key:"_inPrerollPosition",value:function(){return typeof this.pm.data.view_content_playback_time>"u"||this.pm.data.view_content_playback_time<=1e3}},{key:"calculateTimeToFirstFrame",value:function(t,n){n===this.pm.data.view_id&&(this.pm.watchTimeTracker._updateWatchTime(null,{viewer_time:t}),this.pm.data.view_time_to_first_frame=this.pm.data.view_watch_time,(this.pm.data.player_autoplay_on||this.pm.data.video_is_autoplay)&&this.NAVIGATION_START&&(this.pm.data.view_aggregate_startup_time=this.pm.data.view_start+this.pm.data.view_watch_time-this.NAVIGATION_START))}}]),e}(),sG=aG,uG=function e(t){var n=this;nt(this,e),Q(this,"_lastPlayerHeight",void 0),Q(this,"_lastPlayerWidth",void 0),Q(this,"_lastPlayheadPosition",void 0),Q(this,"_lastSourceHeight",void 0),Q(this,"_lastSourceWidth",void 0),t.on("viewinit",function(){n._lastPlayheadPosition=-1});var r=["pause","rebufferstart","seeking","error","adbreakstart","hb"],i=["playing","hb"];r.forEach(function(o){t.on(o,function(){if(n._lastPlayheadPosition>=0&&t.data.player_playhead_time>=0&&n._lastPlayerWidth>=0&&n._lastSourceWidth>0&&n._lastPlayerHeight>=0&&n._lastSourceHeight>0){var a=t.data.player_playhead_time-n._lastPlayheadPosition;if(a<0){n._lastPlayheadPosition=-1;return}var s=Math.min(n._lastPlayerWidth/n._lastSourceWidth,n._lastPlayerHeight/n._lastSourceHeight),u=Math.max(0,s-1),l=Math.max(0,1-s);t.data.view_max_upscale_percentage=Math.max(t.data.view_max_upscale_percentage||0,u),t.data.view_max_downscale_percentage=Math.max(t.data.view_max_downscale_percentage||0,l),qe(t.data,"view_total_content_playback_time",a),qe(t.data,"view_total_upscaling",u*a),qe(t.data,"view_total_downscaling",l*a)}n._lastPlayheadPosition=-1})}),i.forEach(function(o){t.on(o,function(){n._lastPlayheadPosition=t.data.player_playhead_time,n._lastPlayerWidth=t.data.player_width,n._lastPlayerHeight=t.data.player_height,n._lastSourceWidth=t.data.video_source_width,n._lastSourceHeight=t.data.video_source_height})})},lG=uG,cG=2e3,fG=function e(t){var n=this;nt(this,e),Q(this,"isSeeking",void 0),this.isSeeking=!1;var r=-1,i=function(){var o=Ke.now(),a=(t.data.viewer_time||o)-(r||o);qe(t.data,"view_seek_duration",a),t.data.view_max_seek_time=Math.max(t.data.view_max_seek_time||0,a),n.isSeeking=!1,r=-1};t.on("seeking",function(o,a){if(Object.assign(t.data,a),n.isSeeking&&a.viewer_time-r<=cG){r=a.viewer_time;return}n.isSeeking&&i(),n.isSeeking=!0,r=a.viewer_time,qe(t.data,"view_seek_count",1),t.send("seeking")}),t.on("seeked",function(){i()}),t.on("viewend",function(){n.isSeeking&&(i(),t.send("seeked")),n.isSeeking=!1,r=-1})},dG=fG,Mb=function(e,t){e.push(t),e.sort(function(n,r){return n.viewer_time-r.viewer_time})},pG=["adbreakstart","adrequest","adresponse","adplay","adplaying","adpause","adended","adbreakend","aderror","adclicked","adskipped"],hG=function(){function e(t){var n=this;nt(this,e),Q(this,"_adHasPlayed",void 0),Q(this,"_adRequests",void 0),Q(this,"_adResponses",void 0),Q(this,"_currentAdRequestNumber",void 0),Q(this,"_currentAdResponseNumber",void 0),Q(this,"_prerollPlayTime",void 0),Q(this,"_wouldBeNewAdPlay",void 0),Q(this,"isAdBreak",void 0),Q(this,"pm",void 0),this.pm=t,t.on("viewinit",function(){n.isAdBreak=!1,n._currentAdRequestNumber=0,n._currentAdResponseNumber=0,n._adRequests=[],n._adResponses=[],n._adHasPlayed=!1,n._wouldBeNewAdPlay=!0,n._prerollPlayTime=void 0}),pG.forEach(function(i){return t.on(i,n._updateAdData.bind(n))});var r=function(){n.isAdBreak=!1};t.on("adbreakstart",function(){n.isAdBreak=!0}),t.on("play",r),t.on("playing",r),t.on("viewend",r),t.on("adrequest",function(i,o){o=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdRequestNumber++},o),Mb(n._adRequests,o),qe(t.data,"view_ad_request_count"),n.inPrerollPosition()&&(t.data.view_preroll_requested=!0,n._adHasPlayed||qe(t.data,"view_preroll_request_count"))}),t.on("adresponse",function(i,o){o=Object.assign({ad_request_id:"generatedAdRequestId"+n._currentAdResponseNumber++},o),Mb(n._adResponses,o);var a=n.findAdRequest(o.ad_request_id);a&&qe(t.data,"view_ad_request_time",Math.max(0,o.viewer_time-a.viewer_time))}),t.on("adplay",function(i,o){n._adHasPlayed=!0,n._wouldBeNewAdPlay&&(n._wouldBeNewAdPlay=!1,qe(t.data,"view_ad_played_count")),n.inPrerollPosition()&&!t.data.view_preroll_played&&(t.data.view_preroll_played=!0,n._adRequests.length>0&&(t.data.view_preroll_request_time=Math.max(0,o.viewer_time-n._adRequests[0].viewer_time)),t.data.view_start&&(t.data.view_startup_preroll_request_time=Math.max(0,o.viewer_time-t.data.view_start)),n._prerollPlayTime=o.viewer_time)}),t.on("adplaying",function(i,o){n.inPrerollPosition()&&typeof t.data.view_preroll_load_time>"u"&&typeof n._prerollPlayTime<"u"&&(t.data.view_preroll_load_time=o.viewer_time-n._prerollPlayTime,t.data.view_startup_preroll_load_time=o.viewer_time-n._prerollPlayTime)}),t.on("adclicked",function(i,o){n._wouldBeNewAdPlay||qe(t.data,"view_ad_clicked_count")}),t.on("adskipped",function(i,o){n._wouldBeNewAdPlay||qe(t.data,"view_ad_skipped_count")}),t.on("adended",function(){n._wouldBeNewAdPlay=!0}),t.on("aderror",function(){n._wouldBeNewAdPlay=!0})}return ur(e,[{key:"inPrerollPosition",value:function(){return typeof this.pm.data.view_content_playback_time>"u"||this.pm.data.view_content_playback_time<=1e3}},{key:"findAdRequest",value:function(t){for(var n=0;n<this._adRequests.length;n++)if(this._adRequests[n].ad_request_id===t)return this._adRequests[n]}},{key:"_updateAdData",value:function(t,n){if(this.inPrerollPosition()){if(!this.pm.data.view_preroll_ad_tag_hostname&&n.ad_tag_url){var r=Zi(Du(n.ad_tag_url),2),i=r[0],o=r[1];this.pm.data.view_preroll_ad_tag_domain=o,this.pm.data.view_preroll_ad_tag_hostname=i}if(!this.pm.data.view_preroll_ad_asset_hostname&&n.ad_asset_url){var a=Zi(Du(n.ad_asset_url),2),s=a[0],u=a[1];this.pm.data.view_preroll_ad_asset_domain=u,this.pm.data.view_preroll_ad_asset_hostname=s}}this.pm.data.ad_asset_url=n==null?void 0:n.ad_asset_url,this.pm.data.ad_tag_url=n==null?void 0:n.ad_tag_url,this.pm.data.ad_creative_id=n==null?void 0:n.ad_creative_id,this.pm.data.ad_id=n==null?void 0:n.ad_id,this.pm.data.ad_universal_id=n==null?void 0:n.ad_universal_id}}]),e}(),vG=hG,Nb=Ht(sr()),mG=function e(t){nt(this,e);var n,r,i=function(){t.disableRebufferTracking||(qe(t.data,"view_waiting_rebuffer_count",1),n=Ke.now(),r=Nb.default.setInterval(function(){if(n){var l=Ke.now();qe(t.data,"view_waiting_rebuffer_duration",l-n),n=l}},250))},o=function(){t.disableRebufferTracking||n&&(qe(t.data,"view_waiting_rebuffer_duration",Ke.now()-n),n=!1,Nb.default.clearInterval(r))},a=!1,s=function(){a=!0},u=function(){a=!1,o()};t.on("waiting",function(){a&&i()}),t.on("playing",function(){o(),s()}),t.on("pause",u),t.on("seeking",u)},gG=mG,yG=function e(t){var n=this;nt(this,e),Q(this,"lastWallClockTime",void 0);var r=function(){n.lastWallClockTime=Ke.now(),t.on("before*",i)},i=function(o){var a=Ke.now(),s=n.lastWallClockTime;n.lastWallClockTime=a,a-s>3e4&&(t.emit("devicesleep",{viewer_time:s}),Object.assign(t.data,{viewer_time:s}),t.send("devicesleep"),t.emit("devicewake",{viewer_time:a}),Object.assign(t.data,{viewer_time:a}),t.send("devicewake"))};t.one("playbackheartbeat",r),t.on("playbackheartbeatend",function(){t.off("before*",i),t.one("playbackheartbeat",r)})},_G=yG,vh=Ht(sr()),GA=Ht(cQ()),YA=Ht(fQ()),XA="muxData",KA=function(){var e;try{e=GA.default.parse(YA.default.get(XA)||"")}catch{e={}}return e},JA=function(e){try{YA.default.set(XA,GA.default.stringify(e),{expires:365})}catch{}},wG=function(){var e=KA();return e.mux_viewer_id=e.mux_viewer_id||Pu(),e.msn=e.msn||Math.random(),JA(e),{mux_viewer_id:e.mux_viewer_id,mux_sample_number:e.msn}},bG=function(){var e=KA(),t=Ke.now();return e.session_start&&(e.sst=e.session_start,delete e.session_start),e.session_id&&(e.sid=e.session_id,delete e.session_id),e.session_expires&&(e.sex=e.session_expires,delete e.session_expires),(!e.sex||e.sex<t)&&(e.sid=Pu(),e.sst=t),e.sex=t+25*60*1e3,JA(e),{session_id:e.sid,session_start:e.sst,session_expires:e.sex}};function EG(e,t){var n=t.beaconCollectionDomain,r=t.beaconDomain;if(n)return"https://"+n;e=e||"inferred";var i=r||"litix.io";return e.match(/^[a-z0-9]+$/)?"https://"+e+"."+i:"https://img.litix.io/a.gif"}var SG=Ht(sr()),ZA=function(){var e;switch(eR()){case"cellular":e="cellular";break;case"ethernet":e="wired";break;case"wifi":e="wifi";break;case void 0:break;default:e="other"}return e},eR=function(){var e=SG.default.navigator,t=e&&(e.connection||e.mozConnection||e.webkitConnection);return t&&t.type};ZA.getConnectionFromAPI=eR;var TG=ZA,xG={a:"env",b:"beacon",c:"custom",d:"ad",e:"event",f:"experiment",i:"internal",m:"mux",n:"response",p:"player",q:"request",r:"retry",s:"session",t:"timestamp",u:"viewer",v:"video",w:"page",x:"view",y:"sub"},OG=tR(xG),kG={ad:"ad",ag:"aggregate",ap:"api",al:"application",ar:"architecture",as:"asset",au:"autoplay",av:"average",bi:"bitrate",br:"break",bw:"browser",by:"bytes",bz:"business",ca:"cached",cb:"cancel",cc:"codec",cd:"code",cg:"category",ch:"changed",ck:"clicked",cl:"canceled",cn:"config",co:"count",ce:"counter",cp:"complete",cr:"creative",ct:"content",cu:"current",cx:"connection",cz:"context",dg:"downscaling",dm:"domain",dn:"cdn",do:"downscale",dr:"drm",dp:"dropped",du:"duration",dv:"device",ec:"encoding",ed:"edge",en:"end",eg:"engine",em:"embed",er:"error",ep:"experiments",es:"errorcode",et:"errortext",ee:"event",ev:"events",ex:"expires",ez:"exception",fa:"failed",fi:"first",fm:"family",ft:"format",fp:"fps",fq:"frequency",fr:"frame",fs:"fullscreen",ha:"has",hb:"holdback",he:"headers",ho:"host",hn:"hostname",ht:"height",id:"id",ii:"init",in:"instance",ip:"ip",is:"is",ke:"key",la:"language",lb:"labeled",le:"level",li:"live",ld:"loaded",lo:"load",ls:"lists",lt:"latency",ma:"max",md:"media",me:"message",mf:"manifest",mi:"mime",ml:"midroll",mm:"min",mn:"manufacturer",mo:"model",mx:"mux",ne:"newest",nm:"name",no:"number",on:"on",os:"os",pa:"paused",pb:"playback",pd:"producer",pe:"percentage",pf:"played",pg:"program",ph:"playhead",pi:"plugin",pl:"preroll",pn:"playing",po:"poster",pr:"preload",ps:"position",pt:"part",py:"property",ra:"rate",rd:"requested",re:"rebuffer",rf:"rendition",rm:"remote",ro:"ratio",rp:"response",rq:"request",rs:"requests",sa:"sample",sd:"skipped",se:"session",sk:"seek",sm:"stream",so:"source",sq:"sequence",sr:"series",st:"start",su:"startup",sv:"server",sw:"software",sy:"severity",ta:"tag",tc:"tech",te:"text",tg:"target",th:"throughput",ti:"time",tl:"total",to:"to",tt:"title",ty:"type",ug:"upscaling",un:"universal",up:"upscale",ur:"url",us:"user",va:"variant",vd:"viewed",vi:"video",ve:"version",vw:"view",vr:"viewer",wd:"width",wa:"watch",wt:"waiting"},$b=tR(kG);function tR(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Dm(e){var t={},n={};return Object.keys(e).forEach(function(r){var i=!1;if(e.hasOwnProperty(r)&&e[r]!==void 0){var o=r.split("_"),a=o[0],s=OG[a];s||(Ne.info("Data key word `"+o[0]+"` not expected in "+r),s=a+"_"),o.splice(1).forEach(function(u){u==="url"&&(i=!0),$b[u]?s+=$b[u]:Number(u)&&Math.floor(Number(u))===Number(u)?s+=u:(Ne.info("Data key word `"+u+"` not expected in "+r),s+="_"+u+"_")}),i?n[s]=e[r]:t[s]=e[r]}}),Object.assign(t,n)}var Ii=Ht(sr()),CG={maxBeaconSize:300,maxQueueLength:3600,baseTimeBetweenBeacons:1e4,maxPayloadKBSize:500},AG=56*1024,RG=["hb","requestcompleted","requestfailed","requestcanceled"],PG="https://img.litix.io",Pr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this._beaconUrl=e||PG,this._eventQueue=[],this._postInFlight=!1,this._failureCount=0,this._sendTimeout=!1,this._options=Object.assign({},CG,t)};Pr.prototype.queueEvent=function(e,t){var n=Object.assign({},t);return this._eventQueue.length<=this._options.maxQueueLength||e==="eventrateexceeded"?(this._eventQueue.push(n),this._sendTimeout||this._startBeaconSending(),this._eventQueue.length<=this._options.maxQueueLength):!1};Pr.prototype.flushEvents=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(e&&this._eventQueue.length===1){this._eventQueue.pop();return}this._eventQueue.length&&this._sendBeaconQueue(),this._startBeaconSending()};Pr.prototype.destroy=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.destroyed=!0,e?this._clearBeaconQueue():this.flushEvents(),Ii.default.clearTimeout(this._sendTimeout)};Pr.prototype._clearBeaconQueue=function(){var e=this._eventQueue.length>this._options.maxBeaconSize?this._eventQueue.length-this._options.maxBeaconSize:0,t=this._eventQueue.slice(e);e>0&&Object.assign(t[t.length-1],Dm({mux_view_message:"event queue truncated"}));var n=this._createPayload(t);nR(this._beaconUrl,n,!0,function(){})};Pr.prototype._sendBeaconQueue=function(){var e=this;if(!this._postInFlight){var t=this._eventQueue.slice(0,this._options.maxBeaconSize);this._eventQueue=this._eventQueue.slice(this._options.maxBeaconSize),this._postInFlight=!0;var n=this._createPayload(t),r=Ke.now();nR(this._beaconUrl,n,!1,function(i,o){o?(e._eventQueue=t.concat(e._eventQueue),e._failureCount+=1,Ne.info("Error sending beacon: "+o)):e._failureCount=0,e._roundTripTime=Ke.now()-r,e._postInFlight=!1})}};Pr.prototype._getNextBeaconTime=function(){if(!this._failureCount)return this._options.baseTimeBetweenBeacons;var e=Math.pow(2,this._failureCount-1);return e=e*Math.random(),(1+e)*this._options.baseTimeBetweenBeacons};Pr.prototype._startBeaconSending=function(){var e=this;Ii.default.clearTimeout(this._sendTimeout),!this.destroyed&&(this._sendTimeout=Ii.default.setTimeout(function(){e._eventQueue.length&&e._sendBeaconQueue(),e._startBeaconSending()},this._getNextBeaconTime()))};Pr.prototype._createPayload=function(e){var t=this,n={transmission_timestamp:Math.round(Ke.now())};this._roundTripTime&&(n.rtt_ms=Math.round(this._roundTripTime));var r,i,o,a=function(){r=JSON.stringify({metadata:n,events:i||e}),o=r.length/1024},s=function(){return o<=t._options.maxPayloadKBSize};return a(),s()||(Ne.info("Payload size is too big ("+o+" kb). Removing unnecessary events."),i=e.filter(function(u){return RG.indexOf(u.e)===-1}),a()),s()||(Ne.info("Payload size still too big ("+o+" kb). Cropping fields.."),i.forEach(function(u){for(var l in u){var c=u[l],f=50*1024;typeof c=="string"&&c.length>f&&(u[l]=c.substring(0,f))}}),a()),r};var IG=function(e){return e.length<=AG},nR=function(e,t,n,r){if(n&&navigator&&navigator.sendBeacon&&navigator.sendBeacon(e,t)){r();return}if(Ii.default.fetch){Ii.default.fetch(e,{method:"POST",body:t,headers:{"Content-Type":"text/plain"},keepalive:IG(t)}).then(function(o){return r(null,o.ok?null:"Error")}).catch(function(o){return r(null,o)});return}if(Ii.default.XMLHttpRequest){var i=new Ii.default.XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4)return r(null,i.status!==200?"error":void 0)},i.open("POST",e),i.setRequestHeader("Content-Type","text/plain"),i.send(t);return}r()},DG=Pr,LG=["env_key","view_id","view_sequence_number","player_sequence_number","beacon_domain","player_playhead_time","viewer_time","mux_api_version","event","video_id","player_instance_id","player_error_code","player_error_message","player_error_context","player_error_severity","player_error_business_exception"],MG=["adplay","adplaying","adpause","adfirstquartile","admidpoint","adthirdquartile","adended","adresponse","adrequest"],NG=["ad_id","ad_creative_id","ad_universal_id"],$G=["viewstart","error","ended","viewend"],FG=10*60*1e3,jG=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};nt(this,e);var i,o,a,s,u,l,c,f,p,d,m,_;Q(this,"mux",void 0),Q(this,"envKey",void 0),Q(this,"options",void 0),Q(this,"eventQueue",void 0),Q(this,"sampleRate",void 0),Q(this,"disableCookies",void 0),Q(this,"respectDoNotTrack",void 0),Q(this,"previousBeaconData",void 0),Q(this,"lastEventTime",void 0),Q(this,"rateLimited",void 0),Q(this,"pageLevelData",void 0),Q(this,"viewerData",void 0),this.mux=t,this.envKey=n,this.options=r,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.eventQueue=new DG(EG(this.envKey,this.options));var b;this.sampleRate=(b=this.options.sampleRate)!==null&&b!==void 0?b:1;var g;this.disableCookies=(g=this.options.disableCookies)!==null&&g!==void 0?g:!1;var y;this.respectDoNotTrack=(y=this.options.respectDoNotTrack)!==null&&y!==void 0?y:!1,this.previousBeaconData=null,this.lastEventTime=0,this.rateLimited=!1,this.pageLevelData={mux_api_version:this.mux.API_VERSION,mux_embed:this.mux.NAME,mux_embed_version:this.mux.VERSION,viewer_application_name:(i=this.options.platform)===null||i===void 0?void 0:i.name,viewer_application_version:(o=this.options.platform)===null||o===void 0?void 0:o.version,viewer_application_engine:(a=this.options.platform)===null||a===void 0?void 0:a.layout,viewer_device_name:(s=this.options.platform)===null||s===void 0?void 0:s.product,viewer_device_category:"",viewer_device_manufacturer:(u=this.options.platform)===null||u===void 0?void 0:u.manufacturer,viewer_os_family:(c=this.options.platform)===null||c===void 0||(l=c.os)===null||l===void 0?void 0:l.family,viewer_os_architecture:(p=this.options.platform)===null||p===void 0||(f=p.os)===null||f===void 0?void 0:f.architecture,viewer_os_version:(m=this.options.platform)===null||m===void 0||(d=m.os)===null||d===void 0?void 0:d.version,viewer_connection_type:TG(),page_url:vh.default===null||vh.default===void 0||(_=vh.default.location)===null||_===void 0?void 0:_.href},this.viewerData=this.disableCookies?{}:wG()}return ur(e,[{key:"send",value:function(t,n){if(!(!t||!(n!=null&&n.view_id))){if(this.respectDoNotTrack&&Pm())return Ne.info("Not sending `"+t+"` because Do Not Track is enabled");if(!n||typeof n!="object")return Ne.error("A data object was expected in send() but was not provided");var r=this.disableCookies?{}:bG(),i=c0(Af({},this.pageLevelData,n,r,this.viewerData),{event:t,env_key:this.envKey});i.user_id&&(i.viewer_user_id=i.user_id,delete i.user_id);var o,a=((o=i.mux_sample_number)!==null&&o!==void 0?o:0)>=this.sampleRate,s=this._deduplicateBeaconData(t,i),u=Dm(s);if(this.lastEventTime=this.mux.utils.now(),a)return Ne.info("Not sending event due to sample rate restriction",t,i,u);if(this.envKey||Ne.info("Missing environment key (envKey) - beacons will be dropped if the video source is not a valid mux video URL",t,i,u),!this.rateLimited){if(Ne.info("Sending event",t,i,u),this.rateLimited=!this.eventQueue.queueEvent(t,u),this.mux.WINDOW_UNLOADING&&t==="viewend")this.eventQueue.destroy(!0);else if(this.mux.WINDOW_HIDDEN&&t==="hb"?this.eventQueue.flushEvents(!0):$G.indexOf(t)>=0&&this.eventQueue.flushEvents(),this.rateLimited)return i.event="eventrateexceeded",u=Dm(i),this.eventQueue.queueEvent(i.event,u),Ne.error("Beaconing disabled due to rate limit.")}}}},{key:"destroy",value:function(){this.eventQueue.destroy(!1)}},{key:"_deduplicateBeaconData",value:function(t,n){var r=this,i={},o=n.view_id;if(o==="-1"||t==="viewstart"||t==="viewend"||!this.previousBeaconData||this.mux.utils.now()-this.lastEventTime>=FG)i=Af({},n),o&&(this.previousBeaconData=i),o&&t==="viewend"&&(this.previousBeaconData=null);else{var a=t.indexOf("request")===0;Object.entries(n).forEach(function(s){var u=Zi(s,2),l=u[0],c=u[1];r.previousBeaconData&&(c!==r.previousBeaconData[l]||LG.indexOf(l)>-1||r.objectHasChanged(a,l,c,r.previousBeaconData[l])||r.eventRequiresKey(t,l))&&(i[l]=c,r.previousBeaconData[l]=c)})}return i}},{key:"objectHasChanged",value:function(t,n,r,i){return!t||n.indexOf("request_")!==0?!1:n==="request_response_headers"||typeof r!="object"||typeof i!="object"?!0:Object.keys(r||{}).length!==Object.keys(i||{}).length}},{key:"eventRequiresKey",value:function(t,n){return!!(t==="renditionchange"&&n.indexOf("video_source_")===0||NG.includes(n)&&MG.includes(t))}}]),e}(),UG=function e(t){nt(this,e);var n=0,r=0,i=0,o=0,a=0,s=0,u=0,l=function(p,d){var m=d.request_start,_=d.request_response_start,b=d.request_response_end,g=d.request_bytes_loaded;o++;var y,v;if(_?(y=_-(m!=null?m:0),v=(b!=null?b:0)-_):v=(b!=null?b:0)-(m!=null?m:0),v>0&&g&&g>0){var h=g/v*8e3;a++,r+=g,i+=v,t.data.view_min_request_throughput=Math.min(t.data.view_min_request_throughput||1/0,h),t.data.view_average_request_throughput=r/i*8e3,t.data.view_request_count=o,y>0&&(n+=y,t.data.view_max_request_latency=Math.max(t.data.view_max_request_latency||0,y),t.data.view_average_request_latency=n/a)}},c=function(p,d){o++,s++,t.data.view_request_count=o,t.data.view_request_failed_count=s},f=function(p,d){o++,u++,t.data.view_request_count=o,t.data.view_request_canceled_count=u};t.on("requestcompleted",l),t.on("requestfailed",c),t.on("requestcanceled",f)},BG=UG,HG=60*60*1e3,zG=function e(t){var n=this;nt(this,e),Q(this,"_lastEventTime",void 0),t.on("before*",function(r,i){var o=i.viewer_time,a=Ke.now(),s=n._lastEventTime;if(n._lastEventTime=a,s&&a-s>HG){var u=Object.keys(t.data).reduce(function(l,c){return c.indexOf("video_")===0?Object.assign(l,Q({},c,t.data[c])):l},{});t.mux.log.info("Received event after at least an hour inactivity, creating a new view"),t.emit("viewinit",Object.assign({viewer_time:o},u)),t.playbackHeartbeat._playheadShouldBeProgressing&&r.type!=="play"&&r.type!=="adbreakstart"&&(t.emit("play",{viewer_time:o}),r.type!=="playing"&&t.emit("playing",{viewer_time:o}))}})},qG=zG,VG=["viewstart","ended","loadstart","pause","play","playing","ratechange","waiting","adplay","adpause","adended","aderror","adplaying","adrequest","adresponse","adbreakstart","adbreakend","adfirstquartile","admidpoint","adthirdquartile","rebufferstart","rebufferend","seeked","error","hb","requestcompleted","requestfailed","requestcanceled","renditionchange"],WG=function(e){CQ(n,e);var t=PQ(n);function n(r,i,o){nt(this,n);var a;a=t.call(this),Q(re(a),"DOM_CONTENT_LOADED_EVENT_END",void 0),Q(re(a),"NAVIGATION_START",void 0),Q(re(a),"_destroyed",void 0),Q(re(a),"_heartBeatTimeout",void 0),Q(re(a),"adTracker",void 0),Q(re(a),"dashjs",void 0),Q(re(a),"data",void 0),Q(re(a),"disablePlayheadRebufferTracking",void 0),Q(re(a),"disableRebufferTracking",void 0),Q(re(a),"errorTracker",void 0),Q(re(a),"errorTranslator",void 0),Q(re(a),"getAdData",void 0),Q(re(a),"getPlayheadTime",void 0),Q(re(a),"getStateData",void 0),Q(re(a),"hlsjs",void 0),Q(re(a),"id",void 0),Q(re(a),"longResumeTracker",void 0),Q(re(a),"minimumRebufferDuration",void 0),Q(re(a),"mux",void 0),Q(re(a),"oldEmit",void 0),Q(re(a),"playbackEventDispatcher",void 0),Q(re(a),"playbackHeartbeat",void 0),Q(re(a),"playbackHeartbeatTime",void 0),Q(re(a),"playheadTime",void 0),Q(re(a),"seekingTracker",void 0),Q(re(a),"sustainedRebufferThreshold",void 0),Q(re(a),"watchTimeTracker",void 0),Q(re(a),"currentFragmentPDT",void 0),Q(re(a),"currentFragmentStart",void 0),a.DOM_CONTENT_LOADED_EVENT_END=Cf.domContentLoadedEventEnd(),a.NAVIGATION_START=Cf.navigationStart();var s={debug:!1,minimumRebufferDuration:250,sustainedRebufferThreshold:1e3,playbackHeartbeatTime:25,beaconDomain:"litix.io",sampleRate:1,disableCookies:!1,respectDoNotTrack:!1,disableRebufferTracking:!1,disablePlayheadRebufferTracking:!1,errorTranslator:function(d){return d}};a.mux=r,a.id=i,o!=null&&o.beaconDomain&&a.mux.log.warn("The `beaconDomain` setting has been deprecated in favor of `beaconCollectionDomain`. Please change your integration to use `beaconCollectionDomain` instead of `beaconDomain`."),o=Object.assign(s,o),o.data=o.data||{},o.data.property_key&&(o.data.env_key=o.data.property_key,delete o.data.property_key),Ne.setLevel(o.debug?"debug":"warn"),a.getPlayheadTime=o.getPlayheadTime,a.getStateData=o.getStateData||function(){return{}},a.getAdData=o.getAdData||function(){},a.minimumRebufferDuration=o.minimumRebufferDuration,a.sustainedRebufferThreshold=o.sustainedRebufferThreshold,a.playbackHeartbeatTime=o.playbackHeartbeatTime,a.disableRebufferTracking=o.disableRebufferTracking,a.disableRebufferTracking&&a.mux.log.warn("Disabling rebuffer tracking. This should only be used in specific circumstances as a last resort when your player is known to unreliably track rebuffering."),a.disablePlayheadRebufferTracking=o.disablePlayheadRebufferTracking,a.errorTranslator=o.errorTranslator,a.playbackEventDispatcher=new jG(r,o.data.env_key,o),a.data={player_instance_id:Pu(),mux_sample_rate:o.sampleRate,beacon_domain:o.beaconCollectionDomain||o.beaconDomain},a.data.view_sequence_number=1,a.data.player_sequence_number=1,a.oldEmit=a.emit,a.emit=function(d,m){m=Object.assign({viewer_time:this.mux.utils.now()},m),this.oldEmit(d,m)};var u=(function(){typeof this.data.view_start>"u"&&(this.data.view_start=this.mux.utils.now(),this.emit("viewstart"))}).bind(re(a));a.on("viewinit",function(d,m){this._resetVideoData(),this._resetViewData(),this._resetErrorData(),this._updateStateData(),Object.assign(this.data,m),this._initializeViewData(),this.one("play",u),this.one("adbreakstart",u)});var l=(function(d){this.emit("viewend"),this.send("viewend"),this.emit("viewinit",d)}).bind(re(a));if(a.on("videochange",function(d,m){l(m)}),a.on("programchange",function(d,m){this.data.player_is_paused&&this.mux.log.warn("The `programchange` event is intended to be used when the content changes mid playback without the video source changing, however the video is not currently playing. If the video source is changing please use the videochange event otherwise you will lose startup time information."),l(Object.assign(m,{view_program_changed:!0})),u(),this.emit("play"),this.emit("playing")}),a.on("fragmentchange",function(d,m){this.currentFragmentPDT=m.currentFragmentPDT,this.currentFragmentStart=m.currentFragmentStart}),a.on("destroy",a.destroy),typeof window<"u"&&typeof window.addEventListener=="function"&&typeof window.removeEventListener=="function"){var c=function(){var d=typeof a.data.view_start<"u";a.mux.WINDOW_HIDDEN=document.visibilityState==="hidden",d&&a.mux.WINDOW_HIDDEN&&(a.data.player_is_paused||a.emit("hb"))};window.addEventListener("visibilitychange",c,!1);var f=function(d){d.persisted||a.destroy()};window.addEventListener("pagehide",f,!1),a.on("destroy",function(){window.removeEventListener("visibilitychange",c),window.removeEventListener("pagehide",f)})}a.on("playerready",function(d,m){Object.assign(this.data,m)}),VG.forEach(function(d){a.on(d,function(m,_){d.indexOf("ad")!==0&&this._updateStateData(),Object.assign(this.data,_),this._sanitizeData()}),a.on("after"+d,function(){(d!=="error"||this.errorTracker.viewErrored)&&this.send(d)})}),a.on("viewend",function(d,m){Object.assign(a.data,m)});var p=function(d){var m=this.mux.utils.now();this.data.player_init_time&&(this.data.player_startup_time=m-this.data.player_init_time),!this.mux.PLAYER_TRACKED&&this.NAVIGATION_START&&(this.mux.PLAYER_TRACKED=!0,(this.data.player_init_time||this.DOM_CONTENT_LOADED_EVENT_END)&&(this.data.page_load_time=Math.min(this.data.player_init_time||1/0,this.DOM_CONTENT_LOADED_EVENT_END||1/0)-this.NAVIGATION_START)),this.send("playerready"),delete this.data.player_startup_time,delete this.data.page_load_time};return a.one("playerready",p),a.longResumeTracker=new qG(re(a)),a.errorTracker=new YQ(re(a)),new _G(re(a)),a.seekingTracker=new dG(re(a)),a.playheadTime=new tG(re(a)),a.playbackHeartbeat=new QQ(re(a)),new lG(re(a)),a.watchTimeTracker=new KQ(re(a)),new ZQ(re(a)),a.adTracker=new vG(re(a)),new oG(re(a)),new rG(re(a)),new sG(re(a)),new gG(re(a)),new BG(re(a)),o.hlsjs&&a.addHLSJS(o),o.dashjs&&a.addDashJS(o),a.emit("viewinit",o.data),a}return ur(n,[{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,typeof this.data.view_start<"u"&&(this.emit("viewend"),this.send("viewend")),this.playbackEventDispatcher.destroy(),this.removeHLSJS(),this.removeDashJS(),window.clearTimeout(this._heartBeatTimeout))}},{key:"send",value:function(r){if(this.data.view_id){var i=Object.assign({},this.data),o=["player_program_time","player_manifest_newest_program_time","player_live_edge_program_time","player_program_time","video_holdback","video_part_holdback","video_target_duration","video_part_target_duration"];if(i.video_source_is_live===void 0&&(i.player_source_duration===1/0||i.video_source_duration===1/0?i.video_source_is_live=!0:(i.player_source_duration>0||i.video_source_duration>0)&&(i.video_source_is_live=!1)),i.video_source_is_live||o.forEach(function(l){i[l]=void 0}),i.video_source_url=i.video_source_url||i.player_source_url,i.video_source_url){var a=Zi(Du(i.video_source_url),2),s=a[0],u=a[1];i.video_source_domain=u,i.video_source_hostname=s}delete i.ad_request_id,this.playbackEventDispatcher.send(r,i),this.data.view_sequence_number++,this.data.player_sequence_number++,this._restartHeartBeat(),r==="viewend"&&delete this.data.view_id}}},{key:"_updateStateData",value:function(){Object.assign(this.data,this.getStateData()),this.playheadTime._updatePlayheadTime(),this._sanitizeData()}},{key:"_sanitizeData",value:function(){var r=this,i=["player_width","player_height","video_source_width","video_source_height","player_playhead_time","video_source_bitrate"];i.forEach(function(a){var s=parseInt(r.data[a],10);r.data[a]=isNaN(s)?void 0:s});var o=["player_source_url","video_source_url"];o.forEach(function(a){if(r.data[a]){var s=r.data[a].toLowerCase();(s.indexOf("data:")===0||s.indexOf("blob:")===0)&&(r.data[a]="MSE style URL")}})}},{key:"_resetVideoData",value:function(){var r=this;Object.keys(this.data).forEach(function(i){i.indexOf("video_")===0&&delete r.data[i]})}},{key:"_resetViewData",value:function(){var r=this;Object.keys(this.data).forEach(function(i){i.indexOf("view_")===0&&delete r.data[i]}),this.data.view_sequence_number=1}},{key:"_resetErrorData",value:function(){delete this.data.player_error_code,delete this.data.player_error_message,delete this.data.player_error_context,delete this.data.player_error_severity,delete this.data.player_error_business_exception}},{key:"_initializeViewData",value:function(){var r=this,i=this.data.view_id=Pu(),o=function(){i===r.data.view_id&&qe(r.data,"player_view_count",1)};this.data.player_is_paused?this.one("play",o):o()}},{key:"_restartHeartBeat",value:function(){var r=this;window.clearTimeout(this._heartBeatTimeout),this.errorTracker.viewErrored||(this._heartBeatTimeout=window.setTimeout(function(){r.data.player_is_paused||r.emit("hb")},1e4))}},{key:"addHLSJS",value:function(r){if(!r.hlsjs){this.mux.log.warn("You must pass a valid hlsjs instance in order to track it.");return}if(this.hlsjs){this.mux.log.warn("An instance of HLS.js is already being monitored for this player.");return}this.hlsjs=r.hlsjs,$Q(this.mux,this.id,r.hlsjs,{},r.Hls||window.Hls)}},{key:"removeHLSJS",value:function(){this.hlsjs&&(FQ(this.hlsjs),this.hlsjs=void 0)}},{key:"addDashJS",value:function(r){if(!r.dashjs){this.mux.log.warn("You must pass a valid dashjs instance in order to track it.");return}if(this.dashjs){this.mux.log.warn("An instance of Dash.js is already being monitored for this player.");return}this.dashjs=r.dashjs,HQ(this.mux,this.id,r.dashjs)}},{key:"removeDashJS",value:function(){this.dashjs&&(zQ(this.dashjs),this.dashjs=void 0)}}]),n}(VQ),QG=WG;Yd();var us=Ht(_Q());function GG(){return us.default&&!!(us.default.fullscreenElement||us.default.webkitFullscreenElement||us.default.mozFullScreenElement||us.default.msFullscreenElement)}var YG=["loadstart","pause","play","playing","seeking","seeked","timeupdate","ratechange","stalled","waiting","error","ended"],XG={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED"};function KG(e,t,n){var r=Zi(Rm(t),3),i=r[0],o=r[1],a=r[2],s=e.log,u=e.utils.getComputedStyle,l=e.utils.secondsToMs,c={automaticErrorTracking:!0};if(i){if(a!=="video"&&a!=="audio")return s.error("The element of `"+o+"` was not a media element.")}else return s.error("No element was found with the `"+o+"` query selector.");i.mux&&(i.mux.destroy(),delete i.mux,s.warn("Already monitoring this video element, replacing existing event listeners")),n=Object.assign(c,n),n.data=Object.assign({player_software:"HTML5 Video Element",player_mux_plugin_name:"VideoElementMonitor",player_mux_plugin_version:e.VERSION},n.data),n.getPlayheadTime=function(){return l(i.currentTime)},n.getStateData=function(){var p,d=this.hlsjs&&this.hlsjs.url,m=this.dashjs&&mt(this.dashjs.getSource==="function")&&this.dashjs.getSource(),_={player_is_paused:i.paused,player_playhead_time:l(i.currentTime),player_width:parseInt(u(i,"width")),player_height:parseInt(u(i,"height")),player_autoplay_on:i.autoplay,player_preload_on:i.preload,player_language_code:i.lang,player_is_fullscreen:GG(),video_poster_url:i.poster,video_source_url:d||m||i.currentSrc,video_source_duration:l(i.duration),video_source_height:i.videoHeight,video_source_width:i.videoWidth,view_dropped_frame_count:i==null||(p=i.getVideoPlaybackQuality)===null||p===void 0?void 0:p.call(i).droppedVideoFrames},b=n.getPlayheadTime();if(i.getStartDate&&b>0){var g=i.getStartDate();if(g&&typeof g.getTime=="function"&&g.getTime()){var y=g.getTime();if(_.player_program_time=y+b,i.seekable.length>0){var v=y+i.seekable.end(i.seekable.length-1);_.player_live_edge_program_time=v}}}return _},i.mux=i.mux||{},i.mux.deleted=!1,i.mux.emit=function(p,d){e.emit(o,p,d)};var f=function(){s.error("The monitor for this video element has already been destroyed.")};i.mux.destroy=function(){Object.keys(i.mux.listeners).forEach(function(p){i.removeEventListener(p,i.mux.listeners[p],!1)}),delete i.mux.listeners,i.mux.destroy=f,i.mux.swapElement=f,i.mux.emit=f,i.mux.addHLSJS=f,i.mux.addDashJS=f,i.mux.removeHLSJS=f,i.mux.removeDashJS=f,i.mux.deleted=!0,e.emit(o,"destroy")},i.mux.swapElement=function(p){var d=Zi(Rm(p),3),m=d[0],_=d[1],b=d[2];if(m){if(b!=="video"&&b!=="audio")return e.log.error("The element of `"+_+"` was not a media element.")}else return e.log.error("No element was found with the `"+_+"` query selector.");m.muxId=i.muxId,delete i.muxId,m.mux=m.mux||{},m.mux.listeners=Object.assign({},i.mux.listeners),delete i.mux.listeners,Object.keys(m.mux.listeners).forEach(function(g){i.removeEventListener(g,m.mux.listeners[g],!1),m.addEventListener(g,m.mux.listeners[g],!1)}),m.mux.swapElement=i.mux.swapElement,m.mux.destroy=i.mux.destroy,delete i.mux,i=m},i.mux.addHLSJS=function(p){e.addHLSJS(o,p)},i.mux.addDashJS=function(p){e.addDashJS(o,p)},i.mux.removeHLSJS=function(){e.removeHLSJS(o)},i.mux.removeDashJS=function(){e.removeDashJS(o)},e.init(o,n),e.emit(o,"playerready"),i.paused||(e.emit(o,"play"),i.readyState>2&&e.emit(o,"playing")),i.mux.listeners={},YG.forEach(function(p){p==="error"&&!n.automaticErrorTracking||(i.mux.listeners[p]=function(){var d={};if(p==="error"){if(!i.error||i.error.code===1)return;d.player_error_code=i.error.code,d.player_error_message=XG[i.error.code]||i.error.message}e.emit(o,p,d)},i.addEventListener(p,i.mux.listeners[p],!1))})}function JG(e,t,n,r){var i=r;if(e&&typeof e[t]=="function")try{i=e[t].apply(e,n)}catch(o){Ne.info("safeCall error",o)}return i}var js=Ht(sr()),Io;js.default&&js.default.WeakMap&&(Io=new WeakMap);function ZG(e,t){if(!e||!t||!js.default||typeof js.default.getComputedStyle!="function")return"";var n;return Io&&Io.has(e)&&(n=Io.get(e)),n||(n=js.default.getComputedStyle(e,null),Io&&Io.set(e,n)),n.getPropertyValue(t)}function eY(e){return Math.floor(e*1e3)}var Ei={TARGET_DURATION:"#EXT-X-TARGETDURATION",PART_INF:"#EXT-X-PART-INF",SERVER_CONTROL:"#EXT-X-SERVER-CONTROL",INF:"#EXTINF",PROGRAM_DATE_TIME:"#EXT-X-PROGRAM-DATE-TIME",VERSION:"#EXT-X-VERSION",SESSION_DATA:"#EXT-X-SESSION-DATA"},Xd=function(e){return this.buffer="",this.manifest={segments:[],serverControl:{},sessionData:{}},this.currentUri={},this.process(e),this.manifest};Xd.prototype.process=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf(`
`);t>-1;t=this.buffer.indexOf(`
`))this.processLine(this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)};Xd.prototype.processLine=function(e){var t=e.indexOf(":"),n=iY(e,t),r=n[0],i=n.length===2?d0(n[1]):void 0;if(r[0]!=="#")this.currentUri.uri=r,this.manifest.segments.push(this.currentUri),this.manifest.targetDuration&&!("duration"in this.currentUri)&&(this.currentUri.duration=this.manifest.targetDuration),this.currentUri={};else switch(r){case Ei.TARGET_DURATION:{if(!isFinite(i)||i<0)return;this.manifest.targetDuration=i,this.setHoldBack();break}case Ei.PART_INF:{mh(this.manifest,n),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),this.setHoldBack();break}case Ei.SERVER_CONTROL:{mh(this.manifest,n),this.setHoldBack();break}case Ei.INF:{i===0?this.currentUri.duration=.01:i>0&&(this.currentUri.duration=i);break}case Ei.PROGRAM_DATE_TIME:{var o=i,a=new Date(o);this.manifest.dateTimeString||(this.manifest.dateTimeString=o,this.manifest.dateTimeObject=a),this.currentUri.dateTimeString=o,this.currentUri.dateTimeObject=a;break}case Ei.VERSION:{mh(this.manifest,n);break}case Ei.SESSION_DATA:{var s=oY(n[1]),u=QA(s);Object.assign(this.manifest.sessionData,u)}}};Xd.prototype.setHoldBack=function(){var e=this.manifest,t=e.serverControl,n=e.targetDuration,r=e.partTargetDuration;if(t){var i="holdBack",o="partHoldBack",a=n&&n*3,s=r&&r*2;n&&!t.hasOwnProperty(i)&&(t[i]=a),a&&t[i]<a&&(t[i]=a),r&&!t.hasOwnProperty(o)&&(t[o]=r*3),r&&t[o]<s&&(t[o]=s)}};var mh=function(e,t){var n=rR(t[0].replace("#EXT-X-","")),r;rY(t[1])?(r={},r=Object.assign(nY(t[1]),r)):r=d0(t[1]),e[n]=r},rR=function(e){return e.toLowerCase().replace(/-(\w)/g,function(t){return t[1].toUpperCase()})},d0=function(e){if(e.toLowerCase()==="yes"||e.toLowerCase()==="no")return e.toLowerCase()==="yes";var t=e.indexOf(":")!==-1?e:parseFloat(e);return isNaN(t)?e:t},tY=function(e){var t={},n=e.split("=");if(n.length>1){var r=rR(n[0]);t[r]=d0(n[1])}return t},nY=function(e){for(var t=e.split(","),n={},r=0;t.length>r;r++){var i=t[r],o=tY(i);n=Object.assign(o,n)}return n},rY=function(e){return e.indexOf("=")>-1},iY=function(e,t){return t===-1?[e]:[e.substring(0,t),e.substring(t+1)]},oY=function(e){var t={};if(e){var n=e.search(","),r=e.slice(0,n),i=e.slice(n+1),o=[r,i];return o.forEach(function(a,s){for(var u=a.replace(/['"]+/g,"").split("="),l=0;l<u.length;l++)u[l]==="DATA-ID"&&(t["DATA-ID"]=u[1-l]),u[l]==="VALUE"&&(t.VALUE=u[1-l])}),{data:t}}},aY=Xd,sY={safeCall:JG,safeIncrement:qe,getComputedStyle:ZG,secondsToMs:eY,assign:Object.assign,headersStringToObject:f0,cdnHeadersToRequestId:Rf,extractHostnameAndDomain:Du,extractHostname:Rn,manifestParser:aY,generateShortID:VA,generateUUID:Pu,now:Ke.now},uY=sY,lY={PLAYER_READY:"playerready",VIEW_INIT:"viewinit",VIDEO_CHANGE:"videochange",PLAY:"play",PAUSE:"pause",PLAYING:"playing",TIME_UPDATE:"timeupdate",SEEKING:"seeking",SEEKED:"seeked",REBUFFER_START:"rebufferstart",REBUFFER_END:"rebufferend",ERROR:"error",ENDED:"ended",RENDITION_CHANGE:"renditionchange",ORIENTATION_CHANGE:"orientationchange",AD_REQUEST:"adrequest",AD_RESPONSE:"adresponse",AD_BREAK_START:"adbreakstart",AD_PLAY:"adplay",AD_PLAYING:"adplaying",AD_PAUSE:"adpause",AD_FIRST_QUARTILE:"adfirstquartile",AD_MID_POINT:"admidpoint",AD_THIRD_QUARTILE:"adthirdquartile",AD_ENDED:"adended",AD_BREAK_END:"adbreakend",AD_ERROR:"aderror",REQUEST_COMPLETED:"requestcompleted",REQUEST_FAILED:"requestfailed",REQUEST_CANCELLED:"requestcanceled"},cY=lY,fY="mux-embed",dY="5.2.0",pY="2.1",rn={},ri=function(e){var t=arguments;typeof e=="string"?ri.hasOwnProperty(e)?Fs.default.setTimeout(function(){t=Array.prototype.splice.call(t,1),ri[e].apply(null,t)},0):Ne.warn("`"+e+"` is an unknown task"):typeof e=="function"?Fs.default.setTimeout(function(){e(ri)},0):Ne.warn("`"+e+"` is invalid.")},hY={loaded:Ke.now(),NAME:fY,VERSION:dY,API_VERSION:pY,PLAYER_TRACKED:!1,monitor:function(e,t){return KG(ri,e,t)},destroyMonitor:function(e){var t=Zi(Rm(e),1),n=t[0];n&&n.mux&&typeof n.mux.destroy=="function"?n.mux.destroy():Ne.error("A video element monitor for `"+e+"` has not been initialized via `mux.monitor`.")},addHLSJS:function(e,t){var n=Oi(e);rn[n]?rn[n].addHLSJS(t):Ne.error("A monitor for `"+n+"` has not been initialized.")},addDashJS:function(e,t){var n=Oi(e);rn[n]?rn[n].addDashJS(t):Ne.error("A monitor for `"+n+"` has not been initialized.")},removeHLSJS:function(e){var t=Oi(e);rn[t]?rn[t].removeHLSJS():Ne.error("A monitor for `"+t+"` has not been initialized.")},removeDashJS:function(e){var t=Oi(e);rn[t]?rn[t].removeDashJS():Ne.error("A monitor for `"+t+"` has not been initialized.")},init:function(e,t){Pm()&&t&&t.respectDoNotTrack&&Ne.info("The browser's Do Not Track flag is enabled - Mux beaconing is disabled.");var n=Oi(e);rn[n]=new QG(ri,n,t)},emit:function(e,t,n){var r=Oi(e);rn[r]?(rn[r].emit(t,n),t==="destroy"&&delete rn[r]):Ne.error("A monitor for `"+r+"` has not been initialized.")},checkDoNotTrack:Pm,log:Ne,utils:uY,events:cY,WINDOW_HIDDEN:!1,WINDOW_UNLOADING:!1};Object.assign(ri,hY);typeof Fs.default<"u"&&typeof Fs.default.addEventListener=="function"&&Fs.default.addEventListener("pagehide",function(e){e.persisted||(ri.WINDOW_UNLOADING=!0)},!1);var FK=ri;/*!
* JavaScript Cookie v2.1.3
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/function jK(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var iR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ka,function(){return function(n,r,i){r.prototype.isToday=function(){var o="YYYY-MM-DD",a=i();return this.format(o)===a.format(o)}}})})(iR);var vY=iR.exports;const UK=ft(vY);var oR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ka,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(l,c,f,p){return o.fromToBase(l,c,f,p)}i.en.relativeTime=a,o.fromToBase=function(l,c,f,p,d){for(var m,_,b,g=f.$locale().relativeTime||a,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],v=y.length,h=0;h<v;h+=1){var w=y[h];w.d&&(m=p?i(l).diff(f,w.d,!0):f.diff(l,w.d,!0));var E=(n.rounding||Math.round)(Math.abs(m));if(b=m>0,E<=w.r||!w.r){E<=1&&h>0&&(w=y[h-1]);var S=g[w.l];d&&(E=d(""+E)),_=typeof S=="string"?S.replace("%d",E):S(E,c,w.l,b);break}}if(c)return _;var T=b?g.future:g.past;return typeof T=="function"?T(_):T.replace("%s",_)},o.to=function(l,c){return s(l,c,this,!0)},o.from=function(l,c){return s(l,c,this)};var u=function(l){return l.$u?i.utc():i()};o.toNow=function(l){return this.to(u(this),l)},o.fromNow=function(l){return this.from(u(this),l)}}})})(oR);var mY=oR.exports;const BK=ft(mY);var aR={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ka,function(){return function(n,r,i){i.updateLocale=function(o,a){var s=i.Ls[o];if(s)return(a?Object.keys(a):[]).forEach(function(u){s[u]=a[u]}),s}}})})(aR);var gY=aR.exports;const HK=ft(gY);var Lm={exports:{}},Le={},Mm={exports:{}},mo={};function sR(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function yY(e,t,n){}function _Y(e,t,n){}var wY=/javascript\s*\:/img;function bY(e,t){return wY.test(t)?"":t}mo.whiteList=sR();mo.getDefaultWhiteList=sR;mo.onAttr=yY;mo.onIgnoreAttr=_Y;mo.safeAttrValue=bY;var EY={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},ls=EY;function SY(e,t){e=ls.trimRight(e),e[e.length-1]!==";"&&(e+=";");var n=e.length,r=!1,i=0,o=0,a="";function s(){if(!r){var c=ls.trim(e.slice(i,o)),f=c.indexOf(":");if(f!==-1){var p=ls.trim(c.slice(0,f)),d=ls.trim(c.slice(f+1));if(p){var m=t(i,a.length,p,d,c);m&&(a+=m+"; ")}}}i=o+1}for(;o<n;o++){var u=e[o];if(u==="/"&&e[o+1]==="*"){var l=e.indexOf("*/",o+2);if(l===-1)break;o=l+1,i=o+1,r=!1}else u==="("?r=!0:u===")"?r=!1:u===";"?r||s():u===`
`&&s()}return ls.trim(a)}var TY=SY,Xl=mo,xY=TY;function Fb(e){return e==null}function OY(e){var t={};for(var n in e)t[n]=e[n];return t}function uR(e){e=OY(e||{}),e.whiteList=e.whiteList||Xl.whiteList,e.onAttr=e.onAttr||Xl.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Xl.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Xl.safeAttrValue,this.options=e}uR.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onAttr,o=n.onIgnoreAttr,a=n.safeAttrValue,s=xY(e,function(u,l,c,f,p){var d=r[c],m=!1;if(d===!0?m=d:typeof d=="function"?m=d(f):d instanceof RegExp&&(m=d.test(f)),m!==!0&&(m=!1),f=a(c,f),!!f){var _={position:l,sourcePosition:u,source:p,isWhite:m};if(m){var b=i(c,f,_);return Fb(b)?c+":"+f:b}else{var b=o(c,f,_);if(!Fb(b))return b}}});return s};var kY=uR;(function(e,t){var n=mo,r=kY;function i(a,s){var u=new r(s);return u.process(a)}t=e.exports=i,t.FilterCSS=r;for(var o in n)t[o]=n[o];typeof window<"u"&&(window.filterCSS=e.exports)})(Mm,Mm.exports);var p0=Mm.exports,h0={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}},CY=p0.FilterCSS,AY=p0.getDefaultWhiteList,Pf=h0;function lR(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var cR=new CY;function RY(e,t,n){}function PY(e,t,n){}function IY(e,t,n){}function DY(e,t,n){}function fR(e){return e.replace(MY,"&lt;").replace(NY,"&gt;")}function LY(e,t,n,r){if(n=gR(n),t==="href"||t==="src"){if(n=Pf.trim(n),n==="#")return"#";if(!(n.substr(0,7)==="http://"||n.substr(0,8)==="https://"||n.substr(0,7)==="mailto:"||n.substr(0,4)==="tel:"||n.substr(0,11)==="data:image/"||n.substr(0,6)==="ftp://"||n.substr(0,2)==="./"||n.substr(0,3)==="../"||n[0]==="#"||n[0]==="/"))return""}else if(t==="background"){if(Kl.lastIndex=0,Kl.test(n))return""}else if(t==="style"){if(jb.lastIndex=0,jb.test(n)||(Ub.lastIndex=0,Ub.test(n)&&(Kl.lastIndex=0,Kl.test(n))))return"";r!==!1&&(r=r||cR,n=r.process(n))}return n=yR(n),n}var MY=/</g,NY=/>/g,$Y=/"/g,FY=/&quot;/g,jY=/&#([a-zA-Z0-9]*);?/gim,UY=/&colon;?/gim,BY=/&newline;?/gim,Kl=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,jb=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Ub=/u\s*r\s*l\s*\(.*/gi;function dR(e){return e.replace($Y,"&quot;")}function pR(e){return e.replace(FY,'"')}function hR(e){return e.replace(jY,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function vR(e){return e.replace(UY,":").replace(BY," ")}function mR(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Pf.trim(t)}function gR(e){return e=pR(e),e=hR(e),e=vR(e),e=mR(e),e}function yR(e){return e=dR(e),e=fR(e),e}function HY(){return""}function zY(e,t){typeof t!="function"&&(t=function(){});var n=!Array.isArray(e);function r(a){return n?!0:Pf.indexOf(e,a)!==-1}var i=[],o=!1;return{onIgnoreTag:function(a,s,u){if(r(a))if(u.isClosing){var l="[/removed]",c=u.position+l.length;return i.push([o!==!1?o:u.position,c]),o=!1,l}else return o||(o=u.position),"[removed]";else return t(a,s,u)},remove:function(a){var s="",u=0;return Pf.forEach(i,function(l){s+=a.slice(u,l[0]),u=l[1]}),s+=a.slice(u),s}}}function qY(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("<!--",n);if(r===-1){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("-->",r);if(i===-1)break;n=i+3}return t}function VY(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}Le.whiteList=lR();Le.getDefaultWhiteList=lR;Le.onTag=RY;Le.onIgnoreTag=PY;Le.onTagAttr=IY;Le.onIgnoreTagAttr=DY;Le.safeAttrValue=LY;Le.escapeHtml=fR;Le.escapeQuote=dR;Le.unescapeQuote=pR;Le.escapeHtmlEntities=hR;Le.escapeDangerHtml5Entities=vR;Le.clearNonPrintableCharacter=mR;Le.friendlyAttrValue=gR;Le.escapeAttrValue=yR;Le.onIgnoreTagStripAll=HY;Le.StripTagBody=zY;Le.stripCommentTag=qY;Le.stripBlankChar=VY;Le.attributeWrapSign='"';Le.cssFilter=cR;Le.getDefaultCSSWhiteList=AY;var Kd={},Ur=h0;function WY(e){var t=Ur.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=Ur.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function QY(e){return e.slice(0,2)==="</"}function GY(e,t,n){var r="",i=0,o=!1,a=!1,s=0,u=e.length,l="",c="";e:for(s=0;s<u;s++){var f=e.charAt(s);if(o===!1){if(f==="<"){o=s;continue}}else if(a===!1){if(f==="<"){r+=n(e.slice(i,s)),o=s,i=s;continue}if(f===">"||s===u-1){r+=n(e.slice(i,o)),c=e.slice(o,s+1),l=WY(c),r+=t(o,r.length,l,c,QY(c)),i=s+1,o=!1;continue}if(f==='"'||f==="'")for(var p=1,d=e.charAt(s-p);d.trim()===""||d==="=";){if(d==="="){a=f;continue e}d=e.charAt(s-++p)}}else if(f===a){a=!1;continue}}return i<u&&(r+=n(e.substr(i))),r}var YY=/[^a-zA-Z0-9\\_:.-]/gim;function XY(e,t){var n=0,r=0,i=[],o=!1,a=e.length;function s(p,d){if(p=Ur.trim(p),p=p.replace(YY,"").toLowerCase(),!(p.length<1)){var m=t(p,d||"");m&&i.push(m)}}for(var u=0;u<a;u++){var l=e.charAt(u),c,f;if(o===!1&&l==="="){o=e.slice(n,u),n=u+1,r=e.charAt(n)==='"'||e.charAt(n)==="'"?n:JY(e,u+1);continue}if(o!==!1&&u===r){if(f=e.indexOf(l,u+1),f===-1)break;c=Ur.trim(e.slice(r+1,f)),s(o,c),o=!1,u=f,n=u+1;continue}if(/\s|\n|\t/.test(l))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(f=KY(e,u),f===-1){c=Ur.trim(e.slice(n,u)),s(c),o=!1,n=u+1;continue}else{u=f-1;continue}else if(f=ZY(e,u-1),f===-1){c=Ur.trim(e.slice(n,u)),c=Bb(c),s(o,c),o=!1,n=u+1;continue}else continue}return n<e.length&&(o===!1?s(e.slice(n)):s(o,Bb(Ur.trim(e.slice(n))))),Ur.trim(i.join(" "))}function KY(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="="?t:-1}}function JY(e,t){for(;t<e.length;t++){var n=e[t];if(n!==" ")return n==="'"||n==='"'?t:-1}}function ZY(e,t){for(;t>0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function eX(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Bb(e){return eX(e)?e.substr(1,e.length-2):e}Kd.parseTag=GY;Kd.parseAttr=XY;var tX=p0.FilterCSS,on=Le,_R=Kd,nX=_R.parseTag,rX=_R.parseAttr,Cc=h0;function Jl(e){return e==null}function iX(e){var t=Cc.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Cc.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Cc.trim(e.slice(0,-1))),{html:e,closing:n}}function oX(e){var t={};for(var n in e)t[n]=e[n];return t}function aX(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function wR(e){e=oX(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=on.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=aX(e.whiteList||e.allowList):e.whiteList=on.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":on.attributeWrapSign,e.onTag=e.onTag||on.onTag,e.onTagAttr=e.onTagAttr||on.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||on.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||on.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||on.safeAttrValue,e.escapeHtml=e.escapeHtml||on.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new tX(e.css))}wR.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,o=n.onIgnoreTag,a=n.onTagAttr,s=n.onIgnoreTagAttr,u=n.safeAttrValue,l=n.escapeHtml,c=t.attributeWrapSign,f=t.cssFilter;n.stripBlankChar&&(e=on.stripBlankChar(e)),n.allowCommentTag||(e=on.stripCommentTag(e));var p=!1;n.stripIgnoreTagBody&&(p=on.StripTagBody(n.stripIgnoreTagBody,o),o=p.onIgnoreTag);var d=nX(e,function(m,_,b,g,y){var v={sourcePosition:m,position:_,isClosing:y,isWhite:Object.prototype.hasOwnProperty.call(r,b)},h=i(b,g,v);if(!Jl(h))return h;if(v.isWhite){if(v.isClosing)return"</"+b+">";var w=iX(g),E=r[b],S=rX(w.html,function(T,O){var x=Cc.indexOf(E,T)!==-1,D=a(b,T,O,x);return Jl(D)?x?(O=u(b,T,O,f),O?T+"="+c+O+c:T):(D=s(b,T,O,x),Jl(D)?void 0:D):D});return g="<"+b,S&&(g+=" "+S),w.closing&&(g+=" /"),g+=">",g}else return h=o(b,g,v),Jl(h)?l(g):h},l);return p&&(d=p.remove(d)),d};var sX=wR;(function(e,t){var n=Le,r=Kd,i=sX;function o(s,u){var l=new i(u);return l.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var u in r)t[u]=r[u]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)})(Lm,Lm.exports);var uX=Lm.exports;const zK=ft(uX);(function(e,t){(function(n,r){r()})(ka,function(){function n(i){var o=!0,a=!1,s=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(w){return!!(w&&w!==document&&w.nodeName!=="HTML"&&w.nodeName!=="BODY"&&"classList"in w&&"contains"in w.classList)}function c(w){var E=w.type,S=w.tagName;return!!(S==="INPUT"&&u[E]&&!w.readOnly||S==="TEXTAREA"&&!w.readOnly||w.isContentEditable)}function f(w){w.classList.contains("focus-visible")||(w.classList.add("focus-visible"),w.setAttribute("data-focus-visible-added",""))}function p(w){w.hasAttribute("data-focus-visible-added")&&(w.classList.remove("focus-visible"),w.removeAttribute("data-focus-visible-added"))}function d(w){w.metaKey||w.altKey||w.ctrlKey||(l(i.activeElement)&&f(i.activeElement),o=!0)}function m(w){o=!1}function _(w){l(w.target)&&(o||c(w.target))&&f(w.target)}function b(w){l(w.target)&&(w.target.classList.contains("focus-visible")||w.target.hasAttribute("data-focus-visible-added"))&&(a=!0,window.clearTimeout(s),s=window.setTimeout(function(){a=!1},100),p(w.target))}function g(w){document.visibilityState==="hidden"&&(a&&(o=!0),y())}function y(){document.addEventListener("mousemove",h),document.addEventListener("mousedown",h),document.addEventListener("mouseup",h),document.addEventListener("pointermove",h),document.addEventListener("pointerdown",h),document.addEventListener("pointerup",h),document.addEventListener("touchmove",h),document.addEventListener("touchstart",h),document.addEventListener("touchend",h)}function v(){document.removeEventListener("mousemove",h),document.removeEventListener("mousedown",h),document.removeEventListener("mouseup",h),document.removeEventListener("pointermove",h),document.removeEventListener("pointerdown",h),document.removeEventListener("pointerup",h),document.removeEventListener("touchmove",h),document.removeEventListener("touchstart",h),document.removeEventListener("touchend",h)}function h(w){w.target.nodeName&&w.target.nodeName.toLowerCase()==="html"||(o=!1,v())}document.addEventListener("keydown",d,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",g,!0),y(),i.addEventListener("focus",_,!0),i.addEventListener("blur",b,!0),i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&i.host?i.host.setAttribute("data-js-focus-visible",""):i.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window<"u"&&typeof document<"u"){window.applyFocusVisiblePolyfill=n;var r;try{r=new CustomEvent("focus-visible-polyfill-ready")}catch{r=document.createEvent("CustomEvent"),r.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(r)}typeof document<"u"&&n(document)})})();(function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(v){try{return v.defaultView&&v.defaultView.frameElement||null}catch{return null}}var t=function(v){for(var h=v,w=e(h);w;)h=w.ownerDocument,w=e(h);return h}(window.document),n=[],r=null,i=null;function o(v){this.time=v.time,this.target=v.target,this.rootBounds=m(v.rootBounds),this.boundingClientRect=m(v.boundingClientRect),this.intersectionRect=m(v.intersectionRect||d()),this.isIntersecting=!!v.intersectionRect;var h=this.boundingClientRect,w=h.width*h.height,E=this.intersectionRect,S=E.width*E.height;w?this.intersectionRatio=Number((S/w).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(v,h){var w=h||{};if(typeof v!="function")throw new Error("callback must be a function");if(w.root&&w.root.nodeType!=1&&w.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=v,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(w.rootMargin),this.thresholds=this._initThresholds(w.threshold),this.root=w.root||null,this.rootMargin=this._rootMarginValues.map(function(E){return E.value+E.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(v,h){!v||!h?i=d():i=_(v,h),n.forEach(function(w){w._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,i=null},a.prototype.observe=function(v){var h=this._observationTargets.some(function(w){return w.element==v});if(!h){if(!(v&&v.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:v,entry:null}),this._monitorIntersections(v.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(v){this._observationTargets=this._observationTargets.filter(function(h){return h.element!=v}),this._unmonitorIntersections(v.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var v=this._queuedEntries.slice();return this._queuedEntries=[],v},a.prototype._initThresholds=function(v){var h=v||[0];return Array.isArray(h)||(h=[h]),h.sort().filter(function(w,E,S){if(typeof w!="number"||isNaN(w)||w<0||w>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return w!==S[E-1]})},a.prototype._parseRootMargin=function(v){var h=v||"0px",w=h.split(/\s+/).map(function(E){var S=/^(-?\d*\.?\d+)(px|%)$/.exec(E);if(!S)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(S[1]),unit:S[2]}});return w[1]=w[1]||w[0],w[2]=w[2]||w[0],w[3]=w[3]||w[1],w},a.prototype._monitorIntersections=function(v){var h=v.defaultView;if(h&&this._monitoringDocuments.indexOf(v)==-1){var w=this._checkForIntersections,E=null,S=null;this.POLL_INTERVAL?E=h.setInterval(w,this.POLL_INTERVAL):(l(h,"resize",w,!0),l(v,"scroll",w,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in h&&(S=new h.MutationObserver(w),S.observe(v,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(v),this._monitoringUnsubscribes.push(function(){var x=v.defaultView;x&&(E&&x.clearInterval(E),c(x,"resize",w,!0)),c(v,"scroll",w,!0),S&&S.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(v!=T){var O=e(v);O&&this._monitorIntersections(O.ownerDocument)}}},a.prototype._unmonitorIntersections=function(v){var h=this._monitoringDocuments.indexOf(v);if(h!=-1){var w=this.root&&(this.root.ownerDocument||this.root)||t,E=this._observationTargets.some(function(O){var x=O.element.ownerDocument;if(x==v)return!0;for(;x&&x!=w;){var D=e(x);if(x=D&&D.ownerDocument,x==v)return!0}return!1});if(!E){var S=this._monitoringUnsubscribes[h];if(this._monitoringDocuments.splice(h,1),this._monitoringUnsubscribes.splice(h,1),S(),v!=w){var T=e(v);T&&this._unmonitorIntersections(T.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var v=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var h=0;h<v.length;h++)v[h]()},a.prototype._checkForIntersections=function(){if(!(!this.root&&r&&!i)){var v=this._rootIsInDom(),h=v?this._getRootRect():d();this._observationTargets.forEach(function(w){var E=w.element,S=p(E),T=this._rootContainsTarget(E),O=w.entry,x=v&&T&&this._computeTargetAndRootIntersection(E,S,h),D=null;this._rootContainsTarget(E)?(!r||this.root)&&(D=h):D=d();var V=w.entry=new o({time:s(),target:E,boundingClientRect:S,rootBounds:D,intersectionRect:x});O?v&&T?this._hasCrossedThreshold(O,V)&&this._queuedEntries.push(V):O&&O.isIntersecting&&this._queuedEntries.push(V):this._queuedEntries.push(V)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(v,h,w){if(window.getComputedStyle(v).display!="none"){for(var E=h,S=g(v),T=!1;!T&&S;){var O=null,x=S.nodeType==1?window.getComputedStyle(S):{};if(x.display=="none")return null;if(S==this.root||S.nodeType==9)if(T=!0,S==this.root||S==t)r&&!this.root?!i||i.width==0&&i.height==0?(S=null,O=null,E=null):O=i:O=w;else{var D=g(S),V=D&&p(D),B=D&&this._computeTargetAndRootIntersection(D,V,w);V&&B?(S=D,O=_(V,B)):(S=null,E=null)}else{var F=S.ownerDocument;S!=F.body&&S!=F.documentElement&&x.overflow!="visible"&&(O=p(S))}if(O&&(E=f(O,E)),!E)break;S=S&&g(S)}return E}},a.prototype._getRootRect=function(){var v;if(this.root&&!y(this.root))v=p(this.root);else{var h=y(this.root)?this.root:t,w=h.documentElement,E=h.body;v={top:0,left:0,right:w.clientWidth||E.clientWidth,width:w.clientWidth||E.clientWidth,bottom:w.clientHeight||E.clientHeight,height:w.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(v)},a.prototype._expandRectByRootMargin=function(v){var h=this._rootMarginValues.map(function(E,S){return E.unit=="px"?E.value:E.value*(S%2?v.width:v.height)/100}),w={top:v.top-h[0],right:v.right+h[1],bottom:v.bottom+h[2],left:v.left-h[3]};return w.width=w.right-w.left,w.height=w.bottom-w.top,w},a.prototype._hasCrossedThreshold=function(v,h){var w=v&&v.isIntersecting?v.intersectionRatio||0:-1,E=h.isIntersecting?h.intersectionRatio||0:-1;if(w!==E)for(var S=0;S<this.thresholds.length;S++){var T=this.thresholds[S];if(T==w||T==E||T<w!=T<E)return!0}},a.prototype._rootIsInDom=function(){return!this.root||b(t,this.root)},a.prototype._rootContainsTarget=function(v){var h=this.root&&(this.root.ownerDocument||this.root)||t;return b(h,v)&&(!this.root||h==v.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var v=n.indexOf(this);v!=-1&&n.splice(v,1)};function s(){return window.performance&&performance.now&&performance.now()}function u(v,h){var w=null;return function(){w||(w=setTimeout(function(){v(),w=null},h))}}function l(v,h,w,E){typeof v.addEventListener=="function"?v.addEventListener(h,w,E):typeof v.attachEvent=="function"&&v.attachEvent("on"+h,w)}function c(v,h,w,E){typeof v.removeEventListener=="function"?v.removeEventListener(h,w,E):typeof v.detachEvent=="function"&&v.detachEvent("on"+h,w)}function f(v,h){var w=Math.max(v.top,h.top),E=Math.min(v.bottom,h.bottom),S=Math.max(v.left,h.left),T=Math.min(v.right,h.right),O=T-S,x=E-w;return O>=0&&x>=0&&{top:w,bottom:E,left:S,right:T,width:O,height:x}||null}function p(v){var h;try{h=v.getBoundingClientRect()}catch{}return h?(h.width&&h.height||(h={top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.right-h.left,height:h.bottom-h.top}),h):d()}function d(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function m(v){return!v||"x"in v?v:{top:v.top,y:v.top,bottom:v.bottom,left:v.left,x:v.left,right:v.right,width:v.width,height:v.height}}function _(v,h){var w=h.top-v.top,E=h.left-v.left;return{top:w,left:E,height:h.height,width:h.width,bottom:w+h.height,right:E+h.width}}function b(v,h){for(var w=h;w;){if(w==v)return!0;w=g(w)}return!1}function g(v){var h=v.parentNode;return v.nodeType==9&&v!=t?e(v):(h&&h.assignedSlot&&(h=h.assignedSlot.parentNode),h&&h.nodeType==11&&h.host?h.host:h)}function y(v){return v&&v.nodeType===9}window.IntersectionObserver=a,window.IntersectionObserverEntry=o})();export{UK as $,RX as A,ke as B,CK as C,aK as D,mX as E,pX as F,bK as G,tK as H,MK as I,PK as J,fX as K,d3 as L,Kq as M,NK as N,$K as O,VX as P,eK as Q,LK as R,hK as S,yK as T,ZB as U,AK as V,jK as W,Lx as X,pK as Y,BK as Z,_f as _,SK as a,HK as a0,nK as a1,EK as a2,Rb as a3,zK as a4,YX as a5,QX as a6,WX as a7,XX as a8,xK as a9,ft as aA,qj as aB,be as aC,G as aD,rr as aE,Jq as aF,RK as aG,wX as aH,bd as aI,lt as aJ,cX as aK,wK as aL,gX as aM,zi as aN,vX as aO,dK as aP,vK as aQ,Ni as aR,Md as aa,SS as ab,IK as ac,DK as ad,JX as ae,yX as af,_X as ag,IL as ah,_5 as ai,KX as aj,OX as ak,bX as al,ZX as am,c8 as an,FK as ao,iK as ap,cK as aq,lK as ar,mK as as,oK as at,jE as au,gK as av,_K as aw,hX as ax,rK as ay,ka as az,ry as b,GX as c,We as d,SX as e,TX as f,$E as g,SH as h,$X as i,dX as j,TK as k,VH as l,uK as m,bf as n,by as o,kK as p,EX as q,N as r,OK as s,jd as t,l3 as u,xX as v,fK as w,XB as x,sK as y,v3 as z};