@crownpeak/dqm-react-component 1.0.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 (87) hide show
  1. package/AUTHENTICATION.md +281 -0
  2. package/BACKEND-API.md +1829 -0
  3. package/CHANGELOG.md +28 -0
  4. package/DEVELOPMENT.md +339 -0
  5. package/EXAMPLES.md +194 -0
  6. package/LICENSE +22 -0
  7. package/QUICKSTART.md +200 -0
  8. package/README.md +213 -0
  9. package/dist/DQMSidebar.d.ts +5 -0
  10. package/dist/DQMSidebar.d.ts.map +1 -0
  11. package/dist/ErrorBoundary.d.ts +34 -0
  12. package/dist/ErrorBoundary.d.ts.map +1 -0
  13. package/dist/auth-ui/assets/index-CehNKFGj.js +158 -0
  14. package/dist/auth-ui/index.html +30 -0
  15. package/dist/components/auth/DQMLogin.d.ts +16 -0
  16. package/dist/components/auth/DQMLogin.d.ts.map +1 -0
  17. package/dist/components/auth/OAuth2CallbackHandler.d.ts +15 -0
  18. package/dist/components/auth/OAuth2CallbackHandler.d.ts.map +1 -0
  19. package/dist/components/auth/index.d.ts +3 -0
  20. package/dist/components/auth/index.d.ts.map +1 -0
  21. package/dist/components/cards/CategoryCard.d.ts +2 -0
  22. package/dist/components/cards/CategoryCard.d.ts.map +1 -0
  23. package/dist/components/cards/FailedCheckpointsCard.d.ts +2 -0
  24. package/dist/components/cards/FailedCheckpointsCard.d.ts.map +1 -0
  25. package/dist/components/cards/QualityOverviewCard.d.ts +2 -0
  26. package/dist/components/cards/QualityOverviewCard.d.ts.map +1 -0
  27. package/dist/components/cards/index.d.ts +4 -0
  28. package/dist/components/cards/index.d.ts.map +1 -0
  29. package/dist/components/common/CircularProgressWithLabel.d.ts +5 -0
  30. package/dist/components/common/CircularProgressWithLabel.d.ts.map +1 -0
  31. package/dist/components/common/index.d.ts +2 -0
  32. package/dist/components/common/index.d.ts.map +1 -0
  33. package/dist/components/renderers/BrowserViewRenderer.d.ts +9 -0
  34. package/dist/components/renderers/BrowserViewRenderer.d.ts.map +1 -0
  35. package/dist/components/renderers/SafeParsedHtml.d.ts +4 -0
  36. package/dist/components/renderers/SafeParsedHtml.d.ts.map +1 -0
  37. package/dist/components/renderers/ShadowDOMRenderer.d.ts +11 -0
  38. package/dist/components/renderers/ShadowDOMRenderer.d.ts.map +1 -0
  39. package/dist/components/renderers/index.d.ts +4 -0
  40. package/dist/components/renderers/index.d.ts.map +1 -0
  41. package/dist/components/sidebar/SidebarContent.d.ts +2 -0
  42. package/dist/components/sidebar/SidebarContent.d.ts.map +1 -0
  43. package/dist/components/sidebar/SidebarFooter.d.ts +5 -0
  44. package/dist/components/sidebar/SidebarFooter.d.ts.map +1 -0
  45. package/dist/components/sidebar/SidebarHeader.d.ts +2 -0
  46. package/dist/components/sidebar/SidebarHeader.d.ts.map +1 -0
  47. package/dist/components/sidebar/SidebarSkeleton.d.ts +5 -0
  48. package/dist/components/sidebar/SidebarSkeleton.d.ts.map +1 -0
  49. package/dist/components/sidebar/StyledDrawer.d.ts +2 -0
  50. package/dist/components/sidebar/StyledDrawer.d.ts.map +1 -0
  51. package/dist/components/sidebar/StyledFab.d.ts +4 -0
  52. package/dist/components/sidebar/StyledFab.d.ts.map +1 -0
  53. package/dist/components/sidebar/index.d.ts +7 -0
  54. package/dist/components/sidebar/index.d.ts.map +1 -0
  55. package/dist/index.cjs +113 -0
  56. package/dist/index.cjs.map +1 -0
  57. package/dist/index.d.ts +4 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +13712 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/server/config.js +21 -0
  62. package/dist/server/config.js.map +1 -0
  63. package/dist/server/index.js +74 -0
  64. package/dist/server/index.js.map +1 -0
  65. package/dist/server/middleware/authenticate.js +31 -0
  66. package/dist/server/middleware/authenticate.js.map +1 -0
  67. package/dist/server/middleware/errorHandler.js +8 -0
  68. package/dist/server/middleware/errorHandler.js.map +1 -0
  69. package/dist/server/routes/auth.js +142 -0
  70. package/dist/server/routes/auth.js.map +1 -0
  71. package/dist/server/routes/dqm.js +138 -0
  72. package/dist/server/routes/dqm.js.map +1 -0
  73. package/dist/server/services/dqmClient.js +127 -0
  74. package/dist/server/services/dqmClient.js.map +1 -0
  75. package/dist/server/services/sessionStore.js +250 -0
  76. package/dist/server/services/sessionStore.js.map +1 -0
  77. package/dist/server/types.js +2 -0
  78. package/dist/server/types.js.map +1 -0
  79. package/dist/types.d.ts +76 -0
  80. package/dist/types.d.ts.map +1 -0
  81. package/dist/utils/colors/GenerateCategoryColors.d.ts +12 -0
  82. package/dist/utils/colors/GenerateCategoryColors.d.ts.map +1 -0
  83. package/dist/utils/localStorage.d.ts +4 -0
  84. package/dist/utils/localStorage.d.ts.map +1 -0
  85. package/dist/utils/storage.d.ts +28 -0
  86. package/dist/utils/storage.d.ts.map +1 -0
  87. package/package.json +124 -0
package/dist/index.cjs ADDED
@@ -0,0 +1,113 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Jn=require("react/jsx-runtime"),ne=require("react"),x=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),Ct=fl(ne);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 ct(e,0)^45?(((t<<2^ct(e,0))<<2^ct(e,1))<<2^ct(e,2))<<2^ct(e,3):0}function hl(e){return e.trim()}function nd(e,t){return(e=t.exec(e))?e[0]:e}function Pe(e,t,r){return e.replace(t,r)}function va(e,t){return e.indexOf(t)}function ct(e,t){return e.charCodeAt(t)|0}function ao(e,t,r){return e.slice(t,r)}function fr(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,vn=1,ml=0,Ot=0,rt=0,An="";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:vn,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?ct(An,--Ot):0,vn--,rt===10&&(vn=1,pi--),rt}function Dt(){return rt=Ot<ml?ct(An,Ot++):0,vn++,rt===10&&(vn=1,pi++),rt}function pr(){return ct(An,Ot)}function Qo(){return Ot}function fo(e,t){return ao(An,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=vn=1,ml=fr(An=e),Ot=0,[]}function yl(e){return An="",e}function Zo(e){return hl(fo(Ot-1,xa(e===91?e+2:e===40?e+1:e)))}function sd(e){for(;(rt=pr())&&rt<33;)Dt();return so(e)>2||so(rt)>3?"":" "}function cd(e,t){for(;--t&&Dt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return fo(e,Qo()+(t<6&&pr()==32&&Dt()==32))}function xa(e){for(;Dt();)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:Dt();break}return Ot}function ld(e,t){for(;Dt()&&e+rt!==57;)if(e+rt===84&&pr()===47)break;return"/*"+fo(t,Ot-1)+"*"+di(e===47?e:Dt())}function ud(e){for(;!so(pr());)Dt();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,u=0,p=a,w=0,T=0,g=0,h=1,y=1,v=1,O=0,k="",R=o,d=i,S=n,E=k;y;)switch(g=O,O=Dt()){case 40:if(g!=108&&ct(E,p-1)==58){va(E+=Pe(Zo(O),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Zo(O);break;case 9:case 10:case 13:case 32:E+=sd(g);break;case 92:E+=cd(Qo()-1,7);continue;case 47:switch(pr()){case 42:case 47:Io(dd(ld(Dt(),Qo()),t,r),c);break;default:E+="/"}break;case 123*h:s[l++]=fr(E)*v;case 125*h:case 59:case 0:switch(O){case 0:case 125:y=0;case 59+u:v==-1&&(E=Pe(E,/\f/g,"")),T>0&&fr(E)-p&&Io(T>32?vs(E+";",n,r,p-1):vs(Pe(E," ","")+";",n,r,p-2),c);break;case 59:E+=";";default:if(Io(S=Ss(E,t,r,l,u,o,s,k,R=[],d=[],p),i),O===123)if(u===0)Jo(E,t,S,S,R,i,p,s,d);else switch(w===99&&ct(E,3)===110?100:w){case 100:case 108:case 109:case 115:Jo(e,S,S,n&&Io(Ss(e,S,S,0,0,o,s,k,o,R=[],p),d),o,d,p,s,n?R:d);break;default:Jo(E,S,S,S,[""],d,0,s,d)}}l=u=T=0,h=v=1,k=E="",p=a;break;case 58:p=1+fr(E),T=g;default:if(h<1){if(O==123)--h;else if(O==125&&h++==0&&ad()==125)continue}switch(E+=di(O),O*h){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[l++]=(fr(E)-1)*v,v=1;break;case 64:pr()===45&&(E+=Zo(Dt())),w=pr(),u=p=fr(k=E+=ud(Qo())),O++;break;case 45:g===45&&fr(E)==2&&(h=0)}}return i}function Ss(e,t,r,n,o,i,a,s,c,l,u){for(var p=o-1,w=o===0?i:[""],T=Ha(w),g=0,h=0,y=0;g<n;++g)for(var v=0,O=ao(e,p+1,p=ed(h=a[g])),k=e;v<T;++v)(k=hl(h>0?w[v]+" "+O:Pe(O,/&\f/g,w[v])))&&(c[y++]=k);return hi(e,t,r,o===0?ja:s,c,l,u)}function dd(e,t,r){return hi(e,t,r,dl,di(id()),ao(e,2,-2),0)}function vs(e,t,r,n){return hi(e,t,r,za,ao(e,0,n),ao(e,n+1,-1),n)}function En(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+"{"+En(e.children,n)+"}";case ja:e.value=e.props.join(",")}return fr(r=En(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=pr(),o===38&&i===12&&(r[n]=1),!so(i);)Dt();return fo(t,Ot)},bd=function(t,r){var n=-1,o=44;do switch(so(o)){case 0:o===38&&pr()===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]=pr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=di(o)}while(o=Dt());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 u=0;u<s.length;u++,l++)t.props[l]=i[c]?a[c].replace(/&\f/g,s[u]):s[u]+" "+a[c]}}},Sd=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+Pe(e,/(\w+).+(:[^]+)/,ke+"box-$1$2"+dt+"flex-$1$2")+e;case 5443:return ke+e+dt+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return ke+e+dt+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return ke+e+dt+Pe(e,"shrink","negative")+e;case 5292:return ke+e+dt+Pe(e,"basis","preferred-size")+e;case 6060:return ke+"box-"+Pe(e,"-grow","")+ke+e+dt+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"+dt+"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(fr(e)-1-t>6)switch(ct(e,t+1)){case 109:if(ct(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ii+(ct(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~va(e,"stretch")?bl(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ct(e,t+1)!==115)break;case 6444:switch(ct(e,fr(e)-3-(~va(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(ct(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch(ct(e,t+11)){case 114:return ke+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+dt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+dt+e+e}return e}var vd=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 En([Un(t,{value:Pe(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 En([Un(t,{props:[Pe(i,/:(read-\w+)/,":"+ii+"$1")]})],o);case"::placeholder":return En([Un(t,{props:[Pe(i,/:(plac\w+)/,":"+ke+"input-$1")]}),Un(t,{props:[Pe(i,/:(plac\w+)/,":"+ii+"$1")]}),Un(t,{props:[Pe(i,/:(plac\w+)/,dt+"input-$1")]})],o)}return""})}},xd=[vd],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 y=h.getAttribute("data-emotion");y.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 y=h.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)i[y[v]]=!0;s.push(h)});var c,l=[Ed,Sd];{var u,p=[pd,md(function(h){u.insert(h)})],w=hd(l.concat(o,p)),T=function(y){return En(fd(y),w)};c=function(y,v,O,k){u=O,T(y?y+"{"+v.styles+"}":v.styles),k&&(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:{}},De={};var Ts;function _d(){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,w=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,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function k(d){if(typeof d=="object"&&d!==null){var S=d.$$typeof;switch(S){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 g:case T:case a:return d;default:return S}}case r:return S}}}function R(d){return k(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=g,De.Memo=T,De.Portal=r,De.Profiler=i,De.StrictMode=o,De.Suspense=p,De.isAsyncMode=function(d){return R(d)||k(d)===c},De.isConcurrentMode=R,De.isContextConsumer=function(d){return k(d)===s},De.isContextProvider=function(d){return k(d)===a},De.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},De.isForwardRef=function(d){return k(d)===u},De.isFragment=function(d){return k(d)===n},De.isLazy=function(d){return k(d)===g},De.isMemo=function(d){return k(d)===T},De.isPortal=function(d){return k(d)===r},De.isProfiler=function(d){return k(d)===i},De.isStrictMode=function(d){return k(d)===o},De.isSuspense=function(d){return k(d)===p},De.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===w||typeof d=="object"&&d!==null&&(d.$$typeof===g||d.$$typeof===T||d.$$typeof===a||d.$$typeof===s||d.$$typeof===u||d.$$typeof===y||d.$$typeof===v||d.$$typeof===O||d.$$typeof===h)},De.typeOf=k,De}var $e={};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,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,w=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,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function k(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===i||N===o||N===p||N===w||typeof N=="object"&&N!==null&&(N.$$typeof===g||N.$$typeof===T||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===y||N.$$typeof===v||N.$$typeof===O||N.$$typeof===h)}function R(N){if(typeof N=="object"&&N!==null){var We=N.$$typeof;switch(We){case t:var Ke=N.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 u:case g:case T:case a:return qe;default:return We}}case r:return We}}}var d=c,S=l,E=s,M=a,$=t,H=u,U=n,m=g,j=T,I=r,W=i,J=o,de=p,Ce=!1;function lt(N){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(N)||R(N)===c}function z(N){return R(N)===l}function q(N){return R(N)===s}function le(N){return R(N)===a}function ee(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function se(N){return R(N)===u}function oe(N){return R(N)===n}function fe(N){return R(N)===g}function Z(N){return R(N)===T}function he(N){return R(N)===r}function we(N){return R(N)===i}function pe(N){return R(N)===o}function Oe(N){return R(N)===p}$e.AsyncMode=d,$e.ConcurrentMode=S,$e.ContextConsumer=E,$e.ContextProvider=M,$e.Element=$,$e.ForwardRef=H,$e.Fragment=U,$e.Lazy=m,$e.Memo=j,$e.Portal=I,$e.Profiler=W,$e.StrictMode=J,$e.Suspense=de,$e.isAsyncMode=lt,$e.isConcurrentMode=z,$e.isContextConsumer=q,$e.isContextProvider=le,$e.isElement=ee,$e.isForwardRef=se,$e.isFragment=oe,$e.isLazy=fe,$e.isMemo=Z,$e.isPortal=he,$e.isProfiler=we,$e.isStrictMode=pe,$e.isSuspense=Oe,$e.isValidElementType=k,$e.typeOf=R})()),$e}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,u=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,w=Object.prototype;function T(g,h,y){if(typeof h!="string"){if(w){var v=p(h);v&&v!==w&&T(g,v,y)}var O=c(h);l&&(O=O.concat(l(h)));for(var k=a(g),R=a(h),d=0;d<O.length;++d){var S=O[d];if(!r[S]&&!(y&&y[S])&&!(R&&R[S])&&!(k&&k[S])){var E=u(h,S);try{s(g,S,E)}catch{}}}}return g}return Hi=T,Hi}Rd();var Od=!0;function kd(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||Od===!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()}),Os=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Dd,function(n,o,i){return dr={name:o,styles:i,next:dr},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 dr={name:o.name,styles:o.styles,next:dr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)dr={name:a.name,styles:a.styles,next:dr},a=a.next;var s=i.styles+";";return s}return $d(e,t,r)}case"function":{if(e!==void 0){var c=dr,l=r(e);return dr=c,co(e,t,l)}break}}var u=r;return u}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)+":"+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=co(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,dr;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="";dr=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]}ks.lastIndex=0;for(var l="",u;(u=ks.exec(o))!==null;)l+="-"+u[1];var p=Id(o)+l;return{name:p,styles:o,next:dr}}var Ld=function(t){return t()},Bd=Ct.useInsertionEffect?Ct.useInsertionEffect:!1,Fd=Bd||Ld,vl=Ct.createContext(typeof HTMLElement<"u"?Td({key:"css"}):null);vl.Provider;var Ud=function(t){return ne.forwardRef(function(r,n){var o=ne.useContext(vl);return t(r,o,n)})},jd=Ct.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=kd(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=Sl(i,void 0,Ct.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),Ct.createElement(Ct.Fragment,null,Ct.createElement(zd,{cache:t,serialized:s,isStringTag:typeof o=="string"}),Ct.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)},Y=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:Rn}=Array,xn=bi("undefined");function po(e){return e!==null&&!xn(e)&&e.constructor!==null&&!xn(e.constructor)&&At(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"),At=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)&&At(e.pipe),ep=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]"))},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]),Rn(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 Ol(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,kl=e=>!xn(e)&&e!==Xr;function _a(){const{caseless:e,skipUndefined:t}=kl(this)&&this||{},r={},n=(o,i)=>{const a=e&&Ol(r,i)||i;ei(r[a])&&ei(o)?r[a]=_a(r[a],o):ei(o)?r[a]=_a({},o):Rn(o)?r[a]=o.slice():(!t||!xn(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&&At(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(Rn(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(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+"'")})}})},Ep=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Rn(e)?n(e):n(String(e).split(t)),r},Sp=()=>{},vp=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xp(e){return!!(e&&At(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=Rn(n)?[]:{};return mo(n,(a,s)=>{const c=r(a,o+1);!xn(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},_p=rr("AsyncFunction"),Cp=e=>e&&(ho(e)||At(e))&&At(e.then)&&At(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",At(Xr.postMessage)),Ap=typeof queueMicrotask<"u"?queueMicrotask.bind(Xr):typeof process<"u"&&process.nextTick||Il,Rp=e=>e!=null&&At(e[gi]),P={isArray:Rn,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:xn,isDate:Kd,isFile:Xd,isBlob:Qd,isRegExp:bp,isFunction:At,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:Sp,toFiniteNumber:vp,findKey:Ol,global:Xr,isContextDefined:kl,isSpecCompliantForm:xp,toJSONObject:Tp,isAsyncFn:_p,isThenable:Cp,setImmediate:Il,asap:Ap,isIterable:Rp};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)}P.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:P.toJSONObject(this.config),code:this.code,status:this.status}}});const Ml=ye.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(ye,Nl);Object.defineProperty(Ml,"isAxiosError",{value:!0});ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Ml);P.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 Op=null;function Ca(e){return P.isPlainObject(e)||P.isArray(e)}function Dl(e){return P.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 kp(e){return P.isArray(e)&&!e.some(Ca)}const Pp=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(e,t,r){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=P.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!P.isUndefined(y[h])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(t);if(!P.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(P.isDate(g))return g.toISOString();if(P.isBoolean(g))return g.toString();if(!c&&P.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(g)||P.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,y){let v=g;if(g&&!y&&typeof g=="object"){if(P.endsWith(h,"{}"))h=n?h:h.slice(0,-2),g=JSON.stringify(g);else if(P.isArray(g)&&kp(g)||(P.isFileList(g)||P.endsWith(h,"[]"))&&(v=P.toArray(g)))return h=Dl(h),v.forEach(function(k,R){!(P.isUndefined(k)||k===null)&&t.append(a===!0?Is([h],R,i):a===null?h:h+"[]",l(k))}),!1}return Ca(g)?!0:(t.append(Is(y,h,i),l(g)),!1)}const p=[],w=Object.assign(Pp,{defaultVisitor:u,convertValue:l,isVisitable:Ca});function T(g,h){if(!P.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(g),P.forEach(g,function(v,O){(!(P.isUndefined(v)||v===null)&&o.call(t,v,P.isString(O)?O.trim():O,h,w))===!0&&T(v,h?h.concat(O):[O])}),p.pop()}}if(!P.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;P.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=P.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){P.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&&P.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function zp(e){return P.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&&P.isArray(o)?o.length:a,c?(P.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!P.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&P.isArray(o[a])&&(o[a]=Hp(o[a])),!s)}if(P.isFormData(e)&&P.isFunction(e.entries)){const r={};return P.forEachEntry(e,(n,o)=>{t(zp(n),o,r,0)}),r}return null}function qp(e,t,r){if(P.isString(e))try{return(t||JSON.parse)(e),P.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=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return o?JSON.stringify(Fl(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.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=P.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(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.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: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}}};P.forEach(["delete","get","head","post","put","patch"],e=>{go.headers[e]={}});const Wp=P.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:P.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(P.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!P.isString(t)){if(P.isString(n))return t.indexOf(n)!==-1;if(P.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=P.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=jn(c);if(!u)throw new Error("header name must be a non-empty string");const p=P.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)=>P.forEach(s,(l,u)=>i(l,u,c));if(P.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(P.isString(t)&&(t=t.trim())&&!Yp(t))a(Gp(t),r);else if(P.isObject(t)&&P.isIterable(t)){let s={},c,l;for(const u of t){if(!P.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?P.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=jn(t),t){const n=P.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Vp(o);if(P.isFunction(r))return r.call(this,o,n);if(P.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=P.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=P.findKey(n,a);s&&(!r||Wi(n,n[s],s,r))&&(delete n[s],o=!0)}}return P.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 P.forEach(this,(o,i)=>{const a=P.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 P.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&P.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 P.isArray(t)?t.forEach(i):i(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});P.freezeMethods(Rt);function Gi(e,t){const r=this||go,n=t||r,o=Rt.from(n.headers);let i=n.data;return P.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 On(e,t,r){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,r),this.name="CanceledError"}P.inherits(On,ye,{__CANCEL__:!0});function jl(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 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(),u=n[i];a||(a=l),r[o]=c,n[o]=l;let p=i,w=0;for(;p!==o;)w+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=u&&l-u;return T?Math.round(w*1e3/T):void 0}}function Jp(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=Zp(50,250);return Jp(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)=>P.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)}`];P.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),P.isString(n)&&s.push(`path=${n}`),P.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),P.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 Rt?{...e}:e;function tn(e,t){t=t||{};const r={};function n(l,u,p,w){return P.isPlainObject(l)&&P.isPlainObject(u)?P.merge.call({caseless:w},l,u):P.isPlainObject(u)?P.merge({},u):P.isArray(u)?u.slice():u}function o(l,u,p,w){if(P.isUndefined(u)){if(!P.isUndefined(l))return n(void 0,l,p,w)}else return n(l,u,p,w)}function i(l,u){if(!P.isUndefined(u))return n(void 0,u)}function a(l,u){if(P.isUndefined(u)){if(!P.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 P.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||o,w=p(e[u],t[u],u);P.isUndefined(w)&&p!==s||(r[u]=w)}),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=Rt.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)):""))),P.isFormData(r)){if(ht.hasStandardBrowserEnv||ht.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(P.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(ht.hasStandardBrowserEnv&&(n&&P.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=Rt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,p,w,T,g;function h(){T&&T(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function v(){if(!y)return;const k=Rt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),d={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};jl(function(E){r(E),h()},function(E){n(E),h()},d),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(n(new ye("Request aborted",ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(R){const d=R&&R.message?R.message:"Network Error",S=new ye(d,ye.ERR_NETWORK,e,y);S.event=R||null,n(S),y=null},y.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const d=o.transitional||Bl;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),n(new ye(R,d.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&P.forEach(a.toJSON(),function(R,d){y.setRequestHeader(d,R)}),P.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([w,g]=ai(l,!0),y.addEventListener("progress",w)),c&&y.upload&&([p,T]=ai(c),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(u=k=>{y&&(n(!k||k.type?new On(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const O=Qp(o.url);if(O&&ht.protocols.indexOf(O)===-1){n(new ye("Unsupported protocol "+O+":",ye.ERR_BAD_REQUEST,e));return}y.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 u=l instanceof Error?l:this.reason;n.abort(u instanceof ye?u:new On(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=()=>P.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:u}=await o.next();if(l){s(),c.close();return}let p=u.byteLength;if(r){let w=i+=p;r(w)}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}=P,uh=(({Request:e,Response:t})=>({Request:e,Response:t}))(P.global),{ReadableStream:js,TextEncoder:zs}=P.global,Hs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fh=e=>{e=P.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}),u=a&&s&&Hs(()=>P.isReadableStream(new n("").body)),p={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!p[g]&&(p[g]=(h,y)=>{let v=h&&h[g];if(v)return v.call(h);throw new ye(`Response type '${g}' is not supported`,ye.ERR_NOT_SUPPORT,y)})});const w=async g=>{if(g==null)return 0;if(P.isBlob(g))return g.size;if(P.isSpecCompliantForm(g))return(await new r(ht.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(P.isArrayBufferView(g)||P.isArrayBuffer(g))return g.byteLength;if(P.isURLSearchParams(g)&&(g=g+""),P.isString(g))return(await c(g)).byteLength},T=async(g,h)=>{const y=P.toFiniteNumber(g.getContentLength());return y??w(h)};return async g=>{let{url:h,method:y,data:v,signal:O,cancelToken:k,timeout:R,onDownloadProgress:d,onUploadProgress:S,responseType:E,headers:M,withCredentials:$="same-origin",fetchOptions:H}=Hl(g),U=t||fetch;E=E?(E+"").toLowerCase():"text";let m=ah([O,k&&k.toAbortSignal()],R),j=null;const I=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let W;try{if(S&&l&&y!=="get"&&y!=="head"&&(W=await T(M,v))!==0){let q=new r(h,{method:"POST",body:v,duplex:"half"}),le;if(P.isFormData(v)&&(le=q.headers.get("content-type"))&&M.setContentType(le),q.body){const[ee,se]=$s(W,ai(Ls(S)));v=Fs(q.body,Us,ee,se)}}P.isString($)||($=$?"include":"omit");const J=i&&"credentials"in r.prototype,de={...H,signal:m,method:y.toUpperCase(),headers:M.normalize().toJSON(),body:v,duplex:"half",credentials:J?$:void 0};j=i&&new r(h,de);let Ce=await(i?U(j,H):U(h,de));const lt=u&&(E==="stream"||E==="response");if(u&&(d||lt&&I)){const q={};["status","statusText","headers"].forEach(oe=>{q[oe]=Ce[oe]});const le=P.toFiniteNumber(Ce.headers.get("content-length")),[ee,se]=d&&$s(le,ai(Ls(d),!0))||[];Ce=new n(Fs(Ce.body,Us,ee,()=>{se&&se(),I&&I()}),q)}E=E||"text";let z=await p[P.findKey(p,E)||"text"](Ce,g);return!lt&&I&&I(),await new Promise((q,le)=>{jl(q,le,{data:z,headers:Rt.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:g,request:j})})}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,g,j),{cause:J.cause||J}):ye.from(J,J&&J.code,g,j)}}},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,u=dh;for(;s--;)c=i[s],l=u.get(c),l===void 0&&u.set(c,l=s?new Map:fh(t)),u=l;return l};ql();const Ya={http:Op,xhr:ih,fetch:{get:ql}};P.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=>P.isFunction(e)||e===null||e===!1;function hh(e,t){e=P.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 ye(`Unknown adapter '${s}'`);if(o&&(P.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
+ `+a.map(qs).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 Wl={getAdapter:hh,adapters:Ya};function Vi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new On(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),Wl.getAdapter(e.adapter||go.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 Ul(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 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 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 mh(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:mh,validators:Ei},lr=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:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},!1),o!=null&&(P.isFunction(o)?r.paramsSerializer={serialize:o}:ri.assertOptions(o,{encode:lr.function,serialize:lr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ri.assertOptions(r,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&P.merge(i.common,i[r.method]);i&&P.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),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,w;if(!c){const g=[Ws.bind(this),void 0];for(g.unshift(...s),g.push(...l),w=g.length,u=Promise.resolve(r);p<w;)u=u.then(g[p++],g[p++]);return u}w=s.length;let T=r;for(;p<w;){const g=s[p++],h=s[p++];try{T=g(T)}catch(y){h.call(this,y);break}}try{u=Ws.call(this,T)}catch(g){return Promise.reject(g)}for(p=0,w=l.length;p<w;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=tn(this.defaults,t);const r=zl(t.baseURL,t.url,t.allowAbsoluteUrls);return Ll(r,t.params,t.paramsSerializer)}};P.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}))}});P.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 On(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 P.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 P.extend(r,Zr.prototype,t,{allOwnKeys:!0}),P.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Yl(tn(e,o))},r}const Fe=Yl(go);Fe.Axios=Zr;Fe.CanceledError=On;Fe.CancelToken=gh;Fe.isCancel=Ul;Fe.VERSION=Gl;Fe.toFormData=wi;Fe.AxiosError=ye;Fe.Cancel=Fe.CanceledError;Fe.all=function(t){return Promise.all(t)};Fe.spread=yh;Fe.isAxiosError=bh;Fe.mergeConfig=tn;Fe.AxiosHeaders=Rt;Fe.formToJSON=e=>Fl(P.isHTMLForm(e)?new FormData(e):e);Fe.getAdapter=Wl.getAdapter;Fe.HttpStatusCode=Ra;Fe.default=Fe;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}=Fe;var $o={exports:{}},Lo={exports:{}},Le={};var Vs;function wh(){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,w=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,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function k(d){if(typeof d=="object"&&d!==null){var S=d.$$typeof;switch(S){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 g:case T:case a:return d;default:return S}}case r:return S}}}function R(d){return k(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=g,Le.Memo=T,Le.Portal=r,Le.Profiler=i,Le.StrictMode=o,Le.Suspense=p,Le.isAsyncMode=function(d){return R(d)||k(d)===c},Le.isConcurrentMode=R,Le.isContextConsumer=function(d){return k(d)===s},Le.isContextProvider=function(d){return k(d)===a},Le.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},Le.isForwardRef=function(d){return k(d)===u},Le.isFragment=function(d){return k(d)===n},Le.isLazy=function(d){return k(d)===g},Le.isMemo=function(d){return k(d)===T},Le.isPortal=function(d){return k(d)===r},Le.isProfiler=function(d){return k(d)===i},Le.isStrictMode=function(d){return k(d)===o},Le.isSuspense=function(d){return k(d)===p},Le.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===l||d===i||d===o||d===p||d===w||typeof d=="object"&&d!==null&&(d.$$typeof===g||d.$$typeof===T||d.$$typeof===a||d.$$typeof===s||d.$$typeof===u||d.$$typeof===y||d.$$typeof===v||d.$$typeof===O||d.$$typeof===h)},Le.typeOf=k,Le}var Be={};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,u=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,w=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,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function k(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===i||N===o||N===p||N===w||typeof N=="object"&&N!==null&&(N.$$typeof===g||N.$$typeof===T||N.$$typeof===a||N.$$typeof===s||N.$$typeof===u||N.$$typeof===y||N.$$typeof===v||N.$$typeof===O||N.$$typeof===h)}function R(N){if(typeof N=="object"&&N!==null){var We=N.$$typeof;switch(We){case t:var Ke=N.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 u:case g:case T:case a:return qe;default:return We}}case r:return We}}}var d=c,S=l,E=s,M=a,$=t,H=u,U=n,m=g,j=T,I=r,W=i,J=o,de=p,Ce=!1;function lt(N){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(N)||R(N)===c}function z(N){return R(N)===l}function q(N){return R(N)===s}function le(N){return R(N)===a}function ee(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function se(N){return R(N)===u}function oe(N){return R(N)===n}function fe(N){return R(N)===g}function Z(N){return R(N)===T}function he(N){return R(N)===r}function we(N){return R(N)===i}function pe(N){return R(N)===o}function Oe(N){return R(N)===p}Be.AsyncMode=d,Be.ConcurrentMode=S,Be.ContextConsumer=E,Be.ContextProvider=M,Be.Element=$,Be.ForwardRef=H,Be.Fragment=U,Be.Lazy=m,Be.Memo=j,Be.Portal=I,Be.Profiler=W,Be.StrictMode=J,Be.Suspense=de,Be.isAsyncMode=lt,Be.isConcurrentMode=z,Be.isContextConsumer=q,Be.isContextProvider=le,Be.isElement=ee,Be.isForwardRef=se,Be.isFragment=oe,Be.isLazy=fe,Be.isMemo=Z,Be.isPortal=he,Be.isProfiler=we,Be.isStrictMode=pe,Be.isSuspense=Oe,Be.isValidElementType=k,Be.typeOf=R})()),Be}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 Sh(){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 w=0;w<l.length;w++)r.call(s,l[w])&&(c[l[w]]=s[l[w]])}}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 vh(){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 u in i)if(n(i,u)){var p;try{if(typeof i[u]!="function"){var w=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 w.name="Invariant Violation",w}p=i[u](a,u,c,s,null,t)}catch(g){p=g}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 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=Sh(),r=Ka(),n=Xl(),o=vh(),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,u="@@iterator";function p(z){var q=z&&(l&&z[l]||z[u]);if(typeof q=="function")return q}var w="<<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:k,element:R(),elementType:d(),instanceOf:S,node:H(),objectOf:M,oneOf:E,oneOfType:$,shape:m,exact:j};function g(z,q){return z===q?z!==0||1/z===1/q:z!==z&&q!==q}function h(z,q){this.message=z,this.data=q&&typeof q=="object"?q:{},this.stack=""}h.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var q={},le=0;function ee(oe,fe,Z,he,we,pe,Oe){if(he=he||w,pe=pe||Z,Oe!==r){if(c){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var We=he+":"+Z;!q[We]&&le<3&&(i("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+he+"`. 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."),q[We]=!0,le++)}}return fe[Z]==null?oe?fe[Z]===null?new h("The "+we+" `"+pe+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new h("The "+we+" `"+pe+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:z(fe,Z,he,we,pe)}var se=ee.bind(null,!1);return se.isRequired=ee.bind(null,!0),se}function v(z){function q(le,ee,se,oe,fe,Z){var he=le[ee],we=J(he);if(we!==z){var pe=de(he);return new h("Invalid "+oe+" `"+fe+"` of type "+("`"+pe+"` supplied to `"+se+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(q)}function O(){return y(a)}function k(z){function q(le,ee,se,oe,fe){if(typeof z!="function")return new h("Property `"+fe+"` of component `"+se+"` has invalid PropType notation inside arrayOf.");var Z=le[ee];if(!Array.isArray(Z)){var he=J(Z);return new h("Invalid "+oe+" `"+fe+"` of type "+("`"+he+"` supplied to `"+se+"`, expected an array."))}for(var we=0;we<Z.length;we++){var pe=z(Z,we,se,oe,fe+"["+we+"]",r);if(pe instanceof Error)return pe}return null}return y(q)}function R(){function z(q,le,ee,se,oe){var fe=q[le];if(!s(fe)){var Z=J(fe);return new h("Invalid "+se+" `"+oe+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement."))}return null}return y(z)}function d(){function z(q,le,ee,se,oe){var fe=q[le];if(!e.isValidElementType(fe)){var Z=J(fe);return new h("Invalid "+se+" `"+oe+"` of type "+("`"+Z+"` supplied to `"+ee+"`, expected a single ReactElement type."))}return null}return y(z)}function S(z){function q(le,ee,se,oe,fe){if(!(le[ee]instanceof z)){var Z=z.name||w,he=lt(le[ee]);return new h("Invalid "+oe+" `"+fe+"` of type "+("`"+he+"` supplied to `"+se+"`, expected ")+("instance of `"+Z+"`."))}return null}return y(q)}function E(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 q(le,ee,se,oe,fe){for(var Z=le[ee],he=0;he<z.length;he++)if(g(Z,z[he]))return null;var we=JSON.stringify(z,function(Oe,N){var We=de(N);return We==="symbol"?String(N):N});return new h("Invalid "+oe+" `"+fe+"` of value `"+String(Z)+"` "+("supplied to `"+se+"`, expected one of "+we+"."))}return y(q)}function M(z){function q(le,ee,se,oe,fe){if(typeof z!="function")return new h("Property `"+fe+"` of component `"+se+"` has invalid PropType notation inside objectOf.");var Z=le[ee],he=J(Z);if(he!=="object")return new h("Invalid "+oe+" `"+fe+"` of type "+("`"+he+"` supplied to `"+se+"`, expected an object."));for(var we in Z)if(n(Z,we)){var pe=z(Z,we,se,oe,fe+"."+we,r);if(pe instanceof Error)return pe}return null}return y(q)}function $(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 q=0;q<z.length;q++){var le=z[q];if(typeof le!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ce(le)+" at index "+q+"."),a}function ee(se,oe,fe,Z,he){for(var we=[],pe=0;pe<z.length;pe++){var Oe=z[pe],N=Oe(se,oe,fe,Z,he,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&we.push(N.data.expectedType)}var We=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new h("Invalid "+Z+" `"+he+"` supplied to "+("`"+fe+"`"+We+"."))}return y(ee)}function H(){function z(q,le,ee,se,oe){return I(q[le])?null:new h("Invalid "+se+" `"+oe+"` supplied to "+("`"+ee+"`, expected a ReactNode."))}return y(z)}function U(z,q,le,ee,se){return new h((z||"React class")+": "+q+" type `"+le+"."+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+se+"`.")}function m(z){function q(le,ee,se,oe,fe){var Z=le[ee],he=J(Z);if(he!=="object")return new h("Invalid "+oe+" `"+fe+"` of type `"+he+"` "+("supplied to `"+se+"`, expected `object`."));for(var we in z){var pe=z[we];if(typeof pe!="function")return U(se,oe,fe,we,de(pe));var Oe=pe(Z,we,se,oe,fe+"."+we,r);if(Oe)return Oe}return null}return y(q)}function j(z){function q(le,ee,se,oe,fe){var Z=le[ee],he=J(Z);if(he!=="object")return new h("Invalid "+oe+" `"+fe+"` of type `"+he+"` "+("supplied to `"+se+"`, expected `object`."));var we=t({},le[ee],z);for(var pe in we){var Oe=z[pe];if(n(z,pe)&&typeof Oe!="function")return U(se,oe,fe,pe,de(Oe));if(!Oe)return new h("Invalid "+oe+" `"+fe+"` key `"+pe+"` supplied to `"+se+"`.\nBad object: "+JSON.stringify(le[ee],null," ")+`
7
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var N=Oe(Z,pe,se,oe,fe+"."+pe,r);if(N)return N}return null}return y(q)}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 q=p(z);if(q){var le=q.call(z),ee;if(q!==z.entries){for(;!(ee=le.next()).done;)if(!I(ee.value))return!1}else for(;!(ee=le.next()).done;){var se=ee.value;if(se&&!I(se[1]))return!1}}else return!1;return!0;default:return!1}}function W(z,q){return z==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function J(z){var q=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":W(q,z)?"symbol":q}function de(z){if(typeof z>"u"||z===null)return""+z;var q=J(z);if(q==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return q}function Ce(z){var q=de(z);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function lt(z){return!z.constructor||!z.constructor.name?w: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,u,p){if(p!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}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 Ie=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 Oh(){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"),w=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case r:case o:case n:case c:case l:case w: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 y}}case t:return y}}}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 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)===u},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===u||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 kh(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case n:case i:case o:case l:case u:case T:return h;default:switch(h=h&&h.$$typeof,h){case s:case c:case w:case p:return h;case a:return h;default:return y}}case r:return y}}}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"),w=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=w,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)===w},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===w||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=Oh():Bo.exports=kh()),Bo.exports}var si=Ph();function _r(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(Ct.isValidElement(e)||si.isValidElementType(e)||!_r(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Jl(e[r])}),t}function $t(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return _r(e)&&_r(t)&&Object.keys(t).forEach(o=>{Ct.isValidElement(t[o])||si.isValidElementType(t[o])?n[o]=t[o]:_r(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_r(e[o])?n[o]=$t(e[o],t[o],r):r.clone?n[o]=_r(t[o])?Jl(t[o]):t[o]:n[o]=t[o]}),n}function oo(e,t){return t?$t(e,t,{clone:!1}):e}const $r=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 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 Si={xs:0,sm:600,md:900,lg:1200,xl:1536},sc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Si[e]}px)`},Dh={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Si[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Rr(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||Si).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 vi(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=vi(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=vi(c,n)||{};return Rr(a,s,p=>{let w=ci(l,o,p);return p===w&&typeof p=="string"&&(w=ci(l,o,`${t}${p==="default"?"":rn(p)}`,p)),r===!1?w:{[r]:w}})};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=vi(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
+ `)):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
+ `)));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 Rr(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 zt(e){return typeof e!="number"?e:`${e}px solid`}function Gt(e,t){return Ze({prop:e,themeKey:"borders",transform:t})}const qh=Gt("border",zt),Wh=Gt("borderTop",zt),Gh=Gt("borderRight",zt),Vh=Gt("borderBottom",zt),Yh=Gt("borderLeft",zt),Kh=Gt("borderColor"),Xh=Gt("borderTopColor"),Qh=Gt("borderRightColor"),Zh=Gt("borderBottomColor"),Jh=Gt("borderLeftColor"),e0=Gt("outline",zt),t0=Gt("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 Rr(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 Rr(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 Rr(e,e.columnGap,r)}return null};Ri.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$r}:{};Ri.filterProps=["columnGap"];const Oi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:bo(t,n)});return Rr(e,e.rowGap,r)}return null};Oi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$r}:{};Oi.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,Oi,r0,n0,o0,i0,a0,s0,c0,l0,u0);function Sn(e,t){return t==="grey"?t:e}const f0=Ze({prop:"color",themeKey:"palette",transform:Sn}),d0=Ze({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Sn}),p0=Ze({prop:"backgroundColor",themeKey:"palette",transform:Sn});_i(f0,d0,p0);function Nt(e){return e<=1&&e!==0?`${e*100}%`:e}const h0=Ze({prop:"width",transform:Nt}),Qa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Si[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Nt(r)}};return Rr(e,e.maxWidth,t)}return null};Qa.filterProps=["maxWidth"];const m0=Ze({prop:"minWidth",transform:Nt}),g0=Ze({prop:"height",transform:Nt}),y0=Ze({prop:"maxHeight",transform:Nt}),b0=Ze({prop:"minHeight",transform:Nt});Ze({prop:"size",cssProperty:"width",transform:Nt});Ze({prop:"size",cssProperty:"height",transform:Nt});const w0=Ze({prop:"boxSizing"});_i(h0,Qa,m0,g0,y0,b0,w0);const ki={border:{themeKey:"borders",transform:zt},borderTop:{themeKey:"borders",transform:zt},borderRight:{themeKey:"borders",transform:zt},borderBottom:{themeKey:"borders",transform:zt},borderLeft:{themeKey:"borders",transform:zt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Sn},backgroundColor:{themeKey:"palette",transform:Sn},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: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:Nt},maxWidth:{style:Qa},minWidth:{transform:Nt},height:{transform:Nt},maxHeight:{transform:Nt},minHeight:{transform:Nt},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 S0(e,t){return typeof e=="function"?e(t):e}function v0(){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 w=vi(o,l)||{};return p?p(a):Rr(a,n,g=>{let h=ci(w,u,g);return g===h&&typeof g=="string"&&(h=ci(w,u,`${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??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=$h(o.breakpoints),p=Object.keys(u);let w=u;return Object.keys(l).forEach(T=>{const g=S0(l[T],o);if(g!=null)if(typeof g=="object")if(a[T])w=oo(w,e(T,g,o,a));else{const h=Rr({theme:o},g,y=>({[T]:y}));E0(h,g)?w[T]=t({sx:g,theme:o,nested:!0}):w=oo(w,h)}else w=oo(w,e(T,g,o,a))}),!i&&o.modularCssLayers?{"@layer sx":ac(o,cc(p,w))}:ac(o,cc(p,w))}return Array.isArray(n)?n.map(s):s(n)}return t}const Tn=v0();Tn.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,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=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=Oa(e),n=Oa(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 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=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 je(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 Oa(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"},cn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ln={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},zn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},un={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},fn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},dn={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 ka=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:un[200],light:un[50],dark:un[400]}:{main:un[700],light:un[400],dark:un[800]}}function O0(e="light"){return e==="dark"?{main:cn[200],light:cn[50],dark:cn[400]}:{main:cn[500],light:cn[300],dark:cn[700]}}function k0(e="light"){return e==="dark"?{main:ln[500],light:ln[300],dark:ln[700]}:{main:ln[700],light:ln[400],dark:ln[800]}}function P0(e="light"){return e==="dark"?{main:fn[400],light:fn[300],dark:fn[700]}:{main:fn[700],light:fn[500],dark:fn[900]}}function I0(e="light"){return e==="dark"?{main:dn[400],light:dn[300],dark:dn[700]}:{main:dn[800],light:dn[500],dark:dn[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||O0(t),c=e.error||k0(t),l=e.info||P0(t),u=e.success||I0(t),p=e.warning||M0(t);function w(y){if(o)return N0(y);const v=uc(y,ka.text.primary)>=r?ka.text.primary:ou.text.primary;if(process.env.NODE_ENV!=="production"){const O=uc(y,v);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${v} on ${y}`,"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:y,name:v,mainShade:O=500,lightShade:k=300,darkShade:R=700})=>{if(y={...y},!y.main&&y[O]&&(y.main=y[O]),!y.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 y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
16
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
17
+
18
+ Did you intend to use one of the following approaches?
19
+
20
+ import { green } from "@mui/material/colors";
21
+
22
+ const theme1 = createTheme({ palette: {
23
+ primary: green,
24
+ } });
25
+
26
+ const theme2 = createTheme({ palette: {
27
+ primary: { main: green[500] },
28
+ } });`:Nr(12,v?` (${v})`:"",JSON.stringify(y.main)));return o?(dc(o,y,"light",k,n),dc(o,y,"dark",R,n)):(fc(y,"light",k,n),fc(y,"dark",R,n)),y.contrastText||(y.contrastText=w(y.main)),y};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.`)),$t({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:u,name:"success"}),grey:A0,contrastThreshold:r,getContrastText:w,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,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 L0=Ct.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ie.node,Ie.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=Ct.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(w){return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${r})`}function c(w){return`@media (max-width:${(typeof t[w]=="number"?t[w]:w)-n/100}${r})`}function l(w,T){const g=a.indexOf(T);return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:T)-n/100}${r})`}function u(w){return a.indexOf(w)+1<a.length?l(w,a[a.indexOf(w)+1]):s(w)}function p(w){const T=a.indexOf(w);return T===0?s(a[1]):T===a.length-1?c(a[T]):l(w,a[a.indexOf(w)+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 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=$t({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((u,p)=>$t(u,p),l),l.unstable_sxConfig={...ki,...a?.unstable_sxConfig},l.unstable_sx=function(p){return Tn({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 u=`--${r?`${r}-`:""}${s.join("-")}`,p=G0(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 V0(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:w}=ea(l,t);let T=w;const g={},{[c]:h,...y}=a;if(Object.entries(y||{}).forEach(([R,d])=>{const{vars:S,css:E,varsWithDefaults:M}=ea(d,t);T=$t(T,M),g[R]={css:E,vars:S}}),h){const{css:R,vars:d,varsWithDefaults:S}=ea(h,t);T=$t(T,S),g[c]={css:R,vars:d}}function v(R,d){let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),R){if(S==="media")return e.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${a[R]?.palette?.mode||R})`]:{":root":d}};if(S)return e.defaultColorScheme===R?`:root, ${S.replace("%s",String(R))}`:S.replace("%s",String(R))}return":root"}return{vars:T,generateThemeVars:()=>{let R={...u};return Object.entries(g).forEach(([,{vars:d}])=>{R=$t(R,d)}),R},generateStyleSheets:()=>{const R=[],d=e.defaultColorScheme||"light";function S($,H){Object.keys(H).length&&R.push(typeof $=="string"?{[$]:{...H}}:$)}S(r(void 0,{...p}),p);const{[d]:E,...M}=g;if(E){const{css:$}=E,H=a[d]?.palette?.mode,U=!n&&H?{colorScheme:H,...$}:{...$};S(r(d,{...U}),U)}return Object.entries(M).forEach(([$,{css:H}])=>{const U=a[$]?.palette?.mode,m=!n&&U?{colorScheme:U,...H}:{...H};S(r($,{...m}),m)}),i&&R.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)"}}),R}}}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: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 w=n/14,T=u||(y=>`${y/c*w}rem`),g=(y,v,O,k,R)=>({fontFamily:r,fontWeight:y,fontSize:T(v),lineHeight:O,...r===yc?{letterSpacing:`${em(k/v)}em`}:{},...R,...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 $t({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 u=w=>typeof w=="string",p=w=>!Number.isNaN(parseFloat(w));!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 um={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fm(e){return _r(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]:_r(s)&&(n[a]={...s},r(n[a]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
31
+
32
+ const theme = ${JSON.stringify(t,null,2)};
33
+
34
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
35
+ theme.transitions = createTransitions(theme.transitions || {});
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,...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.":Nr(20));const p=Ja({...i,colorSpace:l}),w=au(e);let T=$t(w,{mixins:J0(w.breakpoints,n),palette:p,shadows:im.slice(),typography:tm(p,s),transitions:lm(a),zIndex:{...um}});if(T=$t(T,u),T=t.reduce((g,h)=>$t(g,h),T),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],h=(y,v)=>{let O;for(O in y){const k=y[O];if(g.includes(O)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const R=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(y,null,2),"",`Instead, you need to use the '&.${R}' syntax:`,JSON.stringify({root:{[`&.${R}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
38
+ `))}y[O]={}}}};Object.keys(T.components).forEach(y=>{const v=T.components[y].styleOverrides;v&&y.startsWith("Mui")&&h(v,y)})}return T.unstable_sxConfig={...ki,...u?.unstable_sxConfig},T.unstable_sx=function(h){return Tn({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 D(e,t,r){!e[t]&&r&&(e[t]=r)}function ro(e){return typeof e!="string"||!e.startsWith("hsl")?e:tu(e)}function Er(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 Sm(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ur=e=>{try{return e()}catch{}},vm=(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",...u}=e,p=Object.keys(r)[0],w=n||(r.light&&p!=="light"?"light":p),T=vm(i),{[w]:g,light:h,dark:y,...v}=r,O={...v};let k=g;if((w==="dark"&&!("dark"in r)||w==="light"&&!("light"in r))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${w}\` option is either missing or invalid.`:Nr(21,w));let R;a&&(R="oklch");const d=ta(R,O,k,u,w);h&&!O.light&&ta(R,O,h,void 0,"light"),y&&!O.dark&&ta(R,O,y,void 0,"dark");let S={defaultColorScheme:w,...d,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:l,getCssVar:T,colorSchemes:O,font:{...Y0(d.typography),...d.font},spacing:Sm(u.spacing)};Object.keys(S.colorSchemes).forEach(U=>{const m=S.colorSchemes[U].palette,j=W=>{const J=W.split("-"),de=J[1],Ce=J[2];return T(W,m[de][Ce])};m.mode==="light"&&(D(m.common,"background","#fff"),D(m.common,"onBackground","#000")),m.mode==="dark"&&(D(m.common,"background","#000"),D(m.common,"onBackground","#fff"));function I(W,J,de){if(R){let Ce;return W===Vr&&(Ce=`transparent ${((1-de)*100).toFixed(0)}%`),W===Ue&&(Ce=`#000 ${(de*100).toFixed(0)}%`),W===je&&(Ce=`#fff ${(de*100).toFixed(0)}%`),`color-mix(in ${R}, ${J}, ${Ce})`}return W(J,de)}if(Em(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){D(m.Alert,"errorColor",I(Ue,m.error.light,.6)),D(m.Alert,"infoColor",I(Ue,m.info.light,.6)),D(m.Alert,"successColor",I(Ue,m.success.light,.6)),D(m.Alert,"warningColor",I(Ue,m.warning.light,.6)),D(m.Alert,"errorFilledBg",j("palette-error-main")),D(m.Alert,"infoFilledBg",j("palette-info-main")),D(m.Alert,"successFilledBg",j("palette-success-main")),D(m.Alert,"warningFilledBg",j("palette-warning-main")),D(m.Alert,"errorFilledColor",ur(()=>m.getContrastText(m.error.main))),D(m.Alert,"infoFilledColor",ur(()=>m.getContrastText(m.info.main))),D(m.Alert,"successFilledColor",ur(()=>m.getContrastText(m.success.main))),D(m.Alert,"warningFilledColor",ur(()=>m.getContrastText(m.warning.main))),D(m.Alert,"errorStandardBg",I(je,m.error.light,.9)),D(m.Alert,"infoStandardBg",I(je,m.info.light,.9)),D(m.Alert,"successStandardBg",I(je,m.success.light,.9)),D(m.Alert,"warningStandardBg",I(je,m.warning.light,.9)),D(m.Alert,"errorIconColor",j("palette-error-main")),D(m.Alert,"infoIconColor",j("palette-info-main")),D(m.Alert,"successIconColor",j("palette-success-main")),D(m.Alert,"warningIconColor",j("palette-warning-main")),D(m.AppBar,"defaultBg",j("palette-grey-100")),D(m.Avatar,"defaultBg",j("palette-grey-400")),D(m.Button,"inheritContainedBg",j("palette-grey-300")),D(m.Button,"inheritContainedHoverBg",j("palette-grey-A100")),D(m.Chip,"defaultBorder",j("palette-grey-400")),D(m.Chip,"defaultAvatarColor",j("palette-grey-700")),D(m.Chip,"defaultIconColor",j("palette-grey-700")),D(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),D(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),D(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),D(m.LinearProgress,"primaryBg",I(je,m.primary.main,.62)),D(m.LinearProgress,"secondaryBg",I(je,m.secondary.main,.62)),D(m.LinearProgress,"errorBg",I(je,m.error.main,.62)),D(m.LinearProgress,"infoBg",I(je,m.info.main,.62)),D(m.LinearProgress,"successBg",I(je,m.success.main,.62)),D(m.LinearProgress,"warningBg",I(je,m.warning.main,.62)),D(m.Skeleton,"bg",R?I(Vr,m.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),D(m.Slider,"primaryTrack",I(je,m.primary.main,.62)),D(m.Slider,"secondaryTrack",I(je,m.secondary.main,.62)),D(m.Slider,"errorTrack",I(je,m.error.main,.62)),D(m.Slider,"infoTrack",I(je,m.info.main,.62)),D(m.Slider,"successTrack",I(je,m.success.main,.62)),D(m.Slider,"warningTrack",I(je,m.warning.main,.62));const W=R?I(Ue,m.background.default,.6825):Fo(m.background.default,.8);D(m.SnackbarContent,"bg",W),D(m.SnackbarContent,"color",ur(()=>R?ka.text.primary:m.getContrastText(W))),D(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),D(m.StepConnector,"border",j("palette-grey-400")),D(m.StepContent,"border",j("palette-grey-400")),D(m.Switch,"defaultColor",j("palette-common-white")),D(m.Switch,"defaultDisabledColor",j("palette-grey-100")),D(m.Switch,"primaryDisabledColor",I(je,m.primary.main,.62)),D(m.Switch,"secondaryDisabledColor",I(je,m.secondary.main,.62)),D(m.Switch,"errorDisabledColor",I(je,m.error.main,.62)),D(m.Switch,"infoDisabledColor",I(je,m.info.main,.62)),D(m.Switch,"successDisabledColor",I(je,m.success.main,.62)),D(m.Switch,"warningDisabledColor",I(je,m.warning.main,.62)),D(m.TableCell,"border",I(je,I(Vr,m.divider,1),.88)),D(m.Tooltip,"bg",I(Vr,m.grey[700],.92))}if(m.mode==="dark"){D(m.Alert,"errorColor",I(je,m.error.light,.6)),D(m.Alert,"infoColor",I(je,m.info.light,.6)),D(m.Alert,"successColor",I(je,m.success.light,.6)),D(m.Alert,"warningColor",I(je,m.warning.light,.6)),D(m.Alert,"errorFilledBg",j("palette-error-dark")),D(m.Alert,"infoFilledBg",j("palette-info-dark")),D(m.Alert,"successFilledBg",j("palette-success-dark")),D(m.Alert,"warningFilledBg",j("palette-warning-dark")),D(m.Alert,"errorFilledColor",ur(()=>m.getContrastText(m.error.dark))),D(m.Alert,"infoFilledColor",ur(()=>m.getContrastText(m.info.dark))),D(m.Alert,"successFilledColor",ur(()=>m.getContrastText(m.success.dark))),D(m.Alert,"warningFilledColor",ur(()=>m.getContrastText(m.warning.dark))),D(m.Alert,"errorStandardBg",I(Ue,m.error.light,.9)),D(m.Alert,"infoStandardBg",I(Ue,m.info.light,.9)),D(m.Alert,"successStandardBg",I(Ue,m.success.light,.9)),D(m.Alert,"warningStandardBg",I(Ue,m.warning.light,.9)),D(m.Alert,"errorIconColor",j("palette-error-main")),D(m.Alert,"infoIconColor",j("palette-info-main")),D(m.Alert,"successIconColor",j("palette-success-main")),D(m.Alert,"warningIconColor",j("palette-warning-main")),D(m.AppBar,"defaultBg",j("palette-grey-900")),D(m.AppBar,"darkBg",j("palette-background-paper")),D(m.AppBar,"darkColor",j("palette-text-primary")),D(m.Avatar,"defaultBg",j("palette-grey-600")),D(m.Button,"inheritContainedBg",j("palette-grey-800")),D(m.Button,"inheritContainedHoverBg",j("palette-grey-700")),D(m.Chip,"defaultBorder",j("palette-grey-700")),D(m.Chip,"defaultAvatarColor",j("palette-grey-300")),D(m.Chip,"defaultIconColor",j("palette-grey-300")),D(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),D(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),D(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),D(m.LinearProgress,"primaryBg",I(Ue,m.primary.main,.5)),D(m.LinearProgress,"secondaryBg",I(Ue,m.secondary.main,.5)),D(m.LinearProgress,"errorBg",I(Ue,m.error.main,.5)),D(m.LinearProgress,"infoBg",I(Ue,m.info.main,.5)),D(m.LinearProgress,"successBg",I(Ue,m.success.main,.5)),D(m.LinearProgress,"warningBg",I(Ue,m.warning.main,.5)),D(m.Skeleton,"bg",R?I(Vr,m.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),D(m.Slider,"primaryTrack",I(Ue,m.primary.main,.5)),D(m.Slider,"secondaryTrack",I(Ue,m.secondary.main,.5)),D(m.Slider,"errorTrack",I(Ue,m.error.main,.5)),D(m.Slider,"infoTrack",I(Ue,m.info.main,.5)),D(m.Slider,"successTrack",I(Ue,m.success.main,.5)),D(m.Slider,"warningTrack",I(Ue,m.warning.main,.5));const W=R?I(je,m.background.default,.985):Fo(m.background.default,.98);D(m.SnackbarContent,"bg",W),D(m.SnackbarContent,"color",ur(()=>R?ou.text.primary:m.getContrastText(W))),D(m.SpeedDialAction,"fabHoverBg",Fo(m.background.paper,.15)),D(m.StepConnector,"border",j("palette-grey-600")),D(m.StepContent,"border",j("palette-grey-600")),D(m.Switch,"defaultColor",j("palette-grey-300")),D(m.Switch,"defaultDisabledColor",j("palette-grey-600")),D(m.Switch,"primaryDisabledColor",I(Ue,m.primary.main,.55)),D(m.Switch,"secondaryDisabledColor",I(Ue,m.secondary.main,.55)),D(m.Switch,"errorDisabledColor",I(Ue,m.error.main,.55)),D(m.Switch,"infoDisabledColor",I(Ue,m.info.main,.55)),D(m.Switch,"successDisabledColor",I(Ue,m.success.main,.55)),D(m.Switch,"warningDisabledColor",I(Ue,m.warning.main,.55)),D(m.TableCell,"border",I(Ue,I(Vr,m.divider,1),.68)),D(m.Tooltip,"bg",I(Vr,m.grey[700],.92))}Er(m.background,"default"),Er(m.background,"paper"),Er(m.common,"background"),Er(m.common,"onBackground"),Er(m,"divider"),Object.keys(m).forEach(W=>{const J=m[W];W!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&D(m[W],"mainChannel",to(ro(J.main))),J.light&&D(m[W],"lightChannel",to(ro(J.light))),J.dark&&D(m[W],"darkChannel",to(ro(J.dark))),J.contrastText&&D(m[W],"contrastTextChannel",to(ro(J.contrastText))),W==="text"&&(Er(m[W],"primary"),Er(m[W],"secondary")),W==="action"&&(J.active&&Er(m[W],"active"),J.selected&&Er(m[W],"selected")))})}),S=t.reduce((U,m)=>$t(U,m),S);const E={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:wm(S),enableContrastVars:a},{vars:M,generateThemeVars:$,generateStyleSheets:H}=V0(S,E);return S.vars=M,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([U,m])=>{S[U]=m}),S.generateThemeVars=$,S.generateStyleSheets=H,S.generateSpacing=function(){return nn.createSpacing(u.spacing,Xa(this))},S.getColorSchemeSelector=K0(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...ki,...u?.unstable_sxConfig},S.unstable_sx=function(m){return Tn({sx:m,theme:this})},S.toRuntimeSource=su,S}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 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),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 Sc(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 Sc(e,e.render,"ForwardRef");case si.Memo:return Sc(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 Om=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 km(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=Om,rootShouldForwardProp:n=ra,slotShouldForwardProp:o=ra}=e;function i(s){Pm(s,t,r)}return(s,c={})=>{$0(s,S=>S.filter(E=>E!==Tn));const{name:l,slot:u,skipVariantsResolver:p,skipSx:w,overridesResolver:T=km(du(u)),...g}=c,h=l&&l.startsWith("Mui")||u?"components":"custom",y=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=w||!1;let O=ra;u==="Root"||u==="root"?O=n:u?O=o:$m(s)&&(O=void 0);const k=D0(s,{shouldForwardProp:O,label:Nm(l,u),...g}),R=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(M){return ni(M,S,M.theme.modularCssLayers?h:void 0)};if(_r(S)){const E=Rm(S);return function($){return E.variants?ni($,E,$.theme.modularCssLayers?h:void 0):$.theme.modularCssLayers?Qr(E.style,h):E.style}}return S},d=(...S)=>{const E=[],M=S.map(R),$=[];if(E.push(i),l&&T&&$.push(function(j){const W=j.theme.components?.[l]?.styleOverrides;if(!W)return null;const J={};for(const de in W)J[de]=ni(j,W[de],j.theme.modularCssLayers?"theme":void 0);return T(j,J)}),l&&!y&&$.push(function(j){const W=j.theme?.components?.[l]?.variants;return W?fu(j,W,[],j.theme.modularCssLayers?"theme":void 0):null}),v||$.push(Tn),Array.isArray(M[0])){const m=M.shift(),j=new Array(E.length).fill(""),I=new Array($.length).fill("");let W;W=[...j,...m,...I],W.raw=[...j,...m.raw,...I],E.unshift(W)}const H=[...E,...M,...$],U=k(...H);return s.muiName&&(U.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(U.displayName=Mm(l,u,s)),U};return k.withConfig&&(d.withConfig=k.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",mr=Im({themeId:Cm,defaultTheme:_m,rootShouldForwardProp:Bm}),ts=nn.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(Ie.node,Ie.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`
40
+ 0% {
41
+ transform: rotate(0deg);
42
+ }
43
+
44
+ 100% {
45
+ transform: rotate(360deg);
46
+ }
47
+ `,Na=nn.keyframes`
48
+ 0% {
49
+ stroke-dasharray: 1px, 200px;
50
+ stroke-dashoffset: 0;
51
+ }
52
+
53
+ 50% {
54
+ stroke-dasharray: 100px, 200px;
55
+ stroke-dashoffset: -15px;
56
+ }
57
+
58
+ 100% {
59
+ stroke-dasharray: 1px, 200px;
60
+ stroke-dashoffset: -126px;
61
+ }
62
+ `,Wm=typeof Ma!="string"?nn.css`
63
+ animation: ${Ma} 1.4s linear infinite;
64
+ `:null,Gm=typeof Na!="string"?nn.css`
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=mr("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=mr("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Xm=mr("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=mr("circle",{name:"MuiCircularProgress",slot:"Track"})(ts(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),wn=Ct.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:u=3.6,value:p=0,variant:w="indeterminate",...T}=n,g={...n,color:i,disableShrink:a,size:c,thickness:u,value:p,variant:w,enableTrackSlot:s},h=Vm(g),y={},v={},O={};if(w==="determinate"){const k=2*Math.PI*((Zt-u)/2);y.strokeDasharray=k.toFixed(3),O["aria-valuenow"]=Math.round(p),y.strokeDashoffset=`${((100-p)/100*k).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-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,Jn.jsx(Xm,{className:h.circle,style:y,ownerState:g,cx:Zt,cy:Zt,r:(Zt-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(wn.propTypes={classes:Ie.object,className:Ie.string,color:Ie.oneOfType([Ie.oneOf(["inherit","primary","secondary","error","info","success","warning"]),Ie.string]),disableShrink:Ah(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 ne.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:Y(x.CardContent,{children:[Y(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):"}),Y(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&&Y(x.Typography,{variant:"body2",sx:{mt:1},children:[C("strong",{children:"Error ID:"})," ",o]})]}),Y(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&&Y(x.Box,{sx:{mt:2},children:[C(x.Typography,{variant:"h6",sx:{mb:1},children:"Error information"}),Y(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 Zm=(e,t)=>C(rs,{resetKeys:t,children:e});var no={exports:{}};no.exports;var vc;function Jm(){return vc||(vc=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]",w="[object Error]",T="[object Function]",g="[object GeneratorFunction]",h="[object Map]",y="[object Number]",v="[object Object]",O="[object Promise]",k="[object RegExp]",R="[object Set]",d="[object String]",S="[object Symbol]",E="[object WeakMap]",M="[object ArrayBuffer]",$="[object DataView]",H="[object Float32Array]",U="[object Float64Array]",m="[object Int8Array]",j="[object Int16Array]",I="[object Int32Array]",W="[object Uint8Array]",J="[object Uint8ClampedArray]",de="[object Uint16Array]",Ce="[object Uint32Array]",lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,q=/^\./,le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,se=/\\(\\)?/g,oe=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,Z={};Z[H]=Z[U]=Z[m]=Z[j]=Z[I]=Z[W]=Z[J]=Z[de]=Z[Ce]=!0,Z[c]=Z[l]=Z[M]=Z[u]=Z[$]=Z[p]=Z[w]=Z[T]=Z[h]=Z[y]=Z[v]=Z[k]=Z[R]=Z[d]=Z[E]=!1;var he=typeof Mo=="object"&&Mo&&Mo.Object===Object&&Mo,we=typeof self=="object"&&self&&self.Object===Object&&self,pe=he||we||Function("return this")(),Oe=t&&!t.nodeType&&t,N=Oe&&!0&&e&&!e.nodeType&&e,We=N&&N.exports===Oe,Ke=We&&he.process,qe=(function(){try{return Ke&&Ke.binding("util")}catch{}})(),nr=qe&&qe.isTypedArray;function kt(f,b,A){switch(A.length){case 0:return f.call(b);case 1:return f.call(b,A[0]);case 2:return f.call(b,A[0],A[1]);case 3:return f.call(b,A[0],A[1],A[2])}return f.apply(b,A)}function Pt(f,b){for(var A=-1,B=f?f.length:0,te=Array(B);++A<B;)te[A]=b(f[A],A,f);return te}function or(f,b){for(var A=-1,B=b.length,te=f.length;++A<B;)f[te+A]=b[A];return f}function ir(f,b){for(var A=-1,B=f?f.length:0;++A<B;)if(b(f[A],A,f))return!0;return!1}function Fr(f){return function(b){return b?.[f]}}function Ur(f,b){var A=f.length;for(f.sort(b);A--;)f[A]=f[A].value;return f}function Nn(f,b){for(var A=-1,B=Array(f);++A<f;)B[A]=b(A);return B}function gr(f){return function(b){return f(b)}}function ar(f,b){return f?.[b]}function Lt(f){var b=!1;if(f!=null&&typeof f.toString!="function")try{b=!!(f+"")}catch{}return b}function Vt(f){var b=-1,A=Array(f.size);return f.forEach(function(B,te){A[++b]=[te,B]}),A}function jr(f,b){return function(A){return f(b(A))}}function on(f){var b=-1,A=Array(f.size);return f.forEach(function(B){A[++b]=B}),A}var Yt=Array.prototype,Bt=Function.prototype,vt=Object.prototype,sr=pe["__core-js_shared__"],Kt=(function(){var f=/[^.]+$/.exec(sr&&sr.keys&&sr.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),xt=Bt.toString,nt=vt.hasOwnProperty,ut=vt.toString,zr=RegExp("^"+xt.call(nt).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Or=pe.Symbol,Xt=pe.Uint8Array,yr=vt.propertyIsEnumerable,an=Yt.splice,L=Or?Or.isConcatSpreadable:void 0,F=jr(Object.keys,Object),X=Math.max,Q=sn(pe,"DataView"),ae=sn(pe,"Map"),ue=sn(pe,"Promise"),Ee=sn(pe,"Set"),ge=sn(pe,"WeakMap"),Ae=sn(Object,"create"),Se=Wr(Q),It=Wr(ae),gt=Wr(ue),Je=Wr(Ee),cr=Wr(ge),Mt=Or?Or.prototype:void 0,Hr=Mt?Mt.valueOf:void 0,Dn=Mt?Mt.toString:void 0;function st(f){var b=-1,A=f?f.length:0;for(this.clear();++b<A;){var B=f[b];this.set(B[0],B[1])}}function wo(){this.__data__=Ae?Ae(null):{}}function Eo(f){return this.has(f)&&delete this.__data__[f]}function So(f){var b=this.__data__;if(Ae){var A=b[f];return A===o?void 0:A}return nt.call(b,f)?b[f]:void 0}function vo(f){var b=this.__data__;return Ae?b[f]!==void 0:nt.call(b,f)}function $i(f,b){var A=this.__data__;return A[f]=Ae&&b===void 0?o:b,this}st.prototype.clear=wo,st.prototype.delete=Eo,st.prototype.get=So,st.prototype.has=vo,st.prototype.set=$i;function re(f){var b=-1,A=f?f.length:0;for(this.clear();++b<A;){var B=f[b];this.set(B[0],B[1])}}function _(){this.__data__=[]}function V(f){var b=this.__data__,A=To(b,f);if(A<0)return!1;var B=b.length-1;return A==B?b.pop():an.call(b,A,1),!0}function ie(f){var b=this.__data__,A=To(b,f);return A<0?void 0:b[A][1]}function Ge(f){return To(this.__data__,f)>-1}function at(f,b){var A=this.__data__,B=To(A,f);return B<0?A.push([f,b]):A[B][1]=b,this}re.prototype.clear=_,re.prototype.delete=V,re.prototype.get=ie,re.prototype.has=Ge,re.prototype.set=at;function Me(f){var b=-1,A=f?f.length:0;for(this.clear();++b<A;){var B=f[b];this.set(B[0],B[1])}}function ft(){this.__data__={hash:new st,map:new(ae||re),string:new st}}function Qt(f){return _o(this,f).delete(f)}function kr(f){return _o(this,f).get(f)}function $n(f){return _o(this,f).has(f)}function ot(f,b){return _o(this,f).set(f,b),this}Me.prototype.clear=ft,Me.prototype.delete=Qt,Me.prototype.get=kr,Me.prototype.has=$n,Me.prototype.set=ot;function qr(f){var b=-1,A=f?f.length:0;for(this.__data__=new Me;++b<A;)this.add(f[b])}function xo(f){return this.__data__.set(f,o),this}function tf(f){return this.__data__.has(f)}qr.prototype.add=qr.prototype.push=xo,qr.prototype.has=tf;function br(f){this.__data__=new re(f)}function rf(){this.__data__=new re}function nf(f){return this.__data__.delete(f)}function of(f){return this.__data__.get(f)}function af(f){return this.__data__.has(f)}function sf(f,b){var A=this.__data__;if(A instanceof re){var B=A.__data__;if(!ae||B.length<r-1)return B.push([f,b]),this;A=this.__data__=new Me(B)}return A.set(f,b),this}br.prototype.clear=rf,br.prototype.delete=nf,br.prototype.get=of,br.prototype.has=af,br.prototype.set=sf;function cf(f,b){var A=Ir(f)||ji(f)?Nn(f.length,String):[],B=A.length,te=!!B;for(var K in f)nt.call(f,K)&&!(te&&(K=="length"||Bi(K,B)))&&A.push(K);return A}function To(f,b){for(var A=f.length;A--;)if(Ui(f[A][0],b))return A;return-1}var lf=kf(df);function uf(f,b,A,B,te){var K=-1,ce=f.length;for(A||(A=$f),te||(te=[]);++K<ce;){var Ne=f[K];A(Ne)?or(te,Ne):te[te.length]=Ne}return te}var ff=Pf();function df(f,b){return f&&ff(f,b,Oo)}function ds(f,b){b=Co(b,f)?[b]:ps(b);for(var A=0,B=b.length;f!=null&&A<B;)f=f[Ao(b[A++])];return A&&A==B?f:void 0}function pf(f){return ut.call(f)}function hf(f,b){return f!=null&&b in Object(f)}function Li(f,b,A,B,te){return f===b?!0:f==null||b==null||!Bn(f)&&!Ro(b)?f!==f&&b!==b:mf(f,b,Li,A,B,te)}function mf(f,b,A,B,te,K){var ce=Ir(f),Ne=Ir(b),Re=l,Ve=l;ce||(Re=Pr(f),Re=Re==c?v:Re),Ne||(Ve=Pr(b),Ve=Ve==c?v:Ve);var Tt=Re==v&&!Lt(f),_t=Ve==v&&!Lt(b),yt=Re==Ve;if(yt&&!Tt)return K||(K=new br),ce||Hf(f)?hs(f,b,A,B,te,K):If(f,b,Re,A,B,te,K);if(!(te&a)){var Ft=Tt&&nt.call(f,"__wrapped__"),Ut=_t&&nt.call(b,"__wrapped__");if(Ft||Ut){var Mr=Ft?f.value():f,wr=Ut?b.value():b;return K||(K=new br),A(Mr,wr,B,te,K)}}return yt?(K||(K=new br),Mf(f,b,A,B,te,K)):!1}function gf(f,b,A,B){var te=A.length,K=te;if(f==null)return!K;for(f=Object(f);te--;){var ce=A[te];if(ce[2]?ce[1]!==f[ce[0]]:!(ce[0]in f))return!1}for(;++te<K;){ce=A[te];var Ne=ce[0],Re=f[Ne],Ve=ce[1];if(ce[2]){if(Re===void 0&&!(Ne in f))return!1}else{var Tt=new br,_t;if(!(_t===void 0?Li(Ve,Re,B,i|a,Tt):_t))return!1}}return!0}function yf(f){if(!Bn(f)||Bf(f))return!1;var b=bs(f)||Lt(f)?zr:oe;return b.test(Wr(f))}function bf(f){return Ro(f)&&zi(f.length)&&!!Z[ut.call(f)]}function wf(f){return typeof f=="function"?f:f==null?ws:typeof f=="object"?Ir(f)?xf(f[0],f[1]):vf(f):Vf(f)}function Ef(f){if(!Ff(f))return F(f);var b=[];for(var A in Object(f))nt.call(f,A)&&A!="constructor"&&b.push(A);return b}function Sf(f,b){var A=-1,B=Ln(f)?Array(f.length):[];return lf(f,function(te,K,ce){B[++A]=b(te,K,ce)}),B}function vf(f){var b=Nf(f);return b.length==1&&b[0][2]?ys(b[0][0],b[0][1]):function(A){return A===f||gf(A,f,b)}}function xf(f,b){return Co(f)&&gs(b)?ys(Ao(f),b):function(A){var B=Wf(A,f);return B===void 0&&B===b?Gf(A,f):Li(b,B,void 0,i|a)}}function Tf(f,b,A){var B=-1;b=Pt(b.length?b:[ws],gr(wf));var te=Sf(f,function(K,ce,Ne){var Re=Pt(b,function(Ve){return Ve(K)});return{criteria:Re,index:++B,value:K}});return Ur(te,function(K,ce){return Of(K,ce,A)})}function _f(f){return function(b){return ds(b,f)}}function Cf(f,b){return b=X(b===void 0?f.length-1:b,0),function(){for(var A=arguments,B=-1,te=X(A.length-b,0),K=Array(te);++B<te;)K[B]=A[b+B];B=-1;for(var ce=Array(b+1);++B<b;)ce[B]=A[B];return ce[b]=K,kt(f,this,ce)}}function Af(f){if(typeof f=="string")return f;if(Fn(f))return Dn?Dn.call(f):"";var b=f+"";return b=="0"&&1/f==-1/0?"-0":b}function ps(f){return Ir(f)?f:Uf(f)}function Rf(f,b){if(f!==b){var A=f!==void 0,B=f===null,te=f===f,K=Fn(f),ce=b!==void 0,Ne=b===null,Re=b===b,Ve=Fn(b);if(!Ne&&!Ve&&!K&&f>b||K&&ce&&Re&&!Ne&&!Ve||B&&ce&&Re||!A&&Re||!te)return 1;if(!B&&!K&&!Ve&&f<b||Ve&&A&&te&&!B&&!K||Ne&&A&&te||!ce&&te||!Re)return-1}return 0}function Of(f,b,A){for(var B=-1,te=f.criteria,K=b.criteria,ce=te.length,Ne=A.length;++B<ce;){var Re=Rf(te[B],K[B]);if(Re){if(B>=Ne)return Re;var Ve=A[B];return Re*(Ve=="desc"?-1:1)}}return f.index-b.index}function kf(f,b){return function(A,B){if(A==null)return A;if(!Ln(A))return f(A,B);for(var te=A.length,K=-1,ce=Object(A);++K<te&&B(ce[K],K,ce)!==!1;);return A}}function Pf(f){return function(b,A,B){for(var te=-1,K=Object(b),ce=B(b),Ne=ce.length;Ne--;){var Re=ce[++te];if(A(K[Re],Re,K)===!1)break}return b}}function hs(f,b,A,B,te,K){var ce=te&a,Ne=f.length,Re=b.length;if(Ne!=Re&&!(ce&&Re>Ne))return!1;var Ve=K.get(f);if(Ve&&K.get(b))return Ve==b;var Tt=-1,_t=!0,yt=te&i?new qr:void 0;for(K.set(f,b),K.set(b,f);++Tt<Ne;){var Ft=f[Tt],Ut=b[Tt];if(B)var Mr=ce?B(Ut,Ft,Tt,b,f,K):B(Ft,Ut,Tt,f,b,K);if(Mr!==void 0){if(Mr)continue;_t=!1;break}if(yt){if(!ir(b,function(wr,Gr){if(!yt.has(Gr)&&(Ft===wr||A(Ft,wr,B,te,K)))return yt.add(Gr)})){_t=!1;break}}else if(!(Ft===Ut||A(Ft,Ut,B,te,K))){_t=!1;break}}return K.delete(f),K.delete(b),_t}function If(f,b,A,B,te,K,ce){switch(A){case $:if(f.byteLength!=b.byteLength||f.byteOffset!=b.byteOffset)return!1;f=f.buffer,b=b.buffer;case M:return!(f.byteLength!=b.byteLength||!B(new Xt(f),new Xt(b)));case u:case p:case y:return Ui(+f,+b);case w:return f.name==b.name&&f.message==b.message;case k:case d:return f==b+"";case h:var Ne=Vt;case R:var Re=K&a;if(Ne||(Ne=on),f.size!=b.size&&!Re)return!1;var Ve=ce.get(f);if(Ve)return Ve==b;K|=i,ce.set(f,b);var Tt=hs(Ne(f),Ne(b),B,te,K,ce);return ce.delete(f),Tt;case S:if(Hr)return Hr.call(f)==Hr.call(b)}return!1}function Mf(f,b,A,B,te,K){var ce=te&a,Ne=Oo(f),Re=Ne.length,Ve=Oo(b),Tt=Ve.length;if(Re!=Tt&&!ce)return!1;for(var _t=Re;_t--;){var yt=Ne[_t];if(!(ce?yt in b:nt.call(b,yt)))return!1}var Ft=K.get(f);if(Ft&&K.get(b))return Ft==b;var Ut=!0;K.set(f,b),K.set(b,f);for(var Mr=ce;++_t<Re;){yt=Ne[_t];var wr=f[yt],Gr=b[yt];if(B)var Es=ce?B(Gr,wr,yt,b,f,K):B(wr,Gr,yt,f,b,K);if(!(Es===void 0?wr===Gr||A(wr,Gr,B,te,K):Es)){Ut=!1;break}Mr||(Mr=yt=="constructor")}if(Ut&&!Mr){var ko=f.constructor,Po=b.constructor;ko!=Po&&"constructor"in f&&"constructor"in b&&!(typeof ko=="function"&&ko instanceof ko&&typeof Po=="function"&&Po instanceof Po)&&(Ut=!1)}return K.delete(f),K.delete(b),Ut}function _o(f,b){var A=f.__data__;return Lf(b)?A[typeof b=="string"?"string":"hash"]:A.map}function Nf(f){for(var b=Oo(f),A=b.length;A--;){var B=b[A],te=f[B];b[A]=[B,te,gs(te)]}return b}function sn(f,b){var A=ar(f,b);return yf(A)?A:void 0}var Pr=pf;(Q&&Pr(new Q(new ArrayBuffer(1)))!=$||ae&&Pr(new ae)!=h||ue&&Pr(ue.resolve())!=O||Ee&&Pr(new Ee)!=R||ge&&Pr(new ge)!=E)&&(Pr=function(f){var b=ut.call(f),A=b==v?f.constructor:void 0,B=A?Wr(A):void 0;if(B)switch(B){case Se:return $;case It:return h;case gt:return O;case Je:return R;case cr:return E}return b});function Df(f,b,A){b=Co(b,f)?[b]:ps(b);for(var B,te=-1,ce=b.length;++te<ce;){var K=Ao(b[te]);if(!(B=f!=null&&A(f,K)))break;f=f[K]}if(B)return B;var ce=f?f.length:0;return!!ce&&zi(ce)&&Bi(K,ce)&&(Ir(f)||ji(f))}function $f(f){return Ir(f)||ji(f)||!!(L&&f&&f[L])}function Bi(f,b){return b=b??s,!!b&&(typeof f=="number"||fe.test(f))&&f>-1&&f%1==0&&f<b}function ms(f,b,A){if(!Bn(A))return!1;var B=typeof b;return(B=="number"?Ln(A)&&Bi(b,A.length):B=="string"&&b in A)?Ui(A[b],f):!1}function Co(f,b){if(Ir(f))return!1;var A=typeof f;return A=="number"||A=="symbol"||A=="boolean"||f==null||Fn(f)?!0:z.test(f)||!lt.test(f)||b!=null&&f in Object(b)}function Lf(f){var b=typeof f;return b=="string"||b=="number"||b=="symbol"||b=="boolean"?f!=="__proto__":f===null}function Bf(f){return!!Kt&&Kt in f}function Ff(f){var b=f&&f.constructor,A=typeof b=="function"&&b.prototype||vt;return f===A}function gs(f){return f===f&&!Bn(f)}function ys(f,b){return function(A){return A==null?!1:A[f]===b&&(b!==void 0||f in Object(A))}}var Uf=Fi(function(f){f=qf(f);var b=[];return q.test(f)&&b.push(""),f.replace(le,function(A,B,te,K){b.push(te?K.replace(se,"$1"):B||A)}),b});function Ao(f){if(typeof f=="string"||Fn(f))return f;var b=f+"";return b=="0"&&1/f==-1/0?"-0":b}function Wr(f){if(f!=null){try{return xt.call(f)}catch{}try{return f+""}catch{}}return""}var jf=Cf(function(f,b){if(f==null)return[];var A=b.length;return A>1&&ms(f,b[0],b[1])?b=[]:A>2&&ms(b[0],b[1],b[2])&&(b=[b[0]]),Tf(f,uf(b),[])});function Fi(f,b){if(typeof f!="function"||b&&typeof b!="function")throw new TypeError(n);var A=function(){var B=arguments,te=b?b.apply(this,B):B[0],K=A.cache;if(K.has(te))return K.get(te);var ce=f.apply(this,B);return A.cache=K.set(te,ce),ce};return A.cache=new(Fi.Cache||Me),A}Fi.Cache=Me;function Ui(f,b){return f===b||f!==f&&b!==b}function ji(f){return zf(f)&&nt.call(f,"callee")&&(!yr.call(f,"callee")||ut.call(f)==c)}var Ir=Array.isArray;function Ln(f){return f!=null&&zi(f.length)&&!bs(f)}function zf(f){return Ro(f)&&Ln(f)}function bs(f){var b=Bn(f)?ut.call(f):"";return b==T||b==g}function zi(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=s}function Bn(f){var b=typeof f;return!!f&&(b=="object"||b=="function")}function Ro(f){return!!f&&typeof f=="object"}function Fn(f){return typeof f=="symbol"||Ro(f)&&ut.call(f)==S}var Hf=nr?gr(nr):bf;function qf(f){return f==null?"":Af(f)}function Wf(f,b,A){var B=f==null?void 0:ds(f,b);return B===void 0?A:B}function Gf(f,b){return f!=null&&Df(f,b,hf)}function Oo(f){return Ln(f)?cf(f):Ef(f)}function ws(f){return f}function Vf(f){return Co(f)?Fr(Ao(f)):_f(f)}e.exports=jf})(no,no.exports)),no.exports}var eg=Jm();const Uo=qa(eg),tg=({...e})=>C(x.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=mr(x.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=mr(x.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=mr(x.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(x.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=mr(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"})),hu=mr(x.Card)(({theme:e})=>({borderRadius:12,padding:e.spacing(1),paddingTop:e.spacing(4),marginBottom:e.spacing(1),boxShadow:"none",background:"white"})),mu=mr(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"})),ag=({expanded:e})=>Y(x.Box,{pb:2,children:[Y(pu,{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})})}),Y(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})}),Y(x.Box,{display:"flex",flexDirection:"column",gap:2,flex:0,children:[Y(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}),Y(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}})]})]}),Y(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(pt.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(hu,{children:C(x.Box,{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"space-around",children:[1,2,3,4,5,6].map(t=>Y(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})}),Y(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:Y(x.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[Y(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(mu,{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:Y(x.Box,{mt:.5,width:"100%",children:[C(x.Skeleton,{variant:"text",width:"70%",height:32,sx:{mb:2.5}}),Y(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}})]}),Y(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})]}),Y(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))})})})]}),sg=({html:e,currentHighlight:t,onHighlightsFound:r,onVisibleHighlightChange:n,clickedIndicator:o})=>{const i=ne.useRef(null),a=ne.useRef(!1);return ne.useEffect(()=>{if(!i.current)return;const s=i.current,c=s.contentDocument||s.contentWindow?.document;if(!c){console.warn("[DQM] Could not access iframe document");return}const p=new DOMParser().parseFromString(e,"text/html").documentElement;p.getElementsByTagName("body")[0].style.overflow="auto",c.open(),c.write(p.outerHTML),c.close();const w=c.createElement("style");w.textContent=`
67
+ .astHighlightFull,
68
+ .astHighlightStart,
69
+ .astHighlightMiddle,
70
+ .astHighlightEnd,
71
+ .astError {
72
+ background-color: rgba(255, 0, 0, 0.2) !important;
73
+ outline: 2px solid #dc3545 !important;
74
+ outline-offset: 2px !important;
75
+ }
76
+
77
+ .astHighlightFull.animate,
78
+ .astHighlightStart.animate,
79
+ .astHighlightMiddle.animate,
80
+ .astHighlightEnd.animate,
81
+ .astError.animate {
82
+ animation: pulse 0.8s ease-in-out;
83
+ }
84
+
85
+ @keyframes pulse {
86
+ 0%, 100% {
87
+ background-color: rgba(255, 0, 0, 0.2);
88
+ outline-color: #dc3545;
89
+ }
90
+ 50% {
91
+ background-color: rgba(255, 0, 0, 0.5);
92
+ outline-color: #ff6666;
93
+ }
94
+ }
95
+ `,c.head.appendChild(w);const g=setTimeout(()=>{const h=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],y=c.querySelectorAll(h.join(", "));if(r&&r(y.length),y.length>0&&n&&s.contentWindow){const v={root:null,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},O=new Map,R=s.contentWindow.IntersectionObserver,d=new R(S=>{if(!a.current&&(S.forEach(E=>{const M=Array.from(y).indexOf(E.target);E.isIntersecting&&E.intersectionRatio>0?O.set(E.target,M):O.delete(E.target)}),O.size>0)){const M=Array.from(O.entries()).sort(($,H)=>$[1]-H[1])[0][1];n(M+1)}},v);return y.forEach(S=>d.observe(S)),()=>{d.disconnect()}}},100);return()=>{clearTimeout(g)}},[e,r,n]),ne.useEffect(()=>{if(!i.current||!t||t===0)return;const s=i.current,c=s.contentDocument||s.contentWindow?.document;if(!c)return;const l=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],u=c.querySelectorAll(l.join(", "));if(u.length===0){console.warn("[DQM] No highlights found in iframe");return}const p=u[t-1];p?(a.current=!0,p.scrollIntoView({behavior:"smooth",block:"center"}),p.classList.add("animate"),setTimeout(()=>{p.classList.remove("animate")},800),setTimeout(()=>{a.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:i,title:"Browser View",style:{width:"100%",height:"600px",border:"1px solid #e0e0e0",borderRadius:"8px"},sandbox:"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=ne.useRef(null),c=ne.useRef(null),l=ne.useRef(!1);return ne.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 w=a?.current;if(w){const T={root:w,rootMargin:"-20% 0px -20% 0px",threshold:[0,.25,.5,.75,1]},g=new Map,h=new IntersectionObserver(y=>{if(!l.current&&(y.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((k,R)=>k[1]-R[1])[0][1];o(O+1)}},T);return p.forEach(y=>h.observe(y)),()=>{h.disconnect()}}}}}},[e,t,n,o,a]),ne.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 w=p[r-1];w&&(l.current=!0,w.scrollIntoView({behavior:"smooth",block:"center"}),w.classList.add("animate"),setTimeout(()=>{w.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:qt,create:Da}=Object,{apply:$a,construct:La}=typeof Reflect<"u"&&Reflect;Et||(Et=function(t){return t});qt||(qt=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),dg=St(Array.prototype.lastIndexOf),Tc=St(Array.prototype.pop),Hn=St(Array.prototype.push),pg=St(Array.prototype.splice),oi=St(String.prototype.toLowerCase),na=St(String.prototype.toString),oa=St(String.prototype.match),qn=St(String.prototype.replace),hg=St(String.prototype.indexOf),mg=St(String.prototype.trim),Jt=St(Object.prototype.hasOwnProperty),bt=St(RegExp.prototype.test),Wn=gg(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 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 xr(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]=xr(n):t[r]=n);return t}function Gn(e,t){for(;e!==null;){const n=fg(e,t);if(n){if(n.get)return St(n.get);if(typeof n.value=="function")return St(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=qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sg=qt(/<%[\w\W]*|[\w\W]*%>/gm),vg=qt(/\$\{[\w\W]*/gm),xg=qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Tg=qt(/^aria-[\-\w]+$/),yu=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_g=qt(/^(?:\w+script|data):/i),Cg=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bu=qt(/^html$/i),Ag=qt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Oc=Object.freeze({__proto__:null,ARIA_ATTR:Tg,ATTR_WHITESPACE:Cg,CUSTOM_ELEMENT:Ag,DATA_ATTR:xg,DOCTYPE_NAME:bu,ERB_EXPR:Sg,IS_ALLOWED_URI:yu,IS_SCRIPT_OR_DATA:_g,MUSTACHE_EXPR:Eg,TMPLIT_EXPR:vg});const Vn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rg=function(){return typeof window>"u"?null:window},Og=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 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:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:w,trustedTypes:T}=e,g=c.prototype,h=Gn(g,"cloneNode"),y=Gn(g,"remove"),v=Gn(g,"nextSibling"),O=Gn(g,"childNodes"),k=Gn(g,"parentNode");if(typeof a=="function"){const re=r.createElement("template");re.content&&re.content.ownerDocument&&(r=re.content.ownerDocument)}let R,d="";const{implementation:S,createNodeIterator:E,createDocumentFragment:M,getElementsByTagName:$}=r,{importNode:H}=n;let U=kc();t.isSupported=typeof gu=="function"&&typeof k=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:m,ERB_EXPR:j,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:de,ATTR_WHITESPACE:Ce,CUSTOM_ELEMENT:lt}=Oc;let{IS_ALLOWED_URI:z}=Oc,q=null;const le=_e({},[..._c,...ia,...aa,...sa,...Cc]);let ee=null;const se=_e({},[...Ac,...ca,...Rc,...zo]);let oe=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}})),fe=null,Z=null;const he=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,N=!0,We=!1,Ke=!0,qe=!1,nr=!1,kt=!1,Pt=!1,or=!1,ir=!1,Fr=!0,Ur=!1;const Nn="user-content-";let gr=!0,ar=!1,Lt={},Vt=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 on=null;const Yt=_e({},["audio","video","img","source","image","track"]);let Bt=null;const vt=_e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sr="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",xt="http://www.w3.org/1999/xhtml";let nt=xt,ut=!1,zr=null;const Or=_e({},[sr,Kt,xt],na);let Xt=_e({},["mi","mo","mn","ms","mtext"]),yr=_e({},["annotation-xml"]);const an=_e({},["title","style","font","a","script"]);let L=null;const F=["application/xhtml+xml","text/html"],X="text/html";let Q=null,ae=null;const ue=r.createElement("form"),Ee=function(_){return _ instanceof RegExp||_ instanceof Function},ge=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ae&&ae===_)){if((!_||typeof _!="object")&&(_={}),_=xr(_),L=F.indexOf(_.PARSER_MEDIA_TYPE)===-1?X:_.PARSER_MEDIA_TYPE,Q=L==="application/xhtml+xml"?na:oi,q=Jt(_,"ALLOWED_TAGS")?_e({},_.ALLOWED_TAGS,Q):le,ee=Jt(_,"ALLOWED_ATTR")?_e({},_.ALLOWED_ATTR,Q):se,zr=Jt(_,"ALLOWED_NAMESPACES")?_e({},_.ALLOWED_NAMESPACES,na):Or,Bt=Jt(_,"ADD_URI_SAFE_ATTR")?_e(xr(vt),_.ADD_URI_SAFE_ATTR,Q):vt,on=Jt(_,"ADD_DATA_URI_TAGS")?_e(xr(Yt),_.ADD_DATA_URI_TAGS,Q):Yt,Vt=Jt(_,"FORBID_CONTENTS")?_e({},_.FORBID_CONTENTS,Q):jr,fe=Jt(_,"FORBID_TAGS")?_e({},_.FORBID_TAGS,Q):xr({}),Z=Jt(_,"FORBID_ATTR")?_e({},_.FORBID_ATTR,Q):xr({}),Lt=Jt(_,"USE_PROFILES")?_.USE_PROFILES:!1,we=_.ALLOW_ARIA_ATTR!==!1,pe=_.ALLOW_DATA_ATTR!==!1,Oe=_.ALLOW_UNKNOWN_PROTOCOLS||!1,N=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=_.SAFE_FOR_TEMPLATES||!1,Ke=_.SAFE_FOR_XML!==!1,qe=_.WHOLE_DOCUMENT||!1,Pt=_.RETURN_DOM||!1,or=_.RETURN_DOM_FRAGMENT||!1,ir=_.RETURN_TRUSTED_TYPE||!1,kt=_.FORCE_BODY||!1,Fr=_.SANITIZE_DOM!==!1,Ur=_.SANITIZE_NAMED_PROPS||!1,gr=_.KEEP_CONTENT!==!1,ar=_.IN_PLACE||!1,z=_.ALLOWED_URI_REGEXP||yu,nt=_.NAMESPACE||xt,Xt=_.MATHML_TEXT_INTEGRATION_POINTS||Xt,yr=_.HTML_INTEGRATION_POINTS||yr,oe=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Ee(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Ee(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(pe=!1),or&&(Pt=!0),Lt&&(q=_e({},Cc),ee=[],Lt.html===!0&&(_e(q,_c),_e(ee,Ac)),Lt.svg===!0&&(_e(q,ia),_e(ee,ca),_e(ee,zo)),Lt.svgFilters===!0&&(_e(q,aa),_e(ee,ca),_e(ee,zo)),Lt.mathMl===!0&&(_e(q,sa),_e(ee,Rc),_e(ee,zo))),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?he.tagCheck=_.ADD_TAGS:(q===le&&(q=xr(q)),_e(q,_.ADD_TAGS,Q))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?he.attributeCheck=_.ADD_ATTR:(ee===se&&(ee=xr(ee)),_e(ee,_.ADD_ATTR,Q))),_.ADD_URI_SAFE_ATTR&&_e(Bt,_.ADD_URI_SAFE_ATTR,Q),_.FORBID_CONTENTS&&(Vt===jr&&(Vt=xr(Vt)),_e(Vt,_.FORBID_CONTENTS,Q)),gr&&(q["#text"]=!0),qe&&_e(q,["html","head","body"]),q.table&&(_e(q,["tbody"]),delete fe.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.');R=_.TRUSTED_TYPES_POLICY,d=R.createHTML("")}else R===void 0&&(R=Og(T,o)),R!==null&&typeof d=="string"&&(d=R.createHTML(""));Et&&Et(_),ae=_}},Ae=_e({},[...ia,...aa,...bg]),Se=_e({},[...sa,...wg]),It=function(_){let V=k(_);(!V||!V.tagName)&&(V={namespaceURI:nt,tagName:"template"});const ie=oi(_.tagName),Ge=oi(V.tagName);return zr[_.namespaceURI]?_.namespaceURI===Kt?V.namespaceURI===xt?ie==="svg":V.namespaceURI===sr?ie==="svg"&&(Ge==="annotation-xml"||Xt[Ge]):!!Ae[ie]:_.namespaceURI===sr?V.namespaceURI===xt?ie==="math":V.namespaceURI===Kt?ie==="math"&&yr[Ge]:!!Se[ie]:_.namespaceURI===xt?V.namespaceURI===Kt&&!yr[Ge]||V.namespaceURI===sr&&!Xt[Ge]?!1:!Se[ie]&&(an[ie]||!Ae[ie]):!!(L==="application/xhtml+xml"&&zr[_.namespaceURI]):!1},gt=function(_){Hn(t.removed,{element:_});try{k(_).removeChild(_)}catch{y(_)}},Je=function(_,V){try{Hn(t.removed,{attribute:V.getAttributeNode(_),from:V})}catch{Hn(t.removed,{attribute:null,from:V})}if(V.removeAttribute(_),_==="is")if(Pt||or)try{gt(V)}catch{}else try{V.setAttribute(_,"")}catch{}},cr=function(_){let V=null,ie=null;if(kt)_="<remove></remove>"+_;else{const Me=oa(_,/^[\r\n\t ]+/);ie=Me&&Me[0]}L==="application/xhtml+xml"&&nt===xt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const Ge=R?R.createHTML(_):_;if(nt===xt)try{V=new w().parseFromString(Ge,L)}catch{}if(!V||!V.documentElement){V=S.createDocument(nt,"template",null);try{V.documentElement.innerHTML=ut?d:Ge}catch{}}const at=V.body||V.documentElement;return _&&ie&&at.insertBefore(r.createTextNode(ie),at.childNodes[0]||null),nt===xt?$.call(V,qe?"html":"body")[0]:qe?V.documentElement:at},Mt=function(_){return E.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Hr=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")},Dn=function(_){return typeof s=="function"&&_ instanceof s};function st(re,_,V){jo(re,ie=>{ie.call(t,_,V,ae)})}const wo=function(_){let V=null;if(st(U.beforeSanitizeElements,_,null),Hr(_))return gt(_),!0;const ie=Q(_.nodeName);if(st(U.uponSanitizeElement,_,{tagName:ie,allowedTags:q}),Ke&&_.hasChildNodes()&&!Dn(_.firstElementChild)&&bt(/<[/\w!]/g,_.innerHTML)&&bt(/<[/\w!]/g,_.textContent)||_.nodeType===Vn.progressingInstruction||Ke&&_.nodeType===Vn.comment&&bt(/<[/\w]/g,_.data))return gt(_),!0;if(!(he.tagCheck instanceof Function&&he.tagCheck(ie))&&(!q[ie]||fe[ie])){if(!fe[ie]&&So(ie)&&(oe.tagNameCheck instanceof RegExp&&bt(oe.tagNameCheck,ie)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ie)))return!1;if(gr&&!Vt[ie]){const Ge=k(_)||_.parentNode,at=O(_)||_.childNodes;if(at&&Ge){const Me=at.length;for(let ft=Me-1;ft>=0;--ft){const Qt=h(at[ft],!0);Qt.__removalCount=(_.__removalCount||0)+1,Ge.insertBefore(Qt,v(_))}}}return gt(_),!0}return _ instanceof c&&!It(_)||(ie==="noscript"||ie==="noembed"||ie==="noframes")&&bt(/<\/no(script|embed|frames)/i,_.innerHTML)?(gt(_),!0):(We&&_.nodeType===Vn.text&&(V=_.textContent,jo([m,j,I],Ge=>{V=qn(V,Ge," ")}),_.textContent!==V&&(Hn(t.removed,{element:_.cloneNode()}),_.textContent=V)),st(U.afterSanitizeElements,_,null),!1)},Eo=function(_,V,ie){if(Fr&&(V==="id"||V==="name")&&(ie in r||ie in ue))return!1;if(!(pe&&!Z[V]&&bt(W,V))){if(!(we&&bt(J,V))){if(!(he.attributeCheck instanceof Function&&he.attributeCheck(V,_))){if(!ee[V]||Z[V]){if(!(So(_)&&(oe.tagNameCheck instanceof RegExp&&bt(oe.tagNameCheck,_)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(_))&&(oe.attributeNameCheck instanceof RegExp&&bt(oe.attributeNameCheck,V)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(V,_))||V==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&bt(oe.tagNameCheck,ie)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ie))))return!1}else if(!Bt[V]){if(!bt(z,qn(ie,Ce,""))){if(!((V==="src"||V==="xlink:href"||V==="href")&&_!=="script"&&hg(ie,"data:")===0&&on[_])){if(!(Oe&&!bt(de,qn(ie,Ce,"")))){if(ie)return!1}}}}}}}return!0},So=function(_){return _!=="annotation-xml"&&oa(_,lt)},vo=function(_){st(U.beforeSanitizeAttributes,_,null);const{attributes:V}=_;if(!V||Hr(_))return;const ie={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ge=V.length;for(;Ge--;){const at=V[Ge],{name:Me,namespaceURI:ft,value:Qt}=at,kr=Q(Me),$n=Qt;let ot=Me==="value"?$n:mg($n);if(ie.attrName=kr,ie.attrValue=ot,ie.keepAttr=!0,ie.forceKeepAttr=void 0,st(U.uponSanitizeAttribute,_,ie),ot=ie.attrValue,Ur&&(kr==="id"||kr==="name")&&(Je(Me,_),ot=Nn+ot),Ke&&bt(/((--!?|])>)|<\/(style|title|textarea)/i,ot)){Je(Me,_);continue}if(kr==="attributename"&&oa(ot,"href")){Je(Me,_);continue}if(ie.forceKeepAttr)continue;if(!ie.keepAttr){Je(Me,_);continue}if(!N&&bt(/\/>/i,ot)){Je(Me,_);continue}We&&jo([m,j,I],xo=>{ot=qn(ot,xo," ")});const qr=Q(_.nodeName);if(!Eo(qr,kr,ot)){Je(Me,_);continue}if(R&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!ft)switch(T.getAttributeType(qr,kr)){case"TrustedHTML":{ot=R.createHTML(ot);break}case"TrustedScriptURL":{ot=R.createScriptURL(ot);break}}if(ot!==$n)try{ft?_.setAttributeNS(ft,Me,ot):_.setAttribute(Me,ot),Hr(_)?gt(_):Tc(t.removed)}catch{Je(Me,_)}}st(U.afterSanitizeAttributes,_,null)},$i=function re(_){let V=null;const ie=Mt(_);for(st(U.beforeSanitizeShadowDOM,_,null);V=ie.nextNode();)st(U.uponSanitizeShadowNode,V,null),wo(V),vo(V),V.content instanceof i&&re(V.content);st(U.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(re){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=null,ie=null,Ge=null,at=null;if(ut=!re,ut&&(re="<!-->"),typeof re!="string"&&!Dn(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||ge(_),t.removed=[],typeof re=="string"&&(ar=!1),ar){if(re.nodeName){const Qt=Q(re.nodeName);if(!q[Qt]||fe[Qt])throw Wn("root node is forbidden and cannot be sanitized in-place")}}else if(re instanceof s)V=cr("<!---->"),ie=V.ownerDocument.importNode(re,!0),ie.nodeType===Vn.element&&ie.nodeName==="BODY"||ie.nodeName==="HTML"?V=ie:V.appendChild(ie);else{if(!Pt&&!We&&!qe&&re.indexOf("<")===-1)return R&&ir?R.createHTML(re):re;if(V=cr(re),!V)return Pt?null:ir?d:""}V&&kt&&gt(V.firstChild);const Me=Mt(ar?re:V);for(;Ge=Me.nextNode();)wo(Ge),vo(Ge),Ge.content instanceof i&&$i(Ge.content);if(ar)return re;if(Pt){if(or)for(at=M.call(V.ownerDocument);V.firstChild;)at.appendChild(V.firstChild);else at=V;return(ee.shadowroot||ee.shadowrootmode)&&(at=H.call(n,at,!0)),at}let ft=qe?V.outerHTML:V.innerHTML;return qe&&q["!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,j,I],Qt=>{ft=qn(ft,Qt," ")}),R&&ir?R.createHTML(ft):ft},t.setConfig=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ge(re),nr=!0},t.clearConfig=function(){ae=null,nr=!1},t.isValidAttribute=function(re,_,V){ae||ge({});const ie=Q(re),Ge=Q(_);return Eo(ie,Ge,V)},t.addHook=function(re,_){typeof _=="function"&&Hn(U[re],_)},t.removeHook=function(re,_){if(_!==void 0){const V=dg(U[re],_);return V===-1?void 0:pg(U[re],V,1)[0]}return Tc(U[re])},t.removeHooks=function(re){U[re]=[]},t.removeAllHooks=function(){U=kc()},t}var kg=wu(),Yn={},pn={},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(S,E){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,$){M.__proto__=$}||function(M,$){for(var H in $)Object.prototype.hasOwnProperty.call($,H)&&(M[H]=$[H])},d(S,E)};return function(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");d(S,E);function M(){this.constructor=S}S.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}})(),t=ve&&ve.__assign||function(){return t=Object.assign||function(d){for(var S,E=1,M=arguments.length;E<M;E++){S=arguments[E];for(var $ in S)Object.prototype.hasOwnProperty.call(S,$)&&(d[$]=S[$])}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(S){this.parent=S},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){return this.prev},set:function(S){this.prev=S},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){return this.next},set:function(S){this.next=S},enumerable:!1,configurable:!0}),d.prototype.cloneNode=function(S){return S===void 0&&(S=!1),k(this,S)},d})();ve.Node=n;var o=(function(d){e(S,d);function S(E){var M=d.call(this)||this;return M.data=E,M}return Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.data},set:function(E){this.data=E},enumerable:!1,configurable:!0}),S})(n);ve.DataNode=o;var i=(function(d){e(S,d);function S(){var E=d!==null&&d.apply(this,arguments)||this;return E.type=r.ElementType.Text,E}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),S})(o);ve.Text=i;var a=(function(d){e(S,d);function S(){var E=d!==null&&d.apply(this,arguments)||this;return E.type=r.ElementType.Comment,E}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),S})(o);ve.Comment=a;var s=(function(d){e(S,d);function S(E,M){var $=d.call(this,M)||this;return $.name=E,$.type=r.ElementType.Directive,$}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),S})(o);ve.ProcessingInstruction=s;var c=(function(d){e(S,d);function S(E){var M=d.call(this)||this;return M.children=E,M}return Object.defineProperty(S.prototype,"firstChild",{get:function(){var E;return(E=this.children[0])!==null&&E!==void 0?E:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return this.children},set:function(E){this.children=E},enumerable:!1,configurable:!0}),S})(n);ve.NodeWithChildren=c;var l=(function(d){e(S,d);function S(){var E=d!==null&&d.apply(this,arguments)||this;return E.type=r.ElementType.CDATA,E}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),S})(c);ve.CDATA=l;var u=(function(d){e(S,d);function S(){var E=d!==null&&d.apply(this,arguments)||this;return E.type=r.ElementType.Root,E}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),S})(c);ve.Document=u;var p=(function(d){e(S,d);function S(E,M,$,H){$===void 0&&($=[]),H===void 0&&(H=E==="script"?r.ElementType.Script:E==="style"?r.ElementType.Style:r.ElementType.Tag);var U=d.call(this,$)||this;return U.name=E,U.attribs=M,U.type=H,U}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tagName",{get:function(){return this.name},set:function(E){this.name=E},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"attributes",{get:function(){var E=this;return Object.keys(this.attribs).map(function(M){var $,H;return{name:M,value:E.attribs[M],namespace:($=E["x-attribsNamespace"])===null||$===void 0?void 0:$[M],prefix:(H=E["x-attribsPrefix"])===null||H===void 0?void 0:H[M]}})},enumerable:!1,configurable:!0}),S})(c);ve.Element=p;function w(d){return(0,r.isTag)(d)}ve.isTag=w;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 y(d){return d.type===r.ElementType.Directive}ve.isDirective=y;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 k(d,S){S===void 0&&(S=!1);var E;if(g(d))E=new i(d.data);else if(h(d))E=new a(d.data);else if(w(d)){var M=S?R(d.children):[],$=new p(d.name,t({},d.attribs),M);M.forEach(function(j){return j.parent=$}),d.namespace!=null&&($.namespace=d.namespace),d["x-attribsNamespace"]&&($["x-attribsNamespace"]=t({},d["x-attribsNamespace"])),d["x-attribsPrefix"]&&($["x-attribsPrefix"]=t({},d["x-attribsPrefix"])),E=$}else if(T(d)){var M=S?R(d.children):[],H=new l(M);M.forEach(function(I){return I.parent=H}),E=H}else if(v(d)){var M=S?R(d.children):[],U=new u(M);M.forEach(function(I){return I.parent=U}),d["x-mode"]&&(U["x-mode"]=d["x-mode"]),E=U}else if(y(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"]),E=m}else throw new Error("Not implemented yet: ".concat(d.type));return E.startIndex=d.startIndex,E.endIndex=d.endIndex,d.sourceCodeLocation!=null&&(E.sourceCodeLocation=d.sourceCodeLocation),E}ve.cloneNode=k;function R(d){for(var S=d.map(function(M){return k(M,!0)}),E=1;E<S.length;E++)S[E].prev=S[E-1],S[E-1].next=S[E];return S}return ve}var Nc;function Su(){return Nc||(Nc=1,(function(e){var t=Kr&&Kr.__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=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,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})(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 vu(){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=Su(),t=Pg();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 w=c[u];l[w.name]=w.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=[],w,T=0,g=c.length;T<g;T++){var h=c[T];switch(h.nodeType){case 1:{var y=o(h.nodeName);w=new e.Element(y,n(h.attributes)),w.children=s(y==="template"?h.content.childNodes:h.childNodes,w);break}case 3:w=new e.Text(a(h.nodeValue));break;case 8:w=new e.Comment(h.nodeValue);break;default:continue}var v=p[T-1]||null;v&&(v.next=w),w.parent=l,w.prev=v,w.next=null,p.push(w)}return u&&(w=new e.ProcessingInstruction(u.substring(0,u.indexOf(" ")).toLowerCase(),u),w.next=p[0]||null,w.parent=l,p.unshift(w),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=vu(),t="html",r="head",n="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,a=/<body[^]*>/i,s=function(y,v){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(y,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(y,v){return v&&(y="<".concat(v,">").concat(y,"</").concat(v,">")),u.parseFromString(y,p)},s=c}if(typeof document=="object"&&document.implementation){var w=document.implementation.createHTMLDocument();s=function(y,v){if(v){var O=w.documentElement.querySelector(v);return O&&(O.innerHTML=y),w}return w.documentElement.innerHTML=y,w}}var T=typeof document=="object"&&document.createElement("template"),g;T&&T.content&&(g=function(y){return T.innerHTML=y,T.content.childNodes});function h(y){var v,O;y=(0,e.escapeSpecialCharacters)(y);var k=y.match(o),R=k&&k[1]?k[1].toLowerCase():"";switch(R){case t:{var d=c(y);if(!i.test(y)){var S=d.querySelector(r);(v=S?.parentNode)===null||v===void 0||v.removeChild(S)}if(!a.test(y)){var S=d.querySelector(n);(O=S?.parentNode)===null||O===void 0||O.removeChild(S)}return d.querySelectorAll(t)}case r:case n:{var E=s(y).querySelectorAll(R);return a.test(y)&&i.test(y)?E[0].parentNode.childNodes:E}default:{if(g)return g(y);var S=s(y,n).querySelector(n);return S.childNodes}}}return Ho}var Bc;function Mg(){if(Bc)return pn;Bc=1;var e=pn&&pn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=o;var t=e(Ig()),r=vu(),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 pn}var qo={},jt={},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 jt;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,S,E,M,$,H,U){this.acceptsBooleans=S===r||S===n||S===o,this.attributeName=M,this.attributeNamespace=$,this.mustUseProperty=E,this.propertyName=d,this.type=S,this.sanitizeURL=H,this.removeEmptyString=U}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,S])=>{l[d]=new c(d,t,!1,S,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,w=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 S=d.replace(p,w);l[S]=new c(S,t,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(d=>{const S=d.replace(p,w);l[S]=new c(S,t,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(d=>{const S=d.replace(p,w);l[S]=new c(S,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:y}=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",k=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+O+"]*$")),R=Object.keys(y).reduce((d,S)=>{const E=y[S];return E===h?d[S]=S:E===g?d[S.toLowerCase()]=S:d[S]=E,d},{});return jt.BOOLEAN=n,jt.BOOLEANISH_STRING=r,jt.NUMERIC=i,jt.OVERLOADED_BOOLEAN=o,jt.POSITIVE_NUMERIC=a,jt.RESERVED=e,jt.STRING=t,jt.getPropertyInfo=s,jt.isCustomAttribute=k,jt.possibleStandardNames=R,jt}var Xn={},hn={},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="/",u="*",p="",w="comment",T="declaration";function g(y,v){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];v=v||{};var O=1,k=1;function R(I){var W=I.match(t);W&&(O+=W.length);var J=I.lastIndexOf(c);k=~J?I.length-J:k+I.length}function d(){var I={line:O,column:k};return function(W){return W.position=new S(I),$(),W}}function S(I){this.start=I,this.end={line:O,column:k},this.source=v.source}S.prototype.content=y;function E(I){var W=new Error(v.source+":"+O+":"+k+": "+I);if(W.reason=I,W.filename=v.source,W.line=O,W.column=k,W.source=y,!v.silent)throw W}function M(I){var W=I.exec(y);if(W){var J=W[0];return R(J),y=y.slice(J.length),W}}function $(){M(r)}function H(I){var W;for(I=I||[];W=U();)W!==!1&&I.push(W);return I}function U(){var I=d();if(!(l!=y.charAt(0)||u!=y.charAt(1))){for(var W=2;p!=y.charAt(W)&&(u!=y.charAt(W)||l!=y.charAt(W+1));)++W;if(W+=2,p===y.charAt(W-1))return E("End of comment missing");var J=y.slice(2,W-2);return k+=2,R(J),y=y.slice(W),k+=2,I({type:w,comment:J})}}function m(){var I=d(),W=M(n);if(W){if(U(),!M(o))return E("property missing ':'");var J=M(i),de=I({type:T,property:h(W[0].replace(e,p)),value:J?h(J[0].replace(e,p)):p});return M(a),de}}function j(){var I=[];H(I);for(var W;W=m();)W!==!1&&(I.push(W),H(I));return I}return $(),j()}function h(y){return y?y.replace(s,p):p}return fa=g,fa}var zc;function Lg(){if(zc)return hn;zc=1;var e=hn&&hn.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(hn,"__esModule",{value:!0}),hn.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:u}=c;s?o(l,u,c):u&&(i=i||{},i[l]=u)}),i}return hn}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,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 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(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=ne,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(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})(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={},u=!!(s.type&&o[s.type]);for(var p in s){var w=s[p];if((0,e.isCustomAttribute)(p)){l[p]=w;continue}var T=p.toLowerCase(),g=a(T);if(g){var h=(0,e.getPropertyInfo)(g);switch(r.includes(g)&&n.includes(c)&&!u&&(g=a("default"+T)),l[g]=w,h&&h.type){case e.BOOLEAN:l[g]=!0;break;case e.OVERLOADED_BOOLEAN:w===""&&(l[g]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(l[p]=w)}return(0,t.setStyleProp)(s.style,l),l}function a(s){return e.possibleStandardNames[s]}return qo}var mn={},Vc;function Ug(){if(Vc)return mn;Vc=1;var e=mn&&mn.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=i;var t=ne,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=[],u=typeof c.replace=="function",p=c.transform||n.returnFirstArg,w=c.library||o,T=w.cloneElement,g=w.createElement,h=w.isValidElement,y=s.length,v=0;v<y;v++){var O=s[v];if(u){var k=c.replace(O,v);if(h(k)){y>1&&(k=T(k,{key:k.key||v})),l.push(p(k,O,v));continue}}if(O.type==="text"){var R=!O.data.trim().length;if(R&&O.parent&&!(0,n.canTextBeChildOfNode)(O.parent)||c.trim&&R)continue;l.push(p(O.data,O,v));continue}var d=O,S={};a(d)?((0,n.setStyleProp)(d.attribs.style,d.attribs),S=d.attribs):d.attribs&&(S=(0,r.default)(d.attribs,d.name));var E=void 0;switch(O.type){case"script":case"style":O.children[0]&&(S.dangerouslySetInnerHTML={__html:O.children[0].data});break;case"tag":O.name==="textarea"&&O.children[0]?S.defaultValue=O.children[0].data:O.children&&O.children.length&&(E=i(O.children,c));break;default:continue}y>1&&(S.key=v),l.push(p(g(O.name,S,E),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 mn}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=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):[]}})(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=kg.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 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),kn=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,Ht=e=>Math.round(e*100)/100,Ba=e=>Math.round(e*100)/100,Tr=Ni*2,da=Ni/3,Gg=Ni/180,Vg=180/Ni;function Ru(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const me={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=kn(t),o=!1;if(!n){o=!0,me.sorted||(me.autodetect=me.autodetect.sort((i,a)=>a.p-i.p),me.sorted=!0);for(let i of me.autodetect)if(n=i.test(...t),n)break}if(me.format[n]){const i=me.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.1.2",xe=(...e)=>new G(...e);xe.version=Yg;const _n={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})$/,Ou=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,ku=(...e)=>{let[t,r,n,o]=be(e,"rgba"),i=kn(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=ku(this._rgb,"rgb");for(let t of Object.keys(_n))if(_n[t]===e)return t.toLowerCase();return e};me.format.named=e=>{if(e=e.toLowerCase(),_n[e])return Ou(_n[e]);throw new Error("unknown color name: "+e)};me.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&_n[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 hr={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 Cr(e){const t=Qg.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);hr.labWhitePoint=e,hr.Xn=t[0],hr.Zn=t[1]}function uo(){return hr.labWhitePoint}const os=(...e)=>{e=be(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}=hr,l=(e+16)/116,u=.002*t+l,p=l-.005*r,w=u*u*u,T=p*p*p,g=w>n?w:(116*u-16)/o,h=e>i?Math.pow((e+16)/116,3):e/o,y=T>n?T:(116*p-16)/o,v=g*a,O=h*s,k=y*c;return[v,O,k]},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}=hr,u=s*n.m00+c*n.m10+l*n.m20,p=s*n.m01+c*n.m11+l*n.m21,w=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,y=(e*n.m00+t*n.m10+r*n.m20)*(T/u),v=(e*n.m01+t*n.m11+r*n.m21)*(g/p),O=(e*n.m02+t*n.m12+r*n.m22)*(h/w),k=y*o.m00+v*o.m10+O*o.m20,R=y*o.m01+v*o.m11+O*o.m21,d=y*o.m02+v*o.m12+O*o.m22,S=pa(k*i.m00+R*i.m10+d*i.m20),E=pa(k*i.m01+R*i.m11+d*i.m21),M=pa(k*i.m02+R*i.m12+d*i.m22);return[S*255,E*255,M*255]},is=(...e)=>{const[t,r,n,...o]=be(e,"rgb"),[i,a,s]=Iu(t,r,n),[c,l,u]=Jg(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]};function Jg(e,t,r){const{Xn:n,Yn:o,Zn:i,kE:a,kK:s}=hr,c=e/n,l=t/o,u=r/i,p=c>a?Math.pow(c,1/3):(s*c+16)/116,w=l>a?Math.pow(l,1/3):(s*l+16)/116,T=u>a?Math.pow(u,1/3):(s*u+16)/116;return[116*w-16,500*(p-w),200*(w-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:u,Cs:p}=hr;let w=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,y=a*o.m01+s*o.m11+c*o.m21,v=a*o.m02+s*o.m12+c*o.m22;let O=w*o.m00+T*o.m10+g*o.m20,k=w*o.m01+T*o.m11+g*o.m21,R=w*o.m02+T*o.m12+g*o.m22;return O*=h/l,k*=y/u,R*=v/p,w=O*i.m00+k*i.m10+R*i.m20,T=O*i.m01+k*i.m11+R*i.m21,g=O*i.m02+k*i.m12+R*i.m22,[w,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:Cr});me.format.lab=os;me.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]-=hr.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={},Cn=(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 Cn(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]=be(e,"lch");return isNaN(n)&&(n=0),n=n*Gg,[t,a1(n)*r,i1(n)*r]},as=(...e)=>{e=be(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(be(e,"hcl"));return as(...t)},{sqrt:c1,atan2:l1,round:u1}=Math,Nu=(...e)=>{const[t,r,n]=be(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]=be(e,"rgb"),[i,a,s]=is(t,r,n),[c,l,u]=Nu(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 Ru(ss(this._rgb))};const f1=(...e)=>new G(...e,"lch"),d1=(...e)=>new G(...e,"hcl");Object.assign(xe,{lch:f1,hcl:d1});me.format.lch=as;me.format.hcl=s1;["lch","hcl"].forEach(e=>me.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]+=hr.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 Cn(this,"white",e,...t)};G.prototype.shade=function(e=.5,...t){return Cn(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:gn}=Math,h1=(e,t,r)=>{const[n,o,i]=e._rgb,[a,s,c]=t._rgb;return new G(ga(gn(n,2)*(1-r)+gn(a,2)*r),ga(gn(o,2)*(1-r)+gn(s,2)*r),ga(gn(i,2)*(1-r)+gn(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 Pn=(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 w,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,(u==1||u==0)&&n!="hsv"&&(w=l)):(T=a,(p==1||p==0)&&n!="hsv"&&(w=c)),w===void 0&&(w=c+r*(l-c)),g=u+r*(p-u),n==="oklch"?new G([g,w,T],n):new G([T,w,g],n)},Du=(e,t,r)=>Pn(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]=be(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});me.format.num=g1;me.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,S1=(...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=E1(t),l=t-c,u=n*(1-r),p=u+s*(1-l),w=u+s*l,T=u+s;switch(c){case 0:[o,i,a]=[T,w,u];break;case 1:[o,i,a]=[p,T,u];break;case 2:[o,i,a]=[u,T,w];break;case 3:[o,i,a]=[u,p,T];break;case 4:[o,i,a]=[w,u,T];break;case 5:[o,i,a]=[T,u,p];break}}return[o,i,a,e.length>3?e[3]:1]},v1=(...e)=>{const[t,r,n]=be(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 v1(this._rgb)};const x1=(...e)=>new G(...e,"hcg");xe.hcg=x1;me.format.hcg=S1;me.autodetect.push({p:1,test:(...e)=>{if(e=be(e,"hcg"),Te(e)==="array"&&e.length===3)return"hcg"}});const T1=(e,t,r)=>Pn(e,t,r,"hcg");mt.hcg=T1;const{cos:yn}=Math,_1=(...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*yn(Tr*t)/yn(da-Tr*t))/3,i=1-(a+o)):t<2/3?(t-=1/3,o=(1-r)/3,i=(1+r*yn(Tr*t)/yn(da-Tr*t))/3,a=1-(o+i)):(t-=2/3,i=(1-r)/3,a=(1+r*yn(Tr*t)/yn(da-Tr*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,O1=(...e)=>{let[t,r,n]=be(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=Tr-o),o/=Tr),[o*360,s,a]};G.prototype.hsi=function(){return O1(this._rgb)};const k1=(...e)=>new G(...e,"hsi");xe.hsi=k1;me.format.hsi=_1;me.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsi"),Te(e)==="array"&&e.length===3)return"hsi"}});const P1=(e,t,r)=>Pn(e,t,r,"hsi");mt.hsi=P1;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 w=0;w<3;w++)s[w]<0&&(s[w]+=1),s[w]>1&&(s[w]-=1),6*s[w]<1?c[w]=u+(l-u)*6*s[w]:2*s[w]<1?c[w]=l:3*s[w]<2?c[w]=u+(l-u)*(2/3-s[w])*6:c[w]=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]},$u=(...e)=>{e=be(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;me.format.hsl=Fa;me.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsl"),Te(e)==="array"&&e.length===3)return"hsl"}});const M1=(e,t,r)=>Pn(e,t,r,"hsl");mt.hsl=M1;const{floor:N1}=Math,D1=(...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=N1(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:$1,max:L1}=Math,B1=(...e)=>{e=be(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;me.format.hsv=D1;me.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"hsv"),Te(e)==="array"&&e.length===3)return"hsv"}});const U1=(e,t,r)=>Pn(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,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]=j1([t,r,n]),[c,l,u]=Pu(i,a,s);return[c,l,u,...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]=be(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});me.format.oklab=cs;me.autodetect.push({p:2,test:(...e)=>{if(e=be(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)=>Pn(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,w){return p+w});if(r.forEach((p,w)=>{r[w]*=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 w=a[p]/180*wa;c+=Qc(w)*r[0],l+=Zc(w)*r[0]}let u=i.alpha()*r[0];e.forEach((p,w)=>{const T=p.get(t);u+=p.alpha()*r[w+1];for(let g=0;g<a.length;g++)if(!isNaN(T[g]))if(s[g]+=r[w+1],t.charAt(g)==="h"){const h=T[g]/180*wa;c+=Qc(h)*r[w+1],l+=Zc(h)*r[w+1]}else a[g]+=T[g]*r[w+1]});for(let p=0;p<a.length;p++)if(t.charAt(p)==="h"){let w=G1(l/s[p],c/s[p])/wa*180;for(;w<0;)w+=360;for(;w>=360;)w-=360;a[p]=w}else a[p]=a[p]/s[p];return u/=n,new G(a,t).alpha(u>.99999?1:u,!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=[],a=[0,0],s=!1,c=[],l=!1,u=0,p=1,w=!1,T={},g=!0,h=1;const y=function(E){if(E=E||["#fff","#000"],E&&Te(E)==="string"&&xe.brewer&&xe.brewer[E.toLowerCase()]&&(E=xe.brewer[E.toLowerCase()]),Te(E)==="array"){E.length===1&&(E=[E[0],E[0]]),E=E.slice(0);for(let M=0;M<E.length;M++)E[M]=xe(E[M]);i.length=0;for(let M=0;M<E.length;M++)i.push(M/(E.length-1))}return d(),c=E},v=function(E){if(s!=null){const M=s.length-1;let $=0;for(;$<M&&E>=s[$];)$++;return $-1}return 0};let O=E=>E,k=E=>E;const R=function(E,M){let $,H;if(M==null&&(M=!1),isNaN(E)||E===null)return r;M?H=E:s&&s.length>2?H=v(E)/(s.length-2):p!==u?H=(E-u)/(p-u):H=1,H=k(H),M||(H=O(H)),h!==1&&(H=K1(H,h)),H=a[0]+H*(1-a[0]-a[1]),H=en(H,0,1);const U=Math.floor(H*1e4);if(g&&T[U])$=T[U];else{if(Te(c)==="array")for(let m=0;m<i.length;m++){const j=i[m];if(H<=j){$=c[m];break}if(H>=j&&m===i.length-1){$=c[m];break}if(H>j&&H<i[m+1]){H=(H-j)/(i[m+1]-j),$=xe.interpolate(c[m],c[m+1],H,t);break}}else Te(c)==="function"&&($=c(H));g&&(T[U]=$)}return $};var d=()=>T={};y(e);const S=function(E){const M=xe(R(E));return l&&M[l]?M[l]():M};return S.classes=function(E){if(E!=null){if(Te(E)==="array")s=E,o=[E[0],E[E.length-1]];else{const M=xe.analyze(o);E===0?s=[M.min,M.max]:s=xe.limits(M,"e",E)}return S}return s},S.domain=function(E){if(!arguments.length)return o;u=E[0],p=E[E.length-1],i=[];const M=c.length;if(E.length===M&&u!==p)for(let $ of Array.from(E))i.push(($-u)/(p-u));else{for(let $=0;$<M;$++)i.push($/(M-1));if(E.length>2){const $=E.map((U,m)=>m/(E.length-1)),H=E.map(U=>(U-u)/(p-u));H.every((U,m)=>$[m]===U)||(k=U=>{if(U<=0||U>=1)return U;let m=0;for(;U>=H[m+1];)m++;const j=(U-H[m])/(H[m+1]-H[m]);return $[m]+j*($[m+1]-$[m])})}}return o=[u,p],S},S.mode=function(E){return arguments.length?(t=E,d(),S):t},S.range=function(E,M){return y(E),S},S.out=function(E){return l=E,S},S.spread=function(E){return arguments.length?(n=E,S):n},S.correctLightness=function(E){return E==null&&(E=!0),w=E,d(),w?O=function(M){const $=R(0,!0).lab()[0],H=R(1,!0).lab()[0],U=$>H;let m=R(M,!0).lab()[0];const j=$+(H-$)*M;let I=m-j,W=0,J=1,de=20;for(;Math.abs(I)>.01&&de-- >0;)(function(){return U&&(I*=-1),I<0?(W=M,M+=(J-M)*.5):(J=M,M+=(W-M)*.5),m=R(M,!0).lab()[0],I=m-j})();return M}:O=M=>M,S},S.padding=function(E){return E!=null?(Te(E)==="number"&&(E=[E,E]),a=E,S):a},S.colors=function(E,M){arguments.length<2&&(M="hex");let $=[];if(arguments.length===0)$=c.slice(0);else if(E===1)$=[S(.5)];else if(E>1){const H=o[0],U=o[1]-H;$=X1(0,E).map(m=>S(H+m/(E-1)*U))}else{e=[];let H=[];if(s&&s.length>2)for(let U=1,m=s.length,j=1<=m;j?U<m:U>m;j?U++:U--)H.push((s[U-1]+s[U])*.5);else H=o;$=H.map(U=>S(U))}return xe[M]&&($=$.map(H=>H[M]())),$},S.cache=function(E){return E!=null?(g=E,S):g},S.gamma=function(E){return E!=null?(h=E,S):h},S.nodata=function(E){return E!=null?(r=xe(E),S):r},S}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,u=[0,1,2].map(p=>i.reduce((w,T,g)=>w+a[g]*l**(s-g)*c**g*T[p],0));return new G(u,"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});me.format.rgb=(...e)=>{const t=be(e,"rgba");return t[3]===void 0&&(t[3]=1),t};me.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 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=Tr*((e+120)/360+t*c),u=ly(o[0]+a*c,n),w=(i!==0?r[0]+c*i:r)*u*(1-u)/2,T=fy(l),g=uy(l),h=u+w*(-.14861*T+1.78277*g),y=u+w*(-.29227*T-.90649*g),v=u+w*(1.97294*T);return xe(ns([h*255,y*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=()=>{let e="#";for(let t=0;t<6;t++)e+=py.charAt(hy(my()*16));return new G(e,"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 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,w=0,T=null;T=[],T.push(n);for(let y=1;y<r;y++)T.push(n+y/r*(o-n));for(T.push(o);p;){for(let v=0;v<r;v++)u[v]=0;for(let v=0;v<c;v++){const O=i[v];let k=Number.MAX_VALUE,R;for(let d=0;d<r;d++){const S=wy(T[d]-O);S<k&&(k=S,R=d),u[R]++,l[v]=R}}const y=new Array(r);for(let v=0;v<r;v++)y[v]=null;for(let v=0;v<c;v++)s=l[v],y[s]===null?y[s]=i[v]:y[s]+=i[v];for(let v=0;v<r;v++)y[v]*=1/u[v];p=!1;for(let v=0;v<r;v++)if(y[v]!==T[v]){p=!0;break}T=y,w++,w>200&&(p=!1)}const g={};for(let y=0;y<r;y++)g[y]=[];for(let y=0;y<c;y++)s=l[y],g[s].push(i[y]);let h=[];for(let y=0;y<r;y++)h.push(g[y][0]),h.push(g[y][g[y].length-1]);h=h.sort((y,v)=>y-v),a.push(h[0]);for(let y=1;y<h.length;y+=2){const v=h[y];!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,Sy=5e-4,vy=.1,tl=1.14,Go=.022,rl=1.414,xy=(e,t)=>{e=new G(e),t=new G(t),e.alpha()<1&&(e=Cn(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)<Sy?0:o<i?a*tl:s*tl;return(Math.abs(c)<vy?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: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(ee){return 360*ee/(2*sl)},a=function(ee){return 2*sl*ee/360};e=new G(e),t=new G(t);const[s,c,l]=Array.from(e.lab()),[u,p,w]=Array.from(t.lab()),T=(s+u)/2,g=Sr(et(c,2)+et(l,2)),h=Sr(et(p,2)+et(w,2)),y=(g+h)/2,v=.5*(1-Sr(et(y,7)/(et(y,7)+et(25,7)))),O=c*(1+v),k=p*(1+v),R=Sr(et(O,2)+et(l,2)),d=Sr(et(k,2)+et(w,2)),S=(R+d)/2,E=i(ol(l,O)),M=i(ol(w,k)),$=E>=0?E:E+360,H=M>=0?M:M+360,U=il($-H)>180?($+H+360)/2:($+H)/2,m=1-.17*Vo(a(U-30))+.24*Vo(a(2*U))+.32*Vo(a(3*U+6))-.2*Vo(a(4*U-63));let j=H-$;j=il(j)<=180?j:H<=$?j+360:j-360,j=2*Sr(R*d)*al(a(j)/2);const I=u-s,W=d-R,J=1+.015*et(T-50,2)/Sr(20+et(T-50,2)),de=1+.045*S,Ce=1+.015*S*m,lt=30*Cy(-et((U-275)/25,2)),q=-(2*Sr(et(S,7)/(et(S,7)+et(25,7))))*al(2*a(lt)),le=Sr(et(I/(r*J),2)+et(W/(n*de),2)+et(j/(o*Ce),2)+q*(W/(n*de))*(j/(o*Ce)));return _y(0,Ty(100,le))}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 Oy=(...e)=>{try{return new G(...e),!0}catch{return!1}},ky={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=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,My=(...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 My(this._rgb)};const Ny=(...e)=>new G(...e,"cmyk");Object.assign(xe,{cmyk:Ny});me.format.cmyk=Iy;me.autodetect.push({p:2,test:(...e)=>{if(e=be(e,"cmyk"),Te(e)==="array"&&e.length===4)return"cmyk"}});const Dy=(...e)=>{const t=be(e,"hsla");let r=kn(e)||"lsa";return t[0]=Ht(t[0]||0)+"deg",t[1]=Ht(t[1]*100)+"%",t[2]=Ht(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=be(e,"lab");let r=kn(e)||"lab";return t[0]=Ht(t[0])+"%",t[1]=Ht(t[1]),t[2]=Ht(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=be(e,"lch");let r=kn(e)||"lab";return t[0]=Ht(t[0])+"%",t[1]=Ht(t[1]),t[2]=isNaN(t[2])?"none":Ht(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=be(e,"lab");return t[0]=Ht(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]=be(e,"rgb"),[i,a,s]=ls(t,r,n),[c,l,u]=Nu(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]},Fy=(...e)=>{const t=be(e,"lch");return t[0]=Ht(t[0]*100)+"%",t[1]=Ba(t[1]),t[2]=isNaN(t[2])?"none":Ht(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=be(e,"rgba");let r=kn(e)||"rgb";if(r.substr(0,3)==="hsl")return Dy($u(t),r);if(r.substr(0,3)==="lab"){const n=uo();Cr("d50");const o=$y(is(t),r);return Cr(n),o}if(r.substr(0,3)==="lch"){const n=uo();Cr("d50");const o=Ly(ss(t),r);return Cr(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=be(e,"lch");const[t,r,n,...o]=e,[i,a,s]=Mu(t,r,n),[c,l,u]=cs(i,a,s);return[c,l,u,...o.length>0&&o[0]<1?[o[0]]:[]]},Ar=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,er=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Wt=/\s*/.source,In=/\s+/.source,us=/\s*,\s*/.source,Di=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Mn=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Hu=new RegExp("^rgba?\\("+Wt+[Ar,Ar,Ar].join(In)+Mn+"\\)$"),qu=new RegExp("^rgb\\("+Wt+[Ar,Ar,Ar].join(us)+Wt+"\\)$"),Wu=new RegExp("^rgba\\("+Wt+[Ar,Ar,Ar,er].join(us)+Wt+"\\)$"),Gu=new RegExp("^hsla?\\("+Wt+[Di,fi,fi].join(In)+Mn+"\\)$"),Vu=new RegExp("^hsl?\\("+Wt+[Di,fi,fi].join(us)+Wt+"\\)$"),Yu=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ku=new RegExp("^lab\\("+Wt+[er,er,er].join(In)+Mn+"\\)$"),Xu=new RegExp("^lch\\("+Wt+[er,er,Di].join(In)+Mn+"\\)$"),Qu=new RegExp("^oklab\\("+Wt+[er,er,er].join(In)+Mn+"\\)$"),Zu=new RegExp("^oklch\\("+Wt+[er,er,Di].join(In)+Mn+"\\)$"),{round:Ju}=Math,bn=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(me.format.named)try{return me.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=bn(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=bn(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();Cr("d50");const o=bn(os(r));Cr(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();Cr("d50");const o=bn(as(r));Cr(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=bn(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=bn(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;me.format.css=fs;me.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&Te(e)==="string"&&fs.test(e))return"css"}});me.format.gl=(...e)=>{const t=be(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 ku(this._rgb,e)};const Hy=(...e)=>new G(...e,"hex");xe.hex=Hy;me.format.hex=Ou;me.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=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=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 Sa=(...e)=>new G(...e,"temp");Object.assign(xe,{temp:Sa,kelvin:Sa,temperature:Sa});me.format.temp=me.format.kelvin=me.format.temperature=ef;G.prototype.oklch=function(){return ju(this._rgb)};const Gy=(...e)=>new G(...e,"oklch");Object.assign(xe,{oklch:Gy});me.format.oklch=zu;me.autodetect.push({p:2,test:(...e)=>{if(e=be(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:_n,contrast:Ey,contrastAPCA:xy,cubehelix:dy,deltaE:Ay,distance:Ry,input:me,interpolate:Cn,limits:Fu,mix:Cn,random:gy,scale:ui,scales:ky,valid:Oy});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(x.Box,{flexDirection:"column",display:"flex",alignItems:"center",justifyContent:"center",children:Y(x.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(wn,{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:Y(x.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]=ne.useState(""),[a,s]=ne.useState(""),[c,l]=ne.useState(!1),[u,p]=ne.useState(n||null),w=!!e.authBackendUrl,T=!w,g=w;ne.useEffect(()=>{if(!e.authBackendUrl)return;const v=new URLSearchParams(window.location.search),O=v.get("sessionToken"),k=v.get("websiteId");if(O&&k){typeof window<"u"&&e.useLocalStorage!==!1&&(vr("dqm_sessionToken",O),vr("dqm_websiteID",k),vr("dqm_sessionType","backend"),Ko("dqm_apiKey"));const R=window.location.origin+window.location.pathname;window.history.replaceState({},document.title,R),t({apiKey:"BACKEND_SESSION",websiteId:k,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 k=await v.json().catch(()=>({}));throw new Error(k.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)}},y=()=>{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 Y(x.Box,{sx:{display:"flex",flexDirection:"column",gap:3,p:3,width:"100%"},children:[Y(x.Box,{sx:{textAlign:"center"},children:[C(pt.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}),T&&Y(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"})]}),g&&T&&C(x.Divider,{children:"OR"}),g&&C(x.Button,{variant:"contained",startIcon:C(pt.Login,{}),onClick:y,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"}),Y(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"})]})]})},Zy=({config:e,onAuthSuccess:t,onAuthError:r})=>(ne.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),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]=ne.useState("idle"),[l,u]=ne.useState(null),[p,w]=ne.useState(null),[T,g]=ne.useState(null),[h,y]=ne.useState(null),[v,O]=ne.useState([]),[k,R]=ne.useState(null),[d,S]=ne.useState(!1),[E,M]=ne.useState(null),[$,H]=ne.useState(null),[U,m]=ne.useState("direct"),[j,I]=ne.useState(""),[W,J]=ne.useState(null),[de,Ce]=ne.useState(null),[lt,z]=ne.useState(!1),[q,le]=ne.useState("browser"),[ee,se]=ne.useState(!1),[oe,fe]=ne.useState(!1),[Z,he]=ne.useState(0),[we,pe]=ne.useState(()=>typeof window>"u"?!0:it("dqm_quality_breakdown_expanded")!=="false"),[Oe,N]=ne.useState(new Set),[We,Ke]=ne.useState({}),[qe,nr]=ne.useState(0),[kt,Pt]=ne.useState(0),[or,ir]=ne.useState(0),Fr=ne.useRef(null),Ur=ne.useRef(!1),Nn=ne.useRef("browser");ne.useEffect(()=>{new URLSearchParams(window?.location?.search).get("dqm")==="true"&&r()},[window?.location?.search]),ne.useEffect(()=>{(()=>{if(n?.disabled===!0){S(!1),R("DQM is disabled. Permission denied."),c("idle");return}if(n?.apiKey&&n?.websiteId){M({apiKey:n.apiKey,websiteId:n.websiteId}),m("direct"),H(null),S(!0);return}if(typeof window<"u"&&n?.useLocalStorage!==!1){if(it("dqm_sessionType")==="backend"){const ae=it("dqm_sessionToken");if(ae){H(ae),m("backend"),M({apiKey:"BACKEND_SESSION",websiteId:"BACKEND_SESSION"}),S(!0);return}}const X=it("dqm_apiKey"),Q=it("dqm_websiteID");if(X&&Q){M({apiKey:X,websiteId:Q}),m("direct"),H(null),S(!0);return}}if(n?.authBackendUrl||n?.oauth2Config){S(!1),c("idle");return}S(!1),R("DQM is not configured. Please provide API credentials via props, localStorage, or configure an authentication backend."),c("idle")})()},[n]),ne.useEffect(()=>{d&&E&&s==="idle"&&ut()},[d,E]);const gr=ne.useCallback(L=>{M({apiKey:L.apiKey,websiteId:L.websiteId}),H(L.sessionToken||null),m(L.sessionType),S(!0),R(null),o&&o(L)},[o]),ar=ne.useCallback(L=>{console.error("[DQM] Authentication error:",L),R(L.message),S(!1),i&&i(L)},[i]);ne.useCallback(()=>{if(E)return E;const L=E?.apiKey||it("dqm_apiKey"),F=E?.websiteId||it("dqm_websiteID");return L&&F?{apiKey:L,websiteId:F}:null},[E]);const Lt=ne.useCallback(()=>{M(null),H(null),m("direct"),S(!1),typeof window<"u"&&n?.useLocalStorage!==!1&&(Xo("dqm_apiKey"),Xo("dqm_websiteID"),Xo("dqm_sessionToken"),Xo("dqm_sessionType")),c("idle"),u(null),w(null),g(null),h&&(clearInterval(h),y(null))},[n?.useLocalStorage,h]),Vt=ne.useCallback(L=>{if(qe===0)return;let F=(or||kt)-1;L==="next"?F=(F+1)%qe:(F=F-1,F<0&&(F=qe-1)),Pt(F+1),ir(0),he((X=>X+1))},[kt,or,qe]);ne.useEffect(()=>{ee||(nr(0),Pt(0),Ur.current=!1)},[ee]),ne.useEffect(()=>{qe>0&&kt===0&&Pt(1)},[qe,kt]),ne.useEffect(()=>{try{window.parent?.postMessage({type:"DQM_DRAWER_STATE",payload:{open:e}},"*")}catch{}},[e]);const jr=ne.useCallback(L=>{console.error("[DQM] API authentication error:",L),S(!1),R("Authentication required. Please refresh the page.")},[]),on=L=>{const X=new DOMParser().parseFromString(L,"text/html");[".MuiDrawer-root","#dqm-widget-host",'[data-block-handle="dqm_quality_analysis"]',"#dqm-quality-analysis-script","#PBarNextFrameWrapper"].forEach(ge=>{try{X.querySelectorAll(ge).forEach(Se=>Se.remove())}catch(Ae){console.warn("[DQM] Could not process selector:",ge,Ae.message)}});const ae=X.documentElement.outerHTML,ue=L.length,Ee=ae.length;return((ue-Ee)/ue*100).toFixed(1),Ee>1024*1024&&console.warn(`[DQM] Optimized HTML still large: ${(Ee/1024/1024).toFixed(1)}MB`),ae},Yt=ne.useCallback(()=>U==="backend"&&n?.authBackendUrl?n.authBackendUrl:"https://api.crownpeak.net/dqm-cms/v1",[U,n?.authBackendUrl]),Bt=ne.useCallback(()=>{const L={"Content-Type":"application/json"};if(U==="backend"){const F=$||it("dqm_sessionToken");F&&(L.Authorization=`Bearer ${F}`)}else{const F=E?.apiKey||it("dqm_apiKey");F&&(L["x-api-key"]=F)}return L},[U,$,E]),vt=L=>{if(!/^[\x00-\x7F]*$/.test(L))throw new Error("API key contains non-ASCII characters and cannot be used in HTTP headers")},sr=async()=>{if(!l){console.error("[DQM] No analysis data available");return}fe(!0);try{const L=Yt(),F=Bt();let X;if(U==="backend")X=`${L}/dqm/assets/${l.assetId}/pagehighlight/all`;else{const ae=E?.apiKey||it("dqm_apiKey");if(!ae)throw new Error("DQM API key not found");try{vt(ae)}catch(Ee){throw new Error(`Invalid API key: ${Ee instanceof Error?Ee.message:"encoding error"}`)}const ue=encodeURIComponent(ae);X=`${L}/assets/${l.assetId}/pagehighlight/all?apiKey=${ue}`}const Q=await Fe.get(X,{headers:F,timeout:3e4,responseType:"text"});if(Q.data){const ae=Q.data,ue=window.open("","_blank");if(ue){const Ae=new DOMParser().parseFromString(ae,"text/html").documentElement;Ae.getElementsByTagName("body")[0].style.overflow="auto",ue.document.open(),ue.document.write(Ae.outerHTML),ue.document.close(),setTimeout(()=>{const Se=ue.document.createElement("style");Se.textContent=`
98
+ [data-dqm-id] {
99
+ animation: pulse 1.5s ease-in-out infinite;
100
+ }
101
+
102
+ @keyframes pulse {
103
+ 0%, 100% {
104
+ background-color: rgba(255, 255, 0, 0.3);
105
+ border-color: #dc3545;
106
+ }
107
+ 50% {
108
+ background-color: rgba(255, 255, 0, 0.6);
109
+ border-color: #ff6666;
110
+ }
111
+ }
112
+ `,ue.document.head.appendChild(Se)},100)}}else console.warn("[DQM] No content in response"),alert("Failed to load page with all errors. Please try again.")}catch(L){console.error("[DQM] Failed to fetch page with all errors:",L),alert("Failed to load page with all errors. Please try again.")}finally{fe(!1)}},Kt=async(L,F=0)=>{try{const ue=Yt(),Ee=Bt();let ge;if(U==="backend")ge=`${ue}/dqm/assets/${L}/status`;else{const Je=E?.apiKey||it("dqm_apiKey");if(!Je)throw new Error("DQM API key not available for polling");try{vt(Je)}catch(Mt){throw new Error(`Invalid API key: ${Mt instanceof Error?Mt.message:"encoding error"}`)}const cr=encodeURIComponent(Je);ge=`${ue}/assets/${L}/status?apiKey=${cr}`}const Se=(await Fe.get(ge,{headers:Ee,timeout:1e4})).data,It=Se.checkpoints&&Array.isArray(Se.checkpoints);if(It&&Se.totalCheckpoints!==void 0&&Se.checkpoints.length===Se.totalCheckpoints)h&&(clearInterval(h),y(null)),u({assetId:Se.assetId||Se.id,created:Se.created,siteName:Se.siteName,totalCheckpoints:Se.totalCheckpoints,totalErrors:Se.totalErrors,checkpoints:Se.checkpoints||[]}),O(Object.entries(Or(Se.checkpoints||[]))),c("completed"),g(null);else if(Se.status==="failed"||Se.status==="error")h&&(clearInterval(h),y(null)),w(Se.error||Se.message||"Analysis failed with unknown error"),O([]),c("error"),g(null);else{const Je=It?Se.checkpoints.length:0,cr=Se.totalCheckpoints||"?";p&&w(null)}}catch(ue){if(console.error("[DQM] Polling failed:",ue),Fe.isAxiosError(ue)&&ue.response?.status===401){jr(ue);return}if(F<30){const Ee=Math.min(2e3*Math.pow(1.5,F),1e4);setTimeout(()=>Kt(L,F+1),Ee)}else h&&(clearInterval(h),y(null)),w("Analysis polling failed after maximum attempts"),O([]),c("error"),g(null)}},xt=L=>{h&&clearInterval(h),Kt(L);const F=setInterval(()=>{T?Kt(L):(clearInterval(F),y(null))},3e3);y(F)},nt=()=>{h&&(clearInterval(h),y(null)),g(null)};ne.useEffect(()=>()=>{nt()},[]),ne.useEffect(()=>{e&&ut()},[e]);const ut=async()=>{c("analyzing"),w(null),R(null),u(null);try{if(U==="backend"){if(!($||it("dqm_sessionToken"))){c("idle"),console.warn("[DQM] Cannot start analysis: No session token available");return}}else{const Ae=E?.apiKey||it("dqm_apiKey"),Se=E?.websiteId||it("dqm_websiteID");if(!Ae||!Se){c("idle"),console.warn("[DQM] Cannot start analysis: No credentials available");return}try{vt(Ae)}catch(It){throw new Error(`Invalid API key: ${It instanceof Error?It.message:"encoding error"}`)}}let L;a?(console.warn("[DQM] DEBUG MODE: Using custom HTML from debugHtml prop"),L=a):L=document.documentElement.outerHTML;const F=on(L),X=Yt(),Q=Bt();let ae,ue;if(U==="backend")ae=`${X}/dqm/assets`,ue={html:F,url:window.location.href};else{const Ae=E?.apiKey||it("dqm_apiKey"),Se=E?.websiteId||it("dqm_websiteID"),It=encodeURIComponent(Ae);ae=`${X}/assets?apiKey=${It}`,ue={websiteId:Se,content:F,contentType:"text/html; charset=UTF-8",title:document.title,timestamp:new Date().toISOString()},Q["Content-Type"]="application/x-www-form-urlencoded"}const Ee=await Fe.post(ae,ue,{headers:Q,timeout:3e4}),ge=Ee.data?.assetId||Ee.data?.id;if(ge)g(ge),xt(ge);else throw new Error("No Asset ID returned from API")}catch(L){if(console.error("[DQM] Analysis failed:",L),Fe.isAxiosError(L)&&L.response?.status===401){jr(L),c("error");return}let F="Unknown error occurred";Fe.isAxiosError(L)?F=L.response?.data?.message||L.message||"API request failed":L instanceof Error&&(F=L.message),w(F),O([]),c("error"),nt()}},zr=L=>!L.totalCheckpoints||L.totalCheckpoints===0?0:Math.round((L.totalCheckpoints-L.totalErrors)/L.totalCheckpoints*100),Or=L=>{const F=L.reduce((X,Q)=>(X[Q.category]||(X[Q.category]=[]),X[Q.category].push(Q),X),{});return Object.entries(F).forEach(([X,Q])=>{Q.forEach(ae=>{ae.colors=Ky(X,Object.keys(F))})}),F},Xt=async(L,F,X="browser")=>{I(""),z(!0),J(F),le(X),se(!0),Ke(ae=>({...ae,[F]:{browser:"",source:""}})),Nn.current=X;const Q=l?.checkpoints.find(ae=>ae.id===F)||null;Ce(Q);try{const ae=Yt(),ue=Bt();let Ee,ge;if(U==="backend")Ee=`${ae}/dqm/assets/${L}/pagehighlight/${F}?highlightSource=false`,ge=`${ae}/dqm/assets/${L}/pagehighlight/${F}?highlightSource=true`;else{const Je=E?.apiKey||it("dqm_apiKey");if(!Je)throw new Error("DQM API key not found");try{vt(Je)}catch(Mt){throw new Error(`Invalid API key: ${Mt instanceof Error?Mt.message:"encoding error"}`)}const cr=encodeURIComponent(Je);Ee=`${ae}/assets/${L}/errors/${F}?apiKey=${cr}&highlightSource=false`,ge=`${ae}/assets/${L}/errors/${F}?apiKey=${cr}&highlightSource=true`}const Ae=Q?.canHighlight.page&&await Fe.get(Ee,{headers:ue,timeout:15e3,responseType:"text"})||void 0,Se=Q?.canHighlight.source&&await Fe.get(ge,{headers:ue,timeout:15e3,responseType:"text"})||void 0,It=Ae?.data||"<p>No highlighted content available.</p>",gt=Se?.data||"<p>No source content available for this checkpoint.</p>";Ke(Je=>({...Je,[F]:{browser:It,source:gt}})),X==="browser"&&Q?.canHighlight?.page&&l?an(l.assetId,Q.id):X==="source"&&Q?.canHighlight?.source&&l&&yr(l.assetId,Q.id)}catch(ae){console.error("[DQM] Failed to fetch highlighted content:",ae),I('<p style="color: #dc3545;">Failed to load highlighted content. Please try again.</p>')}finally{z(!1)}},yr=async(L,F)=>{const X=We[F];if(X&&X.source){I(X.source);return}console.warn("[DQM] Source view not in cache for checkpoint:",F,", fetching..."),z(!0);try{const Q=Yt(),ae=Bt();let ue;if(U==="backend")ue=`${Q}/dqm/assets/${L}/pagehighlight/${F}?highlightSource=true`;else{const ge=E?.apiKey||it("dqm_apiKey");if(!ge)throw new Error("DQM API key not found");try{vt(ge)}catch(Se){throw new Error(`Invalid API key: ${Se instanceof Error?Se.message:"encoding error"}`)}const Ae=encodeURIComponent(ge);ue=`${Q}/assets/${L}/errors/${F}?apiKey=${Ae}&highlightSource=true`}const Ee=await Fe.get(ue,{headers:ae,timeout:15e3,responseType:"text"});if(Ee.data){const ge=Ee.data;I(ge),Ke(Ae=>({...Ae,[F]:{...Ae[F],source:ge}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(Q){console.error("[DQM] Failed to fetch source view:",Q),I('<p style="color: #dc3545;">Failed to load source view. Please try again.</p>')}finally{z(!1)}},an=async(L,F)=>{const X=We[F];if(X&&X.browser){I(X.browser);return}console.warn("[DQM] Browser view not in cache for checkpoint:",F,", fetching..."),z(!0);try{const Q=Yt(),ae=Bt();let ue;if(U==="backend")ue=`${Q}/dqm/assets/${L}/pagehighlight/${F}?highlightSource=false`;else{const ge=E?.apiKey||it("dqm_apiKey");if(!ge)throw new Error("DQM API key not found");try{vt(ge)}catch(Se){throw new Error(`Invalid API key: ${Se instanceof Error?Se.message:"encoding error"}`)}const Ae=encodeURIComponent(ge);ue=`${Q}/assets/${L}/errors/${F}?apiKey=${Ae}&highlightSource=false`}const Ee=await Fe.get(ue,{headers:ae,timeout:15e3,responseType:"text"});if(Ee.data){const ge=Ee.data;I(ge),Ke(Ae=>({...Ae,[F]:{...Ae[F],browser:ge}}))}else console.warn("[DQM] No highlighted content in response"),I("<p>No highlighted content available.</p>")}catch(Q){console.error("[DQM] Failed to restore browser view:",Q),I('<p style="color: #dc3545;">Failed to load browser view. Please try again.</p>')}finally{z(!1)}};return Y(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}}},MuiPopper:{defaultProps:{disablePortal:!0}},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(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?Y(eo,{children:[C(ng,{children:Y(x.Box,{display:"flex",alignItems:"center",gap:1.5,justifyContent:"space-between",width:"100%",children:[Y(x.Typography,{variant:"h6",component:"h1",fontWeight:700,color:"white",flexDirection:"row",alignItems:"center",display:"flex",gap:"0.5rem",children:[Y("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}}),Y("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"]}),Y(x.Box,{display:"flex",gap:1,children:[C(x.Tooltip,{title:"Logout",children:C(x.IconButton,{onClick:Lt,sx:{color:"white","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},"aria-label":"Logout",children:C(pt.Logout,{})})}),C(x.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:Y(rs,{children:[s==="idle"&&d&&Y(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(ag,{expanded:we}),s==="error"&&k&&C(x.Box,{p:2,children:Y(x.Alert,{severity:k.includes("Permission denied")?"warning":"error",children:[C(x.Typography,{variant:"subtitle1",fontWeight:700,gutterBottom:!0,children:k.includes("Permission denied")?"Access Denied":k.includes("not configured")?"Configuration Required":"Authentication Error"}),C(x.Typography,{variant:"body2",color:"text.secondary",children:k})]})}),s==="error"&&!k&&C(x.Box,{p:2,children:Y(x.Alert,{severity:"error",action:C(x.Button,{color:"inherit",size:"small",onClick:ut,startIcon:C(pt.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&&Y(x.Box,{pb:0,children:[Y(pu,{children:[C(x.Typography,{variant:"h6",fontWeight:700,gutterBottom:!0,sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:"Overall Quality"}),Y(x.Box,{display:"flex",alignItems:"center",justifyContent:"flex-start ",columnGap:"60px",pt:2,children:[Y(x.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,children:[C(Xy,{value:zr(l)}),Y(x.Box,{children:[C(x.Box,{display:"flex",alignItems:"center",justifyContent:"center",gap:1,mb:1,flexDirection:"column",children:Y(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:Y(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:Y(x.Button,{variant:"outlined",size:"large",onClick:sr,disabled:oe,sx:{borderRadius:2,py:1,mb:3,fontSize:"17px",textTransform:"none"},children:[oe?C(wn,{size:24,sx:{mr:1}}):null,"Show Page with all Errors"]})})]})]}),Y(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:[Y(x.AccordionSummary,{expandIcon:C(pt.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,[([L,F])=>F.filter(X=>X.failed).length/F.length]).reverse().map(([L,F])=>{const X=F.filter(Ee=>Ee.failed).length,Q=F.length-X,ae=F[0]?.colors.bg,ue=Math.round(Q/F.length*100);return C(x.Tooltip,{title:Y(x.Box,{sx:{p:.5},display:"flex",flexDirection:"column",alignItems:"center",children:[C(x.Typography,{variant:"body2",fontWeight:600,sx:{mb:.5},children:L}),Y(x.Typography,{variant:"caption",display:"block",children:[ue,"% passed"]}),C(x.Typography,{variant:"caption",display:"block",children:X===0?"All Passed":`${Q} of ${F.length} passed`})]}),placement:"top",arrow:!0,children:C(wn,{variant:"determinate",enableTrackSlot:!0,value:ue,size:40,thickness:4,sx:{color:ae,top:0,left:0}})},L)})})]}),C(x.AccordionDetails,{sx:{padding:3,paddingTop:0},children:C(hu,{children:C(x.Box,{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1,children:Uo(v,[([L,F])=>F.filter(X=>X.failed).length/F.length]).reverse().map(([L,F])=>{const X=F.filter(ue=>ue.failed).length,Q=F.length-X,ae=F[0]?.colors.bg;return Y(x.Box,{display:"flex",alignItems:"center",flexDirection:"column",gap:1,width:"200px",children:[Y(x.Box,{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",children:[C(wn,{enableTrackSlot:!0,variant:"determinate",value:Q/F.length*100,size:"100px",thickness:4,sx:{color:ae,"& .MuiCircularProgress-circleNegative":{stroke:"#e0e0e0"}}}),Y(x.Typography,{variant:"h6",component:"div",color:ae,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",fontWeight:700},children:[Math.round(Q/F.length*100),"%"]})]}),Y(x.Typography,{component:"div",fontWeight:"bold",color:"gray",sx:{fontSize:"1rem",textAlign:"center",fontWeight:600},children:[L,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:X>0?"#dc3545":"#28a745",children:X===0?"All Passed":`${Q} of ${F.length} Passed`})})]})]},L)})})})})]}),l.checkpoints.some(L=>L.failed)&&Y(eo,{children:[Y(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(L=>L.failed).length,")"]}),C(x.Box,{sx:{position:"sticky",top:-31,zIndex:10,py:2,borderRadius:0},children:Y(x.Card,{sx:{padding:2,pb:1,px:"20px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"},children:[Y(x.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,children:[Y(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:()=>N(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,[([L,F])=>F.filter(X=>X.failed).length/F.length]).filter(([,L])=>L.some(F=>F.failed)).reverse().map(([L,F])=>{const X=F.filter(Ee=>Ee.failed).length,{bg:Q,text:ae}=F[0]?.colors||{},ue=Oe.has(L);return C(x.Chip,{label:`${L} (${X})`,onClick:()=>{N(Ee=>{const ge=new Set(Ee);return ge.has(L)?ge.delete(L):ge.add(L),ge})},sx:{backgroundColor:ue?Q:"transparent",color:ue?ae:Oe.size===0?Q:"#555555",border:`2px solid ${ue||Oe.size===0?Q:"#B1B1B1"}`,fontWeight:600,fontSize:"0.875rem",cursor:"pointer",transition:"all 0.2s ease","&:hover":{backgroundColor:Q,color:ae,transform:"translateY(-2px)",boxShadow:`0 4px 8px ${Q}40`,border:`2px solid ${Q}`}}},L)})})]})}),C(x.Box,{sx:{minHeight:"calc(100vh - 320px)"},children:C(mu,{children:C(x.List,{sx:{p:0},children:Uo(v,[([L,F])=>F.filter(X=>X.failed).length/F.length]).reverse().filter(([L,F])=>Oe.size===0?F.some(X=>X.failed):Oe.has(L)&&F.some(X=>X.failed)).map(([L,F])=>C(eo,{children:F.filter(({failed:X})=>X).map(X=>{const{bg:Q}=X.colors;return C(x.ListItem,{sx:{px:0,py:1.5,alignItems:"flex-start"},children:Y(x.Box,{mt:.5,children:[C(x.Typography,{variant:"h5",component:"div",fontWeight:600,mb:1.5,children:X.name}),Y(x.Box,{display:"flex",gap:1,flexWrap:"wrap",mb:2,children:[X?.canHighlight.page&&C(x.Button,{variant:"outlined",size:"small",startIcon:C(pt.Visibility,{}),onClick:()=>{J(X.id),Xt(l.assetId,X.id,"browser")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View in Browser"}),X?.canHighlight.source&&C(x.Button,{variant:"outlined",size:"small",startIcon:C(pt.Visibility,{}),onClick:()=>{J(X.id),Xt(l.assetId,X.id,"source")},sx:{textTransform:"none",borderRadius:2,fontSize:"0.875rem"},children:"View Source"}),C(x.Typography,{variant:"body2",color:Q,mr:2,ml:X?.canHighlight.source||X?.canHighlight.page?1:0,sx:{fontSize:"0.875rem",alignSelf:"center"},children:X.category}),X.topics?.map(ae=>C(x.Typography,{variant:"body2",color:"text.secondary",mr:2,sx:{fontSize:"0.875rem",alignSelf:"center"},children:ae},ae))]}),C(Xc,{html:X.description||""})]})},X.id)})}))})})})]})]})]})}),C(ig,{children:C(x.Button,{onClick:ut,variant:"contained",size:"large",fullWidth:!0,disabled:s==="analyzing"||!d||!!k,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"})}),Y(x.Dialog,{open:ee,onClose:()=>se(!1),maxWidth:"xl",fullWidth:!0,PaperProps:{style:{borderRadius:12,padding:24,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.2)"}},children:[Y(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:()=>se(!1),sx:{color:"text.secondary","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Close",children:C(pt.Close,{})})]}),C(x.DialogContent,{dividers:!0,sx:{padding:"16px 24px",borderBottom:"none"},children:Y(x.Box,{flexDirection:"row",display:"flex",gap:2,children:[de&&Y(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:de.name}),Y(x.Box,{display:"flex",gap:1,mb:2,flexWrap:"wrap",children:[de.colors&&C(x.Chip,{label:de.category,size:"medium",sx:{backgroundColor:de.colors.bg,color:de.colors.text,fontWeight:600,fontSize:"1rem"}}),de.topics?.map(L=>C(x.Chip,{label:L,size:"medium",variant:"outlined",sx:{fontSize:"1rem"}},L))]}),C(x.Box,{sx:{fontSize:"0.95rem",lineHeight:1.6},children:C(Xc,{html:de.description||""})})]}),lt||!j?Y(x.Box,{sx:{backgroundColor:"#fff",border:"1px solid #e0e0e0",borderRadius:2,padding:2,pt:0,marginTop:0,width:"80%"},children:[Y(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:[Y(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}})]}),Y(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:Y(x.Box,{textAlign:"center",children:[C(wn,{size:48,sx:{color:"#c653ff",mb:2}}),C(x.Typography,{variant:"body2",color:"text.secondary",children:"Loading both views..."})]})})})]}):Y(x.Box,{ref:Fr,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:de?"80%":"100%"},children:[Y(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:[Y(x.Tabs,{value:q,onChange:(L,F)=>{le(F),F==="browser"&&de?.canHighlight?.page&&l?an(l.assetId,de.id):F==="source"&&de?.canHighlight?.source&&l&&yr(l.assetId,de.id)},sx:{"& .MuiTab-root":{textTransform:"none",fontWeight:600,fontSize:"0.95rem"}},children:[C(x.Tab,{label:"Browser View",value:"browser",sx:{display:de?.canHighlight.page?"inline-flex":"none"}}),C(x.Tab,{label:"Source View",value:"source",sx:{display:de?.canHighlight.source?"inline-flex":"none"}})]}),Y(x.Box,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[qe>0&&Y(eo,{children:[Y(x.Typography,{variant:"body2",sx:{color:"text.secondary",fontWeight:600,fontSize:"0.875rem",minWidth:"60px",textAlign:"center"},children:[or||kt||1," of ",qe]}),C(x.IconButton,{size:"small",onClick:()=>Vt("prev"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Previous highlight",children:C(pt.ArrowBack,{fontSize:"small"})}),C(x.IconButton,{size:"small",onClick:()=>Vt("next"),disabled:qe===0,sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Next highlight",children:C(pt.ArrowForward,{fontSize:"small"})})]}),C(x.IconButton,{size:"small",onClick:()=>Xt(l.assetId,W,q),sx:{"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"}},"aria-label":"Reload highlights",children:C(pt.Replay,{fontSize:"small"})}),C(x.Tooltip,{title:"Open in new tab",placement:"top",children:C(x.IconButton,{size:"small",onClick:()=>{const L=window.open("","_blank");if(L){const Q=new DOMParser().parseFromString(j,"text/html").documentElement;Q.getElementsByTagName("body")[0].style.overflow="auto",L.document.open(),L.document.write(Q.outerHTML),L.document.close(),setTimeout(()=>{const ae=[".astHighlightFull",".astHighlightStart",".astHighlightMiddle",".astHighlightEnd",".astError"],ue=L.document.querySelectorAll(ae.join(", "));if(ue.length>0){const Ee=ue[0];Ee.scrollIntoView({behavior:"smooth",block:"center"}),Ee.classList.add("animate"),setTimeout(()=>{Ee.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"})})})]})]}),C(x.Box,{sx:{minHeight:400},children:q==="browser"?C(sg,{html:j,currentHighlight:kt,clickedIndicator:Z,onHighlightsFound:nr,onVisibleHighlightChange:ir}):C(cg,{html:j,onHighlightsFound:nr,currentHighlight:kt,shouldAutoScrollToFirst:!Ur.current,clickedIndicator:Z,onVisibleHighlightChange:ir,scrollContainerRef:Fr})})]})]})})]})]}):Y(x.Box,{sx:{width:"730px",height:"100vh",display:"flex",flexDirection:"column",backgroundColor:"#f5f5f5",overflow:"auto"},children:[n?.oauth2Config&&C(Zy,{config:n,onAuthSuccess:gr,onAuthError:ar}),Y(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:[Y("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}}),Y("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:"h4",fontWeight:700,gutterBottom:!0,children:"Crownpeak DQM"}),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(Qy,{config:n||{},onAuthSuccess:gr,onAuthError:ar,initialError:k})}),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(pt.Close,{})})]})})]})};exports.DQMSidebar=Jy;exports.ErrorBoundary=rs;exports.withErrorBoundary=Zm;
113
+ //# sourceMappingURL=index.cjs.map