@crownpeak/dqm-react-component 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/DEVELOPMENT.md +36 -1
  3. package/EXAMPLES.md +187 -0
  4. package/QUICKSTART.md +7 -0
  5. package/README.md +75 -1
  6. package/dist/DQMSidebar.d.ts.map +1 -1
  7. package/dist/components/sidebar/CloseButton.d.ts +6 -0
  8. package/dist/components/sidebar/CloseButton.d.ts.map +1 -0
  9. package/dist/components/sidebar/SidebarContent.d.ts.map +1 -1
  10. package/dist/components/sidebar/SidebarFooter.d.ts.map +1 -1
  11. package/dist/components/sidebar/SidebarHeader.d.ts.map +1 -1
  12. package/dist/components/sidebar/SidebarSkeleton.d.ts.map +1 -1
  13. package/dist/components/sidebar/StyledDrawer.d.ts +6 -1
  14. package/dist/components/sidebar/StyledDrawer.d.ts.map +1 -1
  15. package/dist/components/sidebar/StyledFab.d.ts +4 -1
  16. package/dist/components/sidebar/StyledFab.d.ts.map +1 -1
  17. package/dist/dqm-widget.d.ts +107 -0
  18. package/dist/dqm-widget.esm.js +386 -0
  19. package/dist/dqm-widget.iife.js +132 -0
  20. package/dist/html-pages/DQMWidget.d.ts +36 -0
  21. package/dist/html-pages/DQMWidget.d.ts.map +1 -0
  22. package/dist/html-pages/index.d.ts +32 -0
  23. package/dist/html-pages/index.d.ts.map +1 -0
  24. package/dist/index.cjs +26 -26
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.ts +3 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.html +498 -0
  29. package/dist/index.js +4061 -3839
  30. package/dist/index.js.map +1 -1
  31. package/dist/types.d.ts +83 -0
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/utils/useDomPresence.d.ts +210 -0
  34. package/dist/utils/useDomPresence.d.ts.map +1 -0
  35. package/package.json +12 -3
package/dist/index.cjs CHANGED
@@ -1,18 +1,18 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Jn=require("react/jsx-runtime"),te=require("react"),S=require("@mui/material"),pt=require("@mui/icons-material"),nn=require("@mui/system"),Yf=require("@emotion/styled");require("@emotion/react");function fl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const io=fl(Jn),At=fl(te);function Kf(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 Xf(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 Qf=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Kf(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),dt="-ms-",ii="-moz-",ke="-webkit-",dl="comm",ja="rule",za="decl",Zf="@import",pl="@keyframes",Jf="@layer",ed=Math.abs,di=String.fromCharCode,td=Object.assign;function rd(e,t){return lt(e,0)^45?(((t<<2^lt(e,0))<<2^lt(e,1))<<2^lt(e,2))<<2^lt(e,3):0}function hl(e){return e.trim()}function nd(e,t){return(e=t.exec(e))?e[0]:e}function Oe(e,t,r){return e.replace(t,r)}function Sa(e,t){return e.indexOf(t)}function lt(e,t){return e.charCodeAt(t)|0}function ao(e,t,r){return e.slice(t,r)}function lr(e){return e.length}function Ha(e){return e.length}function Io(e,t){return t.push(e),e}function od(e,t){return e.map(t).join("")}var pi=1,Tn=1,ml=0,Ot=0,rt=0,kn="";function hi(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pi,column:Tn,length:a,return:""}}function Un(e,t){return td(hi("",null,null,"",null,null,0),e,{length:-e.length},t)}function id(){return rt}function ad(){return rt=Ot>0?lt(kn,--Ot):0,Tn--,rt===10&&(Tn=1,pi--),rt}function $t(){return rt=Ot<ml?lt(kn,Ot++):0,Tn++,rt===10&&(Tn=1,pi++),rt}function fr(){return lt(kn,Ot)}function Qo(){return Ot}function fo(e,t){return ao(kn,e,t)}function so(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 gl(e){return pi=Tn=1,ml=lr(kn=e),Ot=0,[]}function yl(e){return kn="",e}function Zo(e){return hl(fo(Ot-1,xa(e===91?e+2:e===40?e+1:e)))}function sd(e){for(;(rt=fr())&&rt<33;)$t();return so(e)>2||so(rt)>3?"":" "}function cd(e,t){for(;--t&&$t()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return fo(e,Qo()+(t<6&&fr()==32&&$t()==32))}function xa(e){for(;$t();)switch(rt){case e:return Ot;case 34:case 39:e!==34&&e!==39&&xa(rt);break;case 40:e===41&&xa(e);break;case 92:$t();break}return Ot}function ld(e,t){for(;$t()&&e+rt!==57;)if(e+rt===84&&fr()===47)break;return"/*"+fo(t,Ot-1)+"*"+di(e===47?e:$t())}function ud(e){for(;!so(fr());)$t();return fo(e,Ot)}function fd(e){return yl(Jo("",null,null,null,[""],e=gl(e),0,[0],e))}function Jo(e,t,r,n,o,i,a,s,c){for(var l=0,f=0,p=a,y=0,T=0,g=0,h=1,b=1,v=1,O=0,P="",k=o,d=i,E=n,x=P;b;)switch(g=O,O=$t()){case 40:if(g!=108&&lt(x,p-1)==58){Sa(x+=Oe(Zo(O),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Zo(O);break;case 9:case 10:case 13:case 32:x+=sd(g);break;case 92:x+=cd(Qo()-1,7);continue;case 47:switch(fr()){case 42:case 47:Io(dd(ld($t(),Qo()),t,r),c);break;default:x+="/"}break;case 123*h:s[l++]=lr(x)*v;case 125*h:case 59:case 0:switch(O){case 0:case 125:b=0;case 59+f:v==-1&&(x=Oe(x,/\f/g,"")),T>0&&lr(x)-p&&Io(T>32?Ss(x+";",n,r,p-1):Ss(Oe(x," ","")+";",n,r,p-2),c);break;case 59:x+=";";default:if(Io(E=vs(x,t,r,l,f,o,s,P,k=[],d=[],p),i),O===123)if(f===0)Jo(x,t,E,E,k,i,p,s,d);else switch(y===99&&lt(x,3)===110?100:y){case 100:case 108:case 109:case 115:Jo(e,E,E,n&&Io(vs(e,E,E,0,0,o,s,P,o,k=[],p),d),o,d,p,s,n?k:d);break;default:Jo(x,E,E,E,[""],d,0,s,d)}}l=f=T=0,h=v=1,P=x="",p=a;break;case 58:p=1+lr(x),T=g;default:if(h<1){if(O==123)--h;else if(O==125&&h++==0&&ad()==125)continue}switch(x+=di(O),O*h){case 38:v=f>0?1:(x+="\f",-1);break;case 44:s[l++]=(lr(x)-1)*v,v=1;break;case 64:fr()===45&&(x+=Zo($t())),y=fr(),f=p=lr(P=x+=ud(Qo())),O++;break;case 45:g===45&&lr(x)==2&&(h=0)}}return i}function vs(e,t,r,n,o,i,a,s,c,l,f){for(var p=o-1,y=o===0?i:[""],T=Ha(y),g=0,h=0,b=0;g<n;++g)for(var v=0,O=ao(e,p+1,p=ed(h=a[g])),P=e;v<T;++v)(P=hl(h>0?y[v]+" "+O:Oe(O,/&\f/g,y[v])))&&(c[b++]=P);return hi(e,t,r,o===0?ja:s,c,l,f)}function dd(e,t,r){return hi(e,t,r,dl,di(id()),ao(e,2,-2),0)}function Ss(e,t,r,n){return hi(e,t,r,za,ao(e,0,n),ao(e,n+1,-1),n)}function Sn(e,t){for(var r="",n=Ha(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function pd(e,t,r,n){switch(e.type){case Jf:if(e.children.length)break;case Zf:case za:return e.return=e.return||e.value;case dl:return"";case pl:return e.return=e.value+"{"+Sn(e.children,n)+"}";case ja:e.value=e.props.join(",")}return lr(r=Sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function hd(e){var t=Ha(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function md(e){return function(t){t.root||(t=t.return)&&e(t)}}function gd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var yd=function(t,r,n){for(var o=0,i=0;o=i,i=fr(),o===38&&i===12&&(r[n]=1),!so(i);)$t();return fo(t,Ot)},bd=function(t,r){var n=-1,o=44;do switch(so(o)){case 0:o===38&&fr()===12&&(r[n]=1),t[n]+=yd(Ot-1,r,n);break;case 2:t[n]+=Zo(o);break;case 4:if(o===44){t[++n]=fr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=di(o)}while(o=$t());return t},wd=function(t,r){return yl(bd(gl(t),r))},xs=new WeakMap,Ed=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xs.get(n))&&!o){xs.set(t,!0);for(var i=[],a=wd(r,i),s=n.props,c=0,l=0;c<a.length;c++)for(var f=0;f<s.length;f++,l++)t.props[l]=i[c]?a[c].replace(/&\f/g,s[f]):s[f]+" "+a[c]}}},vd=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function bl(e,t){switch(rd(e,t)){case 5103:return ke+"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 ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ke+e+ii+e+dt+e+e;case 6828:case 4268:return ke+e+dt+e+e;case 6165:return ke+e+dt+"flex-"+e+e;case 5187:return ke+e+Oe(e,/(\w+).+(:[^]+)/,ke+"box-$1$2"+dt+"flex-$1$2")+e;case 5443:return ke+e+dt+"flex-item-"+Oe(e,/flex-|-self/,"")+e;case 4675:return ke+e+dt+"flex-line-pack"+Oe(e,/align-content|flex-|-self/,"")+e;case 5548:return ke+e+dt+Oe(e,"shrink","negative")+e;case 5292:return ke+e+dt+Oe(e,"basis","preferred-size")+e;case 6060:return ke+"box-"+Oe(e,"-grow","")+ke+e+dt+Oe(e,"grow","positive")+e;case 4554:return ke+Oe(e,/([^-])(transform)/g,"$1"+ke+"$2")+e;case 6187:return Oe(Oe(Oe(e,/(zoom-|grab)/,ke+"$1"),/(image-set)/,ke+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,ke+"$1$`$1");case 4968:return Oe(Oe(e,/(.+:)(flex-)?(.*)/,ke+"box-pack:$3"+dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ke+e+e;case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,ke+"$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(lr(e)-1-t>6)switch(lt(e,t+1)){case 109:if(lt(e,t+4)!==45)break;case 102:return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ii+(lt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sa(e,"stretch")?bl(Oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(lt(e,t+1)!==115)break;case 6444:switch(lt(e,lr(e)-3-(~Sa(e,"!important")&&10))){case 107:return Oe(e,":",":"+ke)+e;case 101:return Oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(lt(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch(lt(e,t+11)){case 114:return ke+e+dt+Oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+dt+Oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+dt+Oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+dt+e+e}return e}var Sd=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case za:t.return=bl(t.value,t.length);break;case pl:return Sn([Un(t,{value:Oe(t.value,"@","@"+ke)})],o);case ja:if(t.length)return od(t.props,function(i){switch(nd(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sn([Un(t,{props:[Oe(i,/:(read-\w+)/,":"+ii+"$1")]})],o);case"::placeholder":return Sn([Un(t,{props:[Oe(i,/:(plac\w+)/,":"+ke+"input-$1")]}),Un(t,{props:[Oe(i,/:(plac\w+)/,":"+ii+"$1")]}),Un(t,{props:[Oe(i,/:(plac\w+)/,dt+"input-$1")]})],o)}return""})}},xd=[Sd],Td=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||xd,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)i[b[v]]=!0;s.push(h)});var c,l=[Ed,vd];{var f,p=[pd,md(function(h){f.insert(h)})],y=hd(l.concat(o,p)),T=function(b){return Sn(fd(b),y)};c=function(b,v,O,P){f=O,T(b?b+"{"+v.styles+"}":v.styles),P&&(g.inserted[v.name]=!0)}}var g={key:r,sheet:new Qf({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(s),g},Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var No={exports:{}},Ne={};var Ts;function _d(){if(Ts)return Ne;Ts=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(d){if(typeof d=="object"&&d!==null){var E=d.$$typeof;switch(E){case t:switch(d=d.type,d){case c:case l:case n:case i:case o:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case f:case g:case T:case a:return d;default:return E}}case r:return E}}}function k(d){return P(d)===l}return Ne.AsyncMode=c,Ne.ConcurrentMode=l,Ne.ContextConsumer=s,Ne.ContextProvider=a,Ne.Element=t,Ne.ForwardRef=f,Ne.Fragment=n,Ne.Lazy=g,Ne.Memo=T,Ne.Portal=r,Ne.Profiler=i,Ne.StrictMode=o,Ne.Suspense=p,Ne.isAsyncMode=function(d){return k(d)||P(d)===c},Ne.isConcurrentMode=k,Ne.isContextConsumer=function(d){return P(d)===s},Ne.isContextProvider=function(d){return P(d)===a},Ne.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},Ne.isForwardRef=function(d){return P(d)===f},Ne.isFragment=function(d){return P(d)===n},Ne.isLazy=function(d){return P(d)===g},Ne.isMemo=function(d){return P(d)===T},Ne.isPortal=function(d){return P(d)===r},Ne.isProfiler=function(d){return P(d)===i},Ne.isStrictMode=function(d){return P(d)===o},Ne.isSuspense=function(d){return P(d)===p},Ne.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===y||typeof d=="object"&&d!==null&&(d.$$typeof===g||d.$$typeof===T||d.$$typeof===a||d.$$typeof===s||d.$$typeof===f||d.$$typeof===b||d.$$typeof===v||d.$$typeof===O||d.$$typeof===h)},Ne.typeOf=P,Ne}var De={};var _s;function Cd(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===i||D===o||D===p||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===g||D.$$typeof===T||D.$$typeof===a||D.$$typeof===s||D.$$typeof===f||D.$$typeof===b||D.$$typeof===v||D.$$typeof===O||D.$$typeof===h)}function k(D){if(typeof D=="object"&&D!==null){var We=D.$$typeof;switch(We){case t:var Ke=D.type;switch(Ke){case c:case l:case n:case i:case o:case p:return Ke;default:var qe=Ke&&Ke.$$typeof;switch(qe){case s:case f:case g:case T:case a:return qe;default:return We}}case r:return We}}}var d=c,E=l,x=s,R=a,N=t,W=f,F=n,m=g,$=T,I=r,q=i,Z=o,fe=p,Ce=!1;function ut(D){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(D)||k(D)===c}function z(D){return k(D)===l}function H(D){return k(D)===s}function ce(D){return k(D)===a}function J(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ae(D){return k(D)===f}function ne(D){return k(D)===n}function de(D){return k(D)===g}function Q(D){return k(D)===T}function me(D){return k(D)===r}function Ee(D){return k(D)===i}function pe(D){return k(D)===o}function Re(D){return k(D)===p}De.AsyncMode=d,De.ConcurrentMode=E,De.ContextConsumer=x,De.ContextProvider=R,De.Element=N,De.ForwardRef=W,De.Fragment=F,De.Lazy=m,De.Memo=$,De.Portal=I,De.Profiler=q,De.StrictMode=Z,De.Suspense=fe,De.isAsyncMode=ut,De.isConcurrentMode=z,De.isContextConsumer=H,De.isContextProvider=ce,De.isElement=J,De.isForwardRef=ae,De.isFragment=ne,De.isLazy=de,De.isMemo=Q,De.isPortal=me,De.isProfiler=Ee,De.isStrictMode=pe,De.isSuspense=Re,De.isValidElementType=P,De.typeOf=k})()),De}var Cs;function Ad(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?No.exports=_d():No.exports=Cd()),No.exports}var Hi,As;function Rd(){if(As)return Hi;As=1;var e=Ad(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function T(g,h,b){if(typeof h!="string"){if(y){var v=p(h);v&&v!==y&&T(g,v,b)}var O=c(h);l&&(O=O.concat(l(h)));for(var P=a(g),k=a(h),d=0;d<O.length;++d){var E=O[d];if(!r[E]&&!(b&&b[E])&&!(k&&k[E])&&!(P&&P[E])){var x=f(h,E);try{s(g,E,x)}catch{}}}}return g}return Hi=T,Hi}Rd();var kd=!0;function Od(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var wl=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||kd===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Pd=function(t,r,n){wl(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Id(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Md={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,scale: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},Nd=/[A-Z]|^ms/g,Dd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,El=function(t){return t.charCodeAt(1)===45},Rs=function(t){return t!=null&&typeof t!="boolean"},qi=gd(function(e){return El(e)?e:e.replace(Nd,"-$&").toLowerCase()}),ks=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Dd,function(n,o,i){return ur={name:o,styles:i,next:ur},o})}return Md[t]!==1&&!El(t)&&typeof r=="number"&&r!==0?r+"px":r};function co(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return ur={name:o.name,styles:o.styles,next:ur},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ur={name:a.name,styles:a.styles,next:ur},a=a.next;var s=i.styles+";";return s}return $d(e,t,r)}case"function":{if(e!==void 0){var c=ur,l=r(e);return ur=c,co(e,t,l)}break}}var f=r;return f}function $d(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=co(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;Rs(s)&&(n+=qi(i)+":"+ks(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Rs(a[c])&&(n+=qi(i)+":"+ks(i,a[c])+";");else{var l=co(e,t,a);switch(i){case"animation":case"animationName":{n+=qi(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Os=/label:\s*([^\s;{]+)\s*(;|$)/g,ur;function vl(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";ur=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=co(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=co(r,t,e[s]),n){var c=i;o+=c[s]}Os.lastIndex=0;for(var l="",f;(f=Os.exec(o))!==null;)l+="-"+f[1];var p=Id(o)+l;return{name:p,styles:o,next:ur}}var Ld=function(t){return t()},Bd=At.useInsertionEffect?At.useInsertionEffect:!1,Fd=Bd||Ld,Sl=At.createContext(typeof HTMLElement<"u"?Td({key:"css"}):null);Sl.Provider;var Ud=function(t){return te.forwardRef(function(r,n){var o=te.useContext(Sl);return t(r,o,n)})},jd=At.createContext({}),mi={}.hasOwnProperty,Ta="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xl=function(t,r){var n={};for(var o in r)mi.call(r,o)&&(n[o]=r[o]);return n[Ta]=t,n},zd=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return wl(r,n,o),Fd(function(){return Pd(r,n,o)}),null},Hd=Ud(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ta],i=[n],a="";typeof e.className=="string"?a=Od(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=vl(i,void 0,At.useContext(jd));a+=t.key+"-"+s.name;var c={};for(var l in e)mi.call(e,l)&&l!=="css"&&l!==Ta&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),At.createElement(At.Fragment,null,At.createElement(zd,{cache:t,serialized:s,isStringTag:typeof o=="string"}),At.createElement(o,c))}),Tl=Hd,eo=io.Fragment,C=function(t,r,n){return mi.call(r,"css")?io.jsx(Tl,xl(t,r),n):io.jsx(t,r,n)},K=function(t,r,n){return mi.call(r,"css")?io.jsxs(Tl,xl(t,r),n):io.jsxs(t,r,n)};function _l(e,t){return function(){return e.apply(t,arguments)}}const{toString:qd}=Object.prototype,{getPrototypeOf:Wa}=Object,{iterator:gi,toStringTag:Cl}=Symbol,yi=(e=>t=>{const r=qd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),rr=e=>(e=e.toLowerCase(),t=>yi(t)===e),bi=e=>t=>typeof t===e,{isArray:On}=Array,_n=bi("undefined");function po(e){return e!==null&&!_n(e)&&e.constructor!==null&&!_n(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Al=rr("ArrayBuffer");function Wd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Al(e.buffer),t}const Gd=bi("string"),Rt=bi("function"),Rl=bi("number"),ho=e=>e!==null&&typeof e=="object",Vd=e=>e===!0||e===!1,ei=e=>{if(yi(e)!=="object")return!1;const t=Wa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cl in e)&&!(gi in e)},Yd=e=>{if(!ho(e)||po(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Kd=rr("Date"),Xd=rr("File"),Qd=rr("Blob"),Zd=rr("FileList"),Jd=e=>ho(e)&&Rt(e.pipe),ep=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=yi(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},tp=rr("URLSearchParams"),[rp,np,op,ip]=["ReadableStream","Request","Response","Headers"].map(rr),ap=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),On(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(po(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function kl(e,t){if(po(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ol=e=>!_n(e)&&e!==Xr;function _a(){const{caseless:e,skipUndefined:t}=Ol(this)&&this||{},r={},n=(o,i)=>{const a=e&&kl(r,i)||i;ei(r[a])&&ei(o)?r[a]=_a(r[a],o):ei(o)?r[a]=_a({},o):On(o)?r[a]=o.slice():(!t||!_n(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&mo(arguments[o],n);return r}const sp=(e,t,r,{allOwnKeys:n}={})=>(mo(t,(o,i)=>{r&&Rt(o)?e[i]=_l(o,r):e[i]=o},{allOwnKeys:n}),e),cp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},up=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Wa(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},fp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},dp=e=>{if(!e)return null;if(On(e))return e;let t=e.length;if(!Rl(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},pp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wa(Uint8Array)),hp=(e,t)=>{const n=(e&&e[gi]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},mp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},gp=rr("HTMLFormElement"),yp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ps=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),bp=rr("RegExp"),Pl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};mo(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},wp=e=>{Pl(e,(t,r)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Rt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Ep=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return On(e)?n(e):n(String(e).split(t)),r},vp=()=>{},Sp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xp(e){return!!(e&&Rt(e.append)&&e[Cl]==="FormData"&&e[gi])}const Tp=e=>{const t=new Array(10),r=(n,o)=>{if(ho(n)){if(t.indexOf(n)>=0)return;if(po(n))return n;if(!("toJSON"in n)){t[o]=n;const i=On(n)?[]:{};return mo(n,(a,s)=>{const c=r(a,o+1);!_n(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},_p=rr("AsyncFunction"),Cp=e=>e&&(ho(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),Il=((e,t)=>e?setImmediate:t?((r,n)=>(Xr.addEventListener("message",({source:o,data:i})=>{o===Xr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Xr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Rt(Xr.postMessage)),Ap=typeof queueMicrotask<"u"?queueMicrotask.bind(Xr):typeof process<"u"&&process.nextTick||Il,Rp=e=>e!=null&&Rt(e[gi]),M={isArray:On,isArrayBuffer:Al,isBuffer:po,isFormData:ep,isArrayBufferView:Wd,isString:Gd,isNumber:Rl,isBoolean:Vd,isObject:ho,isPlainObject:ei,isEmptyObject:Yd,isReadableStream:rp,isRequest:np,isResponse:op,isHeaders:ip,isUndefined:_n,isDate:Kd,isFile:Xd,isBlob:Qd,isRegExp:bp,isFunction:Rt,isStream:Jd,isURLSearchParams:tp,isTypedArray:pp,isFileList:Zd,forEach:mo,merge:_a,extend:sp,trim:ap,stripBOM:cp,inherits:lp,toFlatObject:up,kindOf:yi,kindOfTest:rr,endsWith:fp,toArray:dp,forEachEntry:hp,matchAll:mp,isHTMLForm:gp,hasOwnProperty:Ps,hasOwnProp:Ps,reduceDescriptors:Pl,freezeMethods:wp,toObjectSet:Ep,toCamelCase:yp,noop:vp,toFiniteNumber:Sp,findKey:kl,global:Xr,isContextDefined:Ol,isSpecCompliantForm:xp,toJSONObject:Tp,isAsyncFn:_p,isThenable:Cp,setImmediate:Il,asap:Ap,isIterable:Rp};function be(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}M.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const Ml=be.prototype,Nl={};["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=>{Nl[e]={value:e}});Object.defineProperties(be,Nl);Object.defineProperty(Ml,"isAxiosError",{value:!0});be.from=(e,t,r,n,o,i)=>{const a=Object.create(Ml);M.toFlatObject(e,a,function(f){return f!==Error.prototype},l=>l!=="isAxiosError");const s=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return be.call(a,s,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const kp=null;function Ca(e){return M.isPlainObject(e)||M.isArray(e)}function Dl(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function Is(e,t,r){return e?e.concat(t).map(function(o,i){return o=Dl(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Op(e){return M.isArray(e)&&!e.some(Ca)}const Pp=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!M.isUndefined(b[h])});const n=r.metaTokens,o=r.visitor||f,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(M.isDate(g))return g.toISOString();if(M.isBoolean(g))return g.toString();if(!c&&M.isBlob(g))throw new be("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(g)||M.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,h,b){let v=g;if(g&&!b&&typeof g=="object"){if(M.endsWith(h,"{}"))h=n?h:h.slice(0,-2),g=JSON.stringify(g);else if(M.isArray(g)&&Op(g)||(M.isFileList(g)||M.endsWith(h,"[]"))&&(v=M.toArray(g)))return h=Dl(h),v.forEach(function(P,k){!(M.isUndefined(P)||P===null)&&t.append(a===!0?Is([h],k,i):a===null?h:h+"[]",l(P))}),!1}return Ca(g)?!0:(t.append(Is(b,h,i),l(g)),!1)}const p=[],y=Object.assign(Pp,{defaultVisitor:f,convertValue:l,isVisitable:Ca});function T(g,h){if(!M.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(g),M.forEach(g,function(v,O){(!(M.isUndefined(v)||v===null)&&o.call(t,v,M.isString(O)?O.trim():O,h,y))===!0&&T(v,h?h.concat(O):[O])}),p.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return T(e),t}function Ms(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ga(e,t){this._pairs=[],e&&wi(e,this,t)}const $l=Ga.prototype;$l.append=function(t,r){this._pairs.push([t,r])};$l.toString=function(t){const r=t?function(n){return t.call(this,n,Ms)}:Ms;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ip(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ll(e,t,r){if(!t)return e;const n=r&&r.encode||Ip;M.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=M.isURLSearchParams(t)?t.toString():new Ga(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ns{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Bl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mp=typeof URLSearchParams<"u"?URLSearchParams:Ga,Np=typeof FormData<"u"?FormData:null,Dp=typeof Blob<"u"?Blob:null,$p={isBrowser:!0,classes:{URLSearchParams:Mp,FormData:Np,Blob:Dp},protocols:["http","https","file","blob","url","data"]},Va=typeof window<"u"&&typeof document<"u",Aa=typeof navigator=="object"&&navigator||void 0,Lp=Va&&(!Aa||["ReactNative","NativeScript","NS"].indexOf(Aa.product)<0),Bp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fp=Va&&window.location.href||"http://localhost",Up=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Va,hasStandardBrowserEnv:Lp,hasStandardBrowserWebWorkerEnv:Bp,navigator:Aa,origin:Fp},Symbol.toStringTag,{value:"Module"})),ht={...Up,...$p};function jp(e,t){return wi(e,new ht.classes.URLSearchParams,{visitor:function(r,n,o,i){return ht.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function zp(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Hp(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Fl(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&M.isArray(o)?o.length:a,c?(M.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!M.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&M.isArray(o[a])&&(o[a]=Hp(o[a])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,o)=>{t(zp(n),o,r,0)}),r}return null}function qp(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const go={transitional:Bl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o?JSON.stringify(Fl(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return jp(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return wi(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),qp(t)):t}],transformResponse:[function(t){const r=this.transitional||go.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?be.from(s,be.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:ht.classes.FormData,Blob:ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const Wp=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gp=e=>{const t={};let r,n,o;return e&&e.split(`
2
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&Wp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ds=Symbol("internals");function jn(e){return e&&String(e).trim().toLowerCase()}function ti(e){return e===!1||e==null?e:M.isArray(e)?e.map(ti):String(e)}function Vp(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Yp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wi(e,t,r,n,o){if(M.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function Kp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Xp(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let kt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,c,l){const f=jn(c);if(!f)throw new Error("header name must be a non-empty string");const p=M.findKey(o,f);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||c]=ti(s))}const a=(s,c)=>M.forEach(s,(l,f)=>i(l,f,c));if(M.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(M.isString(t)&&(t=t.trim())&&!Yp(t))a(Gp(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},c,l;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[l=f[0]]=(c=s[l])?M.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}a(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=jn(t),t){const n=M.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Vp(o);if(M.isFunction(r))return r.call(this,o,n);if(M.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jn(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Wi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=jn(a),a){const s=M.findKey(n,a);s&&(!r||Wi(n,n[s],s,r))&&(delete n[s],o=!0)}}return M.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Wi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return M.forEach(this,(o,i)=>{const a=M.findKey(n,i);if(a){r[a]=ti(o),delete r[i];return}const s=t?Kp(i):String(i).trim();s!==i&&delete r[i],r[s]=ti(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ds]=this[Ds]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=jn(a);n[s]||(Xp(o,a),n[s]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(kt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(kt);function Gi(e,t){const r=this||go,n=t||r,o=kt.from(n.headers);let i=n.data;return M.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ul(e){return!!(e&&e.__CANCEL__)}function Pn(e,t,r){be.call(this,e??"canceled",be.ERR_CANCELED,t,r),this.name="CanceledError"}M.inherits(Pn,be,{__CANCEL__:!0});function jl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new be("Request failed with status code "+r.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Qp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Zp(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),f=n[i];a||(a=l),r[o]=c,n[o]=l;let p=i,y=0;for(;p!==o;)y+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=f&&l-f;return T?Math.round(y*1e3/T):void 0}}function Jp(e,t){let r=0,n=1e3/t,o,i;const a=(l,f=Date.now())=>{r=f,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const f=Date.now(),p=f-r;p>=n?a(l,f):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-p)))},()=>o&&a(o)]}const ai=(e,t,r=3)=>{let n=0;const o=Zp(50,250);return Jp(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),f=a<=s;n=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&f?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},r)},$s=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ls=e=>(...t)=>M.asap(()=>e(...t)),eh=ht.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ht.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ht.origin),ht.navigator&&/(msie|trident)/i.test(ht.navigator.userAgent)):()=>!0,th=ht.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),M.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function rh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zl(e,t,r){let n=!rh(t);return e&&(n||r==!1)?nh(e,t):t}const Bs=e=>e instanceof kt?{...e}:e;function tn(e,t){t=t||{};const r={};function n(l,f,p,y){return M.isPlainObject(l)&&M.isPlainObject(f)?M.merge.call({caseless:y},l,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function o(l,f,p,y){if(M.isUndefined(f)){if(!M.isUndefined(l))return n(void 0,l,p,y)}else return n(l,f,p,y)}function i(l,f){if(!M.isUndefined(f))return n(void 0,f)}function a(l,f){if(M.isUndefined(f)){if(!M.isUndefined(l))return n(void 0,l)}else return n(void 0,f)}function s(l,f,p){if(p in t)return n(l,f);if(p in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,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,f,p)=>o(Bs(l),Bs(f),p,!0)};return M.forEach(Object.keys({...e,...t}),function(f){const p=c[f]||o,y=p(e[f],t[f],f);M.isUndefined(y)&&p!==s||(r[f]=y)}),r}const Hl=e=>{const t=tn({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=kt.from(a),t.url=Ll(zl(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([f,p])=>{l.includes(f.toLowerCase())&&a.set(f,p)})}}if(ht.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&eh(t.url))){const c=o&&i&&th.read(i);c&&a.set(o,c)}return t},oh=typeof XMLHttpRequest<"u",ih=oh&&function(e){return new Promise(function(r,n){const o=Hl(e);let i=o.data;const a=kt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,f,p,y,T,g;function h(){T&&T(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const P=kt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),d={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:P,config:e,request:b};jl(function(x){r(x),h()},function(x){n(x),h()},d),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(n(new be("Request aborted",be.ECONNABORTED,e,b)),b=null)},b.onerror=function(k){const d=k&&k.message?k.message:"Network Error",E=new be(d,be.ERR_NETWORK,e,b);E.event=k||null,n(E),b=null},b.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const d=o.transitional||Bl;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),n(new be(k,d.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&M.forEach(a.toJSON(),function(k,d){b.setRequestHeader(d,k)}),M.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),l&&([y,g]=ai(l,!0),b.addEventListener("progress",y)),c&&b.upload&&([p,T]=ai(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(f=P=>{b&&(n(!P||P.type?new Pn(null,e,b):P),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const O=Qp(o.url);if(O&&ht.protocols.indexOf(O)===-1){n(new be("Unsupported protocol "+O+":",be.ERR_BAD_REQUEST,e));return}b.send(i||null)})},ah=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const f=l instanceof Error?l:this.reason;n.abort(f instanceof be?f:new Pn(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,i(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>M.asap(s),c}},sh=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},ch=async function*(e,t){for await(const r of lh(e))yield*sh(r,t)},lh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Fs=(e,t,r,n)=>{const o=ch(e,t);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:f}=await o.next();if(l){s(),c.close();return}let p=f.byteLength;if(r){let y=i+=p;r(y)}c.enqueue(new Uint8Array(f))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Us=64*1024,{isFunction:Do}=M,uh=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:js,TextEncoder:zs}=M.global,Hs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fh=e=>{e=M.merge.call({skipUndefined:!0},uh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Do(t):typeof fetch=="function",i=Do(r),a=Do(n);if(!o)return!1;const s=o&&Do(js),c=o&&(typeof zs=="function"?(g=>h=>g.encode(h))(new zs):async g=>new Uint8Array(await new r(g).arrayBuffer())),l=i&&s&&Hs(()=>{let g=!1;const h=new r(ht.origin,{body:new js,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!h}),f=a&&s&&Hs(()=>M.isReadableStream(new n("").body)),p={stream:f&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!p[g]&&(p[g]=(h,b)=>{let v=h&&h[g];if(v)return v.call(h);throw new be(`Response type '${g}' is not supported`,be.ERR_NOT_SUPPORT,b)})});const y=async g=>{if(g==null)return 0;if(M.isBlob(g))return g.size;if(M.isSpecCompliantForm(g))return(await new r(ht.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(M.isArrayBufferView(g)||M.isArrayBuffer(g))return g.byteLength;if(M.isURLSearchParams(g)&&(g=g+""),M.isString(g))return(await c(g)).byteLength},T=async(g,h)=>{const b=M.toFiniteNumber(g.getContentLength());return b??y(h)};return async g=>{let{url:h,method:b,data:v,signal:O,cancelToken:P,timeout:k,onDownloadProgress:d,onUploadProgress:E,responseType:x,headers:R,withCredentials:N="same-origin",fetchOptions:W}=Hl(g),F=t||fetch;x=x?(x+"").toLowerCase():"text";let m=ah([O,P&&P.toAbortSignal()],k),$=null;const I=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let q;try{if(E&&l&&b!=="get"&&b!=="head"&&(q=await T(R,v))!==0){let H=new r(h,{method:"POST",body:v,duplex:"half"}),ce;if(M.isFormData(v)&&(ce=H.headers.get("content-type"))&&R.setContentType(ce),H.body){const[J,ae]=$s(q,ai(Ls(E)));v=Fs(H.body,Us,J,ae)}}M.isString(N)||(N=N?"include":"omit");const Z=i&&"credentials"in r.prototype,fe={...W,signal:m,method:b.toUpperCase(),headers:R.normalize().toJSON(),body:v,duplex:"half",credentials:Z?N:void 0};$=i&&new r(h,fe);let Ce=await(i?F($,W):F(h,fe));const ut=f&&(x==="stream"||x==="response");if(f&&(d||ut&&I)){const H={};["status","statusText","headers"].forEach(ne=>{H[ne]=Ce[ne]});const ce=M.toFiniteNumber(Ce.headers.get("content-length")),[J,ae]=d&&$s(ce,ai(Ls(d),!0))||[];Ce=new n(Fs(Ce.body,Us,J,()=>{ae&&ae(),I&&I()}),H)}x=x||"text";let z=await p[M.findKey(p,x)||"text"](Ce,g);return!ut&&I&&I(),await new Promise((H,ce)=>{jl(H,ce,{data:z,headers:kt.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:g,request:$})})}catch(Z){throw I&&I(),Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,g,$),{cause:Z.cause||Z}):be.from(Z,Z&&Z.code,g,$)}}},dh=new Map,ql=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,s=a,c,l,f=dh;for(;s--;)c=i[s],l=f.get(c),l===void 0&&f.set(c,l=s?new Map:fh(t)),f=l;return l};ql();const Ya={http:kp,xhr:ih,fetch:{get:ql}};M.forEach(Ya,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qs=e=>`- ${e}`,ph=e=>M.isFunction(e)||e===null||e===!1;function hh(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let s;if(o=n,!ph(n)&&(o=Ya[(s=String(n)).toLowerCase()],o===void 0))throw new be(`Unknown adapter '${s}'`);if(o&&(M.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const eo=require("react/jsx-runtime"),te=require("react"),x=require("@mui/material"),mt=require("@mui/icons-material"),on=require("@mui/system"),Xf=require("@emotion/styled");require("@emotion/react");function dl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ao=dl(eo),Ct=dl(te);function Qf(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 Jf(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 Zf=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Jf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Qf(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ht="-ms-",ii="-moz-",ke="-webkit-",pl="comm",ja="rule",za="decl",ed="@import",hl="@keyframes",td="@layer",rd=Math.abs,di=String.fromCharCode,nd=Object.assign;function od(e,t){return ut(e,0)^45?(((t<<2^ut(e,0))<<2^ut(e,1))<<2^ut(e,2))<<2^ut(e,3):0}function ml(e){return e.trim()}function id(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,r){return e.replace(t,r)}function Sa(e,t){return e.indexOf(t)}function ut(e,t){return e.charCodeAt(t)|0}function so(e,t,r){return e.slice(t,r)}function dr(e){return e.length}function Ha(e){return e.length}function Io(e,t){return t.push(e),e}function ad(e,t){return e.map(t).join("")}var pi=1,Tn=1,gl=0,Ot=0,ot=0,On="";function hi(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pi,column:Tn,length:a,return:""}}function jn(e,t){return nd(hi("",null,null,"",null,null,0),e,{length:-e.length},t)}function sd(){return ot}function cd(){return ot=Ot>0?ut(On,--Ot):0,Tn--,ot===10&&(Tn=1,pi--),ot}function Nt(){return ot=Ot<gl?ut(On,Ot++):0,Tn++,ot===10&&(Tn=1,pi++),ot}function hr(){return ut(On,Ot)}function Qo(){return Ot}function po(e,t){return so(On,e,t)}function co(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 yl(e){return pi=Tn=1,gl=dr(On=e),Ot=0,[]}function bl(e){return On="",e}function Jo(e){return ml(po(Ot-1,xa(e===91?e+2:e===40?e+1:e)))}function ld(e){for(;(ot=hr())&&ot<33;)Nt();return co(e)>2||co(ot)>3?"":" "}function ud(e,t){for(;--t&&Nt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return po(e,Qo()+(t<6&&hr()==32&&Nt()==32))}function xa(e){for(;Nt();)switch(ot){case e:return Ot;case 34:case 39:e!==34&&e!==39&&xa(ot);break;case 40:e===41&&xa(e);break;case 92:Nt();break}return Ot}function fd(e,t){for(;Nt()&&e+ot!==57;)if(e+ot===84&&hr()===47)break;return"/*"+po(t,Ot-1)+"*"+di(e===47?e:Nt())}function dd(e){for(;!co(hr());)Nt();return po(e,Ot)}function pd(e){return bl(Zo("",null,null,null,[""],e=yl(e),0,[0],e))}function Zo(e,t,r,n,o,i,a,s,c){for(var l=0,u=0,p=a,g=0,S=0,y=0,h=1,b=1,v=1,k=0,P="",O=o,d=i,E=n,T=P;b;)switch(y=k,k=Nt()){case 40:if(y!=108&&ut(T,p-1)==58){Sa(T+=Pe(Jo(k),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=Jo(k);break;case 9:case 10:case 13:case 32:T+=ld(y);break;case 92:T+=ud(Qo()-1,7);continue;case 47:switch(hr()){case 42:case 47:Io(hd(fd(Nt(),Qo()),t,r),c);break;default:T+="/"}break;case 123*h:s[l++]=dr(T)*v;case 125*h:case 59:case 0:switch(k){case 0:case 125:b=0;case 59+u:v==-1&&(T=Pe(T,/\f/g,"")),S>0&&dr(T)-p&&Io(S>32?Ss(T+";",n,r,p-1):Ss(Pe(T," ","")+";",n,r,p-2),c);break;case 59:T+=";";default:if(Io(E=vs(T,t,r,l,u,o,s,P,O=[],d=[],p),i),k===123)if(u===0)Zo(T,t,E,E,O,i,p,s,d);else switch(g===99&&ut(T,3)===110?100:g){case 100:case 108:case 109:case 115:Zo(e,E,E,n&&Io(vs(e,E,E,0,0,o,s,P,o,O=[],p),d),o,d,p,s,n?O:d);break;default:Zo(T,E,E,E,[""],d,0,s,d)}}l=u=S=0,h=v=1,P=T="",p=a;break;case 58:p=1+dr(T),S=y;default:if(h<1){if(k==123)--h;else if(k==125&&h++==0&&cd()==125)continue}switch(T+=di(k),k*h){case 38:v=u>0?1:(T+="\f",-1);break;case 44:s[l++]=(dr(T)-1)*v,v=1;break;case 64:hr()===45&&(T+=Jo(Nt())),g=hr(),u=p=dr(P=T+=dd(Qo())),k++;break;case 45:y===45&&dr(T)==2&&(h=0)}}return i}function vs(e,t,r,n,o,i,a,s,c,l,u){for(var p=o-1,g=o===0?i:[""],S=Ha(g),y=0,h=0,b=0;y<n;++y)for(var v=0,k=so(e,p+1,p=rd(h=a[y])),P=e;v<S;++v)(P=ml(h>0?g[v]+" "+k:Pe(k,/&\f/g,g[v])))&&(c[b++]=P);return hi(e,t,r,o===0?ja:s,c,l,u)}function hd(e,t,r){return hi(e,t,r,pl,di(sd()),so(e,2,-2),0)}function Ss(e,t,r,n){return hi(e,t,r,za,so(e,0,n),so(e,n+1,-1),n)}function Sn(e,t){for(var r="",n=Ha(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function md(e,t,r,n){switch(e.type){case td:if(e.children.length)break;case ed:case za:return e.return=e.return||e.value;case pl:return"";case hl:return e.return=e.value+"{"+Sn(e.children,n)+"}";case ja:e.value=e.props.join(",")}return dr(r=Sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function gd(e){var t=Ha(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function yd(e){return function(t){t.root||(t=t.return)&&e(t)}}function bd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wd=function(t,r,n){for(var o=0,i=0;o=i,i=hr(),o===38&&i===12&&(r[n]=1),!co(i);)Nt();return po(t,Ot)},Ed=function(t,r){var n=-1,o=44;do switch(co(o)){case 0:o===38&&hr()===12&&(r[n]=1),t[n]+=wd(Ot-1,r,n);break;case 2:t[n]+=Jo(o);break;case 4:if(o===44){t[++n]=hr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=di(o)}while(o=Nt());return t},vd=function(t,r){return bl(Ed(yl(t),r))},xs=new WeakMap,Sd=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xs.get(n))&&!o){xs.set(t,!0);for(var i=[],a=vd(r,i),s=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<s.length;u++,l++)t.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},xd=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function wl(e,t){switch(od(e,t)){case 5103:return ke+"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 ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ke+e+ii+e+ht+e+e;case 6828:case 4268:return ke+e+ht+e+e;case 6165:return ke+e+ht+"flex-"+e+e;case 5187:return ke+e+Pe(e,/(\w+).+(:[^]+)/,ke+"box-$1$2"+ht+"flex-$1$2")+e;case 5443:return ke+e+ht+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return ke+e+ht+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return ke+e+ht+Pe(e,"shrink","negative")+e;case 5292:return ke+e+ht+Pe(e,"basis","preferred-size")+e;case 6060:return ke+"box-"+Pe(e,"-grow","")+ke+e+ht+Pe(e,"grow","positive")+e;case 4554:return ke+Pe(e,/([^-])(transform)/g,"$1"+ke+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,ke+"$1"),/(image-set)/,ke+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,ke+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,ke+"box-pack:$3"+ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ke+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,ke+"$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(dr(e)-1-t>6)switch(ut(e,t+1)){case 109:if(ut(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ii+(ut(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sa(e,"stretch")?wl(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ut(e,t+1)!==115)break;case 6444:switch(ut(e,dr(e)-3-(~Sa(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(ut(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+ht+"$2box$3")+e}break;case 5936:switch(ut(e,t+11)){case 114:return ke+e+ht+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+ht+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+ht+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+ht+e+e}return e}var Td=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case za:t.return=wl(t.value,t.length);break;case hl:return Sn([jn(t,{value:Pe(t.value,"@","@"+ke)})],o);case ja:if(t.length)return ad(t.props,function(i){switch(id(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sn([jn(t,{props:[Pe(i,/:(read-\w+)/,":"+ii+"$1")]})],o);case"::placeholder":return Sn([jn(t,{props:[Pe(i,/:(plac\w+)/,":"+ke+"input-$1")]}),jn(t,{props:[Pe(i,/:(plac\w+)/,":"+ii+"$1")]}),jn(t,{props:[Pe(i,/:(plac\w+)/,ht+"input-$1")]})],o)}return""})}},_d=[Td],Cd=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(h){var b=h.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||_d,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(h){for(var b=h.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)i[b[v]]=!0;s.push(h)});var c,l=[Sd,xd];{var u,p=[md,yd(function(h){u.insert(h)})],g=gd(l.concat(o,p)),S=function(b){return Sn(pd(b),g)};c=function(b,v,k,P){u=k,S(b?b+"{"+v.styles+"}":v.styles),P&&(y.inserted[v.name]=!0)}}var y={key:r,sheet:new Zf({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(s),y},Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var No={exports:{}},De={};var Ts;function Ad(){if(Ts)return De;Ts=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function P(d){if(typeof d=="object"&&d!==null){var E=d.$$typeof;switch(E){case t:switch(d=d.type,d){case c:case l:case n:case i:case o:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case u:case y:case S:case a:return d;default:return E}}case r:return E}}}function O(d){return P(d)===l}return De.AsyncMode=c,De.ConcurrentMode=l,De.ContextConsumer=s,De.ContextProvider=a,De.Element=t,De.ForwardRef=u,De.Fragment=n,De.Lazy=y,De.Memo=S,De.Portal=r,De.Profiler=i,De.StrictMode=o,De.Suspense=p,De.isAsyncMode=function(d){return O(d)||P(d)===c},De.isConcurrentMode=O,De.isContextConsumer=function(d){return P(d)===s},De.isContextProvider=function(d){return P(d)===a},De.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},De.isForwardRef=function(d){return P(d)===u},De.isFragment=function(d){return P(d)===n},De.isLazy=function(d){return P(d)===y},De.isMemo=function(d){return P(d)===S},De.isPortal=function(d){return P(d)===r},De.isProfiler=function(d){return P(d)===i},De.isStrictMode=function(d){return P(d)===o},De.isSuspense=function(d){return P(d)===p},De.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===g||typeof d=="object"&&d!==null&&(d.$$typeof===y||d.$$typeof===S||d.$$typeof===a||d.$$typeof===s||d.$$typeof===u||d.$$typeof===b||d.$$typeof===v||d.$$typeof===k||d.$$typeof===h)},De.typeOf=P,De}var $e={};var _s;function Rd(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function P(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===i||D===o||D===p||D===g||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===S||D.$$typeof===a||D.$$typeof===s||D.$$typeof===u||D.$$typeof===b||D.$$typeof===v||D.$$typeof===k||D.$$typeof===h)}function O(D){if(typeof D=="object"&&D!==null){var We=D.$$typeof;switch(We){case t:var Je=D.type;switch(Je){case c:case l:case n:case i:case o:case p:return Je;default:var qe=Je&&Je.$$typeof;switch(qe){case s:case u:case y:case S:case a:return qe;default:return We}}case r:return We}}}var d=c,E=l,T=s,R=a,N=t,W=u,B=n,m=y,$=S,I=r,q=i,J=o,fe=p,Ce=!1;function ft(D){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(D)||O(D)===c}function z(D){return O(D)===l}function H(D){return O(D)===s}function le(D){return O(D)===a}function Z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ae(D){return O(D)===u}function ne(D){return O(D)===n}function de(D){return O(D)===y}function Q(D){return O(D)===S}function me(D){return O(D)===r}function we(D){return O(D)===i}function pe(D){return O(D)===o}function Oe(D){return O(D)===p}$e.AsyncMode=d,$e.ConcurrentMode=E,$e.ContextConsumer=T,$e.ContextProvider=R,$e.Element=N,$e.ForwardRef=W,$e.Fragment=B,$e.Lazy=m,$e.Memo=$,$e.Portal=I,$e.Profiler=q,$e.StrictMode=J,$e.Suspense=fe,$e.isAsyncMode=ft,$e.isConcurrentMode=z,$e.isContextConsumer=H,$e.isContextProvider=le,$e.isElement=Z,$e.isForwardRef=ae,$e.isFragment=ne,$e.isLazy=de,$e.isMemo=Q,$e.isPortal=me,$e.isProfiler=we,$e.isStrictMode=pe,$e.isSuspense=Oe,$e.isValidElementType=P,$e.typeOf=O})()),$e}var Cs;function Od(){return Cs||(Cs=1,process.env.NODE_ENV==="production"?No.exports=Ad():No.exports=Rd()),No.exports}var Hi,As;function kd(){if(As)return Hi;As=1;var e=Od(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var s=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;function S(y,h,b){if(typeof h!="string"){if(g){var v=p(h);v&&v!==g&&S(y,v,b)}var k=c(h);l&&(k=k.concat(l(h)));for(var P=a(y),O=a(h),d=0;d<k.length;++d){var E=k[d];if(!r[E]&&!(b&&b[E])&&!(O&&O[E])&&!(P&&P[E])){var T=u(h,E);try{s(y,E,T)}catch{}}}}return y}return Hi=S,Hi}kd();var Pd=!0;function Id(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var El=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Pd===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Md=function(t,r,n){El(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Nd(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Dd={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,scale: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},$d=/[A-Z]|^ms/g,Ld=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vl=function(t){return t.charCodeAt(1)===45},Rs=function(t){return t!=null&&typeof t!="boolean"},qi=bd(function(e){return vl(e)?e:e.replace($d,"-$&").toLowerCase()}),Os=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Ld,function(n,o,i){return pr={name:o,styles:i,next:pr},o})}return Dd[t]!==1&&!vl(t)&&typeof r=="number"&&r!==0?r+"px":r};function lo(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return pr={name:o.name,styles:o.styles,next:pr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)pr={name:a.name,styles:a.styles,next:pr},a=a.next;var s=i.styles+";";return s}return Bd(e,t,r)}case"function":{if(e!==void 0){var c=pr,l=r(e);return pr=c,lo(e,t,l)}break}}var u=r;return u}function Bd(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=lo(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;Rs(s)&&(n+=qi(i)+":"+Os(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Rs(a[c])&&(n+=qi(i)+":"+Os(i,a[c])+";");else{var l=lo(e,t,a);switch(i){case"animation":case"animationName":{n+=qi(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var ks=/label:\s*([^\s;{]+)\s*(;|$)/g,pr;function Sl(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";pr=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=lo(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=lo(r,t,e[s]),n){var c=i;o+=c[s]}ks.lastIndex=0;for(var l="",u;(u=ks.exec(o))!==null;)l+="-"+u[1];var p=Nd(o)+l;return{name:p,styles:o,next:pr}}var Fd=function(t){return t()},Ud=Ct.useInsertionEffect?Ct.useInsertionEffect:!1,jd=Ud||Fd,xl=Ct.createContext(typeof HTMLElement<"u"?Cd({key:"css"}):null);xl.Provider;var zd=function(t){return te.forwardRef(function(r,n){var o=te.useContext(xl);return t(r,o,n)})},Hd=Ct.createContext({}),mi={}.hasOwnProperty,Ta="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Tl=function(t,r){var n={};for(var o in r)mi.call(r,o)&&(n[o]=r[o]);return n[Ta]=t,n},qd=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return El(r,n,o),jd(function(){return Md(r,n,o)}),null},Wd=zd(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Ta],i=[n],a="";typeof e.className=="string"?a=Id(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Sl(i,void 0,Ct.useContext(Hd));a+=t.key+"-"+s.name;var c={};for(var l in e)mi.call(e,l)&&l!=="css"&&l!==Ta&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),Ct.createElement(Ct.Fragment,null,Ct.createElement(qd,{cache:t,serialized:s,isStringTag:typeof o=="string"}),Ct.createElement(o,c))}),_l=Wd,to=ao.Fragment,C=function(t,r,n){return mi.call(r,"css")?ao.jsx(_l,Tl(t,r),n):ao.jsx(t,r,n)},X=function(t,r,n){return mi.call(r,"css")?ao.jsxs(_l,Tl(t,r),n):ao.jsxs(t,r,n)};function Cl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gd}=Object.prototype,{getPrototypeOf:Wa}=Object,{iterator:gi,toStringTag:Al}=Symbol,yi=(e=>t=>{const r=Gd.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Qt=e=>(e=e.toLowerCase(),t=>yi(t)===e),bi=e=>t=>typeof t===e,{isArray:kn}=Array,_n=bi("undefined");function ho(e){return e!==null&&!_n(e)&&e.constructor!==null&&!_n(e.constructor)&&At(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rl=Qt("ArrayBuffer");function Vd(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rl(e.buffer),t}const Yd=bi("string"),At=bi("function"),Ol=bi("number"),mo=e=>e!==null&&typeof e=="object",Kd=e=>e===!0||e===!1,ei=e=>{if(yi(e)!=="object")return!1;const t=Wa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Al in e)&&!(gi in e)},Xd=e=>{if(!mo(e)||ho(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Qd=Qt("Date"),Jd=Qt("File"),Zd=Qt("Blob"),ep=Qt("FileList"),tp=e=>mo(e)&&At(e.pipe),rp=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||At(e.append)&&((t=yi(e))==="formdata"||t==="object"&&At(e.toString)&&e.toString()==="[object FormData]"))},np=Qt("URLSearchParams"),[op,ip,ap,sp]=["ReadableStream","Request","Response","Headers"].map(Qt),cp=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function go(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(ho(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function kl(e,t){if(ho(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pl=e=>!_n(e)&&e!==Qr;function _a(){const{caseless:e,skipUndefined:t}=Pl(this)&&this||{},r={},n=(o,i)=>{const a=e&&kl(r,i)||i;ei(r[a])&&ei(o)?r[a]=_a(r[a],o):ei(o)?r[a]=_a({},o):kn(o)?r[a]=o.slice():(!t||!_n(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&go(arguments[o],n);return r}const lp=(e,t,r,{allOwnKeys:n}={})=>(go(t,(o,i)=>{r&&At(o)?e[i]=Cl(o,r):e[i]=o},{allOwnKeys:n}),e),up=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fp=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},dp=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&Wa(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},pp=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},hp=e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!Ol(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},mp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wa(Uint8Array)),gp=(e,t)=>{const n=(e&&e[gi]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},yp=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},bp=Qt("HTMLFormElement"),wp=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ps=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ep=Qt("RegExp"),Il=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};go(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},vp=e=>{Il(e,(t,r)=>{if(At(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(At(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Sp=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return kn(e)?n(e):n(String(e).split(t)),r},xp=()=>{},Tp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function _p(e){return!!(e&&At(e.append)&&e[Al]==="FormData"&&e[gi])}const Cp=e=>{const t=new Array(10),r=(n,o)=>{if(mo(n)){if(t.indexOf(n)>=0)return;if(ho(n))return n;if(!("toJSON"in n)){t[o]=n;const i=kn(n)?[]:{};return go(n,(a,s)=>{const c=r(a,o+1);!_n(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Ap=Qt("AsyncFunction"),Rp=e=>e&&(mo(e)||At(e))&&At(e.then)&&At(e.catch),Ml=((e,t)=>e?setImmediate:t?((r,n)=>(Qr.addEventListener("message",({source:o,data:i})=>{o===Qr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Qr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",At(Qr.postMessage)),Op=typeof queueMicrotask<"u"?queueMicrotask.bind(Qr):typeof process<"u"&&process.nextTick||Ml,kp=e=>e!=null&&At(e[gi]),M={isArray:kn,isArrayBuffer:Rl,isBuffer:ho,isFormData:rp,isArrayBufferView:Vd,isString:Yd,isNumber:Ol,isBoolean:Kd,isObject:mo,isPlainObject:ei,isEmptyObject:Xd,isReadableStream:op,isRequest:ip,isResponse:ap,isHeaders:sp,isUndefined:_n,isDate:Qd,isFile:Jd,isBlob:Zd,isRegExp:Ep,isFunction:At,isStream:tp,isURLSearchParams:np,isTypedArray:mp,isFileList:ep,forEach:go,merge:_a,extend:lp,trim:cp,stripBOM:up,inherits:fp,toFlatObject:dp,kindOf:yi,kindOfTest:Qt,endsWith:pp,toArray:hp,forEachEntry:gp,matchAll:yp,isHTMLForm:bp,hasOwnProperty:Ps,hasOwnProp:Ps,reduceDescriptors:Il,freezeMethods:vp,toObjectSet:Sp,toCamelCase:wp,noop:xp,toFiniteNumber:Tp,findKey:kl,global:Qr,isContextDefined:Pl,isSpecCompliantForm:_p,toJSONObject:Cp,isAsyncFn:Ap,isThenable:Rp,setImmediate:Ml,asap:Op,isIterable:kp};function ye(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}M.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const Nl=ye.prototype,Dl={};["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=>{Dl[e]={value:e}});Object.defineProperties(ye,Dl);Object.defineProperty(Nl,"isAxiosError",{value:!0});ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Nl);M.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const s=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ye.call(a,s,c,r,n,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Pp=null;function Ca(e){return M.isPlainObject(e)||M.isArray(e)}function $l(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function Is(e,t,r){return e?e.concat(t).map(function(o,i){return o=$l(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Ip(e){return M.isArray(e)&&!e.some(Ca)}const Mp=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,b){return!M.isUndefined(b[h])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function l(y){if(y===null)return"";if(M.isDate(y))return y.toISOString();if(M.isBoolean(y))return y.toString();if(!c&&M.isBlob(y))throw new ye("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(y)||M.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function u(y,h,b){let v=y;if(y&&!b&&typeof y=="object"){if(M.endsWith(h,"{}"))h=n?h:h.slice(0,-2),y=JSON.stringify(y);else if(M.isArray(y)&&Ip(y)||(M.isFileList(y)||M.endsWith(h,"[]"))&&(v=M.toArray(y)))return h=$l(h),v.forEach(function(P,O){!(M.isUndefined(P)||P===null)&&t.append(a===!0?Is([h],O,i):a===null?h:h+"[]",l(P))}),!1}return Ca(y)?!0:(t.append(Is(b,h,i),l(y)),!1)}const p=[],g=Object.assign(Mp,{defaultVisitor:u,convertValue:l,isVisitable:Ca});function S(y,h){if(!M.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(y),M.forEach(y,function(v,k){(!(M.isUndefined(v)||v===null)&&o.call(t,v,M.isString(k)?k.trim():k,h,g))===!0&&S(v,h?h.concat(k):[k])}),p.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ms(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Ga(e,t){this._pairs=[],e&&wi(e,this,t)}const Ll=Ga.prototype;Ll.append=function(t,r){this._pairs.push([t,r])};Ll.toString=function(t){const r=t?function(n){return t.call(this,n,Ms)}:Ms;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Np(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Bl(e,t,r){if(!t)return e;const n=r&&r.encode||Np;M.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=M.isURLSearchParams(t)?t.toString():new Ga(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ns{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Fl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dp=typeof URLSearchParams<"u"?URLSearchParams:Ga,$p=typeof FormData<"u"?FormData:null,Lp=typeof Blob<"u"?Blob:null,Bp={isBrowser:!0,classes:{URLSearchParams:Dp,FormData:$p,Blob:Lp},protocols:["http","https","file","blob","url","data"]},Va=typeof window<"u"&&typeof document<"u",Aa=typeof navigator=="object"&&navigator||void 0,Fp=Va&&(!Aa||["ReactNative","NativeScript","NS"].indexOf(Aa.product)<0),Up=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jp=Va&&window.location.href||"http://localhost",zp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Va,hasStandardBrowserEnv:Fp,hasStandardBrowserWebWorkerEnv:Up,navigator:Aa,origin:jp},Symbol.toStringTag,{value:"Module"})),gt={...zp,...Bp};function Hp(e,t){return wi(e,new gt.classes.URLSearchParams,{visitor:function(r,n,o,i){return gt.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function qp(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wp(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Ul(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&M.isArray(o)?o.length:a,c?(M.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!M.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&M.isArray(o[a])&&(o[a]=Wp(o[a])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,o)=>{t(qp(n),o,r,0)}),r}return null}function Gp(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const yo={transitional:Fl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=M.isObject(t);if(i&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o?JSON.stringify(Ul(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Hp(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return wi(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Gp(t)):t}],transformResponse:[function(t){const r=this.transitional||yo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?ye.from(s,ye.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:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{yo.headers[e]={}});const Vp=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yp=e=>{const t={};let r,n,o;return e&&e.split(`
2
+ `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&Vp[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Ds=Symbol("internals");function zn(e){return e&&String(e).trim().toLowerCase()}function ti(e){return e===!1||e==null?e:M.isArray(e)?e.map(ti):String(e)}function Kp(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Xp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wi(e,t,r,n,o){if(M.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function Qp(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Jp(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let Rt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,c,l){const u=zn(c);if(!u)throw new Error("header name must be a non-empty string");const p=M.findKey(o,u);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||c]=ti(s))}const a=(s,c)=>M.forEach(s,(l,u)=>i(l,u,c));if(M.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(M.isString(t)&&(t=t.trim())&&!Xp(t))a(Yp(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},c,l;for(const u of t){if(!M.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?M.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=zn(t),t){const n=M.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Kp(o);if(M.isFunction(r))return r.call(this,o,n);if(M.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=zn(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Wi(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=zn(a),a){const s=M.findKey(n,a);s&&(!r||Wi(n,n[s],s,r))&&(delete n[s],o=!0)}}return M.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Wi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return M.forEach(this,(o,i)=>{const a=M.findKey(n,i);if(a){r[a]=ti(o),delete r[i];return}const s=t?Qp(i):String(i).trim();s!==i&&delete r[i],r[s]=ti(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Ds]=this[Ds]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=zn(a);n[s]||(Jp(o,a),n[s]=!0)}return M.isArray(t)?t.forEach(i):i(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Rt);function Gi(e,t){const r=this||yo,n=t||r,o=Rt.from(n.headers);let i=n.data;return M.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function jl(e){return!!(e&&e.__CANCEL__)}function Pn(e,t,r){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,r),this.name="CanceledError"}M.inherits(Pn,ye,{__CANCEL__:!0});function zl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Zp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),r[o]=c,n[o]=l;let p=i,g=0;for(;p!==o;)g+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const S=u&&l-u;return S?Math.round(g*1e3/S):void 0}}function th(e,t){let r=0,n=1e3/t,o,i;const a=(l,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-r;p>=n?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-p)))},()=>o&&a(o)]}const ai=(e,t,r=3)=>{let n=0;const o=eh(50,250);return th(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),u=a<=s;n=a;const p={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(p)},r)},$s=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ls=e=>(...t)=>M.asap(()=>e(...t)),rh=gt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,gt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,nh=gt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),M.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function oh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ih(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hl(e,t,r){let n=!oh(t);return e&&(n||r==!1)?ih(e,t):t}const Bs=e=>e instanceof Rt?{...e}:e;function rn(e,t){t=t||{};const r={};function n(l,u,p,g){return M.isPlainObject(l)&&M.isPlainObject(u)?M.merge.call({caseless:g},l,u):M.isPlainObject(u)?M.merge({},u):M.isArray(u)?u.slice():u}function o(l,u,p,g){if(M.isUndefined(u)){if(!M.isUndefined(l))return n(void 0,l,p,g)}else return n(l,u,p,g)}function i(l,u){if(!M.isUndefined(u))return n(void 0,u)}function a(l,u){if(M.isUndefined(u)){if(!M.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,p){if(p in t)return n(l,u);if(p in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,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,u,p)=>o(Bs(l),Bs(u),p,!0)};return M.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||o,g=p(e[u],t[u],u);M.isUndefined(g)&&p!==s||(r[u]=g)}),r}const ql=e=>{const t=rn({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Rt.from(a),t.url=Bl(Hl(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&a.set(u,p)})}}if(gt.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&rh(t.url))){const c=o&&i&&nh.read(i);c&&a.set(o,c)}return t},ah=typeof XMLHttpRequest<"u",sh=ah&&function(e){return new Promise(function(r,n){const o=ql(e);let i=o.data;const a=Rt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,p,g,S,y;function h(){S&&S(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function v(){if(!b)return;const P=Rt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),d={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:P,config:e,request:b};zl(function(T){r(T),h()},function(T){n(T),h()},d),b=null}"onloadend"in b?b.onloadend=v:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(v)},b.onabort=function(){b&&(n(new ye("Request aborted",ye.ECONNABORTED,e,b)),b=null)},b.onerror=function(O){const d=O&&O.message?O.message:"Network Error",E=new ye(d,ye.ERR_NETWORK,e,b);E.event=O||null,n(E),b=null},b.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const d=o.transitional||Fl;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),n(new ye(O,d.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&M.forEach(a.toJSON(),function(O,d){b.setRequestHeader(d,O)}),M.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),l&&([g,y]=ai(l,!0),b.addEventListener("progress",g)),c&&b.upload&&([p,S]=ai(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=P=>{b&&(n(!P||P.type?new Pn(null,e,b):P),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=Zp(o.url);if(k&&gt.protocols.indexOf(k)===-1){n(new ye("Unsupported protocol "+k+":",ye.ERR_BAD_REQUEST,e));return}b.send(i||null)})},ch=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof ye?u:new Pn(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>M.asap(s),c}},lh=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},uh=async function*(e,t){for await(const r of fh(e))yield*lh(r,t)},fh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Fs=(e,t,r,n)=>{const o=uh(e,t);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let p=u.byteLength;if(r){let g=i+=p;r(g)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Us=64*1024,{isFunction:Do}=M,dh=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:js,TextEncoder:zs}=M.global,Hs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ph=e=>{e=M.merge.call({skipUndefined:!0},dh,e);const{fetch:t,Request:r,Response:n}=e,o=t?Do(t):typeof fetch=="function",i=Do(r),a=Do(n);if(!o)return!1;const s=o&&Do(js),c=o&&(typeof zs=="function"?(y=>h=>y.encode(h))(new zs):async y=>new Uint8Array(await new r(y).arrayBuffer())),l=i&&s&&Hs(()=>{let y=!1;const h=new r(gt.origin,{body:new js,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!h}),u=a&&s&&Hs(()=>M.isReadableStream(new n("").body)),p={stream:u&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(h,b)=>{let v=h&&h[y];if(v)return v.call(h);throw new ye(`Response type '${y}' is not supported`,ye.ERR_NOT_SUPPORT,b)})});const g=async y=>{if(y==null)return 0;if(M.isBlob(y))return y.size;if(M.isSpecCompliantForm(y))return(await new r(gt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(M.isArrayBufferView(y)||M.isArrayBuffer(y))return y.byteLength;if(M.isURLSearchParams(y)&&(y=y+""),M.isString(y))return(await c(y)).byteLength},S=async(y,h)=>{const b=M.toFiniteNumber(y.getContentLength());return b??g(h)};return async y=>{let{url:h,method:b,data:v,signal:k,cancelToken:P,timeout:O,onDownloadProgress:d,onUploadProgress:E,responseType:T,headers:R,withCredentials:N="same-origin",fetchOptions:W}=ql(y),B=t||fetch;T=T?(T+"").toLowerCase():"text";let m=ch([k,P&&P.toAbortSignal()],O),$=null;const I=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let q;try{if(E&&l&&b!=="get"&&b!=="head"&&(q=await S(R,v))!==0){let H=new r(h,{method:"POST",body:v,duplex:"half"}),le;if(M.isFormData(v)&&(le=H.headers.get("content-type"))&&R.setContentType(le),H.body){const[Z,ae]=$s(q,ai(Ls(E)));v=Fs(H.body,Us,Z,ae)}}M.isString(N)||(N=N?"include":"omit");const J=i&&"credentials"in r.prototype,fe={...W,signal:m,method:b.toUpperCase(),headers:R.normalize().toJSON(),body:v,duplex:"half",credentials:J?N:void 0};$=i&&new r(h,fe);let Ce=await(i?B($,W):B(h,fe));const ft=u&&(T==="stream"||T==="response");if(u&&(d||ft&&I)){const H={};["status","statusText","headers"].forEach(ne=>{H[ne]=Ce[ne]});const le=M.toFiniteNumber(Ce.headers.get("content-length")),[Z,ae]=d&&$s(le,ai(Ls(d),!0))||[];Ce=new n(Fs(Ce.body,Us,Z,()=>{ae&&ae(),I&&I()}),H)}T=T||"text";let z=await p[M.findKey(p,T)||"text"](Ce,y);return!ft&&I&&I(),await new Promise((H,le)=>{zl(H,le,{data:z,headers:Rt.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:y,request:$})})}catch(J){throw I&&I(),J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,y,$),{cause:J.cause||J}):ye.from(J,J&&J.code,y,$)}}},hh=new Map,Wl=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a=i.length,s=a,c,l,u=hh;for(;s--;)c=i[s],l=u.get(c),l===void 0&&u.set(c,l=s?new Map:ph(t)),u=l;return l};Wl();const Ya={http:Pp,xhr:sh,fetch:{get:Wl}};M.forEach(Ya,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const qs=e=>`- ${e}`,mh=e=>M.isFunction(e)||e===null||e===!1;function gh(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a<r;a++){n=e[a];let s;if(o=n,!mh(n)&&(o=Ya[(s=String(n)).toLowerCase()],o===void 0))throw new ye(`Unknown adapter '${s}'`);if(o&&(M.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
4
4
  `+a.map(qs).join(`
5
- `):" "+qs(a[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Wl={getAdapter:hh,adapters:Ya};function Vi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pn(null,e)}function Ws(e){return Vi(e),e.headers=kt.from(e.headers),e.data=Gi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wl.getAdapter(e.adapter||go.adapter,e)(e).then(function(n){return Vi(e),n.data=Gi.call(e,e.transformResponse,n),n.headers=kt.from(n.headers),n},function(n){return Ul(n)||(Vi(e),n&&n.response&&(n.response.data=Gi.call(e,e.transformResponse,n.response),n.response.headers=kt.from(n.response.headers))),Promise.reject(n)})}const Gl="1.13.2",Ei={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ei[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gs={};Ei.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Gl+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new be(o(a," has been removed"+(r?" in "+r:"")),be.ERR_DEPRECATED);return r&&!Gs[a]&&(Gs[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};Ei.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function mh(e,t,r){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new be("option "+i+" must be "+c,be.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const ri={assertOptions:mh,validators:Ei},sr=ri.validators;let Zr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ns,response:new Ns}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=tn(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&ri.assertOptions(n,{silentJSONParsing:sr.transitional(sr.boolean),forcedJSONParsing:sr.transitional(sr.boolean),clarifyTimeoutError:sr.transitional(sr.boolean)},!1),o!=null&&(M.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:sr.function,serialize:sr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:sr.spelling("baseURL"),withXsrfToken:sr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&M.merge(i.common,i[r.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=kt.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(c=c&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let f,p=0,y;if(!c){const g=[Ws.bind(this),void 0];for(g.unshift(...s),g.push(...l),y=g.length,f=Promise.resolve(r);p<y;)f=f.then(g[p++],g[p++]);return f}y=s.length;let T=r;for(;p<y;){const g=s[p++],h=s[p++];try{T=g(T)}catch(b){h.call(this,b);break}}try{f=Ws.call(this,T)}catch(g){return Promise.reject(g)}for(p=0,y=l.length;p<y;)f=f.then(l[p++],l[p++]);return f}getUri(t){t=tn(this.defaults,t);const r=zl(t.baseURL,t.url,t.allowAbsoluteUrls);return Ll(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Zr.prototype[t]=function(r,n){return this.request(tn(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(tn(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Zr.prototype[t]=r(),Zr.prototype[t+"Form"]=r(!0)});let gh=class Vl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new Pn(i,a,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Vl(function(o){t=o}),cancel:t}}};function yh(e){return function(r){return e.apply(null,r)}}function bh(e){return M.isObject(e)&&e.isAxiosError===!0}const Ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ra).forEach(([e,t])=>{Ra[t]=e});function Yl(e){const t=new Zr(e),r=_l(Zr.prototype.request,t);return M.extend(r,Zr.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Yl(tn(e,o))},r}const Be=Yl(go);Be.Axios=Zr;Be.CanceledError=Pn;Be.CancelToken=gh;Be.isCancel=Ul;Be.VERSION=Gl;Be.toFormData=wi;Be.AxiosError=be;Be.Cancel=Be.CanceledError;Be.all=function(t){return Promise.all(t)};Be.spread=yh;Be.isAxiosError=bh;Be.mergeConfig=tn;Be.AxiosHeaders=kt;Be.formToJSON=e=>Fl(M.isHTMLForm(e)?new FormData(e):e);Be.getAdapter=Wl.getAdapter;Be.HttpStatusCode=Ra;Be.default=Be;const{Axios:rb,AxiosError:nb,CanceledError:ob,isCancel:ib,CancelToken:ab,VERSION:sb,all:cb,Cancel:lb,isAxiosError:ub,spread:fb,toFormData:db,AxiosHeaders:pb,HttpStatusCode:hb,formToJSON:mb,getAdapter:gb,mergeConfig:yb}=Be;var $o={exports:{}},Lo={exports:{}},$e={};var Vs;function wh(){if(Vs)return $e;Vs=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(d){if(typeof d=="object"&&d!==null){var E=d.$$typeof;switch(E){case t:switch(d=d.type,d){case c:case l:case n:case i:case o:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case f:case g:case T:case a:return d;default:return E}}case r:return E}}}function k(d){return P(d)===l}return $e.AsyncMode=c,$e.ConcurrentMode=l,$e.ContextConsumer=s,$e.ContextProvider=a,$e.Element=t,$e.ForwardRef=f,$e.Fragment=n,$e.Lazy=g,$e.Memo=T,$e.Portal=r,$e.Profiler=i,$e.StrictMode=o,$e.Suspense=p,$e.isAsyncMode=function(d){return k(d)||P(d)===c},$e.isConcurrentMode=k,$e.isContextConsumer=function(d){return P(d)===s},$e.isContextProvider=function(d){return P(d)===a},$e.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},$e.isForwardRef=function(d){return P(d)===f},$e.isFragment=function(d){return P(d)===n},$e.isLazy=function(d){return P(d)===g},$e.isMemo=function(d){return P(d)===T},$e.isPortal=function(d){return P(d)===r},$e.isProfiler=function(d){return P(d)===i},$e.isStrictMode=function(d){return P(d)===o},$e.isSuspense=function(d){return P(d)===p},$e.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===y||typeof d=="object"&&d!==null&&(d.$$typeof===g||d.$$typeof===T||d.$$typeof===a||d.$$typeof===s||d.$$typeof===f||d.$$typeof===b||d.$$typeof===v||d.$$typeof===O||d.$$typeof===h)},$e.typeOf=P,$e}var Le={};var Ys;function Eh(){return Ys||(Ys=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function P(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===i||D===o||D===p||D===y||typeof D=="object"&&D!==null&&(D.$$typeof===g||D.$$typeof===T||D.$$typeof===a||D.$$typeof===s||D.$$typeof===f||D.$$typeof===b||D.$$typeof===v||D.$$typeof===O||D.$$typeof===h)}function k(D){if(typeof D=="object"&&D!==null){var We=D.$$typeof;switch(We){case t:var Ke=D.type;switch(Ke){case c:case l:case n:case i:case o:case p:return Ke;default:var qe=Ke&&Ke.$$typeof;switch(qe){case s:case f:case g:case T:case a:return qe;default:return We}}case r:return We}}}var d=c,E=l,x=s,R=a,N=t,W=f,F=n,m=g,$=T,I=r,q=i,Z=o,fe=p,Ce=!1;function ut(D){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(D)||k(D)===c}function z(D){return k(D)===l}function H(D){return k(D)===s}function ce(D){return k(D)===a}function J(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ae(D){return k(D)===f}function ne(D){return k(D)===n}function de(D){return k(D)===g}function Q(D){return k(D)===T}function me(D){return k(D)===r}function Ee(D){return k(D)===i}function pe(D){return k(D)===o}function Re(D){return k(D)===p}Le.AsyncMode=d,Le.ConcurrentMode=E,Le.ContextConsumer=x,Le.ContextProvider=R,Le.Element=N,Le.ForwardRef=W,Le.Fragment=F,Le.Lazy=m,Le.Memo=$,Le.Portal=I,Le.Profiler=q,Le.StrictMode=Z,Le.Suspense=fe,Le.isAsyncMode=ut,Le.isConcurrentMode=z,Le.isContextConsumer=H,Le.isContextProvider=ce,Le.isElement=J,Le.isForwardRef=ae,Le.isFragment=ne,Le.isLazy=de,Le.isMemo=Q,Le.isPortal=me,Le.isProfiler=Ee,Le.isStrictMode=pe,Le.isSuspense=Re,Le.isValidElementType=P,Le.typeOf=k})()),Le}var Ks;function Kl(){return Ks||(Ks=1,process.env.NODE_ENV==="production"?Lo.exports=wh():Lo.exports=Eh()),Lo.exports}var Yi,Xs;function vh(){if(Xs)return Yi;Xs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yi=o()?Object.assign:function(i,a){for(var s,c=n(i),l,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var p in s)t.call(s,p)&&(c[p]=s[p]);if(e){l=e(s);for(var y=0;y<l.length;y++)r.call(s,l[y])&&(c[l[y]]=s[l[y]])}}return c},Yi}var Ki,Qs;function Ka(){if(Qs)return Ki;Qs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ki=e,Ki}var Xi,Zs;function Xl(){return Zs||(Zs=1,Xi=Function.call.bind(Object.prototype.hasOwnProperty)),Xi}var Qi,Js;function Sh(){if(Js)return Qi;Js=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ka(),r={},n=Xl();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var y=Error((c||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}p=i[f](a,f,c,s,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var T=l?l():"";e("Failed "+s+" type: "+p.message+(T??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Qi=o,Qi}var Zi,ec;function xh(){if(ec)return Zi;ec=1;var e=Kl(),t=vh(),r=Ka(),n=Xl(),o=Sh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Zi=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(z){var H=z&&(l&&z[l]||z[f]);if(typeof H=="function")return H}var y="<<anonymous>>",T={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:O(),arrayOf:P,element:k(),elementType:d(),instanceOf:E,node:W(),objectOf:R,oneOf:x,oneOfType:N,shape:m,exact:$};function g(z,H){return z===H?z!==0||1/z===1/H:z!==z&&H!==H}function h(z,H){this.message=z,this.data=H&&typeof H=="object"?H:{},this.stack=""}h.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var H={},ce=0;function J(ne,de,Q,me,Ee,pe,Re){if(me=me||y,pe=pe||Q,Re!==r){if(c){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var We=me+":"+Q;!H[We]&&ce<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[We]=!0,ce++)}}return de[Q]==null?ne?de[Q]===null?new h("The "+Ee+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new h("The "+Ee+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:z(de,Q,me,Ee,pe)}var ae=J.bind(null,!1);return ae.isRequired=J.bind(null,!0),ae}function v(z){function H(ce,J,ae,ne,de,Q){var me=ce[J],Ee=Z(me);if(Ee!==z){var pe=fe(me);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+pe+"` supplied to `"+ae+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(H)}function O(){return b(a)}function P(z){function H(ce,J,ae,ne,de){if(typeof z!="function")return new h("Property `"+de+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var Q=ce[J];if(!Array.isArray(Q)){var me=Z(Q);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an array."))}for(var Ee=0;Ee<Q.length;Ee++){var pe=z(Q,Ee,ae,ne,de+"["+Ee+"]",r);if(pe instanceof Error)return pe}return null}return b(H)}function k(){function z(H,ce,J,ae,ne){var de=H[ce];if(!s(de)){var Q=Z(de);return new h("Invalid "+ae+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return b(z)}function d(){function z(H,ce,J,ae,ne){var de=H[ce];if(!e.isValidElementType(de)){var Q=Z(de);return new h("Invalid "+ae+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function H(ce,J,ae,ne,de){if(!(ce[J]instanceof z)){var Q=z.name||y,me=ut(ce[J]);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected ")+("instance of `"+Q+"`."))}return null}return b(H)}function x(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function H(ce,J,ae,ne,de){for(var Q=ce[J],me=0;me<z.length;me++)if(g(Q,z[me]))return null;var Ee=JSON.stringify(z,function(Re,D){var We=fe(D);return We==="symbol"?String(D):D});return new h("Invalid "+ne+" `"+de+"` of value `"+String(Q)+"` "+("supplied to `"+ae+"`, expected one of "+Ee+"."))}return b(H)}function R(z){function H(ce,J,ae,ne,de){if(typeof z!="function")return new h("Property `"+de+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var Q=ce[J],me=Z(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an object."));for(var Ee in Q)if(n(Q,Ee)){var pe=z(Q,Ee,ae,ne,de+"."+Ee,r);if(pe instanceof Error)return pe}return null}return b(H)}function N(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<z.length;H++){var ce=z[H];if(typeof ce!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(ce)+" at index "+H+"."),a}function J(ae,ne,de,Q,me){for(var Ee=[],pe=0;pe<z.length;pe++){var Re=z[pe],D=Re(ae,ne,de,Q,me,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&Ee.push(D.data.expectedType)}var We=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new h("Invalid "+Q+" `"+me+"` supplied to "+("`"+de+"`"+We+"."))}return b(J)}function W(){function z(H,ce,J,ae,ne){return I(H[ce])?null:new h("Invalid "+ae+" `"+ne+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return b(z)}function F(z,H,ce,J,ae){return new h((z||"React class")+": "+H+" type `"+ce+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function m(z){function H(ce,J,ae,ne,de){var Q=ce[J],me=Z(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));for(var Ee in z){var pe=z[Ee];if(typeof pe!="function")return F(ae,ne,de,Ee,fe(pe));var Re=pe(Q,Ee,ae,ne,de+"."+Ee,r);if(Re)return Re}return null}return b(H)}function $(z){function H(ce,J,ae,ne,de){var Q=ce[J],me=Z(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));var Ee=t({},ce[J],z);for(var pe in Ee){var Re=z[pe];if(n(z,pe)&&typeof Re!="function")return F(ae,ne,de,pe,fe(Re));if(!Re)return new h("Invalid "+ne+" `"+de+"` key `"+pe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(ce[J],null," ")+`
7
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var D=Re(Q,pe,ae,ne,de+"."+pe,r);if(D)return D}return null}return b(H)}function I(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(I);if(z===null||s(z))return!0;var H=p(z);if(H){var ce=H.call(z),J;if(H!==z.entries){for(;!(J=ce.next()).done;)if(!I(J.value))return!1}else for(;!(J=ce.next()).done;){var ae=J.value;if(ae&&!I(ae[1]))return!1}}else return!1;return!0;default:return!1}}function q(z,H){return z==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function Z(z){var H=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":q(H,z)?"symbol":H}function fe(z){if(typeof z>"u"||z===null)return""+z;var H=Z(z);if(H==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return H}function Ce(z){var H=fe(z);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ut(z){return!z.constructor||!z.constructor.name?y:z.constructor.name}return T.checkPropTypes=o,T.resetWarningCache=o.resetWarningCache,T.PropTypes=T,T},Zi}var Ji,tc;function Th(){if(tc)return Ji;tc=1;var e=Ka();function t(){}function r(){}return r.resetWarningCache=t,Ji=function(){function n(a,s,c,l,f,p){if(p!==e){var y=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 y.name="Invariant Violation",y}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Ji}var rc;function _h(){if(rc)return $o.exports;if(rc=1,process.env.NODE_ENV!=="production"){var e=Kl(),t=!0;$o.exports=xh()(e.isElement,t)}else $o.exports=Th()();return $o.exports}var Ch=_h();const Pe=qa(Ch);function Ql(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ql(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Zl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ql(e))&&(n&&(n+=" "),n+=t);return n}function Ah(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Rh(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+t(l),s=!1,r&&r[l]&&(a+=" "+r[l]))}n[o]=a}return n}function Nr(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function rn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Bo={exports:{}},ze={};var nc;function kh(){if(nc)return ze;nc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case o:case n:case c:case l:case y:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case p:case f:return h;case i:return h;default:return b}}case t:return b}}}return ze.ContextConsumer=i,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=s,ze.Fragment=r,ze.Lazy=p,ze.Memo=f,ze.Portal=t,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=c,ze.SuspenseList=l,ze.isContextConsumer=function(h){return g(h)===i},ze.isContextProvider=function(h){return g(h)===a},ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ze.isForwardRef=function(h){return g(h)===s},ze.isFragment=function(h){return g(h)===r},ze.isLazy=function(h){return g(h)===p},ze.isMemo=function(h){return g(h)===f},ze.isPortal=function(h){return g(h)===t},ze.isProfiler=function(h){return g(h)===o},ze.isStrictMode=function(h){return g(h)===n},ze.isSuspense=function(h){return g(h)===c},ze.isSuspenseList=function(h){return g(h)===l},ze.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===l||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===f||h.$$typeof===a||h.$$typeof===i||h.$$typeof===s||h.$$typeof===T||h.getModuleId!==void 0)},ze.typeOf=g,ze}var He={};var oc;function Oh(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case t:switch(h=h.type,h){case n:case i:case o:case l:case f:case T:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case y:case p:return h;case a:return h;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");He.ContextConsumer=a,He.ContextProvider=s,He.Element=t,He.ForwardRef=c,He.Fragment=n,He.Lazy=y,He.Memo=p,He.Portal=r,He.Profiler=i,He.StrictMode=o,He.Suspense=l,He.SuspenseList=f,He.isContextConsumer=function(h){return e(h)===a},He.isContextProvider=function(h){return e(h)===s},He.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},He.isForwardRef=function(h){return e(h)===c},He.isFragment=function(h){return e(h)===n},He.isLazy=function(h){return e(h)===y},He.isMemo=function(h){return e(h)===p},He.isPortal=function(h){return e(h)===r},He.isProfiler=function(h){return e(h)===i},He.isStrictMode=function(h){return e(h)===o},He.isSuspense=function(h){return e(h)===l},He.isSuspenseList=function(h){return e(h)===f},He.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===i||h===o||h===l||h===f||typeof h=="object"&&h!==null&&(h.$$typeof===y||h.$$typeof===p||h.$$typeof===s||h.$$typeof===a||h.$$typeof===c||h.$$typeof===g||h.getModuleId!==void 0)},He.typeOf=e})()),He}var ic;function Ph(){return ic||(ic=1,process.env.NODE_ENV==="production"?Bo.exports=kh():Bo.exports=Oh()),Bo.exports}var si=Ph();function Tr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jl(e){if(At.isValidElement(e)||si.isValidElementType(e)||!Tr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Jl(e[r])}),t}function Lt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Tr(e)&&Tr(t)&&Object.keys(t).forEach(o=>{At.isValidElement(t[o])||si.isValidElementType(t[o])?n[o]=t[o]:Tr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Tr(e[o])?n[o]=Lt(e[o],t[o],r):r.clone?n[o]=Tr(t[o])?Jl(t[o]):t[o]:n[o]=t[o]}),n}function oo(e,t){return t?Lt(e,t,{clone:!1}):e}const $r=process.env.NODE_ENV!=="production"?Pe.oneOfType([Pe.number,Pe.string,Pe.object,Pe.array]):{};function ac(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Ih(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Mh(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
8
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Nr(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function Nh(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=t(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const vi={xs:0,sm:600,md:900,lg:1200,xl:1536},sc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vi[e]}px)`},Dh={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:vi[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Ar(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||sc;return t.reduce((a,s,c)=>(a[i.up(i.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const i=n.breakpoints||sc;return Object.keys(t).reduce((a,s)=>{if(Ih(i.keys,s)){const c=Mh(n.containerQueries?n:Dh,s);c&&(a[c]=r(t[s],s))}else if(Object.keys(i.values||vi).includes(s)){const c=i.up(s);a[c]=r(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return r(t)}function $h(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function cc(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Si(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function ci(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Si(e,r)||n,t&&(o=t(o,n,e)),o}function Ze(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,l=Si(c,n)||{};return Ar(a,s,p=>{let y=ci(l,o,p);return p===y&&typeof p=="string"&&(y=ci(l,o,`${t}${p==="default"?"":rn(p)}`,p)),r===!1?y:{[r]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:$r}:{},i.filterProps=[t],i}function Lh(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Bh={m:"margin",p:"padding"},Fh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uh=Lh(e=>{if(e.length>2)if(lc[e])e=lc[e];else return[e];const[t,r]=e.split(""),n=Bh[t],o=Fh[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),xi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ti=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],jh=[...xi,...Ti];function yo(e,t,r,n){const o=Si(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
5
+ `):" "+qs(a[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Gl={getAdapter:gh,adapters:Ya};function Vi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pn(null,e)}function Ws(e){return Vi(e),e.headers=Rt.from(e.headers),e.data=Gi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gl.getAdapter(e.adapter||yo.adapter,e)(e).then(function(n){return Vi(e),n.data=Gi.call(e,e.transformResponse,n),n.headers=Rt.from(n.headers),n},function(n){return jl(n)||(Vi(e),n&&n.response&&(n.response.data=Gi.call(e,e.transformResponse,n.response),n.response.headers=Rt.from(n.response.headers))),Promise.reject(n)})}const Vl="1.13.2",Ei={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ei[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Gs={};Ei.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Vl+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(t===!1)throw new ye(o(a," has been removed"+(r?" in "+r:"")),ye.ERR_DEPRECATED);return r&&!Gs[a]&&(Gs[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,s):!0}};Ei.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function yh(e,t,r){if(typeof e!="object")throw new ye("options must be an object",ye.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const s=e[i],c=s===void 0||a(s,i,e);if(c!==!0)throw new ye("option "+i+" must be "+c,ye.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}}const ri={assertOptions:yh,validators:Ei},ur=ri.validators;let Zr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ns,response:new Ns}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rn(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&ri.assertOptions(n,{silentJSONParsing:ur.transitional(ur.boolean),forcedJSONParsing:ur.transitional(ur.boolean),clarifyTimeoutError:ur.transitional(ur.boolean)},!1),o!=null&&(M.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:ur.function,serialize:ur.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:ur.spelling("baseURL"),withXsrfToken:ur.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&M.merge(i.common,i[r.method]);i&&M.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),r.headers=Rt.concat(a,i);const s=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(c=c&&h.synchronous,s.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let u,p=0,g;if(!c){const y=[Ws.bind(this),void 0];for(y.unshift(...s),y.push(...l),g=y.length,u=Promise.resolve(r);p<g;)u=u.then(y[p++],y[p++]);return u}g=s.length;let S=r;for(;p<g;){const y=s[p++],h=s[p++];try{S=y(S)}catch(b){h.call(this,b);break}}try{u=Ws.call(this,S)}catch(y){return Promise.reject(y)}for(p=0,g=l.length;p<g;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=rn(this.defaults,t);const r=Hl(t.baseURL,t.url,t.allowAbsoluteUrls);return Bl(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Zr.prototype[t]=function(r,n){return this.request(rn(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,s){return this.request(rn(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Zr.prototype[t]=r(),Zr.prototype[t+"Form"]=r(!0)});let bh=class Yl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,s){n.reason||(n.reason=new Pn(i,a,s),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Yl(function(o){t=o}),cancel:t}}};function wh(e){return function(r){return e.apply(null,r)}}function Eh(e){return M.isObject(e)&&e.isAxiosError===!0}const Ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ra).forEach(([e,t])=>{Ra[t]=e});function Kl(e){const t=new Zr(e),r=Cl(Zr.prototype.request,t);return M.extend(r,Zr.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Kl(rn(e,o))},r}const Fe=Kl(yo);Fe.Axios=Zr;Fe.CanceledError=Pn;Fe.CancelToken=bh;Fe.isCancel=jl;Fe.VERSION=Vl;Fe.toFormData=wi;Fe.AxiosError=ye;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=wh;Fe.isAxiosError=Eh;Fe.mergeConfig=rn;Fe.AxiosHeaders=Rt;Fe.formToJSON=e=>Ul(M.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Gl.getAdapter;Fe.HttpStatusCode=Ra;Fe.default=Fe;const{Axios:lb,AxiosError:ub,CanceledError:fb,isCancel:db,CancelToken:pb,VERSION:hb,all:mb,Cancel:gb,isAxiosError:yb,spread:bb,toFormData:wb,AxiosHeaders:Eb,HttpStatusCode:vb,formToJSON:Sb,getAdapter:xb,mergeConfig:Tb}=Fe;var $o={exports:{}},Lo={exports:{}},Le={};var Vs;function vh(){if(Vs)return Le;Vs=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function P(d){if(typeof d=="object"&&d!==null){var E=d.$$typeof;switch(E){case t:switch(d=d.type,d){case c:case l:case n:case i:case o:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case u:case y:case S:case a:return d;default:return E}}case r:return E}}}function O(d){return P(d)===l}return Le.AsyncMode=c,Le.ConcurrentMode=l,Le.ContextConsumer=s,Le.ContextProvider=a,Le.Element=t,Le.ForwardRef=u,Le.Fragment=n,Le.Lazy=y,Le.Memo=S,Le.Portal=r,Le.Profiler=i,Le.StrictMode=o,Le.Suspense=p,Le.isAsyncMode=function(d){return O(d)||P(d)===c},Le.isConcurrentMode=O,Le.isContextConsumer=function(d){return P(d)===s},Le.isContextProvider=function(d){return P(d)===a},Le.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},Le.isForwardRef=function(d){return P(d)===u},Le.isFragment=function(d){return P(d)===n},Le.isLazy=function(d){return P(d)===y},Le.isMemo=function(d){return P(d)===S},Le.isPortal=function(d){return P(d)===r},Le.isProfiler=function(d){return P(d)===i},Le.isStrictMode=function(d){return P(d)===o},Le.isSuspense=function(d){return P(d)===p},Le.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===g||typeof d=="object"&&d!==null&&(d.$$typeof===y||d.$$typeof===S||d.$$typeof===a||d.$$typeof===s||d.$$typeof===u||d.$$typeof===b||d.$$typeof===v||d.$$typeof===k||d.$$typeof===h)},Le.typeOf=P,Le}var Be={};var Ys;function Sh(){return Ys||(Ys=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,k=e?Symbol.for("react.scope"):60119;function P(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===i||D===o||D===p||D===g||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===S||D.$$typeof===a||D.$$typeof===s||D.$$typeof===u||D.$$typeof===b||D.$$typeof===v||D.$$typeof===k||D.$$typeof===h)}function O(D){if(typeof D=="object"&&D!==null){var We=D.$$typeof;switch(We){case t:var Je=D.type;switch(Je){case c:case l:case n:case i:case o:case p:return Je;default:var qe=Je&&Je.$$typeof;switch(qe){case s:case u:case y:case S:case a:return qe;default:return We}}case r:return We}}}var d=c,E=l,T=s,R=a,N=t,W=u,B=n,m=y,$=S,I=r,q=i,J=o,fe=p,Ce=!1;function ft(D){return Ce||(Ce=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(D)||O(D)===c}function z(D){return O(D)===l}function H(D){return O(D)===s}function le(D){return O(D)===a}function Z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ae(D){return O(D)===u}function ne(D){return O(D)===n}function de(D){return O(D)===y}function Q(D){return O(D)===S}function me(D){return O(D)===r}function we(D){return O(D)===i}function pe(D){return O(D)===o}function Oe(D){return O(D)===p}Be.AsyncMode=d,Be.ConcurrentMode=E,Be.ContextConsumer=T,Be.ContextProvider=R,Be.Element=N,Be.ForwardRef=W,Be.Fragment=B,Be.Lazy=m,Be.Memo=$,Be.Portal=I,Be.Profiler=q,Be.StrictMode=J,Be.Suspense=fe,Be.isAsyncMode=ft,Be.isConcurrentMode=z,Be.isContextConsumer=H,Be.isContextProvider=le,Be.isElement=Z,Be.isForwardRef=ae,Be.isFragment=ne,Be.isLazy=de,Be.isMemo=Q,Be.isPortal=me,Be.isProfiler=we,Be.isStrictMode=pe,Be.isSuspense=Oe,Be.isValidElementType=P,Be.typeOf=O})()),Be}var Ks;function Xl(){return Ks||(Ks=1,process.env.NODE_ENV==="production"?Lo.exports=vh():Lo.exports=Sh()),Lo.exports}var Yi,Xs;function xh(){if(Xs)return Yi;Xs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yi=o()?Object.assign:function(i,a){for(var s,c=n(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var p in s)t.call(s,p)&&(c[p]=s[p]);if(e){l=e(s);for(var g=0;g<l.length;g++)r.call(s,l[g])&&(c[l[g]]=s[l[g]])}}return c},Yi}var Ki,Qs;function Ka(){if(Qs)return Ki;Qs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ki=e,Ki}var Xi,Js;function Ql(){return Js||(Js=1,Xi=Function.call.bind(Object.prototype.hasOwnProperty)),Xi}var Qi,Zs;function Th(){if(Zs)return Qi;Zs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ka(),r={},n=Ql();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(n(i,u)){var p;try{if(typeof i[u]!="function"){var g=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=i[u](a,u,c,s,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var S=l?l():"";e("Failed "+s+" type: "+p.message+(S??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Qi=o,Qi}var Ji,ec;function _h(){if(ec)return Ji;ec=1;var e=Xl(),t=xh(),r=Ka(),n=Ql(),o=Th(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Ji=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function p(z){var H=z&&(l&&z[l]||z[u]);if(typeof H=="function")return H}var g="<<anonymous>>",S={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:k(),arrayOf:P,element:O(),elementType:d(),instanceOf:E,node:W(),objectOf:R,oneOf:T,oneOfType:N,shape:m,exact:$};function y(z,H){return z===H?z!==0||1/z===1/H:z!==z&&H!==H}function h(z,H){this.message=z,this.data=H&&typeof H=="object"?H:{},this.stack=""}h.prototype=Error.prototype;function b(z){if(process.env.NODE_ENV!=="production")var H={},le=0;function Z(ne,de,Q,me,we,pe,Oe){if(me=me||g,pe=pe||Q,Oe!==r){if(c){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var We=me+":"+Q;!H[We]&&le<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[We]=!0,le++)}}return de[Q]==null?ne?de[Q]===null?new h("The "+we+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new h("The "+we+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:z(de,Q,me,we,pe)}var ae=Z.bind(null,!1);return ae.isRequired=Z.bind(null,!0),ae}function v(z){function H(le,Z,ae,ne,de,Q){var me=le[Z],we=J(me);if(we!==z){var pe=fe(me);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+pe+"` supplied to `"+ae+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return b(H)}function k(){return b(a)}function P(z){function H(le,Z,ae,ne,de){if(typeof z!="function")return new h("Property `"+de+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var Q=le[Z];if(!Array.isArray(Q)){var me=J(Q);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an array."))}for(var we=0;we<Q.length;we++){var pe=z(Q,we,ae,ne,de+"["+we+"]",r);if(pe instanceof Error)return pe}return null}return b(H)}function O(){function z(H,le,Z,ae,ne){var de=H[le];if(!s(de)){var Q=J(de);return new h("Invalid "+ae+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return b(z)}function d(){function z(H,le,Z,ae,ne){var de=H[le];if(!e.isValidElementType(de)){var Q=J(de);return new h("Invalid "+ae+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return b(z)}function E(z){function H(le,Z,ae,ne,de){if(!(le[Z]instanceof z)){var Q=z.name||g,me=ft(le[Z]);return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected ")+("instance of `"+Q+"`."))}return null}return b(H)}function T(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function H(le,Z,ae,ne,de){for(var Q=le[Z],me=0;me<z.length;me++)if(y(Q,z[me]))return null;var we=JSON.stringify(z,function(Oe,D){var We=fe(D);return We==="symbol"?String(D):D});return new h("Invalid "+ne+" `"+de+"` of value `"+String(Q)+"` "+("supplied to `"+ae+"`, expected one of "+we+"."))}return b(H)}function R(z){function H(le,Z,ae,ne,de){if(typeof z!="function")return new h("Property `"+de+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var Q=le[Z],me=J(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an object."));for(var we in Q)if(n(Q,we)){var pe=z(Q,we,ae,ne,de+"."+we,r);if(pe instanceof Error)return pe}return null}return b(H)}function N(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<z.length;H++){var le=z[H];if(typeof le!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(le)+" at index "+H+"."),a}function Z(ae,ne,de,Q,me){for(var we=[],pe=0;pe<z.length;pe++){var Oe=z[pe],D=Oe(ae,ne,de,Q,me,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&we.push(D.data.expectedType)}var We=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new h("Invalid "+Q+" `"+me+"` supplied to "+("`"+de+"`"+We+"."))}return b(Z)}function W(){function z(H,le,Z,ae,ne){return I(H[le])?null:new h("Invalid "+ae+" `"+ne+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return b(z)}function B(z,H,le,Z,ae){return new h((z||"React class")+": "+H+" type `"+le+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function m(z){function H(le,Z,ae,ne,de){var Q=le[Z],me=J(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));for(var we in z){var pe=z[we];if(typeof pe!="function")return B(ae,ne,de,we,fe(pe));var Oe=pe(Q,we,ae,ne,de+"."+we,r);if(Oe)return Oe}return null}return b(H)}function $(z){function H(le,Z,ae,ne,de){var Q=le[Z],me=J(Q);if(me!=="object")return new h("Invalid "+ne+" `"+de+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));var we=t({},le[Z],z);for(var pe in we){var Oe=z[pe];if(n(z,pe)&&typeof Oe!="function")return B(ae,ne,de,pe,fe(Oe));if(!Oe)return new h("Invalid "+ne+" `"+de+"` key `"+pe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(le[Z],null," ")+`
7
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var D=Oe(Q,pe,ae,ne,de+"."+pe,r);if(D)return D}return null}return b(H)}function I(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(I);if(z===null||s(z))return!0;var H=p(z);if(H){var le=H.call(z),Z;if(H!==z.entries){for(;!(Z=le.next()).done;)if(!I(Z.value))return!1}else for(;!(Z=le.next()).done;){var ae=Z.value;if(ae&&!I(ae[1]))return!1}}else return!1;return!0;default:return!1}}function q(z,H){return z==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function J(z){var H=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":q(H,z)?"symbol":H}function fe(z){if(typeof z>"u"||z===null)return""+z;var H=J(z);if(H==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return H}function Ce(z){var H=fe(z);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ft(z){return!z.constructor||!z.constructor.name?g:z.constructor.name}return S.checkPropTypes=o,S.resetWarningCache=o.resetWarningCache,S.PropTypes=S,S},Ji}var Zi,tc;function Ch(){if(tc)return Zi;tc=1;var e=Ka();function t(){}function r(){}return r.resetWarningCache=t,Zi=function(){function n(a,s,c,l,u,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Zi}var rc;function Ah(){if(rc)return $o.exports;if(rc=1,process.env.NODE_ENV!=="production"){var e=Xl(),t=!0;$o.exports=_h()(e.isElement,t)}else $o.exports=Ch()();return $o.exports}var Rh=Ah();const Ie=qa(Rh);function Jl(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Jl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Zl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Jl(e))&&(n&&(n+=" "),n+=t);return n}function Oh(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function kh(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let a="",s=!0;for(let c=0;c<i.length;c+=1){const l=i[c];l&&(a+=(s===!0?"":" ")+t(l),s=!1,r&&r[l]&&(a+=" "+r[l]))}n[o]=a}return n}function $r(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function nn(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$r(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Bo={exports:{}},ze={};var nc;function Ph(){if(nc)return ze;nc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function y(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case o:case n:case c:case l:case g:return h;default:switch(h=h&&h.$$typeof,h){case a:case s:case p:case u:return h;case i:return h;default:return b}}case t:return b}}}return ze.ContextConsumer=i,ze.ContextProvider=a,ze.Element=e,ze.ForwardRef=s,ze.Fragment=r,ze.Lazy=p,ze.Memo=u,ze.Portal=t,ze.Profiler=o,ze.StrictMode=n,ze.Suspense=c,ze.SuspenseList=l,ze.isContextConsumer=function(h){return y(h)===i},ze.isContextProvider=function(h){return y(h)===a},ze.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ze.isForwardRef=function(h){return y(h)===s},ze.isFragment=function(h){return y(h)===r},ze.isLazy=function(h){return y(h)===p},ze.isMemo=function(h){return y(h)===u},ze.isPortal=function(h){return y(h)===t},ze.isProfiler=function(h){return y(h)===o},ze.isStrictMode=function(h){return y(h)===n},ze.isSuspense=function(h){return y(h)===c},ze.isSuspenseList=function(h){return y(h)===l},ze.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===l||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===u||h.$$typeof===a||h.$$typeof===i||h.$$typeof===s||h.$$typeof===S||h.getModuleId!==void 0)},ze.typeOf=y,ze}var He={};var oc;function Ih(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case t:switch(h=h.type,h){case n:case i:case o:case l:case u:case S:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case g:case p:return h;case a:return h;default:return b}}case r:return b}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");He.ContextConsumer=a,He.ContextProvider=s,He.Element=t,He.ForwardRef=c,He.Fragment=n,He.Lazy=g,He.Memo=p,He.Portal=r,He.Profiler=i,He.StrictMode=o,He.Suspense=l,He.SuspenseList=u,He.isContextConsumer=function(h){return e(h)===a},He.isContextProvider=function(h){return e(h)===s},He.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},He.isForwardRef=function(h){return e(h)===c},He.isFragment=function(h){return e(h)===n},He.isLazy=function(h){return e(h)===g},He.isMemo=function(h){return e(h)===p},He.isPortal=function(h){return e(h)===r},He.isProfiler=function(h){return e(h)===i},He.isStrictMode=function(h){return e(h)===o},He.isSuspense=function(h){return e(h)===l},He.isSuspenseList=function(h){return e(h)===u},He.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===i||h===o||h===l||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===g||h.$$typeof===p||h.$$typeof===s||h.$$typeof===a||h.$$typeof===c||h.$$typeof===y||h.getModuleId!==void 0)},He.typeOf=e})()),He}var ic;function Mh(){return ic||(ic=1,process.env.NODE_ENV==="production"?Bo.exports=Ph():Bo.exports=Ih()),Bo.exports}var si=Mh();function Cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eu(e){if(Ct.isValidElement(e)||si.isValidElementType(e)||!Cr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=eu(e[r])}),t}function Dt(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(o=>{Ct.isValidElement(t[o])||si.isValidElementType(t[o])?n[o]=t[o]:Cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Cr(e[o])?n[o]=Dt(e[o],t[o],r):r.clone?n[o]=Cr(t[o])?eu(t[o]):t[o]:n[o]=t[o]}),n}function io(e,t){return t?Dt(e,t,{clone:!1}):e}const Br=process.env.NODE_ENV!=="production"?Ie.oneOfType([Ie.number,Ie.string,Ie.object,Ie.array]):{};function ac(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function Nh(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function Dh(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
8
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:$r(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function $h(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function r(i,a){i.up=(...s)=>t(e.breakpoints.up(...s),a),i.down=(...s)=>t(e.breakpoints.down(...s),a),i.between=(...s)=>t(e.breakpoints.between(...s),a),i.only=(...s)=>t(e.breakpoints.only(...s),a),i.not=(...s)=>{const c=t(e.breakpoints.not(...s),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const vi={xs:0,sm:600,md:900,lg:1200,xl:1536},sc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vi[e]}px)`},Lh={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:vi[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Or(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||sc;return t.reduce((a,s,c)=>(a[i.up(i.keys[c])]=r(t[c]),a),{})}if(typeof t=="object"){const i=n.breakpoints||sc;return Object.keys(t).reduce((a,s)=>{if(Nh(i.keys,s)){const c=Dh(n.containerQueries?n:Lh,s);c&&(a[c]=r(t[s],s))}else if(Object.keys(i.values||vi).includes(s)){const c=i.up(s);a[c]=r(t[s],s)}else{const c=s;a[c]=t[c]}return a},{})}return r(t)}function Bh(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function cc(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Si(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function ci(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Si(e,r)||n,t&&(o=t(o,n,e)),o}function tt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,l=Si(c,n)||{};return Or(a,s,p=>{let g=ci(l,o,p);return p===g&&typeof p=="string"&&(g=ci(l,o,`${t}${p==="default"?"":nn(p)}`,p)),r===!1?g:{[r]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Br}:{},i.filterProps=[t],i}function Fh(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const Uh={m:"margin",p:"padding"},jh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zh=Fh(e=>{if(e.length>2)if(lc[e])e=lc[e];else return[e];const[t,r]=e.split(""),n=Uh[t],o=jh[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),xi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ti=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Hh=[...xi,...Ti];function bo(e,t,r,n){const o=Si(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
9
9
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
10
10
  `)));const s=o[a];return i>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
11
- `)),()=>{})}function Xa(e){return yo(e,"spacing",8,"spacing")}function bo(e,t){return typeof t=="string"||t==null?t:e(t)}function zh(e,t){return r=>e.reduce((n,o)=>(n[o]=bo(t,r),n),{})}function Hh(e,t,r,n){if(!t.includes(r))return null;const o=Uh(r),i=zh(o,n),a=e[r];return Ar(e,a,i)}function eu(e,t){const r=Xa(e.theme);return Object.keys(e).map(n=>Hh(e,t,n,r)).reduce(oo,{})}function Xe(e){return eu(e,xi)}Xe.propTypes=process.env.NODE_ENV!=="production"?xi.reduce((e,t)=>(e[t]=$r,e),{}):{};Xe.filterProps=xi;function Qe(e){return eu(e,Ti)}Qe.propTypes=process.env.NODE_ENV!=="production"?Ti.reduce((e,t)=>(e[t]=$r,e),{}):{};Qe.filterProps=Ti;process.env.NODE_ENV!=="production"&&jh.reduce((e,t)=>(e[t]=$r,e),{});function _i(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?oo(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ht(e){return typeof e!="number"?e:`${e}px solid`}function Vt(e,t){return Ze({prop:e,themeKey:"borders",transform:t})}const qh=Vt("border",Ht),Wh=Vt("borderTop",Ht),Gh=Vt("borderRight",Ht),Vh=Vt("borderBottom",Ht),Yh=Vt("borderLeft",Ht),Kh=Vt("borderColor"),Xh=Vt("borderTopColor"),Qh=Vt("borderRightColor"),Zh=Vt("borderBottomColor"),Jh=Vt("borderLeftColor"),e0=Vt("outline",Ht),t0=Vt("outlineColor"),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:bo(t,n)});return Ar(e,e.borderRadius,r)}return null};Ci.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$r}:{};Ci.filterProps=["borderRadius"];_i(qh,Wh,Gh,Vh,Yh,Kh,Xh,Qh,Zh,Jh,Ci,e0,t0);const Ai=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yo(e.theme,"spacing",8,"gap"),r=n=>({gap:bo(t,n)});return Ar(e,e.gap,r)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{gap:$r}:{};Ai.filterProps=["gap"];const Ri=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:bo(t,n)});return Ar(e,e.columnGap,r)}return null};Ri.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$r}:{};Ri.filterProps=["columnGap"];const ki=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:bo(t,n)});return Ar(e,e.rowGap,r)}return null};ki.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$r}:{};ki.filterProps=["rowGap"];const r0=Ze({prop:"gridColumn"}),n0=Ze({prop:"gridRow"}),o0=Ze({prop:"gridAutoFlow"}),i0=Ze({prop:"gridAutoColumns"}),a0=Ze({prop:"gridAutoRows"}),s0=Ze({prop:"gridTemplateColumns"}),c0=Ze({prop:"gridTemplateRows"}),l0=Ze({prop:"gridTemplateAreas"}),u0=Ze({prop:"gridArea"});_i(Ai,Ri,ki,r0,n0,o0,i0,a0,s0,c0,l0,u0);function xn(e,t){return t==="grey"?t:e}const f0=Ze({prop:"color",themeKey:"palette",transform:xn}),d0=Ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xn}),p0=Ze({prop:"backgroundColor",themeKey:"palette",transform:xn});_i(f0,d0,p0);function Dt(e){return e<=1&&e!==0?`${e*100}%`:e}const h0=Ze({prop:"width",transform:Dt}),Qa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||vi[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Dt(r)}};return Ar(e,e.maxWidth,t)}return null};Qa.filterProps=["maxWidth"];const m0=Ze({prop:"minWidth",transform:Dt}),g0=Ze({prop:"height",transform:Dt}),y0=Ze({prop:"maxHeight",transform:Dt}),b0=Ze({prop:"minHeight",transform:Dt});Ze({prop:"size",cssProperty:"width",transform:Dt});Ze({prop:"size",cssProperty:"height",transform:Dt});const w0=Ze({prop:"boxSizing"});_i(h0,Qa,m0,g0,y0,b0,w0);const Oi={border:{themeKey:"borders",transform:Ht},borderTop:{themeKey:"borders",transform:Ht},borderRight:{themeKey:"borders",transform:Ht},borderBottom:{themeKey:"borders",transform:Ht},borderLeft:{themeKey:"borders",transform:Ht},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ht},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xn},backgroundColor:{themeKey:"palette",transform:xn},p:{style:Qe},pt:{style:Qe},pr:{style:Qe},pb:{style:Qe},pl:{style:Qe},px:{style:Qe},py:{style:Qe},padding:{style:Qe},paddingTop:{style:Qe},paddingRight:{style:Qe},paddingBottom:{style:Qe},paddingLeft:{style:Qe},paddingX:{style:Qe},paddingY:{style:Qe},paddingInline:{style:Qe},paddingInlineStart:{style:Qe},paddingInlineEnd:{style:Qe},paddingBlock:{style:Qe},paddingBlockStart:{style:Qe},paddingBlockEnd:{style:Qe},m:{style:Xe},mt:{style:Xe},mr:{style:Xe},mb:{style:Xe},ml:{style:Xe},mx:{style:Xe},my:{style:Xe},margin:{style:Xe},marginTop:{style:Xe},marginRight:{style:Xe},marginBottom:{style:Xe},marginLeft:{style:Xe},marginX:{style:Xe},marginY:{style:Xe},marginInline:{style:Xe},marginInlineStart:{style:Xe},marginInlineEnd:{style:Xe},marginBlock:{style:Xe},marginBlockStart:{style:Xe},marginBlockEnd:{style:Xe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ai},rowGap:{style:ki},columnGap:{style:Ri},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dt},maxWidth:{style:Qa},minWidth:{transform:Dt},height:{transform:Dt},maxHeight:{transform:Dt},minHeight:{transform:Dt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function E0(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function v0(e,t){return typeof e=="function"?e(t):e}function S0(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:f,style:p}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const y=Si(o,l)||{};return p?p(a):Ar(a,n,g=>{let h=ci(y,f,g);return g===h&&typeof g=="string"&&(h=ci(y,f,`${r}${g==="default"?"":rn(g)}`,g)),c===!1?h:{[c]:h}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??Oi;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const f=$h(o.breakpoints),p=Object.keys(f);let y=f;return Object.keys(l).forEach(T=>{const g=v0(l[T],o);if(g!=null)if(typeof g=="object")if(a[T])y=oo(y,e(T,g,o,a));else{const h=Ar({theme:o},g,b=>({[T]:b}));E0(h,g)?y[T]=t({sx:g,theme:o,nested:!0}):y=oo(y,h)}else y=oo(y,e(T,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":ac(o,cc(p,y))}:ac(o,cc(p,y))}return Array.isArray(n)?n.map(s):s(n)}return t}const Cn=S0();Cn.filterProps=["sx"];function x0(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Za(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),x0(e,t,r)}function T0(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Dr(e){if(e.type)return e;if(e.charAt(0)==="#")return Dr(T0(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
12
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Nr(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
13
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Nr(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const _0=e=>{const t=Dr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},to=(e,t)=>{try{return _0(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function tu(e){e=Dr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(l,f=(l+r/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Pi({type:s,values:c})}function ka(e){e=Dr(e);let t=e.type==="hsl"||e.type==="hsla"?Dr(tu(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function uc(e,t){const r=ka(e),n=ka(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function ru(e,t){return e=Dr(e),t=Za(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pi(e)}function Vr(e,t,r){try{return ru(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ii(e,t){if(e=Dr(e),t=Za(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pi(e)}function Fe(e,t,r){try{return Ii(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Mi(e,t){if(e=Dr(e),t=Za(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pi(e)}function Ue(e,t,r){try{return Mi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function C0(e,t=.15){return ka(e)>.5?Ii(e,t):Mi(e,t)}function Fo(e,t,r){try{return C0(e,t)}catch{return e}}const lo={black:"#000",white:"#fff"},A0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},un={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},fn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},zn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},hn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function nu(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lo.white,default:lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ou=nu();function iu(){return{text:{primary:lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Oa=iu();function fc(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Mi(e.main,o):t==="dark"&&(e.dark=Ii(e.main,i)))}function dc(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function R0(e="light"){return e==="dark"?{main:dn[200],light:dn[50],dark:dn[400]}:{main:dn[700],light:dn[400],dark:dn[800]}}function k0(e="light"){return e==="dark"?{main:un[200],light:un[50],dark:un[400]}:{main:un[500],light:un[300],dark:un[700]}}function O0(e="light"){return e==="dark"?{main:fn[500],light:fn[300],dark:fn[700]}:{main:fn[700],light:fn[400],dark:fn[800]}}function P0(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:pn[700],light:pn[500],dark:pn[900]}}function I0(e="light"){return e==="dark"?{main:hn[400],light:hn[300],dark:hn[700]}:{main:hn[800],light:hn[500],dark:hn[900]}}function M0(e="light"){return e==="dark"?{main:zn[400],light:zn[300],dark:zn[700]}:{main:"#ed6c02",light:zn[500],dark:zn[900]}}function N0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ja(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||R0(t),s=e.secondary||k0(t),c=e.error||O0(t),l=e.info||P0(t),f=e.success||I0(t),p=e.warning||M0(t);function y(b){if(o)return N0(b);const v=uc(b,Oa.text.primary)>=r?Oa.text.primary:ou.text.primary;if(process.env.NODE_ENV!=="production"){const O=uc(b,v);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14
- `))}return v}const T=({color:b,name:v,mainShade:O=500,lightShade:P=300,darkShade:k=700})=>{if(b={...b},!b.main&&b[O]&&(b.main=b[O]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
15
- The color object needs to have a \`main\` property or a \`${O}\` property.`:Nr(11,v?` (${v})`:"",O));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
11
+ `)),()=>{})}function Xa(e){return bo(e,"spacing",8,"spacing")}function wo(e,t){return typeof t=="string"||t==null?t:e(t)}function qh(e,t){return r=>e.reduce((n,o)=>(n[o]=wo(t,r),n),{})}function Wh(e,t,r,n){if(!t.includes(r))return null;const o=zh(r),i=qh(o,n),a=e[r];return Or(e,a,i)}function tu(e,t){const r=Xa(e.theme);return Object.keys(e).map(n=>Wh(e,t,n,r)).reduce(io,{})}function Ze(e){return tu(e,xi)}Ze.propTypes=process.env.NODE_ENV!=="production"?xi.reduce((e,t)=>(e[t]=Br,e),{}):{};Ze.filterProps=xi;function et(e){return tu(e,Ti)}et.propTypes=process.env.NODE_ENV!=="production"?Ti.reduce((e,t)=>(e[t]=Br,e),{}):{};et.filterProps=Ti;process.env.NODE_ENV!=="production"&&Hh.reduce((e,t)=>(e[t]=Br,e),{});function _i(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?io(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function jt(e){return typeof e!="number"?e:`${e}px solid`}function Wt(e,t){return tt({prop:e,themeKey:"borders",transform:t})}const Gh=Wt("border",jt),Vh=Wt("borderTop",jt),Yh=Wt("borderRight",jt),Kh=Wt("borderBottom",jt),Xh=Wt("borderLeft",jt),Qh=Wt("borderColor"),Jh=Wt("borderTopColor"),Zh=Wt("borderRightColor"),e0=Wt("borderBottomColor"),t0=Wt("borderLeftColor"),r0=Wt("outline",jt),n0=Wt("outlineColor"),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:wo(t,n)});return Or(e,e.borderRadius,r)}return null};Ci.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Br}:{};Ci.filterProps=["borderRadius"];_i(Gh,Vh,Yh,Kh,Xh,Qh,Jh,Zh,e0,t0,Ci,r0,n0);const Ai=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bo(e.theme,"spacing",8,"gap"),r=n=>({gap:wo(t,n)});return Or(e,e.gap,r)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{gap:Br}:{};Ai.filterProps=["gap"];const Ri=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:wo(t,n)});return Or(e,e.columnGap,r)}return null};Ri.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Br}:{};Ri.filterProps=["columnGap"];const Oi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:wo(t,n)});return Or(e,e.rowGap,r)}return null};Oi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Br}:{};Oi.filterProps=["rowGap"];const o0=tt({prop:"gridColumn"}),i0=tt({prop:"gridRow"}),a0=tt({prop:"gridAutoFlow"}),s0=tt({prop:"gridAutoColumns"}),c0=tt({prop:"gridAutoRows"}),l0=tt({prop:"gridTemplateColumns"}),u0=tt({prop:"gridTemplateRows"}),f0=tt({prop:"gridTemplateAreas"}),d0=tt({prop:"gridArea"});_i(Ai,Ri,Oi,o0,i0,a0,s0,c0,l0,u0,f0,d0);function xn(e,t){return t==="grey"?t:e}const p0=tt({prop:"color",themeKey:"palette",transform:xn}),h0=tt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xn}),m0=tt({prop:"backgroundColor",themeKey:"palette",transform:xn});_i(p0,h0,m0);function Mt(e){return e<=1&&e!==0?`${e*100}%`:e}const g0=tt({prop:"width",transform:Mt}),Qa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||vi[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Mt(r)}};return Or(e,e.maxWidth,t)}return null};Qa.filterProps=["maxWidth"];const y0=tt({prop:"minWidth",transform:Mt}),b0=tt({prop:"height",transform:Mt}),w0=tt({prop:"maxHeight",transform:Mt}),E0=tt({prop:"minHeight",transform:Mt});tt({prop:"size",cssProperty:"width",transform:Mt});tt({prop:"size",cssProperty:"height",transform:Mt});const v0=tt({prop:"boxSizing"});_i(g0,Qa,y0,b0,w0,E0,v0);const ki={border:{themeKey:"borders",transform:jt},borderTop:{themeKey:"borders",transform:jt},borderRight:{themeKey:"borders",transform:jt},borderBottom:{themeKey:"borders",transform:jt},borderLeft:{themeKey:"borders",transform:jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:xn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xn},backgroundColor:{themeKey:"palette",transform:xn},p:{style:et},pt:{style:et},pr:{style:et},pb:{style:et},pl:{style:et},px:{style:et},py:{style:et},padding:{style:et},paddingTop:{style:et},paddingRight:{style:et},paddingBottom:{style:et},paddingLeft:{style:et},paddingX:{style:et},paddingY:{style:et},paddingInline:{style:et},paddingInlineStart:{style:et},paddingInlineEnd:{style:et},paddingBlock:{style:et},paddingBlockStart:{style:et},paddingBlockEnd:{style:et},m:{style:Ze},mt:{style:Ze},mr:{style:Ze},mb:{style:Ze},ml:{style:Ze},mx:{style:Ze},my:{style:Ze},margin:{style:Ze},marginTop:{style:Ze},marginRight:{style:Ze},marginBottom:{style:Ze},marginLeft:{style:Ze},marginX:{style:Ze},marginY:{style:Ze},marginInline:{style:Ze},marginInlineStart:{style:Ze},marginInlineEnd:{style:Ze},marginBlock:{style:Ze},marginBlockStart:{style:Ze},marginBlockEnd:{style:Ze},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ai},rowGap:{style:Oi},columnGap:{style:Ri},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mt},maxWidth:{style:Qa},minWidth:{transform:Mt},height:{transform:Mt},maxHeight:{transform:Mt},minHeight:{transform:Mt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S0(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function x0(e,t){return typeof e=="function"?e(t):e}function T0(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:c=r,themeKey:l,transform:u,style:p}=s;if(n==null)return null;if(l==="typography"&&n==="inherit")return{[r]:n};const g=Si(o,l)||{};return p?p(a):Or(a,n,y=>{let h=ci(g,u,y);return y===h&&typeof y=="string"&&(h=ci(g,u,`${r}${y==="default"?"":nn(y)}`,y)),c===!1?h:{[c]:h}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??ki;function s(c){let l=c;if(typeof c=="function")l=c(o);else if(typeof c!="object")return c;if(!l)return null;const u=Bh(o.breakpoints),p=Object.keys(u);let g=u;return Object.keys(l).forEach(S=>{const y=x0(l[S],o);if(y!=null)if(typeof y=="object")if(a[S])g=io(g,e(S,y,o,a));else{const h=Or({theme:o},y,b=>({[S]:b}));S0(h,y)?g[S]=t({sx:y,theme:o,nested:!0}):g=io(g,h)}else g=io(g,e(S,y,o,a))}),!i&&o.modularCssLayers?{"@layer sx":ac(o,cc(p,g))}:ac(o,cc(p,g))}return Array.isArray(n)?n.map(s):s(n)}return t}const Cn=T0();Cn.filterProps=["sx"];function _0(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ja(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),_0(e,t,r)}function C0(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Lr(e){if(e.type)return e;if(e.charAt(0)==="#")return Lr(C0(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
12
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:$r(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
13
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:$r(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const A0=e=>{const t=Lr(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},ro=(e,t)=>{try{return A0(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Pi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function ru(e){e=Lr(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(l,u=(l+r/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let s="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",c.push(t[3])),Pi({type:s,values:c})}function Oa(e){e=Lr(e);let t=e.type==="hsl"||e.type==="hsla"?Lr(ru(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function uc(e,t){const r=Oa(e),n=Oa(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function nu(e,t){return e=Lr(e),t=Ja(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Pi(e)}function Yr(e,t,r){try{return nu(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ii(e,t){if(e=Lr(e),t=Ja(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Pi(e)}function Ue(e,t,r){try{return Ii(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Mi(e,t){if(e=Lr(e),t=Ja(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Pi(e)}function je(e,t,r){try{return Mi(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function R0(e,t=.15){return Oa(e)>.5?Ii(e,t):Mi(e,t)}function Fo(e,t,r){try{return R0(e,t)}catch{return e}}const uo={black:"#000",white:"#fff"},O0={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},un={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},fn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Hn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},hn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ou(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:uo.white,default:uo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const iu=ou();function au(){return{text:{primary:uo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:uo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ka=au();function fc(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Mi(e.main,o):t==="dark"&&(e.dark=Ii(e.main,i)))}function dc(e,t,r,n,o){const i=o.light||o,a=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function k0(e="light"){return e==="dark"?{main:dn[200],light:dn[50],dark:dn[400]}:{main:dn[700],light:dn[400],dark:dn[800]}}function P0(e="light"){return e==="dark"?{main:un[200],light:un[50],dark:un[400]}:{main:un[500],light:un[300],dark:un[700]}}function I0(e="light"){return e==="dark"?{main:fn[500],light:fn[300],dark:fn[700]}:{main:fn[700],light:fn[400],dark:fn[800]}}function M0(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:pn[700],light:pn[500],dark:pn[900]}}function N0(e="light"){return e==="dark"?{main:hn[400],light:hn[300],dark:hn[700]}:{main:hn[800],light:hn[500],dark:hn[900]}}function D0(e="light"){return e==="dark"?{main:Hn[400],light:Hn[300],dark:Hn[700]}:{main:"#ed6c02",light:Hn[500],dark:Hn[900]}}function $0(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Za(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,a=e.primary||k0(t),s=e.secondary||P0(t),c=e.error||I0(t),l=e.info||M0(t),u=e.success||N0(t),p=e.warning||D0(t);function g(b){if(o)return $0(b);const v=uc(b,ka.text.primary)>=r?ka.text.primary:iu.text.primary;if(process.env.NODE_ENV!=="production"){const k=uc(b,v);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${v} on ${b}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
14
+ `))}return v}const S=({color:b,name:v,mainShade:k=500,lightShade:P=300,darkShade:O=700})=>{if(b={...b},!b.main&&b[k]&&(b.main=b[k]),!b.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
15
+ The color object needs to have a \`main\` property or a \`${k}\` property.`:$r(11,v?` (${v})`:"",k));if(typeof b.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
16
16
  \`color.main\` should be a string, but \`${JSON.stringify(b.main)}\` was provided instead.
17
17
 
18
18
  Did you intend to use one of the following approaches?
@@ -25,18 +25,18 @@ const theme1 = createTheme({ palette: {
25
25
 
26
26
  const theme2 = createTheme({ palette: {
27
27
  primary: { main: green[500] },
28
- } });`:Nr(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(dc(o,b,"light",P,n),dc(o,b,"dark",k,n)):(fc(b,"light",P,n),fc(b,"dark",k,n)),b.contrastText||(b.contrastText=y(b.main)),b};let g;return t==="light"?g=nu():t==="dark"&&(g=iu()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Lt({common:{...lo},mode:t,primary:T({color:a,name:"primary"}),secondary:T({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:c,name:"error"}),warning:T({color:p,name:"warning"}),info:T({color:l,name:"info"}),success:T({color:f,name:"success"}),grey:A0,contrastThreshold:r,getContrastText:y,augmentColor:T,tonalOffset:n,...g},i)}function D0(e,t){const r=Yf(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
29
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function $0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const pc=[];function Jr(e){return pc[0]=e,vl(pc)}function Pa(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=t[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;n[i][l]=Pa(a[l],s[l],r)}}}else i==="className"&&r&&t.className?n.className=Zl(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}const L0=At.createContext(void 0);process.env.NODE_ENV!=="production"&&(Pe.node,Pe.object);function B0(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Pa(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Pa(o,n,t.components.mergeClassNameAndStyle):n}function F0({props:e,name:t}){const r=At.useContext(L0);return B0({props:e,name:t,theme:{components:r}})}const U0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function j0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=U0(t),a=Object.keys(i);function s(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r})`}function c(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-n/100}${r})`}function l(y,T){const g=a.indexOf(T);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:T)-n/100}${r})`}function f(y){return a.indexOf(y)+1<a.length?l(y,a[a.indexOf(y)+1]):s(y)}function p(y){const T=a.indexOf(y);return T===0?s(a[1]):T===a.length-1?c(a[T]):l(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:f,not:p,unit:r,...o}}const z0={borderRadius:4};function H0(e=8,t=Xa({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function q0(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function au(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=j0(r),c=H0(o);let l=Lt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...z0,...i}},a);return l=Nh(l),l.applyStyles=q0,l=t.reduce((f,p)=>Lt(f,p),l),l.unstable_sxConfig={...Oi,...a?.unstable_sxConfig},l.unstable_sx=function(p){return Cn({sx:p,theme:this})},l}const hc=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},W0=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!r||r&&!r([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,s],Array.isArray(c)?[...a,s]:a):t([...i,s],c,a))})}n(e)},G0=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ea(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return W0(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const f=`--${r?`${r}-`:""}${s.join("-")}`,p=G0(s,c);Object.assign(o,{[f]:p}),hc(i,s,`var(${f})`,l),hc(a,s,`var(${f}, ${p})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function V0(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:f,css:p,varsWithDefaults:y}=ea(l,t);let T=y;const g={},{[c]:h,...b}=a;if(Object.entries(b||{}).forEach(([k,d])=>{const{vars:E,css:x,varsWithDefaults:R}=ea(d,t);T=Lt(T,R),g[k]={css:x,vars:E}}),h){const{css:k,vars:d,varsWithDefaults:E}=ea(h,t);T=Lt(T,E),g[c]={css:k,vars:d}}function v(k,d){let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),k){if(E==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${a[k]?.palette?.mode||k})`]:{":root":d}};if(E)return e.defaultColorScheme===k?`:root, ${E.replace("%s",String(k))}`:E.replace("%s",String(k))}return":root"}return{vars:T,generateThemeVars:()=>{let k={...f};return Object.entries(g).forEach(([,{vars:d}])=>{k=Lt(k,d)}),k},generateStyleSheets:()=>{const k=[],d=e.defaultColorScheme||"light";function E(N,W){Object.keys(W).length&&k.push(typeof N=="string"?{[N]:{...W}}:N)}E(r(void 0,{...p}),p);const{[d]:x,...R}=g;if(x){const{css:N}=x,W=a[d]?.palette?.mode,F=!n&&W?{colorScheme:W,...N}:{...N};E(r(d,{...F}),F)}return Object.entries(R).forEach(([N,{css:W}])=>{const F=a[N]?.palette?.mode,m=!n&&F?{colorScheme:F,...W}:{...W};E(r(N,{...m}),m)}),i&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function Y0(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function K0(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const mc=e=>e,X0=()=>{let e=mc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mc}}},Q0=X0(),Z0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function es(e,t,r="Mui"){const n=Z0[t];return n?`${r}-${n}`:`${Q0.generate(e)}-${t}`}function J0(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function em(e){return Math.round(e*1e5)/1e5}const gc={textTransform:"uppercase"},yc='"Roboto", "Helvetica", "Arial", sans-serif';function tm(e,t){const{fontFamily:r=yc,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:f,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=n/14,T=f||(b=>`${b/c*y}rem`),g=(b,v,O,P,k)=>({fontFamily:r,fontWeight:b,fontSize:T(v),lineHeight:O,...r===yc?{letterSpacing:`${em(P/v)}em`}:{},...k,...l}),h={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,gc),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,gc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Lt({htmlFontSize:c,pxToRem:T,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...h},p,{clone:!1})}const rm=.2,nm=.14,om=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${rm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${nm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${om})`].join(",")}const im=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],am={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bc(e){return`${Math.round(e)}ms`}function cm(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function lm(e){const t={...am,...e.easing},r={...sm,...e.duration};return{getAutoHeightDuration:cm,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const f=y=>typeof y=="string",p=y=>!Number.isNaN(parseFloat(y));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!f(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!f(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
30
- `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:bc(a)} ${s} ${typeof c=="string"?c:bc(c)}`).join(",")},...e,easing:t,duration:r}}const um={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fm(e){return Tr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function su(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!fm(s)||a.startsWith("unstable_")?delete n[a]:Tr(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
28
+ } });`:$r(12,v?` (${v})`:"",JSON.stringify(b.main)));return o?(dc(o,b,"light",P,n),dc(o,b,"dark",O,n)):(fc(b,"light",P,n),fc(b,"dark",O,n)),b.contrastText||(b.contrastText=g(b.main)),b};let y;return t==="light"?y=ou():t==="dark"&&(y=au()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Dt({common:{...uo},mode:t,primary:S({color:a,name:"primary"}),secondary:S({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:c,name:"error"}),warning:S({color:p,name:"warning"}),info:S({color:l,name:"info"}),success:S({color:u,name:"success"}),grey:O0,contrastThreshold:r,getContrastText:g,augmentColor:S,tonalOffset:n,...y},i)}function L0(e,t){const r=Xf(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
29
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function B0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const pc=[];function en(e){return pc[0]=e,Sl(pc)}function Pa(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],s=t[i];if(!s)n[i]=a||{};else if(!a)n[i]=s;else{n[i]={...s};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const l=c;n[i][l]=Pa(a[l],s[l],r)}}}else i==="className"&&r&&t.className?n.className=Zl(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}const F0=Ct.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ie.node,Ie.object);function U0(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Pa(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Pa(o,n,t.components.mergeClassNameAndStyle):n}function j0({props:e,name:t}){const r=Ct.useContext(F0);return U0({props:e,name:t,theme:{components:r}})}const z0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function H0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=z0(t),a=Object.keys(i);function s(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function l(g,S){const y=a.indexOf(S);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:S)-n/100}${r})`}function u(g){return a.indexOf(g)+1<a.length?l(g,a[a.indexOf(g)+1]):s(g)}function p(g){const S=a.indexOf(g);return S===0?s(a[1]):S===a.length-1?c(a[S]):l(g,a[a.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:s,down:c,between:l,only:u,not:p,unit:r,...o}}const q0={borderRadius:4};function W0(e=8,t=Xa({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return r.mui=!0,r}function G0(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function su(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=H0(r),c=W0(o);let l=Dt({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...q0,...i}},a);return l=$h(l),l.applyStyles=G0,l=t.reduce((u,p)=>Dt(u,p),l),l.unstable_sxConfig={...ki,...a?.unstable_sxConfig},l.unstable_sx=function(p){return Cn({sx:p,theme:this})},l}const hc=(e,t,r,n=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},V0=(e,t,r)=>{function n(o,i=[],a=[]){Object.entries(o).forEach(([s,c])=>{(!r||r&&!r([...i,s]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,s],Array.isArray(c)?[...a,s]:a):t([...i,s],c,a))})}n(e)},Y0=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ea(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return V0(e,(s,c,l)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(s,c))){const u=`--${r?`${r}-`:""}${s.join("-")}`,p=Y0(s,c);Object.assign(o,{[u]:p}),hc(i,s,`var(${u})`,l),hc(a,s,`var(${u}, ${p})`,l)}},s=>s[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function K0(e,t={}){const{getSelector:r=v,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:s,defaultColorScheme:c="light",...l}=e,{vars:u,css:p,varsWithDefaults:g}=ea(l,t);let S=g;const y={},{[c]:h,...b}=a;if(Object.entries(b||{}).forEach(([O,d])=>{const{vars:E,css:T,varsWithDefaults:R}=ea(d,t);S=Dt(S,R),y[O]={css:T,vars:E}}),h){const{css:O,vars:d,varsWithDefaults:E}=ea(h,t);S=Dt(S,E),y[c]={css:O,vars:d}}function v(O,d){let E=o;if(o==="class"&&(E=".%s"),o==="data"&&(E="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(E=`[${o}="%s"]`),O){if(E==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${a[O]?.palette?.mode||O})`]:{":root":d}};if(E)return e.defaultColorScheme===O?`:root, ${E.replace("%s",String(O))}`:E.replace("%s",String(O))}return":root"}return{vars:S,generateThemeVars:()=>{let O={...u};return Object.entries(y).forEach(([,{vars:d}])=>{O=Dt(O,d)}),O},generateStyleSheets:()=>{const O=[],d=e.defaultColorScheme||"light";function E(N,W){Object.keys(W).length&&O.push(typeof N=="string"?{[N]:{...W}}:N)}E(r(void 0,{...p}),p);const{[d]:T,...R}=y;if(T){const{css:N}=T,W=a[d]?.palette?.mode,B=!n&&W?{colorScheme:W,...N}:{...N};E(r(d,{...B}),B)}return Object.entries(R).forEach(([N,{css:W}])=>{const B=a[N]?.palette?.mode,m=!n&&B?{colorScheme:B,...W}:{...W};E(r(N,{...m}),m)}),i&&O.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),O}}}function X0(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Q0(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const mc=e=>e,J0=()=>{let e=mc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mc}}},Z0=J0(),em={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function es(e,t,r="Mui"){const n=em[t];return n?`${r}-${n}`:`${Z0.generate(e)}-${t}`}function tm(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function rm(e){return Math.round(e*1e5)/1e5}const gc={textTransform:"uppercase"},yc='"Roboto", "Helvetica", "Arial", sans-serif';function nm(e,t){const{fontFamily:r=yc,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=n/14,S=u||(b=>`${b/c*g}rem`),y=(b,v,k,P,O)=>({fontFamily:r,fontWeight:b,fontSize:S(v),lineHeight:k,...r===yc?{letterSpacing:`${rm(P/v)}em`}:{},...O,...l}),h={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(a,14,1.75,.4,gc),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,gc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dt({htmlFontSize:c,pxToRem:S,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...h},p,{clone:!1})}const om=.2,im=.14,am=.12;function Ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${om})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${im})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${am})`].join(",")}const sm=["none",Ke(0,2,1,-1,0,1,1,0,0,1,3,0),Ke(0,3,1,-2,0,2,2,0,0,1,5,0),Ke(0,3,3,-2,0,3,4,0,0,1,8,0),Ke(0,2,4,-1,0,4,5,0,0,1,10,0),Ke(0,3,5,-1,0,5,8,0,0,1,14,0),Ke(0,3,5,-1,0,6,10,0,0,1,18,0),Ke(0,4,5,-2,0,7,10,1,0,2,16,1),Ke(0,5,5,-3,0,8,10,1,0,3,14,2),Ke(0,5,6,-3,0,9,12,1,0,3,16,2),Ke(0,6,6,-3,0,10,14,1,0,4,18,3),Ke(0,6,7,-4,0,11,15,1,0,4,20,3),Ke(0,7,8,-4,0,12,17,2,0,5,22,4),Ke(0,7,8,-4,0,13,19,2,0,5,24,4),Ke(0,7,9,-4,0,14,21,2,0,5,26,4),Ke(0,8,9,-5,0,15,22,2,0,6,28,5),Ke(0,8,10,-5,0,16,24,2,0,6,30,5),Ke(0,8,11,-5,0,17,26,2,0,6,32,5),Ke(0,9,11,-5,0,18,28,2,0,7,34,6),Ke(0,9,12,-6,0,19,29,2,0,7,36,6),Ke(0,10,13,-6,0,20,31,3,0,8,38,7),Ke(0,10,13,-6,0,21,33,3,0,8,40,7),Ke(0,10,14,-6,0,22,35,3,0,8,42,7),Ke(0,11,14,-7,0,23,36,3,0,9,44,8),Ke(0,11,15,-7,0,24,38,3,0,9,46,8)],cm={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bc(e){return`${Math.round(e)}ms`}function um(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fm(e){const t={...cm,...e.easing},r={...lm,...e.duration};return{getAutoHeightDuration:um,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:c=0,...l}=i;if(process.env.NODE_ENV!=="production"){const u=g=>typeof g=="string",p=g=>!Number.isNaN(parseFloat(g));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(s)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
30
+ `)),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:bc(a)} ${s} ${typeof c=="string"?c:bc(c)}`).join(",")},...e,easing:t,duration:r}}const dm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function pm(e){return Cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function cu(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[a,s]=o[i];!pm(s)||a.startsWith("unstable_")?delete n[a]:Cr(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
31
31
 
32
32
  const theme = ${JSON.stringify(t,null,2)};
33
33
 
34
34
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
35
35
  theme.transitions = createTransitions(theme.transitions || {});
36
36
 
37
- export default theme;`}function wc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const dm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function pm(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:ru(t,dm(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${wc(r)})`:Mi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${wc(r)})`:Ii(t,r)}})}function Ia(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...f}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Nr(20));const p=Ja({...i,colorSpace:l}),y=au(e);let T=Lt(y,{mixins:J0(y.breakpoints,n),palette:p,shadows:im.slice(),typography:tm(p,s),transitions:lm(a),zIndex:{...um}});if(T=Lt(T,f),T=t.reduce((g,h)=>Lt(g,h),T),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(b,v)=>{let O;for(O in b){const P=b[O];if(g.includes(O)&&Object.keys(P).length>0){if(process.env.NODE_ENV!=="production"){const k=es("",O);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:P}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
38
- `))}b[O]={}}}};Object.keys(T.components).forEach(b=>{const v=T.components[b].styleOverrides;v&&b.startsWith("Mui")&&h(v,b)})}return T.unstable_sxConfig={...Oi,...f?.unstable_sxConfig},T.unstable_sx=function(h){return Cn({sx:h,theme:this})},T.toRuntimeSource=su,pm(T),T}function hm(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const mm=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=hm(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function cu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function lu(e){return e==="dark"?mm:[]}function gm(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Ja({...t,colorSpace:o});return{palette:a,opacity:{...cu(a.mode),...r},overlays:n||lu(a.mode),...i}}function ym(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const bm=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],wm=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return bm(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function Em(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function L(e,t,r){!e[t]&&r&&(e[t]=r)}function ro(e){return typeof e!="string"||!e.startsWith("hsl")?e:tu(e)}function wr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=to(ro(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
39
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function vm(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const cr=e=>{try{return e()}catch{}},Sm=(e="mui")=>nn.unstable_createGetCssVar(e);function ta(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=gm({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...s}=Ia({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...cu(i),...r?.opacity},overlays:r?.overlays||lu(i)},s}function xm(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=ym,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...f}=e,p=Object.keys(r)[0],y=n||(r.light&&p!=="light"?"light":p),T=Sm(i),{[y]:g,light:h,dark:b,...v}=r,O={...v};let P=g;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Nr(21,y));let k;a&&(k="oklch");const d=ta(k,O,P,f,y);h&&!O.light&&ta(k,O,h,void 0,"light"),b&&!O.dark&&ta(k,O,b,void 0,"dark");let E={defaultColorScheme:y,...d,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:T,colorSchemes:O,font:{...Y0(d.typography),...d.font},spacing:vm(f.spacing)};Object.keys(E.colorSchemes).forEach(F=>{const m=E.colorSchemes[F].palette,$=q=>{const Z=q.split("-"),fe=Z[1],Ce=Z[2];return T(q,m[fe][Ce])};m.mode==="light"&&(L(m.common,"background","#fff"),L(m.common,"onBackground","#000")),m.mode==="dark"&&(L(m.common,"background","#000"),L(m.common,"onBackground","#fff"));function I(q,Z,fe){if(k){let Ce;return q===Vr&&(Ce=`transparent ${((1-fe)*100).toFixed(0)}%`),q===Fe&&(Ce=`#000 ${(fe*100).toFixed(0)}%`),q===Ue&&(Ce=`#fff ${(fe*100).toFixed(0)}%`),`color-mix(in ${k}, ${Z}, ${Ce})`}return q(Z,fe)}if(Em(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){L(m.Alert,"errorColor",I(Fe,m.error.light,.6)),L(m.Alert,"infoColor",I(Fe,m.info.light,.6)),L(m.Alert,"successColor",I(Fe,m.success.light,.6)),L(m.Alert,"warningColor",I(Fe,m.warning.light,.6)),L(m.Alert,"errorFilledBg",$("palette-error-main")),L(m.Alert,"infoFilledBg",$("palette-info-main")),L(m.Alert,"successFilledBg",$("palette-success-main")),L(m.Alert,"warningFilledBg",$("palette-warning-main")),L(m.Alert,"errorFilledColor",cr(()=>m.getContrastText(m.error.main))),L(m.Alert,"infoFilledColor",cr(()=>m.getContrastText(m.info.main))),L(m.Alert,"successFilledColor",cr(()=>m.getContrastText(m.success.main))),L(m.Alert,"warningFilledColor",cr(()=>m.getContrastText(m.warning.main))),L(m.Alert,"errorStandardBg",I(Ue,m.error.light,.9)),L(m.Alert,"infoStandardBg",I(Ue,m.info.light,.9)),L(m.Alert,"successStandardBg",I(Ue,m.success.light,.9)),L(m.Alert,"warningStandardBg",I(Ue,m.warning.light,.9)),L(m.Alert,"errorIconColor",$("palette-error-main")),L(m.Alert,"infoIconColor",$("palette-info-main")),L(m.Alert,"successIconColor",$("palette-success-main")),L(m.Alert,"warningIconColor",$("palette-warning-main")),L(m.AppBar,"defaultBg",$("palette-grey-100")),L(m.Avatar,"defaultBg",$("palette-grey-400")),L(m.Button,"inheritContainedBg",$("palette-grey-300")),L(m.Button,"inheritContainedHoverBg",$("palette-grey-A100")),L(m.Chip,"defaultBorder",$("palette-grey-400")),L(m.Chip,"defaultAvatarColor",$("palette-grey-700")),L(m.Chip,"defaultIconColor",$("palette-grey-700")),L(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(m.LinearProgress,"primaryBg",I(Ue,m.primary.main,.62)),L(m.LinearProgress,"secondaryBg",I(Ue,m.secondary.main,.62)),L(m.LinearProgress,"errorBg",I(Ue,m.error.main,.62)),L(m.LinearProgress,"infoBg",I(Ue,m.info.main,.62)),L(m.LinearProgress,"successBg",I(Ue,m.success.main,.62)),L(m.LinearProgress,"warningBg",I(Ue,m.warning.main,.62)),L(m.Skeleton,"bg",k?I(Vr,m.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),L(m.Slider,"primaryTrack",I(Ue,m.primary.main,.62)),L(m.Slider,"secondaryTrack",I(Ue,m.secondary.main,.62)),L(m.Slider,"errorTrack",I(Ue,m.error.main,.62)),L(m.Slider,"infoTrack",I(Ue,m.info.main,.62)),L(m.Slider,"successTrack",I(Ue,m.success.main,.62)),L(m.Slider,"warningTrack",I(Ue,m.warning.main,.62));const q=k?I(Fe,m.background.default,.6825):Fo(m.background.default,.8);L(m.SnackbarContent,"bg",q),L(m.SnackbarContent,"color",cr(()=>k?Oa.text.primary:m.getContrastText(q))),L(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),L(m.StepConnector,"border",$("palette-grey-400")),L(m.StepContent,"border",$("palette-grey-400")),L(m.Switch,"defaultColor",$("palette-common-white")),L(m.Switch,"defaultDisabledColor",$("palette-grey-100")),L(m.Switch,"primaryDisabledColor",I(Ue,m.primary.main,.62)),L(m.Switch,"secondaryDisabledColor",I(Ue,m.secondary.main,.62)),L(m.Switch,"errorDisabledColor",I(Ue,m.error.main,.62)),L(m.Switch,"infoDisabledColor",I(Ue,m.info.main,.62)),L(m.Switch,"successDisabledColor",I(Ue,m.success.main,.62)),L(m.Switch,"warningDisabledColor",I(Ue,m.warning.main,.62)),L(m.TableCell,"border",I(Ue,I(Vr,m.divider,1),.88)),L(m.Tooltip,"bg",I(Vr,m.grey[700],.92))}if(m.mode==="dark"){L(m.Alert,"errorColor",I(Ue,m.error.light,.6)),L(m.Alert,"infoColor",I(Ue,m.info.light,.6)),L(m.Alert,"successColor",I(Ue,m.success.light,.6)),L(m.Alert,"warningColor",I(Ue,m.warning.light,.6)),L(m.Alert,"errorFilledBg",$("palette-error-dark")),L(m.Alert,"infoFilledBg",$("palette-info-dark")),L(m.Alert,"successFilledBg",$("palette-success-dark")),L(m.Alert,"warningFilledBg",$("palette-warning-dark")),L(m.Alert,"errorFilledColor",cr(()=>m.getContrastText(m.error.dark))),L(m.Alert,"infoFilledColor",cr(()=>m.getContrastText(m.info.dark))),L(m.Alert,"successFilledColor",cr(()=>m.getContrastText(m.success.dark))),L(m.Alert,"warningFilledColor",cr(()=>m.getContrastText(m.warning.dark))),L(m.Alert,"errorStandardBg",I(Fe,m.error.light,.9)),L(m.Alert,"infoStandardBg",I(Fe,m.info.light,.9)),L(m.Alert,"successStandardBg",I(Fe,m.success.light,.9)),L(m.Alert,"warningStandardBg",I(Fe,m.warning.light,.9)),L(m.Alert,"errorIconColor",$("palette-error-main")),L(m.Alert,"infoIconColor",$("palette-info-main")),L(m.Alert,"successIconColor",$("palette-success-main")),L(m.Alert,"warningIconColor",$("palette-warning-main")),L(m.AppBar,"defaultBg",$("palette-grey-900")),L(m.AppBar,"darkBg",$("palette-background-paper")),L(m.AppBar,"darkColor",$("palette-text-primary")),L(m.Avatar,"defaultBg",$("palette-grey-600")),L(m.Button,"inheritContainedBg",$("palette-grey-800")),L(m.Button,"inheritContainedHoverBg",$("palette-grey-700")),L(m.Chip,"defaultBorder",$("palette-grey-700")),L(m.Chip,"defaultAvatarColor",$("palette-grey-300")),L(m.Chip,"defaultIconColor",$("palette-grey-300")),L(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(m.LinearProgress,"primaryBg",I(Fe,m.primary.main,.5)),L(m.LinearProgress,"secondaryBg",I(Fe,m.secondary.main,.5)),L(m.LinearProgress,"errorBg",I(Fe,m.error.main,.5)),L(m.LinearProgress,"infoBg",I(Fe,m.info.main,.5)),L(m.LinearProgress,"successBg",I(Fe,m.success.main,.5)),L(m.LinearProgress,"warningBg",I(Fe,m.warning.main,.5)),L(m.Skeleton,"bg",k?I(Vr,m.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),L(m.Slider,"primaryTrack",I(Fe,m.primary.main,.5)),L(m.Slider,"secondaryTrack",I(Fe,m.secondary.main,.5)),L(m.Slider,"errorTrack",I(Fe,m.error.main,.5)),L(m.Slider,"infoTrack",I(Fe,m.info.main,.5)),L(m.Slider,"successTrack",I(Fe,m.success.main,.5)),L(m.Slider,"warningTrack",I(Fe,m.warning.main,.5));const q=k?I(Ue,m.background.default,.985):Fo(m.background.default,.98);L(m.SnackbarContent,"bg",q),L(m.SnackbarContent,"color",cr(()=>k?ou.text.primary:m.getContrastText(q))),L(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),L(m.StepConnector,"border",$("palette-grey-600")),L(m.StepContent,"border",$("palette-grey-600")),L(m.Switch,"defaultColor",$("palette-grey-300")),L(m.Switch,"defaultDisabledColor",$("palette-grey-600")),L(m.Switch,"primaryDisabledColor",I(Fe,m.primary.main,.55)),L(m.Switch,"secondaryDisabledColor",I(Fe,m.secondary.main,.55)),L(m.Switch,"errorDisabledColor",I(Fe,m.error.main,.55)),L(m.Switch,"infoDisabledColor",I(Fe,m.info.main,.55)),L(m.Switch,"successDisabledColor",I(Fe,m.success.main,.55)),L(m.Switch,"warningDisabledColor",I(Fe,m.warning.main,.55)),L(m.TableCell,"border",I(Fe,I(Vr,m.divider,1),.68)),L(m.Tooltip,"bg",I(Vr,m.grey[700],.92))}wr(m.background,"default"),wr(m.background,"paper"),wr(m.common,"background"),wr(m.common,"onBackground"),wr(m,"divider"),Object.keys(m).forEach(q=>{const Z=m[q];q!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&L(m[q],"mainChannel",to(ro(Z.main))),Z.light&&L(m[q],"lightChannel",to(ro(Z.light))),Z.dark&&L(m[q],"darkChannel",to(ro(Z.dark))),Z.contrastText&&L(m[q],"contrastTextChannel",to(ro(Z.contrastText))),q==="text"&&(wr(m[q],"primary"),wr(m[q],"secondary")),q==="action"&&(Z.active&&wr(m[q],"active"),Z.selected&&wr(m[q],"selected")))})}),E=t.reduce((F,m)=>Lt(F,m),E);const x={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:wm(E),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:W}=V0(E,x);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([F,m])=>{E[F]=m}),E.generateThemeVars=N,E.generateStyleSheets=W,E.generateSpacing=function(){return nn.createSpacing(f.spacing,Xa(this))},E.getColorSchemeSelector=K0(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...Oi,...f?.unstable_sxConfig},E.unstable_sx=function(m){return Cn({sx:m,theme:this})},E.toRuntimeSource=su,E}function Ec(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Ja({...r===!0?{}:r.palette,mode:t})})}function Tm(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ia(e,...t);let f=r;"palette"in e||l[s]&&(l[s]!==!0?f=l[s].palette:s==="dark"&&(f={mode:"dark"}));const p=Ia({...e,palette:f},...t);return p.defaultColorScheme=s,p.colorSchemes=l,p.palette.mode==="light"&&(p.colorSchemes.light={...l.light!==!0&&l.light,palette:p.palette},Ec(p,"dark",l.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:p.palette},Ec(p,"light",l.light)),p}return!r&&!("light"in l)&&s==="light"&&(l.light=!0),xm({...a,colorSchemes:l,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const _m=Tm(),Cm="$$material";function uu(e,t=""){return e.displayName||e.name||t}function vc(e,t,r){const n=uu(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Am(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return uu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case si.ForwardRef:return vc(e,e.render,"ForwardRef");case si.Memo:return vc(e,e.type,"memo");default:return}}}function Rm(e){const{variants:t,...r}=e,n={variants:t,style:Jr(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Jr(o.style))}),n}const km=au();function ra(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Qr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Om(e){return e?(t,r)=>r[e]:null}function Pm(e,t,r){e.theme=Dm(e.theme)?r:e.theme[t]||e.theme}function ni(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ni(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Qr(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?Qr(Jr(a),r):a}return fu(e,n.variants,[o],r)}return n?.isProcessed?r?Qr(Jr(n.style),r):n.style:r?Qr(Jr(n),r):n}function fu(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Qr(Jr(a.style(o)),n):a.style(o))):r.push(n?Qr(Jr(a.style),n):a.style)}return r}function Im(e={}){const{themeId:t,defaultTheme:r=km,rootShouldForwardProp:n=ra,slotShouldForwardProp:o=ra}=e;function i(s){Pm(s,t,r)}return(s,c={})=>{$0(s,E=>E.filter(x=>x!==Cn));const{name:l,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:T=Om(du(f)),...g}=c,h=l&&l.startsWith("Mui")||f?"components":"custom",b=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let O=ra;f==="Root"||f==="root"?O=n:f?O=o:$m(s)&&(O=void 0);const P=D0(s,{shouldForwardProp:O,label:Nm(l,f),...g}),k=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return ni(R,E,R.theme.modularCssLayers?h:void 0)};if(Tr(E)){const x=Rm(E);return function(N){return x.variants?ni(N,x,N.theme.modularCssLayers?h:void 0):N.theme.modularCssLayers?Qr(x.style,h):x.style}}return E},d=(...E)=>{const x=[],R=E.map(k),N=[];if(x.push(i),l&&T&&N.push(function($){const q=$.theme.components?.[l]?.styleOverrides;if(!q)return null;const Z={};for(const fe in q)Z[fe]=ni($,q[fe],$.theme.modularCssLayers?"theme":void 0);return T($,Z)}),l&&!b&&N.push(function($){const q=$.theme?.components?.[l]?.variants;return q?fu($,q,[],$.theme.modularCssLayers?"theme":void 0):null}),v||N.push(Cn),Array.isArray(R[0])){const m=R.shift(),$=new Array(x.length).fill(""),I=new Array(N.length).fill("");let q;q=[...$,...m,...I],q.raw=[...$,...m.raw,...I],x.unshift(q)}const W=[...x,...R,...N],F=P(...W);return s.muiName&&(F.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=Mm(l,f,s)),F};return P.withConfig&&(d.withConfig=P.withConfig),d}}function Mm(e,t,r){return e?`${e}${rn(t||"")}`:`Styled(${Am(r)})`}function Nm(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${du(t||"Root")}`),r}function Dm(e){for(const t in e)return!1;return!0}function $m(e){return typeof e=="string"&&e.charCodeAt(0)>96}function du(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Lm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Bm=e=>Lm(e)&&e!=="classes",pr=Im({themeId:Cm,defaultTheme:_m,rootShouldForwardProp:Bm}),ts=nn.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(Pe.node,Pe.object.isRequired);function Fm(e){return F0(e)}function Um(e){return typeof e.main=="string"}function jm(e,t=[]){if(!Um(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function zm(e=[]){return([,t])=>t&&jm(t,e)}function Hm(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=es(e,o,r)}),n}function qm(e){return es("MuiCircularProgress",e)}Hm("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Zt=44,Ma=nn.keyframes`
37
+ export default theme;`}function wc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const hm=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function mm(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:nu(t,hm(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${wc(r)})`:Mi(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${wc(r)})`:Ii(t,r)}})}function Ia(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":$r(20));const p=Za({...i,colorSpace:l}),g=su(e);let S=Dt(g,{mixins:tm(g.breakpoints,n),palette:p,shadows:sm.slice(),typography:nm(p,s),transitions:fm(a),zIndex:{...dm}});if(S=Dt(S,u),S=t.reduce((y,h)=>Dt(y,h),S),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(b,v)=>{let k;for(k in b){const P=b[k];if(y.includes(k)&&Object.keys(P).length>0){if(process.env.NODE_ENV!=="production"){const O=es("",k);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${k}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:P}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
38
+ `))}b[k]={}}}};Object.keys(S.components).forEach(b=>{const v=S.components[b].styleOverrides;v&&b.startsWith("Mui")&&h(v,b)})}return S.unstable_sxConfig={...ki,...u?.unstable_sxConfig},S.unstable_sx=function(h){return Cn({sx:h,theme:this})},S.toRuntimeSource=cu,mm(S),S}function gm(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const ym=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=gm(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function lu(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function uu(e){return e==="dark"?ym:[]}function bm(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,a=Za({...t,colorSpace:o});return{palette:a,opacity:{...lu(a.mode),...r},overlays:n||uu(a.mode),...i}}function wm(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Em=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],vm=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Em(e.cssVarPrefix).forEach(s=>{a[s]=r[s],delete r[s]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:a}}:i?{[i.replace("%s",t)]:a,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...a}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function Sm(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function L(e,t,r){!e[t]&&r&&(e[t]=r)}function no(e){return typeof e!="string"||!e.startsWith("hsl")?e:ru(e)}function vr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ro(no(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
39
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function xm(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const fr=e=>{try{return e()}catch{}},Tm=(e="mui")=>on.unstable_createGetCssVar(e);function ta(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=bm({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:a,...s}=Ia({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:a,opacity:{...lu(i),...r?.opacity},overlays:r?.overlays||uu(i)},s}function _m(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:s=wm,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:l=":root",...u}=e,p=Object.keys(r)[0],g=n||(r.light&&p!=="light"?"light":p),S=Tm(i),{[g]:y,light:h,dark:b,...v}=r,k={...v};let P=y;if((g==="dark"&&!("dark"in r)||g==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:$r(21,g));let O;a&&(O="oklch");const d=ta(O,k,P,u,g);h&&!k.light&&ta(O,k,h,void 0,"light"),b&&!k.dark&&ta(O,k,b,void 0,"dark");let E={defaultColorScheme:g,...d,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:S,colorSchemes:k,font:{...X0(d.typography),...d.font},spacing:xm(u.spacing)};Object.keys(E.colorSchemes).forEach(B=>{const m=E.colorSchemes[B].palette,$=q=>{const J=q.split("-"),fe=J[1],Ce=J[2];return S(q,m[fe][Ce])};m.mode==="light"&&(L(m.common,"background","#fff"),L(m.common,"onBackground","#000")),m.mode==="dark"&&(L(m.common,"background","#000"),L(m.common,"onBackground","#fff"));function I(q,J,fe){if(O){let Ce;return q===Yr&&(Ce=`transparent ${((1-fe)*100).toFixed(0)}%`),q===Ue&&(Ce=`#000 ${(fe*100).toFixed(0)}%`),q===je&&(Ce=`#fff ${(fe*100).toFixed(0)}%`),`color-mix(in ${O}, ${J}, ${Ce})`}return q(J,fe)}if(Sm(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){L(m.Alert,"errorColor",I(Ue,m.error.light,.6)),L(m.Alert,"infoColor",I(Ue,m.info.light,.6)),L(m.Alert,"successColor",I(Ue,m.success.light,.6)),L(m.Alert,"warningColor",I(Ue,m.warning.light,.6)),L(m.Alert,"errorFilledBg",$("palette-error-main")),L(m.Alert,"infoFilledBg",$("palette-info-main")),L(m.Alert,"successFilledBg",$("palette-success-main")),L(m.Alert,"warningFilledBg",$("palette-warning-main")),L(m.Alert,"errorFilledColor",fr(()=>m.getContrastText(m.error.main))),L(m.Alert,"infoFilledColor",fr(()=>m.getContrastText(m.info.main))),L(m.Alert,"successFilledColor",fr(()=>m.getContrastText(m.success.main))),L(m.Alert,"warningFilledColor",fr(()=>m.getContrastText(m.warning.main))),L(m.Alert,"errorStandardBg",I(je,m.error.light,.9)),L(m.Alert,"infoStandardBg",I(je,m.info.light,.9)),L(m.Alert,"successStandardBg",I(je,m.success.light,.9)),L(m.Alert,"warningStandardBg",I(je,m.warning.light,.9)),L(m.Alert,"errorIconColor",$("palette-error-main")),L(m.Alert,"infoIconColor",$("palette-info-main")),L(m.Alert,"successIconColor",$("palette-success-main")),L(m.Alert,"warningIconColor",$("palette-warning-main")),L(m.AppBar,"defaultBg",$("palette-grey-100")),L(m.Avatar,"defaultBg",$("palette-grey-400")),L(m.Button,"inheritContainedBg",$("palette-grey-300")),L(m.Button,"inheritContainedHoverBg",$("palette-grey-A100")),L(m.Chip,"defaultBorder",$("palette-grey-400")),L(m.Chip,"defaultAvatarColor",$("palette-grey-700")),L(m.Chip,"defaultIconColor",$("palette-grey-700")),L(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(m.LinearProgress,"primaryBg",I(je,m.primary.main,.62)),L(m.LinearProgress,"secondaryBg",I(je,m.secondary.main,.62)),L(m.LinearProgress,"errorBg",I(je,m.error.main,.62)),L(m.LinearProgress,"infoBg",I(je,m.info.main,.62)),L(m.LinearProgress,"successBg",I(je,m.success.main,.62)),L(m.LinearProgress,"warningBg",I(je,m.warning.main,.62)),L(m.Skeleton,"bg",O?I(Yr,m.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),L(m.Slider,"primaryTrack",I(je,m.primary.main,.62)),L(m.Slider,"secondaryTrack",I(je,m.secondary.main,.62)),L(m.Slider,"errorTrack",I(je,m.error.main,.62)),L(m.Slider,"infoTrack",I(je,m.info.main,.62)),L(m.Slider,"successTrack",I(je,m.success.main,.62)),L(m.Slider,"warningTrack",I(je,m.warning.main,.62));const q=O?I(Ue,m.background.default,.6825):Fo(m.background.default,.8);L(m.SnackbarContent,"bg",q),L(m.SnackbarContent,"color",fr(()=>O?ka.text.primary:m.getContrastText(q))),L(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),L(m.StepConnector,"border",$("palette-grey-400")),L(m.StepContent,"border",$("palette-grey-400")),L(m.Switch,"defaultColor",$("palette-common-white")),L(m.Switch,"defaultDisabledColor",$("palette-grey-100")),L(m.Switch,"primaryDisabledColor",I(je,m.primary.main,.62)),L(m.Switch,"secondaryDisabledColor",I(je,m.secondary.main,.62)),L(m.Switch,"errorDisabledColor",I(je,m.error.main,.62)),L(m.Switch,"infoDisabledColor",I(je,m.info.main,.62)),L(m.Switch,"successDisabledColor",I(je,m.success.main,.62)),L(m.Switch,"warningDisabledColor",I(je,m.warning.main,.62)),L(m.TableCell,"border",I(je,I(Yr,m.divider,1),.88)),L(m.Tooltip,"bg",I(Yr,m.grey[700],.92))}if(m.mode==="dark"){L(m.Alert,"errorColor",I(je,m.error.light,.6)),L(m.Alert,"infoColor",I(je,m.info.light,.6)),L(m.Alert,"successColor",I(je,m.success.light,.6)),L(m.Alert,"warningColor",I(je,m.warning.light,.6)),L(m.Alert,"errorFilledBg",$("palette-error-dark")),L(m.Alert,"infoFilledBg",$("palette-info-dark")),L(m.Alert,"successFilledBg",$("palette-success-dark")),L(m.Alert,"warningFilledBg",$("palette-warning-dark")),L(m.Alert,"errorFilledColor",fr(()=>m.getContrastText(m.error.dark))),L(m.Alert,"infoFilledColor",fr(()=>m.getContrastText(m.info.dark))),L(m.Alert,"successFilledColor",fr(()=>m.getContrastText(m.success.dark))),L(m.Alert,"warningFilledColor",fr(()=>m.getContrastText(m.warning.dark))),L(m.Alert,"errorStandardBg",I(Ue,m.error.light,.9)),L(m.Alert,"infoStandardBg",I(Ue,m.info.light,.9)),L(m.Alert,"successStandardBg",I(Ue,m.success.light,.9)),L(m.Alert,"warningStandardBg",I(Ue,m.warning.light,.9)),L(m.Alert,"errorIconColor",$("palette-error-main")),L(m.Alert,"infoIconColor",$("palette-info-main")),L(m.Alert,"successIconColor",$("palette-success-main")),L(m.Alert,"warningIconColor",$("palette-warning-main")),L(m.AppBar,"defaultBg",$("palette-grey-900")),L(m.AppBar,"darkBg",$("palette-background-paper")),L(m.AppBar,"darkColor",$("palette-text-primary")),L(m.Avatar,"defaultBg",$("palette-grey-600")),L(m.Button,"inheritContainedBg",$("palette-grey-800")),L(m.Button,"inheritContainedHoverBg",$("palette-grey-700")),L(m.Chip,"defaultBorder",$("palette-grey-700")),L(m.Chip,"defaultAvatarColor",$("palette-grey-300")),L(m.Chip,"defaultIconColor",$("palette-grey-300")),L(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(m.LinearProgress,"primaryBg",I(Ue,m.primary.main,.5)),L(m.LinearProgress,"secondaryBg",I(Ue,m.secondary.main,.5)),L(m.LinearProgress,"errorBg",I(Ue,m.error.main,.5)),L(m.LinearProgress,"infoBg",I(Ue,m.info.main,.5)),L(m.LinearProgress,"successBg",I(Ue,m.success.main,.5)),L(m.LinearProgress,"warningBg",I(Ue,m.warning.main,.5)),L(m.Skeleton,"bg",O?I(Yr,m.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),L(m.Slider,"primaryTrack",I(Ue,m.primary.main,.5)),L(m.Slider,"secondaryTrack",I(Ue,m.secondary.main,.5)),L(m.Slider,"errorTrack",I(Ue,m.error.main,.5)),L(m.Slider,"infoTrack",I(Ue,m.info.main,.5)),L(m.Slider,"successTrack",I(Ue,m.success.main,.5)),L(m.Slider,"warningTrack",I(Ue,m.warning.main,.5));const q=O?I(je,m.background.default,.985):Fo(m.background.default,.98);L(m.SnackbarContent,"bg",q),L(m.SnackbarContent,"color",fr(()=>O?iu.text.primary:m.getContrastText(q))),L(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),L(m.StepConnector,"border",$("palette-grey-600")),L(m.StepContent,"border",$("palette-grey-600")),L(m.Switch,"defaultColor",$("palette-grey-300")),L(m.Switch,"defaultDisabledColor",$("palette-grey-600")),L(m.Switch,"primaryDisabledColor",I(Ue,m.primary.main,.55)),L(m.Switch,"secondaryDisabledColor",I(Ue,m.secondary.main,.55)),L(m.Switch,"errorDisabledColor",I(Ue,m.error.main,.55)),L(m.Switch,"infoDisabledColor",I(Ue,m.info.main,.55)),L(m.Switch,"successDisabledColor",I(Ue,m.success.main,.55)),L(m.Switch,"warningDisabledColor",I(Ue,m.warning.main,.55)),L(m.TableCell,"border",I(Ue,I(Yr,m.divider,1),.68)),L(m.Tooltip,"bg",I(Yr,m.grey[700],.92))}vr(m.background,"default"),vr(m.background,"paper"),vr(m.common,"background"),vr(m.common,"onBackground"),vr(m,"divider"),Object.keys(m).forEach(q=>{const J=m[q];q!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&L(m[q],"mainChannel",ro(no(J.main))),J.light&&L(m[q],"lightChannel",ro(no(J.light))),J.dark&&L(m[q],"darkChannel",ro(no(J.dark))),J.contrastText&&L(m[q],"contrastTextChannel",ro(no(J.contrastText))),q==="text"&&(vr(m[q],"primary"),vr(m[q],"secondary")),q==="action"&&(J.active&&vr(m[q],"active"),J.selected&&vr(m[q],"selected")))})}),E=t.reduce((B,m)=>Dt(B,m),E);const T={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:vm(E),enableContrastVars:a},{vars:R,generateThemeVars:N,generateStyleSheets:W}=K0(E,T);return E.vars=R,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([B,m])=>{E[B]=m}),E.generateThemeVars=N,E.generateStyleSheets=W,E.generateSpacing=function(){return on.createSpacing(u.spacing,Xa(this))},E.getColorSchemeSelector=Q0(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=s,E.unstable_sxConfig={...ki,...u?.unstable_sxConfig},E.unstable_sx=function(m){return Cn({sx:m,theme:this})},E.toRuntimeSource=cu,E}function Ec(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Za({...r===!0?{}:r.palette,mode:t})})}function Cm(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...a}=e,s=i||"light",c=o?.[s],l={...o,...r?{[s]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Ia(e,...t);let u=r;"palette"in e||l[s]&&(l[s]!==!0?u=l[s].palette:s==="dark"&&(u={mode:"dark"}));const p=Ia({...e,palette:u},...t);return p.defaultColorScheme=s,p.colorSchemes=l,p.palette.mode==="light"&&(p.colorSchemes.light={...l.light!==!0&&l.light,palette:p.palette},Ec(p,"dark",l.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:p.palette},Ec(p,"light",l.light)),p}return!r&&!("light"in l)&&s==="light"&&(l.light=!0),_m({...a,colorSchemes:l,defaultColorScheme:s,...typeof n!="boolean"&&n},...t)}const Am=Cm(),Rm="$$material";function fu(e,t=""){return e.displayName||e.name||t}function vc(e,t,r){const n=fu(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Om(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fu(e,"Component");if(typeof e=="object")switch(e.$$typeof){case si.ForwardRef:return vc(e,e.render,"ForwardRef");case si.Memo:return vc(e,e.type,"memo");default:return}}}function km(e){const{variants:t,...r}=e,n={variants:t,style:en(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=en(o.style))}),n}const Pm=su();function ra(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Jr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Im(e){return e?(t,r)=>r[e]:null}function Mm(e,t,r){e.theme=Lm(e.theme)?r:e.theme[t]||e.theme}function ni(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>ni(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Jr(n.style,r):n.style;else{const{variants:i,...a}=n;o=r?Jr(en(a),r):a}return du(e,n.variants,[o],r)}return n?.isProcessed?r?Jr(en(n.style),r):n.style:r?Jr(en(n),r):n}function du(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const s in a.props)if(e[s]!==a.props[s]&&e.ownerState?.[s]!==a.props[s])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Jr(en(a.style(o)),n):a.style(o))):r.push(n?Jr(en(a.style),n):a.style)}return r}function Nm(e={}){const{themeId:t,defaultTheme:r=Pm,rootShouldForwardProp:n=ra,slotShouldForwardProp:o=ra}=e;function i(s){Mm(s,t,r)}return(s,c={})=>{B0(s,E=>E.filter(T=>T!==Cn));const{name:l,slot:u,skipVariantsResolver:p,skipSx:g,overridesResolver:S=Im(pu(u)),...y}=c,h=l&&l.startsWith("Mui")||u?"components":"custom",b=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=g||!1;let k=ra;u==="Root"||u==="root"?k=n:u?k=o:Bm(s)&&(k=void 0);const P=L0(s,{shouldForwardProp:k,label:$m(l,u),...y}),O=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(R){return ni(R,E,R.theme.modularCssLayers?h:void 0)};if(Cr(E)){const T=km(E);return function(N){return T.variants?ni(N,T,N.theme.modularCssLayers?h:void 0):N.theme.modularCssLayers?Jr(T.style,h):T.style}}return E},d=(...E)=>{const T=[],R=E.map(O),N=[];if(T.push(i),l&&S&&N.push(function($){const q=$.theme.components?.[l]?.styleOverrides;if(!q)return null;const J={};for(const fe in q)J[fe]=ni($,q[fe],$.theme.modularCssLayers?"theme":void 0);return S($,J)}),l&&!b&&N.push(function($){const q=$.theme?.components?.[l]?.variants;return q?du($,q,[],$.theme.modularCssLayers?"theme":void 0):null}),v||N.push(Cn),Array.isArray(R[0])){const m=R.shift(),$=new Array(T.length).fill(""),I=new Array(N.length).fill("");let q;q=[...$,...m,...I],q.raw=[...$,...m.raw,...I],T.unshift(q)}const W=[...T,...R,...N],B=P(...W);return s.muiName&&(B.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(B.displayName=Dm(l,u,s)),B};return P.withConfig&&(d.withConfig=P.withConfig),d}}function Dm(e,t,r){return e?`${e}${nn(t||"")}`:`Styled(${Om(r)})`}function $m(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${pu(t||"Root")}`),r}function Lm(e){for(const t in e)return!1;return!0}function Bm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pu(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Fm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Um=e=>Fm(e)&&e!=="classes",Jt=Nm({themeId:Rm,defaultTheme:Am,rootShouldForwardProp:Um}),ts=on.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(Ie.node,Ie.object.isRequired);function jm(e){return j0(e)}function zm(e){return typeof e.main=="string"}function Hm(e,t=[]){if(!zm(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function qm(e=[]){return([,t])=>t&&Hm(t,e)}function Wm(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=es(e,o,r)}),n}function Gm(e){return es("MuiCircularProgress",e)}Wm("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Vt=44,Ma=on.keyframes`
40
40
  0% {
41
41
  transform: rotate(0deg);
42
42
  }
@@ -44,7 +44,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
44
44
  100% {
45
45
  transform: rotate(360deg);
46
46
  }
47
- `,Na=nn.keyframes`
47
+ `,Na=on.keyframes`
48
48
  0% {
49
49
  stroke-dasharray: 1px, 200px;
50
50
  stroke-dashoffset: 0;
@@ -59,11 +59,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
59
59
  stroke-dasharray: 1px, 200px;
60
60
  stroke-dashoffset: -126px;
61
61
  }
62
- `,Wm=typeof Ma!="string"?nn.css`
62
+ `,Vm=typeof Ma!="string"?on.css`
63
63
  animation: ${Ma} 1.4s linear infinite;
64
- `:null,Gm=typeof Na!="string"?nn.css`
64
+ `:null,Ym=typeof Na!="string"?on.css`
65
65
  animation: ${Na} 1.4s ease-in-out infinite;
66
- `:null,Vm=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${rn(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${rn(r)}`,o&&"circleDisableShrink"]};return Rh(i,qm,t)},Ym=pr("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${rn(r.color)}`]]}})(ts(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Wm||{animation:`${Ma} 1.4s linear infinite`}},...Object.entries(e.palette).filter(zm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Km=pr("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Xm=pr("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${rn(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ts(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Gm||{animation:`${Na} 1.4s ease-in-out infinite`}}]}))),Qm=pr("circle",{name:"MuiCircularProgress",slot:"Track"})(ts(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),vn=At.forwardRef(function(t,r){const n=Fm({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,enableTrackSlot:s=!1,size:c=40,style:l,thickness:f=3.6,value:p=0,variant:y="indeterminate",...T}=n,g={...n,color:i,disableShrink:a,size:c,thickness:f,value:p,variant:y,enableTrackSlot:s},h=Vm(g),b={},v={},O={};if(y==="determinate"){const P=2*Math.PI*((Zt-f)/2);b.strokeDasharray=P.toFixed(3),O["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,v.transform="rotate(-90deg)"}return Jn.jsx(Ym,{className:Zl(h.root,o),style:{width:c,height:c,...v,...l},ownerState:g,ref:r,role:"progressbar",...O,...T,children:Jn.jsxs(Km,{className:h.svg,ownerState:g,viewBox:`${Zt/2} ${Zt/2} ${Zt} ${Zt}`,children:[s?Jn.jsx(Qm,{className:h.track,ownerState:g,cx:Zt,cy:Zt,r:(Zt-f)/2,fill:"none",strokeWidth:f,"aria-hidden":"true"}):null,Jn.jsx(Xm,{className:h.circle,style:b,ownerState:g,cx:Zt,cy:Zt,r:(Zt-f)/2,fill:"none",strokeWidth:f})]})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={classes:Pe.object,className:Pe.string,color:Pe.oneOfType([Pe.oneOf(["inherit","primary","secondary","error","info","success","warning"]),Pe.string]),disableShrink:Ah(Pe.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:Pe.bool,size:Pe.oneOfType([Pe.number,Pe.string]),style:Pe.object,sx:Pe.oneOfType([Pe.arrayOf(Pe.oneOfType([Pe.func,Pe.object,Pe.bool])),Pe.func,Pe.object]),thickness:Pe.number,value:Pe.number,variant:Pe.oneOf(["determinate","indeterminate"])});class rs extends te.Component{state={hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){const n=this.generateErrorId();this.setState({errorInfo:r,errorId:n}),this.logErrorToService(t,r,n)}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&t.resetKeys&&this.props.resetKeys.some((n,o)=>n!==t.resetKeys[o])&&this.reset()}reset(){this.setState({hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0})}generateErrorId(){return"ERR-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,8)}logErrorToService(t,r,n){console.error("[ErrorBoundary] Captured error",{errorId:n,error:t,info:r})}handleReload=()=>{window.location.reload()};handleToggleDetails=()=>{this.setState(t=>({showDetails:!t.showDetails}))};render(){if(!this.state.hasError)return this.props.children;const{error:t,errorInfo:r,showDetails:n,errorId:o}=this.state;return C(S.Box,{sx:{p:3,maxWidth:1200,mx:"auto"},children:C(S.Card,{children:K(S.CardContent,{children:[K(S.Alert,{severity:"error",sx:{mb:2},children:[C(S.AlertTitle,{children:"Unexpected error"}),C(S.Typography,{variant:"body2",sx:{mb:1},children:"The application couldn't load this view."}),C(S.Typography,{variant:"body2",sx:{mb:1},children:"Please try the following (in this order):"}),K(S.Box,{component:"ol",sx:{mt:1,mb:1,pl:2.5},children:[C("li",{children:"Wait a few seconds and try again."}),C("li",{children:'Click "Reload".'}),C("li",{children:"If this happens again, contact support and include the error ID."})]}),o&&K(S.Typography,{variant:"body2",sx:{mt:1},children:[C("strong",{children:"Error ID:"})," ",o]})]}),K(S.Stack,{direction:"row",spacing:2,sx:{mb:2},children:[C(S.Button,{onClick:this.handleReload,variant:"contained",color:"primary",children:"Reload"}),C(S.Button,{onClick:this.handleToggleDetails,variant:"outlined",children:n?"Hide details":"Show details"})]}),n&&K(S.Box,{sx:{mt:2},children:[C(S.Typography,{variant:"h6",sx:{mb:1},children:"Error information"}),K(S.Box,{component:"pre",sx:{whiteSpace:"pre-wrap",backgroundColor:"#f6f6f7",p:1.5,borderRadius:1,maxHeight:300,overflow:"auto",fontSize:12,fontFamily:"monospace"},children:[t?.toString(),"\\n\\n",r?.componentStack]})]})]})})})}}const Zm=(e,t)=>C(rs,{resetKeys:t,children:e});var no={exports:{}};no.exports;var Sc;function Jm(){return Sc||(Sc=1,(function(e,t){var r=200,n="Expected a function",o="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,c="[object Arguments]",l="[object Array]",f="[object Boolean]",p="[object Date]",y="[object Error]",T="[object Function]",g="[object GeneratorFunction]",h="[object Map]",b="[object Number]",v="[object Object]",O="[object Promise]",P="[object RegExp]",k="[object Set]",d="[object String]",E="[object Symbol]",x="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",W="[object Float32Array]",F="[object Float64Array]",m="[object Int8Array]",$="[object Int16Array]",I="[object Int32Array]",q="[object Uint8Array]",Z="[object Uint8ClampedArray]",fe="[object Uint16Array]",Ce="[object Uint32Array]",ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,H=/^\./,ce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,ae=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,Q={};Q[W]=Q[F]=Q[m]=Q[$]=Q[I]=Q[q]=Q[Z]=Q[fe]=Q[Ce]=!0,Q[c]=Q[l]=Q[R]=Q[f]=Q[N]=Q[p]=Q[y]=Q[T]=Q[h]=Q[b]=Q[v]=Q[P]=Q[k]=Q[d]=Q[x]=!1;var me=typeof Mo=="object"&&Mo&&Mo.Object===Object&&Mo,Ee=typeof self=="object"&&self&&self.Object===Object&&self,pe=me||Ee||Function("return this")(),Re=t&&!t.nodeType&&t,D=Re&&!0&&e&&!e.nodeType&&e,We=D&&D.exports===Re,Ke=We&&me.process,qe=(function(){try{return Ke&&Ke.binding("util")}catch{}})(),nr=qe&&qe.isTypedArray;function Pt(u,w,A){switch(A.length){case 0:return u.call(w);case 1:return u.call(w,A[0]);case 2:return u.call(w,A[0],A[1]);case 3:return u.call(w,A[0],A[1],A[2])}return u.apply(w,A)}function It(u,w){for(var A=-1,U=u?u.length:0,ee=Array(U);++A<U;)ee[A]=w(u[A],A,u);return ee}function or(u,w){for(var A=-1,U=w.length,ee=u.length;++A<U;)u[ee+A]=w[A];return u}function ir(u,w){for(var A=-1,U=u?u.length:0;++A<U;)if(w(u[A],A,u))return!0;return!1}function ar(u){return function(w){return w?.[u]}}function on(u,w){var A=u.length;for(u.sort(w);A--;)u[A]=u[A].value;return u}function an(u,w){for(var A=-1,U=Array(u);++A<u;)U[A]=w(A);return U}function hr(u){return function(w){return u(w)}}function mr(u,w){return u?.[w]}function Mt(u){var w=!1;if(u!=null&&typeof u.toString!="function")try{w=!!(u+"")}catch{}return w}function Yt(u){var w=-1,A=Array(u.size);return u.forEach(function(U,ee){A[++w]=[ee,U]}),A}function sn(u,w){return function(A){return u(w(A))}}function Fr(u){var w=-1,A=Array(u.size);return u.forEach(function(U){A[++w]=U}),A}var Ur=Array.prototype,jr=Function.prototype,St=Object.prototype,gt=pe["__core-js_shared__"],xt=(function(){var u=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),Tt=jr.toString,Je=St.hasOwnProperty,Bt=St.toString,Rr=RegExp("^"+Tt.call(Je).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=pe.Symbol,gr=pe.Uint8Array,kr=St.propertyIsEnumerable,zr=Ur.splice,Kt=Ft?Ft.isConcatSpreadable:void 0,cn=sn(Object.keys,Object),j=Math.max,B=ln(pe,"DataView"),Y=ln(pe,"Map"),ie=ln(pe,"Promise"),ue=ln(pe,"Set"),le=ln(pe,"WeakMap"),ge=ln(Object,"create"),Se=Wr(B),je=Wr(Y),he=Wr(ie),nt=Wr(ue),Hr=Wr(le),at=Ft?Ft.prototype:void 0,Nt=at?at.valueOf:void 0,Xt=at?at.toString:void 0;function ct(u){var w=-1,A=u?u.length:0;for(this.clear();++w<A;){var U=u[w];this.set(U[0],U[1])}}function wo(){this.__data__=ge?ge(null):{}}function Eo(u){return this.has(u)&&delete this.__data__[u]}function vo(u){var w=this.__data__;if(ge){var A=w[u];return A===o?void 0:A}return Je.call(w,u)?w[u]:void 0}function So(u){var w=this.__data__;return ge?w[u]!==void 0:Je.call(w,u)}function $i(u,w){var A=this.__data__;return A[u]=ge&&w===void 0?o:w,this}ct.prototype.clear=wo,ct.prototype.delete=Eo,ct.prototype.get=vo,ct.prototype.has=So,ct.prototype.set=$i;function re(u){var w=-1,A=u?u.length:0;for(this.clear();++w<A;){var U=u[w];this.set(U[0],U[1])}}function _(){this.__data__=[]}function V(u){var w=this.__data__,A=To(w,u);if(A<0)return!1;var U=w.length-1;return A==U?w.pop():zr.call(w,A,1),!0}function oe(u){var w=this.__data__,A=To(w,u);return A<0?void 0:w[A][1]}function Ge(u){return To(this.__data__,u)>-1}function st(u,w){var A=this.__data__,U=To(A,u);return U<0?A.push([u,w]):A[U][1]=w,this}re.prototype.clear=_,re.prototype.delete=V,re.prototype.get=oe,re.prototype.has=Ge,re.prototype.set=st;function Ie(u){var w=-1,A=u?u.length:0;for(this.clear();++w<A;){var U=u[w];this.set(U[0],U[1])}}function ft(){this.__data__={hash:new ct,map:new(Y||re),string:new ct}}function Qt(u){return _o(this,u).delete(u)}function Or(u){return _o(this,u).get(u)}function $n(u){return _o(this,u).has(u)}function ot(u,w){return _o(this,u).set(u,w),this}Ie.prototype.clear=ft,Ie.prototype.delete=Qt,Ie.prototype.get=Or,Ie.prototype.has=$n,Ie.prototype.set=ot;function qr(u){var w=-1,A=u?u.length:0;for(this.__data__=new Ie;++w<A;)this.add(u[w])}function xo(u){return this.__data__.set(u,o),this}function tf(u){return this.__data__.has(u)}qr.prototype.add=qr.prototype.push=xo,qr.prototype.has=tf;function yr(u){this.__data__=new re(u)}function rf(){this.__data__=new re}function nf(u){return this.__data__.delete(u)}function of(u){return this.__data__.get(u)}function af(u){return this.__data__.has(u)}function sf(u,w){var A=this.__data__;if(A instanceof re){var U=A.__data__;if(!Y||U.length<r-1)return U.push([u,w]),this;A=this.__data__=new Ie(U)}return A.set(u,w),this}yr.prototype.clear=rf,yr.prototype.delete=nf,yr.prototype.get=of,yr.prototype.has=af,yr.prototype.set=sf;function cf(u,w){var A=Ir(u)||ji(u)?an(u.length,String):[],U=A.length,ee=!!U;for(var X in u)Je.call(u,X)&&!(ee&&(X=="length"||Bi(X,U)))&&A.push(X);return A}function To(u,w){for(var A=u.length;A--;)if(Ui(u[A][0],w))return A;return-1}var lf=Of(df);function uf(u,w,A,U,ee){var X=-1,se=u.length;for(A||(A=$f),ee||(ee=[]);++X<se;){var Me=u[X];A(Me)?or(ee,Me):ee[ee.length]=Me}return ee}var ff=Pf();function df(u,w){return u&&ff(u,w,ko)}function ds(u,w){w=Co(w,u)?[w]:ps(w);for(var A=0,U=w.length;u!=null&&A<U;)u=u[Ao(w[A++])];return A&&A==U?u:void 0}function pf(u){return Bt.call(u)}function hf(u,w){return u!=null&&w in Object(u)}function Li(u,w,A,U,ee){return u===w?!0:u==null||w==null||!Bn(u)&&!Ro(w)?u!==u&&w!==w:mf(u,w,Li,A,U,ee)}function mf(u,w,A,U,ee,X){var se=Ir(u),Me=Ir(w),Ae=l,Ve=l;se||(Ae=Pr(u),Ae=Ae==c?v:Ae),Me||(Ve=Pr(w),Ve=Ve==c?v:Ve);var _t=Ae==v&&!Mt(u),Ct=Ve==v&&!Mt(w),yt=Ae==Ve;if(yt&&!_t)return X||(X=new yr),se||Hf(u)?hs(u,w,A,U,ee,X):If(u,w,Ae,A,U,ee,X);if(!(ee&a)){var Ut=_t&&Je.call(u,"__wrapped__"),jt=Ct&&Je.call(w,"__wrapped__");if(Ut||jt){var Mr=Ut?u.value():u,br=jt?w.value():w;return X||(X=new yr),A(Mr,br,U,ee,X)}}return yt?(X||(X=new yr),Mf(u,w,A,U,ee,X)):!1}function gf(u,w,A,U){var ee=A.length,X=ee;if(u==null)return!X;for(u=Object(u);ee--;){var se=A[ee];if(se[2]?se[1]!==u[se[0]]:!(se[0]in u))return!1}for(;++ee<X;){se=A[ee];var Me=se[0],Ae=u[Me],Ve=se[1];if(se[2]){if(Ae===void 0&&!(Me in u))return!1}else{var _t=new yr,Ct;if(!(Ct===void 0?Li(Ve,Ae,U,i|a,_t):Ct))return!1}}return!0}function yf(u){if(!Bn(u)||Bf(u))return!1;var w=bs(u)||Mt(u)?Rr:ne;return w.test(Wr(u))}function bf(u){return Ro(u)&&zi(u.length)&&!!Q[Bt.call(u)]}function wf(u){return typeof u=="function"?u:u==null?ws:typeof u=="object"?Ir(u)?xf(u[0],u[1]):Sf(u):Vf(u)}function Ef(u){if(!Ff(u))return cn(u);var w=[];for(var A in Object(u))Je.call(u,A)&&A!="constructor"&&w.push(A);return w}function vf(u,w){var A=-1,U=Ln(u)?Array(u.length):[];return lf(u,function(ee,X,se){U[++A]=w(ee,X,se)}),U}function Sf(u){var w=Nf(u);return w.length==1&&w[0][2]?ys(w[0][0],w[0][1]):function(A){return A===u||gf(A,u,w)}}function xf(u,w){return Co(u)&&gs(w)?ys(Ao(u),w):function(A){var U=Wf(A,u);return U===void 0&&U===w?Gf(A,u):Li(w,U,void 0,i|a)}}function Tf(u,w,A){var U=-1;w=It(w.length?w:[ws],hr(wf));var ee=vf(u,function(X,se,Me){var Ae=It(w,function(Ve){return Ve(X)});return{criteria:Ae,index:++U,value:X}});return on(ee,function(X,se){return kf(X,se,A)})}function _f(u){return function(w){return ds(w,u)}}function Cf(u,w){return w=j(w===void 0?u.length-1:w,0),function(){for(var A=arguments,U=-1,ee=j(A.length-w,0),X=Array(ee);++U<ee;)X[U]=A[w+U];U=-1;for(var se=Array(w+1);++U<w;)se[U]=A[U];return se[w]=X,Pt(u,this,se)}}function Af(u){if(typeof u=="string")return u;if(Fn(u))return Xt?Xt.call(u):"";var w=u+"";return w=="0"&&1/u==-1/0?"-0":w}function ps(u){return Ir(u)?u:Uf(u)}function Rf(u,w){if(u!==w){var A=u!==void 0,U=u===null,ee=u===u,X=Fn(u),se=w!==void 0,Me=w===null,Ae=w===w,Ve=Fn(w);if(!Me&&!Ve&&!X&&u>w||X&&se&&Ae&&!Me&&!Ve||U&&se&&Ae||!A&&Ae||!ee)return 1;if(!U&&!X&&!Ve&&u<w||Ve&&A&&ee&&!U&&!X||Me&&A&&ee||!se&&ee||!Ae)return-1}return 0}function kf(u,w,A){for(var U=-1,ee=u.criteria,X=w.criteria,se=ee.length,Me=A.length;++U<se;){var Ae=Rf(ee[U],X[U]);if(Ae){if(U>=Me)return Ae;var Ve=A[U];return Ae*(Ve=="desc"?-1:1)}}return u.index-w.index}function Of(u,w){return function(A,U){if(A==null)return A;if(!Ln(A))return u(A,U);for(var ee=A.length,X=-1,se=Object(A);++X<ee&&U(se[X],X,se)!==!1;);return A}}function Pf(u){return function(w,A,U){for(var ee=-1,X=Object(w),se=U(w),Me=se.length;Me--;){var Ae=se[++ee];if(A(X[Ae],Ae,X)===!1)break}return w}}function hs(u,w,A,U,ee,X){var se=ee&a,Me=u.length,Ae=w.length;if(Me!=Ae&&!(se&&Ae>Me))return!1;var Ve=X.get(u);if(Ve&&X.get(w))return Ve==w;var _t=-1,Ct=!0,yt=ee&i?new qr:void 0;for(X.set(u,w),X.set(w,u);++_t<Me;){var Ut=u[_t],jt=w[_t];if(U)var Mr=se?U(jt,Ut,_t,w,u,X):U(Ut,jt,_t,u,w,X);if(Mr!==void 0){if(Mr)continue;Ct=!1;break}if(yt){if(!ir(w,function(br,Gr){if(!yt.has(Gr)&&(Ut===br||A(Ut,br,U,ee,X)))return yt.add(Gr)})){Ct=!1;break}}else if(!(Ut===jt||A(Ut,jt,U,ee,X))){Ct=!1;break}}return X.delete(u),X.delete(w),Ct}function If(u,w,A,U,ee,X,se){switch(A){case N:if(u.byteLength!=w.byteLength||u.byteOffset!=w.byteOffset)return!1;u=u.buffer,w=w.buffer;case R:return!(u.byteLength!=w.byteLength||!U(new gr(u),new gr(w)));case f:case p:case b:return Ui(+u,+w);case y:return u.name==w.name&&u.message==w.message;case P:case d:return u==w+"";case h:var Me=Yt;case k:var Ae=X&a;if(Me||(Me=Fr),u.size!=w.size&&!Ae)return!1;var Ve=se.get(u);if(Ve)return Ve==w;X|=i,se.set(u,w);var _t=hs(Me(u),Me(w),U,ee,X,se);return se.delete(u),_t;case E:if(Nt)return Nt.call(u)==Nt.call(w)}return!1}function Mf(u,w,A,U,ee,X){var se=ee&a,Me=ko(u),Ae=Me.length,Ve=ko(w),_t=Ve.length;if(Ae!=_t&&!se)return!1;for(var Ct=Ae;Ct--;){var yt=Me[Ct];if(!(se?yt in w:Je.call(w,yt)))return!1}var Ut=X.get(u);if(Ut&&X.get(w))return Ut==w;var jt=!0;X.set(u,w),X.set(w,u);for(var Mr=se;++Ct<Ae;){yt=Me[Ct];var br=u[yt],Gr=w[yt];if(U)var Es=se?U(Gr,br,yt,w,u,X):U(br,Gr,yt,u,w,X);if(!(Es===void 0?br===Gr||A(br,Gr,U,ee,X):Es)){jt=!1;break}Mr||(Mr=yt=="constructor")}if(jt&&!Mr){var Oo=u.constructor,Po=w.constructor;Oo!=Po&&"constructor"in u&&"constructor"in w&&!(typeof Oo=="function"&&Oo instanceof Oo&&typeof Po=="function"&&Po instanceof Po)&&(jt=!1)}return X.delete(u),X.delete(w),jt}function _o(u,w){var A=u.__data__;return Lf(w)?A[typeof w=="string"?"string":"hash"]:A.map}function Nf(u){for(var w=ko(u),A=w.length;A--;){var U=w[A],ee=u[U];w[A]=[U,ee,gs(ee)]}return w}function ln(u,w){var A=mr(u,w);return yf(A)?A:void 0}var Pr=pf;(B&&Pr(new B(new ArrayBuffer(1)))!=N||Y&&Pr(new Y)!=h||ie&&Pr(ie.resolve())!=O||ue&&Pr(new ue)!=k||le&&Pr(new le)!=x)&&(Pr=function(u){var w=Bt.call(u),A=w==v?u.constructor:void 0,U=A?Wr(A):void 0;if(U)switch(U){case Se:return N;case je:return h;case he:return O;case nt:return k;case Hr:return x}return w});function Df(u,w,A){w=Co(w,u)?[w]:ps(w);for(var U,ee=-1,se=w.length;++ee<se;){var X=Ao(w[ee]);if(!(U=u!=null&&A(u,X)))break;u=u[X]}if(U)return U;var se=u?u.length:0;return!!se&&zi(se)&&Bi(X,se)&&(Ir(u)||ji(u))}function $f(u){return Ir(u)||ji(u)||!!(Kt&&u&&u[Kt])}function Bi(u,w){return w=w??s,!!w&&(typeof u=="number"||de.test(u))&&u>-1&&u%1==0&&u<w}function ms(u,w,A){if(!Bn(A))return!1;var U=typeof w;return(U=="number"?Ln(A)&&Bi(w,A.length):U=="string"&&w in A)?Ui(A[w],u):!1}function Co(u,w){if(Ir(u))return!1;var A=typeof u;return A=="number"||A=="symbol"||A=="boolean"||u==null||Fn(u)?!0:z.test(u)||!ut.test(u)||w!=null&&u in Object(w)}function Lf(u){var w=typeof u;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?u!=="__proto__":u===null}function Bf(u){return!!xt&&xt in u}function Ff(u){var w=u&&u.constructor,A=typeof w=="function"&&w.prototype||St;return u===A}function gs(u){return u===u&&!Bn(u)}function ys(u,w){return function(A){return A==null?!1:A[u]===w&&(w!==void 0||u in Object(A))}}var Uf=Fi(function(u){u=qf(u);var w=[];return H.test(u)&&w.push(""),u.replace(ce,function(A,U,ee,X){w.push(ee?X.replace(ae,"$1"):U||A)}),w});function Ao(u){if(typeof u=="string"||Fn(u))return u;var w=u+"";return w=="0"&&1/u==-1/0?"-0":w}function Wr(u){if(u!=null){try{return Tt.call(u)}catch{}try{return u+""}catch{}}return""}var jf=Cf(function(u,w){if(u==null)return[];var A=w.length;return A>1&&ms(u,w[0],w[1])?w=[]:A>2&&ms(w[0],w[1],w[2])&&(w=[w[0]]),Tf(u,uf(w),[])});function Fi(u,w){if(typeof u!="function"||w&&typeof w!="function")throw new TypeError(n);var A=function(){var U=arguments,ee=w?w.apply(this,U):U[0],X=A.cache;if(X.has(ee))return X.get(ee);var se=u.apply(this,U);return A.cache=X.set(ee,se),se};return A.cache=new(Fi.Cache||Ie),A}Fi.Cache=Ie;function Ui(u,w){return u===w||u!==u&&w!==w}function ji(u){return zf(u)&&Je.call(u,"callee")&&(!kr.call(u,"callee")||Bt.call(u)==c)}var Ir=Array.isArray;function Ln(u){return u!=null&&zi(u.length)&&!bs(u)}function zf(u){return Ro(u)&&Ln(u)}function bs(u){var w=Bn(u)?Bt.call(u):"";return w==T||w==g}function zi(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=s}function Bn(u){var w=typeof u;return!!u&&(w=="object"||w=="function")}function Ro(u){return!!u&&typeof u=="object"}function Fn(u){return typeof u=="symbol"||Ro(u)&&Bt.call(u)==E}var Hf=nr?hr(nr):bf;function qf(u){return u==null?"":Af(u)}function Wf(u,w,A){var U=u==null?void 0:ds(u,w);return U===void 0?A:U}function Gf(u,w){return u!=null&&Df(u,w,hf)}function ko(u){return Ln(u)?cf(u):Ef(u)}function ws(u){return u}function Vf(u){return Co(u)?ar(Ao(u)):_f(u)}e.exports=jf})(no,no.exports)),no.exports}var eg=Jm();const Uo=qa(eg),tg=({...e})=>C(S.Fab,{...e,sx:{position:"fixed",bottom:35,right:0,zIndex:1400,background:"linear-gradient(135deg, #1f2937 0%, #475260 100%)",color:"white",width:48,height:48,borderRadius:"5px 0 0 5px",boxShadow:"0 8px 24px rgba(31, 41, 55, 0.4)","&:hover":{background:"linear-gradient(135deg, #2c4870 0%, #4e6c91 100%)",transform:"translateY(-2px)",boxShadow:"0 8px 24px rgba(44, 72, 112, 0.4)"},transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}}),rg=pr(S.Drawer)(()=>({"& .MuiModal-backdrop":{display:"block"},"& .MuiDrawer-paper":{width:"730px",height:"100vh",borderRadius:"0",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.12)",background:"#f8f9fa",zIndex:1300,display:"flex",flexDirection:"column"}})),ng=pr(S.Box)(({theme:e})=>({background:"#1f2937",color:"white",padding:e.spacing(3),display:"flex",alignItems:"flex-start",justifyContent:"space-between",borderBottom:`1px solid ${e.palette.divider}`,minHeight:40})),og=pr(S.Box)(({theme:e})=>({flex:1,overflow:"auto",padding:e.spacing(2),borderLeft:`1px solid ${e.palette.divider}`,"&::-webkit-scrollbar":{width:8},"&::-webkit-scrollbar-track":{background:e.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:e.palette.grey[400],borderRadius:4,"&:hover":{background:e.palette.grey[500]}}})),ig=({children:e})=>C(S.Box,{sx:{position:"relative",padding:t=>t.spacing(2),borderTop:t=>`1px solid ${t.palette.divider}`,background:"white",display:"flex",justifyContent:"center",bottom:0,zIndex:10},children:e}),pu=pr(S.Card)(({theme:e})=>({borderRadius:10,padding:e.spacing(3),marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),hu=pr(S.Card)(({theme:e})=>({borderRadius:12,padding:e.spacing(1),paddingTop:e.spacing(4),marginBottom:e.spacing(1),boxShadow:"none",background:"white"})),mu=pr(S.Card)(({theme:e})=>({borderRadius:10,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:"10px",paddingBottom:"10px",marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),ag=({expanded:e})=>K(S.Box,{pb:2,children:[K(pu,{children:[C(S.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3,children:C(S.Box,{display:"flex",alignItems:"center",gap:1,children:C(S.Skeleton,{variant:"text",width:180,height:30})})}),K(S.Box,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[C(S.Box,{position:"relative",display:"inline-flex",mr:4,children:C(S.Skeleton,{variant:"circular",width:140,height:140})}),K(S.Box,{display:"flex",flexDirection:"column",gap:2,flex:0,children:[K(S.Box,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[C(S.Skeleton,{variant:"text",width:80,height:28}),C(S.Skeleton,{variant:"text",width:60,height:14})]}),C(S.Skeleton,{variant:"rectangular",width:"100%",height:2}),K(S.Box,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[C(S.Skeleton,{variant:"text",width:80,height:28}),C(S.Skeleton,{variant:"text",width:60,height:14})]})]}),C(S.Skeleton,{variant:"rectangular",width:220,height:50,sx:{ml:5}})]})]}),K(S.Accordion,{defaultExpanded:!0,expanded:e,sx:{borderRadius:2,mb:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"}},children:[C(S.AccordionSummary,{expandIcon:C(pt.ExpandMore,{}),sx:{px:3},children:C(S.Box,{display:"flex",alignItems:"center",gap:1,height:72,children:C(S.Skeleton,{variant:"text",width:160,height:28})})}),C(S.AccordionDetails,{sx:{px:3,pb:3},children:C(hu,{children:C(S.Box,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"space-around",children:[1,2,3,4,5,6].map(t=>K(S.Box,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,width:"180px",children:[C(S.Box,{position:"relative",display:"inline-flex",children:C(S.Skeleton,{variant:"circular",width:100,height:100})}),K(S.Box,{textAlign:"center",width:"100%",children:[C(S.Skeleton,{variant:"text",width:120,height:20,sx:{mx:"auto",mb:.5}}),C(S.Skeleton,{variant:"text",width:100,height:16,sx:{mx:"auto"}})]})]},t))})})})]}),C(S.Typography,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:C(S.Skeleton,{variant:"text",width:280,height:36})}),C(S.Box,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:K(S.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[K(S.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[C(S.Skeleton,{variant:"text",width:240,height:20}),C(S.Skeleton,{variant:"text",width:80,height:28})]}),C(S.Box,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowY:"scroll",pb:2.5,pt:1},children:[1,2,3,4].map(t=>C(S.Skeleton,{variant:"rounded",width:140,height:32,sx:{borderRadius:4,flexShrink:0}},t))})]})}),C(S.Box,{sx:{minHeight:"calc(100vh - 320px)"},children:C(mu,{children:C(S.List,{sx:{p:0},children:[1,2,3].map(t=>C(S.ListItem,{sx:{px:0,py:1.5,alignItems:"flex-start",borderBottom:t<3?"1px solid":"none",borderColor:"divider"},children:K(S.Box,{mt:.5,width:"100%",children:[C(S.Skeleton,{variant:"text",width:"70%",height:32,sx:{mb:2.5}}),K(S.Box,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[C(S.Skeleton,{variant:"rounded",width:120,height:32,sx:{borderRadius:4}}),C(S.Skeleton,{variant:"rounded",width:100,height:32,sx:{borderRadius:4}}),C(S.Skeleton,{variant:"rounded",width:80,height:32,sx:{borderRadius:4}})]}),K(S.Box,{mb:2,children:[C(S.Skeleton,{variant:"text",width:"100%",height:20}),C(S.Skeleton,{variant:"text",width:"95%",height:20}),C(S.Skeleton,{variant:"text",width:"60%",height:20})]}),K(S.Box,{display:"flex",gap:1,children:[C(S.Skeleton,{variant:"rounded",width:140,height:32,sx:{borderRadius:2}}),C(S.Skeleton,{variant:"rounded",width:120,height:32,sx:{borderRadius:2}})]})]})},t))})})})]}),sg=({html:e,currentHighlight:t,onHighlightsFound:r,onVisibleHighlightChange:n,clickedIndicator:o,scriptsDisabled:i=!0})=>{const a=te.useRef(null),s=te.useRef(!1);return te.useEffect(()=>{if(!a.current)return;const c=a.current,l=c.contentDocument||c.contentWindow?.document;if(!l){console.warn("[DQM] Could not access iframe document");return}const y=new DOMParser().parseFromString(e,"text/html").documentElement;y.getElementsByTagName("body")[0].style.overflow="auto",l.open(),l.write(y.outerHTML),l.close();const T=l.createElement("style");T.textContent=`
66
+ `:null,Km=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${nn(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${nn(r)}`,o&&"circleDisableShrink"]};return kh(i,Gm,t)},Xm=Jt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${nn(r.color)}`]]}})(ts(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Vm||{animation:`${Ma} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qm()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Qm=Jt("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Jm=Jt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${nn(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(ts(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Ym||{animation:`${Na} 1.4s ease-in-out infinite`}}]}))),Zm=Jt("circle",{name:"MuiCircularProgress",slot:"Track"})(ts(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),vn=Ct.forwardRef(function(t,r){const n=jm({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,enableTrackSlot:s=!1,size:c=40,style:l,thickness:u=3.6,value:p=0,variant:g="indeterminate",...S}=n,y={...n,color:i,disableShrink:a,size:c,thickness:u,value:p,variant:g,enableTrackSlot:s},h=Km(y),b={},v={},k={};if(g==="determinate"){const P=2*Math.PI*((Vt-u)/2);b.strokeDasharray=P.toFixed(3),k["aria-valuenow"]=Math.round(p),b.strokeDashoffset=`${((100-p)/100*P).toFixed(3)}px`,v.transform="rotate(-90deg)"}return eo.jsx(Xm,{className:Zl(h.root,o),style:{width:c,height:c,...v,...l},ownerState:y,ref:r,role:"progressbar",...k,...S,children:eo.jsxs(Qm,{className:h.svg,ownerState:y,viewBox:`${Vt/2} ${Vt/2} ${Vt} ${Vt}`,children:[s?eo.jsx(Zm,{className:h.track,ownerState:y,cx:Vt,cy:Vt,r:(Vt-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,eo.jsx(Jm,{className:h.circle,style:b,ownerState:y,cx:Vt,cy:Vt,r:(Vt-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(vn.propTypes={classes:Ie.object,className:Ie.string,color:Ie.oneOfType([Ie.oneOf(["inherit","primary","secondary","error","info","success","warning"]),Ie.string]),disableShrink:Oh(Ie.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:Ie.bool,size:Ie.oneOfType([Ie.number,Ie.string]),style:Ie.object,sx:Ie.oneOfType([Ie.arrayOf(Ie.oneOfType([Ie.func,Ie.object,Ie.bool])),Ie.func,Ie.object]),thickness:Ie.number,value:Ie.number,variant:Ie.oneOf(["determinate","indeterminate"])});class rs extends te.Component{state={hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){const n=this.generateErrorId();this.setState({errorInfo:r,errorId:n}),this.logErrorToService(t,r,n)}componentDidUpdate(t){this.state.hasError&&this.props.resetKeys&&t.resetKeys&&this.props.resetKeys.some((n,o)=>n!==t.resetKeys[o])&&this.reset()}reset(){this.setState({hasError:!1,error:null,errorInfo:null,showDetails:!1,errorId:void 0})}generateErrorId(){return"ERR-"+Date.now().toString(36)+"-"+Math.random().toString(36).slice(2,8)}logErrorToService(t,r,n){console.error("[ErrorBoundary] Captured error",{errorId:n,error:t,info:r})}handleReload=()=>{window.location.reload()};handleToggleDetails=()=>{this.setState(t=>({showDetails:!t.showDetails}))};render(){if(!this.state.hasError)return this.props.children;const{error:t,errorInfo:r,showDetails:n,errorId:o}=this.state;return C(x.Box,{sx:{p:3,maxWidth:1200,mx:"auto"},children:C(x.Card,{children:X(x.CardContent,{children:[X(x.Alert,{severity:"error",sx:{mb:2},children:[C(x.AlertTitle,{children:"Unexpected error"}),C(x.Typography,{variant:"body2",sx:{mb:1},children:"The application couldn't load this view."}),C(x.Typography,{variant:"body2",sx:{mb:1},children:"Please try the following (in this order):"}),X(x.Box,{component:"ol",sx:{mt:1,mb:1,pl:2.5},children:[C("li",{children:"Wait a few seconds and try again."}),C("li",{children:'Click "Reload".'}),C("li",{children:"If this happens again, contact support and include the error ID."})]}),o&&X(x.Typography,{variant:"body2",sx:{mt:1},children:[C("strong",{children:"Error ID:"})," ",o]})]}),X(x.Stack,{direction:"row",spacing:2,sx:{mb:2},children:[C(x.Button,{onClick:this.handleReload,variant:"contained",color:"primary",children:"Reload"}),C(x.Button,{onClick:this.handleToggleDetails,variant:"outlined",children:n?"Hide details":"Show details"})]}),n&&X(x.Box,{sx:{mt:2},children:[C(x.Typography,{variant:"h6",sx:{mb:1},children:"Error information"}),X(x.Box,{component:"pre",sx:{whiteSpace:"pre-wrap",backgroundColor:"#f6f6f7",p:1.5,borderRadius:1,maxHeight:300,overflow:"auto",fontSize:12,fontFamily:"monospace"},children:[t?.toString(),"\\n\\n",r?.componentStack]})]})]})})})}}const eg=(e,t)=>C(rs,{resetKeys:t,children:e});var oo={exports:{}};oo.exports;var Sc;function tg(){return Sc||(Sc=1,(function(e,t){var r=200,n="Expected a function",o="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,c="[object Arguments]",l="[object Array]",u="[object Boolean]",p="[object Date]",g="[object Error]",S="[object Function]",y="[object GeneratorFunction]",h="[object Map]",b="[object Number]",v="[object Object]",k="[object Promise]",P="[object RegExp]",O="[object Set]",d="[object String]",E="[object Symbol]",T="[object WeakMap]",R="[object ArrayBuffer]",N="[object DataView]",W="[object Float32Array]",B="[object Float64Array]",m="[object Int8Array]",$="[object Int16Array]",I="[object Int32Array]",q="[object Uint8Array]",J="[object Uint8ClampedArray]",fe="[object Uint16Array]",Ce="[object Uint32Array]",ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,H=/^\./,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ae=/\\(\\)?/g,ne=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,Q={};Q[W]=Q[B]=Q[m]=Q[$]=Q[I]=Q[q]=Q[J]=Q[fe]=Q[Ce]=!0,Q[c]=Q[l]=Q[R]=Q[u]=Q[N]=Q[p]=Q[g]=Q[S]=Q[h]=Q[b]=Q[v]=Q[P]=Q[O]=Q[d]=Q[T]=!1;var me=typeof Mo=="object"&&Mo&&Mo.Object===Object&&Mo,we=typeof self=="object"&&self&&self.Object===Object&&self,pe=me||we||Function("return this")(),Oe=t&&!t.nodeType&&t,D=Oe&&!0&&e&&!e.nodeType&&e,We=D&&D.exports===Oe,Je=We&&me.process,qe=(function(){try{return Je&&Je.binding("util")}catch{}})(),Zt=qe&&qe.isTypedArray;function kt(f,w,A){switch(A.length){case 0:return f.call(w);case 1:return f.call(w,A[0]);case 2:return f.call(w,A[0],A[1]);case 3:return f.call(w,A[0],A[1],A[2])}return f.apply(w,A)}function Pt(f,w){for(var A=-1,U=f?f.length:0,ee=Array(U);++A<U;)ee[A]=w(f[A],A,f);return ee}function er(f,w){for(var A=-1,U=w.length,ee=f.length;++A<U;)f[ee+A]=w[A];return f}function tr(f,w){for(var A=-1,U=f?f.length:0;++A<U;)if(w(f[A],A,f))return!0;return!1}function rr(f){return function(w){return w?.[f]}}function an(f,w){var A=f.length;for(f.sort(w);A--;)f[A]=f[A].value;return f}function sn(f,w){for(var A=-1,U=Array(f);++A<f;)U[A]=w(A);return U}function gr(f){return function(w){return f(w)}}function yr(f,w){return f?.[w]}function It(f){var w=!1;if(f!=null&&typeof f.toString!="function")try{w=!!(f+"")}catch{}return w}function nr(f){var w=-1,A=Array(f.size);return f.forEach(function(U,ee){A[++w]=[ee,U]}),A}function jr(f,w){return function(A){return f(w(A))}}function zr(f){var w=-1,A=Array(f.size);return f.forEach(function(U){A[++w]=U}),A}var cn=Array.prototype,kr=Function.prototype,or=Object.prototype,ir=pe["__core-js_shared__"],xt=(function(){var f=/[^.]+$/.exec(ir&&ir.keys&&ir.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),it=kr.toString,Xe=or.hasOwnProperty,$t=or.toString,br=RegExp("^"+it.call(Xe).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pr=pe.Symbol,ar=pe.Uint8Array,Lt=or.propertyIsEnumerable,$n=cn.splice,sr=Pr?Pr.isConcatSpreadable:void 0,Hr=jr(Object.keys,Object),qr=Math.max,Ve=ln(pe,"DataView"),F=ln(pe,"Map"),j=ln(pe,"Promise"),Y=ln(pe,"Set"),oe=ln(pe,"WeakMap"),ce=ln(Object,"create"),ue=Gr(Ve),Se=Gr(F),he=Gr(j),Ae=Gr(Y),Ee=Gr(oe),ct=Pr?Pr.prototype:void 0,cr=ct?ct.valueOf:void 0,dt=ct?ct.toString:void 0;function Qe(f){var w=-1,A=f?f.length:0;for(this.clear();++w<A;){var U=f[w];this.set(U[0],U[1])}}function lr(){this.__data__=ce?ce(null):{}}function Eo(f){return this.has(f)&&delete this.__data__[f]}function vo(f){var w=this.__data__;if(ce){var A=w[f];return A===o?void 0:A}return Xe.call(w,f)?w[f]:void 0}function So(f){var w=this.__data__;return ce?w[f]!==void 0:Xe.call(w,f)}function $i(f,w){var A=this.__data__;return A[f]=ce&&w===void 0?o:w,this}Qe.prototype.clear=lr,Qe.prototype.delete=Eo,Qe.prototype.get=vo,Qe.prototype.has=So,Qe.prototype.set=$i;function re(f){var w=-1,A=f?f.length:0;for(this.clear();++w<A;){var U=f[w];this.set(U[0],U[1])}}function _(){this.__data__=[]}function V(f){var w=this.__data__,A=To(w,f);if(A<0)return!1;var U=w.length-1;return A==U?w.pop():$n.call(w,A,1),!0}function ie(f){var w=this.__data__,A=To(w,f);return A<0?void 0:w[A][1]}function Ge(f){return To(this.__data__,f)>-1}function st(f,w){var A=this.__data__,U=To(A,f);return U<0?A.push([f,w]):A[U][1]=w,this}re.prototype.clear=_,re.prototype.delete=V,re.prototype.get=ie,re.prototype.has=Ge,re.prototype.set=st;function Me(f){var w=-1,A=f?f.length:0;for(this.clear();++w<A;){var U=f[w];this.set(U[0],U[1])}}function pt(){this.__data__={hash:new Qe,map:new(F||re),string:new Qe}}function Gt(f){return _o(this,f).delete(f)}function Ir(f){return _o(this,f).get(f)}function Ln(f){return _o(this,f).has(f)}function at(f,w){return _o(this,f).set(f,w),this}Me.prototype.clear=pt,Me.prototype.delete=Gt,Me.prototype.get=Ir,Me.prototype.has=Ln,Me.prototype.set=at;function Wr(f){var w=-1,A=f?f.length:0;for(this.__data__=new Me;++w<A;)this.add(f[w])}function xo(f){return this.__data__.set(f,o),this}function nf(f){return this.__data__.has(f)}Wr.prototype.add=Wr.prototype.push=xo,Wr.prototype.has=nf;function wr(f){this.__data__=new re(f)}function of(){this.__data__=new re}function af(f){return this.__data__.delete(f)}function sf(f){return this.__data__.get(f)}function cf(f){return this.__data__.has(f)}function lf(f,w){var A=this.__data__;if(A instanceof re){var U=A.__data__;if(!F||U.length<r-1)return U.push([f,w]),this;A=this.__data__=new Me(U)}return A.set(f,w),this}wr.prototype.clear=of,wr.prototype.delete=af,wr.prototype.get=sf,wr.prototype.has=cf,wr.prototype.set=lf;function uf(f,w){var A=Nr(f)||ji(f)?sn(f.length,String):[],U=A.length,ee=!!U;for(var K in f)Xe.call(f,K)&&!(ee&&(K=="length"||Bi(K,U)))&&A.push(K);return A}function To(f,w){for(var A=f.length;A--;)if(Ui(f[A][0],w))return A;return-1}var ff=If(hf);function df(f,w,A,U,ee){var K=-1,se=f.length;for(A||(A=Bf),ee||(ee=[]);++K<se;){var Ne=f[K];A(Ne)?er(ee,Ne):ee[ee.length]=Ne}return ee}var pf=Mf();function hf(f,w){return f&&pf(f,w,Oo)}function ds(f,w){w=Co(w,f)?[w]:ps(w);for(var A=0,U=w.length;f!=null&&A<U;)f=f[Ao(w[A++])];return A&&A==U?f:void 0}function mf(f){return $t.call(f)}function gf(f,w){return f!=null&&w in Object(f)}function Li(f,w,A,U,ee){return f===w?!0:f==null||w==null||!Fn(f)&&!Ro(w)?f!==f&&w!==w:yf(f,w,Li,A,U,ee)}function yf(f,w,A,U,ee,K){var se=Nr(f),Ne=Nr(w),Re=l,Ye=l;se||(Re=Mr(f),Re=Re==c?v:Re),Ne||(Ye=Mr(w),Ye=Ye==c?v:Ye);var Tt=Re==v&&!It(f),_t=Ye==v&&!It(w),bt=Re==Ye;if(bt&&!Tt)return K||(K=new wr),se||Wf(f)?hs(f,w,A,U,ee,K):Nf(f,w,Re,A,U,ee,K);if(!(ee&a)){var Bt=Tt&&Xe.call(f,"__wrapped__"),Ft=_t&&Xe.call(w,"__wrapped__");if(Bt||Ft){var Dr=Bt?f.value():f,Er=Ft?w.value():w;return K||(K=new wr),A(Dr,Er,U,ee,K)}}return bt?(K||(K=new wr),Df(f,w,A,U,ee,K)):!1}function bf(f,w,A,U){var ee=A.length,K=ee;if(f==null)return!K;for(f=Object(f);ee--;){var se=A[ee];if(se[2]?se[1]!==f[se[0]]:!(se[0]in f))return!1}for(;++ee<K;){se=A[ee];var Ne=se[0],Re=f[Ne],Ye=se[1];if(se[2]){if(Re===void 0&&!(Ne in f))return!1}else{var Tt=new wr,_t;if(!(_t===void 0?Li(Ye,Re,U,i|a,Tt):_t))return!1}}return!0}function wf(f){if(!Fn(f)||Uf(f))return!1;var w=bs(f)||It(f)?br:ne;return w.test(Gr(f))}function Ef(f){return Ro(f)&&zi(f.length)&&!!Q[$t.call(f)]}function vf(f){return typeof f=="function"?f:f==null?ws:typeof f=="object"?Nr(f)?_f(f[0],f[1]):Tf(f):Kf(f)}function Sf(f){if(!jf(f))return Hr(f);var w=[];for(var A in Object(f))Xe.call(f,A)&&A!="constructor"&&w.push(A);return w}function xf(f,w){var A=-1,U=Bn(f)?Array(f.length):[];return ff(f,function(ee,K,se){U[++A]=w(ee,K,se)}),U}function Tf(f){var w=$f(f);return w.length==1&&w[0][2]?ys(w[0][0],w[0][1]):function(A){return A===f||bf(A,f,w)}}function _f(f,w){return Co(f)&&gs(w)?ys(Ao(f),w):function(A){var U=Vf(A,f);return U===void 0&&U===w?Yf(A,f):Li(w,U,void 0,i|a)}}function Cf(f,w,A){var U=-1;w=Pt(w.length?w:[ws],gr(vf));var ee=xf(f,function(K,se,Ne){var Re=Pt(w,function(Ye){return Ye(K)});return{criteria:Re,index:++U,value:K}});return an(ee,function(K,se){return Pf(K,se,A)})}function Af(f){return function(w){return ds(w,f)}}function Rf(f,w){return w=qr(w===void 0?f.length-1:w,0),function(){for(var A=arguments,U=-1,ee=qr(A.length-w,0),K=Array(ee);++U<ee;)K[U]=A[w+U];U=-1;for(var se=Array(w+1);++U<w;)se[U]=A[U];return se[w]=K,kt(f,this,se)}}function Of(f){if(typeof f=="string")return f;if(Un(f))return dt?dt.call(f):"";var w=f+"";return w=="0"&&1/f==-1/0?"-0":w}function ps(f){return Nr(f)?f:zf(f)}function kf(f,w){if(f!==w){var A=f!==void 0,U=f===null,ee=f===f,K=Un(f),se=w!==void 0,Ne=w===null,Re=w===w,Ye=Un(w);if(!Ne&&!Ye&&!K&&f>w||K&&se&&Re&&!Ne&&!Ye||U&&se&&Re||!A&&Re||!ee)return 1;if(!U&&!K&&!Ye&&f<w||Ye&&A&&ee&&!U&&!K||Ne&&A&&ee||!se&&ee||!Re)return-1}return 0}function Pf(f,w,A){for(var U=-1,ee=f.criteria,K=w.criteria,se=ee.length,Ne=A.length;++U<se;){var Re=kf(ee[U],K[U]);if(Re){if(U>=Ne)return Re;var Ye=A[U];return Re*(Ye=="desc"?-1:1)}}return f.index-w.index}function If(f,w){return function(A,U){if(A==null)return A;if(!Bn(A))return f(A,U);for(var ee=A.length,K=-1,se=Object(A);++K<ee&&U(se[K],K,se)!==!1;);return A}}function Mf(f){return function(w,A,U){for(var ee=-1,K=Object(w),se=U(w),Ne=se.length;Ne--;){var Re=se[++ee];if(A(K[Re],Re,K)===!1)break}return w}}function hs(f,w,A,U,ee,K){var se=ee&a,Ne=f.length,Re=w.length;if(Ne!=Re&&!(se&&Re>Ne))return!1;var Ye=K.get(f);if(Ye&&K.get(w))return Ye==w;var Tt=-1,_t=!0,bt=ee&i?new Wr:void 0;for(K.set(f,w),K.set(w,f);++Tt<Ne;){var Bt=f[Tt],Ft=w[Tt];if(U)var Dr=se?U(Ft,Bt,Tt,w,f,K):U(Bt,Ft,Tt,f,w,K);if(Dr!==void 0){if(Dr)continue;_t=!1;break}if(bt){if(!tr(w,function(Er,Vr){if(!bt.has(Vr)&&(Bt===Er||A(Bt,Er,U,ee,K)))return bt.add(Vr)})){_t=!1;break}}else if(!(Bt===Ft||A(Bt,Ft,U,ee,K))){_t=!1;break}}return K.delete(f),K.delete(w),_t}function Nf(f,w,A,U,ee,K,se){switch(A){case N:if(f.byteLength!=w.byteLength||f.byteOffset!=w.byteOffset)return!1;f=f.buffer,w=w.buffer;case R:return!(f.byteLength!=w.byteLength||!U(new ar(f),new ar(w)));case u:case p:case b:return Ui(+f,+w);case g:return f.name==w.name&&f.message==w.message;case P:case d:return f==w+"";case h:var Ne=nr;case O:var Re=K&a;if(Ne||(Ne=zr),f.size!=w.size&&!Re)return!1;var Ye=se.get(f);if(Ye)return Ye==w;K|=i,se.set(f,w);var Tt=hs(Ne(f),Ne(w),U,ee,K,se);return se.delete(f),Tt;case E:if(cr)return cr.call(f)==cr.call(w)}return!1}function Df(f,w,A,U,ee,K){var se=ee&a,Ne=Oo(f),Re=Ne.length,Ye=Oo(w),Tt=Ye.length;if(Re!=Tt&&!se)return!1;for(var _t=Re;_t--;){var bt=Ne[_t];if(!(se?bt in w:Xe.call(w,bt)))return!1}var Bt=K.get(f);if(Bt&&K.get(w))return Bt==w;var Ft=!0;K.set(f,w),K.set(w,f);for(var Dr=se;++_t<Re;){bt=Ne[_t];var Er=f[bt],Vr=w[bt];if(U)var Es=se?U(Vr,Er,bt,w,f,K):U(Er,Vr,bt,f,w,K);if(!(Es===void 0?Er===Vr||A(Er,Vr,U,ee,K):Es)){Ft=!1;break}Dr||(Dr=bt=="constructor")}if(Ft&&!Dr){var ko=f.constructor,Po=w.constructor;ko!=Po&&"constructor"in f&&"constructor"in w&&!(typeof ko=="function"&&ko instanceof ko&&typeof Po=="function"&&Po instanceof Po)&&(Ft=!1)}return K.delete(f),K.delete(w),Ft}function _o(f,w){var A=f.__data__;return Ff(w)?A[typeof w=="string"?"string":"hash"]:A.map}function $f(f){for(var w=Oo(f),A=w.length;A--;){var U=w[A],ee=f[U];w[A]=[U,ee,gs(ee)]}return w}function ln(f,w){var A=yr(f,w);return wf(A)?A:void 0}var Mr=mf;(Ve&&Mr(new Ve(new ArrayBuffer(1)))!=N||F&&Mr(new F)!=h||j&&Mr(j.resolve())!=k||Y&&Mr(new Y)!=O||oe&&Mr(new oe)!=T)&&(Mr=function(f){var w=$t.call(f),A=w==v?f.constructor:void 0,U=A?Gr(A):void 0;if(U)switch(U){case ue:return N;case Se:return h;case he:return k;case Ae:return O;case Ee:return T}return w});function Lf(f,w,A){w=Co(w,f)?[w]:ps(w);for(var U,ee=-1,se=w.length;++ee<se;){var K=Ao(w[ee]);if(!(U=f!=null&&A(f,K)))break;f=f[K]}if(U)return U;var se=f?f.length:0;return!!se&&zi(se)&&Bi(K,se)&&(Nr(f)||ji(f))}function Bf(f){return Nr(f)||ji(f)||!!(sr&&f&&f[sr])}function Bi(f,w){return w=w??s,!!w&&(typeof f=="number"||de.test(f))&&f>-1&&f%1==0&&f<w}function ms(f,w,A){if(!Fn(A))return!1;var U=typeof w;return(U=="number"?Bn(A)&&Bi(w,A.length):U=="string"&&w in A)?Ui(A[w],f):!1}function Co(f,w){if(Nr(f))return!1;var A=typeof f;return A=="number"||A=="symbol"||A=="boolean"||f==null||Un(f)?!0:z.test(f)||!ft.test(f)||w!=null&&f in Object(w)}function Ff(f){var w=typeof f;return w=="string"||w=="number"||w=="symbol"||w=="boolean"?f!=="__proto__":f===null}function Uf(f){return!!xt&&xt in f}function jf(f){var w=f&&f.constructor,A=typeof w=="function"&&w.prototype||or;return f===A}function gs(f){return f===f&&!Fn(f)}function ys(f,w){return function(A){return A==null?!1:A[f]===w&&(w!==void 0||f in Object(A))}}var zf=Fi(function(f){f=Gf(f);var w=[];return H.test(f)&&w.push(""),f.replace(le,function(A,U,ee,K){w.push(ee?K.replace(ae,"$1"):U||A)}),w});function Ao(f){if(typeof f=="string"||Un(f))return f;var w=f+"";return w=="0"&&1/f==-1/0?"-0":w}function Gr(f){if(f!=null){try{return it.call(f)}catch{}try{return f+""}catch{}}return""}var Hf=Rf(function(f,w){if(f==null)return[];var A=w.length;return A>1&&ms(f,w[0],w[1])?w=[]:A>2&&ms(w[0],w[1],w[2])&&(w=[w[0]]),Cf(f,df(w),[])});function Fi(f,w){if(typeof f!="function"||w&&typeof w!="function")throw new TypeError(n);var A=function(){var U=arguments,ee=w?w.apply(this,U):U[0],K=A.cache;if(K.has(ee))return K.get(ee);var se=f.apply(this,U);return A.cache=K.set(ee,se),se};return A.cache=new(Fi.Cache||Me),A}Fi.Cache=Me;function Ui(f,w){return f===w||f!==f&&w!==w}function ji(f){return qf(f)&&Xe.call(f,"callee")&&(!Lt.call(f,"callee")||$t.call(f)==c)}var Nr=Array.isArray;function Bn(f){return f!=null&&zi(f.length)&&!bs(f)}function qf(f){return Ro(f)&&Bn(f)}function bs(f){var w=Fn(f)?$t.call(f):"";return w==S||w==y}function zi(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=s}function Fn(f){var w=typeof f;return!!f&&(w=="object"||w=="function")}function Ro(f){return!!f&&typeof f=="object"}function Un(f){return typeof f=="symbol"||Ro(f)&&$t.call(f)==E}var Wf=Zt?gr(Zt):Ef;function Gf(f){return f==null?"":Of(f)}function Vf(f,w,A){var U=f==null?void 0:ds(f,w);return U===void 0?A:U}function Yf(f,w){return f!=null&&Lf(f,w,gf)}function Oo(f){return Bn(f)?uf(f):Sf(f)}function ws(f){return f}function Kf(f){return Co(f)?rr(Ao(f)):Af(f)}e.exports=Hf})(oo,oo.exports)),oo.exports}var rg=tg();const Uo=qa(rg),ng=({overlayInfo:e,...t})=>C(x.Fab,{...t,sx:{position:"fixed",bottom:e.present?e.contentOffset.bottom+30+"px":35,right:0,zIndex:1400,background:"linear-gradient(135deg, #1f2937 0%, #475260 100%)",color:"white",width:48,height:48,borderRadius:"5px 0 0 5px",boxShadow:"0 8px 24px rgba(31, 41, 55, 0.4)","&:hover":{background:"linear-gradient(135deg, #2c4870 0%, #4e6c91 100%)",transform:"translateY(-2px)",boxShadow:"0 8px 24px rgba(44, 72, 112, 0.4)"},transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"}}),og=Jt(x.Drawer,{shouldForwardProp:e=>e!=="overlayInfo"})(({overlayInfo:e})=>{const{present:t,position:r,contentOffset:n}=e,o={};if(t)switch(r){case"top":Object.assign(o,{marginTop:n.top,height:`calc(100vh - ${n.top}px)`});break;case"bottom":Object.assign(o,{marginBottom:n.bottom,height:`calc(100vh - ${n.bottom}px)`});break;case"left":Object.assign(o,{marginLeft:n.left});break;case"right":Object.assign(o,{marginRight:n.right});break}return{"& .MuiModal-backdrop":{display:"block"},"& .MuiDrawer-paper":{width:"730px",height:"100vh",borderRadius:"0",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.12)",background:"#f8f9fa",zIndex:1300,display:"flex",flexDirection:"column",...o}}}),ig=Jt(x.Box)(({theme:e})=>({padding:e.spacing(2),display:"flex",alignItems:"center",justifyContent:"center",minHeight:40,color:e.palette.common.black,borderBottom:`1px solid ${e.palette.divider}`})),ag=Jt(x.Box)(({theme:e})=>({flex:1,overflow:"auto",paddingTop:e.spacing(2),paddingLeft:e.spacing(2),paddingRight:e.spacing(2),paddingBottom:0,borderLeft:`1px solid ${e.palette.divider}`,"&::-webkit-scrollbar":{width:8},"&::-webkit-scrollbar-track":{background:e.palette.grey[100]},"&::-webkit-scrollbar-thumb":{background:e.palette.grey[400],borderRadius:4,"&:hover":{background:e.palette.grey[500]}}})),sg=({children:e})=>C(x.Box,{sx:{position:"relative",padding:t=>t.spacing(2),borderTop:t=>`1px solid ${t.palette.divider}`,background:"white",display:"flex",justifyContent:"center",zIndex:10},children:e}),hu=Jt(x.Card)(({theme:e})=>({borderRadius:10,padding:e.spacing(3),marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),mu=Jt(x.Card)(({theme:e})=>({borderRadius:12,padding:e.spacing(1),paddingTop:e.spacing(4),marginBottom:e.spacing(1),boxShadow:"none",background:"white"})),gu=Jt(x.Card)(({theme:e})=>({borderRadius:10,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:"10px",paddingBottom:"10px",marginBottom:e.spacing(2),boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",background:"white"})),cg=({expanded:e})=>X(x.Box,{children:[X(hu,{children:[C(x.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",mb:3,children:C(x.Box,{display:"flex",alignItems:"center",gap:1,children:C(x.Skeleton,{variant:"text",width:180,height:30})})}),X(x.Box,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[C(x.Box,{position:"relative",display:"inline-flex",mr:4,children:C(x.Skeleton,{variant:"circular",width:140,height:140})}),X(x.Box,{display:"flex",flexDirection:"column",gap:2,flex:0,children:[X(x.Box,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[C(x.Skeleton,{variant:"text",width:80,height:28}),C(x.Skeleton,{variant:"text",width:60,height:14})]}),C(x.Skeleton,{variant:"rectangular",width:"100%",height:2}),X(x.Box,{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",children:[C(x.Skeleton,{variant:"text",width:80,height:28}),C(x.Skeleton,{variant:"text",width:60,height:14})]})]}),C(x.Skeleton,{variant:"rectangular",width:220,height:50,sx:{ml:5}})]})]}),X(x.Accordion,{defaultExpanded:!0,expanded:e,sx:{borderRadius:2,mb:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"}},children:[C(x.AccordionSummary,{expandIcon:C(mt.ExpandMore,{}),sx:{px:3},children:C(x.Box,{display:"flex",alignItems:"center",gap:1,height:72,children:C(x.Skeleton,{variant:"text",width:160,height:28})})}),C(x.AccordionDetails,{sx:{px:3,pb:3},children:C(mu,{children:C(x.Box,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"space-around",children:[1,2,3,4,5,6].map(t=>X(x.Box,{display:"flex",flexDirection:"column",alignItems:"center",gap:2,width:"180px",children:[C(x.Box,{position:"relative",display:"inline-flex",children:C(x.Skeleton,{variant:"circular",width:100,height:100})}),X(x.Box,{textAlign:"center",width:"100%",children:[C(x.Skeleton,{variant:"text",width:120,height:20,sx:{mx:"auto",mb:.5}}),C(x.Skeleton,{variant:"text",width:100,height:16,sx:{mx:"auto"}})]})]},t))})})})]}),C(x.Typography,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:C(x.Skeleton,{variant:"text",width:280,height:36})}),C(x.Box,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:X(x.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[X(x.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[C(x.Skeleton,{variant:"text",width:240,height:20}),C(x.Skeleton,{variant:"text",width:80,height:28})]}),C(x.Box,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowY:"scroll",pb:2.5,pt:1},children:[1,2,3,4].map(t=>C(x.Skeleton,{variant:"rounded",width:140,height:32,sx:{borderRadius:4,flexShrink:0}},t))})]})}),C(x.Box,{sx:{minHeight:"calc(100vh - 320px)"},children:C(gu,{children:C(x.List,{sx:{p:0},children:[1,2,3].map(t=>C(x.ListItem,{sx:{px:0,py:1.5,alignItems:"flex-start",borderBottom:t<3?"1px solid":"none",borderColor:"divider"},children:X(x.Box,{mt:.5,width:"100%",children:[C(x.Skeleton,{variant:"text",width:"70%",height:32,sx:{mb:2.5}}),X(x.Box,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[C(x.Skeleton,{variant:"rounded",width:120,height:32,sx:{borderRadius:4}}),C(x.Skeleton,{variant:"rounded",width:100,height:32,sx:{borderRadius:4}}),C(x.Skeleton,{variant:"rounded",width:80,height:32,sx:{borderRadius:4}})]}),X(x.Box,{mb:2,children:[C(x.Skeleton,{variant:"text",width:"100%",height:20}),C(x.Skeleton,{variant:"text",width:"95%",height:20}),C(x.Skeleton,{variant:"text",width:"60%",height:20})]}),X(x.Box,{display:"flex",gap:1,children:[C(x.Skeleton,{variant:"rounded",width:140,height:32,sx:{borderRadius:2}}),C(x.Skeleton,{variant:"rounded",width:120,height:32,sx:{borderRadius:2}})]})]})},t))})})})]}),lg=({html:e,currentHighlight:t,onHighlightsFound:r,onVisibleHighlightChange:n,clickedIndicator:o,scriptsDisabled:i=!0})=>{const a=te.useRef(null),s=te.useRef(!1);return te.useEffect(()=>{if(!a.current)return;const c=a.current,l=c.contentDocument||c.contentWindow?.document;if(!l){console.warn("[DQM] Could not access iframe document");return}const g=new DOMParser().parseFromString(e,"text/html").documentElement;g.getElementsByTagName("body")[0].style.overflow="auto",l.open(),l.write(g.outerHTML),l.close();const S=l.createElement("style");S.textContent=`
67
67
  .astHighlightFull,
68
68
  .astHighlightStart,
69
69
  .astHighlightMiddle,
@@ -92,9 +92,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
92
92
  outline-color: #ff6666;
93
93
  }
94
94
  }
95
- `,l.head.appendChild(T);const h=setTimeout(()=>{const b=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],v=l.querySelectorAll(b.join(", "));if(r&&r(v.length),v.length>0&&n&&c.contentWindow){const O={root:null,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},P=new Map,d=c.contentWindow.IntersectionObserver,E=new d(x=>{if(!s.current&&(x.forEach(R=>{const N=Array.from(v).indexOf(R.target);R.isIntersecting&&R.intersectionRatio>0?P.set(R.target,N):P.delete(R.target)}),P.size>0)){const N=Array.from(P.entries()).sort((W,F)=>W[1]-F[1])[0][1];n(N+1)}},O);return v.forEach(x=>E.observe(x)),()=>{E.disconnect()}}},100);return()=>{clearTimeout(h)}},[e,r,n]),te.useEffect(()=>{if(!a.current||!t||t===0)return;const c=a.current,l=c.contentDocument||c.contentWindow?.document;if(!l)return;const f=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=l.querySelectorAll(f.join(", "));if(p.length===0){console.warn("[DQM] No highlights found in iframe");return}const y=p[t-1];y?(s.current=!0,y.scrollIntoView({behavior:"smooth",block:"center"}),y.classList.add("animate"),setTimeout(()=>{y.classList.remove("animate")},800),setTimeout(()=>{s.current=!1,n&&n(t)},1e3)):console.warn("[DQM] Target element not found for highlight",t)},[t,n,o]),C(eo,{children:C("iframe",{ref:a,title:"Browser View",style:{width:"100%",height:"600px",border:"1px solid #e0e0e0",borderRadius:"8px"},sandbox:i?"allow-same-origin allow-popups allow-forms":"allow-same-origin allow-scripts allow-popups allow-forms"})})},cg=({html:e,onHighlightsFound:t,currentHighlight:r,shouldAutoScrollToFirst:n=!1,onVisibleHighlightChange:o,clickedIndicator:i,scrollContainerRef:a})=>{const s=te.useRef(null),c=te.useRef(null),l=te.useRef(!1);return te.useEffect(()=>{if(s.current){if(!c.current)try{c.current=s.current.attachShadow({mode:"open"})}catch(f){console.warn("[DQM] Could not attach shadow DOM, falling back to regular DOM",f),s.current.innerHTML=e;return}if(c.current){c.current.innerHTML=e;const f=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=c.current.querySelectorAll(f.join(", "));if(t&&t(p.length),p.length>0&&o){const y=a?.current;if(y){const T={root:y,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},g=new Map,h=new IntersectionObserver(b=>{if(!l.current&&(b.forEach(v=>{const O=Array.from(p).indexOf(v.target);v.isIntersecting&&v.intersectionRatio>0?g.set(v.target,O):g.delete(v.target)}),g.size>0)){const O=Array.from(g.entries()).sort((P,k)=>P[1]-k[1])[0][1];o(O+1)}},T);return p.forEach(b=>h.observe(b)),()=>{h.disconnect()}}}}}},[e,t,n,o,a]),te.useEffect(()=>{if(!c.current||!r||r===0)return;const f=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=c.current.querySelectorAll(f.join(", "));if(p.length===0)return;const y=p[r-1];y&&(l.current=!0,y.scrollIntoView({behavior:"smooth",block:"center"}),y.classList.add("animate"),setTimeout(()=>{y.classList.remove("animate")},800),setTimeout(()=>{l.current=!1,o&&o(r)},1e3))},[r,o,i]),C("div",{ref:s,style:{width:"100%",minHeight:"100px"}})};const{entries:gu,setPrototypeOf:xc,isFrozen:lg,getPrototypeOf:ug,getOwnPropertyDescriptor:fg}=Object;let{freeze:Et,seal:Wt,create:Da}=Object,{apply:$a,construct:La}=typeof Reflect<"u"&&Reflect;Et||(Et=function(t){return t});Wt||(Wt=function(t){return t});$a||($a=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});La||(La=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const jo=vt(Array.prototype.forEach),dg=vt(Array.prototype.lastIndexOf),Tc=vt(Array.prototype.pop),Hn=vt(Array.prototype.push),pg=vt(Array.prototype.splice),oi=vt(String.prototype.toLowerCase),na=vt(String.prototype.toString),oa=vt(String.prototype.match),qn=vt(String.prototype.replace),hg=vt(String.prototype.indexOf),mg=vt(String.prototype.trim),Jt=vt(Object.prototype.hasOwnProperty),bt=vt(RegExp.prototype.test),Wn=gg(TypeError);function vt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return $a(e,t,n)}}function gg(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return La(e,r)}}function _e(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oi;xc&&xc(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(lg(t)||(t[n]=i),o=i)}e[o]=!0}return e}function yg(e){for(let t=0;t<e.length;t++)Jt(e,t)||(e[t]=null);return e}function Sr(e){const t=Da(null);for(const[r,n]of gu(e))Jt(e,r)&&(Array.isArray(n)?t[r]=yg(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Sr(n):t[r]=n);return t}function Gn(e,t){for(;e!==null;){const n=fg(e,t);if(n){if(n.get)return vt(n.get);if(typeof n.value=="function")return vt(n.value)}e=ug(e)}function r(){return null}return r}const _c=Et(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=Et(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),aa=Et(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),bg=Et(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sa=Et(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wg=Et(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Cc=Et(["#text"]),Ac=Et(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ca=Et(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Rc=Et(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zo=Et(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eg=Wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vg=Wt(/<%[\w\W]*|[\w\W]*%>/gm),Sg=Wt(/\$\{[\w\W]*/gm),xg=Wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Tg=Wt(/^aria-[\-\w]+$/),yu=Wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_g=Wt(/^(?:\w+script|data):/i),Cg=Wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bu=Wt(/^html$/i),Ag=Wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var kc=Object.freeze({__proto__:null,ARIA_ATTR:Tg,ATTR_WHITESPACE:Cg,CUSTOM_ELEMENT:Ag,DATA_ATTR:xg,DOCTYPE_NAME:bu,ERB_EXPR:vg,IS_ALLOWED_URI:yu,IS_SCRIPT_OR_DATA:_g,MUSTACHE_EXPR:Eg,TMPLIT_EXPR:Sg});const Vn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rg=function(){return typeof window>"u"?null:window},kg=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Oc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rg();const t=re=>wu(re);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==Vn.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:l,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:T}=e,g=c.prototype,h=Gn(g,"cloneNode"),b=Gn(g,"remove"),v=Gn(g,"nextSibling"),O=Gn(g,"childNodes"),P=Gn(g,"parentNode");if(typeof a=="function"){const re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}let k,d="";const{implementation:E,createNodeIterator:x,createDocumentFragment:R,getElementsByTagName:N}=r,{importNode:W}=n;let F=Oc();t.isSupported=typeof gu=="function"&&typeof P=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:m,ERB_EXPR:$,TMPLIT_EXPR:I,DATA_ATTR:q,ARIA_ATTR:Z,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:ut}=kc;let{IS_ALLOWED_URI:z}=kc,H=null;const ce=_e({},[..._c,...ia,...aa,...sa,...Cc]);let J=null;const ae=_e({},[...Ac,...ca,...Rc,...zo]);let ne=Object.seal(Da(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,Q=null;const me=Object.seal(Da(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ee=!0,pe=!0,Re=!1,D=!0,We=!1,Ke=!0,qe=!1,nr=!1,Pt=!1,It=!1,or=!1,ir=!1,ar=!0,on=!1;const an="user-content-";let hr=!0,mr=!1,Mt={},Yt=null;const sn=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fr=null;const Ur=_e({},["audio","video","img","source","image","track"]);let jr=null;const St=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml";let Je=Tt,Bt=!1,Rr=null;const Ft=_e({},[gt,xt,Tt],na);let gr=_e({},["mi","mo","mn","ms","mtext"]),kr=_e({},["annotation-xml"]);const zr=_e({},["title","style","font","a","script"]);let Kt=null;const cn=["application/xhtml+xml","text/html"],j="text/html";let B=null,Y=null;const ie=r.createElement("form"),ue=function(_){return _ instanceof RegExp||_ instanceof Function},le=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Y&&Y===_)){if((!_||typeof _!="object")&&(_={}),_=Sr(_),Kt=cn.indexOf(_.PARSER_MEDIA_TYPE)===-1?j:_.PARSER_MEDIA_TYPE,B=Kt==="application/xhtml+xml"?na:oi,H=Jt(_,"ALLOWED_TAGS")?_e({},_.ALLOWED_TAGS,B):ce,J=Jt(_,"ALLOWED_ATTR")?_e({},_.ALLOWED_ATTR,B):ae,Rr=Jt(_,"ALLOWED_NAMESPACES")?_e({},_.ALLOWED_NAMESPACES,na):Ft,jr=Jt(_,"ADD_URI_SAFE_ATTR")?_e(Sr(St),_.ADD_URI_SAFE_ATTR,B):St,Fr=Jt(_,"ADD_DATA_URI_TAGS")?_e(Sr(Ur),_.ADD_DATA_URI_TAGS,B):Ur,Yt=Jt(_,"FORBID_CONTENTS")?_e({},_.FORBID_CONTENTS,B):sn,de=Jt(_,"FORBID_TAGS")?_e({},_.FORBID_TAGS,B):Sr({}),Q=Jt(_,"FORBID_ATTR")?_e({},_.FORBID_ATTR,B):Sr({}),Mt=Jt(_,"USE_PROFILES")?_.USE_PROFILES:!1,Ee=_.ALLOW_ARIA_ATTR!==!1,pe=_.ALLOW_DATA_ATTR!==!1,Re=_.ALLOW_UNKNOWN_PROTOCOLS||!1,D=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=_.SAFE_FOR_TEMPLATES||!1,Ke=_.SAFE_FOR_XML!==!1,qe=_.WHOLE_DOCUMENT||!1,It=_.RETURN_DOM||!1,or=_.RETURN_DOM_FRAGMENT||!1,ir=_.RETURN_TRUSTED_TYPE||!1,Pt=_.FORCE_BODY||!1,ar=_.SANITIZE_DOM!==!1,on=_.SANITIZE_NAMED_PROPS||!1,hr=_.KEEP_CONTENT!==!1,mr=_.IN_PLACE||!1,z=_.ALLOWED_URI_REGEXP||yu,Je=_.NAMESPACE||Tt,gr=_.MATHML_TEXT_INTEGRATION_POINTS||gr,kr=_.HTML_INTEGRATION_POINTS||kr,ne=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&ue(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&ue(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(pe=!1),or&&(It=!0),Mt&&(H=_e({},Cc),J=[],Mt.html===!0&&(_e(H,_c),_e(J,Ac)),Mt.svg===!0&&(_e(H,ia),_e(J,ca),_e(J,zo)),Mt.svgFilters===!0&&(_e(H,aa),_e(J,ca),_e(J,zo)),Mt.mathMl===!0&&(_e(H,sa),_e(J,Rc),_e(J,zo))),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?me.tagCheck=_.ADD_TAGS:(H===ce&&(H=Sr(H)),_e(H,_.ADD_TAGS,B))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?me.attributeCheck=_.ADD_ATTR:(J===ae&&(J=Sr(J)),_e(J,_.ADD_ATTR,B))),_.ADD_URI_SAFE_ATTR&&_e(jr,_.ADD_URI_SAFE_ATTR,B),_.FORBID_CONTENTS&&(Yt===sn&&(Yt=Sr(Yt)),_e(Yt,_.FORBID_CONTENTS,B)),hr&&(H["#text"]=!0),qe&&_e(H,["html","head","body"]),H.table&&(_e(H,["tbody"]),delete de.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Wn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Wn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=_.TRUSTED_TYPES_POLICY,d=k.createHTML("")}else k===void 0&&(k=kg(T,o)),k!==null&&typeof d=="string"&&(d=k.createHTML(""));Et&&Et(_),Y=_}},ge=_e({},[...ia,...aa,...bg]),Se=_e({},[...sa,...wg]),je=function(_){let V=P(_);(!V||!V.tagName)&&(V={namespaceURI:Je,tagName:"template"});const oe=oi(_.tagName),Ge=oi(V.tagName);return Rr[_.namespaceURI]?_.namespaceURI===xt?V.namespaceURI===Tt?oe==="svg":V.namespaceURI===gt?oe==="svg"&&(Ge==="annotation-xml"||gr[Ge]):!!ge[oe]:_.namespaceURI===gt?V.namespaceURI===Tt?oe==="math":V.namespaceURI===xt?oe==="math"&&kr[Ge]:!!Se[oe]:_.namespaceURI===Tt?V.namespaceURI===xt&&!kr[Ge]||V.namespaceURI===gt&&!gr[Ge]?!1:!Se[oe]&&(zr[oe]||!ge[oe]):!!(Kt==="application/xhtml+xml"&&Rr[_.namespaceURI]):!1},he=function(_){Hn(t.removed,{element:_});try{P(_).removeChild(_)}catch{b(_)}},nt=function(_,V){try{Hn(t.removed,{attribute:V.getAttributeNode(_),from:V})}catch{Hn(t.removed,{attribute:null,from:V})}if(V.removeAttribute(_),_==="is")if(It||or)try{he(V)}catch{}else try{V.setAttribute(_,"")}catch{}},Hr=function(_){let V=null,oe=null;if(Pt)_="<remove></remove>"+_;else{const Ie=oa(_,/^[\r\n\t ]+/);oe=Ie&&Ie[0]}Kt==="application/xhtml+xml"&&Je===Tt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const Ge=k?k.createHTML(_):_;if(Je===Tt)try{V=new y().parseFromString(Ge,Kt)}catch{}if(!V||!V.documentElement){V=E.createDocument(Je,"template",null);try{V.documentElement.innerHTML=Bt?d:Ge}catch{}}const st=V.body||V.documentElement;return _&&oe&&st.insertBefore(r.createTextNode(oe),st.childNodes[0]||null),Je===Tt?N.call(V,qe?"html":"body")[0]:qe?V.documentElement:st},at=function(_){return x.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Nt=function(_){return _ instanceof p&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof f)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},Xt=function(_){return typeof s=="function"&&_ instanceof s};function ct(re,_,V){jo(re,oe=>{oe.call(t,_,V,Y)})}const wo=function(_){let V=null;if(ct(F.beforeSanitizeElements,_,null),Nt(_))return he(_),!0;const oe=B(_.nodeName);if(ct(F.uponSanitizeElement,_,{tagName:oe,allowedTags:H}),Ke&&_.hasChildNodes()&&!Xt(_.firstElementChild)&&bt(/<[/\w!]/g,_.innerHTML)&&bt(/<[/\w!]/g,_.textContent)||_.nodeType===Vn.progressingInstruction||Ke&&_.nodeType===Vn.comment&&bt(/<[/\w]/g,_.data))return he(_),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(oe))&&(!H[oe]||de[oe])){if(!de[oe]&&vo(oe)&&(ne.tagNameCheck instanceof RegExp&&bt(ne.tagNameCheck,oe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(oe)))return!1;if(hr&&!Yt[oe]){const Ge=P(_)||_.parentNode,st=O(_)||_.childNodes;if(st&&Ge){const Ie=st.length;for(let ft=Ie-1;ft>=0;--ft){const Qt=h(st[ft],!0);Qt.__removalCount=(_.__removalCount||0)+1,Ge.insertBefore(Qt,v(_))}}}return he(_),!0}return _ instanceof c&&!je(_)||(oe==="noscript"||oe==="noembed"||oe==="noframes")&&bt(/<\/no(script|embed|frames)/i,_.innerHTML)?(he(_),!0):(We&&_.nodeType===Vn.text&&(V=_.textContent,jo([m,$,I],Ge=>{V=qn(V,Ge," ")}),_.textContent!==V&&(Hn(t.removed,{element:_.cloneNode()}),_.textContent=V)),ct(F.afterSanitizeElements,_,null),!1)},Eo=function(_,V,oe){if(ar&&(V==="id"||V==="name")&&(oe in r||oe in ie))return!1;if(!(pe&&!Q[V]&&bt(q,V))){if(!(Ee&&bt(Z,V))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(V,_))){if(!J[V]||Q[V]){if(!(vo(_)&&(ne.tagNameCheck instanceof RegExp&&bt(ne.tagNameCheck,_)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(_))&&(ne.attributeNameCheck instanceof RegExp&&bt(ne.attributeNameCheck,V)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(V,_))||V==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&bt(ne.tagNameCheck,oe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(oe))))return!1}else if(!jr[V]){if(!bt(z,qn(oe,Ce,""))){if(!((V==="src"||V==="xlink:href"||V==="href")&&_!=="script"&&hg(oe,"data:")===0&&Fr[_])){if(!(Re&&!bt(fe,qn(oe,Ce,"")))){if(oe)return!1}}}}}}}return!0},vo=function(_){return _!=="annotation-xml"&&oa(_,ut)},So=function(_){ct(F.beforeSanitizeAttributes,_,null);const{attributes:V}=_;if(!V||Nt(_))return;const oe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let Ge=V.length;for(;Ge--;){const st=V[Ge],{name:Ie,namespaceURI:ft,value:Qt}=st,Or=B(Ie),$n=Qt;let ot=Ie==="value"?$n:mg($n);if(oe.attrName=Or,oe.attrValue=ot,oe.keepAttr=!0,oe.forceKeepAttr=void 0,ct(F.uponSanitizeAttribute,_,oe),ot=oe.attrValue,on&&(Or==="id"||Or==="name")&&(nt(Ie,_),ot=an+ot),Ke&&bt(/((--!?|])>)|<\/(style|title|textarea)/i,ot)){nt(Ie,_);continue}if(Or==="attributename"&&oa(ot,"href")){nt(Ie,_);continue}if(oe.forceKeepAttr)continue;if(!oe.keepAttr){nt(Ie,_);continue}if(!D&&bt(/\/>/i,ot)){nt(Ie,_);continue}We&&jo([m,$,I],xo=>{ot=qn(ot,xo," ")});const qr=B(_.nodeName);if(!Eo(qr,Or,ot)){nt(Ie,_);continue}if(k&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!ft)switch(T.getAttributeType(qr,Or)){case"TrustedHTML":{ot=k.createHTML(ot);break}case"TrustedScriptURL":{ot=k.createScriptURL(ot);break}}if(ot!==$n)try{ft?_.setAttributeNS(ft,Ie,ot):_.setAttribute(Ie,ot),Nt(_)?he(_):Tc(t.removed)}catch{nt(Ie,_)}}ct(F.afterSanitizeAttributes,_,null)},$i=function re(_){let V=null;const oe=at(_);for(ct(F.beforeSanitizeShadowDOM,_,null);V=oe.nextNode();)ct(F.uponSanitizeShadowNode,V,null),wo(V),So(V),V.content instanceof i&&re(V.content);ct(F.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(re){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,oe=null,Ge=null,st=null;if(Bt=!re,Bt&&(re="<!-->"),typeof re!="string"&&!Xt(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Wn("dirty is not a string, aborting")}else throw Wn("toString is not a function");if(!t.isSupported)return re;if(nr||le(_),t.removed=[],typeof re=="string"&&(mr=!1),mr){if(re.nodeName){const Qt=B(re.nodeName);if(!H[Qt]||de[Qt])throw Wn("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof s)V=Hr("<!---->"),oe=V.ownerDocument.importNode(re,!0),oe.nodeType===Vn.element&&oe.nodeName==="BODY"||oe.nodeName==="HTML"?V=oe:V.appendChild(oe);else{if(!It&&!We&&!qe&&re.indexOf("<")===-1)return k&&ir?k.createHTML(re):re;if(V=Hr(re),!V)return It?null:ir?d:""}V&&Pt&&he(V.firstChild);const Ie=at(mr?re:V);for(;Ge=Ie.nextNode();)wo(Ge),So(Ge),Ge.content instanceof i&&$i(Ge.content);if(mr)return re;if(It){if(or)for(st=R.call(V.ownerDocument);V.firstChild;)st.appendChild(V.firstChild);else st=V;return(J.shadowroot||J.shadowrootmode)&&(st=W.call(n,st,!0)),st}let ft=qe?V.outerHTML:V.innerHTML;return qe&&H["!doctype"]&&V.ownerDocument&&V.ownerDocument.doctype&&V.ownerDocument.doctype.name&&bt(bu,V.ownerDocument.doctype.name)&&(ft="<!DOCTYPE "+V.ownerDocument.doctype.name+`>
96
- `+ft),We&&jo([m,$,I],Qt=>{ft=qn(ft,Qt," ")}),k&&ir?k.createHTML(ft):ft},t.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};le(re),nr=!0},t.clearConfig=function(){Y=null,nr=!1},t.isValidAttribute=function(re,_,V){Y||le({});const oe=B(re),Ge=B(_);return Eo(oe,Ge,V)},t.addHook=function(re,_){typeof _=="function"&&Hn(F[re],_)},t.removeHook=function(re,_){if(_!==void 0){const V=dg(F[re],_);return V===-1?void 0:pg(F[re],V,1)[0]}return Tc(F[re])},t.removeHooks=function(re){F[re]=[]},t.removeAllHooks=function(){F=Oc()},t}var Og=wu(),Yn={},mn={},Ho={},Yr={},Kr={},la={},Pc;function Eu(){return Pc||(Pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(la)),la}var ve={},Ic;function Mc(){if(Ic)return ve;Ic=1;var e=ve&&ve.__extends||(function(){var d=function(E,x){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,N){R.__proto__=N}||function(R,N){for(var W in N)Object.prototype.hasOwnProperty.call(N,W)&&(R[W]=N[W])},d(E,x)};return function(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");d(E,x);function R(){this.constructor=E}E.prototype=x===null?Object.create(x):(R.prototype=x.prototype,new R)}})(),t=ve&&ve.__assign||function(){return t=Object.assign||function(d){for(var E,x=1,R=arguments.length;x<R;x++){E=arguments[x];for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(d[N]=E[N])}return d},t.apply(this,arguments)};Object.defineProperty(ve,"__esModule",{value:!0}),ve.cloneNode=ve.hasChildren=ve.isDocument=ve.isDirective=ve.isComment=ve.isText=ve.isCDATA=ve.isTag=ve.Element=ve.Document=ve.CDATA=ve.NodeWithChildren=ve.ProcessingInstruction=ve.Comment=ve.Text=ve.DataNode=ve.Node=void 0;var r=Eu(),n=(function(){function d(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent},set:function(E){this.parent=E},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){return this.prev},set:function(E){this.prev=E},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){return this.next},set:function(E){this.next=E},enumerable:!1,configurable:!0}),d.prototype.cloneNode=function(E){return E===void 0&&(E=!1),P(this,E)},d})();ve.Node=n;var o=(function(d){e(E,d);function E(x){var R=d.call(this)||this;return R.data=x,R}return Object.defineProperty(E.prototype,"nodeValue",{get:function(){return this.data},set:function(x){this.data=x},enumerable:!1,configurable:!0}),E})(n);ve.DataNode=o;var i=(function(d){e(E,d);function E(){var x=d!==null&&d.apply(this,arguments)||this;return x.type=r.ElementType.Text,x}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),E})(o);ve.Text=i;var a=(function(d){e(E,d);function E(){var x=d!==null&&d.apply(this,arguments)||this;return x.type=r.ElementType.Comment,x}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),E})(o);ve.Comment=a;var s=(function(d){e(E,d);function E(x,R){var N=d.call(this,R)||this;return N.name=x,N.type=r.ElementType.Directive,N}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),E})(o);ve.ProcessingInstruction=s;var c=(function(d){e(E,d);function E(x){var R=d.call(this)||this;return R.children=x,R}return Object.defineProperty(E.prototype,"firstChild",{get:function(){var x;return(x=this.children[0])!==null&&x!==void 0?x:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"childNodes",{get:function(){return this.children},set:function(x){this.children=x},enumerable:!1,configurable:!0}),E})(n);ve.NodeWithChildren=c;var l=(function(d){e(E,d);function E(){var x=d!==null&&d.apply(this,arguments)||this;return x.type=r.ElementType.CDATA,x}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),E})(c);ve.CDATA=l;var f=(function(d){e(E,d);function E(){var x=d!==null&&d.apply(this,arguments)||this;return x.type=r.ElementType.Root,x}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),E})(c);ve.Document=f;var p=(function(d){e(E,d);function E(x,R,N,W){N===void 0&&(N=[]),W===void 0&&(W=x==="script"?r.ElementType.Script:x==="style"?r.ElementType.Style:r.ElementType.Tag);var F=d.call(this,N)||this;return F.name=x,F.attribs=R,F.type=W,F}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tagName",{get:function(){return this.name},set:function(x){this.name=x},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"attributes",{get:function(){var x=this;return Object.keys(this.attribs).map(function(R){var N,W;return{name:R,value:x.attribs[R],namespace:(N=x["x-attribsNamespace"])===null||N===void 0?void 0:N[R],prefix:(W=x["x-attribsPrefix"])===null||W===void 0?void 0:W[R]}})},enumerable:!1,configurable:!0}),E})(c);ve.Element=p;function y(d){return(0,r.isTag)(d)}ve.isTag=y;function T(d){return d.type===r.ElementType.CDATA}ve.isCDATA=T;function g(d){return d.type===r.ElementType.Text}ve.isText=g;function h(d){return d.type===r.ElementType.Comment}ve.isComment=h;function b(d){return d.type===r.ElementType.Directive}ve.isDirective=b;function v(d){return d.type===r.ElementType.Root}ve.isDocument=v;function O(d){return Object.prototype.hasOwnProperty.call(d,"children")}ve.hasChildren=O;function P(d,E){E===void 0&&(E=!1);var x;if(g(d))x=new i(d.data);else if(h(d))x=new a(d.data);else if(y(d)){var R=E?k(d.children):[],N=new p(d.name,t({},d.attribs),R);R.forEach(function($){return $.parent=N}),d.namespace!=null&&(N.namespace=d.namespace),d["x-attribsNamespace"]&&(N["x-attribsNamespace"]=t({},d["x-attribsNamespace"])),d["x-attribsPrefix"]&&(N["x-attribsPrefix"]=t({},d["x-attribsPrefix"])),x=N}else if(T(d)){var R=E?k(d.children):[],W=new l(R);R.forEach(function(I){return I.parent=W}),x=W}else if(v(d)){var R=E?k(d.children):[],F=new f(R);R.forEach(function(I){return I.parent=F}),d["x-mode"]&&(F["x-mode"]=d["x-mode"]),x=F}else if(b(d)){var m=new s(d.name,d.data);d["x-name"]!=null&&(m["x-name"]=d["x-name"],m["x-publicId"]=d["x-publicId"],m["x-systemId"]=d["x-systemId"]),x=m}else throw new Error("Not implemented yet: ".concat(d.type));return x.startIndex=d.startIndex,x.endIndex=d.endIndex,d.sourceCodeLocation!=null&&(x.sourceCodeLocation=d.sourceCodeLocation),x}ve.cloneNode=P;function k(d){for(var E=d.map(function(R){return P(R,!0)}),x=1;x<E.length;x++)E[x].prev=E[x-1],E[x-1].next=E[x];return E}return ve}var Nc;function vu(){return Nc||(Nc=1,(function(e){var t=Kr&&Kr.__createBinding||(Object.create?(function(s,c,l,f){f===void 0&&(f=l);var p=Object.getOwnPropertyDescriptor(c,l);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(s,f,p)}):(function(s,c,l,f){f===void 0&&(f=l),s[f]=c[l]})),r=Kr&&Kr.__exportStar||function(s,c){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&t(c,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=Eu(),o=Mc();r(Mc(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function s(c,l,f){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(f=l,l=i),typeof c=="object"&&(l=c,c=void 0),this.callback=c??null,this.options=l??i,this.elementCB=f??null}return s.prototype.onparserinit=function(c){this.parser=c},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(c){this.handleCallback(c)},s.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},s.prototype.onopentag=function(c,l){var f=this.options.xmlMode?n.ElementType.Tag:void 0,p=new o.Element(c,l,void 0,f);this.addNode(p),this.tagStack.push(p)},s.prototype.ontext=function(c){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=c,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var f=new o.Text(c);this.addNode(f),this.lastNode=f}},s.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=c;return}var l=new o.Comment(c);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var c=new o.Text(""),l=new o.CDATA([c]);this.addNode(l),c.parent=l,this.lastNode=c},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(c,l){var f=new o.ProcessingInstruction(c,l);this.addNode(f)},s.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},s.prototype.addNode=function(c){var l=this.tagStack[this.tagStack.length-1],f=l.children[l.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),l.children.push(c),f&&(c.prev=f,f.next=c),c.parent=l,this.lastNode=null},s})();e.DomHandler=a,e.default=a})(Kr)),Kr}var ua={},Dc;function Pg(){return Dc||(Dc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(ua)),ua}var $c;function Su(){if($c)return Yr;$c=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.formatAttributes=n,Yr.escapeSpecialCharacters=i,Yr.revertEscapedCharacters=a,Yr.formatDOM=s;var e=vu(),t=Pg();function r(c){return t.CASE_SENSITIVE_TAG_NAMES_MAP[c]}function n(c){for(var l={},f=0,p=c.length;f<p;f++){var y=c[f];l[y.name]=y.value}return l}function o(c){c=c.toLowerCase();var l=r(c);return l||c}function i(c){return c.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function a(c){return c.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function s(c,l,f){l===void 0&&(l=null);for(var p=[],y,T=0,g=c.length;T<g;T++){var h=c[T];switch(h.nodeType){case 1:{var b=o(h.nodeName);y=new e.Element(b,n(h.attributes)),y.children=s(b==="template"?h.content.childNodes:h.childNodes,y);break}case 3:y=new e.Text(a(h.nodeValue));break;case 8:y=new e.Comment(h.nodeValue);break;default:continue}var v=p[T-1]||null;v&&(v.next=y),y.parent=l,y.prev=v,y.next=null,p.push(y)}return f&&(y=new e.ProcessingInstruction(f.substring(0,f.indexOf(" ")).toLowerCase(),f),y.next=p[0]||null,y.parent=l,p.unshift(y),p[1]&&(p[1].prev=p[0])),p}return Yr}var Lc;function Ig(){if(Lc)return Ho;Lc=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=h;var e=Su(),t="html",r="head",n="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,s=function(b,v){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(b,v){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window=="object"&&window.DOMParser;if(typeof l=="function"){var f=new l,p="text/html";c=function(b,v){return v&&(b="<".concat(v,">").concat(b,"</").concat(v,">")),f.parseFromString(b,p)},s=c}if(typeof document=="object"&&document.implementation){var y=document.implementation.createHTMLDocument();s=function(b,v){if(v){var O=y.documentElement.querySelector(v);return O&&(O.innerHTML=b),y}return y.documentElement.innerHTML=b,y}}var T=typeof document=="object"&&document.createElement("template"),g;T&&T.content&&(g=function(b){return T.innerHTML=b,T.content.childNodes});function h(b){var v,O;b=(0,e.escapeSpecialCharacters)(b);var P=b.match(o),k=P&&P[1]?P[1].toLowerCase():"";switch(k){case t:{var d=c(b);if(!i.test(b)){var E=d.querySelector(r);(v=E?.parentNode)===null||v===void 0||v.removeChild(E)}if(!a.test(b)){var E=d.querySelector(n);(O=E?.parentNode)===null||O===void 0||O.removeChild(E)}return d.querySelectorAll(t)}case r:case n:{var x=s(b).querySelectorAll(k);return a.test(b)&&i.test(b)?x[0].parentNode.childNodes:x}default:{if(g)return g(b);var E=s(b,n).querySelector(n);return E.childNodes}}}return Ho}var Bc;function Mg(){if(Bc)return mn;Bc=1;var e=mn&&mn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=o;var t=e(Ig()),r=Su(),n=/<(![a-zA-Z\s]+)>/;function o(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var a=i.match(n),s=a?a[1]:void 0;return(0,r.formatDOM)((0,t.default)(i),null,s)}return mn}var qo={},zt={},Kn={},Fc;function Ng(){if(Fc)return Kn;Fc=1;var e=0;Kn.SAME=e;var t=1;return Kn.CAMELCASE=t,Kn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Kn}var Uc;function Dg(){if(Uc)return zt;Uc=1;const e=0,t=1,r=2,n=3,o=4,i=5,a=6;function s(d){return l.hasOwnProperty(d)?l[d]:null}function c(d,E,x,R,N,W,F){this.acceptsBooleans=E===r||E===n||E===o,this.attributeName=R,this.attributeNamespace=N,this.mustUseProperty=x,this.propertyName=d,this.type=E,this.sanitizeURL=W,this.removeEmptyString=F}const l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(d=>{l[d]=new c(d,e,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([d,E])=>{l[d]=new c(d,t,!1,E,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(d=>{l[d]=new c(d,r,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(d=>{l[d]=new c(d,r,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(d=>{l[d]=new c(d,n,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(d=>{l[d]=new c(d,n,!0,d,null,!1,!1)}),["capture","download"].forEach(d=>{l[d]=new c(d,o,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(d=>{l[d]=new c(d,a,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(d=>{l[d]=new c(d,i,!1,d.toLowerCase(),null,!1,!1)});const p=/[\-\:]([a-z])/g,y=d=>d[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(d=>{const E=d.replace(p,y);l[E]=new c(E,t,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(d=>{const E=d.replace(p,y);l[E]=new c(E,t,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(d=>{const E=d.replace(p,y);l[E]=new c(E,t,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(d=>{l[d]=new c(d,t,!1,d.toLowerCase(),null,!1,!1)});const T="xlinkHref";l[T]=new c("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(d=>{l[d]=new c(d,t,!1,d.toLowerCase(),null,!0,!0)});const{CAMELCASE:g,SAME:h,possibleStandardNames:b}=Ng(),O=":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",P=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+O+"]*$")),k=Object.keys(b).reduce((d,E)=>{const x=b[E];return x===h?d[E]=E:x===g?d[E.toLowerCase()]=E:d[E]=x,d},{});return zt.BOOLEAN=n,zt.BOOLEANISH_STRING=r,zt.NUMERIC=i,zt.OVERLOADED_BOOLEAN=o,zt.POSITIVE_NUMERIC=a,zt.RESERVED=e,zt.STRING=t,zt.getPropertyInfo=s,zt.isCustomAttribute=P,zt.possibleStandardNames=k,zt}var Xn={},gn={},fa,jc;function $g(){if(jc)return fa;jc=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
97
- `,l="/",f="*",p="",y="comment",T="declaration";function g(b,v){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];v=v||{};var O=1,P=1;function k(I){var q=I.match(t);q&&(O+=q.length);var Z=I.lastIndexOf(c);P=~Z?I.length-Z:P+I.length}function d(){var I={line:O,column:P};return function(q){return q.position=new E(I),N(),q}}function E(I){this.start=I,this.end={line:O,column:P},this.source=v.source}E.prototype.content=b;function x(I){var q=new Error(v.source+":"+O+":"+P+": "+I);if(q.reason=I,q.filename=v.source,q.line=O,q.column=P,q.source=b,!v.silent)throw q}function R(I){var q=I.exec(b);if(q){var Z=q[0];return k(Z),b=b.slice(Z.length),q}}function N(){R(r)}function W(I){var q;for(I=I||[];q=F();)q!==!1&&I.push(q);return I}function F(){var I=d();if(!(l!=b.charAt(0)||f!=b.charAt(1))){for(var q=2;p!=b.charAt(q)&&(f!=b.charAt(q)||l!=b.charAt(q+1));)++q;if(q+=2,p===b.charAt(q-1))return x("End of comment missing");var Z=b.slice(2,q-2);return P+=2,k(Z),b=b.slice(q),P+=2,I({type:y,comment:Z})}}function m(){var I=d(),q=R(n);if(q){if(F(),!R(o))return x("property missing ':'");var Z=R(i),fe=I({type:T,property:h(q[0].replace(e,p)),value:Z?h(Z[0].replace(e,p)):p});return R(a),fe}}function $(){var I=[];W(I);for(var q;q=m();)q!==!1&&(I.push(q),W(I));return I}return N(),$()}function h(b){return b?b.replace(s,p):p}return fa=g,fa}var zc;function Lg(){if(zc)return gn;zc=1;var e=gn&&gn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=r;const t=e($g());function r(n,o){let i=null;if(!n||typeof n!="string")return i;const a=(0,t.default)(n),s=typeof o=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:f}=c;s?o(l,f,c):f&&(i=i||{},i[l]=f)}),i}return gn}var Qn={},Hc;function Bg(){if(Hc)return Qn;Hc=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(l){return!l||r.test(l)||e.test(l)},a=function(l,f){return f.toUpperCase()},s=function(l,f){return"".concat(f,"-")},c=function(l,f){return f===void 0&&(f={}),i(l)?l:(l=l.toLowerCase(),f.reactCompat?l=l.replace(o,s):l=l.replace(n,s),l.replace(t,a))};return Qn.camelCase=c,Qn}var Zn,qc;function Fg(){if(qc)return Zn;qc=1;var e=Zn&&Zn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Lg()),r=Bg();function n(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(s,c){s&&c&&(a[(0,r.camelCase)(s,i)]=c)}),a}return n.default=n,Zn=n,Zn}var Wc;function xu(){return Wc||(Wc=1,(function(e){var t=Xn&&Xn.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=i,e.setStyleProp=s;var r=te,n=t(Fg()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(f,p){return f.includes("-")?!o.has(f):!!(p&&typeof p.is=="string")}var a={reactCompat:!0};function s(f,p){if(typeof f=="string"){if(!f.trim()){p.style={};return}try{p.style=(0,n.default)(f,a)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(f){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(f.name)};e.canTextBeChildOfNode=c;var l=function(f){return f};e.returnFirstArg=l})(Xn)),Xn}var Gc;function Tu(){if(Gc)return qo;Gc=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=i;var e=Dg(),t=xu(),r=["checked","value"],n=["input","select","textarea"],o={reset:!0,submit:!0};function i(s,c){s===void 0&&(s={});var l={},f=!!(s.type&&o[s.type]);for(var p in s){var y=s[p];if((0,e.isCustomAttribute)(p)){l[p]=y;continue}var T=p.toLowerCase(),g=a(T);if(g){var h=(0,e.getPropertyInfo)(g);switch(r.includes(g)&&n.includes(c)&&!f&&(g=a("default"+T)),l[g]=y,h&&h.type){case e.BOOLEAN:l[g]=!0;break;case e.OVERLOADED_BOOLEAN:y===""&&(l[g]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=y)}return(0,t.setStyleProp)(s.style,l),l}function a(s){return e.possibleStandardNames[s]}return qo}var yn={},Vc;function Ug(){if(Vc)return yn;Vc=1;var e=yn&&yn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=i;var t=te,r=e(Tu()),n=xu(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function i(s,c){c===void 0&&(c={});for(var l=[],f=typeof c.replace=="function",p=c.transform||n.returnFirstArg,y=c.library||o,T=y.cloneElement,g=y.createElement,h=y.isValidElement,b=s.length,v=0;v<b;v++){var O=s[v];if(f){var P=c.replace(O,v);if(h(P)){b>1&&(P=T(P,{key:P.key||v})),l.push(p(P,O,v));continue}}if(O.type==="text"){var k=!O.data.trim().length;if(k&&O.parent&&!(0,n.canTextBeChildOfNode)(O.parent)||c.trim&&k)continue;l.push(p(O.data,O,v));continue}var d=O,E={};a(d)?((0,n.setStyleProp)(d.attribs.style,d.attribs),E=d.attribs):d.attribs&&(E=(0,r.default)(d.attribs,d.name));var x=void 0;switch(O.type){case"script":case"style":O.children[0]&&(E.dangerouslySetInnerHTML={__html:O.children[0].data});break;case"tag":O.name==="textarea"&&O.children[0]?E.defaultValue=O.children[0].data:O.children&&O.children.length&&(x=i(O.children,c));break;default:continue}b>1&&(E.key=v),l.push(p(g(O.name,E,x),O,v))}return l.length===1?l[0]:l}function a(s){return n.PRESERVE_CUSTOM_ATTRIBUTES&&s.type==="tag"&&(0,n.isCustomComponent)(s.name,s.attribs)}return yn}var Yc;function jg(){return Yc||(Yc=1,(function(e){var t=Yn&&Yn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(Mg());e.htmlToDOM=r.default;var n=t(Tu());e.attributesToProps=n.default;var o=t(Ug());e.domToReact=o.default;var i=vu();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function s(c,l){if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,o.default)((0,r.default)(c,l?.htmlparser2||a),l):[]}})(Yn)),Yn}var zg=jg();const Kc=qa(zg),Hg=Kc.default||Kc,Xc=({html:e=""})=>{const t=["b","i","strong","em","u","br","span","p","ul","ol","li","blockquote","a","h1","h2","h3","h4","h5","h6","img","table","thead","tbody","tr","th","td","code","pre","div"],r=["href","title","target","rel","src","alt","title","width","height","class","id","style","colspan","rowspan","align","data-*","aria-*","role"];let n=Og.sanitize(e,{ALLOWED_TAGS:t,ALLOWED_ATTR:r});const o=/^\s*(?:<br\s*\/?\s*>)+|(?:<br\s*\/?\s*>)+\s*$/gi;return n=n.replace(o,""),C("span",{children:Hg(n)})},{min:qg,max:Wg}=Math,en=(e,t=0,r=1)=>qg(Wg(t,e),r),ns=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=en(e[t],0,255)):t===3&&(e[t]=en(e[t],0,1));return e},_u={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])_u[`[object ${e}]`]=e.toLowerCase();function Te(e){return _u[Object.prototype.toString.call(e)]||"object"}const we=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):Te(e[0])=="object"&&t?t.split("").filter(r=>e[0][r]!==void 0).map(r=>e[0][r]):e[0].slice(0),In=e=>{if(e.length<2)return null;const t=e.length-1;return Te(e[t])=="string"?e[t].toLowerCase():null},{PI:Ni,min:Cu,max:Au}=Math,qt=e=>Math.round(e*100)/100,Ba=e=>Math.round(e*100)/100,xr=Ni*2,da=Ni/3,Gg=Ni/180,Vg=180/Ni;function Ru(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const ye={format:{},autodetect:[]};class G{constructor(...t){const r=this;if(Te(t[0])==="object"&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let n=In(t),o=!1;if(!n){o=!0,ye.sorted||(ye.autodetect=ye.autodetect.sort((i,a)=>a.p-i.p),ye.sorted=!0);for(let i of ye.autodetect)if(n=i.test(...t),n)break}if(ye.format[n]){const i=ye.format[n].apply(null,o?t:t.slice(0,-1));r._rgb=ns(i)}else throw new Error("unknown format: "+t);r._rgb.length===3&&r._rgb.push(1)}toString(){return Te(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const Yg="3.2.0",xe=(...e)=>new G(...e);xe.version=Yg;const An={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Kg=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Xg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ku=e=>{if(e.match(Kg)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16),r=t>>16,n=t>>8&255,o=t&255;return[r,n,o,1]}if(e.match(Xg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16),r=t>>24&255,n=t>>16&255,o=t>>8&255,i=Math.round((t&255)/255*100)/100;return[r,n,o,i]}throw new Error(`unknown hex color: ${e}`)},{round:Wo}=Math,Ou=(...e)=>{let[t,r,n,o]=we(e,"rgba"),i=In(e)||"auto";o===void 0&&(o=1),i==="auto"&&(i=o<1?"rgba":"rgb"),t=Wo(t),r=Wo(r),n=Wo(n);let s="000000"+(t<<16|r<<8|n).toString(16);s=s.substr(s.length-6);let c="0"+Wo(o*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};G.prototype.name=function(){const e=Ou(this._rgb,"rgb");for(let t of Object.keys(An))if(An[t]===e)return t.toLowerCase();return e};ye.format.named=e=>{if(e=e.toLowerCase(),An[e])return ku(An[e]);throw new Error("unknown color name: "+e)};ye.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&An[e.toLowerCase()])return"named"}});G.prototype.alpha=function(e,t=!1){return e!==void 0&&Te(e)==="number"?t?(this._rgb[3]=e,this):new G([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]};G.prototype.clipped=function(){return this._rgb._clipped||!1};const dr={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Qg=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function _r(e){const t=Qg.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);dr.labWhitePoint=e,dr.Xn=t[0],dr.Zn=t[1]}function uo(){return dr.labWhitePoint}const os=(...e)=>{e=we(e,"lab");const[t,r,n]=e,[o,i,a]=Zg(t,r,n),[s,c,l]=Pu(o,i,a);return[s,c,l,e.length>3?e[3]:1]},Zg=(e,t,r)=>{const{kE:n,kK:o,kKE:i,Xn:a,Yn:s,Zn:c}=dr,l=(e+16)/116,f=.002*t+l,p=l-.005*r,y=f*f*f,T=p*p*p,g=y>n?y:(116*f-16)/o,h=e>i?Math.pow((e+16)/116,3):e/o,b=T>n?T:(116*p-16)/o,v=g*a,O=h*s,P=b*c;return[v,O,P]},pa=e=>{const t=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*t},Pu=(e,t,r)=>{const{MtxAdaptMa:n,MtxAdaptMaI:o,MtxXYZ2RGB:i,RefWhiteRGB:a,Xn:s,Yn:c,Zn:l}=dr,f=s*n.m00+c*n.m10+l*n.m20,p=s*n.m01+c*n.m11+l*n.m21,y=s*n.m02+c*n.m12+l*n.m22,T=a.X*n.m00+a.Y*n.m10+a.Z*n.m20,g=a.X*n.m01+a.Y*n.m11+a.Z*n.m21,h=a.X*n.m02+a.Y*n.m12+a.Z*n.m22,b=(e*n.m00+t*n.m10+r*n.m20)*(T/f),v=(e*n.m01+t*n.m11+r*n.m21)*(g/p),O=(e*n.m02+t*n.m12+r*n.m22)*(h/y),P=b*o.m00+v*o.m10+O*o.m20,k=b*o.m01+v*o.m11+O*o.m21,d=b*o.m02+v*o.m12+O*o.m22,E=pa(P*i.m00+k*i.m10+d*i.m20),x=pa(P*i.m01+k*i.m11+d*i.m21),R=pa(P*i.m02+k*i.m12+d*i.m22);return[E*255,x*255,R*255]},is=(...e)=>{const[t,r,n,...o]=we(e,"rgb"),[i,a,s]=Iu(t,r,n),[c,l,f]=Jg(i,a,s);return[c,l,f,...o.length>0&&o[0]<1?[o[0]]:[]]};function Jg(e,t,r){const{Xn:n,Yn:o,Zn:i,kE:a,kK:s}=dr,c=e/n,l=t/o,f=r/i,p=c>a?Math.pow(c,1/3):(s*c+16)/116,y=l>a?Math.pow(l,1/3):(s*l+16)/116,T=f>a?Math.pow(f,1/3):(s*f+16)/116;return[116*y-16,500*(p-y),200*(y-T)]}function ha(e){const t=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}const Iu=(e,t,r)=>{e=ha(e/255),t=ha(t/255),r=ha(r/255);const{MtxRGB2XYZ:n,MtxAdaptMa:o,MtxAdaptMaI:i,Xn:a,Yn:s,Zn:c,As:l,Bs:f,Cs:p}=dr;let y=e*n.m00+t*n.m10+r*n.m20,T=e*n.m01+t*n.m11+r*n.m21,g=e*n.m02+t*n.m12+r*n.m22;const h=a*o.m00+s*o.m10+c*o.m20,b=a*o.m01+s*o.m11+c*o.m21,v=a*o.m02+s*o.m12+c*o.m22;let O=y*o.m00+T*o.m10+g*o.m20,P=y*o.m01+T*o.m11+g*o.m21,k=y*o.m02+T*o.m12+g*o.m22;return O*=h/l,P*=b/f,k*=v/p,y=O*i.m00+P*i.m10+k*i.m20,T=O*i.m01+P*i.m11+k*i.m21,g=O*i.m02+P*i.m12+k*i.m22,[y,T,g]};G.prototype.lab=function(){return is(this._rgb)};const e1=(...e)=>new G(...e,"lab");Object.assign(xe,{lab:e1,getLabWhitePoint:uo,setLabWhitePoint:_r});ye.format.lab=os;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"lab"),Te(e)==="array"&&e.length===3)return"lab"}});G.prototype.darken=function(e=1){const t=this,r=t.lab();return r[0]-=dr.Kn*e,new G(r,"lab").alpha(t.alpha(),!0)};G.prototype.brighten=function(e=1){return this.darken(-e)};G.prototype.darker=G.prototype.darken;G.prototype.brighter=G.prototype.brighten;G.prototype.get=function(e){const[t,r]=e.split("."),n=this[t]();if(r){const o=t.indexOf(r)-(t.substr(0,2)==="ok"?2:0);if(o>-1)return n[o];throw new Error(`unknown channel ${r} in mode ${t}`)}else return n};const{pow:t1}=Math,r1=1e-7,n1=20;G.prototype.luminance=function(e,t="rgb"){if(e!==void 0&&Te(e)==="number"){if(e===0)return new G([0,0,0,this._rgb[3]],"rgb");if(e===1)return new G([255,255,255,this._rgb[3]],"rgb");let r=this.luminance(),n=n1;const o=(a,s)=>{const c=a.interpolate(s,.5,t),l=c.luminance();return Math.abs(e-l)<r1||!n--?c:l>e?o(a,c):o(c,s)},i=(r>e?o(new G([0,0,0]),this):o(this,new G([255,255,255]))).rgb();return new G([...i,this._rgb[3]])}return o1(...this._rgb.slice(0,3))};const o1=(e,t,r)=>(e=ma(e),t=ma(t),r=ma(r),.2126*e+.7152*t+.0722*r),ma=e=>(e/=255,e<=.03928?e/12.92:t1((e+.055)/1.055,2.4)),mt={},Rn=(e,t,r=.5,...n)=>{let o=n[0]||"lrgb";if(!mt[o]&&!n.length&&(o=Object.keys(mt)[0]),!mt[o])throw new Error(`interpolation mode ${o} is not defined`);return Te(e)!=="object"&&(e=new G(e)),Te(t)!=="object"&&(t=new G(t)),mt[o](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()))};G.prototype.mix=G.prototype.interpolate=function(e,t=.5,...r){return Rn(this,e,t,...r)};G.prototype.premultiply=function(e=!1){const t=this._rgb,r=t[3];return e?(this._rgb=[t[0]*r,t[1]*r,t[2]*r,r],this):new G([t[0]*r,t[1]*r,t[2]*r,r],"rgb")};const{sin:i1,cos:a1}=Math,Mu=(...e)=>{let[t,r,n]=we(e,"lch");return isNaN(n)&&(n=0),n=n*Gg,[t,a1(n)*r,i1(n)*r]},as=(...e)=>{e=we(e,"lch");const[t,r,n]=e,[o,i,a]=Mu(t,r,n),[s,c,l]=os(o,i,a);return[s,c,l,e.length>3?e[3]:1]},s1=(...e)=>{const t=Ru(we(e,"hcl"));return as(...t)},{sqrt:c1,atan2:l1,round:u1}=Math,Nu=(...e)=>{const[t,r,n]=we(e,"lab"),o=c1(r*r+n*n);let i=(l1(n,r)*Vg+360)%360;return u1(o*1e4)===0&&(i=Number.NaN),[t,o,i]},ss=(...e)=>{const[t,r,n,...o]=we(e,"rgb"),[i,a,s]=is(t,r,n),[c,l,f]=Nu(i,a,s);return[c,l,f,...o.length>0&&o[0]<1?[o[0]]:[]]};G.prototype.lch=function(){return ss(this._rgb)};G.prototype.hcl=function(){return Ru(ss(this._rgb))};const f1=(...e)=>new G(...e,"lch"),d1=(...e)=>new G(...e,"hcl");Object.assign(xe,{lch:f1,hcl:d1});ye.format.lch=as;ye.format.hcl=s1;["lch","hcl"].forEach(e=>ye.autodetect.push({p:2,test:(...t)=>{if(t=we(t,e),Te(t)==="array"&&t.length===3)return e}}));G.prototype.saturate=function(e=1){const t=this,r=t.lch();return r[1]+=dr.Kn*e,r[1]<0&&(r[1]=0),new G(r,"lch").alpha(t.alpha(),!0)};G.prototype.desaturate=function(e=1){return this.saturate(-e)};G.prototype.set=function(e,t,r=!1){const[n,o]=e.split("."),i=this[n]();if(o){const a=n.indexOf(o)-(n.substr(0,2)==="ok"?2:0);if(a>-1){if(Te(t)=="string")switch(t.charAt(0)){case"+":i[a]+=+t;break;case"-":i[a]+=+t;break;case"*":i[a]*=+t.substr(1);break;case"/":i[a]/=+t.substr(1);break;default:i[a]=+t}else if(Te(t)==="number")i[a]=t;else throw new Error("unsupported value for Color.set");const s=new G(i,n);return r?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${o} in mode ${n}`)}else return i};G.prototype.tint=function(e=.5,...t){return Rn(this,"white",e,...t)};G.prototype.shade=function(e=.5,...t){return Rn(this,"black",e,...t)};const p1=(e,t,r)=>{const n=e._rgb,o=t._rgb;return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"rgb")};mt.rgb=p1;const{sqrt:ga,pow:bn}=Math,h1=(e,t,r)=>{const[n,o,i]=e._rgb,[a,s,c]=t._rgb;return new G(ga(bn(n,2)*(1-r)+bn(a,2)*r),ga(bn(o,2)*(1-r)+bn(s,2)*r),ga(bn(i,2)*(1-r)+bn(c,2)*r),"rgb")};mt.lrgb=h1;const m1=(e,t,r)=>{const n=e.lab(),o=t.lab();return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"lab")};mt.lab=m1;const Mn=(e,t,r,n)=>{let o,i;n==="hsl"?(o=e.hsl(),i=t.hsl()):n==="hsv"?(o=e.hsv(),i=t.hsv()):n==="hcg"?(o=e.hcg(),i=t.hcg()):n==="hsi"?(o=e.hsi(),i=t.hsi()):n==="lch"||n==="hcl"?(n="hcl",o=e.hcl(),i=t.hcl()):n==="oklch"&&(o=e.oklch().reverse(),i=t.oklch().reverse());let a,s,c,l,f,p;(n.substr(0,1)==="h"||n==="oklch")&&([a,c,f]=o,[s,l,p]=i);let y,T,g,h;return!isNaN(a)&&!isNaN(s)?(s>a&&s-a>180?h=s-(a+360):s<a&&a-s>180?h=s+360-a:h=s-a,T=a+r*h):isNaN(a)?isNaN(s)?T=Number.NaN:(T=s,(f==1||f==0)&&n!="hsv"&&(y=l)):(T=a,(p==1||p==0)&&n!="hsv"&&(y=c)),y===void 0&&(y=c+r*(l-c)),g=f+r*(p-f),n==="oklch"?new G([g,y,T],n):new G([T,y,g],n)},Du=(e,t,r)=>Mn(e,t,r,"lch");mt.lch=Du;mt.hcl=Du;const g1=e=>{if(Te(e)=="number"&&e>=0&&e<=16777215){const t=e>>16,r=e>>8&255,n=e&255;return[t,r,n,1]}throw new Error("unknown num color: "+e)},y1=(...e)=>{const[t,r,n]=we(e,"rgb");return(t<<16)+(r<<8)+n};G.prototype.num=function(){return y1(this._rgb)};const b1=(...e)=>new G(...e,"num");Object.assign(xe,{num:b1});ye.format.num=g1;ye.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Te(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const w1=(e,t,r)=>{const n=e.num(),o=t.num();return new G(n+r*(o-n),"num")};mt.num=w1;const{floor:E1}=Math,v1=(...e)=>{e=we(e,"hcg");let[t,r,n]=e,o,i,a;n=n*255;const s=r*255;if(r===0)o=i=a=n;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;const c=E1(t),l=t-c,f=n*(1-r),p=f+s*(1-l),y=f+s*l,T=f+s;switch(c){case 0:[o,i,a]=[T,y,f];break;case 1:[o,i,a]=[p,T,f];break;case 2:[o,i,a]=[f,T,y];break;case 3:[o,i,a]=[f,p,T];break;case 4:[o,i,a]=[y,f,T];break;case 5:[o,i,a]=[T,f,p];break}}return[o,i,a,e.length>3?e[3]:1]},S1=(...e)=>{const[t,r,n]=we(e,"rgb"),o=Cu(t,r,n),i=Au(t,r,n),a=i-o,s=a*100/255,c=o/(255-a)*100;let l;return a===0?l=Number.NaN:(t===i&&(l=(r-n)/a),r===i&&(l=2+(n-t)/a),n===i&&(l=4+(t-r)/a),l*=60,l<0&&(l+=360)),[l,s,c]};G.prototype.hcg=function(){return S1(this._rgb)};const x1=(...e)=>new G(...e,"hcg");xe.hcg=x1;ye.format.hcg=v1;ye.autodetect.push({p:1,test:(...e)=>{if(e=we(e,"hcg"),Te(e)==="array"&&e.length===3)return"hcg"}});const T1=(e,t,r)=>Mn(e,t,r,"hcg");mt.hcg=T1;const{cos:wn}=Math,_1=(...e)=>{e=we(e,"hsi");let[t,r,n]=e,o,i,a;return isNaN(t)&&(t=0),isNaN(r)&&(r=0),t>360&&(t-=360),t<0&&(t+=360),t/=360,t<1/3?(a=(1-r)/3,o=(1+r*wn(xr*t)/wn(da-xr*t))/3,i=1-(a+o)):t<2/3?(t-=1/3,o=(1-r)/3,i=(1+r*wn(xr*t)/wn(da-xr*t))/3,a=1-(o+i)):(t-=2/3,i=(1-r)/3,a=(1+r*wn(xr*t)/wn(da-xr*t))/3,o=1-(i+a)),o=en(n*o*3),i=en(n*i*3),a=en(n*a*3),[o*255,i*255,a*255,e.length>3?e[3]:1]},{min:C1,sqrt:A1,acos:R1}=Math,k1=(...e)=>{let[t,r,n]=we(e,"rgb");t/=255,r/=255,n/=255;let o;const i=C1(t,r,n),a=(t+r+n)/3,s=a>0?1-i/a:0;return s===0?o=NaN:(o=(t-r+(t-n))/2,o/=A1((t-r)*(t-r)+(t-n)*(r-n)),o=R1(o),n>r&&(o=xr-o),o/=xr),[o*360,s,a]};G.prototype.hsi=function(){return k1(this._rgb)};const O1=(...e)=>new G(...e,"hsi");xe.hsi=O1;ye.format.hsi=_1;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"hsi"),Te(e)==="array"&&e.length===3)return"hsi"}});const P1=(e,t,r)=>Mn(e,t,r,"hsi");mt.hsi=P1;const Fa=(...e)=>{e=we(e,"hsl");const[t,r,n]=e;let o,i,a;if(r===0)o=i=a=n*255;else{const s=[0,0,0],c=[0,0,0],l=n<.5?n*(1+r):n+r-n*r,f=2*n-l,p=t/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let y=0;y<3;y++)s[y]<0&&(s[y]+=1),s[y]>1&&(s[y]-=1),6*s[y]<1?c[y]=f+(l-f)*6*s[y]:2*s[y]<1?c[y]=l:3*s[y]<2?c[y]=f+(l-f)*(2/3-s[y])*6:c[y]=f;[o,i,a]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[o,i,a,e[3]]:[o,i,a,1]},$u=(...e)=>{e=we(e,"rgba");let[t,r,n]=e;t/=255,r/=255,n/=255;const o=Cu(t,r,n),i=Au(t,r,n),a=(i+o)/2;let s,c;return i===o?(s=0,c=Number.NaN):s=a<.5?(i-o)/(i+o):(i-o)/(2-i-o),t==i?c=(r-n)/(i-o):r==i?c=2+(n-t)/(i-o):n==i&&(c=4+(t-r)/(i-o)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,a,e[3]]:[c,s,a]};G.prototype.hsl=function(){return $u(this._rgb)};const I1=(...e)=>new G(...e,"hsl");xe.hsl=I1;ye.format.hsl=Fa;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"hsl"),Te(e)==="array"&&e.length===3)return"hsl"}});const M1=(e,t,r)=>Mn(e,t,r,"hsl");mt.hsl=M1;const{floor:N1}=Math,D1=(...e)=>{e=we(e,"hsv");let[t,r,n]=e,o,i,a;if(n*=255,r===0)o=i=a=n;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;const s=N1(t),c=t-s,l=n*(1-r),f=n*(1-r*c),p=n*(1-r*(1-c));switch(s){case 0:[o,i,a]=[n,p,l];break;case 1:[o,i,a]=[f,n,l];break;case 2:[o,i,a]=[l,n,p];break;case 3:[o,i,a]=[l,f,n];break;case 4:[o,i,a]=[p,l,n];break;case 5:[o,i,a]=[n,l,f];break}}return[o,i,a,e.length>3?e[3]:1]},{min:$1,max:L1}=Math,B1=(...e)=>{e=we(e,"rgb");let[t,r,n]=e;const o=$1(t,r,n),i=L1(t,r,n),a=i-o;let s,c,l;return l=i/255,i===0?(s=Number.NaN,c=0):(c=a/i,t===i&&(s=(r-n)/a),r===i&&(s=2+(n-t)/a),n===i&&(s=4+(t-r)/a),s*=60,s<0&&(s+=360)),[s,c,l]};G.prototype.hsv=function(){return B1(this._rgb)};const F1=(...e)=>new G(...e,"hsv");xe.hsv=F1;ye.format.hsv=D1;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"hsv"),Te(e)==="array"&&e.length===3)return"hsv"}});const U1=(e,t,r)=>Mn(e,t,r,"hsv");mt.hsv=U1;function li(e,t){let r=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(a=>[a]));let n=t[0].length,o=t[0].map((a,s)=>t.map(c=>c[s])),i=e.map(a=>o.map(s=>Array.isArray(a)?a.reduce((c,l,f)=>c+l*(s[f]||0),0):s.reduce((c,l)=>c+l*a,0)));return r===1&&(i=i[0]),n===1?i.map(a=>a[0]):i}const cs=(...e)=>{e=we(e,"lab");const[t,r,n,...o]=e,[i,a,s]=j1([t,r,n]),[c,l,f]=Pu(i,a,s);return[c,l,f,...o.length>0&&o[0]<1?[o[0]]:[]]};function j1(e){var t=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],r=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],n=li(r,e);return li(t,n.map(o=>o**3))}const ls=(...e)=>{const[t,r,n,...o]=we(e,"rgb"),i=Iu(t,r,n);return[...z1(i),...o.length>0&&o[0]<1?[o[0]]:[]]};function z1(e){const t=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],r=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=li(t,e);return li(r,n.map(o=>Math.cbrt(o)))}G.prototype.oklab=function(){return ls(this._rgb)};const H1=(...e)=>new G(...e,"oklab");Object.assign(xe,{oklab:H1});ye.format.oklab=cs;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"oklab"),Te(e)==="array"&&e.length===3)return"oklab"}});const q1=(e,t,r)=>{const n=e.oklab(),o=t.oklab();return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"oklab")};mt.oklab=q1;const W1=(e,t,r)=>Mn(e,t,r,"oklch");mt.oklch=W1;const{pow:ya,sqrt:ba,PI:wa,cos:Qc,sin:Zc,atan2:G1}=Math,V1=(e,t="lrgb",r=null)=>{const n=e.length;r||(r=Array.from(new Array(n)).map(()=>1));const o=n/r.reduce(function(p,y){return p+y});if(r.forEach((p,y)=>{r[y]*=o}),e=e.map(p=>new G(p)),t==="lrgb")return Y1(e,r);const i=e.shift(),a=i.get(t),s=[];let c=0,l=0;for(let p=0;p<a.length;p++)if(a[p]=(a[p]||0)*r[0],s.push(isNaN(a[p])?0:r[0]),t.charAt(p)==="h"&&!isNaN(a[p])){const y=a[p]/180*wa;c+=Qc(y)*r[0],l+=Zc(y)*r[0]}let f=i.alpha()*r[0];e.forEach((p,y)=>{const T=p.get(t);f+=p.alpha()*r[y+1];for(let g=0;g<a.length;g++)if(!isNaN(T[g]))if(s[g]+=r[y+1],t.charAt(g)==="h"){const h=T[g]/180*wa;c+=Qc(h)*r[y+1],l+=Zc(h)*r[y+1]}else a[g]+=T[g]*r[y+1]});for(let p=0;p<a.length;p++)if(t.charAt(p)==="h"){let y=G1(l/s[p],c/s[p])/wa*180;for(;y<0;)y+=360;for(;y>=360;)y-=360;a[p]=y}else a[p]=a[p]/s[p];return f/=n,new G(a,t).alpha(f>.99999?1:f,!0)},Y1=(e,t)=>{const r=e.length,n=[0,0,0,0];for(let o=0;o<e.length;o++){const i=e[o],a=t[o]/r,s=i._rgb;n[0]+=ya(s[0],2)*a,n[1]+=ya(s[1],2)*a,n[2]+=ya(s[2],2)*a,n[3]+=s[3]*a}return n[0]=ba(n[0]),n[1]=ba(n[1]),n[2]=ba(n[2]),n[3]>.9999999&&(n[3]=1),new G(ns(n))},{pow:K1}=Math;function ui(e){let t="rgb",r=xe("#ccc"),n=0,o=[0,1],i=[0,1],a=[],s=[0,0],c=!1,l=[],f=!1,p=0,y=1,T=!1,g={},h=!0,b=1;const v=function(R){if(R=R||["#fff","#000"],R&&Te(R)==="string"&&xe.brewer&&xe.brewer[R.toLowerCase()]&&(R=xe.brewer[R.toLowerCase()]),Te(R)==="array"){R.length===1&&(R=[R[0],R[0]]),R=R.slice(0);for(let N=0;N<R.length;N++)R[N]=xe(R[N]);a.length=0;for(let N=0;N<R.length;N++)a.push(N/(R.length-1))}return E(),l=R},O=function(R){if(c!=null){const N=c.length-1;let W=0;for(;W<N&&R>=c[W];)W++;return W-1}return 0};let P=R=>R,k=R=>R;const d=function(R,N){let W,F;if(N==null&&(N=!1),isNaN(R)||R===null)return r;N?F=R:c&&c.length>2?F=O(R)/(c.length-2):y!==p?F=(R-p)/(y-p):F=1,F=k(F),N||(F=P(F)),b!==1&&(F=K1(F,b)),F=s[0]+F*(1-s[0]-s[1]),F=en(F,0,1);const m=Math.floor(F*1e4);if(h&&g[m])W=g[m];else{if(Te(l)==="array")for(let $=0;$<a.length;$++){const I=a[$];if(F<=I){W=l[$];break}if(F>=I&&$===a.length-1){W=l[$];break}if(F>I&&F<a[$+1]){F=(F-I)/(a[$+1]-I),W=xe.interpolate(l[$],l[$+1],F,t);break}}else Te(l)==="function"&&(W=l(F));h&&(g[m]=W)}return W};var E=()=>g={};v(e);const x=function(R){const N=xe(d(R));return f&&N[f]?N[f]():N};return x.classes=function(R){if(R!=null){if(Te(R)==="array")c=R,o=[R[0],R[R.length-1]];else{const N=xe.analyze(o);R===0?c=[N.min,N.max]:c=xe.limits(N,"e",R)}return x}return c},x.domain=function(R){if(!arguments.length)return i;i=R.slice(0),p=R[0],y=R[R.length-1],a=[];const N=l.length;if(R.length===N&&p!==y)for(let W of Array.from(R))a.push((W-p)/(y-p));else{for(let W=0;W<N;W++)a.push(W/(N-1));if(R.length>2){const W=R.map((m,$)=>$/(R.length-1)),F=R.map(m=>(m-p)/(y-p));F.every((m,$)=>W[$]===m)||(k=m=>{if(m<=0||m>=1)return m;let $=0;for(;m>=F[$+1];)$++;const I=(m-F[$])/(F[$+1]-F[$]);return W[$]+I*(W[$+1]-W[$])})}}return o=[p,y],x},x.mode=function(R){return arguments.length?(t=R,E(),x):t},x.range=function(R,N){return v(R),x},x.out=function(R){return f=R,x},x.spread=function(R){return arguments.length?(n=R,x):n},x.correctLightness=function(R){return R==null&&(R=!0),T=R,E(),T?P=function(N){const W=d(0,!0).lab()[0],F=d(1,!0).lab()[0],m=W>F;let $=d(N,!0).lab()[0];const I=W+(F-W)*N;let q=$-I,Z=0,fe=1,Ce=20;for(;Math.abs(q)>.01&&Ce-- >0;)(function(){return m&&(q*=-1),q<0?(Z=N,N+=(fe-N)*.5):(fe=N,N+=(Z-N)*.5),$=d(N,!0).lab()[0],q=$-I})();return N}:P=N=>N,x},x.padding=function(R){return R!=null?(Te(R)==="number"&&(R=[R,R]),s=R,x):s},x.colors=function(R,N){arguments.length<2&&(N="hex");let W=[];if(arguments.length===0)W=l.slice(0);else if(R===1)W=[x(.5)];else if(R>1){const F=o[0],m=o[1]-F;W=X1(0,R).map($=>x(F+$/(R-1)*m))}else{e=[];let F=[];if(c&&c.length>2)for(let m=1,$=c.length,I=1<=$;I?m<$:m>$;I?m++:m--)F.push((c[m-1]+c[m])*.5);else F=o;W=F.map(m=>x(m))}return xe[N]&&(W=W.map(F=>F[N]())),W},x.cache=function(R){return R!=null?(h=R,x):h},x.gamma=function(R){return R!=null?(b=R,x):b},x.nodata=function(R){return R!=null?(r=xe(R),x):r},x}function X1(e,t,r){let n=[],o=e<t,i=t;for(let a=e;o?a<i:a>i;o?a++:a--)n.push(a);return n}const Q1=function(e){let t=[1,1];for(let r=1;r<e;r++){let n=[1];for(let o=1;o<=t.length;o++)n[o]=(t[o]||0)+t[o-1];t=n}return t},Z1=function(e){let t,r,n,o;if(e=e.map(i=>new G(i)),e.length===2)[r,n]=e.map(i=>i.lab()),t=function(i){const a=[0,1,2].map(s=>r[s]+i*(n[s]-r[s]));return new G(a,"lab")};else if(e.length===3)[r,n,o]=e.map(i=>i.lab()),t=function(i){const a=[0,1,2].map(s=>(1-i)*(1-i)*r[s]+2*(1-i)*i*n[s]+i*i*o[s]);return new G(a,"lab")};else if(e.length===4){let i;[r,n,o,i]=e.map(a=>a.lab()),t=function(a){const s=[0,1,2].map(c=>(1-a)*(1-a)*(1-a)*r[c]+3*(1-a)*(1-a)*a*n[c]+3*(1-a)*a*a*o[c]+a*a*a*i[c]);return new G(s,"lab")}}else if(e.length>=5){let i,a,s;i=e.map(c=>c.lab()),s=e.length-1,a=Q1(s),t=function(c){const l=1-c,f=[0,1,2].map(p=>i.reduce((y,T,g)=>y+a[g]*l**(s-g)*c**g*T[p],0));return new G(f,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return t},J1=e=>{const t=Z1(e);return t.scale=()=>ui(t),t},{round:Lu}=Math;G.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Lu)};G.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,r)=>r<3?e===!1?t:Lu(t):t)};const ey=(...e)=>new G(...e,"rgb");Object.assign(xe,{rgb:ey});ye.format.rgb=(...e)=>{const t=we(e,"rgba");return t[3]===void 0&&(t[3]=1),t};ye.autodetect.push({p:3,test:(...e)=>{if(e=we(e,"rgba"),Te(e)==="array"&&(e.length===3||e.length===4&&Te(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const tr=(e,t,r)=>{if(!tr[r])throw new Error("unknown blend mode "+r);return tr[r](e,t)},Lr=e=>(t,r)=>{const n=xe(r).rgb(),o=xe(t).rgb();return xe.rgb(e(n,o))},Br=e=>(t,r)=>{const n=[];return n[0]=e(t[0],r[0]),n[1]=e(t[1],r[1]),n[2]=e(t[2],r[2]),n},ty=e=>e,ry=(e,t)=>e*t/255,ny=(e,t)=>e>t?t:e,oy=(e,t)=>e>t?e:t,iy=(e,t)=>255*(1-(1-e/255)*(1-t/255)),ay=(e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)),sy=(e,t)=>255*(1-(1-t/255)/(e/255)),cy=(e,t)=>e===255?255:(e=255*(t/255)/(1-e/255),e>255?255:e);tr.normal=Lr(Br(ty));tr.multiply=Lr(Br(ry));tr.screen=Lr(Br(iy));tr.overlay=Lr(Br(ay));tr.darken=Lr(Br(ny));tr.lighten=Lr(Br(oy));tr.dodge=Lr(Br(cy));tr.burn=Lr(Br(sy));const{pow:ly,sin:uy,cos:fy}=Math;function dy(e=300,t=-1.5,r=1,n=1,o=[0,1]){let i=0,a;Te(o)==="array"?a=o[1]-o[0]:(a=0,o=[o,o]);const s=function(c){const l=xr*((e+120)/360+t*c),f=ly(o[0]+a*c,n),y=(i!==0?r[0]+c*i:r)*f*(1-f)/2,T=fy(l),g=uy(l),h=f+y*(-.14861*T+1.78277*g),b=f+y*(-.29227*T-.90649*g),v=f+y*(1.97294*T);return xe(ns([h*255,b*255,v*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?t:(t=c,s)},s.gamma=function(c){return c==null?n:(n=c,s)},s.hue=function(c){return c==null?r:(r=c,Te(r)==="array"?(i=r[1]-r[0],i===0&&(r=r[1])):i=0,s)},s.lightness=function(c){return c==null?o:(Te(c)==="array"?(o=c,a=c[1]-c[0]):(o=[c,c],a=0),s)},s.scale=()=>xe.scale(s),s.hue(r),s}const py="0123456789abcdef",{floor:hy,random:my}=Math,gy=(e=my)=>{let t="#";for(let r=0;r<6;r++)t+=py.charAt(hy(e()*16));return new G(t,"hex")},{log:Jc,pow:yy,floor:by,abs:wy}=Math;function Bu(e,t=null){const r={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Te(e)==="object"&&(e=Object.values(e)),e.forEach(n=>{t&&Te(n)==="object"&&(n=n[t]),n!=null&&!isNaN(n)&&(r.values.push(n),r.sum+=n,n<r.min&&(r.min=n),n>r.max&&(r.max=n),r.count+=1)}),r.domain=[r.min,r.max],r.limits=(n,o)=>Fu(r,n,o),r}function Fu(e,t="equal",r=7){Te(e)=="array"&&(e=Bu(e));const{min:n,max:o}=e,i=e.values.sort((s,c)=>s-c);if(r===1)return[n,o];const a=[];if(t.substr(0,1)==="c"&&(a.push(n),a.push(o)),t.substr(0,1)==="e"){a.push(n);for(let s=1;s<r;s++)a.push(n+s/r*(o-n));a.push(o)}else if(t.substr(0,1)==="l"){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");const s=Math.LOG10E*Jc(n),c=Math.LOG10E*Jc(o);a.push(n);for(let l=1;l<r;l++)a.push(yy(10,s+l/r*(c-s)));a.push(o)}else if(t.substr(0,1)==="q"){a.push(n);for(let s=1;s<r;s++){const c=(i.length-1)*s/r,l=by(c);if(l===c)a.push(i[l]);else{const f=c-l;a.push(i[l]*(1-f)+i[l+1]*f)}}a.push(o)}else if(t.substr(0,1)==="k"){let s;const c=i.length,l=new Array(c),f=new Array(r);let p=!0,y=0,T=null;T=[],T.push(n);for(let b=1;b<r;b++)T.push(n+b/r*(o-n));for(T.push(o);p;){for(let v=0;v<r;v++)f[v]=0;for(let v=0;v<c;v++){const O=i[v];let P=Number.MAX_VALUE,k;for(let d=0;d<r;d++){const E=wy(T[d]-O);E<P&&(P=E,k=d),f[k]++,l[v]=k}}const b=new Array(r);for(let v=0;v<r;v++)b[v]=null;for(let v=0;v<c;v++)s=l[v],b[s]===null?b[s]=i[v]:b[s]+=i[v];for(let v=0;v<r;v++)b[v]*=1/f[v];p=!1;for(let v=0;v<r;v++)if(b[v]!==T[v]){p=!0;break}T=b,y++,y>200&&(p=!1)}const g={};for(let b=0;b<r;b++)g[b]=[];for(let b=0;b<c;b++)s=l[b],g[s].push(i[b]);let h=[];for(let b=0;b<r;b++)h.push(g[b][0]),h.push(g[b][g[b].length-1]);h=h.sort((b,v)=>b-v),a.push(h[0]);for(let b=1;b<h.length;b+=2){const v=h[b];!isNaN(v)&&a.indexOf(v)===-1&&a.push(v)}}return a}const Ey=(e,t)=>{e=new G(e),t=new G(t);const r=e.luminance(),n=t.luminance();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)};const el=.027,vy=5e-4,Sy=.1,tl=1.14,Go=.022,rl=1.414,xy=(e,t)=>{e=new G(e),t=new G(t),e.alpha()<1&&(e=Rn(t,e,e.alpha(),"rgb"));const r=nl(...e.rgb()),n=nl(...t.rgb()),o=r>=Go?r:r+Math.pow(Go-r,rl),i=n>=Go?n:n+Math.pow(Go-n,rl),a=Math.pow(i,.56)-Math.pow(o,.57),s=Math.pow(i,.65)-Math.pow(o,.62),c=Math.abs(i-o)<vy?0:o<i?a*tl:s*tl;return(Math.abs(c)<Sy?0:c>0?c-el:c+el)*100};function nl(e,t,r){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(r/255,2.4)}const{sqrt:Er,pow:et,min:Ty,max:_y,atan2:ol,abs:il,cos:Vo,sin:al,exp:Cy,PI:sl}=Math;function Ay(e,t,r=1,n=1,o=1){var i=function(J){return 360*J/(2*sl)},a=function(J){return 2*sl*J/360};e=new G(e),t=new G(t);const[s,c,l]=Array.from(e.lab()),[f,p,y]=Array.from(t.lab()),T=(s+f)/2,g=Er(et(c,2)+et(l,2)),h=Er(et(p,2)+et(y,2)),b=(g+h)/2,v=.5*(1-Er(et(b,7)/(et(b,7)+et(25,7)))),O=c*(1+v),P=p*(1+v),k=Er(et(O,2)+et(l,2)),d=Er(et(P,2)+et(y,2)),E=(k+d)/2,x=i(ol(l,O)),R=i(ol(y,P)),N=x>=0?x:x+360,W=R>=0?R:R+360,F=il(N-W)>180?(N+W+360)/2:(N+W)/2,m=1-.17*Vo(a(F-30))+.24*Vo(a(2*F))+.32*Vo(a(3*F+6))-.2*Vo(a(4*F-63));let $=W-N;$=il($)<=180?$:W<=N?$+360:$-360,$=2*Er(k*d)*al(a($)/2);const I=f-s,q=d-k,Z=1+.015*et(T-50,2)/Er(20+et(T-50,2)),fe=1+.045*E,Ce=1+.015*E*m,ut=30*Cy(-et((F-275)/25,2)),H=-(2*Er(et(E,7)/(et(E,7)+et(25,7))))*al(2*a(ut)),ce=Er(et(I/(r*Z),2)+et(q/(n*fe),2)+et($/(o*Ce),2)+H*(q/(n*fe))*($/(o*Ce)));return _y(0,Ty(100,ce))}function Ry(e,t,r="lab"){e=new G(e),t=new G(t);const n=e.get(r),o=t.get(r);let i=0;for(let a in n){const s=(n[a]||0)-(o[a]||0);i+=s*s}return Math.sqrt(i)}const ky=(...e)=>{try{return new G(...e),!0}catch{return!1}},Oy={cool(){return ui([xe.hsl(180,1,.9),xe.hsl(250,.7,.4)])},hot(){return ui(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Ua={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Uu=Object.keys(Ua),cl=new Map(Uu.map(e=>[e.toLowerCase(),e])),Py=typeof Proxy=="function"?new Proxy(Ua,{get(e,t){const r=t.toLowerCase();if(cl.has(r))return e[cl.get(r)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Uu)}}):Ua,Iy=(...e)=>{e=we(e,"cmyk");const[t,r,n,o]=e,i=e.length>4?e[4]:1;return o===1?[0,0,0,i]:[t>=1?0:255*(1-t)*(1-o),r>=1?0:255*(1-r)*(1-o),n>=1?0:255*(1-n)*(1-o),i]},{max:ll}=Math,My=(...e)=>{let[t,r,n]=we(e,"rgb");t=t/255,r=r/255,n=n/255;const o=1-ll(t,ll(r,n)),i=o<1?1/(1-o):0,a=(1-t-o)*i,s=(1-r-o)*i,c=(1-n-o)*i;return[a,s,c,o]};G.prototype.cmyk=function(){return My(this._rgb)};const Ny=(...e)=>new G(...e,"cmyk");Object.assign(xe,{cmyk:Ny});ye.format.cmyk=Iy;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"cmyk"),Te(e)==="array"&&e.length===4)return"cmyk"}});const Dy=(...e)=>{const t=we(e,"hsla");let r=In(e)||"lsa";return t[0]=qt(t[0]||0)+"deg",t[1]=qt(t[1]*100)+"%",t[2]=qt(t[2]*100)+"%",r==="hsla"||t.length>3&&t[3]<1?(t[3]="/ "+(t.length>3?t[3]:1),r="hsla"):t.length=3,`${r.substr(0,3)}(${t.join(" ")})`},$y=(...e)=>{const t=we(e,"lab");let r=In(e)||"lab";return t[0]=qt(t[0])+"%",t[1]=qt(t[1]),t[2]=qt(t[2]),r==="laba"||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lab(${t.join(" ")})`},Ly=(...e)=>{const t=we(e,"lch");let r=In(e)||"lab";return t[0]=qt(t[0])+"%",t[1]=qt(t[1]),t[2]=isNaN(t[2])?"none":qt(t[2])+"deg",r==="lcha"||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lch(${t.join(" ")})`},By=(...e)=>{const t=we(e,"lab");return t[0]=qt(t[0]*100)+"%",t[1]=Ba(t[1]),t[2]=Ba(t[2]),t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklab(${t.join(" ")})`},ju=(...e)=>{const[t,r,n,...o]=we(e,"rgb"),[i,a,s]=ls(t,r,n),[c,l,f]=Nu(i,a,s);return[c,l,f,...o.length>0&&o[0]<1?[o[0]]:[]]},Fy=(...e)=>{const t=we(e,"lch");return t[0]=qt(t[0]*100)+"%",t[1]=Ba(t[1]),t[2]=isNaN(t[2])?"none":qt(t[2])+"deg",t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklch(${t.join(" ")})`},{round:Ea}=Math,Uy=(...e)=>{const t=we(e,"rgba");let r=In(e)||"rgb";if(r.substr(0,3)==="hsl")return Dy($u(t),r);if(r.substr(0,3)==="lab"){const n=uo();_r("d50");const o=$y(is(t),r);return _r(n),o}if(r.substr(0,3)==="lch"){const n=uo();_r("d50");const o=Ly(ss(t),r);return _r(n),o}return r.substr(0,5)==="oklab"?By(ls(t)):r.substr(0,5)==="oklch"?Fy(ju(t)):(t[0]=Ea(t[0]),t[1]=Ea(t[1]),t[2]=Ea(t[2]),(r==="rgba"||t.length>3&&t[3]<1)&&(t[3]="/ "+(t.length>3?t[3]:1),r="rgba"),`${r.substr(0,3)}(${t.slice(0,r==="rgb"?3:4).join(" ")})`)},zu=(...e)=>{e=we(e,"lch");const[t,r,n,...o]=e,[i,a,s]=Mu(t,r,n),[c,l,f]=cs(i,a,s);return[c,l,f,...o.length>0&&o[0]<1?[o[0]]:[]]},Cr=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,er=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Gt=/\s*/.source,Nn=/\s+/.source,us=/\s*,\s*/.source,Di=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Dn=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Hu=new RegExp("^rgba?\\("+Gt+[Cr,Cr,Cr].join(Nn)+Dn+"\\)$"),qu=new RegExp("^rgb\\("+Gt+[Cr,Cr,Cr].join(us)+Gt+"\\)$"),Wu=new RegExp("^rgba\\("+Gt+[Cr,Cr,Cr,er].join(us)+Gt+"\\)$"),Gu=new RegExp("^hsla?\\("+Gt+[Di,fi,fi].join(Nn)+Dn+"\\)$"),Vu=new RegExp("^hsl?\\("+Gt+[Di,fi,fi].join(us)+Gt+"\\)$"),Yu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ku=new RegExp("^lab\\("+Gt+[er,er,er].join(Nn)+Dn+"\\)$"),Xu=new RegExp("^lch\\("+Gt+[er,er,Di].join(Nn)+Dn+"\\)$"),Qu=new RegExp("^oklab\\("+Gt+[er,er,er].join(Nn)+Dn+"\\)$"),Zu=new RegExp("^oklch\\("+Gt+[er,er,Di].join(Nn)+Dn+"\\)$"),{round:Ju}=Math,En=e=>e.map((t,r)=>r<=2?en(Ju(t),0,255):t),tt=(e,t=0,r=100,n=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,n?e=t+(e+1)*.5*(r-t):e=t+e*(r-t)),+e),wt=(e,t)=>e==="none"?t:e,fs=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t;if(ye.format.named)try{return ye.format.named(e)}catch{}if((t=e.match(Hu))||(t=e.match(qu))){let r=t.slice(1,4);for(let o=0;o<3;o++)r[o]=+tt(wt(r[o],0),0,255);r=En(r);const n=t[4]!==void 0?+tt(t[4],0,1):1;return r[3]=n,r}if(t=e.match(Wu)){const r=t.slice(1,5);for(let n=0;n<4;n++)r[n]=+tt(r[n],0,255);return r}if((t=e.match(Gu))||(t=e.match(Vu))){const r=t.slice(1,4);r[0]=+wt(r[0].replace("deg",""),0),r[1]=+tt(wt(r[1],0),0,100)*.01,r[2]=+tt(wt(r[2],0),0,100)*.01;const n=En(Fa(r)),o=t[4]!==void 0?+tt(t[4],0,1):1;return n[3]=o,n}if(t=e.match(Yu)){const r=t.slice(1,4);r[1]*=.01,r[2]*=.01;const n=Fa(r);for(let o=0;o<3;o++)n[o]=Ju(n[o]);return n[3]=+t[4],n}if(t=e.match(Ku)){const r=t.slice(1,4);r[0]=tt(wt(r[0],0),0,100),r[1]=tt(wt(r[1],0),-125,125,!0),r[2]=tt(wt(r[2],0),-125,125,!0);const n=uo();_r("d50");const o=En(os(r));_r(n);const i=t[4]!==void 0?+tt(t[4],0,1):1;return o[3]=i,o}if(t=e.match(Xu)){const r=t.slice(1,4);r[0]=tt(r[0],0,100),r[1]=tt(wt(r[1],0),0,150,!1),r[2]=+wt(r[2].replace("deg",""),0);const n=uo();_r("d50");const o=En(as(r));_r(n);const i=t[4]!==void 0?+tt(t[4],0,1):1;return o[3]=i,o}if(t=e.match(Qu)){const r=t.slice(1,4);r[0]=tt(wt(r[0],0),0,1),r[1]=tt(wt(r[1],0),-.4,.4,!0),r[2]=tt(wt(r[2],0),-.4,.4,!0);const n=En(cs(r)),o=t[4]!==void 0?+tt(t[4],0,1):1;return n[3]=o,n}if(t=e.match(Zu)){const r=t.slice(1,4);r[0]=tt(wt(r[0],0),0,1),r[1]=tt(wt(r[1],0),0,.4,!1),r[2]=+wt(r[2].replace("deg",""),0);const n=En(zu(r)),o=t[4]!==void 0?+tt(t[4],0,1):1;return n[3]=o,n}};fs.test=e=>Hu.test(e)||Gu.test(e)||Ku.test(e)||Xu.test(e)||Qu.test(e)||Zu.test(e)||qu.test(e)||Wu.test(e)||Vu.test(e)||Yu.test(e)||e==="transparent";G.prototype.css=function(e){return Uy(this._rgb,e)};const jy=(...e)=>new G(...e,"css");xe.css=jy;ye.format.css=fs;ye.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&fs.test(e))return"css"}});ye.format.gl=(...e)=>{const t=we(e,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t};const zy=(...e)=>new G(...e,"gl");xe.gl=zy;G.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};G.prototype.hex=function(e){return Ou(this._rgb,e)};const Hy=(...e)=>new G(...e,"hex");xe.hex=Hy;ye.format.hex=ku;ye.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Yo}=Math,ef=e=>{const t=e/100;let r,n,o;return t<66?(r=255,n=t<6?0:-155.25485562709179-.44596950469579133*(n=t-2)+104.49216199393888*Yo(n),o=t<20?0:-254.76935184120902+.8274096064007395*(o=t-10)+115.67994401066147*Yo(o)):(r=351.97690566805693+.114206453784165*(r=t-55)-40.25366309332127*Yo(r),n=325.4494125711974+.07943456536662342*(n=t-50)-28.0852963507957*Yo(n),o=255),[r,n,o,1]},{round:qy}=Math,Wy=(...e)=>{const t=we(e,"rgb"),r=t[0],n=t[2];let o=1e3,i=4e4;const a=.4;let s;for(;i-o>a;){s=(i+o)*.5;const c=ef(s);c[2]/c[0]>=n/r?i=s:o=s}return qy(s)};G.prototype.temp=G.prototype.kelvin=G.prototype.temperature=function(){return Wy(this._rgb)};const va=(...e)=>new G(...e,"temp");Object.assign(xe,{temp:va,kelvin:va,temperature:va});ye.format.temp=ye.format.kelvin=ye.format.temperature=ef;G.prototype.oklch=function(){return ju(this._rgb)};const Gy=(...e)=>new G(...e,"oklch");Object.assign(xe,{oklch:Gy});ye.format.oklch=zu;ye.autodetect.push({p:2,test:(...e)=>{if(e=we(e,"oklch"),Te(e)==="array"&&e.length===3)return"oklch"}});Object.assign(xe,{analyze:Bu,average:V1,bezier:J1,blend:tr,brewer:Py,Color:G,colors:An,contrast:Ey,contrastAPCA:xy,cubehelix:dy,deltaE:Ay,distance:Ry,input:ye,interpolate:Rn,limits:Fu,mix:Rn,random:gy,scale:ui,scales:Oy,valid:ky});const Vy=e=>{if(e.length===0)return{};const t=[...e].sort(),r=xe.scale(["#006675","#3636C5","#008060","#001746","#36B37E","#00B8D9"]).mode("hsl"),n={};return t.forEach((o,i)=>{const a=i/Math.max(t.length-1,1);n[o]=r(a).darken(.2).hex()}),n},Yy=e=>{const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,o,i,a){return o+o+i+i+a+a});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},ul=e=>{if(!e.startsWith("#"))return console.warn("getContrastTextColor: Invalid hex color",e),"#000000";if(e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.length!==7)return console.warn("getContrastTextColor: Invalid hex color length",e),"#000000";const t=Yy(e);return t?(.299*t.r+.587*t.g+.114*t.b)/255>.6?"#000000":"#FFFFFF":(console.warn("getContrastTextColor: Could not convert hex to rgb",e),"#000000")},Ky=(e,t=[])=>{if(t.length>0){const i=Vy(t)[e]||"#6c757d";return{bg:i,text:ul(i)}}let r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o)+((r<<5)-r);const n=Math.abs(r)%360;return{bg:xe.hsl(n,.7,.3).hex(),text:ul(xe.hsl(n,.7,.3).hex())}},Xy=({value:e,size:t=120})=>{const r=n=>n>=90?"#28a745":n>=70?"#ffc107":"#dc3545";return C(S.Box,{flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"center",children:K(S.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(vn,{variant:"determinate",value:e,size:t,thickness:4,sx:{color:r(e),"& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),C(S.Box,{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:K(S.Typography,{variant:"h3",component:"div",fontWeight:"bold",color:r(e),sx:{fontSize:"1.5rem"},children:[Math.round(e),"%"]})})]})})},vr=(e,t)=>{typeof window>"u"||localStorage.setItem(e,t)},Ko=e=>{typeof window>"u"||localStorage.removeItem(e)},Qy=({config:e,onAuthSuccess:t,onAuthError:r,initialError:n})=>{const[o,i]=te.useState(""),[a,s]=te.useState(""),[c,l]=te.useState(!1),[f,p]=te.useState(n||null),y=!!e.authBackendUrl,T=!y,g=y;te.useEffect(()=>{if(!e.authBackendUrl)return;const v=new URLSearchParams(window.location.search),O=v.get("sessionToken"),P=v.get("websiteId");if(O&&P){typeof window<"u"&&e.useLocalStorage!==!1&&(vr("dqm_sessionToken",O),vr("dqm_websiteID",P),vr("dqm_sessionType","backend"),Ko("dqm_apiKey"));const k=window.location.origin+window.location.pathname;window.history.replaceState({},document.title,k),t({apiKey:"BACKEND_SESSION",websiteId:P,sessionToken:O,sessionType:"backend"})}},[e.authBackendUrl,e.useLocalStorage,t]);const h=async()=>{if(!o||!a){p("Please enter both API Key and Website ID");return}l(!0),p(null);try{if(!/^[\x00-\x7F]*$/.test(o))throw new Error("API key contains non-ASCII characters");if(e.authBackendUrl){const v=await fetch(`${e.authBackendUrl}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({apiKey:o,websiteId:a})});if(!v.ok){const P=await v.json().catch(()=>({}));throw new Error(P.message||`Authentication failed: ${v.statusText}`)}const O=await v.json();if(!O.sessionToken)throw new Error("Invalid response from authentication backend - missing session token");typeof window<"u"&&e.useLocalStorage!==!1&&(vr("dqm_sessionToken",O.sessionToken),vr("dqm_sessionType","backend"),Ko("dqm_apiKey"),Ko("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:O.websiteId||"BACKEND_SESSION",sessionToken:O.sessionToken,sessionType:"backend"})}else typeof window<"u"&&e.useLocalStorage!==!1&&(vr("dqm_apiKey",o),vr("dqm_websiteID",a),vr("dqm_sessionType","direct"),Ko("dqm_sessionToken")),t({apiKey:o,websiteId:a,sessionType:"direct"})}catch(v){const O=v instanceof Error?v.message:"Authentication failed";p(O),r(v instanceof Error?v:new Error(O))}finally{l(!1)}},b=()=>{if(!e.authBackendUrl){p("Backend URL not configured");return}l(!0),p(null);try{const v=window.location.href;typeof window<"u"&&e.useLocalStorage!==!1&&vr("dqm_return_url",v);const O=new URL(`${e.authBackendUrl}/auth/login`);O.searchParams.set("returnUrl",v),window.location.href=O.toString()}catch(v){const O=v instanceof Error?v.message:"Failed to redirect to login page";p(O),r(v instanceof Error?v:new Error(O)),l(!1)}};return K(S.Box,{sx:{display:"flex",flexDirection:"column",gap:3,p:3,width:"100%"},children:[K(S.Box,{sx:{textAlign:"center"},children:[C(pt.Lock,{sx:{fontSize:50,color:"#711bc1",mb:2}}),C(S.Typography,{variant:"h5",gutterBottom:!0,fontWeight:700,children:"DQM Authentication"}),C(S.Typography,{variant:"body2",color:"text.secondary",children:"Please authenticate to access quality analysis"})]}),f&&C(S.Alert,{severity:"error",onClose:()=>p(null),children:f}),T&&K(S.Box,{sx:{display:"flex",flexDirection:"column",gap:2},children:[C(S.Typography,{variant:"subtitle2",color:"text.secondary",children:"Enter credentials directly"}),C(S.TextField,{label:"Website ID",autoComplete:"username",value:a,onChange:v=>s(v.target.value),disabled:c,fullWidth:!0,required:!0,helperText:"Your website identifier"}),C(S.TextField,{label:"API Key",type:"password",value:o,onChange:v=>i(v.target.value),disabled:c,fullWidth:!0,required:!0,helperText:"Your Crownpeak DQM API key"}),C(S.Button,{variant:"outlined",onClick:h,disabled:c||!o||!a,fullWidth:!0,size:"large",children:c?C(S.CircularProgress,{size:24}):"Continue"})]}),g&&T&&C(S.Divider,{children:"OR"}),g&&C(S.Button,{variant:"contained",startIcon:C(pt.Login,{}),onClick:b,disabled:c,fullWidth:!0,size:"large",sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)","&:hover":{background:"linear-gradient(135deg, #5a0f9a 0%, #7339b8 100%)"}},children:c?C(S.CircularProgress,{size:24,color:"inherit"}):"Login with Backend Session"}),K(S.Typography,{variant:"caption",color:"text.secondary",sx:{textAlign:"center"},children:["Don't have credentials?"," ",C(S.Link,{href:"https://www.crownpeak.com/firstspirit/products/digital-accessibility/digital-accessibility-and-quality-management-dqm/",target:"_blank",children:"Get started with Crownpeak DQM"})]})]})},Zy=({config:e,onAuthSuccess:t,onAuthError:r})=>(te.useEffect(()=>{(async()=>{const o=new URLSearchParams(window.location.search),i=o.get("code"),a=o.get("state"),s=o.get("error"),c=o.get("error_description");if(!(!i&&!s&&!a)){if(s){r(new Error(`OAuth2 Error: ${s} - ${c||"Unknown error"}`));return}if(i){const l=sessionStorage.getItem("dqm_oauth_state");if(!a||a!==l){r(new Error("Invalid OAuth2 state - possible CSRF attack"));return}if(sessionStorage.removeItem("dqm_oauth_state"),e.authBackendUrl&&e.oauth2Config)try{const f=await fetch(`${e.authBackendUrl}/auth/oauth2/callback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:i,redirectUri:e.oauth2Config.redirectUri})});if(!f.ok)throw new Error(`Token exchange failed: ${f.statusText}`);const p=await f.json();if(!p.sessionToken)throw new Error("Invalid response from OAuth2 callback - missing session token");e.useLocalStorage!==!1&&(localStorage.setItem("dqm_sessionToken",p.sessionToken),localStorage.setItem("dqm_sessionType","backend"),localStorage.removeItem("dqm_apiKey"),localStorage.removeItem("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:p.websiteId||"BACKEND_SESSION",sessionToken:p.sessionToken,sessionType:"backend"}),window.history.replaceState({},document.title,window.location.pathname)}catch(f){r(f instanceof Error?f:new Error("OAuth2 callback processing failed"))}}}})()},[e,t,r]),null),it=e=>typeof window>"u"?null:localStorage.getItem(e),Xo=e=>{typeof window>"u"||localStorage.removeItem(e)},Jy=({open:e,onClose:t,onOpen:r,config:n,onAuthSuccess:o,onAuthError:i,debugHtml:a})=>{const[s,c]=te.useState("idle"),[l,f]=te.useState(null),[p,y]=te.useState(null),[T,g]=te.useState(null),[h,b]=te.useState(null),[v,O]=te.useState([]),[P,k]=te.useState(null),[d,E]=te.useState(!1),[x,R]=te.useState(null),[N,W]=te.useState(null),[F,m]=te.useState("direct"),[$,I]=te.useState(""),[q,Z]=te.useState(null),[fe,Ce]=te.useState(null),[ut,z]=te.useState(!1),[H,ce]=te.useState("browser"),[J,ae]=te.useState(!1),[ne,de]=te.useState(!1),[Q,me]=te.useState(0),[Ee,pe]=te.useState(()=>typeof window>"u"?!0:it("dqm_quality_breakdown_expanded")!=="false"),[Re,D]=te.useState(new Set),[We,Ke]=te.useState({}),[qe,nr]=te.useState(0),[Pt,It]=te.useState(0),[or,ir]=te.useState(0),[ar,on]=te.useState(!0),an=te.useRef(null),hr=te.useRef(!1),mr=te.useRef("browser");te.useEffect(()=>{new URLSearchParams(window?.location?.search).get("dqm")==="true"&&r()},[window?.location?.search]),te.useEffect(()=>{(()=>{if(n?.disabled===!0){E(!1),k("DQM is disabled. Permission denied."),c("idle");return}if(n?.apiKey&&n?.websiteId){R({apiKey:n.apiKey,websiteId:n.websiteId}),m("direct"),W(null),E(!0);return}if(typeof window<"u"&&n?.useLocalStorage!==!1){if(it("dqm_sessionType")==="backend"){const ue=it("dqm_sessionToken");if(ue){W(ue),m("backend"),R({apiKey:"BACKEND_SESSION",websiteId:"BACKEND_SESSION"}),E(!0);return}}const Y=it("dqm_apiKey"),ie=it("dqm_websiteID");if(Y&&ie){R({apiKey:Y,websiteId:ie}),m("direct"),W(null),E(!0);return}}if(n?.authBackendUrl||n?.oauth2Config){E(!1),c("idle");return}E(!1),k("DQM is not configured. Please provide API credentials via props, localStorage, or configure an authentication backend."),c("idle")})()},[n]),te.useEffect(()=>{d&&x&&s==="idle"&&Ft()},[d,x]);const Mt=te.useCallback(j=>{R({apiKey:j.apiKey,websiteId:j.websiteId}),W(j.sessionToken||null),m(j.sessionType),E(!0),k(null),o&&o(j)},[o]),Yt=te.useCallback(j=>{console.error("[DQM] Authentication error:",j),k(j.message),E(!1),i&&i(j)},[i]);te.useCallback(()=>{if(x)return x;const j=x?.apiKey||it("dqm_apiKey"),B=x?.websiteId||it("dqm_websiteID");return j&&B?{apiKey:j,websiteId:B}:null},[x]);const sn=te.useCallback(()=>{R(null),W(null),m("direct"),E(!1),typeof window<"u"&&n?.useLocalStorage!==!1&&(Xo("dqm_apiKey"),Xo("dqm_websiteID"),Xo("dqm_sessionToken"),Xo("dqm_sessionType")),c("idle"),f(null),y(null),g(null),h&&(clearInterval(h),b(null))},[n?.useLocalStorage,h]),Fr=te.useCallback(j=>{if(qe===0)return;let B=(or||Pt)-1;j==="next"?B=(B+1)%qe:(B=B-1,B<0&&(B=qe-1)),It(B+1),ir(0),me((Y=>Y+1))},[Pt,or,qe]);te.useEffect(()=>{J||(nr(0),It(0),hr.current=!1)},[J]),te.useEffect(()=>{qe>0&&Pt===0&&It(1)},[qe,Pt]),te.useEffect(()=>{try{window.parent?.postMessage({type:"DQM_DRAWER_STATE",payload:{open:e}},"*")}catch{}},[e]);const Ur=te.useCallback(j=>{console.error("[DQM] API authentication error:",j),E(!1),k("Authentication required. Please refresh the page.")},[]),jr=j=>{const Y=new DOMParser().parseFromString(j,"text/html");[".MuiDrawer-root","#dqm-widget-host",'[data-block-handle="dqm_quality_analysis"]',"#dqm-quality-analysis-script","#PBarNextFrameWrapper"].forEach(Se=>{try{Y.querySelectorAll(Se).forEach(he=>he.remove())}catch(je){console.warn("[DQM] Could not process selector:",Se,je.message)}});const ue=Y.documentElement.outerHTML,le=j.length,ge=ue.length;return((le-ge)/le*100).toFixed(1),ge>1024*1024&&console.warn(`[DQM] Optimized HTML still large: ${(ge/1024/1024).toFixed(1)}MB`),ue},St=te.useCallback(()=>F==="backend"&&n?.authBackendUrl?n.authBackendUrl:"https://api.crownpeak.net/dqm-cms/v1",[F,n?.authBackendUrl]),gt=te.useCallback(()=>{const j={"Content-Type":"application/json"};if(F==="backend"){const B=N||it("dqm_sessionToken");B&&(j.Authorization=`Bearer ${B}`)}else{const B=x?.apiKey||it("dqm_apiKey");B&&(j["x-api-key"]=B)}return j},[F,N,x]),xt=j=>{if(!/^[\x00-\x7F]*$/.test(j))throw new Error("API key contains non-ASCII characters and cannot be used in HTTP headers")},Tt=async()=>{if(!l){console.error("[DQM] No analysis data available");return}de(!0);try{const j=St(),B=gt();let Y;if(F==="backend")Y=`${j}/dqm/assets/${l.assetId}/pagehighlight/all`;else{const ue=x?.apiKey||it("dqm_apiKey");if(!ue)throw new Error("DQM API key not found");try{xt(ue)}catch(ge){throw new Error(`Invalid API key: ${ge instanceof Error?ge.message:"encoding error"}`)}const le=encodeURIComponent(ue);Y=`${j}/assets/${l.assetId}/pagehighlight/all?apiKey=${le}`}const ie=await Be.get(Y,{headers:B,timeout:3e4,responseType:"text"});if(ie.data){const ue=ie.data,le=window.open("","_blank");if(le){const je=new DOMParser().parseFromString(ue,"text/html").documentElement;je.getElementsByTagName("body")[0].style.overflow="auto",le.document.open(),le.document.write(je.outerHTML),le.document.close(),setTimeout(()=>{const he=le.document.createElement("style");he.textContent=`
95
+ `,l.head.appendChild(S);const h=setTimeout(()=>{const b=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],v=l.querySelectorAll(b.join(", "));if(r&&r(v.length),v.length>0&&n&&c.contentWindow){const k={root:null,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},P=new Map,d=c.contentWindow.IntersectionObserver,E=new d(T=>{if(!s.current&&(T.forEach(R=>{const N=Array.from(v).indexOf(R.target);R.isIntersecting&&R.intersectionRatio>0?P.set(R.target,N):P.delete(R.target)}),P.size>0)){const N=Array.from(P.entries()).sort((W,B)=>W[1]-B[1])[0][1];n(N+1)}},k);return v.forEach(T=>E.observe(T)),()=>{E.disconnect()}}},100);return()=>{clearTimeout(h)}},[e,r,n]),te.useEffect(()=>{if(!a.current||!t||t===0)return;const c=a.current,l=c.contentDocument||c.contentWindow?.document;if(!l)return;const u=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=l.querySelectorAll(u.join(", "));if(p.length===0){console.warn("[DQM] No highlights found in iframe");return}const g=p[t-1];g?(s.current=!0,g.scrollIntoView({behavior:"smooth",block:"center"}),g.classList.add("animate"),setTimeout(()=>{g.classList.remove("animate")},800),setTimeout(()=>{s.current=!1,n&&n(t)},1e3)):console.warn("[DQM] Target element not found for highlight",t)},[t,n,o]),C(to,{children:C("iframe",{ref:a,title:"Browser View",style:{width:"100%",height:"600px",border:"1px solid #e0e0e0",borderRadius:"8px"},sandbox:i?"allow-same-origin allow-popups allow-forms":"allow-same-origin allow-scripts allow-popups allow-forms"})})},ug=({html:e,onHighlightsFound:t,currentHighlight:r,shouldAutoScrollToFirst:n=!1,onVisibleHighlightChange:o,clickedIndicator:i,scrollContainerRef:a})=>{const s=te.useRef(null),c=te.useRef(null),l=te.useRef(!1);return te.useEffect(()=>{if(s.current){if(!c.current)try{c.current=s.current.attachShadow({mode:"open"})}catch(u){console.warn("[DQM] Could not attach shadow DOM, falling back to regular DOM",u),s.current.innerHTML=e;return}if(c.current){c.current.innerHTML=e;const u=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=c.current.querySelectorAll(u.join(", "));if(t&&t(p.length),p.length>0&&o){const g=a?.current;if(g){const S={root:g,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},y=new Map,h=new IntersectionObserver(b=>{if(!l.current&&(b.forEach(v=>{const k=Array.from(p).indexOf(v.target);v.isIntersecting&&v.intersectionRatio>0?y.set(v.target,k):y.delete(v.target)}),y.size>0)){const k=Array.from(y.entries()).sort((P,O)=>P[1]-O[1])[0][1];o(k+1)}},S);return p.forEach(b=>h.observe(b)),()=>{h.disconnect()}}}}}},[e,t,n,o,a]),te.useEffect(()=>{if(!c.current||!r||r===0)return;const u=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],p=c.current.querySelectorAll(u.join(", "));if(p.length===0)return;const g=p[r-1];g&&(l.current=!0,g.scrollIntoView({behavior:"smooth",block:"center"}),g.classList.add("animate"),setTimeout(()=>{g.classList.remove("animate")},800),setTimeout(()=>{l.current=!1,o&&o(r)},1e3))},[r,o,i]),C("div",{ref:s,style:{width:"100%",minHeight:"100px"}})};const{entries:yu,setPrototypeOf:xc,isFrozen:fg,getPrototypeOf:dg,getOwnPropertyDescriptor:pg}=Object;let{freeze:vt,seal:Ht,create:Da}=Object,{apply:$a,construct:La}=typeof Reflect<"u"&&Reflect;vt||(vt=function(t){return t});Ht||(Ht=function(t){return t});$a||($a=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return t.apply(r,o)});La||(La=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return new t(...n)});const jo=St(Array.prototype.forEach),hg=St(Array.prototype.lastIndexOf),Tc=St(Array.prototype.pop),qn=St(Array.prototype.push),mg=St(Array.prototype.splice),oi=St(String.prototype.toLowerCase),na=St(String.prototype.toString),oa=St(String.prototype.match),Wn=St(String.prototype.replace),gg=St(String.prototype.indexOf),yg=St(String.prototype.trim),Yt=St(Object.prototype.hasOwnProperty),wt=St(RegExp.prototype.test),Gn=bg(TypeError);function St(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return $a(e,t,n)}}function bg(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return La(e,r)}}function _e(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oi;xc&&xc(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(fg(t)||(t[n]=i),o=i)}e[o]=!0}return e}function wg(e){for(let t=0;t<e.length;t++)Yt(e,t)||(e[t]=null);return e}function Tr(e){const t=Da(null);for(const[r,n]of yu(e))Yt(e,r)&&(Array.isArray(n)?t[r]=wg(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Tr(n):t[r]=n);return t}function Vn(e,t){for(;e!==null;){const n=pg(e,t);if(n){if(n.get)return St(n.get);if(typeof n.value=="function")return St(n.value)}e=dg(e)}function r(){return null}return r}const _c=vt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=vt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),aa=vt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Eg=vt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sa=vt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vg=vt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Cc=vt(["#text"]),Ac=vt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ca=vt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Rc=vt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zo=vt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sg=Ht(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xg=Ht(/<%[\w\W]*|[\w\W]*%>/gm),Tg=Ht(/\$\{[\w\W]*/gm),_g=Ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cg=Ht(/^aria-[\-\w]+$/),bu=Ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ag=Ht(/^(?:\w+script|data):/i),Rg=Ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wu=Ht(/^html$/i),Og=Ht(/^[a-z][.\w]*(-[.\w]+)+$/i);var Oc=Object.freeze({__proto__:null,ARIA_ATTR:Cg,ATTR_WHITESPACE:Rg,CUSTOM_ELEMENT:Og,DATA_ATTR:_g,DOCTYPE_NAME:wu,ERB_EXPR:xg,IS_ALLOWED_URI:bu,IS_SCRIPT_OR_DATA:Ag,MUSTACHE_EXPR:Sg,TMPLIT_EXPR:Tg});const Yn={element:1,text:3,progressingInstruction:7,comment:8,document:9},kg=function(){return typeof window>"u"?null:window},Pg=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(n=r.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},kc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Eu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kg();const t=re=>Eu(re);if(t.version="3.3.0",t.removed=[],!e||!e.document||e.document.nodeType!==Yn.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:g,trustedTypes:S}=e,y=c.prototype,h=Vn(y,"cloneNode"),b=Vn(y,"remove"),v=Vn(y,"nextSibling"),k=Vn(y,"childNodes"),P=Vn(y,"parentNode");if(typeof a=="function"){const re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}let O,d="";const{implementation:E,createNodeIterator:T,createDocumentFragment:R,getElementsByTagName:N}=r,{importNode:W}=n;let B=kc();t.isSupported=typeof yu=="function"&&typeof P=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:m,ERB_EXPR:$,TMPLIT_EXPR:I,DATA_ATTR:q,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:fe,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:ft}=Oc;let{IS_ALLOWED_URI:z}=Oc,H=null;const le=_e({},[..._c,...ia,...aa,...sa,...Cc]);let Z=null;const ae=_e({},[...Ac,...ca,...Rc,...zo]);let ne=Object.seal(Da(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,Q=null;const me=Object.seal(Da(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,pe=!0,Oe=!1,D=!0,We=!1,Je=!0,qe=!1,Zt=!1,kt=!1,Pt=!1,er=!1,tr=!1,rr=!0,an=!1;const sn="user-content-";let gr=!0,yr=!1,It={},nr=null;const jr=_e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let zr=null;const cn=_e({},["audio","video","img","source","image","track"]);let kr=null;const or=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ir="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let Xe=it,$t=!1,br=null;const Pr=_e({},[ir,xt,it],na);let ar=_e({},["mi","mo","mn","ms","mtext"]),Lt=_e({},["annotation-xml"]);const $n=_e({},["title","style","font","a","script"]);let sr=null;const Hr=["application/xhtml+xml","text/html"],qr="text/html";let Ve=null,F=null;const j=r.createElement("form"),Y=function(_){return _ instanceof RegExp||_ instanceof Function},oe=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(F&&F===_)){if((!_||typeof _!="object")&&(_={}),_=Tr(_),sr=Hr.indexOf(_.PARSER_MEDIA_TYPE)===-1?qr:_.PARSER_MEDIA_TYPE,Ve=sr==="application/xhtml+xml"?na:oi,H=Yt(_,"ALLOWED_TAGS")?_e({},_.ALLOWED_TAGS,Ve):le,Z=Yt(_,"ALLOWED_ATTR")?_e({},_.ALLOWED_ATTR,Ve):ae,br=Yt(_,"ALLOWED_NAMESPACES")?_e({},_.ALLOWED_NAMESPACES,na):Pr,kr=Yt(_,"ADD_URI_SAFE_ATTR")?_e(Tr(or),_.ADD_URI_SAFE_ATTR,Ve):or,zr=Yt(_,"ADD_DATA_URI_TAGS")?_e(Tr(cn),_.ADD_DATA_URI_TAGS,Ve):cn,nr=Yt(_,"FORBID_CONTENTS")?_e({},_.FORBID_CONTENTS,Ve):jr,de=Yt(_,"FORBID_TAGS")?_e({},_.FORBID_TAGS,Ve):Tr({}),Q=Yt(_,"FORBID_ATTR")?_e({},_.FORBID_ATTR,Ve):Tr({}),It=Yt(_,"USE_PROFILES")?_.USE_PROFILES:!1,we=_.ALLOW_ARIA_ATTR!==!1,pe=_.ALLOW_DATA_ATTR!==!1,Oe=_.ALLOW_UNKNOWN_PROTOCOLS||!1,D=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=_.SAFE_FOR_TEMPLATES||!1,Je=_.SAFE_FOR_XML!==!1,qe=_.WHOLE_DOCUMENT||!1,Pt=_.RETURN_DOM||!1,er=_.RETURN_DOM_FRAGMENT||!1,tr=_.RETURN_TRUSTED_TYPE||!1,kt=_.FORCE_BODY||!1,rr=_.SANITIZE_DOM!==!1,an=_.SANITIZE_NAMED_PROPS||!1,gr=_.KEEP_CONTENT!==!1,yr=_.IN_PLACE||!1,z=_.ALLOWED_URI_REGEXP||bu,Xe=_.NAMESPACE||it,ar=_.MATHML_TEXT_INTEGRATION_POINTS||ar,Lt=_.HTML_INTEGRATION_POINTS||Lt,ne=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Y(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Y(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(pe=!1),er&&(Pt=!0),It&&(H=_e({},Cc),Z=[],It.html===!0&&(_e(H,_c),_e(Z,Ac)),It.svg===!0&&(_e(H,ia),_e(Z,ca),_e(Z,zo)),It.svgFilters===!0&&(_e(H,aa),_e(Z,ca),_e(Z,zo)),It.mathMl===!0&&(_e(H,sa),_e(Z,Rc),_e(Z,zo))),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?me.tagCheck=_.ADD_TAGS:(H===le&&(H=Tr(H)),_e(H,_.ADD_TAGS,Ve))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?me.attributeCheck=_.ADD_ATTR:(Z===ae&&(Z=Tr(Z)),_e(Z,_.ADD_ATTR,Ve))),_.ADD_URI_SAFE_ATTR&&_e(kr,_.ADD_URI_SAFE_ATTR,Ve),_.FORBID_CONTENTS&&(nr===jr&&(nr=Tr(nr)),_e(nr,_.FORBID_CONTENTS,Ve)),gr&&(H["#text"]=!0),qe&&_e(H,["html","head","body"]),H.table&&(_e(H,["tbody"]),delete de.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=_.TRUSTED_TYPES_POLICY,d=O.createHTML("")}else O===void 0&&(O=Pg(S,o)),O!==null&&typeof d=="string"&&(d=O.createHTML(""));vt&&vt(_),F=_}},ce=_e({},[...ia,...aa,...Eg]),ue=_e({},[...sa,...vg]),Se=function(_){let V=P(_);(!V||!V.tagName)&&(V={namespaceURI:Xe,tagName:"template"});const ie=oi(_.tagName),Ge=oi(V.tagName);return br[_.namespaceURI]?_.namespaceURI===xt?V.namespaceURI===it?ie==="svg":V.namespaceURI===ir?ie==="svg"&&(Ge==="annotation-xml"||ar[Ge]):!!ce[ie]:_.namespaceURI===ir?V.namespaceURI===it?ie==="math":V.namespaceURI===xt?ie==="math"&&Lt[Ge]:!!ue[ie]:_.namespaceURI===it?V.namespaceURI===xt&&!Lt[Ge]||V.namespaceURI===ir&&!ar[Ge]?!1:!ue[ie]&&($n[ie]||!ce[ie]):!!(sr==="application/xhtml+xml"&&br[_.namespaceURI]):!1},he=function(_){qn(t.removed,{element:_});try{P(_).removeChild(_)}catch{b(_)}},Ae=function(_,V){try{qn(t.removed,{attribute:V.getAttributeNode(_),from:V})}catch{qn(t.removed,{attribute:null,from:V})}if(V.removeAttribute(_),_==="is")if(Pt||er)try{he(V)}catch{}else try{V.setAttribute(_,"")}catch{}},Ee=function(_){let V=null,ie=null;if(kt)_="<remove></remove>"+_;else{const Me=oa(_,/^[\r\n\t ]+/);ie=Me&&Me[0]}sr==="application/xhtml+xml"&&Xe===it&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const Ge=O?O.createHTML(_):_;if(Xe===it)try{V=new g().parseFromString(Ge,sr)}catch{}if(!V||!V.documentElement){V=E.createDocument(Xe,"template",null);try{V.documentElement.innerHTML=$t?d:Ge}catch{}}const st=V.body||V.documentElement;return _&&ie&&st.insertBefore(r.createTextNode(ie),st.childNodes[0]||null),Xe===it?N.call(V,qe?"html":"body")[0]:qe?V.documentElement:st},ct=function(_){return T.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},cr=function(_){return _ instanceof p&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof u)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},dt=function(_){return typeof s=="function"&&_ instanceof s};function Qe(re,_,V){jo(re,ie=>{ie.call(t,_,V,F)})}const lr=function(_){let V=null;if(Qe(B.beforeSanitizeElements,_,null),cr(_))return he(_),!0;const ie=Ve(_.nodeName);if(Qe(B.uponSanitizeElement,_,{tagName:ie,allowedTags:H}),Je&&_.hasChildNodes()&&!dt(_.firstElementChild)&&wt(/<[/\w!]/g,_.innerHTML)&&wt(/<[/\w!]/g,_.textContent)||_.nodeType===Yn.progressingInstruction||Je&&_.nodeType===Yn.comment&&wt(/<[/\w]/g,_.data))return he(_),!0;if(!(me.tagCheck instanceof Function&&me.tagCheck(ie))&&(!H[ie]||de[ie])){if(!de[ie]&&vo(ie)&&(ne.tagNameCheck instanceof RegExp&&wt(ne.tagNameCheck,ie)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(ie)))return!1;if(gr&&!nr[ie]){const Ge=P(_)||_.parentNode,st=k(_)||_.childNodes;if(st&&Ge){const Me=st.length;for(let pt=Me-1;pt>=0;--pt){const Gt=h(st[pt],!0);Gt.__removalCount=(_.__removalCount||0)+1,Ge.insertBefore(Gt,v(_))}}}return he(_),!0}return _ instanceof c&&!Se(_)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&wt(/<\/no(script|embed|frames)/i,_.innerHTML)?(he(_),!0):(We&&_.nodeType===Yn.text&&(V=_.textContent,jo([m,$,I],Ge=>{V=Wn(V,Ge," ")}),_.textContent!==V&&(qn(t.removed,{element:_.cloneNode()}),_.textContent=V)),Qe(B.afterSanitizeElements,_,null),!1)},Eo=function(_,V,ie){if(rr&&(V==="id"||V==="name")&&(ie in r||ie in j))return!1;if(!(pe&&!Q[V]&&wt(q,V))){if(!(we&&wt(J,V))){if(!(me.attributeCheck instanceof Function&&me.attributeCheck(V,_))){if(!Z[V]||Q[V]){if(!(vo(_)&&(ne.tagNameCheck instanceof RegExp&&wt(ne.tagNameCheck,_)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(_))&&(ne.attributeNameCheck instanceof RegExp&&wt(ne.attributeNameCheck,V)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(V,_))||V==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&wt(ne.tagNameCheck,ie)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(ie))))return!1}else if(!kr[V]){if(!wt(z,Wn(ie,Ce,""))){if(!((V==="src"||V==="xlink:href"||V==="href")&&_!=="script"&&gg(ie,"data:")===0&&zr[_])){if(!(Oe&&!wt(fe,Wn(ie,Ce,"")))){if(ie)return!1}}}}}}}return!0},vo=function(_){return _!=="annotation-xml"&&oa(_,ft)},So=function(_){Qe(B.beforeSanitizeAttributes,_,null);const{attributes:V}=_;if(!V||cr(_))return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Z,forceKeepAttr:void 0};let Ge=V.length;for(;Ge--;){const st=V[Ge],{name:Me,namespaceURI:pt,value:Gt}=st,Ir=Ve(Me),Ln=Gt;let at=Me==="value"?Ln:yg(Ln);if(ie.attrName=Ir,ie.attrValue=at,ie.keepAttr=!0,ie.forceKeepAttr=void 0,Qe(B.uponSanitizeAttribute,_,ie),at=ie.attrValue,an&&(Ir==="id"||Ir==="name")&&(Ae(Me,_),at=sn+at),Je&&wt(/((--!?|])>)|<\/(style|title|textarea)/i,at)){Ae(Me,_);continue}if(Ir==="attributename"&&oa(at,"href")){Ae(Me,_);continue}if(ie.forceKeepAttr)continue;if(!ie.keepAttr){Ae(Me,_);continue}if(!D&&wt(/\/>/i,at)){Ae(Me,_);continue}We&&jo([m,$,I],xo=>{at=Wn(at,xo," ")});const Wr=Ve(_.nodeName);if(!Eo(Wr,Ir,at)){Ae(Me,_);continue}if(O&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!pt)switch(S.getAttributeType(Wr,Ir)){case"TrustedHTML":{at=O.createHTML(at);break}case"TrustedScriptURL":{at=O.createScriptURL(at);break}}if(at!==Ln)try{pt?_.setAttributeNS(pt,Me,at):_.setAttribute(Me,at),cr(_)?he(_):Tc(t.removed)}catch{Ae(Me,_)}}Qe(B.afterSanitizeAttributes,_,null)},$i=function re(_){let V=null;const ie=ct(_);for(Qe(B.beforeSanitizeShadowDOM,_,null);V=ie.nextNode();)Qe(B.uponSanitizeShadowNode,V,null),lr(V),So(V),V.content instanceof i&&re(V.content);Qe(B.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(re){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,ie=null,Ge=null,st=null;if($t=!re,$t&&(re="<!-->"),typeof re!="string"&&!dt(re))if(typeof re.toString=="function"){if(re=re.toString(),typeof re!="string")throw Gn("dirty is not a string, aborting")}else throw Gn("toString is not a function");if(!t.isSupported)return re;if(Zt||oe(_),t.removed=[],typeof re=="string"&&(yr=!1),yr){if(re.nodeName){const Gt=Ve(re.nodeName);if(!H[Gt]||de[Gt])throw Gn("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof s)V=Ee("<!---->"),ie=V.ownerDocument.importNode(re,!0),ie.nodeType===Yn.element&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?V=ie:V.appendChild(ie);else{if(!Pt&&!We&&!qe&&re.indexOf("<")===-1)return O&&tr?O.createHTML(re):re;if(V=Ee(re),!V)return Pt?null:tr?d:""}V&&kt&&he(V.firstChild);const Me=ct(yr?re:V);for(;Ge=Me.nextNode();)lr(Ge),So(Ge),Ge.content instanceof i&&$i(Ge.content);if(yr)return re;if(Pt){if(er)for(st=R.call(V.ownerDocument);V.firstChild;)st.appendChild(V.firstChild);else st=V;return(Z.shadowroot||Z.shadowrootmode)&&(st=W.call(n,st,!0)),st}let pt=qe?V.outerHTML:V.innerHTML;return qe&&H["!doctype"]&&V.ownerDocument&&V.ownerDocument.doctype&&V.ownerDocument.doctype.name&&wt(wu,V.ownerDocument.doctype.name)&&(pt="<!DOCTYPE "+V.ownerDocument.doctype.name+`>
96
+ `+pt),We&&jo([m,$,I],Gt=>{pt=Wn(pt,Gt," ")}),O&&tr?O.createHTML(pt):pt},t.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oe(re),Zt=!0},t.clearConfig=function(){F=null,Zt=!1},t.isValidAttribute=function(re,_,V){F||oe({});const ie=Ve(re),Ge=Ve(_);return Eo(ie,Ge,V)},t.addHook=function(re,_){typeof _=="function"&&qn(B[re],_)},t.removeHook=function(re,_){if(_!==void 0){const V=hg(B[re],_);return V===-1?void 0:mg(B[re],V,1)[0]}return Tc(B[re])},t.removeHooks=function(re){B[re]=[]},t.removeAllHooks=function(){B=kc()},t}var Ig=Eu(),Kn={},mn={},Ho={},Kr={},Xr={},la={},Pc;function vu(){return Pc||(Pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function r(n){return n.type===t.Tag||n.type===t.Script||n.type===t.Style}e.isTag=r,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(la)),la}var ve={},Ic;function Mc(){if(Ic)return ve;Ic=1;var e=ve&&ve.__extends||(function(){var d=function(E,T){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,N){R.__proto__=N}||function(R,N){for(var W in N)Object.prototype.hasOwnProperty.call(N,W)&&(R[W]=N[W])},d(E,T)};return function(E,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");d(E,T);function R(){this.constructor=E}E.prototype=T===null?Object.create(T):(R.prototype=T.prototype,new R)}})(),t=ve&&ve.__assign||function(){return t=Object.assign||function(d){for(var E,T=1,R=arguments.length;T<R;T++){E=arguments[T];for(var N in E)Object.prototype.hasOwnProperty.call(E,N)&&(d[N]=E[N])}return d},t.apply(this,arguments)};Object.defineProperty(ve,"__esModule",{value:!0}),ve.cloneNode=ve.hasChildren=ve.isDocument=ve.isDirective=ve.isComment=ve.isText=ve.isCDATA=ve.isTag=ve.Element=ve.Document=ve.CDATA=ve.NodeWithChildren=ve.ProcessingInstruction=ve.Comment=ve.Text=ve.DataNode=ve.Node=void 0;var r=vu(),n=(function(){function d(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent},set:function(E){this.parent=E},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){return this.prev},set:function(E){this.prev=E},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){return this.next},set:function(E){this.next=E},enumerable:!1,configurable:!0}),d.prototype.cloneNode=function(E){return E===void 0&&(E=!1),P(this,E)},d})();ve.Node=n;var o=(function(d){e(E,d);function E(T){var R=d.call(this)||this;return R.data=T,R}return Object.defineProperty(E.prototype,"nodeValue",{get:function(){return this.data},set:function(T){this.data=T},enumerable:!1,configurable:!0}),E})(n);ve.DataNode=o;var i=(function(d){e(E,d);function E(){var T=d!==null&&d.apply(this,arguments)||this;return T.type=r.ElementType.Text,T}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),E})(o);ve.Text=i;var a=(function(d){e(E,d);function E(){var T=d!==null&&d.apply(this,arguments)||this;return T.type=r.ElementType.Comment,T}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),E})(o);ve.Comment=a;var s=(function(d){e(E,d);function E(T,R){var N=d.call(this,R)||this;return N.name=T,N.type=r.ElementType.Directive,N}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),E})(o);ve.ProcessingInstruction=s;var c=(function(d){e(E,d);function E(T){var R=d.call(this)||this;return R.children=T,R}return Object.defineProperty(E.prototype,"firstChild",{get:function(){var T;return(T=this.children[0])!==null&&T!==void 0?T:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"childNodes",{get:function(){return this.children},set:function(T){this.children=T},enumerable:!1,configurable:!0}),E})(n);ve.NodeWithChildren=c;var l=(function(d){e(E,d);function E(){var T=d!==null&&d.apply(this,arguments)||this;return T.type=r.ElementType.CDATA,T}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),E})(c);ve.CDATA=l;var u=(function(d){e(E,d);function E(){var T=d!==null&&d.apply(this,arguments)||this;return T.type=r.ElementType.Root,T}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),E})(c);ve.Document=u;var p=(function(d){e(E,d);function E(T,R,N,W){N===void 0&&(N=[]),W===void 0&&(W=T==="script"?r.ElementType.Script:T==="style"?r.ElementType.Style:r.ElementType.Tag);var B=d.call(this,N)||this;return B.name=T,B.attribs=R,B.type=W,B}return Object.defineProperty(E.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"tagName",{get:function(){return this.name},set:function(T){this.name=T},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"attributes",{get:function(){var T=this;return Object.keys(this.attribs).map(function(R){var N,W;return{name:R,value:T.attribs[R],namespace:(N=T["x-attribsNamespace"])===null||N===void 0?void 0:N[R],prefix:(W=T["x-attribsPrefix"])===null||W===void 0?void 0:W[R]}})},enumerable:!1,configurable:!0}),E})(c);ve.Element=p;function g(d){return(0,r.isTag)(d)}ve.isTag=g;function S(d){return d.type===r.ElementType.CDATA}ve.isCDATA=S;function y(d){return d.type===r.ElementType.Text}ve.isText=y;function h(d){return d.type===r.ElementType.Comment}ve.isComment=h;function b(d){return d.type===r.ElementType.Directive}ve.isDirective=b;function v(d){return d.type===r.ElementType.Root}ve.isDocument=v;function k(d){return Object.prototype.hasOwnProperty.call(d,"children")}ve.hasChildren=k;function P(d,E){E===void 0&&(E=!1);var T;if(y(d))T=new i(d.data);else if(h(d))T=new a(d.data);else if(g(d)){var R=E?O(d.children):[],N=new p(d.name,t({},d.attribs),R);R.forEach(function($){return $.parent=N}),d.namespace!=null&&(N.namespace=d.namespace),d["x-attribsNamespace"]&&(N["x-attribsNamespace"]=t({},d["x-attribsNamespace"])),d["x-attribsPrefix"]&&(N["x-attribsPrefix"]=t({},d["x-attribsPrefix"])),T=N}else if(S(d)){var R=E?O(d.children):[],W=new l(R);R.forEach(function(I){return I.parent=W}),T=W}else if(v(d)){var R=E?O(d.children):[],B=new u(R);R.forEach(function(I){return I.parent=B}),d["x-mode"]&&(B["x-mode"]=d["x-mode"]),T=B}else if(b(d)){var m=new s(d.name,d.data);d["x-name"]!=null&&(m["x-name"]=d["x-name"],m["x-publicId"]=d["x-publicId"],m["x-systemId"]=d["x-systemId"]),T=m}else throw new Error("Not implemented yet: ".concat(d.type));return T.startIndex=d.startIndex,T.endIndex=d.endIndex,d.sourceCodeLocation!=null&&(T.sourceCodeLocation=d.sourceCodeLocation),T}ve.cloneNode=P;function O(d){for(var E=d.map(function(R){return P(R,!0)}),T=1;T<E.length;T++)E[T].prev=E[T-1],E[T-1].next=E[T];return E}return ve}var Nc;function Su(){return Nc||(Nc=1,(function(e){var t=Xr&&Xr.__createBinding||(Object.create?(function(s,c,l,u){u===void 0&&(u=l);var p=Object.getOwnPropertyDescriptor(c,l);(!p||("get"in p?!c.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return c[l]}}),Object.defineProperty(s,u,p)}):(function(s,c,l,u){u===void 0&&(u=l),s[u]=c[l]})),r=Xr&&Xr.__exportStar||function(s,c){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(c,l)&&t(c,s,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var n=vu(),o=Mc();r(Mc(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function s(c,l,u){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(u=l,l=i),typeof c=="object"&&(l=c,c=void 0),this.callback=c??null,this.options=l??i,this.elementCB=u??null}return s.prototype.onparserinit=function(c){this.parser=c},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(c){this.handleCallback(c)},s.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},s.prototype.onopentag=function(c,l){var u=this.options.xmlMode?n.ElementType.Tag:void 0,p=new o.Element(c,l,void 0,u);this.addNode(p),this.tagStack.push(p)},s.prototype.ontext=function(c){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=c,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var u=new o.Text(c);this.addNode(u),this.lastNode=u}},s.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=c;return}var l=new o.Comment(c);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var c=new o.Text(""),l=new o.CDATA([c]);this.addNode(l),c.parent=l,this.lastNode=c},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(c,l){var u=new o.ProcessingInstruction(c,l);this.addNode(u)},s.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},s.prototype.addNode=function(c){var l=this.tagStack[this.tagStack.length-1],u=l.children[l.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),l.children.push(c),u&&(c.prev=u,u.next=c),c.parent=l,this.lastNode=null},s})();e.DomHandler=a,e.default=a})(Xr)),Xr}var ua={},Dc;function Mg(){return Dc||(Dc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,r){return t[r.toLowerCase()]=r,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(ua)),ua}var $c;function xu(){if($c)return Kr;$c=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.formatAttributes=n,Kr.escapeSpecialCharacters=i,Kr.revertEscapedCharacters=a,Kr.formatDOM=s;var e=Su(),t=Mg();function r(c){return t.CASE_SENSITIVE_TAG_NAMES_MAP[c]}function n(c){for(var l={},u=0,p=c.length;u<p;u++){var g=c[u];l[g.name]=g.value}return l}function o(c){c=c.toLowerCase();var l=r(c);return l||c}function i(c){return c.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function a(c){return c.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function s(c,l,u){l===void 0&&(l=null);for(var p=[],g,S=0,y=c.length;S<y;S++){var h=c[S];switch(h.nodeType){case 1:{var b=o(h.nodeName);g=new e.Element(b,n(h.attributes)),g.children=s(b==="template"?h.content.childNodes:h.childNodes,g);break}case 3:g=new e.Text(a(h.nodeValue));break;case 8:g=new e.Comment(h.nodeValue);break;default:continue}var v=p[S-1]||null;v&&(v.next=g),g.parent=l,g.prev=v,g.next=null,p.push(g)}return u&&(g=new e.ProcessingInstruction(u.substring(0,u.indexOf(" ")).toLowerCase(),u),g.next=p[0]||null,g.parent=l,p.unshift(g),p[1]&&(p[1].prev=p[0])),p}return Kr}var Lc;function Ng(){if(Lc)return Ho;Lc=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=h;var e=xu(),t="html",r="head",n="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,s=function(b,v){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(b,v){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window=="object"&&window.DOMParser;if(typeof l=="function"){var u=new l,p="text/html";c=function(b,v){return v&&(b="<".concat(v,">").concat(b,"</").concat(v,">")),u.parseFromString(b,p)},s=c}if(typeof document=="object"&&document.implementation){var g=document.implementation.createHTMLDocument();s=function(b,v){if(v){var k=g.documentElement.querySelector(v);return k&&(k.innerHTML=b),g}return g.documentElement.innerHTML=b,g}}var S=typeof document=="object"&&document.createElement("template"),y;S&&S.content&&(y=function(b){return S.innerHTML=b,S.content.childNodes});function h(b){var v,k;b=(0,e.escapeSpecialCharacters)(b);var P=b.match(o),O=P&&P[1]?P[1].toLowerCase():"";switch(O){case t:{var d=c(b);if(!i.test(b)){var E=d.querySelector(r);(v=E?.parentNode)===null||v===void 0||v.removeChild(E)}if(!a.test(b)){var E=d.querySelector(n);(k=E?.parentNode)===null||k===void 0||k.removeChild(E)}return d.querySelectorAll(t)}case r:case n:{var T=s(b).querySelectorAll(O);return a.test(b)&&i.test(b)?T[0].parentNode.childNodes:T}default:{if(y)return y(b);var E=s(b,n).querySelector(n);return E.childNodes}}}return Ho}var Bc;function Dg(){if(Bc)return mn;Bc=1;var e=mn&&mn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=o;var t=e(Ng()),r=xu(),n=/<(![a-zA-Z\s]+)>/;function o(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var a=i.match(n),s=a?a[1]:void 0;return(0,r.formatDOM)((0,t.default)(i),null,s)}return mn}var qo={},Ut={},Xn={},Fc;function $g(){if(Fc)return Xn;Fc=1;var e=0;Xn.SAME=e;var t=1;return Xn.CAMELCASE=t,Xn.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Xn}var Uc;function Lg(){if(Uc)return Ut;Uc=1;const e=0,t=1,r=2,n=3,o=4,i=5,a=6;function s(d){return l.hasOwnProperty(d)?l[d]:null}function c(d,E,T,R,N,W,B){this.acceptsBooleans=E===r||E===n||E===o,this.attributeName=R,this.attributeNamespace=N,this.mustUseProperty=T,this.propertyName=d,this.type=E,this.sanitizeURL=W,this.removeEmptyString=B}const l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(d=>{l[d]=new c(d,e,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([d,E])=>{l[d]=new c(d,t,!1,E,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(d=>{l[d]=new c(d,r,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(d=>{l[d]=new c(d,r,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(d=>{l[d]=new c(d,n,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(d=>{l[d]=new c(d,n,!0,d,null,!1,!1)}),["capture","download"].forEach(d=>{l[d]=new c(d,o,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(d=>{l[d]=new c(d,a,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(d=>{l[d]=new c(d,i,!1,d.toLowerCase(),null,!1,!1)});const p=/[\-\:]([a-z])/g,g=d=>d[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(d=>{const E=d.replace(p,g);l[E]=new c(E,t,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(d=>{const E=d.replace(p,g);l[E]=new c(E,t,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(d=>{const E=d.replace(p,g);l[E]=new c(E,t,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(d=>{l[d]=new c(d,t,!1,d.toLowerCase(),null,!1,!1)});const S="xlinkHref";l[S]=new c("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(d=>{l[d]=new c(d,t,!1,d.toLowerCase(),null,!0,!0)});const{CAMELCASE:y,SAME:h,possibleStandardNames:b}=$g(),k=":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",P=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+k+"]*$")),O=Object.keys(b).reduce((d,E)=>{const T=b[E];return T===h?d[E]=E:T===y?d[E.toLowerCase()]=E:d[E]=T,d},{});return Ut.BOOLEAN=n,Ut.BOOLEANISH_STRING=r,Ut.NUMERIC=i,Ut.OVERLOADED_BOOLEAN=o,Ut.POSITIVE_NUMERIC=a,Ut.RESERVED=e,Ut.STRING=t,Ut.getPropertyInfo=s,Ut.isCustomAttribute=P,Ut.possibleStandardNames=O,Ut}var Qn={},gn={},fa,jc;function Bg(){if(jc)return fa;jc=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
97
+ `,l="/",u="*",p="",g="comment",S="declaration";function y(b,v){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];v=v||{};var k=1,P=1;function O(I){var q=I.match(t);q&&(k+=q.length);var J=I.lastIndexOf(c);P=~J?I.length-J:P+I.length}function d(){var I={line:k,column:P};return function(q){return q.position=new E(I),N(),q}}function E(I){this.start=I,this.end={line:k,column:P},this.source=v.source}E.prototype.content=b;function T(I){var q=new Error(v.source+":"+k+":"+P+": "+I);if(q.reason=I,q.filename=v.source,q.line=k,q.column=P,q.source=b,!v.silent)throw q}function R(I){var q=I.exec(b);if(q){var J=q[0];return O(J),b=b.slice(J.length),q}}function N(){R(r)}function W(I){var q;for(I=I||[];q=B();)q!==!1&&I.push(q);return I}function B(){var I=d();if(!(l!=b.charAt(0)||u!=b.charAt(1))){for(var q=2;p!=b.charAt(q)&&(u!=b.charAt(q)||l!=b.charAt(q+1));)++q;if(q+=2,p===b.charAt(q-1))return T("End of comment missing");var J=b.slice(2,q-2);return P+=2,O(J),b=b.slice(q),P+=2,I({type:g,comment:J})}}function m(){var I=d(),q=R(n);if(q){if(B(),!R(o))return T("property missing ':'");var J=R(i),fe=I({type:S,property:h(q[0].replace(e,p)),value:J?h(J[0].replace(e,p)):p});return R(a),fe}}function $(){var I=[];W(I);for(var q;q=m();)q!==!1&&(I.push(q),W(I));return I}return N(),$()}function h(b){return b?b.replace(s,p):p}return fa=y,fa}var zc;function Fg(){if(zc)return gn;zc=1;var e=gn&&gn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=r;const t=e(Bg());function r(n,o){let i=null;if(!n||typeof n!="string")return i;const a=(0,t.default)(n),s=typeof o=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:l,value:u}=c;s?o(l,u,c):u&&(i=i||{},i[l]=u)}),i}return gn}var Jn={},Hc;function Ug(){if(Hc)return Jn;Hc=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(l){return!l||r.test(l)||e.test(l)},a=function(l,u){return u.toUpperCase()},s=function(l,u){return"".concat(u,"-")},c=function(l,u){return u===void 0&&(u={}),i(l)?l:(l=l.toLowerCase(),u.reactCompat?l=l.replace(o,s):l=l.replace(n,s),l.replace(t,a))};return Jn.camelCase=c,Jn}var Zn,qc;function jg(){if(qc)return Zn;qc=1;var e=Zn&&Zn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Fg()),r=Ug();function n(o,i){var a={};return!o||typeof o!="string"||(0,t.default)(o,function(s,c){s&&c&&(a[(0,r.camelCase)(s,i)]=c)}),a}return n.default=n,Zn=n,Zn}var Wc;function Tu(){return Wc||(Wc=1,(function(e){var t=Qn&&Qn.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=i,e.setStyleProp=s;var r=te,n=t(jg()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(u,p){return u.includes("-")?!o.has(u):!!(p&&typeof p.is=="string")}var a={reactCompat:!0};function s(u,p){if(typeof u=="string"){if(!u.trim()){p.style={};return}try{p.style=(0,n.default)(u,a)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(u){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(u.name)};e.canTextBeChildOfNode=c;var l=function(u){return u};e.returnFirstArg=l})(Qn)),Qn}var Gc;function _u(){if(Gc)return qo;Gc=1,Object.defineProperty(qo,"__esModule",{value:!0}),qo.default=i;var e=Lg(),t=Tu(),r=["checked","value"],n=["input","select","textarea"],o={reset:!0,submit:!0};function i(s,c){s===void 0&&(s={});var l={},u=!!(s.type&&o[s.type]);for(var p in s){var g=s[p];if((0,e.isCustomAttribute)(p)){l[p]=g;continue}var S=p.toLowerCase(),y=a(S);if(y){var h=(0,e.getPropertyInfo)(y);switch(r.includes(y)&&n.includes(c)&&!u&&(y=a("default"+S)),l[y]=g,h&&h.type){case e.BOOLEAN:l[y]=!0;break;case e.OVERLOADED_BOOLEAN:g===""&&(l[y]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=g)}return(0,t.setStyleProp)(s.style,l),l}function a(s){return e.possibleStandardNames[s]}return qo}var yn={},Vc;function zg(){if(Vc)return yn;Vc=1;var e=yn&&yn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=i;var t=te,r=e(_u()),n=Tu(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function i(s,c){c===void 0&&(c={});for(var l=[],u=typeof c.replace=="function",p=c.transform||n.returnFirstArg,g=c.library||o,S=g.cloneElement,y=g.createElement,h=g.isValidElement,b=s.length,v=0;v<b;v++){var k=s[v];if(u){var P=c.replace(k,v);if(h(P)){b>1&&(P=S(P,{key:P.key||v})),l.push(p(P,k,v));continue}}if(k.type==="text"){var O=!k.data.trim().length;if(O&&k.parent&&!(0,n.canTextBeChildOfNode)(k.parent)||c.trim&&O)continue;l.push(p(k.data,k,v));continue}var d=k,E={};a(d)?((0,n.setStyleProp)(d.attribs.style,d.attribs),E=d.attribs):d.attribs&&(E=(0,r.default)(d.attribs,d.name));var T=void 0;switch(k.type){case"script":case"style":k.children[0]&&(E.dangerouslySetInnerHTML={__html:k.children[0].data});break;case"tag":k.name==="textarea"&&k.children[0]?E.defaultValue=k.children[0].data:k.children&&k.children.length&&(T=i(k.children,c));break;default:continue}b>1&&(E.key=v),l.push(p(y(k.name,E,T),k,v))}return l.length===1?l[0]:l}function a(s){return n.PRESERVE_CUSTOM_ATTRIBUTES&&s.type==="tag"&&(0,n.isCustomComponent)(s.name,s.attribs)}return yn}var Yc;function Hg(){return Yc||(Yc=1,(function(e){var t=Kn&&Kn.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(Dg());e.htmlToDOM=r.default;var n=t(_u());e.attributesToProps=n.default;var o=t(zg());e.domToReact=o.default;var i=Su();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function s(c,l){if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,o.default)((0,r.default)(c,l?.htmlparser2||a),l):[]}})(Kn)),Kn}var qg=Hg();const Kc=qa(qg),Wg=Kc.default||Kc,Xc=({html:e=""})=>{const t=["b","i","strong","em","u","br","span","p","ul","ol","li","blockquote","a","h1","h2","h3","h4","h5","h6","img","table","thead","tbody","tr","th","td","code","pre","div"],r=["href","title","target","rel","src","alt","title","width","height","class","id","style","colspan","rowspan","align","data-*","aria-*","role"];let n=Ig.sanitize(e,{ALLOWED_TAGS:t,ALLOWED_ATTR:r});const o=/^\s*(?:<br\s*\/?\s*>)+|(?:<br\s*\/?\s*>)+\s*$/gi;return n=n.replace(o,""),C("span",{children:Wg(n)})},{min:Gg,max:Vg}=Math,tn=(e,t=0,r=1)=>Gg(Vg(t,e),r),ns=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let t=0;t<=3;t++)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]=tn(e[t],0,255)):t===3&&(e[t]=tn(e[t],0,1));return e},Cu={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Cu[`[object ${e}]`]=e.toLowerCase();function Te(e){return Cu[Object.prototype.toString.call(e)]||"object"}const be=(e,t=null)=>e.length>=3?Array.prototype.slice.call(e):Te(e[0])=="object"&&t?t.split("").filter(r=>e[0][r]!==void 0).map(r=>e[0][r]):e[0].slice(0),In=e=>{if(e.length<2)return null;const t=e.length-1;return Te(e[t])=="string"?e[t].toLowerCase():null},{PI:Ni,min:Au,max:Ru}=Math,zt=e=>Math.round(e*100)/100,Ba=e=>Math.round(e*100)/100,_r=Ni*2,da=Ni/3,Yg=Ni/180,Kg=180/Ni;function Ou(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const ge={format:{},autodetect:[]};class G{constructor(...t){const r=this;if(Te(t[0])==="object"&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let n=In(t),o=!1;if(!n){o=!0,ge.sorted||(ge.autodetect=ge.autodetect.sort((i,a)=>a.p-i.p),ge.sorted=!0);for(let i of ge.autodetect)if(n=i.test(...t),n)break}if(ge.format[n]){const i=ge.format[n].apply(null,o?t:t.slice(0,-1));r._rgb=ns(i)}else throw new Error("unknown format: "+t);r._rgb.length===3&&r._rgb.push(1)}toString(){return Te(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}}const Xg="3.2.0",xe=(...e)=>new G(...e);xe.version=Xg;const An={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Qg=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Jg=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ku=e=>{if(e.match(Qg)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const t=parseInt(e,16),r=t>>16,n=t>>8&255,o=t&255;return[r,n,o,1]}if(e.match(Jg)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const t=parseInt(e,16),r=t>>24&255,n=t>>16&255,o=t>>8&255,i=Math.round((t&255)/255*100)/100;return[r,n,o,i]}throw new Error(`unknown hex color: ${e}`)},{round:Wo}=Math,Pu=(...e)=>{let[t,r,n,o]=be(e,"rgba"),i=In(e)||"auto";o===void 0&&(o=1),i==="auto"&&(i=o<1?"rgba":"rgb"),t=Wo(t),r=Wo(r),n=Wo(n);let s="000000"+(t<<16|r<<8|n).toString(16);s=s.substr(s.length-6);let c="0"+Wo(o*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};G.prototype.name=function(){const e=Pu(this._rgb,"rgb");for(let t of Object.keys(An))if(An[t]===e)return t.toLowerCase();return e};ge.format.named=e=>{if(e=e.toLowerCase(),An[e])return ku(An[e]);throw new Error("unknown color name: "+e)};ge.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&An[e.toLowerCase()])return"named"}});G.prototype.alpha=function(e,t=!1){return e!==void 0&&Te(e)==="number"?t?(this._rgb[3]=e,this):new G([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]};G.prototype.clipped=function(){return this._rgb._clipped||!1};const mr={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},Zg=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ar(e){const t=Zg.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);mr.labWhitePoint=e,mr.Xn=t[0],mr.Zn=t[1]}function fo(){return mr.labWhitePoint}const os=(...e)=>{e=be(e,"lab");const[t,r,n]=e,[o,i,a]=ey(t,r,n),[s,c,l]=Iu(o,i,a);return[s,c,l,e.length>3?e[3]:1]},ey=(e,t,r)=>{const{kE:n,kK:o,kKE:i,Xn:a,Yn:s,Zn:c}=mr,l=(e+16)/116,u=.002*t+l,p=l-.005*r,g=u*u*u,S=p*p*p,y=g>n?g:(116*u-16)/o,h=e>i?Math.pow((e+16)/116,3):e/o,b=S>n?S:(116*p-16)/o,v=y*a,k=h*s,P=b*c;return[v,k,P]},pa=e=>{const t=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*t},Iu=(e,t,r)=>{const{MtxAdaptMa:n,MtxAdaptMaI:o,MtxXYZ2RGB:i,RefWhiteRGB:a,Xn:s,Yn:c,Zn:l}=mr,u=s*n.m00+c*n.m10+l*n.m20,p=s*n.m01+c*n.m11+l*n.m21,g=s*n.m02+c*n.m12+l*n.m22,S=a.X*n.m00+a.Y*n.m10+a.Z*n.m20,y=a.X*n.m01+a.Y*n.m11+a.Z*n.m21,h=a.X*n.m02+a.Y*n.m12+a.Z*n.m22,b=(e*n.m00+t*n.m10+r*n.m20)*(S/u),v=(e*n.m01+t*n.m11+r*n.m21)*(y/p),k=(e*n.m02+t*n.m12+r*n.m22)*(h/g),P=b*o.m00+v*o.m10+k*o.m20,O=b*o.m01+v*o.m11+k*o.m21,d=b*o.m02+v*o.m12+k*o.m22,E=pa(P*i.m00+O*i.m10+d*i.m20),T=pa(P*i.m01+O*i.m11+d*i.m21),R=pa(P*i.m02+O*i.m12+d*i.m22);return[E*255,T*255,R*255]},is=(...e)=>{const[t,r,n,...o]=be(e,"rgb"),[i,a,s]=Mu(t,r,n),[c,l,u]=ty(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]};function ty(e,t,r){const{Xn:n,Yn:o,Zn:i,kE:a,kK:s}=mr,c=e/n,l=t/o,u=r/i,p=c>a?Math.pow(c,1/3):(s*c+16)/116,g=l>a?Math.pow(l,1/3):(s*l+16)/116,S=u>a?Math.pow(u,1/3):(s*u+16)/116;return[116*g-16,500*(p-g),200*(g-S)]}function ha(e){const t=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}const Mu=(e,t,r)=>{e=ha(e/255),t=ha(t/255),r=ha(r/255);const{MtxRGB2XYZ:n,MtxAdaptMa:o,MtxAdaptMaI:i,Xn:a,Yn:s,Zn:c,As:l,Bs:u,Cs:p}=mr;let g=e*n.m00+t*n.m10+r*n.m20,S=e*n.m01+t*n.m11+r*n.m21,y=e*n.m02+t*n.m12+r*n.m22;const h=a*o.m00+s*o.m10+c*o.m20,b=a*o.m01+s*o.m11+c*o.m21,v=a*o.m02+s*o.m12+c*o.m22;let k=g*o.m00+S*o.m10+y*o.m20,P=g*o.m01+S*o.m11+y*o.m21,O=g*o.m02+S*o.m12+y*o.m22;return k*=h/l,P*=b/u,O*=v/p,g=k*i.m00+P*i.m10+O*i.m20,S=k*i.m01+P*i.m11+O*i.m21,y=k*i.m02+P*i.m12+O*i.m22,[g,S,y]};G.prototype.lab=function(){return is(this._rgb)};const ry=(...e)=>new G(...e,"lab");Object.assign(xe,{lab:ry,getLabWhitePoint:fo,setLabWhitePoint:Ar});ge.format.lab=os;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"lab"),Te(e)==="array"&&e.length===3)return"lab"}});G.prototype.darken=function(e=1){const t=this,r=t.lab();return r[0]-=mr.Kn*e,new G(r,"lab").alpha(t.alpha(),!0)};G.prototype.brighten=function(e=1){return this.darken(-e)};G.prototype.darker=G.prototype.darken;G.prototype.brighter=G.prototype.brighten;G.prototype.get=function(e){const[t,r]=e.split("."),n=this[t]();if(r){const o=t.indexOf(r)-(t.substr(0,2)==="ok"?2:0);if(o>-1)return n[o];throw new Error(`unknown channel ${r} in mode ${t}`)}else return n};const{pow:ny}=Math,oy=1e-7,iy=20;G.prototype.luminance=function(e,t="rgb"){if(e!==void 0&&Te(e)==="number"){if(e===0)return new G([0,0,0,this._rgb[3]],"rgb");if(e===1)return new G([255,255,255,this._rgb[3]],"rgb");let r=this.luminance(),n=iy;const o=(a,s)=>{const c=a.interpolate(s,.5,t),l=c.luminance();return Math.abs(e-l)<oy||!n--?c:l>e?o(a,c):o(c,s)},i=(r>e?o(new G([0,0,0]),this):o(this,new G([255,255,255]))).rgb();return new G([...i,this._rgb[3]])}return ay(...this._rgb.slice(0,3))};const ay=(e,t,r)=>(e=ma(e),t=ma(t),r=ma(r),.2126*e+.7152*t+.0722*r),ma=e=>(e/=255,e<=.03928?e/12.92:ny((e+.055)/1.055,2.4)),yt={},Rn=(e,t,r=.5,...n)=>{let o=n[0]||"lrgb";if(!yt[o]&&!n.length&&(o=Object.keys(yt)[0]),!yt[o])throw new Error(`interpolation mode ${o} is not defined`);return Te(e)!=="object"&&(e=new G(e)),Te(t)!=="object"&&(t=new G(t)),yt[o](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()))};G.prototype.mix=G.prototype.interpolate=function(e,t=.5,...r){return Rn(this,e,t,...r)};G.prototype.premultiply=function(e=!1){const t=this._rgb,r=t[3];return e?(this._rgb=[t[0]*r,t[1]*r,t[2]*r,r],this):new G([t[0]*r,t[1]*r,t[2]*r,r],"rgb")};const{sin:sy,cos:cy}=Math,Nu=(...e)=>{let[t,r,n]=be(e,"lch");return isNaN(n)&&(n=0),n=n*Yg,[t,cy(n)*r,sy(n)*r]},as=(...e)=>{e=be(e,"lch");const[t,r,n]=e,[o,i,a]=Nu(t,r,n),[s,c,l]=os(o,i,a);return[s,c,l,e.length>3?e[3]:1]},ly=(...e)=>{const t=Ou(be(e,"hcl"));return as(...t)},{sqrt:uy,atan2:fy,round:dy}=Math,Du=(...e)=>{const[t,r,n]=be(e,"lab"),o=uy(r*r+n*n);let i=(fy(n,r)*Kg+360)%360;return dy(o*1e4)===0&&(i=Number.NaN),[t,o,i]},ss=(...e)=>{const[t,r,n,...o]=be(e,"rgb"),[i,a,s]=is(t,r,n),[c,l,u]=Du(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]};G.prototype.lch=function(){return ss(this._rgb)};G.prototype.hcl=function(){return Ou(ss(this._rgb))};const py=(...e)=>new G(...e,"lch"),hy=(...e)=>new G(...e,"hcl");Object.assign(xe,{lch:py,hcl:hy});ge.format.lch=as;ge.format.hcl=ly;["lch","hcl"].forEach(e=>ge.autodetect.push({p:2,test:(...t)=>{if(t=be(t,e),Te(t)==="array"&&t.length===3)return e}}));G.prototype.saturate=function(e=1){const t=this,r=t.lch();return r[1]+=mr.Kn*e,r[1]<0&&(r[1]=0),new G(r,"lch").alpha(t.alpha(),!0)};G.prototype.desaturate=function(e=1){return this.saturate(-e)};G.prototype.set=function(e,t,r=!1){const[n,o]=e.split("."),i=this[n]();if(o){const a=n.indexOf(o)-(n.substr(0,2)==="ok"?2:0);if(a>-1){if(Te(t)=="string")switch(t.charAt(0)){case"+":i[a]+=+t;break;case"-":i[a]+=+t;break;case"*":i[a]*=+t.substr(1);break;case"/":i[a]/=+t.substr(1);break;default:i[a]=+t}else if(Te(t)==="number")i[a]=t;else throw new Error("unsupported value for Color.set");const s=new G(i,n);return r?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${o} in mode ${n}`)}else return i};G.prototype.tint=function(e=.5,...t){return Rn(this,"white",e,...t)};G.prototype.shade=function(e=.5,...t){return Rn(this,"black",e,...t)};const my=(e,t,r)=>{const n=e._rgb,o=t._rgb;return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"rgb")};yt.rgb=my;const{sqrt:ga,pow:bn}=Math,gy=(e,t,r)=>{const[n,o,i]=e._rgb,[a,s,c]=t._rgb;return new G(ga(bn(n,2)*(1-r)+bn(a,2)*r),ga(bn(o,2)*(1-r)+bn(s,2)*r),ga(bn(i,2)*(1-r)+bn(c,2)*r),"rgb")};yt.lrgb=gy;const yy=(e,t,r)=>{const n=e.lab(),o=t.lab();return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"lab")};yt.lab=yy;const Mn=(e,t,r,n)=>{let o,i;n==="hsl"?(o=e.hsl(),i=t.hsl()):n==="hsv"?(o=e.hsv(),i=t.hsv()):n==="hcg"?(o=e.hcg(),i=t.hcg()):n==="hsi"?(o=e.hsi(),i=t.hsi()):n==="lch"||n==="hcl"?(n="hcl",o=e.hcl(),i=t.hcl()):n==="oklch"&&(o=e.oklch().reverse(),i=t.oklch().reverse());let a,s,c,l,u,p;(n.substr(0,1)==="h"||n==="oklch")&&([a,c,u]=o,[s,l,p]=i);let g,S,y,h;return!isNaN(a)&&!isNaN(s)?(s>a&&s-a>180?h=s-(a+360):s<a&&a-s>180?h=s+360-a:h=s-a,S=a+r*h):isNaN(a)?isNaN(s)?S=Number.NaN:(S=s,(u==1||u==0)&&n!="hsv"&&(g=l)):(S=a,(p==1||p==0)&&n!="hsv"&&(g=c)),g===void 0&&(g=c+r*(l-c)),y=u+r*(p-u),n==="oklch"?new G([y,g,S],n):new G([S,g,y],n)},$u=(e,t,r)=>Mn(e,t,r,"lch");yt.lch=$u;yt.hcl=$u;const by=e=>{if(Te(e)=="number"&&e>=0&&e<=16777215){const t=e>>16,r=e>>8&255,n=e&255;return[t,r,n,1]}throw new Error("unknown num color: "+e)},wy=(...e)=>{const[t,r,n]=be(e,"rgb");return(t<<16)+(r<<8)+n};G.prototype.num=function(){return wy(this._rgb)};const Ey=(...e)=>new G(...e,"num");Object.assign(xe,{num:Ey});ge.format.num=by;ge.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Te(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const vy=(e,t,r)=>{const n=e.num(),o=t.num();return new G(n+r*(o-n),"num")};yt.num=vy;const{floor:Sy}=Math,xy=(...e)=>{e=be(e,"hcg");let[t,r,n]=e,o,i,a;n=n*255;const s=r*255;if(r===0)o=i=a=n;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;const c=Sy(t),l=t-c,u=n*(1-r),p=u+s*(1-l),g=u+s*l,S=u+s;switch(c){case 0:[o,i,a]=[S,g,u];break;case 1:[o,i,a]=[p,S,u];break;case 2:[o,i,a]=[u,S,g];break;case 3:[o,i,a]=[u,p,S];break;case 4:[o,i,a]=[g,u,S];break;case 5:[o,i,a]=[S,u,p];break}}return[o,i,a,e.length>3?e[3]:1]},Ty=(...e)=>{const[t,r,n]=be(e,"rgb"),o=Au(t,r,n),i=Ru(t,r,n),a=i-o,s=a*100/255,c=o/(255-a)*100;let l;return a===0?l=Number.NaN:(t===i&&(l=(r-n)/a),r===i&&(l=2+(n-t)/a),n===i&&(l=4+(t-r)/a),l*=60,l<0&&(l+=360)),[l,s,c]};G.prototype.hcg=function(){return Ty(this._rgb)};const _y=(...e)=>new G(...e,"hcg");xe.hcg=_y;ge.format.hcg=xy;ge.autodetect.push({p:1,test:(...e)=>{if(e=be(e,"hcg"),Te(e)==="array"&&e.length===3)return"hcg"}});const Cy=(e,t,r)=>Mn(e,t,r,"hcg");yt.hcg=Cy;const{cos:wn}=Math,Ay=(...e)=>{e=be(e,"hsi");let[t,r,n]=e,o,i,a;return isNaN(t)&&(t=0),isNaN(r)&&(r=0),t>360&&(t-=360),t<0&&(t+=360),t/=360,t<1/3?(a=(1-r)/3,o=(1+r*wn(_r*t)/wn(da-_r*t))/3,i=1-(a+o)):t<2/3?(t-=1/3,o=(1-r)/3,i=(1+r*wn(_r*t)/wn(da-_r*t))/3,a=1-(o+i)):(t-=2/3,i=(1-r)/3,a=(1+r*wn(_r*t)/wn(da-_r*t))/3,o=1-(i+a)),o=tn(n*o*3),i=tn(n*i*3),a=tn(n*a*3),[o*255,i*255,a*255,e.length>3?e[3]:1]},{min:Ry,sqrt:Oy,acos:ky}=Math,Py=(...e)=>{let[t,r,n]=be(e,"rgb");t/=255,r/=255,n/=255;let o;const i=Ry(t,r,n),a=(t+r+n)/3,s=a>0?1-i/a:0;return s===0?o=NaN:(o=(t-r+(t-n))/2,o/=Oy((t-r)*(t-r)+(t-n)*(r-n)),o=ky(o),n>r&&(o=_r-o),o/=_r),[o*360,s,a]};G.prototype.hsi=function(){return Py(this._rgb)};const Iy=(...e)=>new G(...e,"hsi");xe.hsi=Iy;ge.format.hsi=Ay;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsi"),Te(e)==="array"&&e.length===3)return"hsi"}});const My=(e,t,r)=>Mn(e,t,r,"hsi");yt.hsi=My;const Fa=(...e)=>{e=be(e,"hsl");const[t,r,n]=e;let o,i,a;if(r===0)o=i=a=n*255;else{const s=[0,0,0],c=[0,0,0],l=n<.5?n*(1+r):n+r-n*r,u=2*n-l,p=t/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let g=0;g<3;g++)s[g]<0&&(s[g]+=1),s[g]>1&&(s[g]-=1),6*s[g]<1?c[g]=u+(l-u)*6*s[g]:2*s[g]<1?c[g]=l:3*s[g]<2?c[g]=u+(l-u)*(2/3-s[g])*6:c[g]=u;[o,i,a]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[o,i,a,e[3]]:[o,i,a,1]},Lu=(...e)=>{e=be(e,"rgba");let[t,r,n]=e;t/=255,r/=255,n/=255;const o=Au(t,r,n),i=Ru(t,r,n),a=(i+o)/2;let s,c;return i===o?(s=0,c=Number.NaN):s=a<.5?(i-o)/(i+o):(i-o)/(2-i-o),t==i?c=(r-n)/(i-o):r==i?c=2+(n-t)/(i-o):n==i&&(c=4+(t-r)/(i-o)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,a,e[3]]:[c,s,a]};G.prototype.hsl=function(){return Lu(this._rgb)};const Ny=(...e)=>new G(...e,"hsl");xe.hsl=Ny;ge.format.hsl=Fa;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsl"),Te(e)==="array"&&e.length===3)return"hsl"}});const Dy=(e,t,r)=>Mn(e,t,r,"hsl");yt.hsl=Dy;const{floor:$y}=Math,Ly=(...e)=>{e=be(e,"hsv");let[t,r,n]=e,o,i,a;if(n*=255,r===0)o=i=a=n;else{t===360&&(t=0),t>360&&(t-=360),t<0&&(t+=360),t/=60;const s=$y(t),c=t-s,l=n*(1-r),u=n*(1-r*c),p=n*(1-r*(1-c));switch(s){case 0:[o,i,a]=[n,p,l];break;case 1:[o,i,a]=[u,n,l];break;case 2:[o,i,a]=[l,n,p];break;case 3:[o,i,a]=[l,u,n];break;case 4:[o,i,a]=[p,l,n];break;case 5:[o,i,a]=[n,l,u];break}}return[o,i,a,e.length>3?e[3]:1]},{min:By,max:Fy}=Math,Uy=(...e)=>{e=be(e,"rgb");let[t,r,n]=e;const o=By(t,r,n),i=Fy(t,r,n),a=i-o;let s,c,l;return l=i/255,i===0?(s=Number.NaN,c=0):(c=a/i,t===i&&(s=(r-n)/a),r===i&&(s=2+(n-t)/a),n===i&&(s=4+(t-r)/a),s*=60,s<0&&(s+=360)),[s,c,l]};G.prototype.hsv=function(){return Uy(this._rgb)};const jy=(...e)=>new G(...e,"hsv");xe.hsv=jy;ge.format.hsv=Ly;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsv"),Te(e)==="array"&&e.length===3)return"hsv"}});const zy=(e,t,r)=>Mn(e,t,r,"hsv");yt.hsv=zy;function li(e,t){let r=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(a=>[a]));let n=t[0].length,o=t[0].map((a,s)=>t.map(c=>c[s])),i=e.map(a=>o.map(s=>Array.isArray(a)?a.reduce((c,l,u)=>c+l*(s[u]||0),0):s.reduce((c,l)=>c+l*a,0)));return r===1&&(i=i[0]),n===1?i.map(a=>a[0]):i}const cs=(...e)=>{e=be(e,"lab");const[t,r,n,...o]=e,[i,a,s]=Hy([t,r,n]),[c,l,u]=Iu(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]};function Hy(e){var t=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],r=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],n=li(r,e);return li(t,n.map(o=>o**3))}const ls=(...e)=>{const[t,r,n,...o]=be(e,"rgb"),i=Mu(t,r,n);return[...qy(i),...o.length>0&&o[0]<1?[o[0]]:[]]};function qy(e){const t=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],r=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],n=li(t,e);return li(r,n.map(o=>Math.cbrt(o)))}G.prototype.oklab=function(){return ls(this._rgb)};const Wy=(...e)=>new G(...e,"oklab");Object.assign(xe,{oklab:Wy});ge.format.oklab=cs;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"oklab"),Te(e)==="array"&&e.length===3)return"oklab"}});const Gy=(e,t,r)=>{const n=e.oklab(),o=t.oklab();return new G(n[0]+r*(o[0]-n[0]),n[1]+r*(o[1]-n[1]),n[2]+r*(o[2]-n[2]),"oklab")};yt.oklab=Gy;const Vy=(e,t,r)=>Mn(e,t,r,"oklch");yt.oklch=Vy;const{pow:ya,sqrt:ba,PI:wa,cos:Qc,sin:Jc,atan2:Yy}=Math,Ky=(e,t="lrgb",r=null)=>{const n=e.length;r||(r=Array.from(new Array(n)).map(()=>1));const o=n/r.reduce(function(p,g){return p+g});if(r.forEach((p,g)=>{r[g]*=o}),e=e.map(p=>new G(p)),t==="lrgb")return Xy(e,r);const i=e.shift(),a=i.get(t),s=[];let c=0,l=0;for(let p=0;p<a.length;p++)if(a[p]=(a[p]||0)*r[0],s.push(isNaN(a[p])?0:r[0]),t.charAt(p)==="h"&&!isNaN(a[p])){const g=a[p]/180*wa;c+=Qc(g)*r[0],l+=Jc(g)*r[0]}let u=i.alpha()*r[0];e.forEach((p,g)=>{const S=p.get(t);u+=p.alpha()*r[g+1];for(let y=0;y<a.length;y++)if(!isNaN(S[y]))if(s[y]+=r[g+1],t.charAt(y)==="h"){const h=S[y]/180*wa;c+=Qc(h)*r[g+1],l+=Jc(h)*r[g+1]}else a[y]+=S[y]*r[g+1]});for(let p=0;p<a.length;p++)if(t.charAt(p)==="h"){let g=Yy(l/s[p],c/s[p])/wa*180;for(;g<0;)g+=360;for(;g>=360;)g-=360;a[p]=g}else a[p]=a[p]/s[p];return u/=n,new G(a,t).alpha(u>.99999?1:u,!0)},Xy=(e,t)=>{const r=e.length,n=[0,0,0,0];for(let o=0;o<e.length;o++){const i=e[o],a=t[o]/r,s=i._rgb;n[0]+=ya(s[0],2)*a,n[1]+=ya(s[1],2)*a,n[2]+=ya(s[2],2)*a,n[3]+=s[3]*a}return n[0]=ba(n[0]),n[1]=ba(n[1]),n[2]=ba(n[2]),n[3]>.9999999&&(n[3]=1),new G(ns(n))},{pow:Qy}=Math;function ui(e){let t="rgb",r=xe("#ccc"),n=0,o=[0,1],i=[0,1],a=[],s=[0,0],c=!1,l=[],u=!1,p=0,g=1,S=!1,y={},h=!0,b=1;const v=function(R){if(R=R||["#fff","#000"],R&&Te(R)==="string"&&xe.brewer&&xe.brewer[R.toLowerCase()]&&(R=xe.brewer[R.toLowerCase()]),Te(R)==="array"){R.length===1&&(R=[R[0],R[0]]),R=R.slice(0);for(let N=0;N<R.length;N++)R[N]=xe(R[N]);a.length=0;for(let N=0;N<R.length;N++)a.push(N/(R.length-1))}return E(),l=R},k=function(R){if(c!=null){const N=c.length-1;let W=0;for(;W<N&&R>=c[W];)W++;return W-1}return 0};let P=R=>R,O=R=>R;const d=function(R,N){let W,B;if(N==null&&(N=!1),isNaN(R)||R===null)return r;N?B=R:c&&c.length>2?B=k(R)/(c.length-2):g!==p?B=(R-p)/(g-p):B=1,B=O(B),N||(B=P(B)),b!==1&&(B=Qy(B,b)),B=s[0]+B*(1-s[0]-s[1]),B=tn(B,0,1);const m=Math.floor(B*1e4);if(h&&y[m])W=y[m];else{if(Te(l)==="array")for(let $=0;$<a.length;$++){const I=a[$];if(B<=I){W=l[$];break}if(B>=I&&$===a.length-1){W=l[$];break}if(B>I&&B<a[$+1]){B=(B-I)/(a[$+1]-I),W=xe.interpolate(l[$],l[$+1],B,t);break}}else Te(l)==="function"&&(W=l(B));h&&(y[m]=W)}return W};var E=()=>y={};v(e);const T=function(R){const N=xe(d(R));return u&&N[u]?N[u]():N};return T.classes=function(R){if(R!=null){if(Te(R)==="array")c=R,o=[R[0],R[R.length-1]];else{const N=xe.analyze(o);R===0?c=[N.min,N.max]:c=xe.limits(N,"e",R)}return T}return c},T.domain=function(R){if(!arguments.length)return i;i=R.slice(0),p=R[0],g=R[R.length-1],a=[];const N=l.length;if(R.length===N&&p!==g)for(let W of Array.from(R))a.push((W-p)/(g-p));else{for(let W=0;W<N;W++)a.push(W/(N-1));if(R.length>2){const W=R.map((m,$)=>$/(R.length-1)),B=R.map(m=>(m-p)/(g-p));B.every((m,$)=>W[$]===m)||(O=m=>{if(m<=0||m>=1)return m;let $=0;for(;m>=B[$+1];)$++;const I=(m-B[$])/(B[$+1]-B[$]);return W[$]+I*(W[$+1]-W[$])})}}return o=[p,g],T},T.mode=function(R){return arguments.length?(t=R,E(),T):t},T.range=function(R,N){return v(R),T},T.out=function(R){return u=R,T},T.spread=function(R){return arguments.length?(n=R,T):n},T.correctLightness=function(R){return R==null&&(R=!0),S=R,E(),S?P=function(N){const W=d(0,!0).lab()[0],B=d(1,!0).lab()[0],m=W>B;let $=d(N,!0).lab()[0];const I=W+(B-W)*N;let q=$-I,J=0,fe=1,Ce=20;for(;Math.abs(q)>.01&&Ce-- >0;)(function(){return m&&(q*=-1),q<0?(J=N,N+=(fe-N)*.5):(fe=N,N+=(J-N)*.5),$=d(N,!0).lab()[0],q=$-I})();return N}:P=N=>N,T},T.padding=function(R){return R!=null?(Te(R)==="number"&&(R=[R,R]),s=R,T):s},T.colors=function(R,N){arguments.length<2&&(N="hex");let W=[];if(arguments.length===0)W=l.slice(0);else if(R===1)W=[T(.5)];else if(R>1){const B=o[0],m=o[1]-B;W=Jy(0,R).map($=>T(B+$/(R-1)*m))}else{e=[];let B=[];if(c&&c.length>2)for(let m=1,$=c.length,I=1<=$;I?m<$:m>$;I?m++:m--)B.push((c[m-1]+c[m])*.5);else B=o;W=B.map(m=>T(m))}return xe[N]&&(W=W.map(B=>B[N]())),W},T.cache=function(R){return R!=null?(h=R,T):h},T.gamma=function(R){return R!=null?(b=R,T):b},T.nodata=function(R){return R!=null?(r=xe(R),T):r},T}function Jy(e,t,r){let n=[],o=e<t,i=t;for(let a=e;o?a<i:a>i;o?a++:a--)n.push(a);return n}const Zy=function(e){let t=[1,1];for(let r=1;r<e;r++){let n=[1];for(let o=1;o<=t.length;o++)n[o]=(t[o]||0)+t[o-1];t=n}return t},e1=function(e){let t,r,n,o;if(e=e.map(i=>new G(i)),e.length===2)[r,n]=e.map(i=>i.lab()),t=function(i){const a=[0,1,2].map(s=>r[s]+i*(n[s]-r[s]));return new G(a,"lab")};else if(e.length===3)[r,n,o]=e.map(i=>i.lab()),t=function(i){const a=[0,1,2].map(s=>(1-i)*(1-i)*r[s]+2*(1-i)*i*n[s]+i*i*o[s]);return new G(a,"lab")};else if(e.length===4){let i;[r,n,o,i]=e.map(a=>a.lab()),t=function(a){const s=[0,1,2].map(c=>(1-a)*(1-a)*(1-a)*r[c]+3*(1-a)*(1-a)*a*n[c]+3*(1-a)*a*a*o[c]+a*a*a*i[c]);return new G(s,"lab")}}else if(e.length>=5){let i,a,s;i=e.map(c=>c.lab()),s=e.length-1,a=Zy(s),t=function(c){const l=1-c,u=[0,1,2].map(p=>i.reduce((g,S,y)=>g+a[y]*l**(s-y)*c**y*S[p],0));return new G(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return t},t1=e=>{const t=e1(e);return t.scale=()=>ui(t),t},{round:Bu}=Math;G.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Bu)};G.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((t,r)=>r<3?e===!1?t:Bu(t):t)};const r1=(...e)=>new G(...e,"rgb");Object.assign(xe,{rgb:r1});ge.format.rgb=(...e)=>{const t=be(e,"rgba");return t[3]===void 0&&(t[3]=1),t};ge.autodetect.push({p:3,test:(...e)=>{if(e=be(e,"rgba"),Te(e)==="array"&&(e.length===3||e.length===4&&Te(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Xt=(e,t,r)=>{if(!Xt[r])throw new Error("unknown blend mode "+r);return Xt[r](e,t)},Fr=e=>(t,r)=>{const n=xe(r).rgb(),o=xe(t).rgb();return xe.rgb(e(n,o))},Ur=e=>(t,r)=>{const n=[];return n[0]=e(t[0],r[0]),n[1]=e(t[1],r[1]),n[2]=e(t[2],r[2]),n},n1=e=>e,o1=(e,t)=>e*t/255,i1=(e,t)=>e>t?t:e,a1=(e,t)=>e>t?e:t,s1=(e,t)=>255*(1-(1-e/255)*(1-t/255)),c1=(e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)),l1=(e,t)=>255*(1-(1-t/255)/(e/255)),u1=(e,t)=>e===255?255:(e=255*(t/255)/(1-e/255),e>255?255:e);Xt.normal=Fr(Ur(n1));Xt.multiply=Fr(Ur(o1));Xt.screen=Fr(Ur(s1));Xt.overlay=Fr(Ur(c1));Xt.darken=Fr(Ur(i1));Xt.lighten=Fr(Ur(a1));Xt.dodge=Fr(Ur(u1));Xt.burn=Fr(Ur(l1));const{pow:f1,sin:d1,cos:p1}=Math;function h1(e=300,t=-1.5,r=1,n=1,o=[0,1]){let i=0,a;Te(o)==="array"?a=o[1]-o[0]:(a=0,o=[o,o]);const s=function(c){const l=_r*((e+120)/360+t*c),u=f1(o[0]+a*c,n),g=(i!==0?r[0]+c*i:r)*u*(1-u)/2,S=p1(l),y=d1(l),h=u+g*(-.14861*S+1.78277*y),b=u+g*(-.29227*S-.90649*y),v=u+g*(1.97294*S);return xe(ns([h*255,b*255,v*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?t:(t=c,s)},s.gamma=function(c){return c==null?n:(n=c,s)},s.hue=function(c){return c==null?r:(r=c,Te(r)==="array"?(i=r[1]-r[0],i===0&&(r=r[1])):i=0,s)},s.lightness=function(c){return c==null?o:(Te(c)==="array"?(o=c,a=c[1]-c[0]):(o=[c,c],a=0),s)},s.scale=()=>xe.scale(s),s.hue(r),s}const m1="0123456789abcdef",{floor:g1,random:y1}=Math,b1=(e=y1)=>{let t="#";for(let r=0;r<6;r++)t+=m1.charAt(g1(e()*16));return new G(t,"hex")},{log:Zc,pow:w1,floor:E1,abs:v1}=Math;function Fu(e,t=null){const r={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Te(e)==="object"&&(e=Object.values(e)),e.forEach(n=>{t&&Te(n)==="object"&&(n=n[t]),n!=null&&!isNaN(n)&&(r.values.push(n),r.sum+=n,n<r.min&&(r.min=n),n>r.max&&(r.max=n),r.count+=1)}),r.domain=[r.min,r.max],r.limits=(n,o)=>Uu(r,n,o),r}function Uu(e,t="equal",r=7){Te(e)=="array"&&(e=Fu(e));const{min:n,max:o}=e,i=e.values.sort((s,c)=>s-c);if(r===1)return[n,o];const a=[];if(t.substr(0,1)==="c"&&(a.push(n),a.push(o)),t.substr(0,1)==="e"){a.push(n);for(let s=1;s<r;s++)a.push(n+s/r*(o-n));a.push(o)}else if(t.substr(0,1)==="l"){if(n<=0)throw new Error("Logarithmic scales are only possible for values > 0");const s=Math.LOG10E*Zc(n),c=Math.LOG10E*Zc(o);a.push(n);for(let l=1;l<r;l++)a.push(w1(10,s+l/r*(c-s)));a.push(o)}else if(t.substr(0,1)==="q"){a.push(n);for(let s=1;s<r;s++){const c=(i.length-1)*s/r,l=E1(c);if(l===c)a.push(i[l]);else{const u=c-l;a.push(i[l]*(1-u)+i[l+1]*u)}}a.push(o)}else if(t.substr(0,1)==="k"){let s;const c=i.length,l=new Array(c),u=new Array(r);let p=!0,g=0,S=null;S=[],S.push(n);for(let b=1;b<r;b++)S.push(n+b/r*(o-n));for(S.push(o);p;){for(let v=0;v<r;v++)u[v]=0;for(let v=0;v<c;v++){const k=i[v];let P=Number.MAX_VALUE,O;for(let d=0;d<r;d++){const E=v1(S[d]-k);E<P&&(P=E,O=d),u[O]++,l[v]=O}}const b=new Array(r);for(let v=0;v<r;v++)b[v]=null;for(let v=0;v<c;v++)s=l[v],b[s]===null?b[s]=i[v]:b[s]+=i[v];for(let v=0;v<r;v++)b[v]*=1/u[v];p=!1;for(let v=0;v<r;v++)if(b[v]!==S[v]){p=!0;break}S=b,g++,g>200&&(p=!1)}const y={};for(let b=0;b<r;b++)y[b]=[];for(let b=0;b<c;b++)s=l[b],y[s].push(i[b]);let h=[];for(let b=0;b<r;b++)h.push(y[b][0]),h.push(y[b][y[b].length-1]);h=h.sort((b,v)=>b-v),a.push(h[0]);for(let b=1;b<h.length;b+=2){const v=h[b];!isNaN(v)&&a.indexOf(v)===-1&&a.push(v)}}return a}const S1=(e,t)=>{e=new G(e),t=new G(t);const r=e.luminance(),n=t.luminance();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)};const el=.027,x1=5e-4,T1=.1,tl=1.14,Go=.022,rl=1.414,_1=(e,t)=>{e=new G(e),t=new G(t),e.alpha()<1&&(e=Rn(t,e,e.alpha(),"rgb"));const r=nl(...e.rgb()),n=nl(...t.rgb()),o=r>=Go?r:r+Math.pow(Go-r,rl),i=n>=Go?n:n+Math.pow(Go-n,rl),a=Math.pow(i,.56)-Math.pow(o,.57),s=Math.pow(i,.65)-Math.pow(o,.62),c=Math.abs(i-o)<x1?0:o<i?a*tl:s*tl;return(Math.abs(c)<T1?0:c>0?c-el:c+el)*100};function nl(e,t,r){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(r/255,2.4)}const{sqrt:Sr,pow:rt,min:C1,max:A1,atan2:ol,abs:il,cos:Vo,sin:al,exp:R1,PI:sl}=Math;function O1(e,t,r=1,n=1,o=1){var i=function(Z){return 360*Z/(2*sl)},a=function(Z){return 2*sl*Z/360};e=new G(e),t=new G(t);const[s,c,l]=Array.from(e.lab()),[u,p,g]=Array.from(t.lab()),S=(s+u)/2,y=Sr(rt(c,2)+rt(l,2)),h=Sr(rt(p,2)+rt(g,2)),b=(y+h)/2,v=.5*(1-Sr(rt(b,7)/(rt(b,7)+rt(25,7)))),k=c*(1+v),P=p*(1+v),O=Sr(rt(k,2)+rt(l,2)),d=Sr(rt(P,2)+rt(g,2)),E=(O+d)/2,T=i(ol(l,k)),R=i(ol(g,P)),N=T>=0?T:T+360,W=R>=0?R:R+360,B=il(N-W)>180?(N+W+360)/2:(N+W)/2,m=1-.17*Vo(a(B-30))+.24*Vo(a(2*B))+.32*Vo(a(3*B+6))-.2*Vo(a(4*B-63));let $=W-N;$=il($)<=180?$:W<=N?$+360:$-360,$=2*Sr(O*d)*al(a($)/2);const I=u-s,q=d-O,J=1+.015*rt(S-50,2)/Sr(20+rt(S-50,2)),fe=1+.045*E,Ce=1+.015*E*m,ft=30*R1(-rt((B-275)/25,2)),H=-(2*Sr(rt(E,7)/(rt(E,7)+rt(25,7))))*al(2*a(ft)),le=Sr(rt(I/(r*J),2)+rt(q/(n*fe),2)+rt($/(o*Ce),2)+H*(q/(n*fe))*($/(o*Ce)));return A1(0,C1(100,le))}function k1(e,t,r="lab"){e=new G(e),t=new G(t);const n=e.get(r),o=t.get(r);let i=0;for(let a in n){const s=(n[a]||0)-(o[a]||0);i+=s*s}return Math.sqrt(i)}const P1=(...e)=>{try{return new G(...e),!0}catch{return!1}},I1={cool(){return ui([xe.hsl(180,1,.9),xe.hsl(250,.7,.4)])},hot(){return ui(["#000","#f00","#ff0","#fff"]).mode("rgb")}},Ua={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},ju=Object.keys(Ua),cl=new Map(ju.map(e=>[e.toLowerCase(),e])),M1=typeof Proxy=="function"?new Proxy(Ua,{get(e,t){const r=t.toLowerCase();if(cl.has(r))return e[cl.get(r)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(ju)}}):Ua,N1=(...e)=>{e=be(e,"cmyk");const[t,r,n,o]=e,i=e.length>4?e[4]:1;return o===1?[0,0,0,i]:[t>=1?0:255*(1-t)*(1-o),r>=1?0:255*(1-r)*(1-o),n>=1?0:255*(1-n)*(1-o),i]},{max:ll}=Math,D1=(...e)=>{let[t,r,n]=be(e,"rgb");t=t/255,r=r/255,n=n/255;const o=1-ll(t,ll(r,n)),i=o<1?1/(1-o):0,a=(1-t-o)*i,s=(1-r-o)*i,c=(1-n-o)*i;return[a,s,c,o]};G.prototype.cmyk=function(){return D1(this._rgb)};const $1=(...e)=>new G(...e,"cmyk");Object.assign(xe,{cmyk:$1});ge.format.cmyk=N1;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"cmyk"),Te(e)==="array"&&e.length===4)return"cmyk"}});const L1=(...e)=>{const t=be(e,"hsla");let r=In(e)||"lsa";return t[0]=zt(t[0]||0)+"deg",t[1]=zt(t[1]*100)+"%",t[2]=zt(t[2]*100)+"%",r==="hsla"||t.length>3&&t[3]<1?(t[3]="/ "+(t.length>3?t[3]:1),r="hsla"):t.length=3,`${r.substr(0,3)}(${t.join(" ")})`},B1=(...e)=>{const t=be(e,"lab");let r=In(e)||"lab";return t[0]=zt(t[0])+"%",t[1]=zt(t[1]),t[2]=zt(t[2]),r==="laba"||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lab(${t.join(" ")})`},F1=(...e)=>{const t=be(e,"lch");let r=In(e)||"lab";return t[0]=zt(t[0])+"%",t[1]=zt(t[1]),t[2]=isNaN(t[2])?"none":zt(t[2])+"deg",r==="lcha"||t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`lch(${t.join(" ")})`},U1=(...e)=>{const t=be(e,"lab");return t[0]=zt(t[0]*100)+"%",t[1]=Ba(t[1]),t[2]=Ba(t[2]),t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklab(${t.join(" ")})`},zu=(...e)=>{const[t,r,n,...o]=be(e,"rgb"),[i,a,s]=ls(t,r,n),[c,l,u]=Du(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]},j1=(...e)=>{const t=be(e,"lch");return t[0]=zt(t[0]*100)+"%",t[1]=Ba(t[1]),t[2]=isNaN(t[2])?"none":zt(t[2])+"deg",t.length>3&&t[3]<1?t[3]="/ "+(t.length>3?t[3]:1):t.length=3,`oklch(${t.join(" ")})`},{round:Ea}=Math,z1=(...e)=>{const t=be(e,"rgba");let r=In(e)||"rgb";if(r.substr(0,3)==="hsl")return L1(Lu(t),r);if(r.substr(0,3)==="lab"){const n=fo();Ar("d50");const o=B1(is(t),r);return Ar(n),o}if(r.substr(0,3)==="lch"){const n=fo();Ar("d50");const o=F1(ss(t),r);return Ar(n),o}return r.substr(0,5)==="oklab"?U1(ls(t)):r.substr(0,5)==="oklch"?j1(zu(t)):(t[0]=Ea(t[0]),t[1]=Ea(t[1]),t[2]=Ea(t[2]),(r==="rgba"||t.length>3&&t[3]<1)&&(t[3]="/ "+(t.length>3?t[3]:1),r="rgba"),`${r.substr(0,3)}(${t.slice(0,r==="rgb"?3:4).join(" ")})`)},Hu=(...e)=>{e=be(e,"lch");const[t,r,n,...o]=e,[i,a,s]=Nu(t,r,n),[c,l,u]=cs(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]},Rr=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Kt=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,qt=/\s*/.source,Nn=/\s+/.source,us=/\s*,\s*/.source,Di=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Dn=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,qu=new RegExp("^rgba?\\("+qt+[Rr,Rr,Rr].join(Nn)+Dn+"\\)$"),Wu=new RegExp("^rgb\\("+qt+[Rr,Rr,Rr].join(us)+qt+"\\)$"),Gu=new RegExp("^rgba\\("+qt+[Rr,Rr,Rr,Kt].join(us)+qt+"\\)$"),Vu=new RegExp("^hsla?\\("+qt+[Di,fi,fi].join(Nn)+Dn+"\\)$"),Yu=new RegExp("^hsl?\\("+qt+[Di,fi,fi].join(us)+qt+"\\)$"),Ku=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Xu=new RegExp("^lab\\("+qt+[Kt,Kt,Kt].join(Nn)+Dn+"\\)$"),Qu=new RegExp("^lch\\("+qt+[Kt,Kt,Di].join(Nn)+Dn+"\\)$"),Ju=new RegExp("^oklab\\("+qt+[Kt,Kt,Kt].join(Nn)+Dn+"\\)$"),Zu=new RegExp("^oklch\\("+qt+[Kt,Kt,Di].join(Nn)+Dn+"\\)$"),{round:ef}=Math,En=e=>e.map((t,r)=>r<=2?tn(ef(t),0,255):t),nt=(e,t=0,r=100,n=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,n?e=t+(e+1)*.5*(r-t):e=t+e*(r-t)),+e),Et=(e,t)=>e==="none"?t:e,fs=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t;if(ge.format.named)try{return ge.format.named(e)}catch{}if((t=e.match(qu))||(t=e.match(Wu))){let r=t.slice(1,4);for(let o=0;o<3;o++)r[o]=+nt(Et(r[o],0),0,255);r=En(r);const n=t[4]!==void 0?+nt(t[4],0,1):1;return r[3]=n,r}if(t=e.match(Gu)){const r=t.slice(1,5);for(let n=0;n<4;n++)r[n]=+nt(r[n],0,255);return r}if((t=e.match(Vu))||(t=e.match(Yu))){const r=t.slice(1,4);r[0]=+Et(r[0].replace("deg",""),0),r[1]=+nt(Et(r[1],0),0,100)*.01,r[2]=+nt(Et(r[2],0),0,100)*.01;const n=En(Fa(r)),o=t[4]!==void 0?+nt(t[4],0,1):1;return n[3]=o,n}if(t=e.match(Ku)){const r=t.slice(1,4);r[1]*=.01,r[2]*=.01;const n=Fa(r);for(let o=0;o<3;o++)n[o]=ef(n[o]);return n[3]=+t[4],n}if(t=e.match(Xu)){const r=t.slice(1,4);r[0]=nt(Et(r[0],0),0,100),r[1]=nt(Et(r[1],0),-125,125,!0),r[2]=nt(Et(r[2],0),-125,125,!0);const n=fo();Ar("d50");const o=En(os(r));Ar(n);const i=t[4]!==void 0?+nt(t[4],0,1):1;return o[3]=i,o}if(t=e.match(Qu)){const r=t.slice(1,4);r[0]=nt(r[0],0,100),r[1]=nt(Et(r[1],0),0,150,!1),r[2]=+Et(r[2].replace("deg",""),0);const n=fo();Ar("d50");const o=En(as(r));Ar(n);const i=t[4]!==void 0?+nt(t[4],0,1):1;return o[3]=i,o}if(t=e.match(Ju)){const r=t.slice(1,4);r[0]=nt(Et(r[0],0),0,1),r[1]=nt(Et(r[1],0),-.4,.4,!0),r[2]=nt(Et(r[2],0),-.4,.4,!0);const n=En(cs(r)),o=t[4]!==void 0?+nt(t[4],0,1):1;return n[3]=o,n}if(t=e.match(Zu)){const r=t.slice(1,4);r[0]=nt(Et(r[0],0),0,1),r[1]=nt(Et(r[1],0),0,.4,!1),r[2]=+Et(r[2].replace("deg",""),0);const n=En(Hu(r)),o=t[4]!==void 0?+nt(t[4],0,1):1;return n[3]=o,n}};fs.test=e=>qu.test(e)||Vu.test(e)||Xu.test(e)||Qu.test(e)||Ju.test(e)||Zu.test(e)||Wu.test(e)||Gu.test(e)||Yu.test(e)||Ku.test(e)||e==="transparent";G.prototype.css=function(e){return z1(this._rgb,e)};const H1=(...e)=>new G(...e,"css");xe.css=H1;ge.format.css=fs;ge.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&fs.test(e))return"css"}});ge.format.gl=(...e)=>{const t=be(e,"rgba");return t[0]*=255,t[1]*=255,t[2]*=255,t};const q1=(...e)=>new G(...e,"gl");xe.gl=q1;G.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};G.prototype.hex=function(e){return Pu(this._rgb,e)};const W1=(...e)=>new G(...e,"hex");xe.hex=W1;ge.format.hex=ku;ge.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Yo}=Math,tf=e=>{const t=e/100;let r,n,o;return t<66?(r=255,n=t<6?0:-155.25485562709179-.44596950469579133*(n=t-2)+104.49216199393888*Yo(n),o=t<20?0:-254.76935184120902+.8274096064007395*(o=t-10)+115.67994401066147*Yo(o)):(r=351.97690566805693+.114206453784165*(r=t-55)-40.25366309332127*Yo(r),n=325.4494125711974+.07943456536662342*(n=t-50)-28.0852963507957*Yo(n),o=255),[r,n,o,1]},{round:G1}=Math,V1=(...e)=>{const t=be(e,"rgb"),r=t[0],n=t[2];let o=1e3,i=4e4;const a=.4;let s;for(;i-o>a;){s=(i+o)*.5;const c=tf(s);c[2]/c[0]>=n/r?i=s:o=s}return G1(s)};G.prototype.temp=G.prototype.kelvin=G.prototype.temperature=function(){return V1(this._rgb)};const va=(...e)=>new G(...e,"temp");Object.assign(xe,{temp:va,kelvin:va,temperature:va});ge.format.temp=ge.format.kelvin=ge.format.temperature=tf;G.prototype.oklch=function(){return zu(this._rgb)};const Y1=(...e)=>new G(...e,"oklch");Object.assign(xe,{oklch:Y1});ge.format.oklch=Hu;ge.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"oklch"),Te(e)==="array"&&e.length===3)return"oklch"}});Object.assign(xe,{analyze:Fu,average:Ky,bezier:t1,blend:Xt,brewer:M1,Color:G,colors:An,contrast:S1,contrastAPCA:_1,cubehelix:h1,deltaE:O1,distance:k1,input:ge,interpolate:Rn,limits:Uu,mix:Rn,random:b1,scale:ui,scales:I1,valid:P1});const K1=e=>{if(e.length===0)return{};const t=[...e].sort(),r=xe.scale(["#006675","#3636C5","#008060","#001746","#36B37E","#00B8D9"]).mode("hsl"),n={};return t.forEach((o,i)=>{const a=i/Math.max(t.length-1,1);n[o]=r(a).darken(.2).hex()}),n},X1=e=>{const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(n,o,i,a){return o+o+i+i+a+a});const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},ul=e=>{if(!e.startsWith("#"))return console.warn("getContrastTextColor: Invalid hex color",e),"#000000";if(e.length===4&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),e.length!==7)return console.warn("getContrastTextColor: Invalid hex color length",e),"#000000";const t=X1(e);return t?(.299*t.r+.587*t.g+.114*t.b)/255>.6?"#000000":"#FFFFFF":(console.warn("getContrastTextColor: Could not convert hex to rgb",e),"#000000")},Q1=(e,t=[])=>{if(t.length>0){const i=K1(t)[e]||"#6c757d";return{bg:i,text:ul(i)}}let r=0;for(let o=0;o<e.length;o++)r=e.charCodeAt(o)+((r<<5)-r);const n=Math.abs(r)%360;return{bg:xe.hsl(n,.7,.3).hex(),text:ul(xe.hsl(n,.7,.3).hex())}},J1=({value:e,size:t=120})=>{const r=n=>n>=90?"#28a745":n>=70?"#ffc107":"#dc3545";return C(x.Box,{flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"center",children:X(x.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(vn,{variant:"determinate",value:e,size:t,thickness:4,sx:{color:r(e),"& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),C(x.Box,{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",children:X(x.Typography,{variant:"h3",component:"div",fontWeight:"bold",color:r(e),sx:{fontSize:"1.5rem"},children:[Math.round(e),"%"]})})]})})},xr=(e,t)=>{typeof window>"u"||localStorage.setItem(e,t)},Ko=e=>{typeof window>"u"||localStorage.removeItem(e)},Z1=({config:e,onAuthSuccess:t,onAuthError:r,initialError:n})=>{const[o,i]=te.useState(""),[a,s]=te.useState(""),[c,l]=te.useState(!1),[u,p]=te.useState(n||null),g=!!e.authBackendUrl,S=!g,y=g;te.useEffect(()=>{if(!e.authBackendUrl)return;const v=new URLSearchParams(window.location.search),k=v.get("sessionToken"),P=v.get("websiteId");if(k&&P){typeof window<"u"&&e.useLocalStorage!==!1&&(xr("dqm_sessionToken",k),xr("dqm_websiteID",P),xr("dqm_sessionType","backend"),Ko("dqm_apiKey"));const O=window.location.origin+window.location.pathname;window.history.replaceState({},document.title,O),t({apiKey:"BACKEND_SESSION",websiteId:P,sessionToken:k,sessionType:"backend"})}},[e.authBackendUrl,e.useLocalStorage,t]);const h=async()=>{if(!o||!a){p("Please enter both API Key and Website ID");return}l(!0),p(null);try{if(!/^[\x00-\x7F]*$/.test(o))throw new Error("API key contains non-ASCII characters");if(e.authBackendUrl){const v=await fetch(`${e.authBackendUrl}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({apiKey:o,websiteId:a})});if(!v.ok){const P=await v.json().catch(()=>({}));throw new Error(P.message||`Authentication failed: ${v.statusText}`)}const k=await v.json();if(!k.sessionToken)throw new Error("Invalid response from authentication backend - missing session token");typeof window<"u"&&e.useLocalStorage!==!1&&(xr("dqm_sessionToken",k.sessionToken),xr("dqm_sessionType","backend"),Ko("dqm_apiKey"),Ko("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:k.websiteId||"BACKEND_SESSION",sessionToken:k.sessionToken,sessionType:"backend"})}else typeof window<"u"&&e.useLocalStorage!==!1&&(xr("dqm_apiKey",o),xr("dqm_websiteID",a),xr("dqm_sessionType","direct"),Ko("dqm_sessionToken")),t({apiKey:o,websiteId:a,sessionType:"direct"})}catch(v){const k=v instanceof Error?v.message:"Authentication failed";p(k),r(v instanceof Error?v:new Error(k))}finally{l(!1)}},b=()=>{if(!e.authBackendUrl){p("Backend URL not configured");return}l(!0),p(null);try{const v=window.location.href;typeof window<"u"&&e.useLocalStorage!==!1&&xr("dqm_return_url",v);const k=new URL(`${e.authBackendUrl}/auth/login`);k.searchParams.set("returnUrl",v),window.location.href=k.toString()}catch(v){const k=v instanceof Error?v.message:"Failed to redirect to login page";p(k),r(v instanceof Error?v:new Error(k)),l(!1)}};return X(x.Box,{sx:{display:"flex",flexDirection:"column",gap:3,p:3,width:"100%"},children:[X(x.Box,{sx:{textAlign:"center"},children:[C(mt.Lock,{sx:{fontSize:50,color:"#711bc1",mb:2}}),C(x.Typography,{variant:"h5",gutterBottom:!0,fontWeight:700,children:"DQM Authentication"}),C(x.Typography,{variant:"body2",color:"text.secondary",children:"Please authenticate to access quality analysis"})]}),u&&C(x.Alert,{severity:"error",onClose:()=>p(null),children:u}),S&&X(x.Box,{sx:{display:"flex",flexDirection:"column",gap:2},children:[C(x.Typography,{variant:"subtitle2",color:"text.secondary",children:"Enter credentials directly"}),C(x.TextField,{label:"Website ID",autoComplete:"username",value:a,onChange:v=>s(v.target.value),disabled:c,fullWidth:!0,required:!0,helperText:"Your website identifier"}),C(x.TextField,{label:"API Key",type:"password",value:o,onChange:v=>i(v.target.value),disabled:c,fullWidth:!0,required:!0,helperText:"Your Crownpeak DQM API key"}),C(x.Button,{variant:"outlined",onClick:h,disabled:c||!o||!a,fullWidth:!0,size:"large",children:c?C(x.CircularProgress,{size:24}):"Continue"})]}),y&&S&&C(x.Divider,{children:"OR"}),y&&C(x.Button,{variant:"contained",startIcon:C(mt.Login,{}),onClick:b,disabled:c,fullWidth:!0,size:"large",sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)","&:hover":{background:"linear-gradient(135deg, #5a0f9a 0%, #7339b8 100%)"}},children:c?C(x.CircularProgress,{size:24,color:"inherit"}):"Login with Backend Session"}),X(x.Typography,{variant:"caption",color:"text.secondary",sx:{textAlign:"center"},children:["Don't have credentials?"," ",C(x.Link,{href:"https://www.crownpeak.com/firstspirit/products/digital-accessibility/digital-accessibility-and-quality-management-dqm/",target:"_blank",children:"Get started with Crownpeak DQM"})]})]})},eb=({config:e,onAuthSuccess:t,onAuthError:r})=>(te.useEffect(()=>{(async()=>{const o=new URLSearchParams(window.location.search),i=o.get("code"),a=o.get("state"),s=o.get("error"),c=o.get("error_description");if(!(!i&&!s&&!a)){if(s){r(new Error(`OAuth2 Error: ${s} - ${c||"Unknown error"}`));return}if(i){const l=sessionStorage.getItem("dqm_oauth_state");if(!a||a!==l){r(new Error("Invalid OAuth2 state - possible CSRF attack"));return}if(sessionStorage.removeItem("dqm_oauth_state"),e.authBackendUrl&&e.oauth2Config)try{const u=await fetch(`${e.authBackendUrl}/auth/oauth2/callback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:i,redirectUri:e.oauth2Config.redirectUri})});if(!u.ok)throw new Error(`Token exchange failed: ${u.statusText}`);const p=await u.json();if(!p.sessionToken)throw new Error("Invalid response from OAuth2 callback - missing session token");e.useLocalStorage!==!1&&(localStorage.setItem("dqm_sessionToken",p.sessionToken),localStorage.setItem("dqm_sessionType","backend"),localStorage.removeItem("dqm_apiKey"),localStorage.removeItem("dqm_websiteID")),t({apiKey:"BACKEND_SESSION",websiteId:p.websiteId||"BACKEND_SESSION",sessionToken:p.sessionToken,sessionType:"backend"}),window.history.replaceState({},document.title,window.location.pathname)}catch(u){r(u instanceof Error?u:new Error("OAuth2 callback processing failed"))}}}})()},[e,t,r]),null),lt=e=>typeof window>"u"?null:localStorage.getItem(e),Xo=e=>{typeof window>"u"||localStorage.removeItem(e)},tb={present:!1,rect:null,position:null,contentOffset:{top:0,bottom:0,left:0,right:0}};function rb(e){const t=window.innerWidth,r=window.innerHeight,n=e.width>=t*.9,o=e.height>=r*.9;if(n){if(e.top<=10)return"top";if(e.bottom>=r-10)return"bottom"}if(o){if(e.left<=10)return"left";if(e.right>=t-10)return"right"}return e.top<=10?"top":e.bottom>=r-10?"bottom":e.left<=10?"left":e.right>=t-10?"right":"center"}function nb(e,t){const r={top:0,bottom:0,left:0,right:0};switch(t){case"top":r.top=e.height;break;case"bottom":r.bottom=e.height;break;case"left":r.left=e.width;break;case"right":r.right=e.width;break}return r}function ob(e,t){return e.present!==t.present||e.position!==t.position?!1:e.rect===null&&t.rect===null?!0:e.rect===null||t.rect===null?!1:e.rect.height===t.rect.height&&e.rect.width===t.rect.width&&e.rect.top===t.rect.top&&e.rect.bottom===t.rect.bottom&&e.rect.left===t.rect.left&&e.rect.right===t.rect.right&&e.contentOffset.top===t.contentOffset.top&&e.contentOffset.bottom===t.contentOffset.bottom&&e.contentOffset.left===t.contentOffset.left&&e.contentOffset.right===t.contentOffset.right}function ib(e,t){const{root:r,check:n,pollMs:o=0}=t||{},i=te.useCallback(()=>{const l=(r??document).querySelector?.(e)??null;if(!(n?n(l):!!l)||!l)return tb;const p=l.getBoundingClientRect(),g=rb(p),S=nb(p,g);return{present:!0,rect:{height:p.height,width:p.width,top:p.top,bottom:p.bottom,left:p.left,right:p.right},position:g,contentOffset:S}},[r,e,n]),[a,s]=te.useState(()=>i());return te.useEffect(()=>{let c=null;const l=()=>{c!=null&&cancelAnimationFrame(c),c=requestAnimationFrame(()=>{const S=i();s(y=>ob(y,S)?y:S)})},u=r??document.documentElement,p=new MutationObserver(l);p.observe(u,{childList:!0,subtree:!0,attributes:!0}),l(),window.addEventListener("load",l),window.addEventListener("resize",l);let g=null;return o&&o>0&&(g=window.setInterval(l,o)),()=>{p.disconnect(),c!=null&&cancelAnimationFrame(c),g!=null&&clearInterval(g),window.removeEventListener("load",l),window.removeEventListener("resize",l)}},[i,r,o]),a}const rf=e=>{const{selector:t,validateIframe:r=!0,pollMs:n=1e3,manualOffset:o}=e||{},i=t!=null&&t!=="",a=te.useCallback(c=>c?r&&c.tagName.toLowerCase()==="iframe"?!!c.contentWindow:!0:!1,[r]),s=ib(i?t:"__disabled__",i?{check:a,pollMs:n}:{pollMs:0});if(!i)return{present:!1,height:0,width:0,position:null,contentOffset:{top:0,bottom:0,left:0,right:0},isManualOffset:!1};if(!s.present)return{present:!1,height:0,width:0,position:null,contentOffset:{top:0,bottom:0,left:0,right:0},isManualOffset:!1};if(o){const c={top:0,bottom:0,left:0,right:0};return c[o.position]=o.pixels,{present:!0,height:o.position==="top"||o.position==="bottom"?o.pixels:0,width:o.position==="left"||o.position==="right"?o.pixels:0,position:o.position,contentOffset:c,isManualOffset:!0}}return{present:s.present,height:s.rect?.height??0,width:s.rect?.width??0,position:s.position,contentOffset:s.contentOffset,isManualOffset:!1}},fl=Jt(x.IconButton,{shouldForwardProp:e=>e!=="index"})(({theme:e,index:t=0})=>({color:e.palette.text.secondary,position:"absolute",right:12+t*40,top:12,backgroundColor:"rgba(0, 0, 0, 0.04)","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.16)"}})),ab=({open:e,onClose:t,onOpen:r,config:n,onAuthSuccess:o,onAuthError:i,debugHtml:a})=>{const[s,c]=te.useState("idle"),[l,u]=te.useState(null),[p,g]=te.useState(null),[S,y]=te.useState(null),[h,b]=te.useState(null),[v,k]=te.useState([]),[P,O]=te.useState(null),[d,E]=te.useState(!1),[T,R]=te.useState(null),[N,W]=te.useState(null),[B,m]=te.useState("direct"),[$,I]=te.useState(""),[q,J]=te.useState(null),[fe,Ce]=te.useState(null),[ft,z]=te.useState(!1),[H,le]=te.useState("browser"),[Z,ae]=te.useState(!1),[ne,de]=te.useState(!1),[Q,me]=te.useState(0),[we,pe]=te.useState(()=>typeof window>"u"?!0:lt("dqm_quality_breakdown_expanded")!=="false"),[Oe,D]=te.useState(new Set),[We,Je]=te.useState({}),[qe,Zt]=te.useState(0),[kt,Pt]=te.useState(0),[er,tr]=te.useState(0),[rr,an]=te.useState(!0),sn=te.useRef(null),gr=te.useRef(!1),yr=te.useRef("browser"),It=rf(n?.overlayConfig),nr=n?.disableLogout===!0;te.useEffect(()=>{new URLSearchParams(window?.location?.search).get("dqm")==="true"&&r()},[window?.location?.search]),te.useEffect(()=>{(()=>{if(n?.disabled===!0){E(!1),O("DQM is disabled. Permission denied."),c("idle");return}if(n?.apiKey&&n?.websiteId){R({apiKey:n.apiKey,websiteId:n.websiteId}),m("direct"),W(null),E(!0);return}if(typeof window<"u"&&n?.useLocalStorage!==!1){if(lt("dqm_sessionType")==="backend"){const ce=lt("dqm_sessionToken");if(ce){W(ce),m("backend"),R({apiKey:"BACKEND_SESSION",websiteId:"BACKEND_SESSION"}),E(!0);return}}const Y=lt("dqm_apiKey"),oe=lt("dqm_websiteID");if(Y&&oe){R({apiKey:Y,websiteId:oe}),m("direct"),W(null),E(!0);return}}if(n?.authBackendUrl||n?.oauth2Config){E(!1),c("idle");return}E(!1),O("DQM is not configured. Please provide API credentials via props, localStorage, or configure an authentication backend."),c("idle")})()},[n]),te.useEffect(()=>{d&&T&&s==="idle"&&Lt()},[d,T]);const jr=te.useCallback(F=>{R({apiKey:F.apiKey,websiteId:F.websiteId}),W(F.sessionToken||null),m(F.sessionType),E(!0),O(null),o&&o(F)},[o]),zr=te.useCallback(F=>{console.error("[DQM] Authentication error:",F),O(F.message),E(!1),i&&i(F)},[i]),cn=te.useCallback(()=>{R(null),W(null),m("direct"),E(!1),typeof window<"u"&&n?.useLocalStorage!==!1&&(Xo("dqm_apiKey"),Xo("dqm_websiteID"),Xo("dqm_sessionToken"),Xo("dqm_sessionType")),c("idle"),u(null),g(null),y(null),h&&(clearInterval(h),b(null))},[n?.useLocalStorage,h]),kr=te.useCallback(F=>{if(qe===0)return;let j=(er||kt)-1;F==="next"?j=(j+1)%qe:(j=j-1,j<0&&(j=qe-1)),Pt(j+1),tr(0),me((Y=>Y+1))},[kt,er,qe]);te.useEffect(()=>{Z||(Zt(0),Pt(0),gr.current=!1)},[Z]),te.useEffect(()=>{qe>0&&kt===0&&Pt(1)},[qe,kt]),te.useEffect(()=>{try{window.parent?.postMessage({type:"DQM_DRAWER_STATE",payload:{open:e}},"*")}catch{}},[e]);const or=te.useCallback(F=>{console.error("[DQM] API authentication error:",F),E(!1),O("Authentication required. Please refresh the page.")},[]),ir=F=>{const Y=new DOMParser().parseFromString(F,"text/html");[".MuiDrawer-root","#dqm-widget-host",'[data-block-handle="dqm_quality_analysis"]',"#dqm-quality-analysis-script","#PBarNextFrameWrapper"].forEach(he=>{try{Y.querySelectorAll(he).forEach(Ee=>Ee.remove())}catch(Ae){console.warn("[DQM] Could not process selector:",he,Ae.message)}});const ce=Y.documentElement.outerHTML,ue=F.length,Se=ce.length;return((ue-Se)/ue*100).toFixed(1),Se>1024*1024&&console.warn(`[DQM] Optimized HTML still large: ${(Se/1024/1024).toFixed(1)}MB`),ce},xt=te.useCallback(()=>B==="backend"&&n?.authBackendUrl?n.authBackendUrl:"https://api.crownpeak.net/dqm-cms/v1",[B,n?.authBackendUrl]),it=te.useCallback(()=>{const F={"Content-Type":"application/json"};if(B==="backend"){const j=N||lt("dqm_sessionToken");j&&(F.Authorization=`Bearer ${j}`)}else{const j=T?.apiKey||lt("dqm_apiKey");j&&(F["x-api-key"]=j)}return F},[B,N,T]),Xe=F=>{if(!/^[\x00-\x7F]*$/.test(F))throw new Error("API key contains non-ASCII characters and cannot be used in HTTP headers")},$t=async()=>{if(!l){console.error("[DQM] No analysis data available");return}de(!0);try{const F=xt(),j=it();let Y;if(B==="backend")Y=`${F}/dqm/assets/${l.assetId}/pagehighlight/all`;else{const ce=T?.apiKey||lt("dqm_apiKey");if(!ce)throw new Error("DQM API key not found");try{Xe(ce)}catch(Se){throw new Error(`Invalid API key: ${Se instanceof Error?Se.message:"encoding error"}`)}const ue=encodeURIComponent(ce);Y=`${F}/assets/${l.assetId}/pagehighlight/all?apiKey=${ue}`}const oe=await Fe.get(Y,{headers:j,timeout:3e4,responseType:"text"});if(oe.data){const ce=oe.data,ue=window.open("","_blank");if(ue){const Ae=new DOMParser().parseFromString(ce,"text/html").documentElement;Ae.getElementsByTagName("body")[0].style.overflow="auto",ue.document.open(),ue.document.write(Ae.outerHTML),ue.document.close(),setTimeout(()=>{const Ee=ue.document.createElement("style");Ee.textContent=`
98
98
  [data-dqm-id] {
99
99
  animation: pulse 1.5s ease-in-out infinite;
100
100
  }
@@ -109,5 +109,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
109
109
  border-color: #ff6666;
110
110
  }
111
111
  }
112
- `,le.document.head.appendChild(he)},100)}}else console.warn("[DQM] No content in response"),alert("Failed to load page with all errors. Please try again.")}catch(j){console.error("[DQM] Failed to fetch page with all errors:",j),alert("Failed to load page with all errors. Please try again.")}finally{de(!1)}},Je=async(j,B=0)=>{try{const le=St(),ge=gt();let Se;if(F==="backend")Se=`${le}/dqm/assets/${j}/status`;else{const at=x?.apiKey||it("dqm_apiKey");if(!at)throw new Error("DQM API key not available for polling");try{xt(at)}catch(Xt){throw new Error(`Invalid API key: ${Xt instanceof Error?Xt.message:"encoding error"}`)}const Nt=encodeURIComponent(at);Se=`${le}/assets/${j}/status?apiKey=${Nt}`}const he=(await Be.get(Se,{headers:ge,timeout:1e4})).data,nt=he.checkpoints&&Array.isArray(he.checkpoints);if(nt&&he.totalCheckpoints!==void 0&&he.checkpoints.length===he.totalCheckpoints)h&&(clearInterval(h),b(null)),f({assetId:he.assetId||he.id,created:he.created,siteName:he.siteName,totalCheckpoints:he.totalCheckpoints,totalErrors:he.totalErrors,checkpoints:he.checkpoints||[]}),O(Object.entries(kr(he.checkpoints||[]))),c("completed"),g(null);else if(he.status==="failed"||he.status==="error")h&&(clearInterval(h),b(null)),y(he.error||he.message||"Analysis failed with unknown error"),O([]),c("error"),g(null);else{const at=nt?he.checkpoints.length:0,Nt=he.totalCheckpoints||"?";p&&y(null)}}catch(le){if(console.error("[DQM] Polling failed:",le),Be.isAxiosError(le)&&le.response?.status===401){Ur(le);return}if(B<30){const ge=Math.min(2e3*Math.pow(1.5,B),1e4);setTimeout(()=>Je(j,B+1),ge)}else h&&(clearInterval(h),b(null)),y("Analysis polling failed after maximum attempts"),O([]),c("error"),g(null)}},Bt=j=>{h&&clearInterval(h),Je(j);const B=setInterval(()=>{T?Je(j):(clearInterval(B),b(null))},3e3);b(B)},Rr=()=>{h&&(clearInterval(h),b(null)),g(null)};te.useEffect(()=>()=>{Rr()},[]),te.useEffect(()=>{e&&Ft()},[e]);const Ft=async()=>{c("analyzing"),y(null),k(null),f(null);try{if(F==="backend"){if(!(N||it("dqm_sessionToken"))){c("idle"),console.warn("[DQM] Cannot start analysis: No session token available");return}}else{const je=x?.apiKey||it("dqm_apiKey"),he=x?.websiteId||it("dqm_websiteID");if(!je||!he){c("idle"),console.warn("[DQM] Cannot start analysis: No credentials available");return}try{xt(je)}catch(nt){throw new Error(`Invalid API key: ${nt instanceof Error?nt.message:"encoding error"}`)}}let j;a?(console.warn("[DQM] DEBUG MODE: Using custom HTML from debugHtml prop"),j=a):j=document.documentElement.outerHTML;const B=jr(j),Y=St(),ie=gt();let ue,le;if(F==="backend")ue=`${Y}/dqm/assets`,le={html:B,url:window.location.href};else{const je=x?.apiKey||it("dqm_apiKey"),he=x?.websiteId||it("dqm_websiteID"),nt=encodeURIComponent(je);ue=`${Y}/assets?apiKey=${nt}`,le={websiteId:he,content:B,contentType:"text/html; charset=UTF-8",title:document.title,timestamp:new Date().toISOString()},ie["Content-Type"]="application/x-www-form-urlencoded"}const ge=await Be.post(ue,le,{headers:ie,timeout:3e4}),Se=ge.data?.assetId||ge.data?.id;if(Se)g(Se),Bt(Se);else throw new Error("No Asset ID returned from API")}catch(j){if(console.error("[DQM] Analysis failed:",j),Be.isAxiosError(j)&&j.response?.status===401){Ur(j),c("error");return}let B="Unknown error occurred";Be.isAxiosError(j)?B=j.response?.data?.message||j.message||"API request failed":j instanceof Error&&(B=j.message),y(B),O([]),c("error"),Rr()}},gr=j=>!j.totalCheckpoints||j.totalCheckpoints===0?0:Math.round((j.totalCheckpoints-j.totalErrors)/j.totalCheckpoints*100),kr=j=>{const B=j.reduce((Y,ie)=>(Y[ie.category]||(Y[ie.category]=[]),Y[ie.category].push(ie),Y),{});return Object.entries(B).forEach(([Y,ie])=>{ie.forEach(ue=>{ue.colors=Ky(Y,Object.keys(B))})}),B},zr=async(j,B,Y="browser")=>{I(""),z(!0),Z(B),ce(Y),ae(!0),Ke(ue=>({...ue,[B]:{browser:"",source:""}})),mr.current=Y;const ie=l?.checkpoints.find(ue=>ue.id===B)||null;Ce(ie);try{const ue=St(),le=gt();let ge,Se;if(F==="backend")ge=`${ue}/dqm/assets/${j}/pagehighlight/${B}?highlightSource=false`,Se=`${ue}/dqm/assets/${j}/pagehighlight/${B}?highlightSource=true`;else{const at=x?.apiKey||it("dqm_apiKey");if(!at)throw new Error("DQM API key not found");try{xt(at)}catch(Xt){throw new Error(`Invalid API key: ${Xt instanceof Error?Xt.message:"encoding error"}`)}const Nt=encodeURIComponent(at);ge=`${ue}/assets/${j}/errors/${B}?apiKey=${Nt}&highlightSource=false`,Se=`${ue}/assets/${j}/errors/${B}?apiKey=${Nt}&highlightSource=true`}const je=ie?.canHighlight.page&&await Be.get(ge,{headers:le,timeout:15e3,responseType:"text"})||void 0,he=ie?.canHighlight.source&&await Be.get(Se,{headers:le,timeout:15e3,responseType:"text"})||void 0,nt=je?.data||"<p>No highlighted content available.</p>",Hr=he?.data||"<p>No source content available for this checkpoint.</p>";Ke(at=>({...at,[B]:{browser:nt,source:Hr}})),Y==="browser"&&ie?.canHighlight?.page&&l?cn(l.assetId,ie.id):Y==="source"&&ie?.canHighlight?.source&&l&&Kt(l.assetId,ie.id)}catch(ue){console.error("[DQM] Failed to fetch highlighted content:",ue),I('<p style="color: #dc3545;">Failed to load highlighted content. Please try again.</p>')}finally{z(!1)}},Kt=async(j,B)=>{const Y=We[B];if(Y&&Y.source){I(Y.source);return}console.warn("[DQM] Source view not in cache for checkpoint:",B,", fetching..."),z(!0);try{const ie=St(),ue=gt();let le;if(F==="backend")le=`${ie}/dqm/assets/${j}/pagehighlight/${B}?highlightSource=true`;else{const Se=x?.apiKey||it("dqm_apiKey");if(!Se)throw new Error("DQM API key not found");try{xt(Se)}catch(he){throw new Error(`Invalid API key: ${he instanceof Error?he.message:"encoding error"}`)}const je=encodeURIComponent(Se);le=`${ie}/assets/${j}/errors/${B}?apiKey=${je}&highlightSource=true`}const ge=await Be.get(le,{headers:ue,timeout:15e3,responseType:"text"});if(ge.data){const Se=ge.data;I(Se),Ke(je=>({...je,[B]:{...je[B],source:Se}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(ie){console.error("[DQM] Failed to fetch source view:",ie),I('<p style="color: #dc3545;">Failed to load source view. Please try again.</p>')}finally{z(!1)}},cn=async(j,B)=>{const Y=We[B];if(Y&&Y.browser){I(Y.browser);return}console.warn("[DQM] Browser view not in cache for checkpoint:",B,", fetching..."),z(!0);try{const ie=St(),ue=gt();let le;if(F==="backend")le=`${ie}/dqm/assets/${j}/pagehighlight/${B}?highlightSource=false`;else{const Se=x?.apiKey||it("dqm_apiKey");if(!Se)throw new Error("DQM API key not found");try{xt(Se)}catch(he){throw new Error(`Invalid API key: ${he instanceof Error?he.message:"encoding error"}`)}const je=encodeURIComponent(Se);le=`${ie}/assets/${j}/errors/${B}?apiKey=${je}&highlightSource=false`}const ge=await Be.get(le,{headers:ue,timeout:15e3,responseType:"text"});if(ge.data){const Se=ge.data;I(Se),Ke(je=>({...je,[B]:{...je[B],browser:Se}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(ie){console.error("[DQM] Failed to restore browser view:",ie),I('<p style="color: #dc3545;">Failed to load browser view. Please try again.</p>')}finally{z(!1)}};return K(S.ThemeProvider,{theme:S.createTheme({palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#f50057"},background:{default:"#fafafa"}},typography:{fontFamily:'Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif',htmlFontSize:18,fontSize:18,h6:{fontSize:"22px"},h5:{fontSize:"24px"},h4:{fontSize:"26px"},h3:{fontSize:"28px"},h2:{fontSize:"30px"},h1:{fontSize:"32px"},subtitle2:{fontSize:"19px"},subtitle1:{fontSize:"18px"},body1:{fontSize:"18px"},body2:{fontSize:"17px"},button:{fontSize:"17px"}},shape:{borderRadius:8},components:{MuiDialog:{styleOverrides:{root:{zIndex:999999}}},MuiPopper:{defaultProps:{disablePortal:!0}},MuiFab:{styleOverrides:{root:{zIndex:999999}}},MuiBackdrop:{styleOverrides:{root:{zIndex:999998}}}}}),children:[C(S.CssBaseline,{}),C(S.Tooltip,{title:"DQM Quality Analysis",placement:"left",children:C(tg,{onClick:()=>e?t():r(),"aria-label":"DQM Quality Analysis",style:{opacity:e?0:1,position:"fixed",zIndex:1400,transform:e?"translateX(80px)":"none",transition:"opacity 0.15s ease-in-out, transform 0.25s ease-in-out",pointerEvents:e?"none":"auto"},children:C(pt.TaskAlt,{sx:{fontSize:22}})})}),C(rg,{anchor:"right",open:e,onClose:t,variant:"temporary",elevation:16,ModalProps:{keepMounted:!1,disablePortal:!1,disableScrollLock:!1,hideBackdrop:!1},children:d?K(eo,{children:[C(ng,{children:K(S.Box,{display:"flex",alignItems:"center",gap:1.5,justifyContent:"space-between",width:"100%",children:[K(S.Typography,{variant:"h6",component:"h1",fontWeight:700,color:"white",flexDirection:"row",alignItems:"center",display:"flex",gap:"0.5rem",children:[K("svg",{style:{width:"auto",height:"50px",marginRight:"0.5rem"},id:"DQM_Logo","aria-label":"Crownpeak Digial Quality & Accessibilit Analysis","data-name":"Layer 1",xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 500 500",children:[C("path",{d:"M18.84,250c0-4.39,1.18-8.74,3.39-12.55L125.16,60.82c4.51-7.75,12.92-12.54,21.92-12.54h205.84c9.03,0,17.41,4.79,21.92,12.54l102.92,176.63c2.21,3.8,3.39,8.16,3.39,12.55,0,4.39-1.18,8.74-3.39,12.54l-102.92,176.64c-4.51,7.75-12.92,12.55-21.92,12.55h-205.84c-9.03,0-17.41-4.8-21.92-12.55L22.24,262.55c-2.21-3.8-3.39-8.16-3.39-12.54ZM12.5,250c0,5.41,1.42,10.82,4.25,15.67l102.92,176.64c5.67,9.71,16.11,15.67,27.41,15.67h205.84c11.3,0,21.75-5.96,27.41-15.67l102.92-176.64c2.83-4.85,4.25-10.26,4.25-15.67,0-5.41-1.42-10.82-4.25-15.68l-102.92-176.64c-5.67-9.71-16.11-15.67-27.41-15.67h-205.84c-11.3,0-21.75,5.96-27.41,15.67L16.75,234.33c-2.83,4.85-4.25,10.27-4.25,15.68Z",style:{fill:"#711bc1",stroke:"#711bc1",strokeMiterlimit:10,strokeWidth:3}}),C("path",{d:"M41.06,250c0-3.97,1.07-7.9,3.07-11.34l93.03-159.66c4.08-7.01,11.68-11.34,19.82-11.34h186.06c8.16,0,15.74,4.33,19.82,11.34l93.03,159.66c2,3.44,3.07,7.37,3.07,11.34s-1.07,7.9-3.07,11.34l-93.03,159.66c-4.08,7.01-11.68,11.34-19.82,11.34h-186.06c-8.16,0-15.74-4.34-19.82-11.34l-93.03-159.66c-2-3.44-3.07-7.37-3.07-11.34Z",style:{fill:"#711bc1",strokeWidth:0}}),K("g",{children:[C("path",{d:"M347.45,204.4c-2.14-9.18-8.83-8.76-16.53-7.36-20.65,3.73-41.32,7.7-62.16,9.94-4.02.43-10.73,1.04-19.22,1.09,0,.02,0,.04,0,.06-6.08-.08-12.18-.41-18.31-1.07-20.84-2.25-41.51-6.21-62.16-9.94-7.7-1.39-14.39-1.81-16.53,7.36-2,8.6,4.3,11.78,10.98,13.76,7.09,2.11,14.26,4.15,21.54,5.35,17.54,2.88,35.17,5.25,52.85,7.83-4.75,38.47-13.41,74.69-39.48,104.67-2.52,2.9-1.87,11.59.69,15.16,4.35,6.07,10.07,2.47,14.89-1.86,18.01-16.16,28.26-36.83,35.98-62.51,0-.06,0-.12,0-.19,0,.04,0,.07,0,.11,7.71,25.67,17.97,46.35,35.98,62.51,4.82,4.33,10.54,7.93,14.89,1.86,2.57-3.57,3.21-12.27.69-15.16-26.07-29.98-34.72-66.2-39.48-104.67,17.68-2.59,35.31-4.95,52.85-7.83,7.28-1.2,14.45-3.24,21.54-5.35,6.68-1.99,12.98-5.16,10.98-13.76Z",style:{fill:"#fff",strokeWidth:0}}),C("circle",{cx:"250",cy:"171.61",r:"26.08",style:{fill:"#fff",strokeWidth:0}})]})]}),"Crownpeak Digital Quality and Accessibility"]}),K(S.Box,{display:"flex",gap:1,children:[C(S.Tooltip,{title:"Logout",children:C(S.IconButton,{onClick:sn,sx:{color:"white","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},"aria-label":"Logout",children:C(pt.Logout,{})})}),C(S.IconButton,{onClick:t,sx:{color:"white","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},"aria-label":"Close sidebar",children:C(pt.Close,{})})]})]})}),C(og,{children:K(rs,{children:[s==="idle"&&d&&K(S.Box,{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",children:[C(S.Typography,{variant:"h5",fontWeight:600,gutterBottom:!0,color:"text.secondary",textAlign:"center",children:"Ready to Analyze"}),C(S.Typography,{variant:"body1",color:"text.secondary",textAlign:"center",sx:{maxWidth:400,mb:3},children:'Click "Run Quality Check" to analyze the current page for accessibility and quality issues.'}),C(S.Box,{component:"svg",sx:{width:"120px",height:"120px",opacity:.3},viewBox:"0 0 24 24",children:C("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z"})})]}),s==="analyzing"&&C(ag,{expanded:Ee}),s==="error"&&P&&C(S.Box,{p:2,children:K(S.Alert,{severity:P.includes("Permission denied")?"warning":"error",children:[C(S.Typography,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:P.includes("Permission denied")?"Access Denied":P.includes("not configured")?"Configuration Required":"Authentication Error"}),C(S.Typography,{variant:"body2",color:"text.secondary",children:P})]})}),s==="error"&&!P&&C(S.Box,{p:2,children:K(S.Alert,{severity:"error",action:C(S.Button,{color:"inherit",size:"small",onClick:Ft,startIcon:C(pt.Refresh,{}),sx:{textTransform:"none",fontWeight:"bolder",fontSize:"1rem"},children:"Retry"}),children:[C(S.Typography,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:"Analysis Failed"}),C(S.Typography,{variant:"body2",color:"text.secondary",children:p})]})}),s==="completed"&&l&&K(S.Box,{pb:0,children:[K(pu,{children:[C(S.Typography,{variant:"h6",fontWeight:700,gutterBottom:!0,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:"Overall Quality"}),K(S.Box,{display:"flex",alignItems:"center",justifyContent:"flex-start ",columnGap:"60px",pt:2,children:[K(S.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,children:[C(Xy,{value:gr(l)}),K(S.Box,{children:[C(S.Box,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,mb:1,flexDirection:"column",children:K(S.Typography,{color:"text.primary",fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:["Passed",C("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#28a745"},children:l.totalCheckpoints-l.totalErrors})]})}),C("hr",{style:{width:"100%",border:"1px solid #e0e0e0",margin:"10px 0px 10px 0px"}}),C(S.Box,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,children:K(S.Typography,{fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:[C("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#dc3545"},children:l.totalErrors}),"Failed"]})})]})]}),C(S.Box,{display:"flex",justifyContent:"center",mt:3,children:K(S.Button,{variant:"outlined",size:"large",onClick:Tt,disabled:ne,sx:{borderRadius:2,py:1,mb:3,fontSize:"17px",textTransform:"none"},children:[ne?C(vn,{size:24,sx:{mr:1}}):null,"Show Page with all Errors"]})})]})]}),K(S.Accordion,{expanded:Ee,onChange:()=>{pe(!Ee),localStorage.setItem("dqm_quality_breakdown_expanded",(!Ee).toString())},sx:{borderRadius:"10px !important",marginBottom:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"},overflowX:"visible"},children:[K(S.AccordionSummary,{expandIcon:C(pt.ExpandMore,{}),sx:{paddingX:3,"& .MuiAccordionSummary-content":{alignItems:"center",overflow:"scroll",justifyContent:"flex-start",paddingY:2,marginRight:3}},children:[C(S.Typography,{variant:"h6",fontWeight:700,sx:{flexShrink:0},children:"Quality Breakdown"}),C(S.Box,{display:"flex",justifyContent:"center",gap:1,mx:2,px:2.5,sx:{".MuiAccordionSummary-root:not(.Mui-expanded) &":{opacity:1,width:v.length*48,transition:"opacity 0.3s ease 300ms, width 0s ease 0s"},".MuiAccordionSummary-root.Mui-expanded &":{opacity:0,width:0,pointerEvents:"none",transition:"opacity 300ms ease 50ms, width 1250ms ease 200ms"}},children:Uo(v,[([j,B])=>B.filter(Y=>Y.failed).length/B.length]).reverse().map(([j,B])=>{const Y=B.filter(ge=>ge.failed).length,ie=B.length-Y,ue=B[0]?.colors.bg,le=Math.round(ie/B.length*100);return C(S.Tooltip,{title:K(S.Box,{sx:{p:.5},display:"flex",flexDirection:"column",alignItems:"center",children:[C(S.Typography,{variant:"body2",fontWeight:600,sx:{mb:.5},children:j}),K(S.Typography,{variant:"caption",display:"block",children:[le,"% passed"]}),C(S.Typography,{variant:"caption",display:"block",children:Y===0?"All Passed":`${ie} of ${B.length} passed`})]}),placement:"top",arrow:!0,children:C(vn,{variant:"determinate",enableTrackSlot:!0,value:le,size:40,thickness:4,sx:{color:ue,top:0,left:0}})},j)})})]}),C(S.AccordionDetails,{sx:{padding:3,paddingTop:0},children:C(hu,{children:C(S.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1,children:Uo(v,[([j,B])=>B.filter(Y=>Y.failed).length/B.length]).reverse().map(([j,B])=>{const Y=B.filter(le=>le.failed).length,ie=B.length-Y,ue=B[0]?.colors.bg;return K(S.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:1,width:"200px",children:[K(S.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(vn,{enableTrackSlot:!0,variant:"determinate",value:ie/B.length*100,size:"100px",thickness:4,sx:{color:ue,"& .MuiCircularProgress-circleNegative":{stroke:"#e0e0e0"}}}),K(S.Typography,{variant:"h6",component:"div",color:ue,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontWeight:700},children:[Math.round(ie/B.length*100),"%"]})]}),K(S.Typography,{component:"div",fontWeight:"bold",color:"gray",sx:{fontSize:"1rem",textAlign:"center",fontWeight:600},children:[j,C(S.Typography,{component:"div",fontWeight:"bold",color:"gray",pb:4,sx:{fontSize:"0.75rem",textAlign:"center",fontWeight:600},children:C(S.Typography,{component:"span",fontWeight:400,color:Y>0?"#dc3545":"#28a745",children:Y===0?"All Passed":`${ie} of ${B.length} Passed`})})]})]},j)})})})})]}),l.checkpoints.some(j=>j.failed)&&K(eo,{children:[K(S.Typography,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:["Failed Checkpoints (",l.checkpoints.filter(j=>j.failed).length,")"]}),C(S.Box,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:K(S.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[K(S.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[K(S.Typography,{variant:"body2",color:"text.secondary",fontWeight:600,children:["Filter by Category · Showing ",Re.size>0?Re.size:"all"," of ",Object.keys(v).length," categories"]}),C(S.Button,{size:"small",onClick:()=>D(new Set),sx:{textTransform:"none",fontWeight:600,opacity:Re.size===0?0:1,transition:"opacity 0.2s ease-in-out"},children:"Show All"})]}),C(S.Box,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowX:"scroll",pb:2.5,pt:1},children:Uo(v,[([j,B])=>B.filter(Y=>Y.failed).length/B.length]).filter(([,j])=>j.some(B=>B.failed)).reverse().map(([j,B])=>{const Y=B.filter(ge=>ge.failed).length,{bg:ie,text:ue}=B[0]?.colors||{},le=Re.has(j);return C(S.Chip,{label:`${j} (${Y})`,onClick:()=>{D(ge=>{const Se=new Set(ge);return Se.has(j)?Se.delete(j):Se.add(j),Se})},sx:{backgroundColor:le?ie:"transparent",color:le?ue:Re.size===0?ie:"#555555",border:`2px solid ${le||Re.size===0?ie:"#B1B1B1"}`,fontWeight:600,fontSize:"0.875rem",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:ie,color:ue,transform:"translateY(-2px)",boxShadow:`0 4px 8px ${ie}40`,border:`2px solid ${ie}`}}},j)})})]})}),C(S.Box,{sx:{minHeight:"calc(100vh - 320px)"},children:C(mu,{children:C(S.List,{sx:{p:0},children:Uo(v,[([j,B])=>B.filter(Y=>Y.failed).length/B.length]).reverse().filter(([j,B])=>Re.size===0?B.some(Y=>Y.failed):Re.has(j)&&B.some(Y=>Y.failed)).map(([j,B])=>C(eo,{children:B.filter(({failed:Y})=>Y).map(Y=>{const{bg:ie}=Y.colors;return C(S.ListItem,{sx:{px:0,py:1.5,alignItems:"flex-start"},children:K(S.Box,{mt:.5,children:[C(S.Typography,{variant:"h5",component:"div",fontWeight:600,mb:1.5,children:Y.name}),K(S.Box,{display:"flex",gap:1,flexWrap:"wrap",mb:2,children:[Y?.canHighlight.page&&C(S.Button,{variant:"outlined",size:"small",startIcon:C(pt.Visibility,{}),onClick:()=>{Z(Y.id),zr(l.assetId,Y.id,"browser")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View in Browser"}),Y?.canHighlight.source&&C(S.Button,{variant:"outlined",size:"small",startIcon:C(pt.Visibility,{}),onClick:()=>{Z(Y.id),zr(l.assetId,Y.id,"source")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View Source"}),C(S.Typography,{variant:"body2",color:ie,mr:2,ml:Y?.canHighlight.source||Y?.canHighlight.page?1:0,sx:{fontSize:"0.875rem",alignSelf:"center"},children:Y.category}),Y.topics?.map(ue=>C(S.Typography,{variant:"body2",color:"text.secondary",mr:2,sx:{fontSize:"0.875rem",alignSelf:"center"},children:ue},ue))]}),C(Xc,{html:Y.description||""})]})},Y.id)})}))})})})]})]})]})}),C(ig,{children:C(S.Button,{onClick:Ft,variant:"contained",size:"large",fullWidth:!0,disabled:s==="analyzing"||!d||!!P,sx:{borderRadius:2,py:1,fontWeight:600,textTransform:"none",background:"linear-gradient(156deg, #b604d4 0%, #e38ef2 100%)","&:hover":{background:"linear-gradient(156deg, #9800b1 0%, #d091db 100%)"},fontSize:"17px",transition:"background 0.3s ease","&:disabled":{background:"#e0e0e0",color:"#9e9e9e"}},children:s==="analyzing"?"Analyzing...":"Run Quality Check"})}),K(S.Dialog,{open:J,onClose:()=>ae(!1),maxWidth:"xl",fullWidth:!0,PaperProps:{style:{borderRadius:12,padding:24,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.2)"}},children:[K(S.DialogTitle,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 24px",borderBottom:"1px solid #e0e0e0"},children:[C(S.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:"Highlighted Errors"}),C(S.IconButton,{onClick:()=>ae(!1),sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Close",children:C(pt.Close,{})})]}),C(S.DialogContent,{dividers:!0,sx:{padding:"16px 24px",borderBottom:"none"},children:K(S.Box,{flexDirection:"row",display:"flex",gap:2,children:[fe&&K(S.Box,{width:"20%",sx:{maxHeight:"calc(100vh - 300px)",height:"calc(100vh - 300px)",overflowY:"auto"},children:[C(S.Typography,{variant:"h6",component:"div",fontWeight:600,mb:2,children:fe.name}),K(S.Box,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[fe.colors&&C(S.Chip,{label:fe.category,size:"medium",sx:{backgroundColor:fe.colors.bg,color:fe.colors.text,fontWeight:600,fontSize:"1rem"}}),fe.topics?.map(j=>C(S.Chip,{label:j,size:"medium",variant:"outlined",sx:{fontSize:"1rem"}},j))]}),C(S.Box,{sx:{fontSize:"0.95rem",lineHeight:1.6},children:C(Xc,{html:fe.description||""})})]}),ut||!$?K(S.Box,{sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,width:"80%"},children:[K(S.Box,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[K(S.Box,{display:"flex",gap:2,alignItems:"center",children:[C(S.Skeleton,{variant:"rectangular",width:130,height:40,sx:{borderRadius:1}}),C(S.Skeleton,{variant:"rectangular",width:120,height:40,sx:{borderRadius:1}})]}),K(S.Box,{display:"flex",gap:1,alignItems:"center",mr:2,children:[C(S.Skeleton,{variant:"rectangular",width:60,height:24,sx:{borderRadius:1}}),C(S.Skeleton,{variant:"circular",width:32,height:32}),C(S.Skeleton,{variant:"circular",width:32,height:32}),C(S.Skeleton,{variant:"circular",width:32,height:32}),C(S.Skeleton,{variant:"circular",width:32,height:32})]})]}),C(S.Box,{sx:{minHeight:400},children:C(S.Box,{display:"flex",alignItems:"center",justifyContent:"center",height:400,children:K(S.Box,{textAlign:"center",children:[C(vn,{size:48,sx:{color:"#c653ff",mb:2}}),C(S.Typography,{variant:"body2",color:"text.secondary",children:"Loading both views..."})]})})})]}):K(S.Box,{ref:an,sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,height:"calc(100vh - 300px)",maxHeight:"calc(100vh - 300px)",overflow:"auto",width:fe?"80%":"100%"},children:[K(S.Box,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[K(S.Tabs,{value:H,onChange:(j,B)=>{ce(B),B==="browser"&&fe?.canHighlight?.page&&l?cn(l.assetId,fe.id):B==="source"&&fe?.canHighlight?.source&&l&&Kt(l.assetId,fe.id)},sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:600,fontSize:"0.95rem"}},children:[C(S.Tab,{label:"Browser View",value:"browser",sx:{display:fe?.canHighlight.page?"inline-flex":"none"}}),C(S.Tab,{label:"Source View",value:"source",sx:{display:fe?.canHighlight.source?"inline-flex":"none"}})]}),K(S.Box,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[qe>0&&K(eo,{children:[K(S.Typography,{variant:"body2",sx:{color:"text.secondary",fontWeight:600,fontSize:"0.875rem",minWidth:"60px",textAlign:"center"},children:[or||Pt||1," of ",qe]}),C(S.IconButton,{size:"small",onClick:()=>Fr("prev"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Previous highlight",children:C(pt.ArrowBack,{fontSize:"small"})}),C(S.IconButton,{size:"small",onClick:()=>Fr("next"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Next highlight",children:C(pt.ArrowForward,{fontSize:"small"})})]}),C(S.IconButton,{size:"small",onClick:()=>zr(l.assetId,q,H),sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Reload highlights",children:C(pt.Replay,{fontSize:"small"})}),C(S.Tooltip,{title:"Open in new tab",placement:"top",children:C(S.IconButton,{size:"small",onClick:()=>{const j=window.open("","_blank");if(j){const ie=new DOMParser().parseFromString($,"text/html").documentElement;ie.getElementsByTagName("body")[0].style.overflow="auto",j.document.open(),j.document.write(ie.outerHTML),j.document.close(),setTimeout(()=>{const ue=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],le=j.document.querySelectorAll(ue.join(", "));if(le.length>0){const ge=le[0];ge.scrollIntoView({behavior:"smooth",block:"center"}),ge.classList.add("animate"),setTimeout(()=>{ge.classList.remove("animate")},800)}else console.warn("[DQM] No highlights found in new tab")},500)}},sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Open in new tab",children:C(pt.OpenInNew,{fontSize:"small"})})}),H==="browser"&&C(S.Tooltip,{title:ar?"Enable JavaScript":"Disable JavaScript",placement:"top",children:C(S.IconButton,{size:"small",onClick:()=>on(!ar),sx:{color:ar?"text.secondary":"primary.main","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":ar?"Enable JavaScript":"Disable JavaScript",children:K("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C("path",{d:"M16 18L22 12L16 6"}),C("path",{d:"M8 6L2 12L8 18"})]})})})]})]}),C(S.Box,{sx:{minHeight:400},children:H==="browser"?C(sg,{html:$,currentHighlight:Pt,clickedIndicator:Q,onHighlightsFound:nr,onVisibleHighlightChange:ir,scriptsDisabled:ar}):C(cg,{html:$,onHighlightsFound:nr,currentHighlight:Pt,shouldAutoScrollToFirst:!hr.current,clickedIndicator:Q,onVisibleHighlightChange:ir,scrollContainerRef:an})})]})]})})]})]}):K(S.Box,{sx:{width:"730px",height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#f5f5f5",overflow:"auto"},children:[n?.oauth2Config&&C(Zy,{config:n,onAuthSuccess:Mt,onAuthError:Yt}),K(S.Box,{sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)",color:"white",py:4,px:3,textAlign:"center",boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:[K("svg",{style:{width:"auto",height:"60px",marginBottom:"1rem"},"aria-label":"Crownpeak Digital Quality & Accessibility Analysis",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",children:[C("path",{d:"M18.84,250c0-4.39,1.18-8.74,3.39-12.55L125.16,60.82c4.51-7.75,12.92-12.54,21.92-12.54h205.84c9.03,0,17.41,4.79,21.92,12.54l102.92,176.63c2.21,3.8,3.39,8.16,3.39,12.55,0,4.39-1.18,8.74-3.39,12.54l-102.92,176.64c-4.51,7.75-12.92,12.55-21.92,12.55h-205.84c-9.03,0-17.41-4.8-21.92-12.55L22.24,262.55c-2.21-3.8-3.39-8.16-3.39-12.54ZM12.5,250c0,5.41,1.42,10.82,4.25,15.67l102.92,176.64c5.67,9.71,16.11,15.67,27.41,15.67h205.84c11.3,0,21.75-5.96,27.41-15.67l102.92-176.64c2.83-4.85,4.25-10.26,4.25-15.67,0-5.41-1.42-10.82-4.25-15.68l-102.92-176.64c-5.67-9.71-16.11-15.67-27.41-15.67h-205.84c-11.3,0-21.75,5.96-27.41,15.67L16.75,234.33c-2.83,4.85-4.25,10.27-4.25,15.68Z",style:{fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:3}}),C("path",{d:"M41.06,250c0-3.97,1.07-7.9,3.07-11.34l93.03-159.66c4.08-7.01,11.68-11.34,19.82-11.34h186.06c8.16,0,15.74,4.33,19.82,11.34l93.03,159.66c2,3.44,3.07,7.37,3.07,11.34s-1.07,7.9-3.07,11.34l-93.03,159.66c-4.08,7.01-11.68,11.34-19.82,11.34h-186.06c-8.16,0-15.74-4.34-19.82-11.34l-93.03-159.66c-2-3.44-3.07-7.37-3.07-11.34Z",style:{fill:"#fff",strokeWidth:0}}),K("g",{children:[C("path",{d:"M347.45,204.4c-2.14-9.18-8.83-8.76-16.53-7.36-20.65,3.73-41.32,7.7-62.16,9.94-4.02.43-10.73,1.04-19.22,1.09,0,.02,0,.04,0,.06-6.08-.08-12.18-.41-18.31-1.07-20.84-2.25-41.51-6.21-62.16-9.94-7.7-1.39-14.39-1.81-16.53,7.36-2,8.6,4.3,11.78,10.98,13.76,7.09,2.11,14.26,4.15,21.54,5.35,17.54,2.88,35.17,5.25,52.85,7.83-4.75,38.47-13.41,74.69-39.48,104.67-2.52,2.9-1.87,11.59.69,15.16,4.35,6.07,10.07,2.47,14.89-1.86,18.01-16.16,28.26-36.83,35.98-62.51,0-.06,0-.12,0-.19,0,.04,0,.07,0,.11,7.71,25.67,17.97,46.35,35.98,62.51,4.82,4.33,10.54,7.93,14.89,1.86,2.57-3.57,3.21-12.27.69-15.16-26.07-29.98-34.72-66.2-39.48-104.67,17.68-2.59,35.31-4.95,52.85-7.83,7.28-1.2,14.45-3.24,21.54-5.35,6.68-1.99,12.98-5.16,10.98-13.76Z",style:{fill:"#711bc1",strokeWidth:0}}),C("circle",{cx:"250",cy:"171.61",r:"26.08",style:{fill:"#711bc1",strokeWidth:0}})]})]}),C(S.Typography,{variant:"h4",fontWeight:700,gutterBottom:!0,children:"Crownpeak DQM"}),C(S.Typography,{variant:"subtitle1",children:"Digital Quality & Accessibility Analysis"})]}),C(S.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:3,overflow:"auto"},children:C(Qy,{config:n||{},onAuthSuccess:Mt,onAuthError:Yt,initialError:P})}),C(S.IconButton,{onClick:t,sx:{position:"absolute",top:16,right:16,color:"white",backgroundColor:"rgba(255, 255, 255, 0.1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},"aria-label":"Close",children:C(pt.Close,{})})]})})]})};exports.DQMSidebar=Jy;exports.ErrorBoundary=rs;exports.withErrorBoundary=Zm;
112
+ `,ue.document.head.appendChild(Ee)},100)}}else console.warn("[DQM] No content in response"),alert("Failed to load page with all errors. Please try again.")}catch(F){console.error("[DQM] Failed to fetch page with all errors:",F),alert("Failed to load page with all errors. Please try again.")}finally{de(!1)}},br=async(F,j=0)=>{try{const ue=xt(),Se=it();let he;if(B==="backend")he=`${ue}/dqm/assets/${F}/status`;else{const dt=T?.apiKey||lt("dqm_apiKey");if(!dt)throw new Error("DQM API key not available for polling");try{Xe(dt)}catch(lr){throw new Error(`Invalid API key: ${lr instanceof Error?lr.message:"encoding error"}`)}const Qe=encodeURIComponent(dt);he=`${ue}/assets/${F}/status?apiKey=${Qe}`}const Ee=(await Fe.get(he,{headers:Se,timeout:1e4})).data,ct=Ee.checkpoints&&Array.isArray(Ee.checkpoints);if(ct&&Ee.totalCheckpoints!==void 0&&Ee.checkpoints.length===Ee.totalCheckpoints)h&&(clearInterval(h),b(null)),u({assetId:Ee.assetId||Ee.id,created:Ee.created,siteName:Ee.siteName,totalCheckpoints:Ee.totalCheckpoints,totalErrors:Ee.totalErrors,checkpoints:Ee.checkpoints||[]}),k(Object.entries(sr(Ee.checkpoints||[]))),c("completed"),y(null);else if(Ee.status==="failed"||Ee.status==="error")h&&(clearInterval(h),b(null)),g(Ee.error||Ee.message||"Analysis failed with unknown error"),k([]),c("error"),y(null);else{const dt=ct?Ee.checkpoints.length:0,Qe=Ee.totalCheckpoints||"?";p&&g(null)}}catch(ue){if(console.error("[DQM] Polling failed:",ue),Fe.isAxiosError(ue)&&ue.response?.status===401){or(ue);return}if(j<30){const Se=Math.min(2e3*Math.pow(1.5,j),1e4);setTimeout(()=>br(F,j+1),Se)}else h&&(clearInterval(h),b(null)),g("Analysis polling failed after maximum attempts"),k([]),c("error"),y(null)}},Pr=F=>{h&&clearInterval(h),br(F);const j=setInterval(()=>{S?br(F):(clearInterval(j),b(null))},3e3);b(j)},ar=()=>{h&&(clearInterval(h),b(null)),y(null)};te.useEffect(()=>()=>{ar()},[]),te.useEffect(()=>{e&&Lt()},[e]);const Lt=async()=>{c("analyzing"),g(null),O(null),u(null);try{if(B==="backend"){if(!(N||lt("dqm_sessionToken"))){c("idle"),console.warn("[DQM] Cannot start analysis: No session token available");return}}else{const Ae=T?.apiKey||lt("dqm_apiKey"),Ee=T?.websiteId||lt("dqm_websiteID");if(!Ae||!Ee){c("idle"),console.warn("[DQM] Cannot start analysis: No credentials available");return}try{Xe(Ae)}catch(ct){throw new Error(`Invalid API key: ${ct instanceof Error?ct.message:"encoding error"}`)}}let F;a?(console.warn("[DQM] DEBUG MODE: Using custom HTML from debugHtml prop"),F=a):F=document.documentElement.outerHTML;const j=ir(F),Y=xt(),oe=it();let ce,ue;if(B==="backend")ce=`${Y}/dqm/assets`,ue={html:j,url:window.location.href};else{const Ae=T?.apiKey||lt("dqm_apiKey"),Ee=T?.websiteId||lt("dqm_websiteID"),ct=encodeURIComponent(Ae);ce=`${Y}/assets?apiKey=${ct}`,ue={websiteId:Ee,content:j,contentType:"text/html; charset=UTF-8",title:document.title,timestamp:new Date().toISOString()},oe["Content-Type"]="application/x-www-form-urlencoded"}const Se=await Fe.post(ce,ue,{headers:oe,timeout:3e4}),he=Se.data?.assetId||Se.data?.id;if(he)y(he),Pr(he);else throw new Error("No Asset ID returned from API")}catch(F){if(console.error("[DQM] Analysis failed:",F),Fe.isAxiosError(F)&&F.response?.status===401){or(F),c("error");return}let j="Unknown error occurred";Fe.isAxiosError(F)?j=F.response?.data?.message||F.message||"API request failed":F instanceof Error&&(j=F.message),g(j),k([]),c("error"),ar()}},$n=F=>!F.totalCheckpoints||F.totalCheckpoints===0?0:Math.round((F.totalCheckpoints-F.totalErrors)/F.totalCheckpoints*100),sr=F=>{const j=F.reduce((Y,oe)=>(Y[oe.category]||(Y[oe.category]=[]),Y[oe.category].push(oe),Y),{});return Object.entries(j).forEach(([Y,oe])=>{oe.forEach(ce=>{ce.colors=Q1(Y,Object.keys(j))})}),j},Hr=async(F,j,Y="browser")=>{I(""),z(!0),J(j),le(Y),ae(!0),Je(ce=>({...ce,[j]:{browser:"",source:""}})),yr.current=Y;const oe=l?.checkpoints.find(ce=>ce.id===j)||null;Ce(oe);try{const ce=xt(),ue=it();let Se,he;if(B==="backend")Se=`${ce}/dqm/assets/${F}/pagehighlight/${j}?highlightSource=false`,he=`${ce}/dqm/assets/${F}/pagehighlight/${j}?highlightSource=true`;else{const dt=T?.apiKey||lt("dqm_apiKey");if(!dt)throw new Error("DQM API key not found");try{Xe(dt)}catch(lr){throw new Error(`Invalid API key: ${lr instanceof Error?lr.message:"encoding error"}`)}const Qe=encodeURIComponent(dt);Se=`${ce}/assets/${F}/errors/${j}?apiKey=${Qe}&highlightSource=false`,he=`${ce}/assets/${F}/errors/${j}?apiKey=${Qe}&highlightSource=true`}const Ae=oe?.canHighlight.page&&await Fe.get(Se,{headers:ue,timeout:15e3,responseType:"text"})||void 0,Ee=oe?.canHighlight.source&&await Fe.get(he,{headers:ue,timeout:15e3,responseType:"text"})||void 0,ct=Ae?.data||"<p>No highlighted content available.</p>",cr=Ee?.data||"<p>No source content available for this checkpoint.</p>";Je(dt=>({...dt,[j]:{browser:ct,source:cr}})),Y==="browser"&&oe?.canHighlight?.page&&l?Ve(l.assetId,oe.id):Y==="source"&&oe?.canHighlight?.source&&l&&qr(l.assetId,oe.id)}catch(ce){console.error("[DQM] Failed to fetch highlighted content:",ce),I('<p style="color: #dc3545;">Failed to load highlighted content. Please try again.</p>')}finally{z(!1)}},qr=async(F,j)=>{const Y=We[j];if(Y&&Y.source){I(Y.source);return}console.warn("[DQM] Source view not in cache for checkpoint:",j,", fetching..."),z(!0);try{const oe=xt(),ce=it();let ue;if(B==="backend")ue=`${oe}/dqm/assets/${F}/pagehighlight/${j}?highlightSource=true`;else{const he=T?.apiKey||lt("dqm_apiKey");if(!he)throw new Error("DQM API key not found");try{Xe(he)}catch(Ee){throw new Error(`Invalid API key: ${Ee instanceof Error?Ee.message:"encoding error"}`)}const Ae=encodeURIComponent(he);ue=`${oe}/assets/${F}/errors/${j}?apiKey=${Ae}&highlightSource=true`}const Se=await Fe.get(ue,{headers:ce,timeout:15e3,responseType:"text"});if(Se.data){const he=Se.data;I(he),Je(Ae=>({...Ae,[j]:{...Ae[j],source:he}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(oe){console.error("[DQM] Failed to fetch source view:",oe),I('<p style="color: #dc3545;">Failed to load source view. Please try again.</p>')}finally{z(!1)}},Ve=async(F,j)=>{const Y=We[j];if(Y&&Y.browser){I(Y.browser);return}console.warn("[DQM] Browser view not in cache for checkpoint:",j,", fetching..."),z(!0);try{const oe=xt(),ce=it();let ue;if(B==="backend")ue=`${oe}/dqm/assets/${F}/pagehighlight/${j}?highlightSource=false`;else{const he=T?.apiKey||lt("dqm_apiKey");if(!he)throw new Error("DQM API key not found");try{Xe(he)}catch(Ee){throw new Error(`Invalid API key: ${Ee instanceof Error?Ee.message:"encoding error"}`)}const Ae=encodeURIComponent(he);ue=`${oe}/assets/${F}/errors/${j}?apiKey=${Ae}&highlightSource=false`}const Se=await Fe.get(ue,{headers:ce,timeout:15e3,responseType:"text"});if(Se.data){const he=Se.data;I(he),Je(Ae=>({...Ae,[j]:{...Ae[j],browser:he}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(oe){console.error("[DQM] Failed to restore browser view:",oe),I('<p style="color: #dc3545;">Failed to load browser view. Please try again.</p>')}finally{z(!1)}};return X(x.ThemeProvider,{theme:x.createTheme({palette:{primary:{main:"#1976d2",light:"#42a5f5",dark:"#1565c0"},secondary:{main:"#f50057"},background:{default:"#fafafa"}},typography:{fontFamily:'Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif',htmlFontSize:18,fontSize:18,h6:{fontSize:"22px"},h5:{fontSize:"24px"},h4:{fontSize:"26px"},h3:{fontSize:"28px"},h2:{fontSize:"30px"},h1:{fontSize:"32px"},subtitle2:{fontSize:"19px"},subtitle1:{fontSize:"18px"},body1:{fontSize:"18px"},body2:{fontSize:"17px"},button:{fontSize:"17px"}},shape:{borderRadius:8},components:{MuiDialog:{styleOverrides:{root:{zIndex:999999}},defaultProps:{disablePortal:n?.shadowDomMode??!1}},MuiPopper:{defaultProps:{disablePortal:n?.shadowDomMode??!1}},MuiTooltip:{defaultProps:{PopperProps:{disablePortal:n?.shadowDomMode??!1}}},MuiModal:{defaultProps:{disablePortal:n?.shadowDomMode??!1}},MuiFab:{styleOverrides:{root:{zIndex:999999}}},MuiBackdrop:{styleOverrides:{root:{zIndex:999998}}}}}),children:[C(x.CssBaseline,{}),C(x.Tooltip,{title:"DQM Quality Analysis",placement:"left",children:C(ng,{overlayInfo:It,onClick:()=>e?t():r(),"aria-label":"DQM Quality Analysis",style:{opacity:e?0:1,position:"fixed",zIndex:1400,transform:e?"translateX(80px)":"none",transition:"opacity 0.15s ease-in-out, transform 0.25s ease-in-out",pointerEvents:e?"none":"auto"},children:C(mt.TaskAlt,{sx:{fontSize:22}})})}),C(og,{overlayInfo:It,anchor:"right",open:e,onClose:t,variant:"temporary",elevation:16,ModalProps:{keepMounted:!1,disablePortal:n?.shadowDomMode??!1,disableScrollLock:!1,hideBackdrop:!1},children:d?X(to,{children:[X(ig,{children:[C(x.Box,{display:"flex",alignItems:"center",gap:1.5,justifyContent:"center",width:"100%",children:X(x.Typography,{variant:"h6",component:"h1",fontWeight:700,flexDirection:"row",alignItems:"center",display:"flex",gap:"0.5rem",children:[C("img",{width:24,height:24,style:{marginRight:"0.5rem"},src:"https://app-assets.gadget.dev/a/255812/505265/assets/dqm.svg",alt:"Crownpeak DQM"}),"Digital Quality and Accessibility"]})}),!nr&&C(x.Tooltip,{title:"Logout",children:C(fl,{index:1,onClick:cn,"aria-label":"Logout",children:C(mt.Logout,{})})}),C(fl,{onClick:t,"aria-label":"Close sidebar",children:C(mt.Close,{})})]}),C(ag,{children:X(rs,{children:[s==="idle"&&d&&X(x.Box,{p:4,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",children:[C(x.Typography,{variant:"h5",fontWeight:600,gutterBottom:!0,color:"text.secondary",textAlign:"center",children:"Ready to Analyze"}),C(x.Typography,{variant:"body1",color:"text.secondary",textAlign:"center",sx:{maxWidth:400,mb:3},children:'Click "Run Quality Check" to analyze the current page for accessibility and quality issues.'}),C(x.Box,{component:"svg",sx:{width:"120px",height:"120px",opacity:.3},viewBox:"0 0 24 24",children:C("path",{fill:"currentColor",d:"M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z"})})]}),s==="analyzing"&&C(cg,{expanded:we}),s==="error"&&P&&C(x.Box,{children:X(x.Alert,{severity:P.includes("Permission denied")?"warning":"error",children:[C(x.Typography,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:P.includes("Permission denied")?"Access Denied":P.includes("not configured")?"Configuration Required":"Authentication Error"}),C(x.Typography,{variant:"body2",color:"text.secondary",children:P})]})}),s==="error"&&!P&&C(x.Box,{children:X(x.Alert,{severity:"error",action:C(x.Button,{color:"inherit",size:"small",onClick:Lt,startIcon:C(mt.Refresh,{}),sx:{textTransform:"none",fontWeight:"bolder",fontSize:"1rem"},children:"Retry"}),children:[C(x.Typography,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:"Analysis Failed"}),C(x.Typography,{variant:"body2",color:"text.secondary",children:p})]})}),s==="completed"&&l&&X(x.Box,{children:[X(hu,{children:[C(x.Typography,{variant:"h6",fontWeight:700,gutterBottom:!0,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:"Overall Quality"}),X(x.Box,{display:"flex",alignItems:"center",justifyContent:"flex-start ",columnGap:"60px",pt:2,children:[X(x.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,children:[C(J1,{value:$n(l)}),X(x.Box,{children:[C(x.Box,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,mb:1,flexDirection:"column",children:X(x.Typography,{color:"text.primary",fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:["Passed",C("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#28a745"},children:l.totalCheckpoints-l.totalErrors})]})}),C("hr",{style:{width:"100%",border:"1px solid #e0e0e0",margin:"10px 0px 10px 0px"}}),C(x.Box,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,children:X(x.Typography,{fontSize:"12px",fontWeight:400,sx:{color:"gray",textAlign:"center"},children:[C("p",{style:{margin:0,fontWeight:600,fontSize:"26px",color:"#dc3545"},children:l.totalErrors}),"Failed"]})})]})]}),C(x.Box,{display:"flex",justifyContent:"center",mt:3,children:X(x.Button,{variant:"outlined",size:"large",onClick:$t,disabled:ne,sx:{borderRadius:2,py:1,mb:3,fontSize:"17px",textTransform:"none"},children:[ne?C(vn,{size:24,sx:{mr:1}}):null,"Show Page with all Errors"]})})]})]}),X(x.Accordion,{expanded:we,onChange:()=>{pe(!we),localStorage.setItem("dqm_quality_breakdown_expanded",(!we).toString())},sx:{borderRadius:"10px !important",marginBottom:2,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)","&:before":{display:"none"},overflowX:"visible"},children:[X(x.AccordionSummary,{expandIcon:C(mt.ExpandMore,{}),sx:{paddingX:3,"& .MuiAccordionSummary-content":{alignItems:"center",overflow:"scroll",justifyContent:"flex-start",paddingY:2,marginRight:3}},children:[C(x.Typography,{variant:"h6",fontWeight:700,sx:{flexShrink:0},children:"Quality Breakdown"}),C(x.Box,{display:"flex",justifyContent:"center",gap:1,mx:2,px:2.5,sx:{".MuiAccordionSummary-root:not(.Mui-expanded) &":{opacity:1,width:v.length*48,transition:"opacity 0.3s ease 300ms, width 0s ease 0s"},".MuiAccordionSummary-root.Mui-expanded &":{opacity:0,width:0,pointerEvents:"none",transition:"opacity 300ms ease 50ms, width 1250ms ease 200ms"}},children:Uo(v,[([F,j])=>j.filter(Y=>Y.failed).length/j.length]).reverse().map(([F,j])=>{const Y=j.filter(Se=>Se.failed).length,oe=j.length-Y,ce=j[0]?.colors.bg,ue=Math.round(oe/j.length*100);return C(x.Tooltip,{title:X(x.Box,{sx:{p:.5},display:"flex",flexDirection:"column",alignItems:"center",children:[C(x.Typography,{variant:"body2",fontWeight:600,sx:{mb:.5},children:F}),X(x.Typography,{variant:"caption",display:"block",children:[ue,"% passed"]}),C(x.Typography,{variant:"caption",display:"block",children:Y===0?"All Passed":`${oe} of ${j.length} passed`})]}),placement:"top",arrow:!0,children:C(vn,{variant:"determinate",enableTrackSlot:!0,value:ue,size:40,thickness:4,sx:{color:ce,top:0,left:0}})},F)})})]}),C(x.AccordionDetails,{sx:{padding:3,paddingTop:0},children:C(mu,{children:C(x.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1,children:Uo(v,[([F,j])=>j.filter(Y=>Y.failed).length/j.length]).reverse().map(([F,j])=>{const Y=j.filter(ue=>ue.failed).length,oe=j.length-Y,ce=j[0]?.colors.bg;return X(x.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:1,width:"200px",children:[X(x.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(vn,{enableTrackSlot:!0,variant:"determinate",value:oe/j.length*100,size:"100px",thickness:4,sx:{color:ce,"& .MuiCircularProgress-circleNegative":{stroke:"#e0e0e0"}}}),X(x.Typography,{variant:"h6",component:"div",color:ce,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontWeight:700},children:[Math.round(oe/j.length*100),"%"]})]}),X(x.Typography,{component:"div",fontWeight:"bold",color:"gray",sx:{fontSize:"1rem",textAlign:"center",fontWeight:600},children:[F,C(x.Typography,{component:"div",fontWeight:"bold",color:"gray",pb:4,sx:{fontSize:"0.75rem",textAlign:"center",fontWeight:600},children:C(x.Typography,{component:"span",fontWeight:400,color:Y>0?"#dc3545":"#28a745",children:Y===0?"All Passed":`${oe} of ${j.length} Passed`})})]})]},F)})})})})]}),l.checkpoints.some(F=>F.failed)&&X(to,{children:[X(x.Typography,{variant:"h4",fontWeight:600,gutterBottom:!0,sx:{display:"flex",alignItems:"center",gap:1,px:2,pt:4},children:["Failed Checkpoints (",l.checkpoints.filter(F=>F.failed).length,")"]}),C(x.Box,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:X(x.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[X(x.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[X(x.Typography,{variant:"body2",color:"text.secondary",fontWeight:600,children:["Filter by Category · Showing ",Oe.size>0?Oe.size:"all"," of ",Object.keys(v).length," categories"]}),C(x.Button,{size:"small",onClick:()=>D(new Set),sx:{textTransform:"none",fontWeight:600,opacity:Oe.size===0?0:1,transition:"opacity 0.2s ease-in-out"},children:"Show All"})]}),C(x.Box,{display:"flex",gap:1,flexWrap:"nowrap",sx:{overflowX:"scroll",pb:2.5,pt:1},children:Uo(v,[([F,j])=>j.filter(Y=>Y.failed).length/j.length]).filter(([,F])=>F.some(j=>j.failed)).reverse().map(([F,j])=>{const Y=j.filter(Se=>Se.failed).length,{bg:oe,text:ce}=j[0]?.colors||{},ue=Oe.has(F);return C(x.Chip,{label:`${F} (${Y})`,onClick:()=>{D(Se=>{const he=new Set(Se);return he.has(F)?he.delete(F):he.add(F),he})},sx:{backgroundColor:ue?oe:"transparent",color:ue?ce:Oe.size===0?oe:"#555555",border:`2px solid ${ue||Oe.size===0?oe:"#B1B1B1"}`,fontWeight:600,fontSize:"0.875rem",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:oe,color:ce,transform:"translateY(-2px)",boxShadow:`0 4px 8px ${oe}40`,border:`2px solid ${oe}`}}},F)})})]})}),C(x.Box,{sx:{minHeight:"calc(100vh - 320px)"},children:C(gu,{children:C(x.List,{sx:{p:0},children:Uo(v,[([F,j])=>j.filter(Y=>Y.failed).length/j.length]).reverse().filter(([F,j])=>Oe.size===0?j.some(Y=>Y.failed):Oe.has(F)&&j.some(Y=>Y.failed)).map(([F,j])=>C(to,{children:j.filter(({failed:Y})=>Y).map(Y=>{const{bg:oe}=Y.colors;return C(x.ListItem,{sx:{px:0,py:1.5,alignItems:"flex-start"},children:X(x.Box,{mt:.5,children:[C(x.Typography,{variant:"h5",component:"div",fontWeight:600,mb:1.5,children:Y.name}),X(x.Box,{display:"flex",gap:1,flexWrap:"wrap",mb:2,children:[Y?.canHighlight.page&&C(x.Button,{variant:"outlined",size:"small",startIcon:C(mt.Visibility,{}),onClick:()=>{J(Y.id),Hr(l.assetId,Y.id,"browser")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View in Browser"}),Y?.canHighlight.source&&C(x.Button,{variant:"outlined",size:"small",startIcon:C(mt.Visibility,{}),onClick:()=>{J(Y.id),Hr(l.assetId,Y.id,"source")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View Source"}),C(x.Typography,{variant:"body2",color:oe,mr:2,ml:Y?.canHighlight.source||Y?.canHighlight.page?1:0,sx:{fontSize:"0.875rem",alignSelf:"center"},children:Y.category}),Y.topics?.map(ce=>C(x.Typography,{variant:"body2",color:"text.secondary",mr:2,sx:{fontSize:"0.875rem",alignSelf:"center"},children:ce},ce))]}),C(Xc,{html:Y.description||""})]})},Y.id)})}))})})})]})]})]})}),C(sg,{children:C(x.Button,{onClick:Lt,variant:"contained",size:"large",fullWidth:!0,disabled:s==="analyzing"||!d||!!P,sx:{borderRadius:2,py:1,fontWeight:600,textTransform:"none",background:"linear-gradient(156deg, #b604d4 0%, #e38ef2 100%)","&:hover":{background:"linear-gradient(156deg, #9800b1 0%, #d091db 100%)"},fontSize:"17px",transition:"background 0.3s ease","&:disabled":{background:"#e0e0e0",color:"#9e9e9e"}},children:s==="analyzing"?"Analyzing...":"Run Quality Check"})}),X(x.Dialog,{open:Z,onClose:()=>ae(!1),maxWidth:"xl",fullWidth:!0,PaperProps:{style:{borderRadius:12,padding:24,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.2)"}},children:[X(x.DialogTitle,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 24px",borderBottom:"1px solid #e0e0e0"},children:[C(x.Typography,{variant:"h6",fontWeight:700,color:"text.primary",children:"Highlighted Errors"}),C(x.IconButton,{onClick:()=>ae(!1),sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Close",children:C(mt.Close,{})})]}),C(x.DialogContent,{dividers:!0,sx:{padding:"16px 24px",borderBottom:"none"},children:X(x.Box,{flexDirection:"row",display:"flex",gap:2,children:[fe&&X(x.Box,{width:"20%",sx:{maxHeight:"calc(100vh - 300px)",height:"calc(100vh - 300px)",overflowY:"auto"},children:[C(x.Typography,{variant:"h6",component:"div",fontWeight:600,mb:2,children:fe.name}),X(x.Box,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[fe.colors&&C(x.Chip,{label:fe.category,size:"medium",sx:{backgroundColor:fe.colors.bg,color:fe.colors.text,fontWeight:600,fontSize:"1rem"}}),fe.topics?.map(F=>C(x.Chip,{label:F,size:"medium",variant:"outlined",sx:{fontSize:"1rem"}},F))]}),C(x.Box,{sx:{fontSize:"0.95rem",lineHeight:1.6},children:C(Xc,{html:fe.description||""})})]}),ft||!$?X(x.Box,{sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,width:"80%"},children:[X(x.Box,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,py:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[X(x.Box,{display:"flex",gap:2,alignItems:"center",children:[C(x.Skeleton,{variant:"rectangular",width:130,height:40,sx:{borderRadius:1}}),C(x.Skeleton,{variant:"rectangular",width:120,height:40,sx:{borderRadius:1}})]}),X(x.Box,{display:"flex",gap:1,alignItems:"center",mr:2,children:[C(x.Skeleton,{variant:"rectangular",width:60,height:24,sx:{borderRadius:1}}),C(x.Skeleton,{variant:"circular",width:32,height:32}),C(x.Skeleton,{variant:"circular",width:32,height:32}),C(x.Skeleton,{variant:"circular",width:32,height:32}),C(x.Skeleton,{variant:"circular",width:32,height:32})]})]}),C(x.Box,{sx:{minHeight:400},children:C(x.Box,{display:"flex",alignItems:"center",justifyContent:"center",height:400,children:X(x.Box,{textAlign:"center",children:[C(vn,{size:48,sx:{color:"#c653ff",mb:2}}),C(x.Typography,{variant:"body2",color:"text.secondary",children:"Loading both views..."})]})})})]}):X(x.Box,{ref:sn,sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,height:"calc(100vh - 300px)",maxHeight:"calc(100vh - 300px)",overflow:"auto",width:fe?"80%":"100%"},children:[X(x.Box,{sx:{position:"sticky",top:0,zIndex:10,backgroundColor:"#fff",borderBottom:1,borderColor:"divider",mb:2,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[X(x.Tabs,{value:H,onChange:(F,j)=>{le(j),j==="browser"&&fe?.canHighlight?.page&&l?Ve(l.assetId,fe.id):j==="source"&&fe?.canHighlight?.source&&l&&qr(l.assetId,fe.id)},sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:600,fontSize:"0.95rem"}},children:[C(x.Tab,{label:"Browser View",value:"browser",sx:{display:fe?.canHighlight.page?"inline-flex":"none"}}),C(x.Tab,{label:"Source View",value:"source",sx:{display:fe?.canHighlight.source?"inline-flex":"none"}})]}),X(x.Box,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[qe>0&&X(to,{children:[X(x.Typography,{variant:"body2",sx:{color:"text.secondary",fontWeight:600,fontSize:"0.875rem",minWidth:"60px",textAlign:"center"},children:[er||kt||1," of ",qe]}),C(x.IconButton,{size:"small",onClick:()=>kr("prev"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Previous highlight",children:C(mt.ArrowBack,{fontSize:"small"})}),C(x.IconButton,{size:"small",onClick:()=>kr("next"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Next highlight",children:C(mt.ArrowForward,{fontSize:"small"})})]}),C(x.IconButton,{size:"small",onClick:()=>Hr(l.assetId,q,H),sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Reload highlights",children:C(mt.Replay,{fontSize:"small"})}),C(x.Tooltip,{title:"Open in new tab",placement:"top",children:C(x.IconButton,{size:"small",onClick:()=>{const F=window.open("","_blank");if(F){const oe=new DOMParser().parseFromString($,"text/html").documentElement;oe.getElementsByTagName("body")[0].style.overflow="auto",F.document.open(),F.document.write(oe.outerHTML),F.document.close(),setTimeout(()=>{const ce=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],ue=F.document.querySelectorAll(ce.join(", "));if(ue.length>0){const Se=ue[0];Se.scrollIntoView({behavior:"smooth",block:"center"}),Se.classList.add("animate"),setTimeout(()=>{Se.classList.remove("animate")},800)}else console.warn("[DQM] No highlights found in new tab")},500)}},sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Open in new tab",children:C(mt.OpenInNew,{fontSize:"small"})})}),H==="browser"&&C(x.Tooltip,{title:rr?"Enable JavaScript":"Disable JavaScript",placement:"top",children:C(x.IconButton,{size:"small",onClick:()=>an(!rr),sx:{color:rr?"text.secondary":"primary.main","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":rr?"Enable JavaScript":"Disable JavaScript",children:X("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[C("path",{d:"M16 18L22 12L16 6"}),C("path",{d:"M8 6L2 12L8 18"})]})})})]})]}),C(x.Box,{sx:{minHeight:400},children:H==="browser"?C(lg,{html:$,currentHighlight:kt,clickedIndicator:Q,onHighlightsFound:Zt,onVisibleHighlightChange:tr,scriptsDisabled:rr}):C(ug,{html:$,onHighlightsFound:Zt,currentHighlight:kt,shouldAutoScrollToFirst:!gr.current,clickedIndicator:Q,onVisibleHighlightChange:tr,scrollContainerRef:sn})})]})]})})]})]}):X(x.Box,{sx:{width:"730px",height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#f5f5f5",overflow:"auto"},children:[n?.oauth2Config&&C(eb,{config:n,onAuthSuccess:jr,onAuthError:zr}),X(x.Box,{sx:{background:"linear-gradient(135deg, #711bc1 0%, #8e44d6 100%)",color:"white",py:4,px:3,textAlign:"center",boxShadow:"0 4px 20px rgba(0,0,0,0.1)"},children:[X("svg",{style:{width:"24px",height:"24px",marginBottom:"1rem"},"aria-label":"Crownpeak Digital Quality & Accessibility Analysis",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",children:[C("path",{d:"M18.84,250c0-4.39,1.18-8.74,3.39-12.55L125.16,60.82c4.51-7.75,12.92-12.54,21.92-12.54h205.84c9.03,0,17.41,4.79,21.92,12.54l102.92,176.63c2.21,3.8,3.39,8.16,3.39,12.55,0,4.39-1.18,8.74-3.39,12.54l-102.92,176.64c-4.51,7.75-12.92,12.55-21.92,12.55h-205.84c-9.03,0-17.41-4.8-21.92-12.55L22.24,262.55c-2.21-3.8-3.39-8.16-3.39-12.54ZM12.5,250c0,5.41,1.42,10.82,4.25,15.67l102.92,176.64c5.67,9.71,16.11,15.67,27.41,15.67h205.84c11.3,0,21.75-5.96,27.41-15.67l102.92-176.64c2.83-4.85,4.25-10.26,4.25-15.67,0-5.41-1.42-10.82-4.25-15.68l-102.92-176.64c-5.67-9.71-16.11-15.67-27.41-15.67h-205.84c-11.3,0-21.75,5.96-27.41,15.67L16.75,234.33c-2.83,4.85-4.25,10.27-4.25,15.68Z",style:{fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:3}}),C("path",{d:"M41.06,250c0-3.97,1.07-7.9,3.07-11.34l93.03-159.66c4.08-7.01,11.68-11.34,19.82-11.34h186.06c8.16,0,15.74,4.33,19.82,11.34l93.03,159.66c2,3.44,3.07,7.37,3.07,11.34s-1.07,7.9-3.07,11.34l-93.03,159.66c-4.08,7.01-11.68,11.34-19.82,11.34h-186.06c-8.16,0-15.74-4.34-19.82-11.34l-93.03-159.66c-2-3.44-3.07-7.37-3.07-11.34Z",style:{fill:"#fff",strokeWidth:0}}),X("g",{children:[C("path",{d:"M347.45,204.4c-2.14-9.18-8.83-8.76-16.53-7.36-20.65,3.73-41.32,7.7-62.16,9.94-4.02.43-10.73,1.04-19.22,1.09,0,.02,0,.04,0,.06-6.08-.08-12.18-.41-18.31-1.07-20.84-2.25-41.51-6.21-62.16-9.94-7.7-1.39-14.39-1.81-16.53,7.36-2,8.6,4.3,11.78,10.98,13.76,7.09,2.11,14.26,4.15,21.54,5.35,17.54,2.88,35.17,5.25,52.85,7.83-4.75,38.47-13.41,74.69-39.48,104.67-2.52,2.9-1.87,11.59.69,15.16,4.35,6.07,10.07,2.47,14.89-1.86,18.01-16.16,28.26-36.83,35.98-62.51,0-.06,0-.12,0-.19,0,.04,0,.07,0,.11,7.71,25.67,17.97,46.35,35.98,62.51,4.82,4.33,10.54,7.93,14.89,1.86,2.57-3.57,3.21-12.27.69-15.16-26.07-29.98-34.72-66.2-39.48-104.67,17.68-2.59,35.31-4.95,52.85-7.83,7.28-1.2,14.45-3.24,21.54-5.35,6.68-1.99,12.98-5.16,10.98-13.76Z",style:{fill:"#711bc1",strokeWidth:0}}),C("circle",{cx:"250",cy:"171.61",r:"26.08",style:{fill:"#711bc1",strokeWidth:0}})]})]}),C(x.Typography,{variant:"subtitle1",children:"Digital Quality & Accessibility Analysis"})]}),C(x.Box,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",p:3,overflow:"auto"},children:C(Z1,{config:n||{},onAuthSuccess:jr,onAuthError:zr,initialError:P})}),C(x.IconButton,{onClick:t,sx:{position:"absolute",top:16,right:16,color:"white",backgroundColor:"rgba(255, 255, 255, 0.1)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},"aria-label":"Close",children:C(mt.Close,{})})]})})]})};exports.DQMSidebar=ab;exports.ErrorBoundary=rs;exports.useOverlayResistant=rf;exports.withErrorBoundary=eg;
113
113
  //# sourceMappingURL=index.cjs.map