@creaditor/business-ai 1.0.44 → 1.0.45

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.
@@ -62,7 +62,7 @@ Error generating stack: `+l.message+`
62
62
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
- */(function(e,t){var n;function a(l,i){var o=[],s=0;function p(c){return o.push(c),i}function u(){return o[s++]}return{tokenize:function(c){return c.replace(l,p)},detokenize:function(c){return c.replace(new RegExp("("+i+")","g"),u)}}}function r(){var l="`TMP`",i="`TMPLTR`",o="`TMPRTL`",s="`NOFLIP_SINGLE`",p="`NOFLIP_CLASS`",u="`COMMENT`",c="[^\\u0020-\\u007e]",d="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",f="(?:[0-9]*\\.[0-9]+|[0-9]+)",W="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",C="direction\\s*:\\s*",E="[!#$%&*-~]",h=`['"]?\\s*`,g="(^|[^a-zA-Z])",m="[^\\}]*?",y="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",x="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",S="(?:"+d+"|\\\\[^\\r\\n\\f0-9a-f])",k="(?:[_a-z]|"+c+"|"+S+")",B="(?:[_a-z0-9-]|"+c+"|"+S+")",V="-?"+k+B+"*",b=f+"(?:\\s*"+W+"|"+V+")?",w="((?:-?"+b+")|(?:inherit|auto))",M="(?:-?"+f+"(?:\\s*"+W+")?)",z="(?:\\+|\\-|\\*|\\/)",F="(?:\\(|\\)|\\t| )",T="(?:"+F+"|"+M+"|"+z+"){3,}",U="(?:calc\\((?:"+T+")\\))",q="((?:-?"+b+")|(?:inherit|auto)|"+U+")",Q="((?:margin|padding|border-width)\\s*:\\s*)",K="((?:-color|border-style)\\s*:\\s*)",R="(#?"+B+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",X="(?:"+E+"|"+c+"|"+S+")*?",G="(?![a-zA-Z])",L="(?!("+B+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+u+")*?{)",te="(?!"+X+h+"\\))",re="(?="+X+h+"\\))",oe="(\\s*(?:!important\\s*)?[;}])",ve=/`TMP`/g,fe=/`TMPLTR`/g,he=/`TMPRTL`/g,ze=new RegExp(x,"gi"),_=new RegExp("("+y+L+"[^;}]+;?)","gi"),ee=new RegExp("("+y+m+"})","gi"),ge=new RegExp("("+C+")ltr","gi"),Ce=new RegExp("("+C+")rtl","gi"),se=new RegExp(g+"(left)"+G+te+L,"gi"),ue=new RegExp(g+"(right)"+G+te+L,"gi"),Te=new RegExp(g+"(left)"+re,"gi"),ne=new RegExp(g+"(right)"+re,"gi"),Le=/(:dir\( *)ltr( *\))/g,Me=/(:dir\( *)rtl( *\))/g,ye=new RegExp(g+"(ltr)"+re,"gi"),De=new RegExp(g+"(rtl)"+re,"gi"),Qe=new RegExp(g+"([ns]?)e-resize","gi"),Fe=new RegExp(g+"([ns]?)w-resize","gi"),P=new RegExp(Q+q+"(\\s+)"+q+"(\\s+)"+q+"(\\s+)"+q+oe,"gi"),j=new RegExp(K+R+"(\\s+)"+R+"(\\s+)"+R+"(\\s+)"+R+oe,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+b+")","gi"),Z=new RegExp("(background-position-x\\s*:\\s*)(-?"+f+"%)","gi"),Y=new RegExp("(border-radius\\s*:\\s*)"+w+"(?:(?:\\s+"+w+")(?:\\s+"+w+")?(?:\\s+"+w+")?)?(?:(?:(?:\\s*\\/\\s*)"+w+")(?:\\s+"+w+")?(?:\\s+"+w+")?(?:\\s+"+w+")?)?"+oe,"gi"),de=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+w,"gi"),je=new RegExp("(text-shadow\\s*:\\s*)"+w+"(\\s*)"+R,"gi"),Xe=new RegExp("(text-shadow\\s*:\\s*)"+R+"(\\s*)"+w,"gi"),ce=new RegExp("(text-shadow\\s*:\\s*)"+w,"gi"),Re=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+w+"(\\s*\\))","gi"),Ve=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+w+"((?:\\s*,\\s*"+w+"){0,2}\\s*\\))","gi");function Pe(ke,Ot,it){var zt,_t;return it.slice(-1)==="%"&&(zt=it.indexOf("."),zt!==-1?(_t=it.length-zt-2,it=100-parseFloat(it),it=it.toFixed(_t)+"%"):it=100-parseFloat(it)+"%"),Ot+it}function Ye(ke){switch(ke.length){case 4:ke=[ke[1],ke[0],ke[3],ke[2]];break;case 3:ke=[ke[1],ke[0],ke[1],ke[2]];break;case 2:ke=[ke[1],ke[0]];break;case 1:ke=[ke[0]];break}return ke.join(" ")}function Wt(ke,Ot){var it,zt=[].slice.call(arguments),_t=zt.slice(2,6).filter(function(Qt){return Qt}),Pl=zt.slice(6,10).filter(function(Qt){return Qt}),ya=zt[10]||"";return Pl.length?it=Ye(_t)+" / "+Ye(Pl):it=Ye(_t),Ot+it+ya}function $e(ke){return parseFloat(ke)===0?ke:ke[0]==="-"?ke.slice(1):"-"+ke}function Ze(ke,Ot,it){return Ot+$e(it)}function ot(ke,Ot,it,zt,_t){return Ot+it+$e(zt)+_t}function Ht(ke,Ot,it,zt,_t){return Ot+it+zt+$e(_t)}return{transform:function(ke,Ot){var it=new a(_,s),zt=new a(ee,p),_t=new a(ze,u);return ke=_t.tokenize(zt.tokenize(it.tokenize(ke.replace("`","%60")))),Ot.transformDirInUrl&&(ke=ke.replace(Le,"$1"+i+"$2").replace(Me,"$1"+o+"$2").replace(ye,"$1"+l).replace(De,"$1ltr").replace(ve,"rtl").replace(fe,"ltr").replace(he,"rtl")),Ot.transformEdgeInUrl&&(ke=ke.replace(Te,"$1"+l).replace(ne,"$1left").replace(ve,"right")),ke=ke.replace(ge,"$1"+l).replace(Ce,"$1ltr").replace(ve,"rtl").replace(se,"$1"+l).replace(ue,"$1left").replace(ve,"right").replace(Qe,"$1$2"+l).replace(Fe,"$1$2e-resize").replace(ve,"w-resize").replace(Y,Wt).replace(de,Ze).replace(je,Ht).replace(Xe,Ht).replace(ce,Ze).replace(Re,ot).replace(Ve,ot).replace(P,"$1$2$3$8$5$6$7$4$9").replace(j,"$1$2$3$8$5$6$7$4$9").replace(O,Pe).replace(Z,Pe),ke=it.detokenize(zt.detokenize(_t.detokenize(ke))),ke}}}n=new r,e.exports?t.transform=function(l,i,o){var s;return typeof i=="object"?s=i:(s={},typeof i=="boolean"&&(s.transformDirInUrl=i),typeof o=="boolean"&&(s.transformEdgeInUrl=o)),n.transform(l,s)}:typeof window<"u"&&(window.cssjanus=n)})(Gf,Gf.exports);var r3=Gf.exports;const l3=Jl(r3);function Sy(e,t,n){switch(e.type){case Hv:case mu:case hu:return e.return=e.return||e.value;case vi:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(r){r.type===hu&&(r.children=r.value)})}var a=Il(Array.prototype.concat(e.children),Sy);return wa(a)?e.return=e.value+"{"+a+"}":""}function Ey(e,t,n,a){if(e.type===Ff||e.type===dB||e.type===vi&&(!e.parent||e.parent.type===AB||e.parent.type===vi)){var r=l3.transform(Sy(e));e.children=r?ny(r)[0].children:[],e.return=""}}Object.defineProperty(Ey,"name",{value:"stylisRTLPlugin"});const Ue=e=>typeof e=="string",_o=()=>{let e,t;const n=new Promise((a,r)=>{e=a,t=r});return n.resolve=e,n.reject=t,n},xy=e=>e==null?"":""+e,i3=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},o3=/###/g,by=e=>e&&e.indexOf("###")>-1?e.replace(o3,"."):e,ky=e=>!e||Ue(e),$o=(e,t,n)=>{const a=Ue(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(ky(e))return{};const l=by(a[r]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++r}return ky(e)?{}:{obj:e,k:by(a[r])}},Ry=(e,t,n)=>{const{obj:a,k:r}=$o(e,t,Object);if(a!==void 0||t.length===1){a[r]=n;return}let l=t[t.length-1],i=t.slice(0,t.length-1),o=$o(e,i,Object);for(;o.obj===void 0&&i.length;)l=`${i[i.length-1]}.${l}`,i=i.slice(0,i.length-1),o=$o(e,i,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${l}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${l}`]=n},s3=(e,t,n,a)=>{const{obj:r,k:l}=$o(e,t,Object);r[l]=r[l]||[],r[l].push(n)},zu=(e,t)=>{const{obj:n,k:a}=$o(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},p3=(e,t,n)=>{const a=zu(e,n);return a!==void 0?a:zu(t,n)},wy=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Ue(e[a])||e[a]instanceof String||Ue(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):wy(e[a],t[a],n):e[a]=t[a]);return e},Sl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var u3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const c3=e=>Ue(e)?e.replace(/[&<>"'\/]/g,t=>u3[t]):e;class A3{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const d3=[" ",",","?","!",";"],f3=new A3(20),W3=(e,t,n)=>{t=t||"",n=n||"";const a=d3.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(a.length===0)return!0;const r=f3.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`);let l=!r.test(e);if(!l){const i=e.indexOf(n);i>0&&!r.test(e.substring(0,i))&&(l=!0)}return l},Xf=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let r=e;for(let l=0;l<a.length;){if(!r||typeof r!="object")return;let i,o="";for(let s=l;s<a.length;++s)if(s!==l&&(o+=n),o+=a[s],i=r[o],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&s<a.length-1)continue;l+=s-l+1;break}r=i}return r},es=e=>e==null?void 0:e.replace("_","-"),g3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class qu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||g3,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,r){return r&&!this.debug?null:(Ue(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new qu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new qu(this.logger,t)}}var Pa=new qu;class ju{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(n)||0;this.observers[a].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,l])=>{for(let i=0;i<l;i++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,l])=>{for(let i=0;i<l;i++)r.apply(r,[t,...n])})}}class By extends ju{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,a,r={}){var p,u;const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],a&&(Array.isArray(a)?o.push(...a):Ue(a)&&l?o.push(...a.split(l)):o.push(a)));const s=zu(this.data,o);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=o[0],n=o[1],a=o.slice(2).join(".")),s||!i||!Ue(a)?s:Xf((u=(p=this.data)==null?void 0:p[t])==null?void 0:u[n],a,l)}addResource(t,n,a,r,l={silent:!1}){const i=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let o=[t,n];a&&(o=o.concat(i?a.split(i):a)),t.indexOf(".")>-1&&(o=t.split("."),r=n,n=o[1]),this.addNamespaces(n),Ry(this.data,o,r),l.silent||this.emit("added",t,n,a,r)}addResources(t,n,a,r={silent:!1}){for(const l in a)(Ue(a[l])||Array.isArray(a[l]))&&this.addResource(t,n,l,a[l],{silent:!0});r.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,r,l,i={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),r=a,a=n,n=o[1]),this.addNamespaces(n);let s=zu(this.data,o)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?wy(s,a,l):s={...s,...a},Ry(this.data,o,s),i.silent||this.emit("added",t,n,a)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var My={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,r){return e.forEach(l=>{var i;t=((i=this.processors[l])==null?void 0:i.process(t,n,a,r))??t}),t}};const Ly=Symbol("i18next/PATH_KEY");function h3(){const e=[],t=Object.create(null);let n;return t.get=(a,r)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),r===Ly?e:(e.push(r),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Hf(e,t){const{[Ly]:n}=e(h3());return n.join((t==null?void 0:t.keySeparator)??".")}const Qy={},_f=e=>!Ue(e)&&typeof e!="boolean"&&typeof e!="number";class Tu extends ju{constructor(t,n={}){super(),i3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Pa.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const r=this.resolve(t,a);if((r==null?void 0:r.res)===void 0)return!1;const l=_f(r.res);return!(a.returnObjects===!1&&l)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const i=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!W3(t,a,r);if(i&&!o){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:Ue(l)?[l]:l};const p=t.split(a);(a!==r||a===r&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),t=p.join(r)}return{key:t,namespaces:Ue(l)?[l]:l}}translate(t,n,a){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Hf(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);const l=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],r),p=s[s.length-1];let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return d?l?{res:`${p}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${u}${o}`:l?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:o;const f=this.resolve(t,r);let W=f==null?void 0:f.res;const C=(f==null?void 0:f.usedKey)||o,E=(f==null?void 0:f.exactUsedKey)||o,h=["[object Number]","[object Function]","[object RegExp]"],g=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=r.count!==void 0&&!Ue(r.count),x=Tu.hasDefaultValue(r),S=y?this.pluralResolver.getSuffix(c,r.count,r):"",k=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",B=y&&!r.ordinal&&r.count===0,V=B&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue;let b=W;m&&!W&&x&&(b=V);const w=_f(b),M=Object.prototype.toString.apply(b);if(m&&b&&w&&h.indexOf(M)<0&&!(Ue(g)&&Array.isArray(b))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,b,{...r,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return l?(f.res=z,f.usedParams=this.getUsedParamsDetails(r),f):z}if(i){const z=Array.isArray(b),F=z?[]:{},T=z?E:C;for(const U in b)if(Object.prototype.hasOwnProperty.call(b,U)){const q=`${T}${i}${U}`;x&&!W?F[U]=this.translate(q,{...r,defaultValue:_f(V)?V[U]:void 0,joinArrays:!1,ns:s}):F[U]=this.translate(q,{...r,joinArrays:!1,ns:s}),F[U]===q&&(F[U]=b[U])}W=F}}else if(m&&Ue(g)&&Array.isArray(W))W=W.join(g),W&&(W=this.extendTranslation(W,t,r,a));else{let z=!1,F=!1;!this.isValidLookup(W)&&x&&(z=!0,W=V),this.isValidLookup(W)||(F=!0,W=o);const U=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&F?void 0:W,q=x&&V!==W&&this.options.updateMissing;if(F||z||q){if(this.logger.log(q?"updateKey":"missingKey",c,p,o,q?V:W),i){const X=this.resolve(o,{...r,keySeparator:!1});X&&X.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Q=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let X=0;X<K.length;X++)Q.push(K[X]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(r.lng||this.language):Q.push(r.lng||this.language);const R=(X,G,L)=>{var re;const te=x&&L!==W?L:U;this.options.missingKeyHandler?this.options.missingKeyHandler(X,p,G,te,q,r):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(X,p,G,te,q,r),this.emit("missingKey",X,p,G,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?Q.forEach(X=>{const G=this.pluralResolver.getSuffixes(X,r);B&&r[`defaultValue${this.options.pluralSeparator}zero`]&&G.indexOf(`${this.options.pluralSeparator}zero`)<0&&G.push(`${this.options.pluralSeparator}zero`),G.forEach(L=>{R([X],o+L,r[`defaultValue${L}`]||V)})}):R(Q,o,V))}W=this.extendTranslation(W,t,r,f,a),F&&W===o&&this.options.appendNamespaceToMissingKey&&(W=`${p}${u}${o}`),(F||z)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${u}${o}`:o,z?W:void 0,r))}return l?(f.res=W,f.usedParams=this.getUsedParamsDetails(r),f):W}extendTranslation(t,n,a,r,l){var s,p;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=Ue(t)&&(((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=a.replace&&!Ue(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||r.usedLng,a),u){const f=t.match(this.interpolator.nestingRegexp),W=f&&f.length;c<W&&(a.nest=!1)}!a.lng&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(l==null?void 0:l[0])===f[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),a)),a.interpolation&&this.interpolator.reset()}const i=a.postProcess||this.options.postProcess,o=Ue(i)?[i]:i;return t!=null&&(o!=null&&o.length)&&a.applyPostProcessor!==!1&&(t=My.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,r,l,i,o;return Ue(t)&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(a))return;const p=this.extractFromKey(s,n),u=p.key;r=u;let c=p.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=n.count!==void 0&&!Ue(n.count),f=d&&!n.ordinal&&n.count===0,W=n.context!==void 0&&(Ue(n.context)||typeof n.context=="number")&&n.context!=="",C=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(E=>{var h,g;this.isValidLookup(a)||(o=E,!Qy[`${C[0]}-${E}`]&&((h=this.utils)!=null&&h.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(o))&&(Qy[`${C[0]}-${E}`]=!0,this.logger.warn(`key "${r}" for languages "${C.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(m=>{var S;if(this.isValidLookup(a))return;i=m;const y=[u];if((S=this.i18nFormat)!=null&&S.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,m,E,n);else{let k;d&&(k=this.pluralResolver.getSuffix(m,n.count,n));const B=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&k.indexOf(V)===0&&y.push(u+k.replace(V,this.options.pluralSeparator)),y.push(u+k),f&&y.push(u+B)),W){const b=`${u}${this.options.contextSeparator||"_"}${n.context}`;y.push(b),d&&(n.ordinal&&k.indexOf(V)===0&&y.push(b+k.replace(V,this.options.pluralSeparator)),y.push(b+k),f&&y.push(b+B))}}let x;for(;x=y.pop();)this.isValidLookup(a)||(l=x,a=this.getResource(m,E,x,n))}))})}),{res:a,usedKey:r,exactUsedKey:l,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,r={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,a,r):this.resourceStore.getResource(t,n,a,r)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Ue(t.replace);let r=a?t.replace:t;if(a&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!a){r={...r};for(const l of n)delete r[l]}return r}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class Vy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Pa.create("languageUtils")}getScriptPartFromCode(t){if(t=es(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=es(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ue(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(a=>{if(n)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const r=this.getScriptPartFromCode(a);if(this.isSupportedCode(r))return n=r;const l=this.getLanguagePartFromCode(a);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(i=>{if(i===l)return i;if(!(i.indexOf("-")<0&&l.indexOf("-")<0)&&(i.indexOf("-")>0&&l.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===l||i.indexOf(l)===0&&l.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ue(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],l=i=>{i&&(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ue(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ue(t)&&l(this.formatLanguageCode(t)),a.forEach(i=>{r.indexOf(i)<0&&l(this.formatLanguageCode(i))}),r}}const Uy={zero:0,one:1,two:2,few:3,many:4,other:5},Fy={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class m3{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Pa.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=es(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:a,type:r});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let i;try{i=new Intl.PluralRules(a,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Fy;if(!t.match(/-|_/))return Fy;const s=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(s,n)}return this.pluralRulesCache[l]=i,i}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((r,l)=>Uy[r]-Uy[l]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,a={}){const r=this.getRule(t,a);return r?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const zy=(e,t,n,a=".",r=!0)=>{let l=p3(e,t,n);return!l&&r&&Ue(n)&&(l=Xf(e,n,a),l===void 0&&(l=Xf(t,n,a))),l},$f=e=>e.replace(/\$/g,"$$$$");class qy{constructor(t={}){var n;this.logger=Pa.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:r,prefix:l,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:p,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:W,nestingSuffixEscaped:C,nestingOptionsSeparator:E,maxReplaces:h,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:c3,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=l?Sl(l):i||"{{",this.suffix=o?Sl(o):s||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Sl(d):f||Sl("$t("),this.nestingSuffix=W?Sl(W):C||Sl(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=h||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,a,r){var f;let l,i,o;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=W=>{if(W.indexOf(this.formatSeparator)<0){const g=zy(n,s,W,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...r,...n,interpolationkey:W}):g}const C=W.split(this.formatSeparator),E=C.shift().trim(),h=C.join(this.formatSeparator).trim();return this.format(zy(n,s,E,this.options.keySeparator,this.options.ignoreJSONStructure),h,a,{...r,...n,interpolationkey:E})};this.resetRegExp();const u=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((f=r==null?void 0:r.interpolation)==null?void 0:f.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:W=>$f(W)},{regex:this.regexp,safeValue:W=>this.escapeValue?$f(this.escape(W)):$f(W)}].forEach(W=>{for(o=0;l=W.regex.exec(t);){const C=l[1].trim();if(i=p(C),i===void 0)if(typeof u=="function"){const h=u(t,l,r);i=Ue(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,C))i="";else if(c){i=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),i="";else!Ue(i)&&!this.useRawValueToEscape&&(i=xy(i));const E=W.safeValue(i);if(t=t.replace(l[0],E),c?(W.regex.lastIndex+=i.length,W.regex.lastIndex-=l[0].length):W.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,a={}){let r,l,i;const o=(s,p)=>{const u=this.nestingOptionsSeparator;if(s.indexOf(u)<0)return s;const c=s.split(new RegExp(`${Sl(u)}[ ]*{`));let d=`{${c[1]}`;s=c[0],d=this.interpolate(d,i);const f=d.match(/'/g),W=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!W||((W==null?void 0:W.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),p&&(i={...p,...i})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,C),`${s}${u}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,s};for(;r=this.nestingRegexp.exec(t);){let s=[];i={...a},i=i.replace&&!Ue(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(s=r[1].slice(p).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),l=n(o.call(this,r[1].trim(),i),i),l&&r[0]===t&&!Ue(l))return l;Ue(l)||(l=xy(l)),l||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),l=""),s.length&&(l=s.reduce((u,c)=>this.format(u,c,a.lng,{...a,interpolationkey:r[1].trim()}),l.trim())),t=t.replace(r[0],l),this.regexp.lastIndex=0}return t}}const C3=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(i=>{if(i){const[o,...s]=i.split(":"),p=s.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},jy=e=>{const t={};return(n,a,r)=>{let l=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(l={...l,[r.interpolationkey]:void 0});const i=a+JSON.stringify(l);let o=t[i];return o||(o=e(es(a),r),t[i]=o),o(n)}},v3=e=>(t,n,a)=>e(es(n),a)(t);class y3{constructor(t={}){this.logger=Pa.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?jy:v3;this.formats={number:a((r,l)=>{const i=new Intl.NumberFormat(r,{...l});return o=>i.format(o)}),currency:a((r,l)=>{const i=new Intl.NumberFormat(r,{...l,style:"currency"});return o=>i.format(o)}),datetime:a((r,l)=>{const i=new Intl.DateTimeFormat(r,{...l});return o=>i.format(o)}),relativetime:a((r,l)=>{const i=new Intl.RelativeTimeFormat(r,{...l});return o=>i.format(o,l.range||"day")}),list:a((r,l)=>{const i=new Intl.ListFormat(r,{...l});return o=>i.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=jy(n)}format(t,n,a,r={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(o=>o.indexOf(")")>-1)){const o=l.findIndex(s=>s.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,o)].join(this.formatSeparator)}return l.reduce((o,s)=>{var c;const{formatName:p,formatOptions:u}=C3(s);if(this.formats[p]){let d=o;try{const f=((c=r==null?void 0:r.formatParams)==null?void 0:c[r.interpolationkey])||{},W=f.locale||f.lng||r.locale||r.lng||a;d=this.formats[p](o,W,{...u,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${p}`);return o},t)}}const I3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class S3 extends ju{constructor(t,n,a,r={}){var l,i;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=Pa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(i=(l=this.backend)==null?void 0:l.init)==null||i.call(l,a,r.backend,r)}queueLoad(t,n,a,r){const l={},i={},o={},s={};return t.forEach(p=>{let u=!0;n.forEach(c=>{const d=`${p}|${c}`;!a.reload&&this.store.hasResourceBundle(p,c)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,u=!1,i[d]===void 0&&(i[d]=!0),l[d]===void 0&&(l[d]=!0),s[c]===void 0&&(s[c]=!0)))}),u||(o[p]=!0)}),(Object.keys(l).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(l),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const r=t.split("|"),l=r[0],i=r[1];n&&this.emit("failedLoading",l,i,n),!n&&a&&this.store.addResourceBundle(l,i,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const o={};this.queue.forEach(s=>{s3(s.loaded,[l],i),I3(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(p=>{o[p]||(o[p]={});const u=s.loaded[p];u.length&&u.forEach(c=>{o[p][c]===void 0&&(o[p][c]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,r=0,l=this.retryTimeout,i){if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:r,wait:l,callback:i});return}this.readingCalls++;const o=(p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(p&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,r+1,l*2,i)},l);return}i(p,u)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const p=s(t,n);p&&typeof p.then=="function"?p.then(u=>o(null,u)).catch(o):o(null,p)}catch(p){o(p)}return}return s(t,n,o)}prepareLoading(t,n,a={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ue(n)&&(n=[n]);const l=this.queueLoad(t,n,a,r);if(!l.toLoad.length)return l.pending.length||r(),null;l.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),r=a[0],l=a[1];this.read(r,l,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${n}loading namespace ${l} for language ${r} failed`,i),!i&&o&&this.logger.log(`${n}loaded namespace ${l} for language ${r}`,o),this.loaded(t,i,o)})}saveMissing(t,n,a,r,l,i={},o=()=>{}){var s,p,u,c,d;if((p=(s=this.services)==null?void 0:s.utils)!=null&&p.hasLoadedNamespace&&!((c=(u=this.services)==null?void 0:u.utils)!=null&&c.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const f={...i,isUpdate:l},W=this.backend.create.bind(this.backend);if(W.length<6)try{let C;W.length===5?C=W(t,n,a,r,f):C=W(t,n,a,r),C&&typeof C.then=="function"?C.then(E=>o(null,E)).catch(o):o(null,C)}catch(C){o(C)}else W(t,n,a,r,o,f)}!t||!t[0]||this.store.addResource(t[0],n,a,r)}}}const eW=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ue(e[1])&&(t.defaultValue=e[1]),Ue(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ty=e=>{var t,n;return Ue(e.ns)&&(e.ns=[e.ns]),Ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ue(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ku=()=>{},E3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};let Ky=!1;const x3=e=>{var t,n,a,r,l,i,o,s,p;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((o=(i=(l=(r=e==null?void 0:e.modules)==null?void 0:r.backend)==null?void 0:l.constructor)==null?void 0:i.name)==null?void 0:o.indexOf("Locize"))>0||(p=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&p.backends&&e.options.backend.backends.some(u=>{var c,d,f;return((c=u==null?void 0:u.name)==null?void 0:c.indexOf("Locize"))>0||((f=(d=u==null?void 0:u.constructor)==null?void 0:d.name)==null?void 0:f.indexOf("Locize"))>0}))};class ts extends ju{constructor(t={},n){if(super(),this.options=Ty(t),this.services={},this.logger=Pa,this.modules={external:[]},E3(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=eW();this.options={...a,...this.options,...Ty(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!x3(this)&&!Ky&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Ky=!0);const r=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Pa.init(r(this.modules.logger),this.options):Pa.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=y3;const u=new Vy(this.options);this.store=new By(this.options.resources,this.options);const c=this.services;c.logger=Pa,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new m3(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(p),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new qy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new S3(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ku),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...u)=>this.store[p](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...u)=>(this.store[p](...u),this)});const o=_o(),s=()=>{const p=(u,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(u,c)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(t,n=Ku){var l,i;let a=n;const r=Ue(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],s=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),(i=(l=this.options.preload)==null?void 0:l.forEach)==null||i.call(l,p=>s(p)),this.services.backendConnector.load(o,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(t,n,a){const r=_o();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Ku),this.services.backendConnector.reload(t,n,l=>{r.resolve(),a(l)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&My.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=_o();this.emit("languageChanging",t);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},l=(o,s)=>{s?this.isLanguageChangingTo===t&&(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...p)=>this.t(...p)),n&&n(o,(...p)=>this.t(...p))},i=o=>{var u,c;!t&&!o&&this.services.languageDetector&&(o=[]);const s=Ue(o)?o:o&&o[0],p=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(Ue(o)?[o]:o);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(c=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||c.call(u,p)),this.loadResources(p,d=>{l(d,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),a}getFixedT(t,n,a){const r=(l,i,...o)=>{let s;typeof i!="object"?s=this.options.overloadTranslationOptionHandler([l,i].concat(o)):s={...i},s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||r.keyPrefix);const p=this.options.keySeparator||".";let u;return s.keyPrefix&&Array.isArray(l)?u=l.map(c=>(typeof c=="function"&&(c=Hf(c,{...this.options,...i})),`${s.keyPrefix}${p}${c}`)):(typeof l=="function"&&(l=Hf(l,{...this.options,...i})),u=s.keyPrefix?`${s.keyPrefix}${p}${l}`:l),this.t(u,s)};return Ue(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=a,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const i=(o,s)=>{const p=this.services.backendConnector.state[`${o}|${s}`];return p===-1||p===0||p===2};if(n.precheck){const o=n.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,t)&&(!r||i(l,t)))}loadNamespaces(t,n){const a=_o();return this.options.ns?(Ue(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),n&&n(r)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=_o();Ue(t)&&(t=[t]);const r=this.options.preload||[],l=t.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return l.length?(this.options.preload=r.concat(l),this.loadResources(i=>{a.resolve(),n&&n(i)}),a):(n&&n(),Promise.resolve())}dir(t){var r,l;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((l=this.services)==null?void 0:l.languageUtils)||new Vy(eW());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new ts(t,n);return a.createInstance=ts.createInstance,a}cloneInstance(t={},n=Ku){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},l=new ts(r);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(o=>{l[o]=this[o]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},a){const o=Object.keys(this.store.data).reduce((s,p)=>(s[p]={...this.store.data[p]},s[p]=Object.keys(s[p]).reduce((u,c)=>(u[c]={...s[p][c]},u),s[p]),s),{});l.store=new By(o,r),l.services.resourceStore=l.store}if(t.interpolation){const s={...eW().interpolation,...this.options.interpolation,...t.interpolation},p={...r,interpolation:s};l.services.interpolator=new qy(p)}return l.translator=new Tu(l.services,r),l.translator.on("*",(o,...s)=>{l.emit(o,...s)}),l.init(r,n),l.translator.options=r,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gt=ts.createInstance();Gt.createInstance,Gt.dir,Gt.init,Gt.loadResources,Gt.reloadResources,Gt.use,Gt.changeLanguage,Gt.getFixedT,Gt.t,Gt.exists,Gt.setDefaultNamespace,Gt.hasLoadedNamespace,Gt.loadNamespaces,Gt.loadLanguages;const b3=(e,t,n,a)=>{var l,i,o,s;const r=[n,{code:t,...a||{}}];if((i=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&i.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);El(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(s=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&s.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Oy={},Py=(e,t,n,a)=>{El(n)&&Oy[n]||(El(n)&&(Oy[n]=new Date),b3(e,t,n,a))},Jy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},tW=(e,t,n)=>{e.loadNamespaces(t,Jy(e,n))},Dy=(e,t,n,a)=>{if(El(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return tW(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Jy(e,a))},k3=(e,t,n={})=>!t.languages||!t.languages.length?(Py(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),El=e=>typeof e=="string",R3=e=>typeof e=="object"&&e!==null,w3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,B3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M3=e=>B3[e];let nW={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(w3,M3),transDefaultProps:void 0};const L3=(e={})=>{nW={...nW,...e}},Q3=()=>nW;let Yy;const V3=e=>{Yy=e},U3=()=>Yy,F3={type:"3rdParty",init(e){L3(e.options.react),V3(e)}},Zy=v.createContext();class z3{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ny={exports:{}},Gy={};/**
65
+ */(function(e,t){var n;function a(l,i){var o=[],s=0;function p(c){return o.push(c),i}function u(){return o[s++]}return{tokenize:function(c){return c.replace(l,p)},detokenize:function(c){return c.replace(new RegExp("("+i+")","g"),u)}}}function r(){var l="`TMP`",i="`TMPLTR`",o="`TMPRTL`",s="`NOFLIP_SINGLE`",p="`NOFLIP_CLASS`",u="`COMMENT`",c="[^\\u0020-\\u007e]",d="(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)",f="(?:[0-9]*\\.[0-9]+|[0-9]+)",W="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",C="direction\\s*:\\s*",E="[!#$%&*-~]",h=`['"]?\\s*`,g="(^|[^a-zA-Z])",m="[^\\}]*?",y="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",x="\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/",S="(?:"+d+"|\\\\[^\\r\\n\\f0-9a-f])",k="(?:[_a-z]|"+c+"|"+S+")",B="(?:[_a-z0-9-]|"+c+"|"+S+")",V="-?"+k+B+"*",b=f+"(?:\\s*"+W+"|"+V+")?",w="((?:-?"+b+")|(?:inherit|auto))",M="(?:-?"+f+"(?:\\s*"+W+")?)",z="(?:\\+|\\-|\\*|\\/)",F="(?:\\(|\\)|\\t| )",T="(?:"+F+"|"+M+"|"+z+"){3,}",U="(?:calc\\((?:"+T+")\\))",q="((?:-?"+b+")|(?:inherit|auto)|"+U+")",Q="((?:margin|padding|border-width)\\s*:\\s*)",K="((?:-color|border-style)\\s*:\\s*)",R="(#?"+B+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",X="(?:"+E+"|"+c+"|"+S+")*?",G="(?![a-zA-Z])",L="(?!("+B+`|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|"[^"]*"|`+u+")*?{)",te="(?!"+X+h+"\\))",re="(?="+X+h+"\\))",oe="(\\s*(?:!important\\s*)?[;}])",ve=/`TMP`/g,fe=/`TMPLTR`/g,he=/`TMPRTL`/g,ze=new RegExp(x,"gi"),_=new RegExp("("+y+L+"[^;}]+;?)","gi"),ee=new RegExp("("+y+m+"})","gi"),ge=new RegExp("("+C+")ltr","gi"),Ce=new RegExp("("+C+")rtl","gi"),se=new RegExp(g+"(left)"+G+te+L,"gi"),ue=new RegExp(g+"(right)"+G+te+L,"gi"),Te=new RegExp(g+"(left)"+re,"gi"),ne=new RegExp(g+"(right)"+re,"gi"),Le=/(:dir\( *)ltr( *\))/g,Me=/(:dir\( *)rtl( *\))/g,ye=new RegExp(g+"(ltr)"+re,"gi"),Ze=new RegExp(g+"(rtl)"+re,"gi"),Qe=new RegExp(g+"([ns]?)e-resize","gi"),Fe=new RegExp(g+"([ns]?)w-resize","gi"),P=new RegExp(Q+q+"(\\s+)"+q+"(\\s+)"+q+"(\\s+)"+q+oe,"gi"),j=new RegExp(K+R+"(\\s+)"+R+"(\\s+)"+R+"(\\s+)"+R+oe,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+b+")","gi"),Z=new RegExp("(background-position-x\\s*:\\s*)(-?"+f+"%)","gi"),Y=new RegExp("(border-radius\\s*:\\s*)"+w+"(?:(?:\\s+"+w+")(?:\\s+"+w+")?(?:\\s+"+w+")?)?(?:(?:(?:\\s*\\/\\s*)"+w+")(?:\\s+"+w+")?(?:\\s+"+w+")?(?:\\s+"+w+")?)?"+oe,"gi"),de=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+w,"gi"),je=new RegExp("(text-shadow\\s*:\\s*)"+w+"(\\s*)"+R,"gi"),Xe=new RegExp("(text-shadow\\s*:\\s*)"+R+"(\\s*)"+w,"gi"),ce=new RegExp("(text-shadow\\s*:\\s*)"+w,"gi"),Re=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+w+"(\\s*\\))","gi"),Ve=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+w+"((?:\\s*,\\s*"+w+"){0,2}\\s*\\))","gi");function Pe(ke,Ot,it){var zt,_t;return it.slice(-1)==="%"&&(zt=it.indexOf("."),zt!==-1?(_t=it.length-zt-2,it=100-parseFloat(it),it=it.toFixed(_t)+"%"):it=100-parseFloat(it)+"%"),Ot+it}function dt(ke){switch(ke.length){case 4:ke=[ke[1],ke[0],ke[3],ke[2]];break;case 3:ke=[ke[1],ke[0],ke[1],ke[2]];break;case 2:ke=[ke[1],ke[0]];break;case 1:ke=[ke[0]];break}return ke.join(" ")}function $e(ke,Ot){var it,zt=[].slice.call(arguments),_t=zt.slice(2,6).filter(function(Qt){return Qt}),Pl=zt.slice(6,10).filter(function(Qt){return Qt}),ya=zt[10]||"";return Pl.length?it=dt(_t)+" / "+dt(Pl):it=dt(_t),Ot+it+ya}function Je(ke){return parseFloat(ke)===0?ke:ke[0]==="-"?ke.slice(1):"-"+ke}function De(ke,Ot,it){return Ot+Je(it)}function ot(ke,Ot,it,zt,_t){return Ot+it+Je(zt)+_t}function Ht(ke,Ot,it,zt,_t){return Ot+it+zt+Je(_t)}return{transform:function(ke,Ot){var it=new a(_,s),zt=new a(ee,p),_t=new a(ze,u);return ke=_t.tokenize(zt.tokenize(it.tokenize(ke.replace("`","%60")))),Ot.transformDirInUrl&&(ke=ke.replace(Le,"$1"+i+"$2").replace(Me,"$1"+o+"$2").replace(ye,"$1"+l).replace(Ze,"$1ltr").replace(ve,"rtl").replace(fe,"ltr").replace(he,"rtl")),Ot.transformEdgeInUrl&&(ke=ke.replace(Te,"$1"+l).replace(ne,"$1left").replace(ve,"right")),ke=ke.replace(ge,"$1"+l).replace(Ce,"$1ltr").replace(ve,"rtl").replace(se,"$1"+l).replace(ue,"$1left").replace(ve,"right").replace(Qe,"$1$2"+l).replace(Fe,"$1$2e-resize").replace(ve,"w-resize").replace(Y,$e).replace(de,De).replace(je,Ht).replace(Xe,Ht).replace(ce,De).replace(Re,ot).replace(Ve,ot).replace(P,"$1$2$3$8$5$6$7$4$9").replace(j,"$1$2$3$8$5$6$7$4$9").replace(O,Pe).replace(Z,Pe),ke=it.detokenize(zt.detokenize(_t.detokenize(ke))),ke}}}n=new r,e.exports?t.transform=function(l,i,o){var s;return typeof i=="object"?s=i:(s={},typeof i=="boolean"&&(s.transformDirInUrl=i),typeof o=="boolean"&&(s.transformEdgeInUrl=o)),n.transform(l,s)}:typeof window<"u"&&(window.cssjanus=n)})(Gf,Gf.exports);var r3=Gf.exports;const l3=Jl(r3);function Sy(e,t,n){switch(e.type){case Hv:case mu:case hu:return e.return=e.return||e.value;case vi:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(r){r.type===hu&&(r.children=r.value)})}var a=Il(Array.prototype.concat(e.children),Sy);return wa(a)?e.return=e.value+"{"+a+"}":""}function Ey(e,t,n,a){if(e.type===Ff||e.type===dB||e.type===vi&&(!e.parent||e.parent.type===AB||e.parent.type===vi)){var r=l3.transform(Sy(e));e.children=r?ny(r)[0].children:[],e.return=""}}Object.defineProperty(Ey,"name",{value:"stylisRTLPlugin"});const Ue=e=>typeof e=="string",_o=()=>{let e,t;const n=new Promise((a,r)=>{e=a,t=r});return n.resolve=e,n.reject=t,n},xy=e=>e==null?"":""+e,i3=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},o3=/###/g,by=e=>e&&e.indexOf("###")>-1?e.replace(o3,"."):e,ky=e=>!e||Ue(e),$o=(e,t,n)=>{const a=Ue(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(ky(e))return{};const l=by(a[r]);!e[l]&&n&&(e[l]=new n),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++r}return ky(e)?{}:{obj:e,k:by(a[r])}},Ry=(e,t,n)=>{const{obj:a,k:r}=$o(e,t,Object);if(a!==void 0||t.length===1){a[r]=n;return}let l=t[t.length-1],i=t.slice(0,t.length-1),o=$o(e,i,Object);for(;o.obj===void 0&&i.length;)l=`${i[i.length-1]}.${l}`,i=i.slice(0,i.length-1),o=$o(e,i,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${l}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${l}`]=n},s3=(e,t,n,a)=>{const{obj:r,k:l}=$o(e,t,Object);r[l]=r[l]||[],r[l].push(n)},zu=(e,t)=>{const{obj:n,k:a}=$o(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},p3=(e,t,n)=>{const a=zu(e,n);return a!==void 0?a:zu(t,n)},wy=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?Ue(e[a])||e[a]instanceof String||Ue(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):wy(e[a],t[a],n):e[a]=t[a]);return e},Sl=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var u3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const c3=e=>Ue(e)?e.replace(/[&<>"'\/]/g,t=>u3[t]):e;class A3{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const d3=[" ",",","?","!",";"],f3=new A3(20),W3=(e,t,n)=>{t=t||"",n=n||"";const a=d3.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(a.length===0)return!0;const r=f3.getRegExp(`(${a.map(i=>i==="?"?"\\?":i).join("|")})`);let l=!r.test(e);if(!l){const i=e.indexOf(n);i>0&&!r.test(e.substring(0,i))&&(l=!0)}return l},Xf=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let r=e;for(let l=0;l<a.length;){if(!r||typeof r!="object")return;let i,o="";for(let s=l;s<a.length;++s)if(s!==l&&(o+=n),o+=a[s],i=r[o],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&s<a.length-1)continue;l+=s-l+1;break}r=i}return r},es=e=>e==null?void 0:e.replace("_","-"),g3={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class qu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||g3,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,r){return r&&!this.debug?null:(Ue(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new qu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new qu(this.logger,t)}}var Pa=new qu;class ju{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(n)||0;this.observers[a].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,l])=>{for(let i=0;i<l;i++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,l])=>{for(let i=0;i<l;i++)r.apply(r,[t,...n])})}}class By extends ju{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,a,r={}){var p,u;const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],a&&(Array.isArray(a)?o.push(...a):Ue(a)&&l?o.push(...a.split(l)):o.push(a)));const s=zu(this.data,o);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=o[0],n=o[1],a=o.slice(2).join(".")),s||!i||!Ue(a)?s:Xf((u=(p=this.data)==null?void 0:p[t])==null?void 0:u[n],a,l)}addResource(t,n,a,r,l={silent:!1}){const i=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let o=[t,n];a&&(o=o.concat(i?a.split(i):a)),t.indexOf(".")>-1&&(o=t.split("."),r=n,n=o[1]),this.addNamespaces(n),Ry(this.data,o,r),l.silent||this.emit("added",t,n,a,r)}addResources(t,n,a,r={silent:!1}){for(const l in a)(Ue(a[l])||Array.isArray(a[l]))&&this.addResource(t,n,l,a[l],{silent:!0});r.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,r,l,i={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),r=a,a=n,n=o[1]),this.addNamespaces(n);let s=zu(this.data,o)||{};i.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?wy(s,a,l):s={...s,...a},Ry(this.data,o,s),i.silent||this.emit("added",t,n,a)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var My={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,r){return e.forEach(l=>{var i;t=((i=this.processors[l])==null?void 0:i.process(t,n,a,r))??t}),t}};const Ly=Symbol("i18next/PATH_KEY");function h3(){const e=[],t=Object.create(null);let n;return t.get=(a,r)=>{var l;return(l=n==null?void 0:n.revoke)==null||l.call(n),r===Ly?e:(e.push(r),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Hf(e,t){const{[Ly]:n}=e(h3());return n.join((t==null?void 0:t.keySeparator)??".")}const Qy={},_f=e=>!Ue(e)&&typeof e!="boolean"&&typeof e!="number";class Tu extends ju{constructor(t,n={}){super(),i3(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Pa.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const r=this.resolve(t,a);if((r==null?void 0:r.res)===void 0)return!1;const l=_f(r.res);return!(a.returnObjects===!1&&l)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let l=n.ns||this.options.defaultNS||[];const i=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!W3(t,a,r);if(i&&!o){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:Ue(l)?[l]:l};const p=t.split(a);(a!==r||a===r&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),t=p.join(r)}return{key:t,namespaces:Ue(l)?[l]:l}}translate(t,n,a){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=Hf(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);const l=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],r),p=s[s.length-1];let u=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return d?l?{res:`${p}${u}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${u}${o}`:l?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:o;const f=this.resolve(t,r);let W=f==null?void 0:f.res;const C=(f==null?void 0:f.usedKey)||o,E=(f==null?void 0:f.exactUsedKey)||o,h=["[object Number]","[object Function]","[object RegExp]"],g=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=r.count!==void 0&&!Ue(r.count),x=Tu.hasDefaultValue(r),S=y?this.pluralResolver.getSuffix(c,r.count,r):"",k=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",B=y&&!r.ordinal&&r.count===0,V=B&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue;let b=W;m&&!W&&x&&(b=V);const w=_f(b),M=Object.prototype.toString.apply(b);if(m&&b&&w&&h.indexOf(M)<0&&!(Ue(g)&&Array.isArray(b))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(C,b,{...r,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return l?(f.res=z,f.usedParams=this.getUsedParamsDetails(r),f):z}if(i){const z=Array.isArray(b),F=z?[]:{},T=z?E:C;for(const U in b)if(Object.prototype.hasOwnProperty.call(b,U)){const q=`${T}${i}${U}`;x&&!W?F[U]=this.translate(q,{...r,defaultValue:_f(V)?V[U]:void 0,joinArrays:!1,ns:s}):F[U]=this.translate(q,{...r,joinArrays:!1,ns:s}),F[U]===q&&(F[U]=b[U])}W=F}}else if(m&&Ue(g)&&Array.isArray(W))W=W.join(g),W&&(W=this.extendTranslation(W,t,r,a));else{let z=!1,F=!1;!this.isValidLookup(W)&&x&&(z=!0,W=V),this.isValidLookup(W)||(F=!0,W=o);const U=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&F?void 0:W,q=x&&V!==W&&this.options.updateMissing;if(F||z||q){if(this.logger.log(q?"updateKey":"missingKey",c,p,o,q?V:W),i){const X=this.resolve(o,{...r,keySeparator:!1});X&&X.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Q=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let X=0;X<K.length;X++)Q.push(K[X]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(r.lng||this.language):Q.push(r.lng||this.language);const R=(X,G,L)=>{var re;const te=x&&L!==W?L:U;this.options.missingKeyHandler?this.options.missingKeyHandler(X,p,G,te,q,r):(re=this.backendConnector)!=null&&re.saveMissing&&this.backendConnector.saveMissing(X,p,G,te,q,r),this.emit("missingKey",X,p,G,W)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?Q.forEach(X=>{const G=this.pluralResolver.getSuffixes(X,r);B&&r[`defaultValue${this.options.pluralSeparator}zero`]&&G.indexOf(`${this.options.pluralSeparator}zero`)<0&&G.push(`${this.options.pluralSeparator}zero`),G.forEach(L=>{R([X],o+L,r[`defaultValue${L}`]||V)})}):R(Q,o,V))}W=this.extendTranslation(W,t,r,f,a),F&&W===o&&this.options.appendNamespaceToMissingKey&&(W=`${p}${u}${o}`),(F||z)&&this.options.parseMissingKeyHandler&&(W=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${u}${o}`:o,z?W:void 0,r))}return l?(f.res=W,f.usedParams=this.getUsedParamsDetails(r),f):W}extendTranslation(t,n,a,r,l){var s,p;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const u=Ue(t)&&(((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=a.replace&&!Ue(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||r.usedLng,a),u){const f=t.match(this.interpolator.nestingRegexp),W=f&&f.length;c<W&&(a.nest=!1)}!a.lng&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>(l==null?void 0:l[0])===f[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),a)),a.interpolation&&this.interpolator.reset()}const i=a.postProcess||this.options.postProcess,o=Ue(i)?[i]:i;return t!=null&&(o!=null&&o.length)&&a.applyPostProcessor!==!1&&(t=My.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,r,l,i,o;return Ue(t)&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(a))return;const p=this.extractFromKey(s,n),u=p.key;r=u;let c=p.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const d=n.count!==void 0&&!Ue(n.count),f=d&&!n.ordinal&&n.count===0,W=n.context!==void 0&&(Ue(n.context)||typeof n.context=="number")&&n.context!=="",C=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);c.forEach(E=>{var h,g;this.isValidLookup(a)||(o=E,!Qy[`${C[0]}-${E}`]&&((h=this.utils)!=null&&h.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(o))&&(Qy[`${C[0]}-${E}`]=!0,this.logger.warn(`key "${r}" for languages "${C.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),C.forEach(m=>{var S;if(this.isValidLookup(a))return;i=m;const y=[u];if((S=this.i18nFormat)!=null&&S.addLookupKeys)this.i18nFormat.addLookupKeys(y,u,m,E,n);else{let k;d&&(k=this.pluralResolver.getSuffix(m,n.count,n));const B=`${this.options.pluralSeparator}zero`,V=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&k.indexOf(V)===0&&y.push(u+k.replace(V,this.options.pluralSeparator)),y.push(u+k),f&&y.push(u+B)),W){const b=`${u}${this.options.contextSeparator||"_"}${n.context}`;y.push(b),d&&(n.ordinal&&k.indexOf(V)===0&&y.push(b+k.replace(V,this.options.pluralSeparator)),y.push(b+k),f&&y.push(b+B))}}let x;for(;x=y.pop();)this.isValidLookup(a)||(l=x,a=this.getResource(m,E,x,n))}))})}),{res:a,usedKey:r,exactUsedKey:l,usedLng:i,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,r={}){var l;return(l=this.i18nFormat)!=null&&l.getResource?this.i18nFormat.getResource(t,n,a,r):this.resourceStore.getResource(t,n,a,r)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!Ue(t.replace);let r=a?t.replace:t;if(a&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!a){r={...r};for(const l of n)delete r[l]}return r}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class Vy{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Pa.create("languageUtils")}getScriptPartFromCode(t){if(t=es(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=es(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ue(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(a=>{if(n)return;const r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const r=this.getScriptPartFromCode(a);if(this.isSupportedCode(r))return n=r;const l=this.getLanguagePartFromCode(a);if(this.isSupportedCode(l))return n=l;n=this.options.supportedLngs.find(i=>{if(i===l)return i;if(!(i.indexOf("-")<0&&l.indexOf("-")<0)&&(i.indexOf("-")>0&&l.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===l||i.indexOf(l)===0&&l.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ue(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],l=i=>{i&&(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ue(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(t))):Ue(t)&&l(this.formatLanguageCode(t)),a.forEach(i=>{r.indexOf(i)<0&&l(this.formatLanguageCode(i))}),r}}const Uy={zero:0,one:1,two:2,few:3,many:4,other:5},Fy={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class m3{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Pa.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=es(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:a,type:r});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let i;try{i=new Intl.PluralRules(a,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Fy;if(!t.match(/-|_/))return Fy;const s=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(s,n)}return this.pluralRulesCache[l]=i,i}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((r,l)=>Uy[r]-Uy[l]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,a={}){const r=this.getRule(t,a);return r?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const zy=(e,t,n,a=".",r=!0)=>{let l=p3(e,t,n);return!l&&r&&Ue(n)&&(l=Xf(e,n,a),l===void 0&&(l=Xf(t,n,a))),l},$f=e=>e.replace(/\$/g,"$$$$");class qy{constructor(t={}){var n;this.logger=Pa.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:r,prefix:l,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:p,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:W,nestingSuffixEscaped:C,nestingOptionsSeparator:E,maxReplaces:h,alwaysFormat:g}=t.interpolation;this.escape=n!==void 0?n:c3,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=l?Sl(l):i||"{{",this.suffix=o?Sl(o):s||"}}",this.formatSeparator=p||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?Sl(d):f||Sl("$t("),this.nestingSuffix=W?Sl(W):C||Sl(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=h||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,a,r){var f;let l,i,o;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=W=>{if(W.indexOf(this.formatSeparator)<0){const g=zy(n,s,W,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,a,{...r,...n,interpolationkey:W}):g}const C=W.split(this.formatSeparator),E=C.shift().trim(),h=C.join(this.formatSeparator).trim();return this.format(zy(n,s,E,this.options.keySeparator,this.options.ignoreJSONStructure),h,a,{...r,...n,interpolationkey:E})};this.resetRegExp();const u=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((f=r==null?void 0:r.interpolation)==null?void 0:f.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:W=>$f(W)},{regex:this.regexp,safeValue:W=>this.escapeValue?$f(this.escape(W)):$f(W)}].forEach(W=>{for(o=0;l=W.regex.exec(t);){const C=l[1].trim();if(i=p(C),i===void 0)if(typeof u=="function"){const h=u(t,l,r);i=Ue(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,C))i="";else if(c){i=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),i="";else!Ue(i)&&!this.useRawValueToEscape&&(i=xy(i));const E=W.safeValue(i);if(t=t.replace(l[0],E),c?(W.regex.lastIndex+=i.length,W.regex.lastIndex-=l[0].length):W.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,a={}){let r,l,i;const o=(s,p)=>{const u=this.nestingOptionsSeparator;if(s.indexOf(u)<0)return s;const c=s.split(new RegExp(`${Sl(u)}[ ]*{`));let d=`{${c[1]}`;s=c[0],d=this.interpolate(d,i);const f=d.match(/'/g),W=d.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!W||((W==null?void 0:W.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{i=JSON.parse(d),p&&(i={...p,...i})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,C),`${s}${u}${d}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,s};for(;r=this.nestingRegexp.exec(t);){let s=[];i={...a},i=i.replace&&!Ue(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(s=r[1].slice(p).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),l=n(o.call(this,r[1].trim(),i),i),l&&r[0]===t&&!Ue(l))return l;Ue(l)||(l=xy(l)),l||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),l=""),s.length&&(l=s.reduce((u,c)=>this.format(u,c,a.lng,{...a,interpolationkey:r[1].trim()}),l.trim())),t=t.replace(r[0],l),this.regexp.lastIndex=0}return t}}const C3=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(i=>{if(i){const[o,...s]=i.split(":"),p=s.join(":").trim().replace(/^'+|'+$/g,""),u=o.trim();n[u]||(n[u]=p),p==="false"&&(n[u]=!1),p==="true"&&(n[u]=!0),isNaN(p)||(n[u]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},jy=e=>{const t={};return(n,a,r)=>{let l=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(l={...l,[r.interpolationkey]:void 0});const i=a+JSON.stringify(l);let o=t[i];return o||(o=e(es(a),r),t[i]=o),o(n)}},v3=e=>(t,n,a)=>e(es(n),a)(t);class y3{constructor(t={}){this.logger=Pa.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?jy:v3;this.formats={number:a((r,l)=>{const i=new Intl.NumberFormat(r,{...l});return o=>i.format(o)}),currency:a((r,l)=>{const i=new Intl.NumberFormat(r,{...l,style:"currency"});return o=>i.format(o)}),datetime:a((r,l)=>{const i=new Intl.DateTimeFormat(r,{...l});return o=>i.format(o)}),relativetime:a((r,l)=>{const i=new Intl.RelativeTimeFormat(r,{...l});return o=>i.format(o,l.range||"day")}),list:a((r,l)=>{const i=new Intl.ListFormat(r,{...l});return o=>i.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=jy(n)}format(t,n,a,r={}){const l=n.split(this.formatSeparator);if(l.length>1&&l[0].indexOf("(")>1&&l[0].indexOf(")")<0&&l.find(o=>o.indexOf(")")>-1)){const o=l.findIndex(s=>s.indexOf(")")>-1);l[0]=[l[0],...l.splice(1,o)].join(this.formatSeparator)}return l.reduce((o,s)=>{var c;const{formatName:p,formatOptions:u}=C3(s);if(this.formats[p]){let d=o;try{const f=((c=r==null?void 0:r.formatParams)==null?void 0:c[r.interpolationkey])||{},W=f.locale||f.lng||r.locale||r.lng||a;d=this.formats[p](o,W,{...u,...r,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${p}`);return o},t)}}const I3=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class S3 extends ju{constructor(t,n,a,r={}){var l,i;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=Pa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(i=(l=this.backend)==null?void 0:l.init)==null||i.call(l,a,r.backend,r)}queueLoad(t,n,a,r){const l={},i={},o={},s={};return t.forEach(p=>{let u=!0;n.forEach(c=>{const d=`${p}|${c}`;!a.reload&&this.store.hasResourceBundle(p,c)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?i[d]===void 0&&(i[d]=!0):(this.state[d]=1,u=!1,i[d]===void 0&&(i[d]=!0),l[d]===void 0&&(l[d]=!0),s[c]===void 0&&(s[c]=!0)))}),u||(o[p]=!0)}),(Object.keys(l).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(l),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const r=t.split("|"),l=r[0],i=r[1];n&&this.emit("failedLoading",l,i,n),!n&&a&&this.store.addResourceBundle(l,i,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const o={};this.queue.forEach(s=>{s3(s.loaded,[l],i),I3(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(p=>{o[p]||(o[p]={});const u=s.loaded[p];u.length&&u.forEach(c=>{o[p][c]===void 0&&(o[p][c]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,r=0,l=this.retryTimeout,i){if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:r,wait:l,callback:i});return}this.readingCalls++;const o=(p,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(p&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,r+1,l*2,i)},l);return}i(p,u)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const p=s(t,n);p&&typeof p.then=="function"?p.then(u=>o(null,u)).catch(o):o(null,p)}catch(p){o(p)}return}return s(t,n,o)}prepareLoading(t,n,a={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ue(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ue(n)&&(n=[n]);const l=this.queueLoad(t,n,a,r);if(!l.toLoad.length)return l.pending.length||r(),null;l.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),r=a[0],l=a[1];this.read(r,l,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${n}loading namespace ${l} for language ${r} failed`,i),!i&&o&&this.logger.log(`${n}loaded namespace ${l} for language ${r}`,o),this.loaded(t,i,o)})}saveMissing(t,n,a,r,l,i={},o=()=>{}){var s,p,u,c,d;if((p=(s=this.services)==null?void 0:s.utils)!=null&&p.hasLoadedNamespace&&!((c=(u=this.services)==null?void 0:u.utils)!=null&&c.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const f={...i,isUpdate:l},W=this.backend.create.bind(this.backend);if(W.length<6)try{let C;W.length===5?C=W(t,n,a,r,f):C=W(t,n,a,r),C&&typeof C.then=="function"?C.then(E=>o(null,E)).catch(o):o(null,C)}catch(C){o(C)}else W(t,n,a,r,o,f)}!t||!t[0]||this.store.addResource(t[0],n,a,r)}}}const eW=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Ue(e[1])&&(t.defaultValue=e[1]),Ue(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ty=e=>{var t,n;return Ue(e.ns)&&(e.ns=[e.ns]),Ue(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ue(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},Ku=()=>{},E3=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};let Ky=!1;const x3=e=>{var t,n,a,r,l,i,o,s,p;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((o=(i=(l=(r=e==null?void 0:e.modules)==null?void 0:r.backend)==null?void 0:l.constructor)==null?void 0:i.name)==null?void 0:o.indexOf("Locize"))>0||(p=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&p.backends&&e.options.backend.backends.some(u=>{var c,d,f;return((c=u==null?void 0:u.name)==null?void 0:c.indexOf("Locize"))>0||((f=(d=u==null?void 0:u.constructor)==null?void 0:d.name)==null?void 0:f.indexOf("Locize"))>0}))};class ts extends ju{constructor(t={},n){if(super(),this.options=Ty(t),this.services={},this.logger=Pa,this.modules={external:[]},E3(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ue(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=eW();this.options={...a,...this.options,...Ty(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!x3(this)&&!Ky&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Ky=!0);const r=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Pa.init(r(this.modules.logger),this.options):Pa.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=y3;const u=new Vy(this.options);this.store=new By(this.options.resources,this.options);const c=this.services;c.logger=Pa,c.resourceStore=this.store,c.languageUtils=u,c.pluralResolver=new m3(u,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(p),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new qy(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new S3(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Tu(this.services,this.options),this.translator.on("*",(f,...W)=>{this.emit(f,...W)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ku),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...u)=>this.store[p](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...u)=>(this.store[p](...u),this)});const o=_o(),s=()=>{const p=(u,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(c),n(u,c)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(t,n=Ku){var l,i;let a=n;const r=Ue(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],s=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),(i=(l=this.options.preload)==null?void 0:l.forEach)==null||i.call(l,p=>s(p)),this.services.backendConnector.load(o,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(t,n,a){const r=_o();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=Ku),this.services.backendConnector.reload(t,n,l=>{r.resolve(),a(l)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&My.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=_o();this.emit("languageChanging",t);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},l=(o,s)=>{s?this.isLanguageChangingTo===t&&(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...p)=>this.t(...p)),n&&n(o,(...p)=>this.t(...p))},i=o=>{var u,c;!t&&!o&&this.services.languageDetector&&(o=[]);const s=Ue(o)?o:o&&o[0],p=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(Ue(o)?[o]:o);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(c=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||c.call(u,p)),this.loadResources(p,d=>{l(d,p)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?i(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(t),a}getFixedT(t,n,a){const r=(l,i,...o)=>{let s;typeof i!="object"?s=this.options.overloadTranslationOptionHandler([l,i].concat(o)):s={...i},s.lng=s.lng||r.lng,s.lngs=s.lngs||r.lngs,s.ns=s.ns||r.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||r.keyPrefix);const p=this.options.keySeparator||".";let u;return s.keyPrefix&&Array.isArray(l)?u=l.map(c=>(typeof c=="function"&&(c=Hf(c,{...this.options,...i})),`${s.keyPrefix}${p}${c}`)):(typeof l=="function"&&(l=Hf(l,{...this.options,...i})),u=s.keyPrefix?`${s.keyPrefix}${p}${l}`:l),this.t(u,s)};return Ue(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=a,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const a=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const i=(o,s)=>{const p=this.services.backendConnector.state[`${o}|${s}`];return p===-1||p===0||p===2};if(n.precheck){const o=n.precheck(this,i);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(a,t)&&(!r||i(l,t)))}loadNamespaces(t,n){const a=_o();return this.options.ns?(Ue(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),n&&n(r)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=_o();Ue(t)&&(t=[t]);const r=this.options.preload||[],l=t.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return l.length?(this.options.preload=r.concat(l),this.loadResources(i=>{a.resolve(),n&&n(i)}),a):(n&&n(),Promise.resolve())}dir(t){var r,l;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=((l=this.services)==null?void 0:l.languageUtils)||new Vy(eW());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new ts(t,n);return a.createInstance=ts.createInstance,a}cloneInstance(t={},n=Ku){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},l=new ts(r);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(o=>{l[o]=this[o]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},a){const o=Object.keys(this.store.data).reduce((s,p)=>(s[p]={...this.store.data[p]},s[p]=Object.keys(s[p]).reduce((u,c)=>(u[c]={...s[p][c]},u),s[p]),s),{});l.store=new By(o,r),l.services.resourceStore=l.store}if(t.interpolation){const s={...eW().interpolation,...this.options.interpolation,...t.interpolation},p={...r,interpolation:s};l.services.interpolator=new qy(p)}return l.translator=new Tu(l.services,r),l.translator.on("*",(o,...s)=>{l.emit(o,...s)}),l.init(r,n),l.translator.options=r,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gt=ts.createInstance();Gt.createInstance,Gt.dir,Gt.init,Gt.loadResources,Gt.reloadResources,Gt.use,Gt.changeLanguage,Gt.getFixedT,Gt.t,Gt.exists,Gt.setDefaultNamespace,Gt.hasLoadedNamespace,Gt.loadNamespaces,Gt.loadLanguages;const b3=(e,t,n,a)=>{var l,i,o,s;const r=[n,{code:t,...a||{}}];if((i=(l=e==null?void 0:e.services)==null?void 0:l.logger)!=null&&i.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);El(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(s=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&s.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Oy={},Py=(e,t,n,a)=>{El(n)&&Oy[n]||(El(n)&&(Oy[n]=new Date),b3(e,t,n,a))},Jy=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},tW=(e,t,n)=>{e.loadNamespaces(t,Jy(e,n))},Dy=(e,t,n,a)=>{if(El(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return tW(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,Jy(e,a))},k3=(e,t,n={})=>!t.languages||!t.languages.length?(Py(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),El=e=>typeof e=="string",R3=e=>typeof e=="object"&&e!==null,w3=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,B3={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M3=e=>B3[e];let nW={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(w3,M3),transDefaultProps:void 0};const L3=(e={})=>{nW={...nW,...e}},Q3=()=>nW;let Yy;const V3=e=>{Yy=e},U3=()=>Yy,F3={type:"3rdParty",init(e){L3(e.options.react),V3(e)}},Zy=v.createContext();class z3{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ny={exports:{}},Gy={};/**
66
66
  * @license React
67
67
  * use-sync-external-store-shim.production.js
68
68
  *
@@ -70,7 +70,7 @@ Error generating stack: `+l.message+`
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var xi=v;function q3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var j3=typeof Object.is=="function"?Object.is:q3,T3=xi.useState,K3=xi.useEffect,O3=xi.useLayoutEffect,P3=xi.useDebugValue;function J3(e,t){var n=t(),a=T3({inst:{value:n,getSnapshot:t}}),r=a[0].inst,l=a[1];return O3(function(){r.value=n,r.getSnapshot=t,aW(r)&&l({inst:r})},[e,n,t]),K3(function(){return aW(r)&&l({inst:r}),e(function(){aW(r)&&l({inst:r})})},[e]),P3(n),n}function aW(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!j3(e,n)}catch{return!0}}function D3(e,t){return t()}var Y3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?D3:J3;Gy.useSyncExternalStore=xi.useSyncExternalStore!==void 0?xi.useSyncExternalStore:Y3,Ny.exports=Gy;var Z3=Ny.exports;const N3={t:(e,t)=>El(t)?t:R3(t)&&El(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},G3=()=>()=>{},Ja=(e,t={})=>{var V,b,w;const{i18n:n}=t,{i18n:a,defaultNS:r}=v.useContext(Zy)||{},l=n||a||U3();l&&!l.reportNamespaces&&(l.reportNamespaces=new z3),l||Py(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=v.useMemo(()=>{var M;return{...Q3(),...(M=l==null?void 0:l.options)==null?void 0:M.react,...t}},[l,t]),{useSuspense:o,keyPrefix:s}=i,p=r||((V=l==null?void 0:l.options)==null?void 0:V.defaultNS),u=El(p)?[p]:p||["translation"],c=v.useMemo(()=>u,u);(w=(b=l==null?void 0:l.reportNamespaces)==null?void 0:b.addUsedNamespaces)==null||w.call(b,c);const d=v.useRef(0),f=v.useCallback(M=>{if(!l)return G3;const{bindI18n:z,bindI18nStore:F}=i,T=()=>{d.current+=1,M()};return z&&l.on(z,T),F&&l.store.on(F,T),()=>{z&&z.split(" ").forEach(U=>l.off(U,T)),F&&F.split(" ").forEach(U=>l.store.off(U,T))}},[l,i]),W=v.useRef(),C=v.useCallback(()=>{if(!l)return N3;const M=!!(l.isInitialized||l.initializedStoreOnce)&&c.every(Q=>k3(Q,l,i)),z=t.lng||l.language,F=d.current,T=W.current;if(T&&T.ready===M&&T.lng===z&&T.keyPrefix===s&&T.revision===F)return T;const q={t:l.getFixedT(z,i.nsMode==="fallback"?c:c[0],s),ready:M,lng:z,keyPrefix:s,revision:F};return W.current=q,q},[l,c,s,i,t.lng]),[E,h]=v.useState(0),{t:g,ready:m}=Z3.useSyncExternalStore(f,C,C);v.useEffect(()=>{if(l&&!m&&!o){const M=()=>h(z=>z+1);t.lng?Dy(l,t.lng,c,M):tW(l,c,M)}},[l,t.lng,c,m,o,E]);const y=l||{},x=v.useRef(null),S=v.useRef(),k=M=>{const z=Object.getOwnPropertyDescriptors(M);z.__original&&delete z.__original;const F=Object.create(Object.getPrototypeOf(M),z);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},B=v.useMemo(()=>{const M=y,z=M==null?void 0:M.language;let F=M;M&&(x.current&&x.current.__original===M?S.current!==z?(F=k(M),x.current=F,S.current=z):F=x.current:(F=k(M),x.current=F,S.current=z));const T=[g,F,m];return T.t=g,T.i18n=F,T.ready=m,T},[g,y,m,y.resolvedLanguage,y.language,y.languages]);if(l&&o&&!m)throw new Promise(M=>{const z=()=>M();t.lng?Dy(l,t.lng,c,z):tW(l,c,z)});return B};function X3({i18n:e,defaultNS:t,children:n}){const a=v.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return v.createElement(Zy.Provider,{value:a},n)}const ns={black:"#000",white:"#fff"},bi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ki={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ri={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},as={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},H3={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"};function fr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const _3=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),Mi="$$material";function ie(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var $3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,e7=ly(function(e){return $3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),t7=e7,n7=function(t){return t!=="theme"},Xy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?t7:n7},Hy=function(t,n,a){var r;if(n){var l=n.shouldForwardProp;r=t.__emotion_forwardProp&&l?function(i){return t.__emotion_forwardProp(i)&&l(i)}:l}return typeof r!="function"&&a&&(r=t.__emotion_forwardProp),r},a7=function(t){var n=t.cache,a=t.serialized,r=t.isStringTag;return Pf(n,a,r),my(function(){return Jf(n,a,r)}),null},r7=function e(t,n){var a=t.__emotion_real===t,r=a&&t.__emotion_base||t,l,i;n!==void 0&&(l=n.label,i=n.target);var o=Hy(t,n,a),s=o||Xy(r),p=!s("as");return function(){var u=arguments,c=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&c.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{var d=u[0];c.push(d[0]);for(var f=u.length,W=1;W<f;W++)c.push(u[W],d[W])}var C=Yf(function(E,h,g){var m=p&&E.as||r,y="",x=[],S=E;if(E.theme==null){S={};for(var k in E)S[k]=E[k];S.theme=v.useContext(Si)}typeof E.className=="string"?y=Ay(h.registered,x,E.className):E.className!=null&&(y=E.className+" ");var B=Ho(c.concat(x),h.registered,S);y+=h.key+"-"+B.name,i!==void 0&&(y+=" "+i);var V=p&&o===void 0?Xy(m):s,b={};for(var w in E)p&&w==="as"||V(w)&&(b[w]=E[w]);return b.className=y,g&&(b.ref=g),v.createElement(v.Fragment,null,v.createElement(a7,{cache:h,serialized:B,isStringTag:typeof m=="string"}),v.createElement(m,b))});return C.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=r,C.__emotion_styles=c,C.__emotion_forwardProp=o,Object.defineProperty(C,"toString",{value:function(){return"."+i}}),C.withComponent=function(E,h){var g=e(E,I({},n,h,{shouldForwardProp:Hy(C,h,!0)}));return g.apply(void 0,c)},C}},l7=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],rW=r7.bind(null);l7.forEach(function(e){rW[e]=rW(e)});function i7(e,t){const n=bu({key:"css",prepend:e});if(t){const a=n.insert;n.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),a(...r))}return n}const lW=new Map;function o7(e){const{injectFirst:t,enableCssLayer:n,children:a}=e,r=v.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&lW.has(l))return lW.get(l);const i=i7(t,n);return lW.set(l,i),i},[t,n]);return t||n?A.jsx(yy,{value:r,children:a}):a}function s7(e){return e==null||Object.keys(e).length===0}function _y(e){const{styles:t,defaultTheme:n={}}=e,a=typeof t=="function"?r=>t(s7(r)?n:r):t;return A.jsx(a3,{styles:a})}function iW(e,t){return rW(e,t)}const $y=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},e1=[];function Ou(e){return e1[0]=e,Ho(e1)}const p7=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:_y,StyledEngineProvider:o7,ThemeContext:Si,css:Ei,default:iW,internal_processStyles:$y,internal_serializeStyles:Ou,keyframes:Zr},Symbol.toStringTag,{value:"Module"}));function Wr(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 t1(e){if(v.isValidElement(e)||!Wr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=t1(e[n])}),t}function hn(e,t,n={clone:!0}){const a=n.clone?I({},e):e;return Wr(e)&&Wr(t)&&Object.keys(t).forEach(r=>{v.isValidElement(t[r])?a[r]=t[r]:Wr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Wr(e[r])?a[r]=hn(e[r],t[r],n):n.clone?a[r]=Wr(t[r])?t1(t[r]):t[r]:a[r]=t[r]}),a}const u7=Object.freeze(Object.defineProperty({__proto__:null,default:hn,isPlainObject:Wr},Symbol.toStringTag,{value:"Module"})),c7=["values","unit","step"],A7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,a)=>n.val-a.val),t.reduce((n,a)=>I({},n,{[a.key]:a.val}),{})};function n1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,r=ie(e,c7),l=A7(t),i=Object.keys(l);function o(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-a/100}${n})`}function p(d,f){const W=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(W!==-1&&typeof t[i[W]]=="number"?t[i[W]]:f)-a/100}${n})`}function u(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):o(d)}function c(d){const f=i.indexOf(d);return f===0?o(i[1]):f===i.length-1?s(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return I({keys:i,values:l,up:o,down:s,between:p,only:u,not:c,unit:n},r)}const d7={borderRadius:4};function rs(e,t){return t?hn(e,t,{clone:!1}):e}const oW={xs:0,sm:600,md:900,lg:1200,xl:1536},a1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oW[e]}px)`};function kn(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const l=a.breakpoints||a1;return t.reduce((i,o,s)=>(i[l.up(l.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const l=a.breakpoints||a1;return Object.keys(t).reduce((i,o)=>{if(Object.keys(l.values||oW).indexOf(o)!==-1){const s=l.up(o);i[s]=n(t[o],o)}else{const s=o;i[s]=t[s]}return i},{})}return n(t)}function r1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((a,r)=>{const l=e.up(r);return a[l]={},a},{}))||{}}function sW(e,t){return e.reduce((n,a)=>{const r=n[a];return(!r||Object.keys(r).length===0)&&delete n[a],n},t)}function f7(e,...t){const n=r1(e),a=[n,...t].reduce((r,l)=>hn(r,l),{});return sW(Object.keys(n),a)}function W7(e,t){if(typeof e!="object")return{};const n={},a=Object.keys(t);return Array.isArray(e)?a.forEach((r,l)=>{l<e.length&&(n[r]=!0)}):a.forEach(r=>{e[r]!=null&&(n[r]=!0)}),n}function xl({values:e,breakpoints:t,base:n}){const a=n||W7(e,t),r=Object.keys(a);if(r.length===0)return e;let l;return r.reduce((i,o,s)=>(Array.isArray(e)?(i[o]=e[s]!=null?e[s]:e[l],l=s):typeof e=="object"?(i[o]=e[o]!=null?e[o]:e[l],l=o):i[o]=e,i),{})}function $(e){if(typeof e!="string")throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const g7=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));function Pu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const a=`vars.${t}`.split(".").reduce((r,l)=>r&&r[l]?r[l]:null,e);if(a!=null)return a}return t.split(".").reduce((a,r)=>a&&a[r]!=null?a[r]:null,e)}function Ju(e,t,n,a=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||a:r=Pu(e,n)||a,t&&(r=t(r,a,e)),r}function Ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:r}=e,l=i=>{if(i[t]==null)return null;const o=i[t],s=i.theme,p=Pu(s,a)||{};return kn(i,o,c=>{let d=Ju(p,r,c);return c===d&&typeof c=="string"&&(d=Ju(p,r,`${t}${c==="default"?"":$(c)}`,c)),n===!1?d:{[n]:d}})};return l.propTypes={},l.filterProps=[t],l}function h7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const m7={m:"margin",p:"padding"},C7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v7=h7(e=>{if(e.length>2)if(l1[e])e=l1[e];else return[e];const[t,n]=e.split(""),a=m7[t],r=C7[n]||"";return Array.isArray(r)?r.map(l=>a+l):[a+r]}),pW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pW,...uW];function ls(e,t,n,a){var r;const l=(r=Pu(e,t,!1))!=null?r:n;return typeof l=="number"?i=>typeof i=="string"?i:l*i:Array.isArray(l)?i=>typeof i=="string"?i:l[i]:typeof l=="function"?l:()=>{}}function cW(e){return ls(e,"spacing",8)}function bl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),a=e(n);return t>=0?a:typeof a=="number"?-a:`-${a}`}function y7(e,t){return n=>e.reduce((a,r)=>(a[r]=bl(t,n),a),{})}function I7(e,t,n,a){if(t.indexOf(n)===-1)return null;const r=v7(n),l=y7(r,a),i=e[n];return kn(e,i,l)}function i1(e,t){const n=cW(e.theme);return Object.keys(e).map(a=>I7(e,t,a,n)).reduce(rs,{})}function Mt(e){return i1(e,pW)}Mt.propTypes={},Mt.filterProps=pW;function Lt(e){return i1(e,uW)}Lt.propTypes={},Lt.filterProps=uW;function S7(e=8){if(e.mui)return e;const t=cW({spacing:e}),n=(...a)=>(a.length===0?[1]:a).map(l=>{const i=t(l);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Du(...e){const t=e.reduce((a,r)=>(r.filterProps.forEach(l=>{a[l]=r}),a),{}),n=a=>Object.keys(a).reduce((r,l)=>t[l]?rs(r,t[l](a)):r,{});return n.propTypes={},n.filterProps=e.reduce((a,r)=>a.concat(r.filterProps),[]),n}function ia(e){return typeof e!="number"?e:`${e}px solid`}function oa(e,t){return Ut({prop:e,themeKey:"borders",transform:t})}const E7=oa("border",ia),x7=oa("borderTop",ia),b7=oa("borderRight",ia),k7=oa("borderBottom",ia),R7=oa("borderLeft",ia),w7=oa("borderColor"),B7=oa("borderTopColor"),M7=oa("borderRightColor"),L7=oa("borderBottomColor"),Q7=oa("borderLeftColor"),V7=oa("outline",ia),U7=oa("outlineColor"),Yu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ls(e.theme,"shape.borderRadius",4),n=a=>({borderRadius:bl(t,a)});return kn(e,e.borderRadius,n)}return null};Yu.propTypes={},Yu.filterProps=["borderRadius"],Du(E7,x7,b7,k7,R7,w7,B7,M7,L7,Q7,Yu,V7,U7);const Zu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ls(e.theme,"spacing",8),n=a=>({gap:bl(t,a)});return kn(e,e.gap,n)}return null};Zu.propTypes={},Zu.filterProps=["gap"];const Nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ls(e.theme,"spacing",8),n=a=>({columnGap:bl(t,a)});return kn(e,e.columnGap,n)}return null};Nu.propTypes={},Nu.filterProps=["columnGap"];const Gu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ls(e.theme,"spacing",8),n=a=>({rowGap:bl(t,a)});return kn(e,e.rowGap,n)}return null};Gu.propTypes={},Gu.filterProps=["rowGap"];const F7=Ut({prop:"gridColumn"}),z7=Ut({prop:"gridRow"}),q7=Ut({prop:"gridAutoFlow"}),j7=Ut({prop:"gridAutoColumns"}),T7=Ut({prop:"gridAutoRows"}),K7=Ut({prop:"gridTemplateColumns"}),O7=Ut({prop:"gridTemplateRows"}),P7=Ut({prop:"gridTemplateAreas"}),J7=Ut({prop:"gridArea"});Du(Zu,Nu,Gu,F7,z7,q7,j7,T7,K7,O7,P7,J7);function Li(e,t){return t==="grey"?t:e}const D7=Ut({prop:"color",themeKey:"palette",transform:Li}),Y7=Ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Li}),Z7=Ut({prop:"backgroundColor",themeKey:"palette",transform:Li});Du(D7,Y7,Z7);function Yn(e){return e<=1&&e!==0?`${e*100}%`:e}const N7=Ut({prop:"width",transform:Yn}),AW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,r;const l=((a=e.theme)==null||(a=a.breakpoints)==null||(a=a.values)==null?void 0:a[n])||oW[n];return l?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Yn(n)}};return kn(e,e.maxWidth,t)}return null};AW.filterProps=["maxWidth"];const G7=Ut({prop:"minWidth",transform:Yn}),X7=Ut({prop:"height",transform:Yn}),H7=Ut({prop:"maxHeight",transform:Yn}),_7=Ut({prop:"minHeight",transform:Yn});Ut({prop:"size",cssProperty:"width",transform:Yn}),Ut({prop:"size",cssProperty:"height",transform:Yn});const $7=Ut({prop:"boxSizing"});Du(N7,AW,G7,X7,H7,_7,$7);const is={border:{themeKey:"borders",transform:ia},borderTop:{themeKey:"borders",transform:ia},borderRight:{themeKey:"borders",transform:ia},borderBottom:{themeKey:"borders",transform:ia},borderLeft:{themeKey:"borders",transform:ia},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ia},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yu},color:{themeKey:"palette",transform:Li},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Li},backgroundColor:{themeKey:"palette",transform:Li},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Zu},rowGap:{style:Gu},columnGap:{style:Nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yn},maxWidth:{style:AW},minWidth:{transform:Yn},height:{transform:Yn},maxHeight:{transform:Yn},minHeight:{transform:Yn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function e2(...e){const t=e.reduce((a,r)=>a.concat(Object.keys(r)),[]),n=new Set(t);return e.every(a=>n.size===Object.keys(a).length)}function t2(e,t){return typeof e=="function"?e(t):e}function o1(){function e(n,a,r,l){const i={[n]:a,theme:r},o=l[n];if(!o)return{[n]:a};const{cssProperty:s=n,themeKey:p,transform:u,style:c}=o;if(a==null)return null;if(p==="typography"&&a==="inherit")return{[n]:a};const d=Pu(r,p)||{};return c?c(i):kn(i,a,W=>{let C=Ju(d,u,W);return W===C&&typeof W=="string"&&(C=Ju(d,u,`${n}${W==="default"?"":$(W)}`,W)),s===!1?C:{[s]:C}})}function t(n){var a;const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=(a=l.unstable_sxConfig)!=null?a:is;function s(p){let u=p;if(typeof p=="function")u=p(l);else if(typeof p!="object")return p;if(!u)return null;const c=r1(l.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(W=>{const C=t2(u[W],l);if(C!=null)if(typeof C=="object")if(o[W])f=rs(f,e(W,C,l,o));else{const E=kn({theme:l},C,h=>({[W]:h}));e2(E,C)?f[W]=t({sx:C,theme:l,nested:!0}):f=rs(f,E)}else f=rs(f,e(W,C,l,o))}),!i&&l.modularCssLayers?{"@layer sx":sW(d,f)}:sW(d,f)}return Array.isArray(r)?r.map(s):s(r)}return t}const Qi=o1();Qi.filterProps=["sx"];function s1(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const n2=["breakpoints","palette","spacing","shape"];function os(e={},...t){const{breakpoints:n={},palette:a={},spacing:r,shape:l={}}=e,i=ie(e,n2),o=n1(n),s=S7(r);let p=hn({breakpoints:o,direction:"ltr",components:{},palette:I({mode:"light"},a),spacing:s,shape:I({},d7,l)},i);return p.applyStyles=s1,p=t.reduce((u,c)=>hn(u,c),p),p.unstable_sxConfig=I({},is,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(c){return Qi({sx:c,theme:this})},p}const a2=Object.freeze(Object.defineProperty({__proto__:null,default:os,private_createBreakpoints:n1,unstable_applyStyles:s1},Symbol.toStringTag,{value:"Module"}));function r2(e){return Object.keys(e).length===0}function Xu(e=null){const t=v.useContext(Si);return!t||r2(t)?e:t}const l2=os();function Hu(e=l2){return Xu(e)}function dW(e){const t=Ou(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function p1({styles:e,themeId:t,defaultTheme:n={}}){const a=Hu(n),r=t&&a[t]||a;let l=typeof e=="function"?e(r):e;return r.modularCssLayers&&(Array.isArray(l)?l=l.map(i=>dW(typeof i=="function"?i(r):i)):l=dW(l)),A.jsx(_y,{styles:l})}const i2=["sx"],o2=e=>{var t,n;const a={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:is;return Object.keys(e).forEach(l=>{r[l]?a.systemProps[l]=e[l]:a.otherProps[l]=e[l]}),a};function ss(e){const{sx:t}=e,n=ie(e,i2),{systemProps:a,otherProps:r}=o2(n);let l;return Array.isArray(t)?l=[a,...t]:typeof t=="function"?l=(...i)=>{const o=t(...i);return Wr(o)?I({},a,o):a}:l=I({},a,t),I({},r,{sx:l})}const s2=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,extendSxProp:ss,unstable_createStyleFunctionSx:o1,unstable_defaultSxConfig:is},Symbol.toStringTag,{value:"Module"})),u1=e=>e,fW=(()=>{let e=u1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=u1}}})();function c1(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=c1(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function pe(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=c1(e))&&(a&&(a+=" "),a+=t);return a}const p2=["className","component"];function u2(e={}){const{themeId:t,defaultTheme:n,defaultClassName:a="MuiBox-root",generateClassName:r}=e,l=iW("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Qi);return v.forwardRef(function(s,p){const u=Hu(n),c=ss(s),{className:d,component:f="div"}=c,W=ie(c,p2);return A.jsx(l,I({as:f,ref:p,className:pe(d,r?r(a):a),theme:t&&u[t]||u},W))})}const c2={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 Ee(e,t,n="Mui"){const a=c2[t];return a?`${n}-${a}`:`${fW.generate(e)}-${t}`}function xe(e,t,n="Mui"){const a={};return t.forEach(r=>{a[r]=Ee(e,r,n)}),a}var A1={exports:{}},dt={};/**
73
+ */var xi=v;function q3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var j3=typeof Object.is=="function"?Object.is:q3,T3=xi.useState,K3=xi.useEffect,O3=xi.useLayoutEffect,P3=xi.useDebugValue;function J3(e,t){var n=t(),a=T3({inst:{value:n,getSnapshot:t}}),r=a[0].inst,l=a[1];return O3(function(){r.value=n,r.getSnapshot=t,aW(r)&&l({inst:r})},[e,n,t]),K3(function(){return aW(r)&&l({inst:r}),e(function(){aW(r)&&l({inst:r})})},[e]),P3(n),n}function aW(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!j3(e,n)}catch{return!0}}function D3(e,t){return t()}var Y3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?D3:J3;Gy.useSyncExternalStore=xi.useSyncExternalStore!==void 0?xi.useSyncExternalStore:Y3,Ny.exports=Gy;var Z3=Ny.exports;const N3={t:(e,t)=>El(t)?t:R3(t)&&El(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,ready:!1},G3=()=>()=>{},Ja=(e,t={})=>{var V,b,w;const{i18n:n}=t,{i18n:a,defaultNS:r}=v.useContext(Zy)||{},l=n||a||U3();l&&!l.reportNamespaces&&(l.reportNamespaces=new z3),l||Py(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=v.useMemo(()=>{var M;return{...Q3(),...(M=l==null?void 0:l.options)==null?void 0:M.react,...t}},[l,t]),{useSuspense:o,keyPrefix:s}=i,p=r||((V=l==null?void 0:l.options)==null?void 0:V.defaultNS),u=El(p)?[p]:p||["translation"],c=v.useMemo(()=>u,u);(w=(b=l==null?void 0:l.reportNamespaces)==null?void 0:b.addUsedNamespaces)==null||w.call(b,c);const d=v.useRef(0),f=v.useCallback(M=>{if(!l)return G3;const{bindI18n:z,bindI18nStore:F}=i,T=()=>{d.current+=1,M()};return z&&l.on(z,T),F&&l.store.on(F,T),()=>{z&&z.split(" ").forEach(U=>l.off(U,T)),F&&F.split(" ").forEach(U=>l.store.off(U,T))}},[l,i]),W=v.useRef(),C=v.useCallback(()=>{if(!l)return N3;const M=!!(l.isInitialized||l.initializedStoreOnce)&&c.every(Q=>k3(Q,l,i)),z=t.lng||l.language,F=d.current,T=W.current;if(T&&T.ready===M&&T.lng===z&&T.keyPrefix===s&&T.revision===F)return T;const q={t:l.getFixedT(z,i.nsMode==="fallback"?c:c[0],s),ready:M,lng:z,keyPrefix:s,revision:F};return W.current=q,q},[l,c,s,i,t.lng]),[E,h]=v.useState(0),{t:g,ready:m}=Z3.useSyncExternalStore(f,C,C);v.useEffect(()=>{if(l&&!m&&!o){const M=()=>h(z=>z+1);t.lng?Dy(l,t.lng,c,M):tW(l,c,M)}},[l,t.lng,c,m,o,E]);const y=l||{},x=v.useRef(null),S=v.useRef(),k=M=>{const z=Object.getOwnPropertyDescriptors(M);z.__original&&delete z.__original;const F=Object.create(Object.getPrototypeOf(M),z);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},B=v.useMemo(()=>{const M=y,z=M==null?void 0:M.language;let F=M;M&&(x.current&&x.current.__original===M?S.current!==z?(F=k(M),x.current=F,S.current=z):F=x.current:(F=k(M),x.current=F,S.current=z));const T=[g,F,m];return T.t=g,T.i18n=F,T.ready=m,T},[g,y,m,y.resolvedLanguage,y.language,y.languages]);if(l&&o&&!m)throw new Promise(M=>{const z=()=>M();t.lng?Dy(l,t.lng,c,z):tW(l,c,z)});return B};function X3({i18n:e,defaultNS:t,children:n}){const a=v.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return v.createElement(Zy.Provider,{value:a},n)}const ns={black:"#000",white:"#fff"},bi={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ki={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ri={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},wi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Bi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},as={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},H3={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"};function fr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const _3=Object.freeze(Object.defineProperty({__proto__:null,default:fr},Symbol.toStringTag,{value:"Module"})),Mi="$$material";function ie(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}var $3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,e7=ly(function(e){return $3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),t7=e7,n7=function(t){return t!=="theme"},Xy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?t7:n7},Hy=function(t,n,a){var r;if(n){var l=n.shouldForwardProp;r=t.__emotion_forwardProp&&l?function(i){return t.__emotion_forwardProp(i)&&l(i)}:l}return typeof r!="function"&&a&&(r=t.__emotion_forwardProp),r},a7=function(t){var n=t.cache,a=t.serialized,r=t.isStringTag;return Pf(n,a,r),my(function(){return Jf(n,a,r)}),null},r7=function e(t,n){var a=t.__emotion_real===t,r=a&&t.__emotion_base||t,l,i;n!==void 0&&(l=n.label,i=n.target);var o=Hy(t,n,a),s=o||Xy(r),p=!s("as");return function(){var u=arguments,c=a&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&c.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)c.push.apply(c,u);else{var d=u[0];c.push(d[0]);for(var f=u.length,W=1;W<f;W++)c.push(u[W],d[W])}var C=Yf(function(E,h,g){var m=p&&E.as||r,y="",x=[],S=E;if(E.theme==null){S={};for(var k in E)S[k]=E[k];S.theme=v.useContext(Si)}typeof E.className=="string"?y=Ay(h.registered,x,E.className):E.className!=null&&(y=E.className+" ");var B=Ho(c.concat(x),h.registered,S);y+=h.key+"-"+B.name,i!==void 0&&(y+=" "+i);var V=p&&o===void 0?Xy(m):s,b={};for(var w in E)p&&w==="as"||V(w)&&(b[w]=E[w]);return b.className=y,g&&(b.ref=g),v.createElement(v.Fragment,null,v.createElement(a7,{cache:h,serialized:B,isStringTag:typeof m=="string"}),v.createElement(m,b))});return C.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=r,C.__emotion_styles=c,C.__emotion_forwardProp=o,Object.defineProperty(C,"toString",{value:function(){return"."+i}}),C.withComponent=function(E,h){var g=e(E,I({},n,h,{shouldForwardProp:Hy(C,h,!0)}));return g.apply(void 0,c)},C}},l7=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],rW=r7.bind(null);l7.forEach(function(e){rW[e]=rW(e)});function i7(e,t){const n=bu({key:"css",prepend:e});if(t){const a=n.insert;n.insert=(...r)=>(r[1].styles.match(/^@layer\s+[^{]*$/)||(r[1].styles=`@layer mui {${r[1].styles}}`),a(...r))}return n}const lW=new Map;function o7(e){const{injectFirst:t,enableCssLayer:n,children:a}=e,r=v.useMemo(()=>{const l=`${t}-${n}`;if(typeof document=="object"&&lW.has(l))return lW.get(l);const i=i7(t,n);return lW.set(l,i),i},[t,n]);return t||n?A.jsx(yy,{value:r,children:a}):a}function s7(e){return e==null||Object.keys(e).length===0}function _y(e){const{styles:t,defaultTheme:n={}}=e,a=typeof t=="function"?r=>t(s7(r)?n:r):t;return A.jsx(a3,{styles:a})}function iW(e,t){return rW(e,t)}const $y=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},e1=[];function Ou(e){return e1[0]=e,Ho(e1)}const p7=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:_y,StyledEngineProvider:o7,ThemeContext:Si,css:Ei,default:iW,internal_processStyles:$y,internal_serializeStyles:Ou,keyframes:Zr},Symbol.toStringTag,{value:"Module"}));function Wr(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 t1(e){if(v.isValidElement(e)||!Wr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=t1(e[n])}),t}function hn(e,t,n={clone:!0}){const a=n.clone?I({},e):e;return Wr(e)&&Wr(t)&&Object.keys(t).forEach(r=>{v.isValidElement(t[r])?a[r]=t[r]:Wr(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Wr(e[r])?a[r]=hn(e[r],t[r],n):n.clone?a[r]=Wr(t[r])?t1(t[r]):t[r]:a[r]=t[r]}),a}const u7=Object.freeze(Object.defineProperty({__proto__:null,default:hn,isPlainObject:Wr},Symbol.toStringTag,{value:"Module"})),c7=["values","unit","step"],A7=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,a)=>n.val-a.val),t.reduce((n,a)=>I({},n,{[a.key]:a.val}),{})};function n1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,r=ie(e,c7),l=A7(t),i=Object.keys(l);function o(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-a/100}${n})`}function p(d,f){const W=i.indexOf(f);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(W!==-1&&typeof t[i[W]]=="number"?t[i[W]]:f)-a/100}${n})`}function u(d){return i.indexOf(d)+1<i.length?p(d,i[i.indexOf(d)+1]):o(d)}function c(d){const f=i.indexOf(d);return f===0?o(i[1]):f===i.length-1?s(i[f]):p(d,i[i.indexOf(d)+1]).replace("@media","@media not all and")}return I({keys:i,values:l,up:o,down:s,between:p,only:u,not:c,unit:n},r)}const d7={borderRadius:4};function rs(e,t){return t?hn(e,t,{clone:!1}):e}const oW={xs:0,sm:600,md:900,lg:1200,xl:1536},a1={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oW[e]}px)`};function kn(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const l=a.breakpoints||a1;return t.reduce((i,o,s)=>(i[l.up(l.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const l=a.breakpoints||a1;return Object.keys(t).reduce((i,o)=>{if(Object.keys(l.values||oW).indexOf(o)!==-1){const s=l.up(o);i[s]=n(t[o],o)}else{const s=o;i[s]=t[s]}return i},{})}return n(t)}function r1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((a,r)=>{const l=e.up(r);return a[l]={},a},{}))||{}}function sW(e,t){return e.reduce((n,a)=>{const r=n[a];return(!r||Object.keys(r).length===0)&&delete n[a],n},t)}function f7(e,...t){const n=r1(e),a=[n,...t].reduce((r,l)=>hn(r,l),{});return sW(Object.keys(n),a)}function W7(e,t){if(typeof e!="object")return{};const n={},a=Object.keys(t);return Array.isArray(e)?a.forEach((r,l)=>{l<e.length&&(n[r]=!0)}):a.forEach(r=>{e[r]!=null&&(n[r]=!0)}),n}function xl({values:e,breakpoints:t,base:n}){const a=n||W7(e,t),r=Object.keys(a);if(r.length===0)return e;let l;return r.reduce((i,o,s)=>(Array.isArray(e)?(i[o]=e[s]!=null?e[s]:e[l],l=s):typeof e=="object"?(i[o]=e[o]!=null?e[o]:e[l],l=o):i[o]=e,i),{})}function $(e){if(typeof e!="string")throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}const g7=Object.freeze(Object.defineProperty({__proto__:null,default:$},Symbol.toStringTag,{value:"Module"}));function Pu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const a=`vars.${t}`.split(".").reduce((r,l)=>r&&r[l]?r[l]:null,e);if(a!=null)return a}return t.split(".").reduce((a,r)=>a&&a[r]!=null?a[r]:null,e)}function Ju(e,t,n,a=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||a:r=Pu(e,n)||a,t&&(r=t(r,a,e)),r}function Ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:r}=e,l=i=>{if(i[t]==null)return null;const o=i[t],s=i.theme,p=Pu(s,a)||{};return kn(i,o,c=>{let d=Ju(p,r,c);return c===d&&typeof c=="string"&&(d=Ju(p,r,`${t}${c==="default"?"":$(c)}`,c)),n===!1?d:{[n]:d}})};return l.propTypes={},l.filterProps=[t],l}function h7(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const m7={m:"margin",p:"padding"},C7={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},v7=h7(e=>{if(e.length>2)if(l1[e])e=l1[e];else return[e];const[t,n]=e.split(""),a=m7[t],r=C7[n]||"";return Array.isArray(r)?r.map(l=>a+l):[a+r]}),pW=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uW=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pW,...uW];function ls(e,t,n,a){var r;const l=(r=Pu(e,t,!1))!=null?r:n;return typeof l=="number"?i=>typeof i=="string"?i:l*i:Array.isArray(l)?i=>typeof i=="string"?i:l[i]:typeof l=="function"?l:()=>{}}function cW(e){return ls(e,"spacing",8)}function bl(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),a=e(n);return t>=0?a:typeof a=="number"?-a:`-${a}`}function y7(e,t){return n=>e.reduce((a,r)=>(a[r]=bl(t,n),a),{})}function I7(e,t,n,a){if(t.indexOf(n)===-1)return null;const r=v7(n),l=y7(r,a),i=e[n];return kn(e,i,l)}function i1(e,t){const n=cW(e.theme);return Object.keys(e).map(a=>I7(e,t,a,n)).reduce(rs,{})}function Mt(e){return i1(e,pW)}Mt.propTypes={},Mt.filterProps=pW;function Lt(e){return i1(e,uW)}Lt.propTypes={},Lt.filterProps=uW;function S7(e=8){if(e.mui)return e;const t=cW({spacing:e}),n=(...a)=>(a.length===0?[1]:a).map(l=>{const i=t(l);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Du(...e){const t=e.reduce((a,r)=>(r.filterProps.forEach(l=>{a[l]=r}),a),{}),n=a=>Object.keys(a).reduce((r,l)=>t[l]?rs(r,t[l](a)):r,{});return n.propTypes={},n.filterProps=e.reduce((a,r)=>a.concat(r.filterProps),[]),n}function ia(e){return typeof e!="number"?e:`${e}px solid`}function oa(e,t){return Ut({prop:e,themeKey:"borders",transform:t})}const E7=oa("border",ia),x7=oa("borderTop",ia),b7=oa("borderRight",ia),k7=oa("borderBottom",ia),R7=oa("borderLeft",ia),w7=oa("borderColor"),B7=oa("borderTopColor"),M7=oa("borderRightColor"),L7=oa("borderBottomColor"),Q7=oa("borderLeftColor"),V7=oa("outline",ia),U7=oa("outlineColor"),Yu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ls(e.theme,"shape.borderRadius",4),n=a=>({borderRadius:bl(t,a)});return kn(e,e.borderRadius,n)}return null};Yu.propTypes={},Yu.filterProps=["borderRadius"],Du(E7,x7,b7,k7,R7,w7,B7,M7,L7,Q7,Yu,V7,U7);const Zu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ls(e.theme,"spacing",8),n=a=>({gap:bl(t,a)});return kn(e,e.gap,n)}return null};Zu.propTypes={},Zu.filterProps=["gap"];const Nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ls(e.theme,"spacing",8),n=a=>({columnGap:bl(t,a)});return kn(e,e.columnGap,n)}return null};Nu.propTypes={},Nu.filterProps=["columnGap"];const Gu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ls(e.theme,"spacing",8),n=a=>({rowGap:bl(t,a)});return kn(e,e.rowGap,n)}return null};Gu.propTypes={},Gu.filterProps=["rowGap"];const F7=Ut({prop:"gridColumn"}),z7=Ut({prop:"gridRow"}),q7=Ut({prop:"gridAutoFlow"}),j7=Ut({prop:"gridAutoColumns"}),T7=Ut({prop:"gridAutoRows"}),K7=Ut({prop:"gridTemplateColumns"}),O7=Ut({prop:"gridTemplateRows"}),P7=Ut({prop:"gridTemplateAreas"}),J7=Ut({prop:"gridArea"});Du(Zu,Nu,Gu,F7,z7,q7,j7,T7,K7,O7,P7,J7);function Li(e,t){return t==="grey"?t:e}const D7=Ut({prop:"color",themeKey:"palette",transform:Li}),Y7=Ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Li}),Z7=Ut({prop:"backgroundColor",themeKey:"palette",transform:Li});Du(D7,Y7,Z7);function Yn(e){return e<=1&&e!==0?`${e*100}%`:e}const N7=Ut({prop:"width",transform:Yn}),AW=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,r;const l=((a=e.theme)==null||(a=a.breakpoints)==null||(a=a.values)==null?void 0:a[n])||oW[n];return l?((r=e.theme)==null||(r=r.breakpoints)==null?void 0:r.unit)!=="px"?{maxWidth:`${l}${e.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Yn(n)}};return kn(e,e.maxWidth,t)}return null};AW.filterProps=["maxWidth"];const G7=Ut({prop:"minWidth",transform:Yn}),X7=Ut({prop:"height",transform:Yn}),H7=Ut({prop:"maxHeight",transform:Yn}),_7=Ut({prop:"minHeight",transform:Yn});Ut({prop:"size",cssProperty:"width",transform:Yn}),Ut({prop:"size",cssProperty:"height",transform:Yn});const $7=Ut({prop:"boxSizing"});Du(N7,AW,G7,X7,H7,_7,$7);const is={border:{themeKey:"borders",transform:ia},borderTop:{themeKey:"borders",transform:ia},borderRight:{themeKey:"borders",transform:ia},borderBottom:{themeKey:"borders",transform:ia},borderLeft:{themeKey:"borders",transform:ia},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ia},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yu},color:{themeKey:"palette",transform:Li},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Li},backgroundColor:{themeKey:"palette",transform:Li},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Zu},rowGap:{style:Gu},columnGap:{style:Nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yn},maxWidth:{style:AW},minWidth:{transform:Yn},height:{transform:Yn},maxHeight:{transform:Yn},minHeight:{transform:Yn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function e2(...e){const t=e.reduce((a,r)=>a.concat(Object.keys(r)),[]),n=new Set(t);return e.every(a=>n.size===Object.keys(a).length)}function t2(e,t){return typeof e=="function"?e(t):e}function o1(){function e(n,a,r,l){const i={[n]:a,theme:r},o=l[n];if(!o)return{[n]:a};const{cssProperty:s=n,themeKey:p,transform:u,style:c}=o;if(a==null)return null;if(p==="typography"&&a==="inherit")return{[n]:a};const d=Pu(r,p)||{};return c?c(i):kn(i,a,W=>{let C=Ju(d,u,W);return W===C&&typeof W=="string"&&(C=Ju(d,u,`${n}${W==="default"?"":$(W)}`,W)),s===!1?C:{[s]:C}})}function t(n){var a;const{sx:r,theme:l={},nested:i}=n||{};if(!r)return null;const o=(a=l.unstable_sxConfig)!=null?a:is;function s(p){let u=p;if(typeof p=="function")u=p(l);else if(typeof p!="object")return p;if(!u)return null;const c=r1(l.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(W=>{const C=t2(u[W],l);if(C!=null)if(typeof C=="object")if(o[W])f=rs(f,e(W,C,l,o));else{const E=kn({theme:l},C,h=>({[W]:h}));e2(E,C)?f[W]=t({sx:C,theme:l,nested:!0}):f=rs(f,E)}else f=rs(f,e(W,C,l,o))}),!i&&l.modularCssLayers?{"@layer sx":sW(d,f)}:sW(d,f)}return Array.isArray(r)?r.map(s):s(r)}return t}const Qi=o1();Qi.filterProps=["sx"];function s1(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const n2=["breakpoints","palette","spacing","shape"];function os(e={},...t){const{breakpoints:n={},palette:a={},spacing:r,shape:l={}}=e,i=ie(e,n2),o=n1(n),s=S7(r);let p=hn({breakpoints:o,direction:"ltr",components:{},palette:I({mode:"light"},a),spacing:s,shape:I({},d7,l)},i);return p.applyStyles=s1,p=t.reduce((u,c)=>hn(u,c),p),p.unstable_sxConfig=I({},is,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(c){return Qi({sx:c,theme:this})},p}const a2=Object.freeze(Object.defineProperty({__proto__:null,default:os,private_createBreakpoints:n1,unstable_applyStyles:s1},Symbol.toStringTag,{value:"Module"}));function r2(e){return Object.keys(e).length===0}function Xu(e=null){const t=v.useContext(Si);return!t||r2(t)?e:t}const l2=os();function Hu(e=l2){return Xu(e)}function dW(e){const t=Ou(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function p1({styles:e,themeId:t,defaultTheme:n={}}){const a=Hu(n),r=t&&a[t]||a;let l=typeof e=="function"?e(r):e;return r.modularCssLayers&&(Array.isArray(l)?l=l.map(i=>dW(typeof i=="function"?i(r):i)):l=dW(l)),A.jsx(_y,{styles:l})}const i2=["sx"],o2=e=>{var t,n;const a={systemProps:{},otherProps:{}},r=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:is;return Object.keys(e).forEach(l=>{r[l]?a.systemProps[l]=e[l]:a.otherProps[l]=e[l]}),a};function ss(e){const{sx:t}=e,n=ie(e,i2),{systemProps:a,otherProps:r}=o2(n);let l;return Array.isArray(t)?l=[a,...t]:typeof t=="function"?l=(...i)=>{const o=t(...i);return Wr(o)?I({},a,o):a}:l=I({},a,t),I({},r,{sx:l})}const s2=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,extendSxProp:ss,unstable_createStyleFunctionSx:o1,unstable_defaultSxConfig:is},Symbol.toStringTag,{value:"Module"})),u1=e=>e,fW=(()=>{let e=u1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=u1}}})();function c1(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=c1(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function pe(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=c1(e))&&(a&&(a+=" "),a+=t);return a}const p2=["className","component"];function u2(e={}){const{themeId:t,defaultTheme:n,defaultClassName:a="MuiBox-root",generateClassName:r}=e,l=iW("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Qi);return v.forwardRef(function(s,p){const u=Hu(n),c=ss(s),{className:d,component:f="div"}=c,W=ie(c,p2);return A.jsx(l,I({as:f,ref:p,className:pe(d,r?r(a):a),theme:t&&u[t]||u},W))})}const c2={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 Ee(e,t,n="Mui"){const a=c2[t];return a?`${n}-${a}`:`${fW.generate(e)}-${t}`}function xe(e,t,n="Mui"){const a={};return t.forEach(r=>{a[r]=Ee(e,r,n)}),a}var A1={exports:{}},ft={};/**
74
74
  * @license React
75
75
  * react-is.production.js
76
76
  *
@@ -78,7 +78,7 @@ Error generating stack: `+l.message+`
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
81
- */var WW=Symbol.for("react.transitional.element"),gW=Symbol.for("react.portal"),_u=Symbol.for("react.fragment"),$u=Symbol.for("react.strict_mode"),ec=Symbol.for("react.profiler"),tc=Symbol.for("react.consumer"),nc=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),rc=Symbol.for("react.suspense"),lc=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),A2=Symbol.for("react.view_transition"),d2=Symbol.for("react.client.reference");function sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case WW:switch(e=e.type,e){case _u:case ec:case $u:case rc:case lc:case A2:return e;default:switch(e=e&&e.$$typeof,e){case nc:case ac:case oc:case ic:return e;case tc:return e;default:return t}}case gW:return t}}}dt.ContextConsumer=tc,dt.ContextProvider=nc,dt.Element=WW,dt.ForwardRef=ac,dt.Fragment=_u,dt.Lazy=oc,dt.Memo=ic,dt.Portal=gW,dt.Profiler=ec,dt.StrictMode=$u,dt.Suspense=rc,dt.SuspenseList=lc,dt.isContextConsumer=function(e){return sa(e)===tc},dt.isContextProvider=function(e){return sa(e)===nc},dt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===WW},dt.isForwardRef=function(e){return sa(e)===ac},dt.isFragment=function(e){return sa(e)===_u},dt.isLazy=function(e){return sa(e)===oc},dt.isMemo=function(e){return sa(e)===ic},dt.isPortal=function(e){return sa(e)===gW},dt.isProfiler=function(e){return sa(e)===ec},dt.isStrictMode=function(e){return sa(e)===$u},dt.isSuspense=function(e){return sa(e)===rc},dt.isSuspenseList=function(e){return sa(e)===lc},dt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_u||e===ec||e===$u||e===rc||e===lc||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===ic||e.$$typeof===nc||e.$$typeof===tc||e.$$typeof===ac||e.$$typeof===d2||e.getModuleId!==void 0)},dt.typeOf=sa,A1.exports=dt;var d1=A1.exports;const f2=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function f1(e){const t=`${e}`.match(f2);return t&&t[1]||""}function W1(e,t=""){return e.displayName||e.name||f1(e)||t}function g1(e,t,n){const a=W1(t);return e.displayName||(a!==""?`${n}(${a})`:n)}function W2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return W1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case d1.ForwardRef:return g1(e,e.render,"ForwardRef");case d1.Memo:return g1(e,e.type,"memo");default:return}}}const g2=Object.freeze(Object.defineProperty({__proto__:null,default:W2,getFunctionName:f1},Symbol.toStringTag,{value:"Module"})),h2=["ownerState"],m2=["variants"],C2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v2(e){return Object.keys(e).length===0}function y2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function h1(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const I2=os(),S2=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function sc({defaultTheme:e,theme:t,themeId:n}){return v2(t)?e:t[n]||t}function E2(e){return e?(t,n)=>n[e]:null}function pc(e,t,n){let{ownerState:a}=t,r=ie(t,h2);const l=typeof e=="function"?e(I({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(i=>pc(i,I({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:i=[]}=l;let s=ie(l,m2);return i.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props(I({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style(I({ownerState:a},r,a)):p.style;s.push(n?h1(Ou(c),n):c)}}),s}return n?h1(Ou(l),n):l}function x2(e={}){const{themeId:t,defaultTheme:n=I2,rootShouldForwardProp:a=hW,slotShouldForwardProp:r=hW}=e,l=i=>Qi(I({},i,{theme:sc(I({},i,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(i,o={})=>{$y(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=E2(S2(p))}=o,f=ie(o,C2),W=s&&s.startsWith("Mui")||p?"components":"custom",C=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,E=c||!1;let h,g=hW;p==="Root"||p==="root"?g=a:p?g=r:y2(i)&&(g=void 0);const m=iW(i,I({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||Wr(S)?k=>{const B=sc({theme:k.theme,defaultTheme:n,themeId:t});return pc(S,I({},k,{theme:B}),B.modularCssLayers?W:void 0)}:S,x=(S,...k)=>{let B=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const z=sc(I({},M,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[s]||!z.components[s].styleOverrides)return null;const F=z.components[s].styleOverrides,T={};return Object.entries(F).forEach(([U,q])=>{T[U]=pc(q,I({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!C&&V.push(M=>{var z;const F=sc(I({},M,{defaultTheme:n,themeId:t})),T=F==null||(z=F.components)==null||(z=z[s])==null?void 0:z.variants;return pc({variants:T},I({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),E||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");B=[...S,...M],B.raw=[...S.raw,...M]}const w=m(B,...V);return i.muiName&&(w.muiName=i.muiName),w};return m.withConfig&&(x.withConfig=m.withConfig),x}}const b2=x2();function ps(e,t){const n=I({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))n[a]=I({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const r=e[a]||{},l=t[a];n[a]={},!l||!Object.keys(l)?n[a]=r:!r||!Object.keys(r)?n[a]=l:(n[a]=I({},l),Object.keys(r).forEach(i=>{n[a][i]=ps(r[i],l[i])}))}else n[a]===void 0&&(n[a]=e[a])}),n}function m1(e){const{theme:t,name:n,props:a}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?a:ps(t.components[n].defaultProps,a)}function k2({props:e,name:t,defaultTheme:n,themeId:a}){let r=Hu(n);return a&&(r=r[a]||r),m1({theme:r,name:t,props:e})}const pa=typeof window<"u"?v.useLayoutEffect:v.useEffect;function R2(e,t,n,a,r){const[l,i]=v.useState(()=>r&&n?n(e).matches:a?a(e).matches:t);return pa(()=>{let o=!0;if(!n)return;const s=n(e),p=()=>{o&&i(s.matches)};return p(),s.addListener(p),()=>{o=!1,s.removeListener(p)}},[e,n]),l}const C1=v.useSyncExternalStore;function w2(e,t,n,a,r){const l=v.useCallback(()=>t,[t]),i=v.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(a!==null){const{matches:u}=a(e);return()=>u}return l},[l,e,a,r,n]),[o,s]=v.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addListener(c),()=>{u.removeListener(c)})]},[l,n,e]);return C1(s,o,i)}function mW(e,t={}){const n=Xu(),a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:o=!1}=m1({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(C1!==void 0?w2:R2)(s,r,l,i,o)}function v1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const B2=Object.freeze(Object.defineProperty({__proto__:null,default:v1},Symbol.toStringTag,{value:"Module"}));function M2(e,t=0,n=1){return v1(e,t,n)}function L2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function y1(e){if(e.type)return e;if(e.charAt(0)==="#")return y1(L2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(fr(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(fr(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}function Q2(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function Rn(e,t){return e=y1(e),t=M2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Q2(e)}function uc(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function cc(e,t=166){let n;function a(...r){const l=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(l,t)}return a.clear=()=>{clearTimeout(n)},a}function V2(e,t){return()=>null}function Ac(e,t){var n,a;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function un(e){return e&&e.ownerDocument||document}function Da(e){return un(e).defaultView||window}function U2(e,t){return()=>null}function us(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let I1=0;function F2(e){const[t,n]=v.useState(e),a=e||t;return v.useEffect(()=>{t==null&&(I1+=1,n(`mui-${I1}`))},[t]),a}const S1=bA.useId;function Nr(e){if(S1!==void 0){const t=S1();return e??t}return F2(e)}function z2(e,t,n,a,r){return null}function gr({controlled:e,default:t,name:n,state:a="value"}){const{current:r}=v.useRef(e!==void 0),[l,i]=v.useState(t),o=r?e:l,s=v.useCallback(p=>{r||i(p)},[]);return[o,s]}function wn(e){const t=v.useRef(e);return pa(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function wt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{us(n,t)})},e)}const E1={};function q2(e,t){const n=v.useRef(E1);return n.current===E1&&(n.current=e(t)),n}const j2=[];function T2(e){v.useEffect(e,j2)}class cs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Vi(){const e=q2(cs.create).current;return T2(e.disposeEffect),e}let dc=!0,CW=!1;const K2=new cs,O2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function P2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function J2(e){e.metaKey||e.altKey||e.ctrlKey||(dc=!0)}function vW(){dc=!1}function D2(){this.visibilityState==="hidden"&&CW&&(dc=!0)}function Y2(e){e.addEventListener("keydown",J2,!0),e.addEventListener("mousedown",vW,!0),e.addEventListener("pointerdown",vW,!0),e.addEventListener("touchstart",vW,!0),e.addEventListener("visibilitychange",D2,!0)}function Z2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return dc||P2(t)}function yW(){const e=v.useCallback(r=>{r!=null&&Y2(r.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(CW=!0,K2.start(100,()=>{CW=!1}),t.current=!1,!0):!1}function a(r){return Z2(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:a,onBlur:n,ref:e}}function x1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const N2=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function be(e,t,n=void 0){const a={};return Object.keys(e).forEach(r=>{a[r]=e[r].reduce((l,i)=>{if(i){const o=t(i);o!==""&&l.push(o),n&&n[i]&&l.push(n[i])}return l},[]).join(" ")}),a}function fc(e){return typeof e=="string"}function Ui(e,t,n){return e===void 0||fc(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}function b1(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{n[a]=e[a]}),n}function k1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function R1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:r,className:l}=e;if(!t){const f=pe(n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),W=I({},n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),C=I({},n,r,a);return f.length>0&&(C.className=f),Object.keys(W).length>0&&(C.style=W),{props:C,internalRef:void 0}}const i=b1(I({},r,a)),o=k1(a),s=k1(r),p=t(i),u=pe(p==null?void 0:p.className,n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),c=I({},p==null?void 0:p.style,n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),d=I({},p,n,s,o);return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:p.ref}}function w1(e,t,n){return typeof e=="function"?e(t,n):e}const G2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kl(e){var t;const{elementType:n,externalSlotProps:a,ownerState:r,skipResolvingSlotProps:l=!1}=e,i=ie(e,G2),o=l?{}:w1(a,r),{props:s,internalRef:p}=R1(I({},i,{externalSlotProps:o})),u=wt(p,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ui(n,I({},s,{ref:u}),r)}function Rl(e){if(parseInt(v.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const B1=v.createContext(null);function M1(){return v.useContext(B1)}const X2=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function H2(e,t){return typeof t=="function"?t(e):I({},e,t)}function _2(e){const{children:t,theme:n}=e,a=M1(),r=v.useMemo(()=>{const l=a===null?n:H2(a,n);return l!=null&&(l[X2]=a!==null),l},[n,a]);return A.jsx(B1.Provider,{value:r,children:t})}const $2=["value"],L1=v.createContext();function eM(e){let{value:t}=e,n=ie(e,$2);return A.jsx(L1.Provider,I({value:t??!0},n))}const Q1=()=>{const e=v.useContext(L1);return e??!1},V1=v.createContext(void 0);function tM({value:e,children:t}){return A.jsx(V1.Provider,{value:e,children:t})}function nM(e){const{theme:t,name:n,props:a}=e;if(!t||!t.components||!t.components[n])return a;const r=t.components[n];return r.defaultProps?ps(r.defaultProps,a):!r.styleOverrides&&!r.variants?ps(r,a):a}function aM({props:e,name:t}){const n=v.useContext(V1);return nM({props:e,name:t,theme:{components:n}})}function rM(e){const t=Xu(),n=Nr()||"",{modularCssLayers:a}=e;let r="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||t!==null?r="":typeof a=="string"?r=a.replace(/mui(?!\.)/g,r):r=`@layer ${r};`,pa(()=>{const l=document.querySelector("head");if(!l)return;const i=l.firstChild;if(r){var o;if(i&&(o=i.hasAttribute)!=null&&o.call(i,"data-mui-layer-order")&&i.getAttribute("data-mui-layer-order")===n)return;const p=document.createElement("style");p.setAttribute("data-mui-layer-order",n),p.textContent=r,l.prepend(p)}else{var s;(s=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||s.remove()}},[r,n]),r?A.jsx(p1,{styles:r}):null}const U1={};function F1(e,t,n,a=!1){return v.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const l=n(r),i=e?I({},t,{[e]:l}):l;return a?()=>i:i}return e?I({},t,{[e]:n}):I({},t,n)},[e,t,n,a])}function lM(e){const{children:t,theme:n,themeId:a}=e,r=Xu(U1),l=M1()||U1,i=F1(a,r,n),o=F1(a,l,n,!0),s=i.direction==="rtl",p=rM(i);return A.jsx(_2,{theme:o,children:A.jsx(Si.Provider,{value:i,children:A.jsx(eM,{value:s,children:A.jsxs(tM,{value:i==null?void 0:i.components,children:[p,t]})})})})}const iM=["component","direction","spacing","divider","children","className","useFlexGap"],oM=os(),sM=b2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function pM(e){return k2({props:e,name:"MuiStack",defaultTheme:oM})}function uM(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((a,r,l)=>(a.push(r),l<n.length-1&&a.push(v.cloneElement(t,{key:`separator-${l}`})),a),[])}const cM=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],AM=({ownerState:e,theme:t})=>{let n=I({display:"flex",flexDirection:"column"},kn({theme:t},xl({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=cW(t),r=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),l=xl({values:e.direction,base:r}),i=xl({values:e.spacing,base:r});typeof l=="object"&&Object.keys(l).forEach((s,p,u)=>{if(!l[s]){const d=p>0?l[u[p-1]]:"column";l[s]=d}}),n=hn(n,kn({theme:t},i,(s,p)=>e.useFlexGap?{gap:bl(a,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cM(p?l[p]:e.direction)}`]:bl(a,s)}}))}return n=f7(t.breakpoints,n),n};function dM(e={}){const{createStyledComponent:t=sM,useThemeProps:n=pM,componentName:a="MuiStack"}=e,r=()=>be({root:["root"]},s=>Ee(a,s),{}),l=t(AM);return v.forwardRef(function(s,p){const u=n(s),c=ss(u),{component:d="div",direction:f="column",spacing:W=0,divider:C,children:E,className:h,useFlexGap:g=!1}=c,m=ie(c,iM),y={direction:f,spacing:W,useFlexGap:g},x=r();return A.jsx(l,I({as:d,ownerState:y,ref:p,className:pe(x.root,h)},m,{children:C?uM(E,C):E}))})}function fM(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ft={},z1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(z1);var qe=z1.exports;const WM=Ua(_3),gM=Ua(B2);var q1=qe;Object.defineProperty(Ft,"__esModule",{value:!0});var mt=Ft.alpha=P1;Ft.blend=kM,Ft.colorChannel=void 0;var IW=Ft.darken=xW;Ft.decomposeColor=ua,Ft.emphasize=J1;var hM=Ft.getContrastRatio=IM;Ft.getLuminance=Wc,Ft.hexToRgb=T1,Ft.hslToRgb=O1;var SW=Ft.lighten=bW;Ft.private_safeAlpha=SM,Ft.private_safeColorChannel=void 0,Ft.private_safeDarken=EM,Ft.private_safeEmphasize=bM,Ft.private_safeLighten=xM,Ft.recomposeColor=Fi,Ft.rgbToHex=yM;var j1=q1(WM),mM=q1(gM);function EW(e,t=0,n=1){return(0,mM.default)(e,t,n)}function T1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function CM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ua(e){if(e.type)return e;if(e.charAt(0)==="#")return ua(T1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,j1.default)(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,j1.default)(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}const K1=e=>{const t=ua(e);return t.values.slice(0,3).map((n,a)=>t.type.indexOf("hsl")!==-1&&a!==0?`${n}%`:n).join(" ")};Ft.colorChannel=K1;const vM=(e,t)=>{try{return K1(e)}catch{return e}};Ft.private_safeColorChannel=vM;function Fi(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function yM(e){if(e.indexOf("#")===0)return e;const{values:t}=ua(e);return`#${t.map((n,a)=>CM(a===3?Math.round(255*n):n)).join("")}`}function O1(e){e=ua(e);const{values:t}=e,n=t[0],a=t[1]/100,r=t[2]/100,l=a*Math.min(r,1-r),i=(p,u=(p+n/30)%12)=>r-l*Math.max(Math.min(u-3,9-u,1),-1);let o="rgb";const s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(o+="a",s.push(t[3])),Fi({type:o,values:s})}function Wc(e){e=ua(e);let t=e.type==="hsl"||e.type==="hsla"?ua(O1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function IM(e,t){const n=Wc(e),a=Wc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function P1(e,t){return e=ua(e),t=EW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fi(e)}function SM(e,t,n){try{return P1(e,t)}catch{return e}}function xW(e,t){if(e=ua(e),t=EW(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fi(e)}function EM(e,t,n){try{return xW(e,t)}catch{return e}}function bW(e,t){if(e=ua(e),t=EW(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fi(e)}function xM(e,t,n){try{return bW(e,t)}catch{return e}}function J1(e,t=.15){return Wc(e)>.5?xW(e,t):bW(e,t)}function bM(e,t,n){try{return J1(e,t)}catch{return e}}function kM(e,t,n,a=1){const r=(s,p)=>Math.round((s**(1/a)*(1-n)+p**(1/a)*n)**a),l=ua(e),i=ua(t),o=[r(l.values[0],i.values[0]),r(l.values[1],i.values[1]),r(l.values[2],i.values[2])];return Fi({type:"rgb",values:o})}const RM=["mode","contrastThreshold","tonalOffset"],D1={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:ns.white,default:ns.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}},kW={text:{primary:ns.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:ns.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}};function Y1(e,t,n,a){const r=a.light||a,l=a.dark||a*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=SW(e.main,r):t==="dark"&&(e.dark=IW(e.main,l)))}function wM(e="light"){return e==="dark"?{main:Ri[200],light:Ri[50],dark:Ri[400]}:{main:Ri[700],light:Ri[400],dark:Ri[800]}}function BM(e="light"){return e==="dark"?{main:ki[200],light:ki[50],dark:ki[400]}:{main:ki[500],light:ki[300],dark:ki[700]}}function MM(e="light"){return e==="dark"?{main:bi[500],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[400],dark:bi[800]}}function LM(e="light"){return e==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:wi[700],light:wi[500],dark:wi[900]}}function QM(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[800],light:Bi[500],dark:Bi[900]}}function VM(e="light"){return e==="dark"?{main:as[400],light:as[300],dark:as[700]}:{main:"#ed6c02",light:as[500],dark:as[900]}}function UM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,r=ie(e,RM),l=e.primary||wM(t),i=e.secondary||BM(t),o=e.error||MM(t),s=e.info||LM(t),p=e.success||QM(t),u=e.warning||VM(t);function c(C){return hM(C,kW.text.primary)>=n?kW.text.primary:D1.text.primary}const d=({color:C,name:E,mainShade:h=500,lightShade:g=300,darkShade:m=700})=>{if(C=I({},C),!C.main&&C[h]&&(C.main=C[h]),!C.hasOwnProperty("main"))throw new Error(fr(11,E?` (${E})`:"",h));if(typeof C.main!="string")throw new Error(fr(12,E?` (${E})`:"",JSON.stringify(C.main)));return Y1(C,"light",g,a),Y1(C,"dark",m,a),C.contrastText||(C.contrastText=c(C.main)),C},f={dark:kW,light:D1};return hn(I({common:I({},ns),mode:t,primary:d({color:l,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:p,name:"success"}),grey:H3,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:a},f[t]),r)}const FM=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function zM(e){return Math.round(e*1e5)/1e5}const Z1={textTransform:"uppercase"},N1='"Roboto", "Helvetica", "Arial", sans-serif';function qM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:a=N1,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:p=16,allVariants:u,pxToRem:c}=n,d=ie(n,FM),f=r/14,W=c||(h=>`${h/p*f}rem`),C=(h,g,m,y,x)=>I({fontFamily:a,fontWeight:h,fontSize:W(g),lineHeight:m},a===N1?{letterSpacing:`${zM(y/g)}em`}:{},x,u),E={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(i,48,1.167,0),h4:C(i,34,1.235,.25),h5:C(i,24,1.334,0),h6:C(o,20,1.6,.15),subtitle1:C(i,16,1.75,.15),subtitle2:C(o,14,1.57,.1),body1:C(i,16,1.5,.15),body2:C(i,14,1.43,.15),button:C(o,14,1.75,.4,Z1),caption:C(i,12,1.66,.4),overline:C(i,12,2.66,1,Z1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hn(I({htmlFontSize:p,pxToRem:W,fontFamily:a,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s},E),d,{clone:!1})}const jM=.2,TM=.14,KM=.12;function Et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${TM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KM})`].join(",")}const OM=["none",Et(0,2,1,-1,0,1,1,0,0,1,3,0),Et(0,3,1,-2,0,2,2,0,0,1,5,0),Et(0,3,3,-2,0,3,4,0,0,1,8,0),Et(0,2,4,-1,0,4,5,0,0,1,10,0),Et(0,3,5,-1,0,5,8,0,0,1,14,0),Et(0,3,5,-1,0,6,10,0,0,1,18,0),Et(0,4,5,-2,0,7,10,1,0,2,16,1),Et(0,5,5,-3,0,8,10,1,0,3,14,2),Et(0,5,6,-3,0,9,12,1,0,3,16,2),Et(0,6,6,-3,0,10,14,1,0,4,18,3),Et(0,6,7,-4,0,11,15,1,0,4,20,3),Et(0,7,8,-4,0,12,17,2,0,5,22,4),Et(0,7,8,-4,0,13,19,2,0,5,24,4),Et(0,7,9,-4,0,14,21,2,0,5,26,4),Et(0,8,9,-5,0,15,22,2,0,6,28,5),Et(0,8,10,-5,0,16,24,2,0,6,30,5),Et(0,8,11,-5,0,17,26,2,0,6,32,5),Et(0,9,11,-5,0,18,28,2,0,7,34,6),Et(0,9,12,-6,0,19,29,2,0,7,36,6),Et(0,10,13,-6,0,20,31,3,0,8,38,7),Et(0,10,13,-6,0,21,33,3,0,8,40,7),Et(0,10,14,-6,0,22,35,3,0,8,42,7),Et(0,11,14,-7,0,23,36,3,0,9,44,8),Et(0,11,15,-7,0,24,38,3,0,9,46,8)],PM=["duration","easing","delay"],JM={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)"},DM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function G1(e){return`${Math.round(e)}ms`}function YM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ZM(e){const t=I({},JM,e.easing),n=I({},DM,e.duration);return I({getAutoHeightDuration:YM,create:(r=["all"],l={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:s=0}=l;return ie(l,PM),(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof i=="string"?i:G1(i)} ${o} ${typeof s=="string"?s:G1(s)}`).join(",")}},e,{easing:t,duration:n})}const NM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},GM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function RW(e={},...t){const{mixins:n={},palette:a={},transitions:r={},typography:l={}}=e,i=ie(e,GM);if(e.vars&&e.generateCssVars===void 0)throw new Error(fr(18));const o=UM(a),s=os(e);let p=hn(s,{mixins:fM(s.breakpoints,n),palette:o,shadows:OM.slice(),typography:qM(o,l),transitions:ZM(r),zIndex:I({},NM)});return p=hn(p,i),p=t.reduce((u,c)=>hn(u,c),p),p.unstable_sxConfig=I({},is,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(c){return Qi({sx:c,theme:this})},p}function XM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function HM(e){return parseFloat(e)}const wW=RW();function hr(){const e=Hu(wW);return e[Mi]||e}var As={};const _M=Ua(zB);var BW={exports:{}},X1;function H1(){return X1||(X1=1,function(e){function t(n,a){if(n==null)return{};var r={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(a.indexOf(l)!==-1)continue;r[l]=n[l]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(BW)),BW.exports}const _1=Ua(p7),$M=Ua(u7),eL=Ua(g7),tL=Ua(g2),nL=Ua(a2),aL=Ua(s2);var zi=qe;Object.defineProperty(As,"__esModule",{value:!0});var rL=As.default=hL;As.shouldForwardProp=hc,As.systemDefaultTheme=void 0;var ca=zi(_M),MW=zi(H1()),gc=cL(_1),lL=$M;zi(eL),zi(tL);var iL=zi(nL),oL=zi(aL);const sL=["ownerState"],pL=["variants"],uL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return($1=function(a){return a?n:t})(e)}function cL(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=$1(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function AL(e){return Object.keys(e).length===0}function dL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eI(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const fL=As.systemDefaultTheme=(0,iL.default)(),WL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mc({defaultTheme:e,theme:t,themeId:n}){return AL(t)?e:t[n]||t}function gL(e){return e?(t,n)=>n[e]:null}function Cc(e,t,n){let{ownerState:a}=t,r=(0,MW.default)(t,sL);const l=typeof e=="function"?e((0,ca.default)({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(i=>Cc(i,(0,ca.default)({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:i=[]}=l;let s=(0,MW.default)(l,pL);return i.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props((0,ca.default)({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style((0,ca.default)({ownerState:a},r,a)):p.style;s.push(n?eI((0,gc.internal_serializeStyles)(c),n):c)}}),s}return n?eI((0,gc.internal_serializeStyles)(l),n):l}function hL(e={}){const{themeId:t,defaultTheme:n=fL,rootShouldForwardProp:a=hc,slotShouldForwardProp:r=hc}=e,l=i=>(0,oL.default)((0,ca.default)({},i,{theme:mc((0,ca.default)({},i,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(i,o={})=>{(0,gc.internal_processStyles)(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=gL(WL(p))}=o,f=(0,MW.default)(o,uL),W=s&&s.startsWith("Mui")||p?"components":"custom",C=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,E=c||!1;let h,g=hc;p==="Root"||p==="root"?g=a:p?g=r:dL(i)&&(g=void 0);const m=(0,gc.default)(i,(0,ca.default)({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||(0,lL.isPlainObject)(S)?k=>{const B=mc({theme:k.theme,defaultTheme:n,themeId:t});return Cc(S,(0,ca.default)({},k,{theme:B}),B.modularCssLayers?W:void 0)}:S,x=(S,...k)=>{let B=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const z=mc((0,ca.default)({},M,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[s]||!z.components[s].styleOverrides)return null;const F=z.components[s].styleOverrides,T={};return Object.entries(F).forEach(([U,q])=>{T[U]=Cc(q,(0,ca.default)({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!C&&V.push(M=>{var z;const F=mc((0,ca.default)({},M,{defaultTheme:n,themeId:t})),T=F==null||(z=F.components)==null||(z=z[s])==null?void 0:z.variants;return Cc({variants:T},(0,ca.default)({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),E||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");B=[...S,...M],B.raw=[...S.raw,...M]}const w=m(B,...V);return i.muiName&&(w.muiName=i.muiName),w};return m.withConfig&&(x.withConfig=m.withConfig),x}}function tI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mn=e=>tI(e)&&e!=="classes",H=rL({themeId:Mi,defaultTheme:wW,rootShouldForwardProp:mn}),mL=["theme"];function CL(e){let{theme:t}=e,n=ie(e,mL);const a=t[Mi];let r=a||t;return typeof t!="function"&&(a&&!a.vars?r=I({},a,{vars:null}):t&&!t.vars&&(r=I({},t,{vars:null}))),A.jsx(lM,I({},n,{themeId:a?Mi:void 0,theme:r}))}const nI=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function we(e){return aM(e)}function vL(e){return Ee("MuiSvgIcon",e)}xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],IL=e=>{const{color:t,fontSize:n,classes:a}=e,r={root:["root",t!=="inherit"&&`color${$(t)}`,`fontSize${$(n)}`]};return be(r,vL,a)},SL=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,a,r,l,i,o,s,p,u,c,d,f,W;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(a=n.create)==null?void 0:a.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(i=l.pxToRem)==null?void 0:i.call(l,20))||"1.25rem",medium:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((p=e.typography)==null||(u=p.pxToRem)==null?void 0:u.call(p,35))||"2.1875rem"}[t.fontSize],color:(c=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?c:{action:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(W=(e.vars||e).palette)==null||(W=W.action)==null?void 0:W.disabled,inherit:void 0}[t.color]}}),vc=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiSvgIcon"}),{children:r,className:l,color:i="inherit",component:o="svg",fontSize:s="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=a,f=ie(a,yL),W=v.isValidElement(r)&&r.type==="svg",C=I({},a,{color:i,component:o,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:W}),E={};u||(E.viewBox=d);const h=IL(C);return A.jsxs(SL,I({as:o,className:pe(h.root,l),focusable:"false",color:p,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n},E,f,W&&r.props,{ownerState:C,children:[W?r.props.children:r,c?A.jsx("title",{children:c}):null]}))});vc.muiName="SvgIcon";function an(e,t){function n(a,r){return A.jsx(vc,I({"data-testid":`${t}Icon`,ref:r},a,{children:e}))}return n.muiName=vc.muiName,v.memo(v.forwardRef(n))}const EL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$,createChainedFunction:uc,createSvgIcon:an,debounce:cc,deprecatedPropType:V2,isMuiElement:Ac,ownerDocument:un,ownerWindow:Da,requirePropFactory:U2,setRef:us,unstable_ClassNameGenerator:{configure:e=>{fW.configure(e)}},unstable_useEnhancedEffect:pa,unstable_useId:Nr,unsupportedProp:z2,useControlled:gr,useEventCallback:wn,useForkRef:wt,useIsFocusVisible:yW},Symbol.toStringTag,{value:"Module"}));function LW(e,t){return LW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},LW(e,t)}function aI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,LW(e,t)}const rI={disabled:!1},yc=gt.createContext(null);var xL=function(t){return t.scrollTop},ds="unmounted",wl="exited",Bl="entering",qi="entered",QW="exiting",Ba=function(e){aI(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var i=r,o=i&&!i.isMounting?a.enter:a.appear,s;return l.appearStatus=null,a.in?o?(s=wl,l.appearStatus=Bl):s=qi:a.unmountOnExit||a.mountOnEnter?s=ds:s=wl,l.state={status:s},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var i=r.in;return i&&l.status===ds?{status:wl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Bl&&i!==qi&&(l=Bl):(i===Bl||i===qi)&&(l=QW)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,i,o;return l=i=o=r,r!=null&&typeof r!="number"&&(l=r.exit,i=r.enter,o=r.appear!==void 0?r.appear:i),{exit:l,enter:i,appear:o}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this);i&&xL(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wl&&this.setState({status:ds})},n.performEnter=function(r){var l=this,i=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[Wu.findDOMNode(this),o],p=s[0],u=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!r&&!i||rI.disabled){this.safeSetState({status:qi},function(){l.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:Bl},function(){l.props.onEntering(p,u),l.onTransitionEnd(d,function(){l.safeSetState({status:qi},function(){l.props.onEntered(p,u)})})})},n.performExit=function(){var r=this,l=this.props.exit,i=this.getTimeouts(),o=this.props.nodeRef?void 0:Wu.findDOMNode(this);if(!l||rI.disabled){this.safeSetState({status:wl},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:QW},function(){r.props.onExiting(o),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:wl},function(){r.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,i=!0;return this.nextCallback=function(o){i&&(i=!1,l.nextCallback=null,r(o))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var i=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!i||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],p=s[0],u=s[1];this.props.addEndListener(p,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ds)return null;var l=this.props,i=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var o=ie(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(yc.Provider,{value:null},typeof i=="function"?i(r,o):gt.cloneElement(gt.Children.only(i),o))},t}(gt.Component);Ba.contextType=yc,Ba.propTypes={};function ji(){}Ba.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ji,onEntering:ji,onEntered:ji,onExit:ji,onExiting:ji,onExited:ji},Ba.UNMOUNTED=ds,Ba.EXITED=wl,Ba.ENTERING=Bl,Ba.ENTERED=qi,Ba.EXITING=QW;function bL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VW(e,t){var n=function(l){return t&&v.isValidElement(l)?t(l):l},a=Object.create(null);return e&&v.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function kL(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var i,o={};for(var s in t){if(a[s])for(i=0;i<a[s].length;i++){var p=a[s][i];o[a[s][i]]=n(p)}o[s]=n(s)}for(i=0;i<r.length;i++)o[r[i]]=n(r[i]);return o}function Ml(e,t,n){return n[t]!=null?n[t]:e.props[t]}function RL(e,t){return VW(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ml(n,"appear",e),enter:Ml(n,"enter",e),exit:Ml(n,"exit",e)})})}function wL(e,t,n){var a=VW(e.children),r=kL(t,a);return Object.keys(r).forEach(function(l){var i=r[l];if(v.isValidElement(i)){var o=l in t,s=l in a,p=t[l],u=v.isValidElement(p)&&!p.props.in;s&&(!o||u)?r[l]=v.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ml(i,"exit",e),enter:Ml(i,"enter",e)}):!s&&o&&!u?r[l]=v.cloneElement(i,{in:!1}):s&&o&&v.isValidElement(p)&&(r[l]=v.cloneElement(i,{onExited:n.bind(null,i),in:p.props.in,exit:Ml(i,"exit",e),enter:Ml(i,"enter",e)}))}}),r}var BL=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ML={component:"div",childFactory:function(t){return t}},UW=function(e){aI(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var i=l.handleExited.bind(bL(l));return l.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,l){var i=l.children,o=l.handleExited,s=l.firstRender;return{children:s?RL(r,o):wL(r,i,o),firstRender:!1}},n.handleExited=function(r,l){var i=VW(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(o){var s=I({},o.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,l=r.component,i=r.childFactory,o=ie(r,["component","childFactory"]),s=this.state.contextValue,p=BL(this.state.children).map(i);return delete o.appear,delete o.enter,delete o.exit,l===null?gt.createElement(yc.Provider,{value:s},p):gt.createElement(yc.Provider,{value:s},gt.createElement(l,o,p))},t}(gt.Component);UW.propTypes={},UW.defaultProps=ML;const FW=e=>e.scrollTop;function Ti(e,t){var n,a;const{timeout:r,easing:l,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(a=i.transitionTimingFunction)!=null?a:typeof l=="object"?l[t.mode]:l,delay:i.transitionDelay}}function LL(e){return Ee("MuiPaper",e)}xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const QL=["className","component","elevation","square","variant"],VL=e=>{const{square:t,elevation:n,variant:a,classes:r}=e,l={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${n}`]};return be(l,LL,r)},UL=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return I({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",nI(t.elevation))}, ${mt("#fff",nI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dt=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiPaper"}),{className:r,component:l="div",elevation:i=1,square:o=!1,variant:s="elevation"}=a,p=ie(a,QL),u=I({},a,{component:l,elevation:i,square:o,variant:s}),c=VL(u);return A.jsx(UL,I({as:l,ownerState:u,className:pe(c.root,r),ref:n},p))}),FL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],zL=["component","slots","slotProps"],qL=["component"];function zW(e,t){const{className:n,elementType:a,ownerState:r,externalForwardedProps:l,getSlotOwnerState:i,internalForwardedProps:o}=t,s=ie(t,FL),{component:p,slots:u={[e]:void 0},slotProps:c={[e]:void 0}}=l,d=ie(l,zL),f=u[e]||a,W=w1(c[e],r),C=R1(I({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:W})),{props:{component:E},internalRef:h}=C,g=ie(C.props,qL),m=wt(h,W==null?void 0:W.ref,t.ref),y=i?i(g):{},x=I({},r,y),S=e==="root"?E||p:E,k=Ui(f,I({},e==="root"&&!p&&!u[e]&&o,e!=="root"&&!u[e]&&o,g,S&&{as:S},{ref:m}),x);return Object.keys(y).forEach(B=>{delete k[B]}),[f,k]}function jL(e){const{className:t,classes:n,pulsate:a=!1,rippleX:r,rippleY:l,rippleSize:i,in:o,onExited:s,timeout:p}=e,[u,c]=v.useState(!1),d=pe(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),f={width:i,height:i,top:-(i/2)+l,left:-(i/2)+r},W=pe(n.child,u&&n.childLeaving,a&&n.childPulsate);return!o&&!u&&c(!0),v.useEffect(()=>{if(!o&&s!=null){const C=setTimeout(s,p);return()=>{clearTimeout(C)}}},[s,o,p]),A.jsx("span",{className:d,style:f,children:A.jsx("span",{className:W})})}const Aa=xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),TL=["center","classes","className"];let Ic=e=>e,lI,iI,oI,sI;const qW=550,KL=80,OL=Zr(lI||(lI=Ic`
81
+ */var WW=Symbol.for("react.transitional.element"),gW=Symbol.for("react.portal"),_u=Symbol.for("react.fragment"),$u=Symbol.for("react.strict_mode"),ec=Symbol.for("react.profiler"),tc=Symbol.for("react.consumer"),nc=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),rc=Symbol.for("react.suspense"),lc=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),A2=Symbol.for("react.view_transition"),d2=Symbol.for("react.client.reference");function sa(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case WW:switch(e=e.type,e){case _u:case ec:case $u:case rc:case lc:case A2:return e;default:switch(e=e&&e.$$typeof,e){case nc:case ac:case oc:case ic:return e;case tc:return e;default:return t}}case gW:return t}}}ft.ContextConsumer=tc,ft.ContextProvider=nc,ft.Element=WW,ft.ForwardRef=ac,ft.Fragment=_u,ft.Lazy=oc,ft.Memo=ic,ft.Portal=gW,ft.Profiler=ec,ft.StrictMode=$u,ft.Suspense=rc,ft.SuspenseList=lc,ft.isContextConsumer=function(e){return sa(e)===tc},ft.isContextProvider=function(e){return sa(e)===nc},ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===WW},ft.isForwardRef=function(e){return sa(e)===ac},ft.isFragment=function(e){return sa(e)===_u},ft.isLazy=function(e){return sa(e)===oc},ft.isMemo=function(e){return sa(e)===ic},ft.isPortal=function(e){return sa(e)===gW},ft.isProfiler=function(e){return sa(e)===ec},ft.isStrictMode=function(e){return sa(e)===$u},ft.isSuspense=function(e){return sa(e)===rc},ft.isSuspenseList=function(e){return sa(e)===lc},ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_u||e===ec||e===$u||e===rc||e===lc||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===ic||e.$$typeof===nc||e.$$typeof===tc||e.$$typeof===ac||e.$$typeof===d2||e.getModuleId!==void 0)},ft.typeOf=sa,A1.exports=ft;var d1=A1.exports;const f2=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function f1(e){const t=`${e}`.match(f2);return t&&t[1]||""}function W1(e,t=""){return e.displayName||e.name||f1(e)||t}function g1(e,t,n){const a=W1(t);return e.displayName||(a!==""?`${n}(${a})`:n)}function W2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return W1(e,"Component");if(typeof e=="object")switch(e.$$typeof){case d1.ForwardRef:return g1(e,e.render,"ForwardRef");case d1.Memo:return g1(e,e.type,"memo");default:return}}}const g2=Object.freeze(Object.defineProperty({__proto__:null,default:W2,getFunctionName:f1},Symbol.toStringTag,{value:"Module"})),h2=["ownerState"],m2=["variants"],C2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function v2(e){return Object.keys(e).length===0}function y2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hW(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function h1(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const I2=os(),S2=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function sc({defaultTheme:e,theme:t,themeId:n}){return v2(t)?e:t[n]||t}function E2(e){return e?(t,n)=>n[e]:null}function pc(e,t,n){let{ownerState:a}=t,r=ie(t,h2);const l=typeof e=="function"?e(I({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(i=>pc(i,I({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:i=[]}=l;let s=ie(l,m2);return i.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props(I({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style(I({ownerState:a},r,a)):p.style;s.push(n?h1(Ou(c),n):c)}}),s}return n?h1(Ou(l),n):l}function x2(e={}){const{themeId:t,defaultTheme:n=I2,rootShouldForwardProp:a=hW,slotShouldForwardProp:r=hW}=e,l=i=>Qi(I({},i,{theme:sc(I({},i,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(i,o={})=>{$y(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=E2(S2(p))}=o,f=ie(o,C2),W=s&&s.startsWith("Mui")||p?"components":"custom",C=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,E=c||!1;let h,g=hW;p==="Root"||p==="root"?g=a:p?g=r:y2(i)&&(g=void 0);const m=iW(i,I({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||Wr(S)?k=>{const B=sc({theme:k.theme,defaultTheme:n,themeId:t});return pc(S,I({},k,{theme:B}),B.modularCssLayers?W:void 0)}:S,x=(S,...k)=>{let B=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const z=sc(I({},M,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[s]||!z.components[s].styleOverrides)return null;const F=z.components[s].styleOverrides,T={};return Object.entries(F).forEach(([U,q])=>{T[U]=pc(q,I({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!C&&V.push(M=>{var z;const F=sc(I({},M,{defaultTheme:n,themeId:t})),T=F==null||(z=F.components)==null||(z=z[s])==null?void 0:z.variants;return pc({variants:T},I({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),E||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");B=[...S,...M],B.raw=[...S.raw,...M]}const w=m(B,...V);return i.muiName&&(w.muiName=i.muiName),w};return m.withConfig&&(x.withConfig=m.withConfig),x}}const b2=x2();function ps(e,t){const n=I({},t);return Object.keys(e).forEach(a=>{if(a.toString().match(/^(components|slots)$/))n[a]=I({},e[a],n[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){const r=e[a]||{},l=t[a];n[a]={},!l||!Object.keys(l)?n[a]=r:!r||!Object.keys(r)?n[a]=l:(n[a]=I({},l),Object.keys(r).forEach(i=>{n[a][i]=ps(r[i],l[i])}))}else n[a]===void 0&&(n[a]=e[a])}),n}function m1(e){const{theme:t,name:n,props:a}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?a:ps(t.components[n].defaultProps,a)}function k2({props:e,name:t,defaultTheme:n,themeId:a}){let r=Hu(n);return a&&(r=r[a]||r),m1({theme:r,name:t,props:e})}const pa=typeof window<"u"?v.useLayoutEffect:v.useEffect;function R2(e,t,n,a,r){const[l,i]=v.useState(()=>r&&n?n(e).matches:a?a(e).matches:t);return pa(()=>{let o=!0;if(!n)return;const s=n(e),p=()=>{o&&i(s.matches)};return p(),s.addListener(p),()=>{o=!1,s.removeListener(p)}},[e,n]),l}const C1=v.useSyncExternalStore;function w2(e,t,n,a,r){const l=v.useCallback(()=>t,[t]),i=v.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(a!==null){const{matches:u}=a(e);return()=>u}return l},[l,e,a,r,n]),[o,s]=v.useMemo(()=>{if(n===null)return[l,()=>()=>{}];const u=n(e);return[()=>u.matches,c=>(u.addListener(c),()=>{u.removeListener(c)})]},[l,n,e]);return C1(s,o,i)}function mW(e,t={}){const n=Xu(),a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:r=!1,matchMedia:l=a?window.matchMedia:null,ssrMatchMedia:i=null,noSsr:o=!1}=m1({name:"MuiUseMediaQuery",props:t,theme:n});let s=typeof e=="function"?e(n):e;return s=s.replace(/^@media( ?)/m,""),(C1!==void 0?w2:R2)(s,r,l,i,o)}function v1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const B2=Object.freeze(Object.defineProperty({__proto__:null,default:v1},Symbol.toStringTag,{value:"Module"}));function M2(e,t=0,n=1){return v1(e,t,n)}function L2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function y1(e){if(e.type)return e;if(e.charAt(0)==="#")return y1(L2(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(fr(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error(fr(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}function Q2(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function Rn(e,t){return e=y1(e),t=M2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Q2(e)}function uc(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function cc(e,t=166){let n;function a(...r){const l=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(l,t)}return a.clear=()=>{clearTimeout(n)},a}function V2(e,t){return()=>null}function Ac(e,t){var n,a;return v.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(a=e.type)==null||(a=a._payload)==null||(a=a.value)==null?void 0:a.muiName)!==-1}function un(e){return e&&e.ownerDocument||document}function Da(e){return un(e).defaultView||window}function U2(e,t){return()=>null}function us(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let I1=0;function F2(e){const[t,n]=v.useState(e),a=e||t;return v.useEffect(()=>{t==null&&(I1+=1,n(`mui-${I1}`))},[t]),a}const S1=bA.useId;function Nr(e){if(S1!==void 0){const t=S1();return e??t}return F2(e)}function z2(e,t,n,a,r){return null}function gr({controlled:e,default:t,name:n,state:a="value"}){const{current:r}=v.useRef(e!==void 0),[l,i]=v.useState(t),o=r?e:l,s=v.useCallback(p=>{r||i(p)},[]);return[o,s]}function wn(e){const t=v.useRef(e);return pa(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function wt(...e){return v.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{us(n,t)})},e)}const E1={};function q2(e,t){const n=v.useRef(E1);return n.current===E1&&(n.current=e(t)),n}const j2=[];function T2(e){v.useEffect(e,j2)}class cs{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new cs}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Vi(){const e=q2(cs.create).current;return T2(e.disposeEffect),e}let dc=!0,CW=!1;const K2=new cs,O2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function P2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&O2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function J2(e){e.metaKey||e.altKey||e.ctrlKey||(dc=!0)}function vW(){dc=!1}function D2(){this.visibilityState==="hidden"&&CW&&(dc=!0)}function Y2(e){e.addEventListener("keydown",J2,!0),e.addEventListener("mousedown",vW,!0),e.addEventListener("pointerdown",vW,!0),e.addEventListener("touchstart",vW,!0),e.addEventListener("visibilitychange",D2,!0)}function Z2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return dc||P2(t)}function yW(){const e=v.useCallback(r=>{r!=null&&Y2(r.ownerDocument)},[]),t=v.useRef(!1);function n(){return t.current?(CW=!0,K2.start(100,()=>{CW=!1}),t.current=!1,!0):!1}function a(r){return Z2(r)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:a,onBlur:n,ref:e}}function x1(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const N2=e=>{const t=v.useRef({});return v.useEffect(()=>{t.current=e}),t.current};function be(e,t,n=void 0){const a={};return Object.keys(e).forEach(r=>{a[r]=e[r].reduce((l,i)=>{if(i){const o=t(i);o!==""&&l.push(o),n&&n[i]&&l.push(n[i])}return l},[]).join(" ")}),a}function fc(e){return typeof e=="string"}function Ui(e,t,n){return e===void 0||fc(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}function b1(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!t.includes(a)).forEach(a=>{n[a]=e[a]}),n}function k1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function R1(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:a,externalForwardedProps:r,className:l}=e;if(!t){const f=pe(n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),W=I({},n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),C=I({},n,r,a);return f.length>0&&(C.className=f),Object.keys(W).length>0&&(C.style=W),{props:C,internalRef:void 0}}const i=b1(I({},r,a)),o=k1(a),s=k1(r),p=t(i),u=pe(p==null?void 0:p.className,n==null?void 0:n.className,l,r==null?void 0:r.className,a==null?void 0:a.className),c=I({},p==null?void 0:p.style,n==null?void 0:n.style,r==null?void 0:r.style,a==null?void 0:a.style),d=I({},p,n,s,o);return u.length>0&&(d.className=u),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:p.ref}}function w1(e,t,n){return typeof e=="function"?e(t,n):e}const G2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function kl(e){var t;const{elementType:n,externalSlotProps:a,ownerState:r,skipResolvingSlotProps:l=!1}=e,i=ie(e,G2),o=l?{}:w1(a,r),{props:s,internalRef:p}=R1(I({},i,{externalSlotProps:o})),u=wt(p,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return Ui(n,I({},s,{ref:u}),r)}function Rl(e){if(parseInt(v.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const B1=v.createContext(null);function M1(){return v.useContext(B1)}const X2=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function H2(e,t){return typeof t=="function"?t(e):I({},e,t)}function _2(e){const{children:t,theme:n}=e,a=M1(),r=v.useMemo(()=>{const l=a===null?n:H2(a,n);return l!=null&&(l[X2]=a!==null),l},[n,a]);return A.jsx(B1.Provider,{value:r,children:t})}const $2=["value"],L1=v.createContext();function eM(e){let{value:t}=e,n=ie(e,$2);return A.jsx(L1.Provider,I({value:t??!0},n))}const Q1=()=>{const e=v.useContext(L1);return e??!1},V1=v.createContext(void 0);function tM({value:e,children:t}){return A.jsx(V1.Provider,{value:e,children:t})}function nM(e){const{theme:t,name:n,props:a}=e;if(!t||!t.components||!t.components[n])return a;const r=t.components[n];return r.defaultProps?ps(r.defaultProps,a):!r.styleOverrides&&!r.variants?ps(r,a):a}function aM({props:e,name:t}){const n=v.useContext(V1);return nM({props:e,name:t,theme:{components:n}})}function rM(e){const t=Xu(),n=Nr()||"",{modularCssLayers:a}=e;let r="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!a||t!==null?r="":typeof a=="string"?r=a.replace(/mui(?!\.)/g,r):r=`@layer ${r};`,pa(()=>{const l=document.querySelector("head");if(!l)return;const i=l.firstChild;if(r){var o;if(i&&(o=i.hasAttribute)!=null&&o.call(i,"data-mui-layer-order")&&i.getAttribute("data-mui-layer-order")===n)return;const p=document.createElement("style");p.setAttribute("data-mui-layer-order",n),p.textContent=r,l.prepend(p)}else{var s;(s=l.querySelector(`style[data-mui-layer-order="${n}"]`))==null||s.remove()}},[r,n]),r?A.jsx(p1,{styles:r}):null}const U1={};function F1(e,t,n,a=!1){return v.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const l=n(r),i=e?I({},t,{[e]:l}):l;return a?()=>i:i}return e?I({},t,{[e]:n}):I({},t,n)},[e,t,n,a])}function lM(e){const{children:t,theme:n,themeId:a}=e,r=Xu(U1),l=M1()||U1,i=F1(a,r,n),o=F1(a,l,n,!0),s=i.direction==="rtl",p=rM(i);return A.jsx(_2,{theme:o,children:A.jsx(Si.Provider,{value:i,children:A.jsx(eM,{value:s,children:A.jsxs(tM,{value:i==null?void 0:i.components,children:[p,t]})})})})}const iM=["component","direction","spacing","divider","children","className","useFlexGap"],oM=os(),sM=b2("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function pM(e){return k2({props:e,name:"MuiStack",defaultTheme:oM})}function uM(e,t){const n=v.Children.toArray(e).filter(Boolean);return n.reduce((a,r,l)=>(a.push(r),l<n.length-1&&a.push(v.cloneElement(t,{key:`separator-${l}`})),a),[])}const cM=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],AM=({ownerState:e,theme:t})=>{let n=I({display:"flex",flexDirection:"column"},kn({theme:t},xl({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=cW(t),r=Object.keys(t.breakpoints.values).reduce((s,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(s[p]=!0),s),{}),l=xl({values:e.direction,base:r}),i=xl({values:e.spacing,base:r});typeof l=="object"&&Object.keys(l).forEach((s,p,u)=>{if(!l[s]){const d=p>0?l[u[p-1]]:"column";l[s]=d}}),n=hn(n,kn({theme:t},i,(s,p)=>e.useFlexGap?{gap:bl(a,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${cM(p?l[p]:e.direction)}`]:bl(a,s)}}))}return n=f7(t.breakpoints,n),n};function dM(e={}){const{createStyledComponent:t=sM,useThemeProps:n=pM,componentName:a="MuiStack"}=e,r=()=>be({root:["root"]},s=>Ee(a,s),{}),l=t(AM);return v.forwardRef(function(s,p){const u=n(s),c=ss(u),{component:d="div",direction:f="column",spacing:W=0,divider:C,children:E,className:h,useFlexGap:g=!1}=c,m=ie(c,iM),y={direction:f,spacing:W,useFlexGap:g},x=r();return A.jsx(l,I({as:d,ownerState:y,ref:p,className:pe(x.root,h)},m,{children:C?uM(E,C):E}))})}function fM(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ft={},z1={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(z1);var qe=z1.exports;const WM=Ua(_3),gM=Ua(B2);var q1=qe;Object.defineProperty(Ft,"__esModule",{value:!0});var mt=Ft.alpha=P1;Ft.blend=kM,Ft.colorChannel=void 0;var IW=Ft.darken=xW;Ft.decomposeColor=ua,Ft.emphasize=J1;var hM=Ft.getContrastRatio=IM;Ft.getLuminance=Wc,Ft.hexToRgb=T1,Ft.hslToRgb=O1;var SW=Ft.lighten=bW;Ft.private_safeAlpha=SM,Ft.private_safeColorChannel=void 0,Ft.private_safeDarken=EM,Ft.private_safeEmphasize=bM,Ft.private_safeLighten=xM,Ft.recomposeColor=Fi,Ft.rgbToHex=yM;var j1=q1(WM),mM=q1(gM);function EW(e,t=0,n=1){return(0,mM.default)(e,t,n)}function T1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(a=>a+a)),n?`rgb${n.length===4?"a":""}(${n.map((a,r)=>r<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function CM(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function ua(e){if(e.type)return e;if(e.charAt(0)==="#")return ua(T1(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,j1.default)(9,e));let a=e.substring(t+1,e.length-1),r;if(n==="color"){if(a=a.split(" "),r=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r)===-1)throw new Error((0,j1.default)(10,r))}else a=a.split(",");return a=a.map(l=>parseFloat(l)),{type:n,values:a,colorSpace:r}}const K1=e=>{const t=ua(e);return t.values.slice(0,3).map((n,a)=>t.type.indexOf("hsl")!==-1&&a!==0?`${n}%`:n).join(" ")};Ft.colorChannel=K1;const vM=(e,t)=>{try{return K1(e)}catch{return e}};Ft.private_safeColorChannel=vM;function Fi(e){const{type:t,colorSpace:n}=e;let{values:a}=e;return t.indexOf("rgb")!==-1?a=a.map((r,l)=>l<3?parseInt(r,10):r):t.indexOf("hsl")!==-1&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),t.indexOf("color")!==-1?a=`${n} ${a.join(" ")}`:a=`${a.join(", ")}`,`${t}(${a})`}function yM(e){if(e.indexOf("#")===0)return e;const{values:t}=ua(e);return`#${t.map((n,a)=>CM(a===3?Math.round(255*n):n)).join("")}`}function O1(e){e=ua(e);const{values:t}=e,n=t[0],a=t[1]/100,r=t[2]/100,l=a*Math.min(r,1-r),i=(p,u=(p+n/30)%12)=>r-l*Math.max(Math.min(u-3,9-u,1),-1);let o="rgb";const s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(o+="a",s.push(t[3])),Fi({type:o,values:s})}function Wc(e){e=ua(e);let t=e.type==="hsl"||e.type==="hsla"?ua(O1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function IM(e,t){const n=Wc(e),a=Wc(t);return(Math.max(n,a)+.05)/(Math.min(n,a)+.05)}function P1(e,t){return e=ua(e),t=EW(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Fi(e)}function SM(e,t,n){try{return P1(e,t)}catch{return e}}function xW(e,t){if(e=ua(e),t=EW(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Fi(e)}function EM(e,t,n){try{return xW(e,t)}catch{return e}}function bW(e,t){if(e=ua(e),t=EW(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Fi(e)}function xM(e,t,n){try{return bW(e,t)}catch{return e}}function J1(e,t=.15){return Wc(e)>.5?xW(e,t):bW(e,t)}function bM(e,t,n){try{return J1(e,t)}catch{return e}}function kM(e,t,n,a=1){const r=(s,p)=>Math.round((s**(1/a)*(1-n)+p**(1/a)*n)**a),l=ua(e),i=ua(t),o=[r(l.values[0],i.values[0]),r(l.values[1],i.values[1]),r(l.values[2],i.values[2])];return Fi({type:"rgb",values:o})}const RM=["mode","contrastThreshold","tonalOffset"],D1={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:ns.white,default:ns.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}},kW={text:{primary:ns.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:ns.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}};function Y1(e,t,n,a){const r=a.light||a,l=a.dark||a*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=SW(e.main,r):t==="dark"&&(e.dark=IW(e.main,l)))}function wM(e="light"){return e==="dark"?{main:Ri[200],light:Ri[50],dark:Ri[400]}:{main:Ri[700],light:Ri[400],dark:Ri[800]}}function BM(e="light"){return e==="dark"?{main:ki[200],light:ki[50],dark:ki[400]}:{main:ki[500],light:ki[300],dark:ki[700]}}function MM(e="light"){return e==="dark"?{main:bi[500],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[400],dark:bi[800]}}function LM(e="light"){return e==="dark"?{main:wi[400],light:wi[300],dark:wi[700]}:{main:wi[700],light:wi[500],dark:wi[900]}}function QM(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[800],light:Bi[500],dark:Bi[900]}}function VM(e="light"){return e==="dark"?{main:as[400],light:as[300],dark:as[700]}:{main:"#ed6c02",light:as[500],dark:as[900]}}function UM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,r=ie(e,RM),l=e.primary||wM(t),i=e.secondary||BM(t),o=e.error||MM(t),s=e.info||LM(t),p=e.success||QM(t),u=e.warning||VM(t);function c(C){return hM(C,kW.text.primary)>=n?kW.text.primary:D1.text.primary}const d=({color:C,name:E,mainShade:h=500,lightShade:g=300,darkShade:m=700})=>{if(C=I({},C),!C.main&&C[h]&&(C.main=C[h]),!C.hasOwnProperty("main"))throw new Error(fr(11,E?` (${E})`:"",h));if(typeof C.main!="string")throw new Error(fr(12,E?` (${E})`:"",JSON.stringify(C.main)));return Y1(C,"light",g,a),Y1(C,"dark",m,a),C.contrastText||(C.contrastText=c(C.main)),C},f={dark:kW,light:D1};return hn(I({common:I({},ns),mode:t,primary:d({color:l,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:o,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:p,name:"success"}),grey:H3,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:a},f[t]),r)}const FM=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function zM(e){return Math.round(e*1e5)/1e5}const Z1={textTransform:"uppercase"},N1='"Roboto", "Helvetica", "Arial", sans-serif';function qM(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:a=N1,fontSize:r=14,fontWeightLight:l=300,fontWeightRegular:i=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:p=16,allVariants:u,pxToRem:c}=n,d=ie(n,FM),f=r/14,W=c||(h=>`${h/p*f}rem`),C=(h,g,m,y,x)=>I({fontFamily:a,fontWeight:h,fontSize:W(g),lineHeight:m},a===N1?{letterSpacing:`${zM(y/g)}em`}:{},x,u),E={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(i,48,1.167,0),h4:C(i,34,1.235,.25),h5:C(i,24,1.334,0),h6:C(o,20,1.6,.15),subtitle1:C(i,16,1.75,.15),subtitle2:C(o,14,1.57,.1),body1:C(i,16,1.5,.15),body2:C(i,14,1.43,.15),button:C(o,14,1.75,.4,Z1),caption:C(i,12,1.66,.4),overline:C(i,12,2.66,1,Z1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return hn(I({htmlFontSize:p,pxToRem:W,fontFamily:a,fontSize:r,fontWeightLight:l,fontWeightRegular:i,fontWeightMedium:o,fontWeightBold:s},E),d,{clone:!1})}const jM=.2,TM=.14,KM=.12;function Et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${jM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${TM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KM})`].join(",")}const OM=["none",Et(0,2,1,-1,0,1,1,0,0,1,3,0),Et(0,3,1,-2,0,2,2,0,0,1,5,0),Et(0,3,3,-2,0,3,4,0,0,1,8,0),Et(0,2,4,-1,0,4,5,0,0,1,10,0),Et(0,3,5,-1,0,5,8,0,0,1,14,0),Et(0,3,5,-1,0,6,10,0,0,1,18,0),Et(0,4,5,-2,0,7,10,1,0,2,16,1),Et(0,5,5,-3,0,8,10,1,0,3,14,2),Et(0,5,6,-3,0,9,12,1,0,3,16,2),Et(0,6,6,-3,0,10,14,1,0,4,18,3),Et(0,6,7,-4,0,11,15,1,0,4,20,3),Et(0,7,8,-4,0,12,17,2,0,5,22,4),Et(0,7,8,-4,0,13,19,2,0,5,24,4),Et(0,7,9,-4,0,14,21,2,0,5,26,4),Et(0,8,9,-5,0,15,22,2,0,6,28,5),Et(0,8,10,-5,0,16,24,2,0,6,30,5),Et(0,8,11,-5,0,17,26,2,0,6,32,5),Et(0,9,11,-5,0,18,28,2,0,7,34,6),Et(0,9,12,-6,0,19,29,2,0,7,36,6),Et(0,10,13,-6,0,20,31,3,0,8,38,7),Et(0,10,13,-6,0,21,33,3,0,8,40,7),Et(0,10,14,-6,0,22,35,3,0,8,42,7),Et(0,11,14,-7,0,23,36,3,0,9,44,8),Et(0,11,15,-7,0,24,38,3,0,9,46,8)],PM=["duration","easing","delay"],JM={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)"},DM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function G1(e){return`${Math.round(e)}ms`}function YM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ZM(e){const t=I({},JM,e.easing),n=I({},DM,e.duration);return I({getAutoHeightDuration:YM,create:(r=["all"],l={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:s=0}=l;return ie(l,PM),(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof i=="string"?i:G1(i)} ${o} ${typeof s=="string"?s:G1(s)}`).join(",")}},e,{easing:t,duration:n})}const NM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},GM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function RW(e={},...t){const{mixins:n={},palette:a={},transitions:r={},typography:l={}}=e,i=ie(e,GM);if(e.vars&&e.generateCssVars===void 0)throw new Error(fr(18));const o=UM(a),s=os(e);let p=hn(s,{mixins:fM(s.breakpoints,n),palette:o,shadows:OM.slice(),typography:qM(o,l),transitions:ZM(r),zIndex:I({},NM)});return p=hn(p,i),p=t.reduce((u,c)=>hn(u,c),p),p.unstable_sxConfig=I({},is,i==null?void 0:i.unstable_sxConfig),p.unstable_sx=function(c){return Qi({sx:c,theme:this})},p}function XM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function HM(e){return parseFloat(e)}const wW=RW();function hr(){const e=Hu(wW);return e[Mi]||e}var As={};const _M=Ua(zB);var BW={exports:{}},X1;function H1(){return X1||(X1=1,function(e){function t(n,a){if(n==null)return{};var r={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(a.indexOf(l)!==-1)continue;r[l]=n[l]}return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(BW)),BW.exports}const _1=Ua(p7),$M=Ua(u7),eL=Ua(g7),tL=Ua(g2),nL=Ua(a2),aL=Ua(s2);var zi=qe;Object.defineProperty(As,"__esModule",{value:!0});var rL=As.default=hL;As.shouldForwardProp=hc,As.systemDefaultTheme=void 0;var ca=zi(_M),MW=zi(H1()),gc=cL(_1),lL=$M;zi(eL),zi(tL);var iL=zi(nL),oL=zi(aL);const sL=["ownerState"],pL=["variants"],uL=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $1(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return($1=function(a){return a?n:t})(e)}function cL(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=$1(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function AL(e){return Object.keys(e).length===0}function dL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function eI(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const fL=As.systemDefaultTheme=(0,iL.default)(),WL=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function mc({defaultTheme:e,theme:t,themeId:n}){return AL(t)?e:t[n]||t}function gL(e){return e?(t,n)=>n[e]:null}function Cc(e,t,n){let{ownerState:a}=t,r=(0,MW.default)(t,sL);const l=typeof e=="function"?e((0,ca.default)({ownerState:a},r)):e;if(Array.isArray(l))return l.flatMap(i=>Cc(i,(0,ca.default)({ownerState:a},r),n));if(l&&typeof l=="object"&&Array.isArray(l.variants)){const{variants:i=[]}=l;let s=(0,MW.default)(l,pL);return i.forEach(p=>{let u=!0;if(typeof p.props=="function"?u=p.props((0,ca.default)({ownerState:a},r,a)):Object.keys(p.props).forEach(c=>{(a==null?void 0:a[c])!==p.props[c]&&r[c]!==p.props[c]&&(u=!1)}),u){Array.isArray(s)||(s=[s]);const c=typeof p.style=="function"?p.style((0,ca.default)({ownerState:a},r,a)):p.style;s.push(n?eI((0,gc.internal_serializeStyles)(c),n):c)}}),s}return n?eI((0,gc.internal_serializeStyles)(l),n):l}function hL(e={}){const{themeId:t,defaultTheme:n=fL,rootShouldForwardProp:a=hc,slotShouldForwardProp:r=hc}=e,l=i=>(0,oL.default)((0,ca.default)({},i,{theme:mc((0,ca.default)({},i,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(i,o={})=>{(0,gc.internal_processStyles)(i,S=>S.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:s,slot:p,skipVariantsResolver:u,skipSx:c,overridesResolver:d=gL(WL(p))}=o,f=(0,MW.default)(o,uL),W=s&&s.startsWith("Mui")||p?"components":"custom",C=u!==void 0?u:p&&p!=="Root"&&p!=="root"||!1,E=c||!1;let h,g=hc;p==="Root"||p==="root"?g=a:p?g=r:dL(i)&&(g=void 0);const m=(0,gc.default)(i,(0,ca.default)({shouldForwardProp:g,label:h},f)),y=S=>typeof S=="function"&&S.__emotion_real!==S||(0,lL.isPlainObject)(S)?k=>{const B=mc({theme:k.theme,defaultTheme:n,themeId:t});return Cc(S,(0,ca.default)({},k,{theme:B}),B.modularCssLayers?W:void 0)}:S,x=(S,...k)=>{let B=y(S);const V=k?k.map(y):[];s&&d&&V.push(M=>{const z=mc((0,ca.default)({},M,{defaultTheme:n,themeId:t}));if(!z.components||!z.components[s]||!z.components[s].styleOverrides)return null;const F=z.components[s].styleOverrides,T={};return Object.entries(F).forEach(([U,q])=>{T[U]=Cc(q,(0,ca.default)({},M,{theme:z}),z.modularCssLayers?"theme":void 0)}),d(M,T)}),s&&!C&&V.push(M=>{var z;const F=mc((0,ca.default)({},M,{defaultTheme:n,themeId:t})),T=F==null||(z=F.components)==null||(z=z[s])==null?void 0:z.variants;return Cc({variants:T},(0,ca.default)({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),E||V.push(l);const b=V.length-k.length;if(Array.isArray(S)&&b>0){const M=new Array(b).fill("");B=[...S,...M],B.raw=[...S.raw,...M]}const w=m(B,...V);return i.muiName&&(w.muiName=i.muiName),w};return m.withConfig&&(x.withConfig=m.withConfig),x}}function tI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const mn=e=>tI(e)&&e!=="classes",H=rL({themeId:Mi,defaultTheme:wW,rootShouldForwardProp:mn}),mL=["theme"];function CL(e){let{theme:t}=e,n=ie(e,mL);const a=t[Mi];let r=a||t;return typeof t!="function"&&(a&&!a.vars?r=I({},a,{vars:null}):t&&!t.vars&&(r=I({},t,{vars:null}))),A.jsx(lM,I({},n,{themeId:a?Mi:void 0,theme:r}))}const nI=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function we(e){return aM(e)}function vL(e){return Ee("MuiSvgIcon",e)}xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const yL=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],IL=e=>{const{color:t,fontSize:n,classes:a}=e,r={root:["root",t!=="inherit"&&`color${$(t)}`,`fontSize${$(n)}`]};return be(r,vL,a)},SL=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${$(n.color)}`],t[`fontSize${$(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,a,r,l,i,o,s,p,u,c,d,f,W;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(a=n.create)==null?void 0:a.call(n,"fill",{duration:(r=e.transitions)==null||(r=r.duration)==null?void 0:r.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(i=l.pxToRem)==null?void 0:i.call(l,20))||"1.25rem",medium:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,24))||"1.5rem",large:((p=e.typography)==null||(u=p.pxToRem)==null?void 0:u.call(p,35))||"2.1875rem"}[t.fontSize],color:(c=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?c:{action:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(W=(e.vars||e).palette)==null||(W=W.action)==null?void 0:W.disabled,inherit:void 0}[t.color]}}),vc=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiSvgIcon"}),{children:r,className:l,color:i="inherit",component:o="svg",fontSize:s="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=a,f=ie(a,yL),W=v.isValidElement(r)&&r.type==="svg",C=I({},a,{color:i,component:o,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:W}),E={};u||(E.viewBox=d);const h=IL(C);return A.jsxs(SL,I({as:o,className:pe(h.root,l),focusable:"false",color:p,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n},E,f,W&&r.props,{ownerState:C,children:[W?r.props.children:r,c?A.jsx("title",{children:c}):null]}))});vc.muiName="SvgIcon";function an(e,t){function n(a,r){return A.jsx(vc,I({"data-testid":`${t}Icon`,ref:r},a,{children:e}))}return n.muiName=vc.muiName,v.memo(v.forwardRef(n))}const EL=Object.freeze(Object.defineProperty({__proto__:null,capitalize:$,createChainedFunction:uc,createSvgIcon:an,debounce:cc,deprecatedPropType:V2,isMuiElement:Ac,ownerDocument:un,ownerWindow:Da,requirePropFactory:U2,setRef:us,unstable_ClassNameGenerator:{configure:e=>{fW.configure(e)}},unstable_useEnhancedEffect:pa,unstable_useId:Nr,unsupportedProp:z2,useControlled:gr,useEventCallback:wn,useForkRef:wt,useIsFocusVisible:yW},Symbol.toStringTag,{value:"Module"}));function LW(e,t){return LW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},LW(e,t)}function aI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,LW(e,t)}const rI={disabled:!1},yc=gt.createContext(null);var xL=function(t){return t.scrollTop},ds="unmounted",wl="exited",Bl="entering",qi="entered",QW="exiting",Ba=function(e){aI(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var i=r,o=i&&!i.isMounting?a.enter:a.appear,s;return l.appearStatus=null,a.in?o?(s=wl,l.appearStatus=Bl):s=qi:a.unmountOnExit||a.mountOnEnter?s=ds:s=wl,l.state={status:s},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var i=r.in;return i&&l.status===ds?{status:wl}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Bl&&i!==qi&&(l=Bl):(i===Bl||i===qi)&&(l=QW)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,i,o;return l=i=o=r,r!=null&&typeof r!="number"&&(l=r.exit,i=r.enter,o=r.appear!==void 0?r.appear:i),{exit:l,enter:i,appear:o}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Bl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this);i&&xL(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wl&&this.setState({status:ds})},n.performEnter=function(r){var l=this,i=this.props.enter,o=this.context?this.context.isMounting:r,s=this.props.nodeRef?[o]:[Wu.findDOMNode(this),o],p=s[0],u=s[1],c=this.getTimeouts(),d=o?c.appear:c.enter;if(!r&&!i||rI.disabled){this.safeSetState({status:qi},function(){l.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:Bl},function(){l.props.onEntering(p,u),l.onTransitionEnd(d,function(){l.safeSetState({status:qi},function(){l.props.onEntered(p,u)})})})},n.performExit=function(){var r=this,l=this.props.exit,i=this.getTimeouts(),o=this.props.nodeRef?void 0:Wu.findDOMNode(this);if(!l||rI.disabled){this.safeSetState({status:wl},function(){r.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:QW},function(){r.props.onExiting(o),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:wl},function(){r.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,i=!0;return this.nextCallback=function(o){i&&(i=!1,l.nextCallback=null,r(o))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var i=this.props.nodeRef?this.props.nodeRef.current:Wu.findDOMNode(this),o=r==null&&!this.props.addEndListener;if(!i||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],p=s[0],u=s[1];this.props.addEndListener(p,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ds)return null;var l=this.props,i=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var o=ie(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(yc.Provider,{value:null},typeof i=="function"?i(r,o):gt.cloneElement(gt.Children.only(i),o))},t}(gt.Component);Ba.contextType=yc,Ba.propTypes={};function ji(){}Ba.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ji,onEntering:ji,onEntered:ji,onExit:ji,onExiting:ji,onExited:ji},Ba.UNMOUNTED=ds,Ba.EXITED=wl,Ba.ENTERING=Bl,Ba.ENTERED=qi,Ba.EXITING=QW;function bL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VW(e,t){var n=function(l){return t&&v.isValidElement(l)?t(l):l},a=Object.create(null);return e&&v.Children.map(e,function(r){return r}).forEach(function(r){a[r.key]=n(r)}),a}function kL(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var i,o={};for(var s in t){if(a[s])for(i=0;i<a[s].length;i++){var p=a[s][i];o[a[s][i]]=n(p)}o[s]=n(s)}for(i=0;i<r.length;i++)o[r[i]]=n(r[i]);return o}function Ml(e,t,n){return n[t]!=null?n[t]:e.props[t]}function RL(e,t){return VW(e.children,function(n){return v.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ml(n,"appear",e),enter:Ml(n,"enter",e),exit:Ml(n,"exit",e)})})}function wL(e,t,n){var a=VW(e.children),r=kL(t,a);return Object.keys(r).forEach(function(l){var i=r[l];if(v.isValidElement(i)){var o=l in t,s=l in a,p=t[l],u=v.isValidElement(p)&&!p.props.in;s&&(!o||u)?r[l]=v.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ml(i,"exit",e),enter:Ml(i,"enter",e)}):!s&&o&&!u?r[l]=v.cloneElement(i,{in:!1}):s&&o&&v.isValidElement(p)&&(r[l]=v.cloneElement(i,{onExited:n.bind(null,i),in:p.props.in,exit:Ml(i,"exit",e),enter:Ml(i,"enter",e)}))}}),r}var BL=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ML={component:"div",childFactory:function(t){return t}},UW=function(e){aI(t,e);function t(a,r){var l;l=e.call(this,a,r)||this;var i=l.handleExited.bind(bL(l));return l.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,l){var i=l.children,o=l.handleExited,s=l.firstRender;return{children:s?RL(r,o):wL(r,i,o),firstRender:!1}},n.handleExited=function(r,l){var i=VW(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(o){var s=I({},o.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,l=r.component,i=r.childFactory,o=ie(r,["component","childFactory"]),s=this.state.contextValue,p=BL(this.state.children).map(i);return delete o.appear,delete o.enter,delete o.exit,l===null?gt.createElement(yc.Provider,{value:s},p):gt.createElement(yc.Provider,{value:s},gt.createElement(l,o,p))},t}(gt.Component);UW.propTypes={},UW.defaultProps=ML;const FW=e=>e.scrollTop;function Ti(e,t){var n,a;const{timeout:r,easing:l,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof r=="number"?r:r[t.mode]||0,easing:(a=i.transitionTimingFunction)!=null?a:typeof l=="object"?l[t.mode]:l,delay:i.transitionDelay}}function LL(e){return Ee("MuiPaper",e)}xe("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const QL=["className","component","elevation","square","variant"],VL=e=>{const{square:t,elevation:n,variant:a,classes:r}=e,l={root:["root",a,!t&&"rounded",a==="elevation"&&`elevation${n}`]};return be(l,LL,r)},UL=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return I({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${mt("#fff",nI(t.elevation))}, ${mt("#fff",nI(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Dt=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiPaper"}),{className:r,component:l="div",elevation:i=1,square:o=!1,variant:s="elevation"}=a,p=ie(a,QL),u=I({},a,{component:l,elevation:i,square:o,variant:s}),c=VL(u);return A.jsx(UL,I({as:l,ownerState:u,className:pe(c.root,r),ref:n},p))}),FL=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],zL=["component","slots","slotProps"],qL=["component"];function zW(e,t){const{className:n,elementType:a,ownerState:r,externalForwardedProps:l,getSlotOwnerState:i,internalForwardedProps:o}=t,s=ie(t,FL),{component:p,slots:u={[e]:void 0},slotProps:c={[e]:void 0}}=l,d=ie(l,zL),f=u[e]||a,W=w1(c[e],r),C=R1(I({className:n},s,{externalForwardedProps:e==="root"?d:void 0,externalSlotProps:W})),{props:{component:E},internalRef:h}=C,g=ie(C.props,qL),m=wt(h,W==null?void 0:W.ref,t.ref),y=i?i(g):{},x=I({},r,y),S=e==="root"?E||p:E,k=Ui(f,I({},e==="root"&&!p&&!u[e]&&o,e!=="root"&&!u[e]&&o,g,S&&{as:S},{ref:m}),x);return Object.keys(y).forEach(B=>{delete k[B]}),[f,k]}function jL(e){const{className:t,classes:n,pulsate:a=!1,rippleX:r,rippleY:l,rippleSize:i,in:o,onExited:s,timeout:p}=e,[u,c]=v.useState(!1),d=pe(t,n.ripple,n.rippleVisible,a&&n.ripplePulsate),f={width:i,height:i,top:-(i/2)+l,left:-(i/2)+r},W=pe(n.child,u&&n.childLeaving,a&&n.childPulsate);return!o&&!u&&c(!0),v.useEffect(()=>{if(!o&&s!=null){const C=setTimeout(s,p);return()=>{clearTimeout(C)}}},[s,o,p]),A.jsx("span",{className:d,style:f,children:A.jsx("span",{className:W})})}const Aa=xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),TL=["center","classes","className"];let Ic=e=>e,lI,iI,oI,sI;const qW=550,KL=80,OL=Zr(lI||(lI=Ic`
82
82
  0% {
83
83
  transform: scale(0);
84
84
  opacity: 0.1;
@@ -151,8 +151,8 @@ Error generating stack: `+l.message+`
151
151
  animation-iteration-count: infinite;
152
152
  animation-delay: 200ms;
153
153
  }
154
- `),Aa.rippleVisible,OL,qW,({theme:e})=>e.transitions.easing.easeInOut,Aa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Aa.child,Aa.childLeaving,PL,qW,({theme:e})=>e.transitions.easing.easeInOut,Aa.childPulsate,JL,({theme:e})=>e.transitions.easing.easeInOut),ZL=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:l={},className:i}=a,o=ie(a,TL),[s,p]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=v.useRef(!1),f=Vi(),W=v.useRef(null),C=v.useRef(null),E=v.useCallback(y=>{const{pulsate:x,rippleX:S,rippleY:k,rippleSize:B,cb:V}=y;p(b=>[...b,A.jsx(YL,{classes:{ripple:pe(l.ripple,Aa.ripple),rippleVisible:pe(l.rippleVisible,Aa.rippleVisible),ripplePulsate:pe(l.ripplePulsate,Aa.ripplePulsate),child:pe(l.child,Aa.child),childLeaving:pe(l.childLeaving,Aa.childLeaving),childPulsate:pe(l.childPulsate,Aa.childPulsate)},timeout:qW,pulsate:x,rippleX:S,rippleY:k,rippleSize:B},u.current)]),u.current+=1,c.current=V},[l]),h=v.useCallback((y={},x={},S=()=>{})=>{const{pulsate:k=!1,center:B=r||x.pulsate,fakeElement:V=!1}=x;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const b=V?null:C.current,w=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,z,F;if(B||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)M=Math.round(w.width/2),z=Math.round(w.height/2);else{const{clientX:T,clientY:U}=y.touches&&y.touches.length>0?y.touches[0]:y;M=Math.round(T-w.left),z=Math.round(U-w.top)}if(B)F=Math.sqrt((2*w.width**2+w.height**2)/3),F%2===0&&(F+=1);else{const T=Math.max(Math.abs((b?b.clientWidth:0)-M),M)*2+2,U=Math.max(Math.abs((b?b.clientHeight:0)-z),z)*2+2;F=Math.sqrt(T**2+U**2)}y!=null&&y.touches?W.current===null&&(W.current=()=>{E({pulsate:k,rippleX:M,rippleY:z,rippleSize:F,cb:S})},f.start(KL,()=>{W.current&&(W.current(),W.current=null)})):E({pulsate:k,rippleX:M,rippleY:z,rippleSize:F,cb:S})},[r,E,f]),g=v.useCallback(()=>{h({},{pulsate:!0})},[h]),m=v.useCallback((y,x)=>{if(f.clear(),(y==null?void 0:y.type)==="touchend"&&W.current){W.current(),W.current=null,f.start(0,()=>{m(y,x)});return}W.current=null,p(S=>S.length>0?S.slice(1):S),c.current=x},[f]);return v.useImperativeHandle(n,()=>({pulsate:g,start:h,stop:m}),[g,h,m]),A.jsx(DL,I({className:pe(Aa.root,l.root,i),ref:C},o,{children:A.jsx(UW,{component:null,exit:!0,children:s})}))});function NL(e){return Ee("MuiButtonBase",e)}const GL=xe("MuiButtonBase",["root","disabled","focusVisible"]),XL=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],HL=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:a,classes:r}=e,i=be({root:["root",t&&"disabled",n&&"focusVisible"]},NL,r);return n&&a&&(i.root+=` ${a}`),i},_L=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ki=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:l=!1,children:i,className:o,component:s="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:W,onClick:C,onContextMenu:E,onDragLeave:h,onFocus:g,onFocusVisible:m,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:k,onMouseUp:B,onTouchEnd:V,onTouchMove:b,onTouchStart:w,tabIndex:M=0,TouchRippleProps:z,touchRippleRef:F,type:T}=a,U=ie(a,XL),q=v.useRef(null),Q=v.useRef(null),K=wt(Q,F),{isFocusVisibleRef:R,onFocus:X,onBlur:G,ref:L}=yW(),[te,re]=v.useState(!1);p&&te&&re(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),q.current.focus()}}),[]);const[oe,ve]=v.useState(!1);v.useEffect(()=>{ve(!0)},[]);const fe=oe&&!u&&!p;v.useEffect(()=>{te&&d&&!u&&oe&&Q.current.pulsate()},[u,d,te,oe]);function he(Y,de,je=c){return wn(Xe=>(de&&de(Xe),!je&&Q.current&&Q.current[Y](Xe),!0))}const ze=he("start",S),_=he("stop",E),ee=he("stop",h),ge=he("stop",B),Ce=he("stop",Y=>{te&&Y.preventDefault(),k&&k(Y)}),se=he("start",w),ue=he("stop",V),Te=he("stop",b),ne=he("stop",Y=>{G(Y),R.current===!1&&re(!1),W&&W(Y)},!1),Le=wn(Y=>{q.current||(q.current=Y.currentTarget),X(Y),R.current===!0&&(re(!0),m&&m(Y)),g&&g(Y)}),Me=()=>{const Y=q.current;return s&&s!=="button"&&!(Y.tagName==="A"&&Y.href)},ye=v.useRef(!1),De=wn(Y=>{d&&!ye.current&&te&&Q.current&&Y.key===" "&&(ye.current=!0,Q.current.stop(Y,()=>{Q.current.start(Y)})),Y.target===Y.currentTarget&&Me()&&Y.key===" "&&Y.preventDefault(),y&&y(Y),Y.target===Y.currentTarget&&Me()&&Y.key==="Enter"&&!p&&(Y.preventDefault(),C&&C(Y))}),Qe=wn(Y=>{d&&Y.key===" "&&Q.current&&te&&!Y.defaultPrevented&&(ye.current=!1,Q.current.stop(Y,()=>{Q.current.pulsate(Y)})),x&&x(Y),C&&Y.target===Y.currentTarget&&Me()&&Y.key===" "&&!Y.defaultPrevented&&C(Y)});let Fe=s;Fe==="button"&&(U.href||U.to)&&(Fe=f);const P={};Fe==="button"?(P.type=T===void 0?"button":T,P.disabled=p):(!U.href&&!U.to&&(P.role="button"),p&&(P["aria-disabled"]=p));const j=wt(n,L,q),O=I({},a,{centerRipple:l,component:s,disabled:p,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:te}),Z=HL(O);return A.jsxs(_L,I({as:Fe,className:pe(Z.root,o),ownerState:O,onBlur:ne,onClick:C,onContextMenu:_,onFocus:Le,onKeyDown:De,onKeyUp:Qe,onMouseDown:ze,onMouseLeave:Ce,onMouseUp:ge,onDragLeave:ee,onTouchEnd:ue,onTouchMove:Te,onTouchStart:se,ref:j,tabIndex:p?-1:M,type:T},P,U,{children:[i,fe?A.jsx(ZL,I({ref:K,center:l},z)):null]}))});function $L(e){return Ee("MuiAlert",e)}const pI=xe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function eQ(e){return Ee("MuiIconButton",e)}const tQ=xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nQ=["edge","children","className","color","disabled","disableFocusRipple","size"],aQ=e=>{const{classes:t,disabled:n,color:a,edge:r,size:l}=e,i={root:["root",n&&"disabled",a!=="default"&&`color${$(a)}`,r&&`edge${$(r)}`,`size${$(l)}`]};return be(i,eQ,t)},rQ=H(Ki,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],n.edge&&t[`edge${$(n.edge)}`],t[`size${$(n.size)}`]]}})(({theme:e,ownerState:t})=>I({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const a=(n=(e.vars||e).palette)==null?void 0:n[t.color];return I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:a==null?void 0:a.main},!t.disableRipple&&{"&:hover":I({},a&&{backgroundColor:e.vars?`rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(a.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${tQ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),da=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiIconButton"}),{edge:r=!1,children:l,className:i,color:o="default",disabled:s=!1,disableFocusRipple:p=!1,size:u="medium"}=a,c=ie(a,nQ),d=I({},a,{edge:r,color:o,disabled:s,disableFocusRipple:p,size:u}),f=aQ(d);return A.jsx(rQ,I({className:pe(f.root,i),centerRipple:!0,focusRipple:!p,disabled:s,ref:n},c,{ownerState:d,children:l}))}),lQ=an(A.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iQ=an(A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),oQ=an(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sQ=an(A.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uI=an(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),pQ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uQ=e=>{const{variant:t,color:n,severity:a,classes:r}=e,l={root:["root",`color${$(n||a)}`,`${t}${$(n||a)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return be(l,$L,r)},cQ=H(Dt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?IW:SW,n=e.palette.mode==="light"?SW:IW;return I({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:n(e.palette[a].light,.9),[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.dark).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:I({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)})}))]})}),AQ=H("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),dQ=H("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cI=H("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),AI={success:A.jsx(lQ,{fontSize:"inherit"}),warning:A.jsx(iQ,{fontSize:"inherit"}),error:A.jsx(oQ,{fontSize:"inherit"}),info:A.jsx(sQ,{fontSize:"inherit"})},jW=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAlert"}),{action:r,children:l,className:i,closeText:o="Close",color:s,components:p={},componentsProps:u={},icon:c,iconMapping:d=AI,onClose:f,role:W="alert",severity:C="success",slotProps:E={},slots:h={},variant:g="standard"}=a,m=ie(a,pQ),y=I({},a,{color:s,severity:C,variant:g,colorSeverity:s||C}),x=uQ(y),S={slots:I({closeButton:p.CloseButton,closeIcon:p.CloseIcon},h),slotProps:I({},u,E)},[k,B]=zW("closeButton",{elementType:da,externalForwardedProps:S,ownerState:y}),[V,b]=zW("closeIcon",{elementType:uI,externalForwardedProps:S,ownerState:y});return A.jsxs(cQ,I({role:W,elevation:0,ownerState:y,className:pe(x.root,i),ref:n},m,{children:[c!==!1?A.jsx(AQ,{ownerState:y,className:x.icon,children:c||d[C]||AI[C]}):null,A.jsx(dQ,{ownerState:y,className:x.message,children:l}),r!=null?A.jsx(cI,{ownerState:y,className:x.action,children:r}):null,r==null&&f?A.jsx(cI,{ownerState:y,className:x.action,children:A.jsx(k,I({size:"small","aria-label":o,title:o,color:"inherit",onClick:f},B,{children:A.jsx(V,I({fontSize:"small"},b))}))}):null]}))});function fQ(e){return Ee("MuiTypography",e)}xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const WQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gQ=e=>{const{align:t,gutterBottom:n,noWrap:a,paragraph:r,variant:l,classes:i}=e,o={root:["root",l,e.align!=="inherit"&&`align${$(t)}`,n&&"gutterBottom",a&&"noWrap",r&&"paragraph"]};return be(o,fQ,i)},hQ=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${$(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),dI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CQ=e=>mQ[e]||e,We=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTypography"}),r=CQ(a.color),l=ss(I({},a,{color:r})),{align:i="inherit",className:o,component:s,gutterBottom:p=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=dI}=l,W=ie(l,WQ),C=I({},l,{align:i,color:r,className:o,component:s,gutterBottom:p,noWrap:u,paragraph:c,variant:d,variantMapping:f}),E=s||(c?"p":f[d]||dI[d])||"span",h=gQ(C);return A.jsx(hQ,I({as:E,ref:n,ownerState:C,className:pe(h.root,o)},W))});function vQ(e){return Ee("MuiAppBar",e)}xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yQ=["className","color","enableColorOnDark","position"],IQ=e=>{const{color:t,position:n,classes:a}=e,r={root:["root",`color${$(t)}`,`position${$(n)}`]};return be(r,vQ,a)},Sc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,SQ=H(Dt,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&I({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Sc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Sc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Sc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Sc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),EQ=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAppBar"}),{className:r,color:l="primary",enableColorOnDark:i=!1,position:o="fixed"}=a,s=ie(a,yQ),p=I({},a,{color:l,position:o,enableColorOnDark:i}),u=IQ(p);return A.jsx(SQ,I({square:!0,component:"header",ownerState:p,elevation:4,className:pe(u.root,r,o==="fixed"&&"mui-fixed"),ref:n},s))});function fI(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function xQ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:a,matchFrom:r="any",stringify:l,trim:i=!1}=e;return(o,{inputValue:s,getOptionLabel:p})=>{let u=i?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=fI(u));const c=u?o.filter(d=>{let f=(l||p)(d);return n&&(f=f.toLowerCase()),t&&(f=fI(f)),r==="start"?f.indexOf(u)===0:f.indexOf(u)>-1}):o;return typeof a=="number"?c.slice(0,a):c}}function Ec(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const bQ=xQ(),WI=5,kQ=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},RQ=[];function wQ(e){const{unstable_isActiveElementInListbox:t=kQ,unstable_classNamePrefix:n="Mui",autoComplete:a=!1,autoHighlight:r=!1,autoSelect:l=!1,blurOnSelect:i=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:s=!1,componentName:p="useAutocomplete",defaultValue:u=e.multiple?RQ:null,disableClearable:c=!1,disableCloseOnSelect:d=!1,disabled:f,disabledItemsFocusable:W=!1,disableListWrap:C=!1,filterOptions:E=bQ,filterSelectedOptions:h=!1,freeSolo:g=!1,getOptionDisabled:m,getOptionKey:y,getOptionLabel:x=N=>{var J;return(J=N.label)!=null?J:N},groupBy:S,handleHomeEndKeys:k=!e.freeSolo,id:B,includeInputInList:V=!1,inputValue:b,isOptionEqualToValue:w=(N,J)=>N===J,multiple:M=!1,onChange:z,onClose:F,onHighlightChange:T,onInputChange:U,onOpen:q,open:Q,openOnFocus:K=!1,options:R,readOnly:X=!1,selectOnFocus:G=!e.freeSolo,value:L}=e,te=Nr(B);let re=x;re=N=>{const J=x(N);return typeof J!="string"?String(J):J};const oe=v.useRef(!1),ve=v.useRef(!0),fe=v.useRef(null),he=v.useRef(null),[ze,_]=v.useState(null),[ee,ge]=v.useState(-1),Ce=r?0:-1,se=v.useRef(Ce),[ue,Te]=gr({controlled:L,default:u,name:p}),[ne,Le]=gr({controlled:b,default:"",name:p,state:"inputValue"}),[Me,ye]=v.useState(!1),De=v.useCallback((N,J)=>{if(!(M?ue.length<J.length:J!==null)&&!o)return;let Se;if(M)Se="";else if(J==null)Se="";else{const Ne=re(J);Se=typeof Ne=="string"?Ne:""}ne!==Se&&(Le(Se),U&&U(N,Se,"reset"))},[re,ne,M,U,Le,o,ue]),[Qe,Fe]=gr({controlled:Q,default:!1,name:p,state:"open"}),[P,j]=v.useState(!0),O=!M&&ue!=null&&ne===re(ue),Z=Qe&&!X,Y=Z?E(R.filter(N=>!(h&&(M?ue:[ue]).some(J=>J!==null&&w(N,J)))),{inputValue:O&&P?"":ne,getOptionLabel:re}):[],de=N2({filteredOptions:Y,value:ue,inputValue:ne});v.useEffect(()=>{const N=ue!==de.value;Me&&!N||g&&!N||De(null,ue)},[ue,De,Me,de.value,g]);const je=Qe&&Y.length>0&&!X,Xe=wn(N=>{N===-1?fe.current.focus():ze.querySelector(`[data-tag-index="${N}"]`).focus()});v.useEffect(()=>{M&&ee>ue.length-1&&(ge(-1),Xe(-1))},[ue,M,ee,Xe]);function ce(N,J){if(!he.current||N<0||N>=Y.length)return-1;let Ae=N;for(;;){const Se=he.current.querySelector(`[data-option-index="${Ae}"]`),Ne=W?!1:!Se||Se.disabled||Se.getAttribute("aria-disabled")==="true";if(Se&&Se.hasAttribute("tabindex")&&!Ne)return Ae;if(J==="next"?Ae=(Ae+1)%Y.length:Ae=(Ae-1+Y.length)%Y.length,Ae===N)return-1}}const Re=wn(({event:N,index:J,reason:Ae="auto"})=>{if(se.current=J,J===-1?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant",`${te}-option-${J}`),T&&T(N,J===-1?null:Y[J],Ae),!he.current)return;const Se=he.current.querySelector(`[role="option"].${n}-focused`);Se&&(Se.classList.remove(`${n}-focused`),Se.classList.remove(`${n}-focusVisible`));let Ne=he.current;if(he.current.getAttribute("role")!=="listbox"&&(Ne=he.current.parentElement.querySelector('[role="listbox"]')),!Ne)return;if(J===-1){Ne.scrollTop=0;return}const Ie=he.current.querySelector(`[data-option-index="${J}"]`);if(Ie&&(Ie.classList.add(`${n}-focused`),Ae==="keyboard"&&Ie.classList.add(`${n}-focusVisible`),Ne.scrollHeight>Ne.clientHeight&&Ae!=="mouse"&&Ae!=="touch")){const et=Ie,nr=Ne.clientHeight+Ne.scrollTop,zk=et.offsetTop+et.offsetHeight;zk>nr?Ne.scrollTop=zk-Ne.clientHeight:et.offsetTop-et.offsetHeight*(S?1.3:0)<Ne.scrollTop&&(Ne.scrollTop=et.offsetTop-et.offsetHeight*(S?1.3:0))}}),Ve=wn(({event:N,diff:J,direction:Ae="next",reason:Se="auto"})=>{if(!Z)return;const Ie=ce((()=>{const et=Y.length-1;if(J==="reset")return Ce;if(J==="start")return 0;if(J==="end")return et;const nr=se.current+J;return nr<0?nr===-1&&V?-1:C&&se.current!==-1||Math.abs(J)>1?0:et:nr>et?nr===et+1&&V?-1:C||Math.abs(J)>1?et:0:nr})(),Ae);if(Re({index:Ie,reason:Se,event:N}),a&&J!=="reset")if(Ie===-1)fe.current.value=ne;else{const et=re(Y[Ie]);fe.current.value=et,et.toLowerCase().indexOf(ne.toLowerCase())===0&&ne.length>0&&fe.current.setSelectionRange(ne.length,et.length)}}),Pe=()=>{const N=(J,Ae)=>{const Se=J?re(J):"",Ne=Ae?re(Ae):"";return Se===Ne};if(se.current!==-1&&de.filteredOptions&&de.filteredOptions.length!==Y.length&&de.inputValue===ne&&(M?ue.length===de.value.length&&de.value.every((J,Ae)=>re(ue[Ae])===re(J)):N(de.value,ue))){const J=de.filteredOptions[se.current];if(J)return Ec(Y,Ae=>re(Ae)===re(J))}return-1},Ye=v.useCallback(()=>{if(!Z)return;const N=Pe();if(N!==-1){se.current=N;return}const J=M?ue[0]:ue;if(Y.length===0||J==null){Ve({diff:"reset"});return}if(he.current){if(J!=null){const Ae=Y[se.current];if(M&&Ae&&Ec(ue,Ne=>w(Ae,Ne))!==-1)return;const Se=Ec(Y,Ne=>w(Ne,J));Se===-1?Ve({diff:"reset"}):Re({index:Se});return}if(se.current>=Y.length-1){Re({index:Y.length-1});return}Re({index:se.current})}},[Y.length,M?!1:ue,h,Ve,Re,Z,ne,M]),Wt=wn(N=>{us(he,N),N&&Ye()});v.useEffect(()=>{Ye()},[Ye]);const $e=N=>{Qe||(Fe(!0),j(!0),q&&q(N))},Ze=(N,J)=>{Qe&&(Fe(!1),F&&F(N,J))},ot=(N,J,Ae,Se)=>{if(M){if(ue.length===J.length&&ue.every((Ne,Ie)=>Ne===J[Ie]))return}else if(ue===J)return;z&&z(N,J,Ae,Se),Te(J)},Ht=v.useRef(!1),ke=(N,J,Ae="selectOption",Se="options")=>{let Ne=Ae,Ie=J;if(M){Ie=Array.isArray(ue)?ue.slice():[];const et=Ec(Ie,nr=>w(J,nr));et===-1?Ie.push(J):Se!=="freeSolo"&&(Ie.splice(et,1),Ne="removeOption")}De(N,Ie),ot(N,Ie,Ne,{option:J}),!d&&(!N||!N.ctrlKey&&!N.metaKey)&&Ze(N,Ne),(i===!0||i==="touch"&&Ht.current||i==="mouse"&&!Ht.current)&&fe.current.blur()};function Ot(N,J){if(N===-1)return-1;let Ae=N;for(;;){if(J==="next"&&Ae===ue.length||J==="previous"&&Ae===-1)return-1;const Se=ze.querySelector(`[data-tag-index="${Ae}"]`);if(!Se||!Se.hasAttribute("tabindex")||Se.disabled||Se.getAttribute("aria-disabled")==="true")Ae+=J==="next"?1:-1;else return Ae}}const it=(N,J)=>{if(!M)return;ne===""&&Ze(N,"toggleInput");let Ae=ee;ee===-1?ne===""&&J==="previous"&&(Ae=ue.length-1):(Ae+=J==="next"?1:-1,Ae<0&&(Ae=0),Ae===ue.length&&(Ae=-1)),Ae=Ot(Ae,J),ge(Ae),Xe(Ae)},zt=N=>{oe.current=!0,Le(""),U&&U(N,"","clear"),ot(N,M?[]:null,"clear")},_t=N=>J=>{if(N.onKeyDown&&N.onKeyDown(J),!J.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(J.key)===-1&&(ge(-1),Xe(-1)),J.which!==229))switch(J.key){case"Home":Z&&k&&(J.preventDefault(),Ve({diff:"start",direction:"next",reason:"keyboard",event:J}));break;case"End":Z&&k&&(J.preventDefault(),Ve({diff:"end",direction:"previous",reason:"keyboard",event:J}));break;case"PageUp":J.preventDefault(),Ve({diff:-WI,direction:"previous",reason:"keyboard",event:J}),$e(J);break;case"PageDown":J.preventDefault(),Ve({diff:WI,direction:"next",reason:"keyboard",event:J}),$e(J);break;case"ArrowDown":J.preventDefault(),Ve({diff:1,direction:"next",reason:"keyboard",event:J}),$e(J);break;case"ArrowUp":J.preventDefault(),Ve({diff:-1,direction:"previous",reason:"keyboard",event:J}),$e(J);break;case"ArrowLeft":it(J,"previous");break;case"ArrowRight":it(J,"next");break;case"Enter":if(se.current!==-1&&Z){const Ae=Y[se.current],Se=m?m(Ae):!1;if(J.preventDefault(),Se)return;ke(J,Ae,"selectOption"),a&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else g&&ne!==""&&O===!1&&(M&&J.preventDefault(),ke(J,ne,"createOption","freeSolo"));break;case"Escape":Z?(J.preventDefault(),J.stopPropagation(),Ze(J,"escape")):s&&(ne!==""||M&&ue.length>0)&&(J.preventDefault(),J.stopPropagation(),zt(J));break;case"Backspace":if(M&&!X&&ne===""&&ue.length>0){const Ae=ee===-1?ue.length-1:ee,Se=ue.slice();Se.splice(Ae,1),ot(J,Se,"removeOption",{option:ue[Ae]})}break;case"Delete":if(M&&!X&&ne===""&&ue.length>0&&ee!==-1){const Ae=ee,Se=ue.slice();Se.splice(Ae,1),ot(J,Se,"removeOption",{option:ue[Ae]})}break}},Pl=N=>{ye(!0),K&&!oe.current&&$e(N)},ya=N=>{if(t(he)){fe.current.focus();return}ye(!1),ve.current=!0,oe.current=!1,l&&se.current!==-1&&Z?ke(N,Y[se.current],"blur"):l&&g&&ne!==""?ke(N,ne,"blur","freeSolo"):o&&De(N,ue),Ze(N,"blur")},Qt=N=>{const J=N.target.value;ne!==J&&(Le(J),j(!1),U&&U(N,J,"input")),J===""?!c&&!M&&ot(N,null,"clear"):$e(N)},xt=N=>{const J=Number(N.currentTarget.getAttribute("data-option-index"));se.current!==J&&Re({event:N,index:J,reason:"mouse"})},vn=N=>{Re({event:N,index:Number(N.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ht.current=!0},Un=N=>{const J=Number(N.currentTarget.getAttribute("data-option-index"));ke(N,Y[J],"selectOption"),Ht.current=!1},Er=N=>J=>{const Ae=ue.slice();Ae.splice(N,1),ot(J,Ae,"removeOption",{option:ue[N]})},_s=N=>{Qe?Ze(N,"toggleInput"):$e(N)},xr=N=>{N.currentTarget.contains(N.target)&&N.target.getAttribute("id")!==te&&N.preventDefault()},il=N=>{N.currentTarget.contains(N.target)&&(fe.current.focus(),G&&ve.current&&fe.current.selectionEnd-fe.current.selectionStart===0&&fe.current.select(),ve.current=!1)},ol=N=>{!f&&(ne===""||!Qe)&&_s(N)};let tr=g&&ne.length>0;tr=tr||(M?ue.length>0:ue!==null);let br=Y;return S&&(br=Y.reduce((N,J,Ae)=>{const Se=S(J);return N.length>0&&N[N.length-1].group===Se?N[N.length-1].options.push(J):N.push({key:Ae,index:Ae,group:Se,options:[J]}),N},[])),f&&Me&&ya(),{getRootProps:(N={})=>I({"aria-owns":je?`${te}-listbox`:null},N,{onKeyDown:_t(N),onMouseDown:xr,onClick:il}),getInputLabelProps:()=>({id:`${te}-label`,htmlFor:te}),getInputProps:()=>({id:te,value:ne,onBlur:ya,onFocus:Pl,onChange:Qt,onMouseDown:ol,"aria-activedescendant":Z?"":null,"aria-autocomplete":a?"both":"list","aria-controls":je?`${te}-listbox`:void 0,"aria-expanded":je,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:zt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:_s}),getTagProps:({index:N})=>I({key:N,"data-tag-index":N,tabIndex:-1},!X&&{onDelete:Er(N)}),getListboxProps:()=>({role:"listbox",id:`${te}-listbox`,"aria-labelledby":`${te}-label`,ref:Wt,onMouseDown:N=>{N.preventDefault()}}),getOptionProps:({index:N,option:J})=>{var Ae;const Se=(M?ue:[ue]).some(Ie=>Ie!=null&&w(J,Ie)),Ne=m?m(J):!1;return{key:(Ae=y==null?void 0:y(J))!=null?Ae:re(J),tabIndex:-1,role:"option",id:`${te}-option-${N}`,onMouseMove:xt,onClick:Un,onTouchStart:vn,"data-option-index":N,"aria-disabled":Ne,"aria-selected":Se}},id:te,inputValue:ne,value:ue,dirty:tr,expanded:Z&&ze,popupOpen:Z,focused:Me||ee!==-1,anchorEl:ze,setAnchorEl:_,focusedTag:ee,groupedOptions:br}}var TW={};Object.defineProperty(TW,"__esModule",{value:!0});var gI=TW.default=void 0,BQ=LQ(v),MQ=_1;function hI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hI=function(a){return a?n:t})(e)}function LQ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hI(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function QQ(e){return Object.keys(e).length===0}function VQ(e=null){const t=BQ.useContext(MQ.ThemeContext);return!t||QQ(t)?e:t}gI=TW.default=VQ;var Bn="top",fa="bottom",Wa="right",Mn="left",KW="auto",fs=[Bn,fa,Wa,Mn],Oi="start",Ws="end",UQ="clippingParents",mI="viewport",gs="popper",FQ="reference",CI=fs.reduce(function(e,t){return e.concat([t+"-"+Oi,t+"-"+Ws])},[]),vI=[].concat(fs,[KW]).reduce(function(e,t){return e.concat([t,t+"-"+Oi,t+"-"+Ws])},[]),zQ="beforeRead",qQ="read",jQ="afterRead",TQ="beforeMain",KQ="main",OQ="afterMain",PQ="beforeWrite",JQ="write",DQ="afterWrite",YQ=[zQ,qQ,jQ,TQ,KQ,OQ,PQ,JQ,DQ];function Ya(e){return e?(e.nodeName||"").toLowerCase():null}function Zn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ll(e){var t=Zn(e).Element;return e instanceof t||e instanceof Element}function ga(e){var t=Zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function OW(e){if(typeof ShadowRoot>"u")return!1;var t=Zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZQ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},l=t.elements[n];!ga(l)||!Ya(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(i){var o=r[i];o===!1?l.removeAttribute(i):l.setAttribute(i,o===!0?"":o)}))})}function NQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],l=t.attributes[a]||{},i=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),o=i.reduce(function(s,p){return s[p]="",s},{});!ga(r)||!Ya(r)||(Object.assign(r.style,o),Object.keys(l).forEach(function(s){r.removeAttribute(s)}))})}}const GQ={name:"applyStyles",enabled:!0,phase:"write",fn:ZQ,effect:NQ,requires:["computeStyles"]};function Za(e){return e.split("-")[0]}var Ql=Math.max,xc=Math.min,Pi=Math.round;function PW(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yI(){return!/^((?!chrome|android).)*safari/i.test(PW())}function Ji(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,l=1;t&&ga(e)&&(r=e.offsetWidth>0&&Pi(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Pi(a.height)/e.offsetHeight||1);var i=Ll(e)?Zn(e):window,o=i.visualViewport,s=!yI()&&n,p=(a.left+(s&&o?o.offsetLeft:0))/r,u=(a.top+(s&&o?o.offsetTop:0))/l,c=a.width/r,d=a.height/l;return{width:c,height:d,top:u,right:p+c,bottom:u+d,left:p,x:p,y:u}}function JW(e){var t=Ji(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function II(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&OW(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function mr(e){return Zn(e).getComputedStyle(e)}function XQ(e){return["table","td","th"].indexOf(Ya(e))>=0}function Gr(e){return((Ll(e)?e.ownerDocument:e.document)||window.document).documentElement}function bc(e){return Ya(e)==="html"?e:e.assignedSlot||e.parentNode||(OW(e)?e.host:null)||Gr(e)}function SI(e){return!ga(e)||mr(e).position==="fixed"?null:e.offsetParent}function HQ(e){var t=/firefox/i.test(PW()),n=/Trident/i.test(PW());if(n&&ga(e)){var a=mr(e);if(a.position==="fixed")return null}var r=bc(e);for(OW(r)&&(r=r.host);ga(r)&&["html","body"].indexOf(Ya(r))<0;){var l=mr(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function hs(e){for(var t=Zn(e),n=SI(e);n&&XQ(n)&&mr(n).position==="static";)n=SI(n);return n&&(Ya(n)==="html"||Ya(n)==="body"&&mr(n).position==="static")?t:n||HQ(e)||t}function DW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ms(e,t,n){return Ql(e,xc(t,n))}function _Q(e,t,n){var a=ms(e,t,n);return a>n?n:a}function EI(){return{top:0,right:0,bottom:0,left:0}}function xI(e){return Object.assign({},EI(),e)}function bI(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var $Q=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xI(typeof t!="number"?t:bI(t,fs))};function eV(e){var t,n=e.state,a=e.name,r=e.options,l=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Za(n.placement),s=DW(o),p=[Mn,Wa].indexOf(o)>=0,u=p?"height":"width";if(!(!l||!i)){var c=$Q(r.padding,n),d=JW(l),f=s==="y"?Bn:Mn,W=s==="y"?fa:Wa,C=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],E=i[s]-n.rects.reference[s],h=hs(l),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,m=C/2-E/2,y=c[f],x=g-d[u]-c[W],S=g/2-d[u]/2+m,k=ms(y,S,x),B=s;n.modifiersData[a]=(t={},t[B]=k,t.centerOffset=k-S,t)}}function tV(e){var t=e.state,n=e.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||II(t.elements.popper,r)&&(t.elements.arrow=r))}const nV={name:"arrow",enabled:!0,phase:"main",fn:eV,effect:tV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(e){return e.split("-")[1]}var aV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rV(e,t){var n=e.x,a=e.y,r=t.devicePixelRatio||1;return{x:Pi(n*r)/r||0,y:Pi(a*r)/r||0}}function kI(e){var t,n=e.popper,a=e.popperRect,r=e.placement,l=e.variation,i=e.offsets,o=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,c=e.isFixed,d=i.x,f=d===void 0?0:d,W=i.y,C=W===void 0?0:W,E=typeof u=="function"?u({x:f,y:C}):{x:f,y:C};f=E.x,C=E.y;var h=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),m=Mn,y=Bn,x=window;if(p){var S=hs(n),k="clientHeight",B="clientWidth";if(S===Zn(n)&&(S=Gr(n),mr(S).position!=="static"&&o==="absolute"&&(k="scrollHeight",B="scrollWidth")),S=S,r===Bn||(r===Mn||r===Wa)&&l===Ws){y=fa;var V=c&&S===x&&x.visualViewport?x.visualViewport.height:S[k];C-=V-a.height,C*=s?1:-1}if(r===Mn||(r===Bn||r===fa)&&l===Ws){m=Wa;var b=c&&S===x&&x.visualViewport?x.visualViewport.width:S[B];f-=b-a.width,f*=s?1:-1}}var w=Object.assign({position:o},p&&aV),M=u===!0?rV({x:f,y:C},Zn(n)):{x:f,y:C};if(f=M.x,C=M.y,s){var z;return Object.assign({},w,(z={},z[y]=g?"0":"",z[m]=h?"0":"",z.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+C+"px)":"translate3d("+f+"px, "+C+"px, 0)",z))}return Object.assign({},w,(t={},t[y]=g?C+"px":"",t[m]=h?f+"px":"",t.transform="",t))}function lV(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,l=n.adaptive,i=l===void 0?!0:l,o=n.roundOffsets,s=o===void 0?!0:o,p={placement:Za(t.placement),variation:Di(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kI(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kI(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lV,data:{}};var kc={passive:!0};function oV(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,l=r===void 0?!0:r,i=a.resize,o=i===void 0?!0:i,s=Zn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",n.update,kc)}),o&&s.addEventListener("resize",n.update,kc),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",n.update,kc)}),o&&s.removeEventListener("resize",n.update,kc)}}const sV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oV,data:{}};var pV={left:"right",right:"left",bottom:"top",top:"bottom"};function Rc(e){return e.replace(/left|right|bottom|top/g,function(t){return pV[t]})}var uV={start:"end",end:"start"};function RI(e){return e.replace(/start|end/g,function(t){return uV[t]})}function YW(e){var t=Zn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ZW(e){return Ji(Gr(e)).left+YW(e).scrollLeft}function cV(e,t){var n=Zn(e),a=Gr(e),r=n.visualViewport,l=a.clientWidth,i=a.clientHeight,o=0,s=0;if(r){l=r.width,i=r.height;var p=yI();(p||!p&&t==="fixed")&&(o=r.offsetLeft,s=r.offsetTop)}return{width:l,height:i,x:o+ZW(e),y:s}}function AV(e){var t,n=Gr(e),a=YW(e),r=(t=e.ownerDocument)==null?void 0:t.body,l=Ql(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Ql(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-a.scrollLeft+ZW(e),s=-a.scrollTop;return mr(r||n).direction==="rtl"&&(o+=Ql(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:i,x:o,y:s}}function NW(e){var t=mr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function wI(e){return["html","body","#document"].indexOf(Ya(e))>=0?e.ownerDocument.body:ga(e)&&NW(e)?e:wI(bc(e))}function Cs(e,t){var n;t===void 0&&(t=[]);var a=wI(e),r=a===((n=e.ownerDocument)==null?void 0:n.body),l=Zn(a),i=r?[l].concat(l.visualViewport||[],NW(a)?a:[]):a,o=t.concat(i);return r?o:o.concat(Cs(bc(i)))}function GW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dV(e,t){var n=Ji(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function BI(e,t,n){return t===mI?GW(cV(e,n)):Ll(t)?dV(t,n):GW(AV(Gr(e)))}function fV(e){var t=Cs(bc(e)),n=["absolute","fixed"].indexOf(mr(e).position)>=0,a=n&&ga(e)?hs(e):e;return Ll(a)?t.filter(function(r){return Ll(r)&&II(r,a)&&Ya(r)!=="body"}):[]}function WV(e,t,n,a){var r=t==="clippingParents"?fV(e):[].concat(t),l=[].concat(r,[n]),i=l[0],o=l.reduce(function(s,p){var u=BI(e,p,a);return s.top=Ql(u.top,s.top),s.right=xc(u.right,s.right),s.bottom=xc(u.bottom,s.bottom),s.left=Ql(u.left,s.left),s},BI(e,i,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function MI(e){var t=e.reference,n=e.element,a=e.placement,r=a?Za(a):null,l=a?Di(a):null,i=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,s;switch(r){case Bn:s={x:i,y:t.y-n.height};break;case fa:s={x:i,y:t.y+t.height};break;case Wa:s={x:t.x+t.width,y:o};break;case Mn:s={x:t.x-n.width,y:o};break;default:s={x:t.x,y:t.y}}var p=r?DW(r):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case Oi:s[p]=s[p]-(t[u]/2-n[u]/2);break;case Ws:s[p]=s[p]+(t[u]/2-n[u]/2);break}}return s}function vs(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,l=n.strategy,i=l===void 0?e.strategy:l,o=n.boundary,s=o===void 0?UQ:o,p=n.rootBoundary,u=p===void 0?mI:p,c=n.elementContext,d=c===void 0?gs:c,f=n.altBoundary,W=f===void 0?!1:f,C=n.padding,E=C===void 0?0:C,h=xI(typeof E!="number"?E:bI(E,fs)),g=d===gs?FQ:gs,m=e.rects.popper,y=e.elements[W?g:d],x=WV(Ll(y)?y:y.contextElement||Gr(e.elements.popper),s,u,i),S=Ji(e.elements.reference),k=MI({reference:S,element:m,placement:r}),B=GW(Object.assign({},m,k)),V=d===gs?B:S,b={top:x.top-V.top+h.top,bottom:V.bottom-x.bottom+h.bottom,left:x.left-V.left+h.left,right:V.right-x.right+h.right},w=e.modifiersData.offset;if(d===gs&&w){var M=w[r];Object.keys(b).forEach(function(z){var F=[Wa,fa].indexOf(z)>=0?1:-1,T=[Bn,fa].indexOf(z)>=0?"y":"x";b[z]+=M[T]*F})}return b}function gV(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,l=n.rootBoundary,i=n.padding,o=n.flipVariations,s=n.allowedAutoPlacements,p=s===void 0?vI:s,u=Di(a),c=u?o?CI:CI.filter(function(W){return Di(W)===u}):fs,d=c.filter(function(W){return p.indexOf(W)>=0});d.length===0&&(d=c);var f=d.reduce(function(W,C){return W[C]=vs(e,{placement:C,boundary:r,rootBoundary:l,padding:i})[Za(C)],W},{});return Object.keys(f).sort(function(W,C){return f[W]-f[C]})}function hV(e){if(Za(e)===KW)return[];var t=Rc(e);return[RI(e),t,RI(t)]}function mV(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,o=i===void 0?!0:i,s=n.fallbackPlacements,p=n.padding,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,W=f===void 0?!0:f,C=n.allowedAutoPlacements,E=t.options.placement,h=Za(E),g=h===E,m=s||(g||!W?[Rc(E)]:hV(E)),y=[E].concat(m).reduce(function(te,re){return te.concat(Za(re)===KW?gV(t,{placement:re,boundary:u,rootBoundary:c,padding:p,flipVariations:W,allowedAutoPlacements:C}):re)},[]),x=t.rects.reference,S=t.rects.popper,k=new Map,B=!0,V=y[0],b=0;b<y.length;b++){var w=y[b],M=Za(w),z=Di(w)===Oi,F=[Bn,fa].indexOf(M)>=0,T=F?"width":"height",U=vs(t,{placement:w,boundary:u,rootBoundary:c,altBoundary:d,padding:p}),q=F?z?Wa:Mn:z?fa:Bn;x[T]>S[T]&&(q=Rc(q));var Q=Rc(q),K=[];if(l&&K.push(U[M]<=0),o&&K.push(U[q]<=0,U[Q]<=0),K.every(function(te){return te})){V=w,B=!1;break}k.set(w,K)}if(B)for(var R=W?3:1,X=function(re){var oe=y.find(function(ve){var fe=k.get(ve);if(fe)return fe.slice(0,re).every(function(he){return he})});if(oe)return V=oe,"break"},G=R;G>0;G--){var L=X(G);if(L==="break")break}t.placement!==V&&(t.modifiersData[a]._skip=!0,t.placement=V,t.reset=!0)}}const CV={name:"flip",enabled:!0,phase:"main",fn:mV,requiresIfExists:["offset"],data:{_skip:!1}};function LI(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QI(e){return[Bn,Wa,fa,Mn].some(function(t){return e[t]>=0})}function vV(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,i=vs(t,{elementContext:"reference"}),o=vs(t,{altBoundary:!0}),s=LI(i,a),p=LI(o,r,l),u=QI(s),c=QI(p);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const yV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vV};function IV(e,t,n){var a=Za(e),r=[Mn,Bn].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=l[0],o=l[1];return i=i||0,o=(o||0)*r,[Mn,Wa].indexOf(a)>=0?{x:o,y:i}:{x:i,y:o}}function SV(e){var t=e.state,n=e.options,a=e.name,r=n.offset,l=r===void 0?[0,0]:r,i=vI.reduce(function(u,c){return u[c]=IV(c,t.rects,l),u},{}),o=i[t.placement],s=o.x,p=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=i}const EV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SV};function xV(e){var t=e.state,n=e.name;t.modifiersData[n]=MI({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bV={name:"popperOffsets",enabled:!0,phase:"read",fn:xV,data:{}};function kV(e){return e==="x"?"y":"x"}function RV(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,o=i===void 0?!1:i,s=n.boundary,p=n.rootBoundary,u=n.altBoundary,c=n.padding,d=n.tether,f=d===void 0?!0:d,W=n.tetherOffset,C=W===void 0?0:W,E=vs(t,{boundary:s,rootBoundary:p,padding:c,altBoundary:u}),h=Za(t.placement),g=Di(t.placement),m=!g,y=DW(h),x=kV(y),S=t.modifiersData.popperOffsets,k=t.rects.reference,B=t.rects.popper,V=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,b=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(l){var z,F=y==="y"?Bn:Mn,T=y==="y"?fa:Wa,U=y==="y"?"height":"width",q=S[y],Q=q+E[F],K=q-E[T],R=f?-B[U]/2:0,X=g===Oi?k[U]:B[U],G=g===Oi?-B[U]:-k[U],L=t.elements.arrow,te=f&&L?JW(L):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EI(),oe=re[F],ve=re[T],fe=ms(0,k[U],te[U]),he=m?k[U]/2-R-fe-oe-b.mainAxis:X-fe-oe-b.mainAxis,ze=m?-k[U]/2+R+fe+ve+b.mainAxis:G+fe+ve+b.mainAxis,_=t.elements.arrow&&hs(t.elements.arrow),ee=_?y==="y"?_.clientTop||0:_.clientLeft||0:0,ge=(z=w==null?void 0:w[y])!=null?z:0,Ce=q+he-ge-ee,se=q+ze-ge,ue=ms(f?xc(Q,Ce):Q,q,f?Ql(K,se):K);S[y]=ue,M[y]=ue-q}if(o){var Te,ne=y==="x"?Bn:Mn,Le=y==="x"?fa:Wa,Me=S[x],ye=x==="y"?"height":"width",De=Me+E[ne],Qe=Me-E[Le],Fe=[Bn,Mn].indexOf(h)!==-1,P=(Te=w==null?void 0:w[x])!=null?Te:0,j=Fe?De:Me-k[ye]-B[ye]-P+b.altAxis,O=Fe?Me+k[ye]+B[ye]-P-b.altAxis:Qe,Z=f&&Fe?_Q(j,Me,O):ms(f?j:De,Me,f?O:Qe);S[x]=Z,M[x]=Z-Me}t.modifiersData[a]=M}}const wV={name:"preventOverflow",enabled:!0,phase:"main",fn:RV,requiresIfExists:["offset"]};function BV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function MV(e){return e===Zn(e)||!ga(e)?YW(e):BV(e)}function LV(e){var t=e.getBoundingClientRect(),n=Pi(t.width)/e.offsetWidth||1,a=Pi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function QV(e,t,n){n===void 0&&(n=!1);var a=ga(t),r=ga(t)&&LV(t),l=Gr(t),i=Ji(e,r,n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&((Ya(t)!=="body"||NW(l))&&(o=MV(t)),ga(t)?(s=Ji(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=ZW(l))),{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}function VV(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function r(l){n.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(o){if(!n.has(o)){var s=t.get(o);s&&r(s)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||r(l)}),a}function UV(e){var t=VV(e);return YQ.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function FV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zV(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var VI={placement:"bottom",modifiers:[],strategy:"absolute"};function UI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function qV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,l=r===void 0?VI:r;return function(o,s,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},VI,l),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],d=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;C(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:Ll(o)?Cs(o):o.contextElement?Cs(o.contextElement):[],popper:Cs(s)};var m=UV(zV([].concat(a,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),W(),f.update()},forceUpdate:function(){if(!d){var h=u.elements,g=h.reference,m=h.popper;if(UI(g,m)){u.rects={reference:QV(g,hs(m),u.options.strategy==="fixed"),popper:JW(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b){return u.modifiersData[b.name]=Object.assign({},b.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var x=u.orderedModifiers[y],S=x.fn,k=x.options,B=k===void 0?{}:k,V=x.name;typeof S=="function"&&(u=S({state:u,options:B,name:V,instance:f})||u)}}}},update:FV(function(){return new Promise(function(E){f.forceUpdate(),E(u)})}),destroy:function(){C(),d=!0}};if(!UI(o,s))return f;f.setOptions(p).then(function(E){!d&&p.onFirstUpdate&&p.onFirstUpdate(E)});function W(){u.orderedModifiers.forEach(function(E){var h=E.name,g=E.options,m=g===void 0?{}:g,y=E.effect;if(typeof y=="function"){var x=y({state:u,name:h,instance:f,options:m}),S=function(){};c.push(x||S)}})}function C(){c.forEach(function(E){return E()}),c=[]}return f}}var jV=[sV,bV,iV,GQ,EV,CV,wV,nV,yV],TV=qV({defaultModifiers:jV});function KV(e){return typeof e=="function"?e():e}const FI=v.forwardRef(function(t,n){const{children:a,container:r,disablePortal:l=!1}=t,[i,o]=v.useState(null),s=wt(v.isValidElement(a)?Rl(a):null,n);if(pa(()=>{l||o(KV(r)||document.body)},[r,l]),pa(()=>{if(i&&!l)return us(n,i),()=>{us(n,null)}},[n,i,l]),l){if(v.isValidElement(a)){const p={ref:s};return v.cloneElement(a,p)}return A.jsx(v.Fragment,{children:a})}return A.jsx(v.Fragment,{children:i&&Uf.createPortal(a,i)})});function OV(e){return Ee("MuiPopper",e)}xe("MuiPopper",["root"]);const PV=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JV=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function DV(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function XW(e){return typeof e=="function"?e():e}function YV(e){return e.nodeType!==void 0}const ZV=e=>{const{classes:t}=e;return be({root:["root"]},OV,t)},NV={},GV=v.forwardRef(function(t,n){var a;const{anchorEl:r,children:l,direction:i,disablePortal:o,modifiers:s,open:p,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:W={},TransitionProps:C}=t,E=ie(t,PV),h=v.useRef(null),g=wt(h,n),m=v.useRef(null),y=wt(m,d),x=v.useRef(y);pa(()=>{x.current=y},[y]),v.useImperativeHandle(d,()=>m.current,[]);const S=DV(u,i),[k,B]=v.useState(S),[V,b]=v.useState(XW(r));v.useEffect(()=>{m.current&&m.current.forceUpdate()}),v.useEffect(()=>{r&&b(XW(r))},[r]),pa(()=>{if(!V||!p)return;const T=Q=>{B(Q.placement)};let U=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{T(Q)}}];s!=null&&(U=U.concat(s)),c&&c.modifiers!=null&&(U=U.concat(c.modifiers));const q=TV(V,h.current,I({placement:S},c,{modifiers:U}));return x.current(q),()=>{q.destroy(),x.current(null)}},[V,o,s,p,c,S]);const w={placement:k};C!==null&&(w.TransitionProps=C);const M=ZV(t),z=(a=W.root)!=null?a:"div",F=kl({elementType:z,externalSlotProps:f.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:M.root});return A.jsx(z,I({},F,{children:typeof l=="function"?l(w):l}))}),XV=v.forwardRef(function(t,n){const{anchorEl:a,children:r,container:l,direction:i="ltr",disablePortal:o=!1,keepMounted:s=!1,modifiers:p,open:u,placement:c="bottom",popperOptions:d=NV,popperRef:f,style:W,transition:C=!1,slotProps:E={},slots:h={}}=t,g=ie(t,JV),[m,y]=v.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!C||m))return null;let k;if(l)k=l;else if(a){const b=XW(a);k=b&&YV(b)?un(b).body:un(null).body}const B=!u&&s&&(!C||m)?"none":void 0,V=C?{in:u,onEnter:x,onExited:S}:void 0;return A.jsx(FI,{disablePortal:o,container:k,children:A.jsx(GV,I({anchorEl:a,direction:i,disablePortal:o,modifiers:p,ref:n,open:C?!m:u,placement:c,popperOptions:d,popperRef:f,slotProps:E,slots:h},g,{style:I({position:"fixed",top:0,left:0,display:B},W),TransitionProps:V,children:r}))})}),HV=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],_V=H(XV,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wc=v.forwardRef(function(t,n){var a;const r=gI(),l=we({props:t,name:"MuiPopper"}),{anchorEl:i,component:o,components:s,componentsProps:p,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:C,popperOptions:E,popperRef:h,transition:g,slots:m,slotProps:y}=l,x=ie(l,HV),S=(a=m==null?void 0:m.root)!=null?a:s==null?void 0:s.Root,k=I({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:C,popperOptions:E,popperRef:h,transition:g},x);return A.jsx(_V,I({as:o,direction:r==null?void 0:r.direction,slots:{root:S},slotProps:y??p},k,{ref:n}))});function $V(e){return Ee("MuiListSubheader",e)}xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const e5=["className","color","component","disableGutters","disableSticky","inset"],t5=e=>{const{classes:t,color:n,disableGutters:a,inset:r,disableSticky:l}=e,i={root:["root",n!=="default"&&`color${$(n)}`,!a&&"gutters",r&&"inset",!l&&"sticky"]};return be(i,$V,t)},n5=H("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>I({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),zI=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiListSubheader"}),{className:r,color:l="default",component:i="li",disableGutters:o=!1,disableSticky:s=!1,inset:p=!1}=a,u=ie(a,e5),c=I({},a,{color:l,component:i,disableGutters:o,disableSticky:s,inset:p}),d=t5(c);return A.jsx(n5,I({as:i,className:pe(d.root,r),ref:n,ownerState:c},u))});zI.muiSkipListHighlight=!0;const a5=an(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function r5(e){return Ee("MuiChip",e)}const at=xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),l5=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],i5=e=>{const{classes:t,disabled:n,size:a,color:r,iconColor:l,onDelete:i,clickable:o,variant:s}=e,p={root:["root",s,n&&"disabled",`size${$(a)}`,`color${$(r)}`,o&&"clickable",o&&`clickableColor${$(r)}`,i&&"deletable",i&&`deletableColor${$(r)}`,`${s}${$(r)}`],label:["label",`label${$(a)}`],avatar:["avatar",`avatar${$(a)}`,`avatarColor${$(r)}`],icon:["icon",`icon${$(a)}`,`iconColor${$(l)}`],deleteIcon:["deleteIcon",`deleteIcon${$(a)}`,`deleteIconColor${$(r)}`,`deleteIcon${$(s)}Color${$(r)}`]};return be(p,r5,t)},o5=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:a,iconColor:r,clickable:l,onDelete:i,size:o,variant:s}=n;return[{[`& .${at.avatar}`]:t.avatar},{[`& .${at.avatar}`]:t[`avatar${$(o)}`]},{[`& .${at.avatar}`]:t[`avatarColor${$(a)}`]},{[`& .${at.icon}`]:t.icon},{[`& .${at.icon}`]:t[`icon${$(o)}`]},{[`& .${at.icon}`]:t[`iconColor${$(r)}`]},{[`& .${at.deleteIcon}`]:t.deleteIcon},{[`& .${at.deleteIcon}`]:t[`deleteIcon${$(o)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIconColor${$(a)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIcon${$(s)}Color${$(a)}`]},t.root,t[`size${$(o)}`],t[`color${$(a)}`],l&&t.clickable,l&&a!=="default"&&t[`clickableColor${$(a)})`],i&&t.deletable,i&&a!=="default"&&t[`deletableColor${$(a)}`],t[s],t[`${s}${$(a)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return I({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${at.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${at.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${at.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${at.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${at.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${at.icon}`]:I({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&I({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${at.deleteIcon}`]:I({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>I({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>I({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${at.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${at.avatar}`]:{marginLeft:4},[`& .${at.avatarSmall}`]:{marginLeft:2},[`& .${at.icon}`]:{marginLeft:4},[`& .${at.iconSmall}`]:{marginLeft:2},[`& .${at.deleteIcon}`]:{marginRight:5},[`& .${at.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${at.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${at.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),s5=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:a}=n;return[t.label,t[`label${$(a)}`]]}})(({ownerState:e})=>I({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function qI(e){return e.key==="Backspace"||e.key==="Delete"}const ha=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiChip"}),{avatar:r,className:l,clickable:i,color:o="default",component:s,deleteIcon:p,disabled:u=!1,icon:c,label:d,onClick:f,onDelete:W,onKeyDown:C,onKeyUp:E,size:h="medium",variant:g="filled",tabIndex:m,skipFocusWhenDisabled:y=!1}=a,x=ie(a,l5),S=v.useRef(null),k=wt(S,n),B=K=>{K.stopPropagation(),W&&W(K)},V=K=>{K.currentTarget===K.target&&qI(K)&&K.preventDefault(),C&&C(K)},b=K=>{K.currentTarget===K.target&&(W&&qI(K)?W(K):K.key==="Escape"&&S.current&&S.current.blur()),E&&E(K)},w=i!==!1&&f?!0:i,M=w||W?Ki:s||"div",z=I({},a,{component:M,disabled:u,size:h,color:o,iconColor:v.isValidElement(c)&&c.props.color||o,onDelete:!!W,clickable:w,variant:g}),F=i5(z),T=M===Ki?I({component:s||"div",focusVisibleClassName:F.focusVisible},W&&{disableRipple:!0}):{};let U=null;W&&(U=p&&v.isValidElement(p)?v.cloneElement(p,{className:pe(p.props.className,F.deleteIcon),onClick:B}):A.jsx(a5,{className:pe(F.deleteIcon),onClick:B}));let q=null;r&&v.isValidElement(r)&&(q=v.cloneElement(r,{className:pe(F.avatar,r.props.className)}));let Q=null;return c&&v.isValidElement(c)&&(Q=v.cloneElement(c,{className:pe(F.icon,c.props.className)})),A.jsxs(o5,I({as:M,className:pe(F.root,l),disabled:w&&u?!0:void 0,onClick:f,onKeyDown:V,onKeyUp:b,ref:k,tabIndex:y&&u?-1:m,ownerState:z},T,x,{children:[q||Q,A.jsx(s5,{className:pe(F.label),ownerState:z,children:d}),U]}))}),p5=["onChange","maxRows","minRows","style","value"];function Bc(e){return parseInt(e,10)||0}const u5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function c5(e){for(const t in e)return!1;return!0}function jI(e){return c5(e)||e.outerHeightStyle===0&&!e.overflowing}const A5=v.forwardRef(function(t,n){const{onChange:a,maxRows:r,minRows:l=1,style:i,value:o}=t,s=ie(t,p5),{current:p}=v.useRef(o!=null),u=v.useRef(null),c=wt(n,u),d=v.useRef(null),f=v.useRef(null),W=v.useCallback(()=>{const m=u.current,y=f.current;if(!m||!y)return;const S=Da(m).getComputedStyle(m);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=m.value||t.placeholder||"x",y.value.slice(-1)===`
155
- `&&(y.value+=" ");const k=S.boxSizing,B=Bc(S.paddingBottom)+Bc(S.paddingTop),V=Bc(S.borderBottomWidth)+Bc(S.borderTopWidth),b=y.scrollHeight;y.value="x";const w=y.scrollHeight;let M=b;l&&(M=Math.max(Number(l)*w,M)),r&&(M=Math.min(Number(r)*w,M)),M=Math.max(M,w);const z=M+(k==="border-box"?B+V:0),F=Math.abs(M-b)<=1;return{outerHeightStyle:z,overflowing:F}},[r,l,t.placeholder]),C=wn(()=>{const m=u.current,y=W();if(!m||!y||jI(y))return!1;const x=y.outerHeightStyle;return d.current!=null&&d.current!==x}),E=v.useCallback(()=>{const m=u.current,y=W();if(!m||!y||jI(y))return;const x=y.outerHeightStyle;d.current!==x&&(d.current=x,m.style.height=`${x}px`),m.style.overflow=y.overflowing?"hidden":""},[W]),h=v.useRef(-1);pa(()=>{const m=cc(E),y=u==null?void 0:u.current;if(!y)return;const x=Da(y);x.addEventListener("resize",m);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{C()&&(S.unobserve(y),cancelAnimationFrame(h.current),E(),h.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{m.clear(),cancelAnimationFrame(h.current),x.removeEventListener("resize",m),S&&S.disconnect()}},[W,E,C]),pa(()=>{E()});const g=m=>{p||E(),a&&a(m)};return A.jsxs(v.Fragment,{children:[A.jsx("textarea",I({value:o,onChange:g,ref:c,rows:l,style:i},s)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},u5.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Xr({props:e,states:t,muiFormControl:n}){return t.reduce((a,r)=>(a[r]=e[r],n&&typeof e[r]>"u"&&(a[r]=n[r]),a),{})}const Mc=v.createContext(void 0);function Na(){return v.useContext(Mc)}function d5(e){return A.jsx(p1,I({},e,{defaultTheme:wW,themeId:Mi}))}function TI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Lc(e,t=!1){return e&&(TI(e.value)&&e.value!==""||t&&TI(e.defaultValue)&&e.defaultValue!=="")}function f5(e){return e.startAdornment}function W5(e){return Ee("MuiInputBase",e)}const Nn=xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),g5=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Qc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${$(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},h5=e=>{const{classes:t,color:n,disabled:a,error:r,endAdornment:l,focused:i,formControl:o,fullWidth:s,hiddenLabel:p,multiline:u,readOnly:c,size:d,startAdornment:f,type:W}=e,C={root:["root",`color${$(n)}`,a&&"disabled",r&&"error",s&&"fullWidth",i&&"focused",o&&"formControl",d&&d!=="medium"&&`size${$(d)}`,u&&"multiline",f&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",c&&"readOnly"],input:["input",a&&"disabled",W==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",f&&"inputAdornedStart",l&&"inputAdornedEnd",c&&"readOnly"]};return be(C,W5,t)},Uc=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>I({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fc=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",a=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return I({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Nn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),m5=A.jsx(d5,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),HW=v.forwardRef(function(t,n){var a;const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:i,autoFocus:o,className:s,components:p={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:W,fullWidth:C=!1,id:E,inputComponent:h="input",inputProps:g={},inputRef:m,maxRows:y,minRows:x,multiline:S=!1,name:k,onBlur:B,onChange:V,onClick:b,onFocus:w,onKeyDown:M,onKeyUp:z,placeholder:F,readOnly:T,renderSuffix:U,rows:q,slotProps:Q={},slots:K={},startAdornment:R,type:X="text",value:G}=r,L=ie(r,g5),te=g.value!=null?g.value:G,{current:re}=v.useRef(te!=null),oe=v.useRef(),ve=v.useCallback(Z=>{},[]),fe=wt(oe,m,g.ref,ve),[he,ze]=v.useState(!1),_=Na(),ee=Xr({props:r,muiFormControl:_,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=_?_.focused:he,v.useEffect(()=>{!_&&d&&he&&(ze(!1),B&&B())},[_,d,he,B]);const ge=_&&_.onFilled,Ce=_&&_.onEmpty,se=v.useCallback(Z=>{Lc(Z)?ge&&ge():Ce&&Ce()},[ge,Ce]);pa(()=>{re&&se({value:te})},[te,se,re]);const ue=Z=>{if(ee.disabled){Z.stopPropagation();return}w&&w(Z),g.onFocus&&g.onFocus(Z),_&&_.onFocus?_.onFocus(Z):ze(!0)},Te=Z=>{B&&B(Z),g.onBlur&&g.onBlur(Z),_&&_.onBlur?_.onBlur(Z):ze(!1)},ne=(Z,...Y)=>{if(!re){const de=Z.target||oe.current;if(de==null)throw new Error(fr(1));se({value:de.value})}g.onChange&&g.onChange(Z,...Y),V&&V(Z,...Y)};v.useEffect(()=>{se(oe.current)},[]);const Le=Z=>{oe.current&&Z.currentTarget===Z.target&&oe.current.focus(),b&&b(Z)};let Me=h,ye=g;S&&Me==="input"&&(q?ye=I({type:void 0,minRows:q,maxRows:q},ye):ye=I({type:void 0,maxRows:y,minRows:x},ye),Me=A5);const De=Z=>{se(Z.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};v.useEffect(()=>{_&&_.setAdornedStart(!!R)},[_,R]);const Qe=I({},r,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:W,error:ee.error,focused:ee.focused,formControl:_,fullWidth:C,hiddenLabel:ee.hiddenLabel,multiline:S,size:ee.size,startAdornment:R,type:X}),Fe=h5(Qe),P=K.root||p.Root||Uc,j=Q.root||u.root||{},O=K.input||p.Input||Fc;return ye=I({},ye,(a=Q.input)!=null?a:u.input),A.jsxs(v.Fragment,{children:[!f&&m5,A.jsxs(P,I({},j,!fc(P)&&{ownerState:I({},Qe,j.ownerState)},{ref:n,onClick:Le},L,{className:pe(Fe.root,j.className,s,T&&"MuiInputBase-readOnly"),children:[R,A.jsx(Mc.Provider,{value:null,children:A.jsx(O,I({ownerState:Qe,"aria-invalid":ee.error,"aria-describedby":l,autoComplete:i,autoFocus:o,defaultValue:c,disabled:ee.disabled,id:E,onAnimationStart:De,name:k,placeholder:F,readOnly:T,required:ee.required,rows:q,value:te,onKeyDown:M,onKeyUp:z,type:X},ye,!fc(O)&&{as:Me,ownerState:I({},Qe,ye.ownerState)},{ref:fe,className:pe(Fe.input,ye.className,T&&"MuiInputBase-readOnly"),onBlur:Te,onChange:ne,onFocus:ue}))}),W,U?U(I({},ee,{startAdornment:R})):null]}))]})});function C5(e){return Ee("MuiInput",e)}const Hr=I({},Nn,xe("MuiInput",["root","underline","input"]));function v5(e){return Ee("MuiOutlinedInput",e)}const Ga=I({},Nn,xe("MuiOutlinedInput",["root","notchedOutline","input"]));function y5(e){return Ee("MuiFilledInput",e)}const Gn=I({},Nn,xe("MuiFilledInput",["root","underline","input"])),KI=an(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function I5(e){return Ee("MuiAutocomplete",e)}const Je=xe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var OI,PI;const S5=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],E5=["ref"],x5=["key"],b5=["key"],k5=e=>{const{classes:t,disablePortal:n,expanded:a,focused:r,fullWidth:l,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,popupOpen:p,size:u}=e,c={root:["root",a&&"expanded",r&&"focused",l&&"fullWidth",i&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${$(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return be(c,I5,t)},R5=H("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:a,hasClearIcon:r,hasPopupIcon:l,inputFocused:i,size:o}=n;return[{[`& .${Je.tag}`]:t.tag},{[`& .${Je.tag}`]:t[`tagSize${$(o)}`]},{[`& .${Je.inputRoot}`]:t.inputRoot},{[`& .${Je.input}`]:t.input},{[`& .${Je.input}`]:i&&t.inputFocused},t.root,a&&t.fullWidth,l&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${Je.focused} .${Je.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Je.clearIndicator}`]:{visibility:"visible"}},[`& .${Je.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Je.inputRoot}`]:{[`.${Je.hasPopupIcon}&, .${Je.hasClearIcon}&`]:{paddingRight:30},[`.${Je.hasPopupIcon}.${Je.hasClearIcon}&`]:{paddingRight:56},[`& .${Je.input}`]:{width:0,minWidth:30}},[`& .${Hr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Hr.root}.${Nn.sizeSmall}`]:{[`& .${Hr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ga.root}`]:{padding:9,[`.${Je.hasPopupIcon}&, .${Je.hasClearIcon}&`]:{paddingRight:39},[`.${Je.hasPopupIcon}.${Je.hasClearIcon}&`]:{paddingRight:65},[`& .${Je.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Je.endAdornment}`]:{right:9}},[`& .${Ga.root}.${Nn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Je.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Je.hasPopupIcon}&, .${Je.hasClearIcon}&`]:{paddingRight:39},[`.${Je.hasPopupIcon}.${Je.hasClearIcon}&`]:{paddingRight:65},[`& .${Gn.input}`]:{padding:"7px 4px"},[`& .${Je.endAdornment}`]:{right:9}},[`& .${Gn.root}.${Nn.sizeSmall}`]:{paddingBottom:1,[`& .${Gn.input}`]:{padding:"2.5px 4px"}},[`& .${Nn.hiddenLabel}`]:{paddingTop:8},[`& .${Gn.root}.${Nn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Je.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gn.root}.${Nn.hiddenLabel}.${Nn.sizeSmall}`]:{[`& .${Je.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Je.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Je.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Je.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Je.inputRoot}`]:{flexWrap:"wrap"}}}]}),w5=H("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),B5=H(da,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),M5=H(da,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>I({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),L5=H(wc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Je.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),Q5=H(Dt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>I({},e.typography.body1,{overflow:"auto"})),V5=H("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),U5=H("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),F5=H("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Je.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Je.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Je.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Je.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Je.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),z5=H(zI,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),q5=H("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Je.option}`]:{paddingLeft:24}}),_W=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:p=!1,autoSelect:u=!1,blurOnSelect:c=!1,ChipProps:d,className:f,clearIcon:W=OI||(OI=A.jsx(uI,{fontSize:"small"})),clearOnBlur:C=!o.freeSolo,clearOnEscape:E=!1,clearText:h="Clear",closeText:g="Close",componentsProps:m={},defaultValue:y=o.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:S=!1,disabled:k=!1,disabledItemsFocusable:B=!1,disableListWrap:V=!1,disablePortal:b=!1,filterSelectedOptions:w=!1,forcePopupIcon:M="auto",freeSolo:z=!1,fullWidth:F=!1,getLimitTagsText:T=J=>`+${J}`,getOptionLabel:U,groupBy:q,handleHomeEndKeys:Q=!o.freeSolo,includeInputInList:K=!1,limitTags:R=-1,ListboxComponent:X="ul",ListboxProps:G,loading:L=!1,loadingText:te="Loading…",multiple:re=!1,noOptionsText:oe="No options",openOnFocus:ve=!1,openText:fe="Open",PaperComponent:he=Dt,PopperComponent:ze=wc,popupIcon:_=PI||(PI=A.jsx(KI,{})),readOnly:ee=!1,renderGroup:ge,renderInput:Ce,renderOption:se,renderTags:ue,selectOnFocus:Te=!o.freeSolo,size:ne="medium",slotProps:Le={}}=o,Me=ie(o,S5),{getRootProps:ye,getInputProps:De,getInputLabelProps:Qe,getPopupIndicatorProps:Fe,getClearProps:P,getTagProps:j,getListboxProps:O,getOptionProps:Z,value:Y,dirty:de,expanded:je,id:Xe,popupOpen:ce,focused:Re,focusedTag:Ve,anchorEl:Pe,setAnchorEl:Ye,inputValue:Wt,groupedOptions:$e}=wQ(I({},o,{componentName:"Autocomplete"})),Ze=!x&&!k&&de&&!ee,ot=(!z||M===!0)&&M!==!1,{onMouseDown:Ht}=De(),{ref:ke}=G??{},Ot=O(),{ref:it}=Ot,zt=ie(Ot,E5),_t=wt(it,ke),ya=U||(J=>{var Ae;return(Ae=J.label)!=null?Ae:J}),Qt=I({},o,{disablePortal:b,expanded:je,focused:Re,fullWidth:F,getOptionLabel:ya,hasClearIcon:Ze,hasPopupIcon:ot,inputFocused:Ve===-1,popupOpen:ce,size:ne}),xt=k5(Qt);let vn;if(re&&Y.length>0){const J=Ae=>I({className:xt.tag,disabled:k},j(Ae));ue?vn=ue(Y,J,Qt):vn=Y.map((Ae,Se)=>{const Ne=J({index:Se}),{key:Ie}=Ne,et=ie(Ne,x5);return A.jsx(ha,I({label:ya(Ae),size:ne},et,d),Ie)})}if(R>-1&&Array.isArray(vn)){const J=vn.length-R;!Re&&J>0&&(vn=vn.splice(0,R),vn.push(A.jsx("span",{className:xt.tag,children:T(J)},vn.length)))}const Er=ge||(J=>A.jsxs("li",{children:[A.jsx(z5,{className:xt.groupLabel,ownerState:Qt,component:"div",children:J.group}),A.jsx(q5,{className:xt.groupUl,ownerState:Qt,children:J.children})]},J.key)),xr=se||((J,Ae)=>{const{key:Se}=J,Ne=ie(J,b5);return A.jsx("li",I({},Ne,{children:ya(Ae)}),Se)}),il=(J,Ae)=>{const Se=Z({option:J,index:Ae});return xr(I({},Se,{className:xt.option}),J,{selected:Se["aria-selected"],index:Ae,inputValue:Wt},Qt)},ol=(a=Le.clearIndicator)!=null?a:m.clearIndicator,tr=(r=Le.paper)!=null?r:m.paper,br=(l=Le.popper)!=null?l:m.popper,N=(i=Le.popupIndicator)!=null?i:m.popupIndicator;return A.jsxs(v.Fragment,{children:[A.jsx(R5,I({ref:n,className:pe(xt.root,f),ownerState:Qt},ye(Me),{children:Ce({id:Xe,disabled:k,fullWidth:!0,size:ne==="small"?"small":void 0,InputLabelProps:Qe(),InputProps:I({ref:Ye,className:xt.inputRoot,startAdornment:vn,onClick:J=>{J.target===J.currentTarget&&Ht(J)}},(Ze||ot)&&{endAdornment:A.jsxs(w5,{className:xt.endAdornment,ownerState:Qt,children:[Ze?A.jsx(B5,I({},P(),{"aria-label":h,title:h,ownerState:Qt},ol,{className:pe(xt.clearIndicator,ol==null?void 0:ol.className),children:W})):null,ot?A.jsx(M5,I({},Fe(),{disabled:k,"aria-label":ce?g:fe,title:ce?g:fe,ownerState:Qt},N,{className:pe(xt.popupIndicator,N==null?void 0:N.className),children:_})):null]})}),inputProps:I({className:xt.input,disabled:k,readOnly:ee},De())})})),Pe?A.jsx(L5,I({as:ze,disablePortal:b,style:{width:Pe?Pe.clientWidth:null},ownerState:Qt,role:"presentation",anchorEl:Pe,open:ce},br,{className:pe(xt.popper,br==null?void 0:br.className),children:A.jsxs(Q5,I({ownerState:Qt,as:he},tr,{className:pe(xt.paper,tr==null?void 0:tr.className),children:[L&&$e.length===0?A.jsx(V5,{className:xt.loading,ownerState:Qt,children:te}):null,$e.length===0&&!z&&!L?A.jsx(U5,{className:xt.noOptions,ownerState:Qt,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:oe}):null,$e.length>0?A.jsx(F5,I({as:X,className:xt.listbox,ownerState:Qt},zt,G,{ref:_t,children:$e.map((J,Ae)=>q?Er({key:J.key,group:J.group,children:J.options.map((Se,Ne)=>il(Se,J.index+Ne))}):il(J,Ae))})):null]}))})):null]})}),j5=an(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function T5(e){return Ee("MuiAvatar",e)}xe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const K5=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],O5=e=>{const{classes:t,variant:n,colorDefault:a}=e;return be({root:["root",n,a&&"colorDefault"],img:["img"],fallback:["fallback"]},T5,t)},P5=H("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:I({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:I({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),J5=H("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),D5=H(j5,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Y5({crossOrigin:e,referrerPolicy:t,src:n,srcSet:a}){const[r,l]=v.useState(!1);return v.useEffect(()=>{if(!n&&!a)return;l(!1);let i=!0;const o=new Image;return o.onload=()=>{i&&l("loaded")},o.onerror=()=>{i&&l("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,a&&(o.srcset=a),()=>{i=!1}},[e,t,n,a]),r}const Cr=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAvatar"}),{alt:r,children:l,className:i,component:o="div",slots:s={},slotProps:p={},imgProps:u,sizes:c,src:d,srcSet:f,variant:W="circular"}=a,C=ie(a,K5);let E=null;const h=Y5(I({},u,{src:d,srcSet:f})),g=d||f,m=g&&h!=="error",y=I({},a,{colorDefault:!m,component:o,variant:W}),x=O5(y),[S,k]=zW("img",{className:x.img,elementType:J5,externalForwardedProps:{slots:s,slotProps:{img:I({},u,p.img)}},additionalProps:{alt:r,src:d,srcSet:f,sizes:c},ownerState:y});return m?E=A.jsx(S,I({},k)):l||l===0?E=l:g&&r?E=r[0]:E=A.jsx(D5,{ownerState:y,className:x.fallback}),A.jsx(P5,I({as:o,ownerState:y,className:pe(x.root,i),ref:n},C,{children:E}))}),Z5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],N5={entering:{opacity:1},entered:{opacity:1}},JI=v.forwardRef(function(t,n){const a=hr(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:l,appear:i=!0,children:o,easing:s,in:p,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:W,onExiting:C,style:E,timeout:h=r,TransitionComponent:g=Ba}=t,m=ie(t,Z5),y=v.useRef(null),x=wt(y,Rl(o),n),S=F=>T=>{if(F){const U=y.current;T===void 0?F(U):F(U,T)}},k=S(d),B=S((F,T)=>{FW(F);const U=Ti({style:E,timeout:h,easing:s},{mode:"enter"});F.style.webkitTransition=a.transitions.create("opacity",U),F.style.transition=a.transitions.create("opacity",U),u&&u(F,T)}),V=S(c),b=S(C),w=S(F=>{const T=Ti({style:E,timeout:h,easing:s},{mode:"exit"});F.style.webkitTransition=a.transitions.create("opacity",T),F.style.transition=a.transitions.create("opacity",T),f&&f(F)}),M=S(W),z=F=>{l&&l(y.current,F)};return A.jsx(g,I({appear:i,in:p,nodeRef:y,onEnter:B,onEntered:V,onEntering:k,onExit:w,onExited:M,onExiting:b,addEndListener:z,timeout:h},m,{children:(F,T)=>v.cloneElement(o,I({style:I({opacity:0,visibility:F==="exited"&&!p?"hidden":void 0},N5[F],E,o.props.style),ref:x},T))}))});function G5(e){return Ee("MuiBackdrop",e)}xe("MuiBackdrop",["root","invisible"]);const X5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],H5=e=>{const{classes:t,invisible:n}=e;return be({root:["root",n&&"invisible"]},G5,t)},_5=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>I({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),DI=v.forwardRef(function(t,n){var a,r,l;const i=we({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:p="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:W={},slots:C={},TransitionComponent:E=JI,transitionDuration:h}=i,g=ie(i,X5),m=I({},i,{component:p,invisible:d}),y=H5(m),x=(a=W.root)!=null?a:c.root;return A.jsx(E,I({in:f,timeout:h},g,{children:A.jsx(_5,I({"aria-hidden":!0},x,{as:(r=(l=C.root)!=null?l:u.Root)!=null?r:p,className:pe(y.root,s,x==null?void 0:x.className),ownerState:I({},m,x==null?void 0:x.ownerState),classes:y,ref:n,children:o}))}))}),$5=xe("MuiBox",["root"]),eU=RW(),D=u2({themeId:Mi,defaultTheme:eU,defaultClassName:$5.root,generateClassName:fW.generate});function tU(e){return Ee("MuiButton",e)}const zc=xe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nU=v.createContext({}),aU=v.createContext(void 0),rU=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lU=e=>{const{color:t,disableElevation:n,fullWidth:a,size:r,variant:l,classes:i}=e,o={root:["root",l,`${l}${$(t)}`,`size${$(r)}`,`${l}Size${$(r)}`,`color${$(t)}`,n&&"disableElevation",a&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$(r)}`],endIcon:["icon","endIcon",`iconSize${$(r)}`]},s=be(o,tU,i);return I({},i,s)},YI=e=>I({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),iU=H(Ki,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,a;const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zc.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zc.disabled}`]:I({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(a=e.palette).getContrastText)==null?void 0:n.call(a,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zc.disabled}`]:{boxShadow:"none"}}),oU=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},YI(e))),sU=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},YI(e))),Ge=v.forwardRef(function(t,n){const a=v.useContext(nU),r=v.useContext(aU),l=ps(a,t),i=we({props:l,name:"MuiButton"}),{children:o,color:s="primary",component:p="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:W,focusVisibleClassName:C,fullWidth:E=!1,size:h="medium",startIcon:g,type:m,variant:y="text"}=i,x=ie(i,rU),S=I({},i,{color:s,component:p,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:E,size:h,type:m,variant:y}),k=lU(S),B=g&&A.jsx(oU,{className:k.startIcon,ownerState:S,children:g}),V=W&&A.jsx(sU,{className:k.endIcon,ownerState:S,children:W}),b=r||"";return A.jsxs(iU,I({ownerState:S,className:pe(a.className,k.root,u,b),component:p,disabled:c,focusRipple:!f,focusVisibleClassName:pe(k.focusVisible,C),ref:n,type:m},x,{classes:k,children:[B,o,V]}))});function pU(e){return Ee("MuiCard",e)}xe("MuiCard",["root"]);const uU=["className","raised"],cU=e=>{const{classes:t}=e;return be({root:["root"]},pU,t)},AU=H(Dt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),dU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCard"}),{className:r,raised:l=!1}=a,i=ie(a,uU),o=I({},a,{raised:l}),s=cU(o);return A.jsx(AU,I({className:pe(s.root,r),elevation:l?8:void 0,ref:n,ownerState:o},i))});function fU(e){return Ee("MuiCardActionArea",e)}const $W=xe("MuiCardActionArea",["root","focusVisible","focusHighlight"]),WU=["children","className","focusVisibleClassName"],gU=e=>{const{classes:t}=e;return be({root:["root"],focusHighlight:["focusHighlight"]},fU,t)},hU=H(Ki,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${$W.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$W.focusVisible} .${$W.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),mU=H("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),CU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCardActionArea"}),{children:r,className:l,focusVisibleClassName:i}=a,o=ie(a,WU),s=a,p=gU(s);return A.jsxs(hU,I({className:pe(p.root,l),focusVisibleClassName:pe(i,p.focusVisible),ref:n,ownerState:s},o,{children:[r,A.jsx(mU,{className:p.focusHighlight,ownerState:s})]}))});function vU(e){return Ee("MuiCardContent",e)}xe("MuiCardContent",["root"]);const yU=["className","component"],IU=e=>{const{classes:t}=e;return be({root:["root"]},vU,t)},SU=H("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),EU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCardContent"}),{className:r,component:l="div"}=a,i=ie(a,yU),o=I({},a,{component:l}),s=IU(o);return A.jsx(SU,I({as:l,className:pe(s.root,r),ownerState:o,ref:n},i))});function xU(e){return Ee("PrivateSwitchBase",e)}xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kU=e=>{const{classes:t,checked:n,disabled:a,edge:r}=e,l={root:["root",n&&"checked",a&&"disabled",r&&`edge${$(r)}`],input:["input"]};return be(l,xU,t)},RU=H(Ki,{name:"MuiSwitchBase"})(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),wU=H("input",{name:"MuiSwitchBase",shouldForwardProp:mn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ZI=v.forwardRef(function(t,n){const{autoFocus:a,checked:r,checkedIcon:l,className:i,defaultChecked:o,disabled:s,disableFocusRipple:p=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:W,name:C,onBlur:E,onChange:h,onFocus:g,readOnly:m,required:y=!1,tabIndex:x,type:S,value:k}=t,B=ie(t,bU),[V,b]=gr({controlled:r,default:!!o,name:"SwitchBase",state:"checked"}),w=Na(),M=K=>{g&&g(K),w&&w.onFocus&&w.onFocus(K)},z=K=>{E&&E(K),w&&w.onBlur&&w.onBlur(K)},F=K=>{if(K.nativeEvent.defaultPrevented)return;const R=K.target.checked;b(R),h&&h(K,R)};let T=s;w&&typeof T>"u"&&(T=w.disabled);const U=S==="checkbox"||S==="radio",q=I({},t,{checked:V,disabled:T,disableFocusRipple:p,edge:u}),Q=kU(q);return A.jsxs(RU,I({component:"span",className:pe(Q.root,i),centerRipple:!0,focusRipple:!p,disabled:T,tabIndex:null,role:void 0,onFocus:M,onBlur:z,ownerState:q,ref:n},B,{children:[A.jsx(wU,I({autoFocus:a,checked:r,defaultChecked:o,className:Q.input,disabled:T,id:U?d:void 0,name:C,onChange:F,readOnly:m,ref:W,required:y,ownerState:q,tabIndex:x,type:S},S==="checkbox"&&k===void 0?{}:{value:k},f)),V?l:c]}))}),BU=an(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MU=an(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LU=an(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function QU(e){return Ee("MuiCheckbox",e)}const eg=xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VU=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],UU=e=>{const{classes:t,indeterminate:n,color:a,size:r}=e,l={root:["root",n&&"indeterminate",`color${$(a)}`,`size${$(r)}`]},i=be(l,QU,t);return I({},t,i)},FU=H(ZI,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${$(n.size)}`],n.color!=="default"&&t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eg.checked}, &.${eg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${eg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zU=A.jsx(MU,{}),qU=A.jsx(BU,{}),jU=A.jsx(LU,{}),TU=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zU,color:o="primary",icon:s=qU,indeterminate:p=!1,indeterminateIcon:u=jU,inputProps:c,size:d="medium",className:f}=l,W=ie(l,VU),C=p?u:s,E=p?u:i,h=I({},l,{color:o,indeterminate:p,size:d}),g=UU(h);return A.jsx(FU,I({type:"checkbox",inputProps:I({"data-indeterminate":p},c),icon:v.cloneElement(C,{fontSize:(a=C.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(E,{fontSize:(r=E.props.fontSize)!=null?r:d}),ownerState:h,ref:n,className:pe(g.root,f)},W,{classes:g}))});function KU(e){return Ee("MuiCircularProgress",e)}xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const OU=["className","color","disableShrink","size","style","thickness","value","variant"];let qc=e=>e,NI,GI,XI,HI;const _r=44,PU=Zr(NI||(NI=qc`
154
+ `),Aa.rippleVisible,OL,qW,({theme:e})=>e.transitions.easing.easeInOut,Aa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Aa.child,Aa.childLeaving,PL,qW,({theme:e})=>e.transitions.easing.easeInOut,Aa.childPulsate,JL,({theme:e})=>e.transitions.easing.easeInOut),ZL=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:l={},className:i}=a,o=ie(a,TL),[s,p]=v.useState([]),u=v.useRef(0),c=v.useRef(null);v.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=v.useRef(!1),f=Vi(),W=v.useRef(null),C=v.useRef(null),E=v.useCallback(y=>{const{pulsate:x,rippleX:S,rippleY:k,rippleSize:B,cb:V}=y;p(b=>[...b,A.jsx(YL,{classes:{ripple:pe(l.ripple,Aa.ripple),rippleVisible:pe(l.rippleVisible,Aa.rippleVisible),ripplePulsate:pe(l.ripplePulsate,Aa.ripplePulsate),child:pe(l.child,Aa.child),childLeaving:pe(l.childLeaving,Aa.childLeaving),childPulsate:pe(l.childPulsate,Aa.childPulsate)},timeout:qW,pulsate:x,rippleX:S,rippleY:k,rippleSize:B},u.current)]),u.current+=1,c.current=V},[l]),h=v.useCallback((y={},x={},S=()=>{})=>{const{pulsate:k=!1,center:B=r||x.pulsate,fakeElement:V=!1}=x;if((y==null?void 0:y.type)==="mousedown"&&d.current){d.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(d.current=!0);const b=V?null:C.current,w=b?b.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,z,F;if(B||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)M=Math.round(w.width/2),z=Math.round(w.height/2);else{const{clientX:T,clientY:U}=y.touches&&y.touches.length>0?y.touches[0]:y;M=Math.round(T-w.left),z=Math.round(U-w.top)}if(B)F=Math.sqrt((2*w.width**2+w.height**2)/3),F%2===0&&(F+=1);else{const T=Math.max(Math.abs((b?b.clientWidth:0)-M),M)*2+2,U=Math.max(Math.abs((b?b.clientHeight:0)-z),z)*2+2;F=Math.sqrt(T**2+U**2)}y!=null&&y.touches?W.current===null&&(W.current=()=>{E({pulsate:k,rippleX:M,rippleY:z,rippleSize:F,cb:S})},f.start(KL,()=>{W.current&&(W.current(),W.current=null)})):E({pulsate:k,rippleX:M,rippleY:z,rippleSize:F,cb:S})},[r,E,f]),g=v.useCallback(()=>{h({},{pulsate:!0})},[h]),m=v.useCallback((y,x)=>{if(f.clear(),(y==null?void 0:y.type)==="touchend"&&W.current){W.current(),W.current=null,f.start(0,()=>{m(y,x)});return}W.current=null,p(S=>S.length>0?S.slice(1):S),c.current=x},[f]);return v.useImperativeHandle(n,()=>({pulsate:g,start:h,stop:m}),[g,h,m]),A.jsx(DL,I({className:pe(Aa.root,l.root,i),ref:C},o,{children:A.jsx(UW,{component:null,exit:!0,children:s})}))});function NL(e){return Ee("MuiButtonBase",e)}const GL=xe("MuiButtonBase",["root","disabled","focusVisible"]),XL=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],HL=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:a,classes:r}=e,i=be({root:["root",t&&"disabled",n&&"focusVisible"]},NL,r);return n&&a&&(i.root+=` ${a}`),i},_L=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${GL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ki=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:l=!1,children:i,className:o,component:s="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:W,onClick:C,onContextMenu:E,onDragLeave:h,onFocus:g,onFocusVisible:m,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:k,onMouseUp:B,onTouchEnd:V,onTouchMove:b,onTouchStart:w,tabIndex:M=0,TouchRippleProps:z,touchRippleRef:F,type:T}=a,U=ie(a,XL),q=v.useRef(null),Q=v.useRef(null),K=wt(Q,F),{isFocusVisibleRef:R,onFocus:X,onBlur:G,ref:L}=yW(),[te,re]=v.useState(!1);p&&te&&re(!1),v.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),q.current.focus()}}),[]);const[oe,ve]=v.useState(!1);v.useEffect(()=>{ve(!0)},[]);const fe=oe&&!u&&!p;v.useEffect(()=>{te&&d&&!u&&oe&&Q.current.pulsate()},[u,d,te,oe]);function he(Y,de,je=c){return wn(Xe=>(de&&de(Xe),!je&&Q.current&&Q.current[Y](Xe),!0))}const ze=he("start",S),_=he("stop",E),ee=he("stop",h),ge=he("stop",B),Ce=he("stop",Y=>{te&&Y.preventDefault(),k&&k(Y)}),se=he("start",w),ue=he("stop",V),Te=he("stop",b),ne=he("stop",Y=>{G(Y),R.current===!1&&re(!1),W&&W(Y)},!1),Le=wn(Y=>{q.current||(q.current=Y.currentTarget),X(Y),R.current===!0&&(re(!0),m&&m(Y)),g&&g(Y)}),Me=()=>{const Y=q.current;return s&&s!=="button"&&!(Y.tagName==="A"&&Y.href)},ye=v.useRef(!1),Ze=wn(Y=>{d&&!ye.current&&te&&Q.current&&Y.key===" "&&(ye.current=!0,Q.current.stop(Y,()=>{Q.current.start(Y)})),Y.target===Y.currentTarget&&Me()&&Y.key===" "&&Y.preventDefault(),y&&y(Y),Y.target===Y.currentTarget&&Me()&&Y.key==="Enter"&&!p&&(Y.preventDefault(),C&&C(Y))}),Qe=wn(Y=>{d&&Y.key===" "&&Q.current&&te&&!Y.defaultPrevented&&(ye.current=!1,Q.current.stop(Y,()=>{Q.current.pulsate(Y)})),x&&x(Y),C&&Y.target===Y.currentTarget&&Me()&&Y.key===" "&&!Y.defaultPrevented&&C(Y)});let Fe=s;Fe==="button"&&(U.href||U.to)&&(Fe=f);const P={};Fe==="button"?(P.type=T===void 0?"button":T,P.disabled=p):(!U.href&&!U.to&&(P.role="button"),p&&(P["aria-disabled"]=p));const j=wt(n,L,q),O=I({},a,{centerRipple:l,component:s,disabled:p,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:te}),Z=HL(O);return A.jsxs(_L,I({as:Fe,className:pe(Z.root,o),ownerState:O,onBlur:ne,onClick:C,onContextMenu:_,onFocus:Le,onKeyDown:Ze,onKeyUp:Qe,onMouseDown:ze,onMouseLeave:Ce,onMouseUp:ge,onDragLeave:ee,onTouchEnd:ue,onTouchMove:Te,onTouchStart:se,ref:j,tabIndex:p?-1:M,type:T},P,U,{children:[i,fe?A.jsx(ZL,I({ref:K,center:l},z)):null]}))});function $L(e){return Ee("MuiAlert",e)}const pI=xe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function eQ(e){return Ee("MuiIconButton",e)}const tQ=xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nQ=["edge","children","className","color","disabled","disableFocusRipple","size"],aQ=e=>{const{classes:t,disabled:n,color:a,edge:r,size:l}=e,i={root:["root",n&&"disabled",a!=="default"&&`color${$(a)}`,r&&`edge${$(r)}`,`size${$(l)}`]};return be(i,eQ,t)},rQ=H(Ki,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],n.edge&&t[`edge${$(n.edge)}`],t[`size${$(n.size)}`]]}})(({theme:e,ownerState:t})=>I({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const a=(n=(e.vars||e).palette)==null?void 0:n[t.color];return I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:a==null?void 0:a.main},!t.disableRipple&&{"&:hover":I({},a&&{backgroundColor:e.vars?`rgba(${a.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(a.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${tQ.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),da=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiIconButton"}),{edge:r=!1,children:l,className:i,color:o="default",disabled:s=!1,disableFocusRipple:p=!1,size:u="medium"}=a,c=ie(a,nQ),d=I({},a,{edge:r,color:o,disabled:s,disableFocusRipple:p,size:u}),f=aQ(d);return A.jsx(rQ,I({className:pe(f.root,i),centerRipple:!0,focusRipple:!p,disabled:s,ref:n},c,{ownerState:d,children:l}))}),lQ=an(A.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),iQ=an(A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),oQ=an(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),sQ=an(A.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),uI=an(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),pQ=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],uQ=e=>{const{variant:t,color:n,severity:a,classes:r}=e,l={root:["root",`color${$(n||a)}`,`${t}${$(n||a)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return be(l,$L,r)},cQ=H(Dt,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?IW:SW,n=e.palette.mode==="light"?SW:IW;return I({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:n(e.palette[a].light,.9),[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.light).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${pI.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(([,a])=>a.main&&a.dark).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:I({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)})}))]})}),AQ=H("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),dQ=H("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),cI=H("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),AI={success:A.jsx(lQ,{fontSize:"inherit"}),warning:A.jsx(iQ,{fontSize:"inherit"}),error:A.jsx(oQ,{fontSize:"inherit"}),info:A.jsx(sQ,{fontSize:"inherit"})},jW=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAlert"}),{action:r,children:l,className:i,closeText:o="Close",color:s,components:p={},componentsProps:u={},icon:c,iconMapping:d=AI,onClose:f,role:W="alert",severity:C="success",slotProps:E={},slots:h={},variant:g="standard"}=a,m=ie(a,pQ),y=I({},a,{color:s,severity:C,variant:g,colorSeverity:s||C}),x=uQ(y),S={slots:I({closeButton:p.CloseButton,closeIcon:p.CloseIcon},h),slotProps:I({},u,E)},[k,B]=zW("closeButton",{elementType:da,externalForwardedProps:S,ownerState:y}),[V,b]=zW("closeIcon",{elementType:uI,externalForwardedProps:S,ownerState:y});return A.jsxs(cQ,I({role:W,elevation:0,ownerState:y,className:pe(x.root,i),ref:n},m,{children:[c!==!1?A.jsx(AQ,{ownerState:y,className:x.icon,children:c||d[C]||AI[C]}):null,A.jsx(dQ,{ownerState:y,className:x.message,children:l}),r!=null?A.jsx(cI,{ownerState:y,className:x.action,children:r}):null,r==null&&f?A.jsx(cI,{ownerState:y,className:x.action,children:A.jsx(k,I({size:"small","aria-label":o,title:o,color:"inherit",onClick:f},B,{children:A.jsx(V,I({fontSize:"small"},b))}))}):null]}))});function fQ(e){return Ee("MuiTypography",e)}xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const WQ=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gQ=e=>{const{align:t,gutterBottom:n,noWrap:a,paragraph:r,variant:l,classes:i}=e,o={root:["root",l,e.align!=="inherit"&&`align${$(t)}`,n&&"gutterBottom",a&&"noWrap",r&&"paragraph"]};return be(o,fQ,i)},hQ=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${$(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),dI={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},mQ={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},CQ=e=>mQ[e]||e,We=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTypography"}),r=CQ(a.color),l=ss(I({},a,{color:r})),{align:i="inherit",className:o,component:s,gutterBottom:p=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:f=dI}=l,W=ie(l,WQ),C=I({},l,{align:i,color:r,className:o,component:s,gutterBottom:p,noWrap:u,paragraph:c,variant:d,variantMapping:f}),E=s||(c?"p":f[d]||dI[d])||"span",h=gQ(C);return A.jsx(hQ,I({as:E,ref:n,ownerState:C,className:pe(h.root,o)},W))});function vQ(e){return Ee("MuiAppBar",e)}xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const yQ=["className","color","enableColorOnDark","position"],IQ=e=>{const{color:t,position:n,classes:a}=e,r={root:["root",`color${$(t)}`,`position${$(n)}`]};return be(r,vQ,a)},Sc=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,SQ=H(Dt,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&I({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Sc(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Sc(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Sc(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Sc(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),EQ=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAppBar"}),{className:r,color:l="primary",enableColorOnDark:i=!1,position:o="fixed"}=a,s=ie(a,yQ),p=I({},a,{color:l,position:o,enableColorOnDark:i}),u=IQ(p);return A.jsx(SQ,I({square:!0,component:"header",ownerState:p,elevation:4,className:pe(u.root,r,o==="fixed"&&"mui-fixed"),ref:n},s))});function fI(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function xQ(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:a,matchFrom:r="any",stringify:l,trim:i=!1}=e;return(o,{inputValue:s,getOptionLabel:p})=>{let u=i?s.trim():s;n&&(u=u.toLowerCase()),t&&(u=fI(u));const c=u?o.filter(d=>{let f=(l||p)(d);return n&&(f=f.toLowerCase()),t&&(f=fI(f)),r==="start"?f.indexOf(u)===0:f.indexOf(u)>-1}):o;return typeof a=="number"?c.slice(0,a):c}}function Ec(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const bQ=xQ(),WI=5,kQ=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},RQ=[];function wQ(e){const{unstable_isActiveElementInListbox:t=kQ,unstable_classNamePrefix:n="Mui",autoComplete:a=!1,autoHighlight:r=!1,autoSelect:l=!1,blurOnSelect:i=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:s=!1,componentName:p="useAutocomplete",defaultValue:u=e.multiple?RQ:null,disableClearable:c=!1,disableCloseOnSelect:d=!1,disabled:f,disabledItemsFocusable:W=!1,disableListWrap:C=!1,filterOptions:E=bQ,filterSelectedOptions:h=!1,freeSolo:g=!1,getOptionDisabled:m,getOptionKey:y,getOptionLabel:x=N=>{var J;return(J=N.label)!=null?J:N},groupBy:S,handleHomeEndKeys:k=!e.freeSolo,id:B,includeInputInList:V=!1,inputValue:b,isOptionEqualToValue:w=(N,J)=>N===J,multiple:M=!1,onChange:z,onClose:F,onHighlightChange:T,onInputChange:U,onOpen:q,open:Q,openOnFocus:K=!1,options:R,readOnly:X=!1,selectOnFocus:G=!e.freeSolo,value:L}=e,te=Nr(B);let re=x;re=N=>{const J=x(N);return typeof J!="string"?String(J):J};const oe=v.useRef(!1),ve=v.useRef(!0),fe=v.useRef(null),he=v.useRef(null),[ze,_]=v.useState(null),[ee,ge]=v.useState(-1),Ce=r?0:-1,se=v.useRef(Ce),[ue,Te]=gr({controlled:L,default:u,name:p}),[ne,Le]=gr({controlled:b,default:"",name:p,state:"inputValue"}),[Me,ye]=v.useState(!1),Ze=v.useCallback((N,J)=>{if(!(M?ue.length<J.length:J!==null)&&!o)return;let Se;if(M)Se="";else if(J==null)Se="";else{const Ne=re(J);Se=typeof Ne=="string"?Ne:""}ne!==Se&&(Le(Se),U&&U(N,Se,"reset"))},[re,ne,M,U,Le,o,ue]),[Qe,Fe]=gr({controlled:Q,default:!1,name:p,state:"open"}),[P,j]=v.useState(!0),O=!M&&ue!=null&&ne===re(ue),Z=Qe&&!X,Y=Z?E(R.filter(N=>!(h&&(M?ue:[ue]).some(J=>J!==null&&w(N,J)))),{inputValue:O&&P?"":ne,getOptionLabel:re}):[],de=N2({filteredOptions:Y,value:ue,inputValue:ne});v.useEffect(()=>{const N=ue!==de.value;Me&&!N||g&&!N||Ze(null,ue)},[ue,Ze,Me,de.value,g]);const je=Qe&&Y.length>0&&!X,Xe=wn(N=>{N===-1?fe.current.focus():ze.querySelector(`[data-tag-index="${N}"]`).focus()});v.useEffect(()=>{M&&ee>ue.length-1&&(ge(-1),Xe(-1))},[ue,M,ee,Xe]);function ce(N,J){if(!he.current||N<0||N>=Y.length)return-1;let Ae=N;for(;;){const Se=he.current.querySelector(`[data-option-index="${Ae}"]`),Ne=W?!1:!Se||Se.disabled||Se.getAttribute("aria-disabled")==="true";if(Se&&Se.hasAttribute("tabindex")&&!Ne)return Ae;if(J==="next"?Ae=(Ae+1)%Y.length:Ae=(Ae-1+Y.length)%Y.length,Ae===N)return-1}}const Re=wn(({event:N,index:J,reason:Ae="auto"})=>{if(se.current=J,J===-1?fe.current.removeAttribute("aria-activedescendant"):fe.current.setAttribute("aria-activedescendant",`${te}-option-${J}`),T&&T(N,J===-1?null:Y[J],Ae),!he.current)return;const Se=he.current.querySelector(`[role="option"].${n}-focused`);Se&&(Se.classList.remove(`${n}-focused`),Se.classList.remove(`${n}-focusVisible`));let Ne=he.current;if(he.current.getAttribute("role")!=="listbox"&&(Ne=he.current.parentElement.querySelector('[role="listbox"]')),!Ne)return;if(J===-1){Ne.scrollTop=0;return}const Ie=he.current.querySelector(`[data-option-index="${J}"]`);if(Ie&&(Ie.classList.add(`${n}-focused`),Ae==="keyboard"&&Ie.classList.add(`${n}-focusVisible`),Ne.scrollHeight>Ne.clientHeight&&Ae!=="mouse"&&Ae!=="touch")){const et=Ie,nr=Ne.clientHeight+Ne.scrollTop,zk=et.offsetTop+et.offsetHeight;zk>nr?Ne.scrollTop=zk-Ne.clientHeight:et.offsetTop-et.offsetHeight*(S?1.3:0)<Ne.scrollTop&&(Ne.scrollTop=et.offsetTop-et.offsetHeight*(S?1.3:0))}}),Ve=wn(({event:N,diff:J,direction:Ae="next",reason:Se="auto"})=>{if(!Z)return;const Ie=ce((()=>{const et=Y.length-1;if(J==="reset")return Ce;if(J==="start")return 0;if(J==="end")return et;const nr=se.current+J;return nr<0?nr===-1&&V?-1:C&&se.current!==-1||Math.abs(J)>1?0:et:nr>et?nr===et+1&&V?-1:C||Math.abs(J)>1?et:0:nr})(),Ae);if(Re({index:Ie,reason:Se,event:N}),a&&J!=="reset")if(Ie===-1)fe.current.value=ne;else{const et=re(Y[Ie]);fe.current.value=et,et.toLowerCase().indexOf(ne.toLowerCase())===0&&ne.length>0&&fe.current.setSelectionRange(ne.length,et.length)}}),Pe=()=>{const N=(J,Ae)=>{const Se=J?re(J):"",Ne=Ae?re(Ae):"";return Se===Ne};if(se.current!==-1&&de.filteredOptions&&de.filteredOptions.length!==Y.length&&de.inputValue===ne&&(M?ue.length===de.value.length&&de.value.every((J,Ae)=>re(ue[Ae])===re(J)):N(de.value,ue))){const J=de.filteredOptions[se.current];if(J)return Ec(Y,Ae=>re(Ae)===re(J))}return-1},dt=v.useCallback(()=>{if(!Z)return;const N=Pe();if(N!==-1){se.current=N;return}const J=M?ue[0]:ue;if(Y.length===0||J==null){Ve({diff:"reset"});return}if(he.current){if(J!=null){const Ae=Y[se.current];if(M&&Ae&&Ec(ue,Ne=>w(Ae,Ne))!==-1)return;const Se=Ec(Y,Ne=>w(Ne,J));Se===-1?Ve({diff:"reset"}):Re({index:Se});return}if(se.current>=Y.length-1){Re({index:Y.length-1});return}Re({index:se.current})}},[Y.length,M?!1:ue,h,Ve,Re,Z,ne,M]),$e=wn(N=>{us(he,N),N&&dt()});v.useEffect(()=>{dt()},[dt]);const Je=N=>{Qe||(Fe(!0),j(!0),q&&q(N))},De=(N,J)=>{Qe&&(Fe(!1),F&&F(N,J))},ot=(N,J,Ae,Se)=>{if(M){if(ue.length===J.length&&ue.every((Ne,Ie)=>Ne===J[Ie]))return}else if(ue===J)return;z&&z(N,J,Ae,Se),Te(J)},Ht=v.useRef(!1),ke=(N,J,Ae="selectOption",Se="options")=>{let Ne=Ae,Ie=J;if(M){Ie=Array.isArray(ue)?ue.slice():[];const et=Ec(Ie,nr=>w(J,nr));et===-1?Ie.push(J):Se!=="freeSolo"&&(Ie.splice(et,1),Ne="removeOption")}Ze(N,Ie),ot(N,Ie,Ne,{option:J}),!d&&(!N||!N.ctrlKey&&!N.metaKey)&&De(N,Ne),(i===!0||i==="touch"&&Ht.current||i==="mouse"&&!Ht.current)&&fe.current.blur()};function Ot(N,J){if(N===-1)return-1;let Ae=N;for(;;){if(J==="next"&&Ae===ue.length||J==="previous"&&Ae===-1)return-1;const Se=ze.querySelector(`[data-tag-index="${Ae}"]`);if(!Se||!Se.hasAttribute("tabindex")||Se.disabled||Se.getAttribute("aria-disabled")==="true")Ae+=J==="next"?1:-1;else return Ae}}const it=(N,J)=>{if(!M)return;ne===""&&De(N,"toggleInput");let Ae=ee;ee===-1?ne===""&&J==="previous"&&(Ae=ue.length-1):(Ae+=J==="next"?1:-1,Ae<0&&(Ae=0),Ae===ue.length&&(Ae=-1)),Ae=Ot(Ae,J),ge(Ae),Xe(Ae)},zt=N=>{oe.current=!0,Le(""),U&&U(N,"","clear"),ot(N,M?[]:null,"clear")},_t=N=>J=>{if(N.onKeyDown&&N.onKeyDown(J),!J.defaultMuiPrevented&&(ee!==-1&&["ArrowLeft","ArrowRight"].indexOf(J.key)===-1&&(ge(-1),Xe(-1)),J.which!==229))switch(J.key){case"Home":Z&&k&&(J.preventDefault(),Ve({diff:"start",direction:"next",reason:"keyboard",event:J}));break;case"End":Z&&k&&(J.preventDefault(),Ve({diff:"end",direction:"previous",reason:"keyboard",event:J}));break;case"PageUp":J.preventDefault(),Ve({diff:-WI,direction:"previous",reason:"keyboard",event:J}),Je(J);break;case"PageDown":J.preventDefault(),Ve({diff:WI,direction:"next",reason:"keyboard",event:J}),Je(J);break;case"ArrowDown":J.preventDefault(),Ve({diff:1,direction:"next",reason:"keyboard",event:J}),Je(J);break;case"ArrowUp":J.preventDefault(),Ve({diff:-1,direction:"previous",reason:"keyboard",event:J}),Je(J);break;case"ArrowLeft":it(J,"previous");break;case"ArrowRight":it(J,"next");break;case"Enter":if(se.current!==-1&&Z){const Ae=Y[se.current],Se=m?m(Ae):!1;if(J.preventDefault(),Se)return;ke(J,Ae,"selectOption"),a&&fe.current.setSelectionRange(fe.current.value.length,fe.current.value.length)}else g&&ne!==""&&O===!1&&(M&&J.preventDefault(),ke(J,ne,"createOption","freeSolo"));break;case"Escape":Z?(J.preventDefault(),J.stopPropagation(),De(J,"escape")):s&&(ne!==""||M&&ue.length>0)&&(J.preventDefault(),J.stopPropagation(),zt(J));break;case"Backspace":if(M&&!X&&ne===""&&ue.length>0){const Ae=ee===-1?ue.length-1:ee,Se=ue.slice();Se.splice(Ae,1),ot(J,Se,"removeOption",{option:ue[Ae]})}break;case"Delete":if(M&&!X&&ne===""&&ue.length>0&&ee!==-1){const Ae=ee,Se=ue.slice();Se.splice(Ae,1),ot(J,Se,"removeOption",{option:ue[Ae]})}break}},Pl=N=>{ye(!0),K&&!oe.current&&Je(N)},ya=N=>{if(t(he)){fe.current.focus();return}ye(!1),ve.current=!0,oe.current=!1,l&&se.current!==-1&&Z?ke(N,Y[se.current],"blur"):l&&g&&ne!==""?ke(N,ne,"blur","freeSolo"):o&&Ze(N,ue),De(N,"blur")},Qt=N=>{const J=N.target.value;ne!==J&&(Le(J),j(!1),U&&U(N,J,"input")),J===""?!c&&!M&&ot(N,null,"clear"):Je(N)},xt=N=>{const J=Number(N.currentTarget.getAttribute("data-option-index"));se.current!==J&&Re({event:N,index:J,reason:"mouse"})},vn=N=>{Re({event:N,index:Number(N.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ht.current=!0},Un=N=>{const J=Number(N.currentTarget.getAttribute("data-option-index"));ke(N,Y[J],"selectOption"),Ht.current=!1},Er=N=>J=>{const Ae=ue.slice();Ae.splice(N,1),ot(J,Ae,"removeOption",{option:ue[N]})},_s=N=>{Qe?De(N,"toggleInput"):Je(N)},xr=N=>{N.currentTarget.contains(N.target)&&N.target.getAttribute("id")!==te&&N.preventDefault()},il=N=>{N.currentTarget.contains(N.target)&&(fe.current.focus(),G&&ve.current&&fe.current.selectionEnd-fe.current.selectionStart===0&&fe.current.select(),ve.current=!1)},ol=N=>{!f&&(ne===""||!Qe)&&_s(N)};let tr=g&&ne.length>0;tr=tr||(M?ue.length>0:ue!==null);let br=Y;return S&&(br=Y.reduce((N,J,Ae)=>{const Se=S(J);return N.length>0&&N[N.length-1].group===Se?N[N.length-1].options.push(J):N.push({key:Ae,index:Ae,group:Se,options:[J]}),N},[])),f&&Me&&ya(),{getRootProps:(N={})=>I({"aria-owns":je?`${te}-listbox`:null},N,{onKeyDown:_t(N),onMouseDown:xr,onClick:il}),getInputLabelProps:()=>({id:`${te}-label`,htmlFor:te}),getInputProps:()=>({id:te,value:ne,onBlur:ya,onFocus:Pl,onChange:Qt,onMouseDown:ol,"aria-activedescendant":Z?"":null,"aria-autocomplete":a?"both":"list","aria-controls":je?`${te}-listbox`:void 0,"aria-expanded":je,autoComplete:"off",ref:fe,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:zt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:_s}),getTagProps:({index:N})=>I({key:N,"data-tag-index":N,tabIndex:-1},!X&&{onDelete:Er(N)}),getListboxProps:()=>({role:"listbox",id:`${te}-listbox`,"aria-labelledby":`${te}-label`,ref:$e,onMouseDown:N=>{N.preventDefault()}}),getOptionProps:({index:N,option:J})=>{var Ae;const Se=(M?ue:[ue]).some(Ie=>Ie!=null&&w(J,Ie)),Ne=m?m(J):!1;return{key:(Ae=y==null?void 0:y(J))!=null?Ae:re(J),tabIndex:-1,role:"option",id:`${te}-option-${N}`,onMouseMove:xt,onClick:Un,onTouchStart:vn,"data-option-index":N,"aria-disabled":Ne,"aria-selected":Se}},id:te,inputValue:ne,value:ue,dirty:tr,expanded:Z&&ze,popupOpen:Z,focused:Me||ee!==-1,anchorEl:ze,setAnchorEl:_,focusedTag:ee,groupedOptions:br}}var TW={};Object.defineProperty(TW,"__esModule",{value:!0});var gI=TW.default=void 0,BQ=LQ(v),MQ=_1;function hI(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(hI=function(a){return a?n:t})(e)}function LQ(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=hI(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}function QQ(e){return Object.keys(e).length===0}function VQ(e=null){const t=BQ.useContext(MQ.ThemeContext);return!t||QQ(t)?e:t}gI=TW.default=VQ;var Bn="top",fa="bottom",Wa="right",Mn="left",KW="auto",fs=[Bn,fa,Wa,Mn],Oi="start",Ws="end",UQ="clippingParents",mI="viewport",gs="popper",FQ="reference",CI=fs.reduce(function(e,t){return e.concat([t+"-"+Oi,t+"-"+Ws])},[]),vI=[].concat(fs,[KW]).reduce(function(e,t){return e.concat([t,t+"-"+Oi,t+"-"+Ws])},[]),zQ="beforeRead",qQ="read",jQ="afterRead",TQ="beforeMain",KQ="main",OQ="afterMain",PQ="beforeWrite",JQ="write",DQ="afterWrite",YQ=[zQ,qQ,jQ,TQ,KQ,OQ,PQ,JQ,DQ];function Ya(e){return e?(e.nodeName||"").toLowerCase():null}function Zn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ll(e){var t=Zn(e).Element;return e instanceof t||e instanceof Element}function ga(e){var t=Zn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function OW(e){if(typeof ShadowRoot>"u")return!1;var t=Zn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZQ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},l=t.elements[n];!ga(l)||!Ya(l)||(Object.assign(l.style,a),Object.keys(r).forEach(function(i){var o=r[i];o===!1?l.removeAttribute(i):l.setAttribute(i,o===!0?"":o)}))})}function NQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],l=t.attributes[a]||{},i=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),o=i.reduce(function(s,p){return s[p]="",s},{});!ga(r)||!Ya(r)||(Object.assign(r.style,o),Object.keys(l).forEach(function(s){r.removeAttribute(s)}))})}}const GQ={name:"applyStyles",enabled:!0,phase:"write",fn:ZQ,effect:NQ,requires:["computeStyles"]};function Za(e){return e.split("-")[0]}var Ql=Math.max,xc=Math.min,Pi=Math.round;function PW(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function yI(){return!/^((?!chrome|android).)*safari/i.test(PW())}function Ji(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),r=1,l=1;t&&ga(e)&&(r=e.offsetWidth>0&&Pi(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Pi(a.height)/e.offsetHeight||1);var i=Ll(e)?Zn(e):window,o=i.visualViewport,s=!yI()&&n,p=(a.left+(s&&o?o.offsetLeft:0))/r,u=(a.top+(s&&o?o.offsetTop:0))/l,c=a.width/r,d=a.height/l;return{width:c,height:d,top:u,right:p+c,bottom:u+d,left:p,x:p,y:u}}function JW(e){var t=Ji(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function II(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&OW(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function mr(e){return Zn(e).getComputedStyle(e)}function XQ(e){return["table","td","th"].indexOf(Ya(e))>=0}function Gr(e){return((Ll(e)?e.ownerDocument:e.document)||window.document).documentElement}function bc(e){return Ya(e)==="html"?e:e.assignedSlot||e.parentNode||(OW(e)?e.host:null)||Gr(e)}function SI(e){return!ga(e)||mr(e).position==="fixed"?null:e.offsetParent}function HQ(e){var t=/firefox/i.test(PW()),n=/Trident/i.test(PW());if(n&&ga(e)){var a=mr(e);if(a.position==="fixed")return null}var r=bc(e);for(OW(r)&&(r=r.host);ga(r)&&["html","body"].indexOf(Ya(r))<0;){var l=mr(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function hs(e){for(var t=Zn(e),n=SI(e);n&&XQ(n)&&mr(n).position==="static";)n=SI(n);return n&&(Ya(n)==="html"||Ya(n)==="body"&&mr(n).position==="static")?t:n||HQ(e)||t}function DW(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ms(e,t,n){return Ql(e,xc(t,n))}function _Q(e,t,n){var a=ms(e,t,n);return a>n?n:a}function EI(){return{top:0,right:0,bottom:0,left:0}}function xI(e){return Object.assign({},EI(),e)}function bI(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var $Q=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xI(typeof t!="number"?t:bI(t,fs))};function eV(e){var t,n=e.state,a=e.name,r=e.options,l=n.elements.arrow,i=n.modifiersData.popperOffsets,o=Za(n.placement),s=DW(o),p=[Mn,Wa].indexOf(o)>=0,u=p?"height":"width";if(!(!l||!i)){var c=$Q(r.padding,n),d=JW(l),f=s==="y"?Bn:Mn,W=s==="y"?fa:Wa,C=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],E=i[s]-n.rects.reference[s],h=hs(l),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,m=C/2-E/2,y=c[f],x=g-d[u]-c[W],S=g/2-d[u]/2+m,k=ms(y,S,x),B=s;n.modifiersData[a]=(t={},t[B]=k,t.centerOffset=k-S,t)}}function tV(e){var t=e.state,n=e.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||II(t.elements.popper,r)&&(t.elements.arrow=r))}const nV={name:"arrow",enabled:!0,phase:"main",fn:eV,effect:tV,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Di(e){return e.split("-")[1]}var aV={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rV(e,t){var n=e.x,a=e.y,r=t.devicePixelRatio||1;return{x:Pi(n*r)/r||0,y:Pi(a*r)/r||0}}function kI(e){var t,n=e.popper,a=e.popperRect,r=e.placement,l=e.variation,i=e.offsets,o=e.position,s=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,c=e.isFixed,d=i.x,f=d===void 0?0:d,W=i.y,C=W===void 0?0:W,E=typeof u=="function"?u({x:f,y:C}):{x:f,y:C};f=E.x,C=E.y;var h=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),m=Mn,y=Bn,x=window;if(p){var S=hs(n),k="clientHeight",B="clientWidth";if(S===Zn(n)&&(S=Gr(n),mr(S).position!=="static"&&o==="absolute"&&(k="scrollHeight",B="scrollWidth")),S=S,r===Bn||(r===Mn||r===Wa)&&l===Ws){y=fa;var V=c&&S===x&&x.visualViewport?x.visualViewport.height:S[k];C-=V-a.height,C*=s?1:-1}if(r===Mn||(r===Bn||r===fa)&&l===Ws){m=Wa;var b=c&&S===x&&x.visualViewport?x.visualViewport.width:S[B];f-=b-a.width,f*=s?1:-1}}var w=Object.assign({position:o},p&&aV),M=u===!0?rV({x:f,y:C},Zn(n)):{x:f,y:C};if(f=M.x,C=M.y,s){var z;return Object.assign({},w,(z={},z[y]=g?"0":"",z[m]=h?"0":"",z.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+C+"px)":"translate3d("+f+"px, "+C+"px, 0)",z))}return Object.assign({},w,(t={},t[y]=g?C+"px":"",t[m]=h?f+"px":"",t.transform="",t))}function lV(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,l=n.adaptive,i=l===void 0?!0:l,o=n.roundOffsets,s=o===void 0?!0:o,p={placement:Za(t.placement),variation:Di(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kI(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kI(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const iV={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lV,data:{}};var kc={passive:!0};function oV(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,l=r===void 0?!0:r,i=a.resize,o=i===void 0?!0:i,s=Zn(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&p.forEach(function(u){u.addEventListener("scroll",n.update,kc)}),o&&s.addEventListener("resize",n.update,kc),function(){l&&p.forEach(function(u){u.removeEventListener("scroll",n.update,kc)}),o&&s.removeEventListener("resize",n.update,kc)}}const sV={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oV,data:{}};var pV={left:"right",right:"left",bottom:"top",top:"bottom"};function Rc(e){return e.replace(/left|right|bottom|top/g,function(t){return pV[t]})}var uV={start:"end",end:"start"};function RI(e){return e.replace(/start|end/g,function(t){return uV[t]})}function YW(e){var t=Zn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ZW(e){return Ji(Gr(e)).left+YW(e).scrollLeft}function cV(e,t){var n=Zn(e),a=Gr(e),r=n.visualViewport,l=a.clientWidth,i=a.clientHeight,o=0,s=0;if(r){l=r.width,i=r.height;var p=yI();(p||!p&&t==="fixed")&&(o=r.offsetLeft,s=r.offsetTop)}return{width:l,height:i,x:o+ZW(e),y:s}}function AV(e){var t,n=Gr(e),a=YW(e),r=(t=e.ownerDocument)==null?void 0:t.body,l=Ql(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Ql(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-a.scrollLeft+ZW(e),s=-a.scrollTop;return mr(r||n).direction==="rtl"&&(o+=Ql(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:i,x:o,y:s}}function NW(e){var t=mr(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function wI(e){return["html","body","#document"].indexOf(Ya(e))>=0?e.ownerDocument.body:ga(e)&&NW(e)?e:wI(bc(e))}function Cs(e,t){var n;t===void 0&&(t=[]);var a=wI(e),r=a===((n=e.ownerDocument)==null?void 0:n.body),l=Zn(a),i=r?[l].concat(l.visualViewport||[],NW(a)?a:[]):a,o=t.concat(i);return r?o:o.concat(Cs(bc(i)))}function GW(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function dV(e,t){var n=Ji(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function BI(e,t,n){return t===mI?GW(cV(e,n)):Ll(t)?dV(t,n):GW(AV(Gr(e)))}function fV(e){var t=Cs(bc(e)),n=["absolute","fixed"].indexOf(mr(e).position)>=0,a=n&&ga(e)?hs(e):e;return Ll(a)?t.filter(function(r){return Ll(r)&&II(r,a)&&Ya(r)!=="body"}):[]}function WV(e,t,n,a){var r=t==="clippingParents"?fV(e):[].concat(t),l=[].concat(r,[n]),i=l[0],o=l.reduce(function(s,p){var u=BI(e,p,a);return s.top=Ql(u.top,s.top),s.right=xc(u.right,s.right),s.bottom=xc(u.bottom,s.bottom),s.left=Ql(u.left,s.left),s},BI(e,i,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function MI(e){var t=e.reference,n=e.element,a=e.placement,r=a?Za(a):null,l=a?Di(a):null,i=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,s;switch(r){case Bn:s={x:i,y:t.y-n.height};break;case fa:s={x:i,y:t.y+t.height};break;case Wa:s={x:t.x+t.width,y:o};break;case Mn:s={x:t.x-n.width,y:o};break;default:s={x:t.x,y:t.y}}var p=r?DW(r):null;if(p!=null){var u=p==="y"?"height":"width";switch(l){case Oi:s[p]=s[p]-(t[u]/2-n[u]/2);break;case Ws:s[p]=s[p]+(t[u]/2-n[u]/2);break}}return s}function vs(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,l=n.strategy,i=l===void 0?e.strategy:l,o=n.boundary,s=o===void 0?UQ:o,p=n.rootBoundary,u=p===void 0?mI:p,c=n.elementContext,d=c===void 0?gs:c,f=n.altBoundary,W=f===void 0?!1:f,C=n.padding,E=C===void 0?0:C,h=xI(typeof E!="number"?E:bI(E,fs)),g=d===gs?FQ:gs,m=e.rects.popper,y=e.elements[W?g:d],x=WV(Ll(y)?y:y.contextElement||Gr(e.elements.popper),s,u,i),S=Ji(e.elements.reference),k=MI({reference:S,element:m,placement:r}),B=GW(Object.assign({},m,k)),V=d===gs?B:S,b={top:x.top-V.top+h.top,bottom:V.bottom-x.bottom+h.bottom,left:x.left-V.left+h.left,right:V.right-x.right+h.right},w=e.modifiersData.offset;if(d===gs&&w){var M=w[r];Object.keys(b).forEach(function(z){var F=[Wa,fa].indexOf(z)>=0?1:-1,T=[Bn,fa].indexOf(z)>=0?"y":"x";b[z]+=M[T]*F})}return b}function gV(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,l=n.rootBoundary,i=n.padding,o=n.flipVariations,s=n.allowedAutoPlacements,p=s===void 0?vI:s,u=Di(a),c=u?o?CI:CI.filter(function(W){return Di(W)===u}):fs,d=c.filter(function(W){return p.indexOf(W)>=0});d.length===0&&(d=c);var f=d.reduce(function(W,C){return W[C]=vs(e,{placement:C,boundary:r,rootBoundary:l,padding:i})[Za(C)],W},{});return Object.keys(f).sort(function(W,C){return f[W]-f[C]})}function hV(e){if(Za(e)===KW)return[];var t=Rc(e);return[RI(e),t,RI(t)]}function mV(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,o=i===void 0?!0:i,s=n.fallbackPlacements,p=n.padding,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.flipVariations,W=f===void 0?!0:f,C=n.allowedAutoPlacements,E=t.options.placement,h=Za(E),g=h===E,m=s||(g||!W?[Rc(E)]:hV(E)),y=[E].concat(m).reduce(function(te,re){return te.concat(Za(re)===KW?gV(t,{placement:re,boundary:u,rootBoundary:c,padding:p,flipVariations:W,allowedAutoPlacements:C}):re)},[]),x=t.rects.reference,S=t.rects.popper,k=new Map,B=!0,V=y[0],b=0;b<y.length;b++){var w=y[b],M=Za(w),z=Di(w)===Oi,F=[Bn,fa].indexOf(M)>=0,T=F?"width":"height",U=vs(t,{placement:w,boundary:u,rootBoundary:c,altBoundary:d,padding:p}),q=F?z?Wa:Mn:z?fa:Bn;x[T]>S[T]&&(q=Rc(q));var Q=Rc(q),K=[];if(l&&K.push(U[M]<=0),o&&K.push(U[q]<=0,U[Q]<=0),K.every(function(te){return te})){V=w,B=!1;break}k.set(w,K)}if(B)for(var R=W?3:1,X=function(re){var oe=y.find(function(ve){var fe=k.get(ve);if(fe)return fe.slice(0,re).every(function(he){return he})});if(oe)return V=oe,"break"},G=R;G>0;G--){var L=X(G);if(L==="break")break}t.placement!==V&&(t.modifiersData[a]._skip=!0,t.placement=V,t.reset=!0)}}const CV={name:"flip",enabled:!0,phase:"main",fn:mV,requiresIfExists:["offset"],data:{_skip:!1}};function LI(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QI(e){return[Bn,Wa,fa,Mn].some(function(t){return e[t]>=0})}function vV(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,i=vs(t,{elementContext:"reference"}),o=vs(t,{altBoundary:!0}),s=LI(i,a),p=LI(o,r,l),u=QI(s),c=QI(p);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}const yV={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vV};function IV(e,t,n){var a=Za(e),r=[Mn,Bn].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=l[0],o=l[1];return i=i||0,o=(o||0)*r,[Mn,Wa].indexOf(a)>=0?{x:o,y:i}:{x:i,y:o}}function SV(e){var t=e.state,n=e.options,a=e.name,r=n.offset,l=r===void 0?[0,0]:r,i=vI.reduce(function(u,c){return u[c]=IV(c,t.rects,l),u},{}),o=i[t.placement],s=o.x,p=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=p),t.modifiersData[a]=i}const EV={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:SV};function xV(e){var t=e.state,n=e.name;t.modifiersData[n]=MI({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const bV={name:"popperOffsets",enabled:!0,phase:"read",fn:xV,data:{}};function kV(e){return e==="x"?"y":"x"}function RV(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,o=i===void 0?!1:i,s=n.boundary,p=n.rootBoundary,u=n.altBoundary,c=n.padding,d=n.tether,f=d===void 0?!0:d,W=n.tetherOffset,C=W===void 0?0:W,E=vs(t,{boundary:s,rootBoundary:p,padding:c,altBoundary:u}),h=Za(t.placement),g=Di(t.placement),m=!g,y=DW(h),x=kV(y),S=t.modifiersData.popperOffsets,k=t.rects.reference,B=t.rects.popper,V=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,b=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(l){var z,F=y==="y"?Bn:Mn,T=y==="y"?fa:Wa,U=y==="y"?"height":"width",q=S[y],Q=q+E[F],K=q-E[T],R=f?-B[U]/2:0,X=g===Oi?k[U]:B[U],G=g===Oi?-B[U]:-k[U],L=t.elements.arrow,te=f&&L?JW(L):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:EI(),oe=re[F],ve=re[T],fe=ms(0,k[U],te[U]),he=m?k[U]/2-R-fe-oe-b.mainAxis:X-fe-oe-b.mainAxis,ze=m?-k[U]/2+R+fe+ve+b.mainAxis:G+fe+ve+b.mainAxis,_=t.elements.arrow&&hs(t.elements.arrow),ee=_?y==="y"?_.clientTop||0:_.clientLeft||0:0,ge=(z=w==null?void 0:w[y])!=null?z:0,Ce=q+he-ge-ee,se=q+ze-ge,ue=ms(f?xc(Q,Ce):Q,q,f?Ql(K,se):K);S[y]=ue,M[y]=ue-q}if(o){var Te,ne=y==="x"?Bn:Mn,Le=y==="x"?fa:Wa,Me=S[x],ye=x==="y"?"height":"width",Ze=Me+E[ne],Qe=Me-E[Le],Fe=[Bn,Mn].indexOf(h)!==-1,P=(Te=w==null?void 0:w[x])!=null?Te:0,j=Fe?Ze:Me-k[ye]-B[ye]-P+b.altAxis,O=Fe?Me+k[ye]+B[ye]-P-b.altAxis:Qe,Z=f&&Fe?_Q(j,Me,O):ms(f?j:Ze,Me,f?O:Qe);S[x]=Z,M[x]=Z-Me}t.modifiersData[a]=M}}const wV={name:"preventOverflow",enabled:!0,phase:"main",fn:RV,requiresIfExists:["offset"]};function BV(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function MV(e){return e===Zn(e)||!ga(e)?YW(e):BV(e)}function LV(e){var t=e.getBoundingClientRect(),n=Pi(t.width)/e.offsetWidth||1,a=Pi(t.height)/e.offsetHeight||1;return n!==1||a!==1}function QV(e,t,n){n===void 0&&(n=!1);var a=ga(t),r=ga(t)&&LV(t),l=Gr(t),i=Ji(e,r,n),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(a||!a&&!n)&&((Ya(t)!=="body"||NW(l))&&(o=MV(t)),ga(t)?(s=Ji(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):l&&(s.x=ZW(l))),{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}function VV(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function r(l){n.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(o){if(!n.has(o)){var s=t.get(o);s&&r(s)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||r(l)}),a}function UV(e){var t=VV(e);return YQ.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function FV(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zV(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var VI={placement:"bottom",modifiers:[],strategy:"absolute"};function UI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function qV(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,l=r===void 0?VI:r;return function(o,s,p){p===void 0&&(p=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},VI,l),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],d=!1,f={state:u,setOptions:function(h){var g=typeof h=="function"?h(u.options):h;C(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:Ll(o)?Cs(o):o.contextElement?Cs(o.contextElement):[],popper:Cs(s)};var m=UV(zV([].concat(a,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),W(),f.update()},forceUpdate:function(){if(!d){var h=u.elements,g=h.reference,m=h.popper;if(UI(g,m)){u.rects={reference:QV(g,hs(m),u.options.strategy==="fixed"),popper:JW(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(b){return u.modifiersData[b.name]=Object.assign({},b.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var x=u.orderedModifiers[y],S=x.fn,k=x.options,B=k===void 0?{}:k,V=x.name;typeof S=="function"&&(u=S({state:u,options:B,name:V,instance:f})||u)}}}},update:FV(function(){return new Promise(function(E){f.forceUpdate(),E(u)})}),destroy:function(){C(),d=!0}};if(!UI(o,s))return f;f.setOptions(p).then(function(E){!d&&p.onFirstUpdate&&p.onFirstUpdate(E)});function W(){u.orderedModifiers.forEach(function(E){var h=E.name,g=E.options,m=g===void 0?{}:g,y=E.effect;if(typeof y=="function"){var x=y({state:u,name:h,instance:f,options:m}),S=function(){};c.push(x||S)}})}function C(){c.forEach(function(E){return E()}),c=[]}return f}}var jV=[sV,bV,iV,GQ,EV,CV,wV,nV,yV],TV=qV({defaultModifiers:jV});function KV(e){return typeof e=="function"?e():e}const FI=v.forwardRef(function(t,n){const{children:a,container:r,disablePortal:l=!1}=t,[i,o]=v.useState(null),s=wt(v.isValidElement(a)?Rl(a):null,n);if(pa(()=>{l||o(KV(r)||document.body)},[r,l]),pa(()=>{if(i&&!l)return us(n,i),()=>{us(n,null)}},[n,i,l]),l){if(v.isValidElement(a)){const p={ref:s};return v.cloneElement(a,p)}return A.jsx(v.Fragment,{children:a})}return A.jsx(v.Fragment,{children:i&&Uf.createPortal(a,i)})});function OV(e){return Ee("MuiPopper",e)}xe("MuiPopper",["root"]);const PV=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],JV=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function DV(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function XW(e){return typeof e=="function"?e():e}function YV(e){return e.nodeType!==void 0}const ZV=e=>{const{classes:t}=e;return be({root:["root"]},OV,t)},NV={},GV=v.forwardRef(function(t,n){var a;const{anchorEl:r,children:l,direction:i,disablePortal:o,modifiers:s,open:p,placement:u,popperOptions:c,popperRef:d,slotProps:f={},slots:W={},TransitionProps:C}=t,E=ie(t,PV),h=v.useRef(null),g=wt(h,n),m=v.useRef(null),y=wt(m,d),x=v.useRef(y);pa(()=>{x.current=y},[y]),v.useImperativeHandle(d,()=>m.current,[]);const S=DV(u,i),[k,B]=v.useState(S),[V,b]=v.useState(XW(r));v.useEffect(()=>{m.current&&m.current.forceUpdate()}),v.useEffect(()=>{r&&b(XW(r))},[r]),pa(()=>{if(!V||!p)return;const T=Q=>{B(Q.placement)};let U=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Q})=>{T(Q)}}];s!=null&&(U=U.concat(s)),c&&c.modifiers!=null&&(U=U.concat(c.modifiers));const q=TV(V,h.current,I({placement:S},c,{modifiers:U}));return x.current(q),()=>{q.destroy(),x.current(null)}},[V,o,s,p,c,S]);const w={placement:k};C!==null&&(w.TransitionProps=C);const M=ZV(t),z=(a=W.root)!=null?a:"div",F=kl({elementType:z,externalSlotProps:f.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:M.root});return A.jsx(z,I({},F,{children:typeof l=="function"?l(w):l}))}),XV=v.forwardRef(function(t,n){const{anchorEl:a,children:r,container:l,direction:i="ltr",disablePortal:o=!1,keepMounted:s=!1,modifiers:p,open:u,placement:c="bottom",popperOptions:d=NV,popperRef:f,style:W,transition:C=!1,slotProps:E={},slots:h={}}=t,g=ie(t,JV),[m,y]=v.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!u&&(!C||m))return null;let k;if(l)k=l;else if(a){const b=XW(a);k=b&&YV(b)?un(b).body:un(null).body}const B=!u&&s&&(!C||m)?"none":void 0,V=C?{in:u,onEnter:x,onExited:S}:void 0;return A.jsx(FI,{disablePortal:o,container:k,children:A.jsx(GV,I({anchorEl:a,direction:i,disablePortal:o,modifiers:p,ref:n,open:C?!m:u,placement:c,popperOptions:d,popperRef:f,slotProps:E,slots:h},g,{style:I({position:"fixed",top:0,left:0,display:B},W),TransitionProps:V,children:r}))})}),HV=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],_V=H(XV,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wc=v.forwardRef(function(t,n){var a;const r=gI(),l=we({props:t,name:"MuiPopper"}),{anchorEl:i,component:o,components:s,componentsProps:p,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:C,popperOptions:E,popperRef:h,transition:g,slots:m,slotProps:y}=l,x=ie(l,HV),S=(a=m==null?void 0:m.root)!=null?a:s==null?void 0:s.Root,k=I({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:f,open:W,placement:C,popperOptions:E,popperRef:h,transition:g},x);return A.jsx(_V,I({as:o,direction:r==null?void 0:r.direction,slots:{root:S},slotProps:y??p},k,{ref:n}))});function $V(e){return Ee("MuiListSubheader",e)}xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const e5=["className","color","component","disableGutters","disableSticky","inset"],t5=e=>{const{classes:t,color:n,disableGutters:a,inset:r,disableSticky:l}=e,i={root:["root",n!=="default"&&`color${$(n)}`,!a&&"gutters",r&&"inset",!l&&"sticky"]};return be(i,$V,t)},n5=H("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${$(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>I({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),zI=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiListSubheader"}),{className:r,color:l="default",component:i="li",disableGutters:o=!1,disableSticky:s=!1,inset:p=!1}=a,u=ie(a,e5),c=I({},a,{color:l,component:i,disableGutters:o,disableSticky:s,inset:p}),d=t5(c);return A.jsx(n5,I({as:i,className:pe(d.root,r),ref:n,ownerState:c},u))});zI.muiSkipListHighlight=!0;const a5=an(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function r5(e){return Ee("MuiChip",e)}const at=xe("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),l5=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],i5=e=>{const{classes:t,disabled:n,size:a,color:r,iconColor:l,onDelete:i,clickable:o,variant:s}=e,p={root:["root",s,n&&"disabled",`size${$(a)}`,`color${$(r)}`,o&&"clickable",o&&`clickableColor${$(r)}`,i&&"deletable",i&&`deletableColor${$(r)}`,`${s}${$(r)}`],label:["label",`label${$(a)}`],avatar:["avatar",`avatar${$(a)}`,`avatarColor${$(r)}`],icon:["icon",`icon${$(a)}`,`iconColor${$(l)}`],deleteIcon:["deleteIcon",`deleteIcon${$(a)}`,`deleteIconColor${$(r)}`,`deleteIcon${$(s)}Color${$(r)}`]};return be(p,r5,t)},o5=H("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:a,iconColor:r,clickable:l,onDelete:i,size:o,variant:s}=n;return[{[`& .${at.avatar}`]:t.avatar},{[`& .${at.avatar}`]:t[`avatar${$(o)}`]},{[`& .${at.avatar}`]:t[`avatarColor${$(a)}`]},{[`& .${at.icon}`]:t.icon},{[`& .${at.icon}`]:t[`icon${$(o)}`]},{[`& .${at.icon}`]:t[`iconColor${$(r)}`]},{[`& .${at.deleteIcon}`]:t.deleteIcon},{[`& .${at.deleteIcon}`]:t[`deleteIcon${$(o)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIconColor${$(a)}`]},{[`& .${at.deleteIcon}`]:t[`deleteIcon${$(s)}Color${$(a)}`]},t.root,t[`size${$(o)}`],t[`color${$(a)}`],l&&t.clickable,l&&a!=="default"&&t[`clickableColor${$(a)})`],i&&t.deletable,i&&a!=="default"&&t[`deletableColor${$(a)}`],t[s],t[`${s}${$(a)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return I({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${at.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${at.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${at.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${at.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${at.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${at.icon}`]:I({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&I({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${at.deleteIcon}`]:I({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:mt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:mt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:mt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>I({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>I({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${at.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${at.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${at.avatar}`]:{marginLeft:4},[`& .${at.avatarSmall}`]:{marginLeft:2},[`& .${at.icon}`]:{marginLeft:4},[`& .${at.iconSmall}`]:{marginLeft:2},[`& .${at.deleteIcon}`]:{marginRight:5},[`& .${at.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7)}`,[`&.${at.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${at.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:mt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${at.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:mt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),s5=H("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:a}=n;return[t.label,t[`label${$(a)}`]]}})(({ownerState:e})=>I({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function qI(e){return e.key==="Backspace"||e.key==="Delete"}const ha=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiChip"}),{avatar:r,className:l,clickable:i,color:o="default",component:s,deleteIcon:p,disabled:u=!1,icon:c,label:d,onClick:f,onDelete:W,onKeyDown:C,onKeyUp:E,size:h="medium",variant:g="filled",tabIndex:m,skipFocusWhenDisabled:y=!1}=a,x=ie(a,l5),S=v.useRef(null),k=wt(S,n),B=K=>{K.stopPropagation(),W&&W(K)},V=K=>{K.currentTarget===K.target&&qI(K)&&K.preventDefault(),C&&C(K)},b=K=>{K.currentTarget===K.target&&(W&&qI(K)?W(K):K.key==="Escape"&&S.current&&S.current.blur()),E&&E(K)},w=i!==!1&&f?!0:i,M=w||W?Ki:s||"div",z=I({},a,{component:M,disabled:u,size:h,color:o,iconColor:v.isValidElement(c)&&c.props.color||o,onDelete:!!W,clickable:w,variant:g}),F=i5(z),T=M===Ki?I({component:s||"div",focusVisibleClassName:F.focusVisible},W&&{disableRipple:!0}):{};let U=null;W&&(U=p&&v.isValidElement(p)?v.cloneElement(p,{className:pe(p.props.className,F.deleteIcon),onClick:B}):A.jsx(a5,{className:pe(F.deleteIcon),onClick:B}));let q=null;r&&v.isValidElement(r)&&(q=v.cloneElement(r,{className:pe(F.avatar,r.props.className)}));let Q=null;return c&&v.isValidElement(c)&&(Q=v.cloneElement(c,{className:pe(F.icon,c.props.className)})),A.jsxs(o5,I({as:M,className:pe(F.root,l),disabled:w&&u?!0:void 0,onClick:f,onKeyDown:V,onKeyUp:b,ref:k,tabIndex:y&&u?-1:m,ownerState:z},T,x,{children:[q||Q,A.jsx(s5,{className:pe(F.label),ownerState:z,children:d}),U]}))}),p5=["onChange","maxRows","minRows","style","value"];function Bc(e){return parseInt(e,10)||0}const u5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function c5(e){for(const t in e)return!1;return!0}function jI(e){return c5(e)||e.outerHeightStyle===0&&!e.overflowing}const A5=v.forwardRef(function(t,n){const{onChange:a,maxRows:r,minRows:l=1,style:i,value:o}=t,s=ie(t,p5),{current:p}=v.useRef(o!=null),u=v.useRef(null),c=wt(n,u),d=v.useRef(null),f=v.useRef(null),W=v.useCallback(()=>{const m=u.current,y=f.current;if(!m||!y)return;const S=Da(m).getComputedStyle(m);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=m.value||t.placeholder||"x",y.value.slice(-1)===`
155
+ `&&(y.value+=" ");const k=S.boxSizing,B=Bc(S.paddingBottom)+Bc(S.paddingTop),V=Bc(S.borderBottomWidth)+Bc(S.borderTopWidth),b=y.scrollHeight;y.value="x";const w=y.scrollHeight;let M=b;l&&(M=Math.max(Number(l)*w,M)),r&&(M=Math.min(Number(r)*w,M)),M=Math.max(M,w);const z=M+(k==="border-box"?B+V:0),F=Math.abs(M-b)<=1;return{outerHeightStyle:z,overflowing:F}},[r,l,t.placeholder]),C=wn(()=>{const m=u.current,y=W();if(!m||!y||jI(y))return!1;const x=y.outerHeightStyle;return d.current!=null&&d.current!==x}),E=v.useCallback(()=>{const m=u.current,y=W();if(!m||!y||jI(y))return;const x=y.outerHeightStyle;d.current!==x&&(d.current=x,m.style.height=`${x}px`),m.style.overflow=y.overflowing?"hidden":""},[W]),h=v.useRef(-1);pa(()=>{const m=cc(E),y=u==null?void 0:u.current;if(!y)return;const x=Da(y);x.addEventListener("resize",m);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{C()&&(S.unobserve(y),cancelAnimationFrame(h.current),E(),h.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{m.clear(),cancelAnimationFrame(h.current),x.removeEventListener("resize",m),S&&S.disconnect()}},[W,E,C]),pa(()=>{E()});const g=m=>{p||E(),a&&a(m)};return A.jsxs(v.Fragment,{children:[A.jsx("textarea",I({value:o,onChange:g,ref:c,rows:l,style:i},s)),A.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:I({},u5.shadow,i,{paddingTop:0,paddingBottom:0})})]})});function Xr({props:e,states:t,muiFormControl:n}){return t.reduce((a,r)=>(a[r]=e[r],n&&typeof e[r]>"u"&&(a[r]=n[r]),a),{})}const Mc=v.createContext(void 0);function Na(){return v.useContext(Mc)}function d5(e){return A.jsx(p1,I({},e,{defaultTheme:wW,themeId:Mi}))}function TI(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Lc(e,t=!1){return e&&(TI(e.value)&&e.value!==""||t&&TI(e.defaultValue)&&e.defaultValue!=="")}function f5(e){return e.startAdornment}function W5(e){return Ee("MuiInputBase",e)}const Nn=xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),g5=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Qc=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${$(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Vc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},h5=e=>{const{classes:t,color:n,disabled:a,error:r,endAdornment:l,focused:i,formControl:o,fullWidth:s,hiddenLabel:p,multiline:u,readOnly:c,size:d,startAdornment:f,type:W}=e,C={root:["root",`color${$(n)}`,a&&"disabled",r&&"error",s&&"fullWidth",i&&"focused",o&&"formControl",d&&d!=="medium"&&`size${$(d)}`,u&&"multiline",f&&"adornedStart",l&&"adornedEnd",p&&"hiddenLabel",c&&"readOnly"],input:["input",a&&"disabled",W==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",f&&"inputAdornedStart",l&&"inputAdornedEnd",c&&"readOnly"]};return be(C,W5,t)},Uc=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>I({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fc=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",a=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return I({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Nn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":l,"&:focus::-moz-placeholder":l,"&:focus:-ms-input-placeholder":l,"&:focus::-ms-input-placeholder":l},[`&.${Nn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),m5=A.jsx(d5,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),HW=v.forwardRef(function(t,n){var a;const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:i,autoFocus:o,className:s,components:p={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:f,endAdornment:W,fullWidth:C=!1,id:E,inputComponent:h="input",inputProps:g={},inputRef:m,maxRows:y,minRows:x,multiline:S=!1,name:k,onBlur:B,onChange:V,onClick:b,onFocus:w,onKeyDown:M,onKeyUp:z,placeholder:F,readOnly:T,renderSuffix:U,rows:q,slotProps:Q={},slots:K={},startAdornment:R,type:X="text",value:G}=r,L=ie(r,g5),te=g.value!=null?g.value:G,{current:re}=v.useRef(te!=null),oe=v.useRef(),ve=v.useCallback(Z=>{},[]),fe=wt(oe,m,g.ref,ve),[he,ze]=v.useState(!1),_=Na(),ee=Xr({props:r,muiFormControl:_,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ee.focused=_?_.focused:he,v.useEffect(()=>{!_&&d&&he&&(ze(!1),B&&B())},[_,d,he,B]);const ge=_&&_.onFilled,Ce=_&&_.onEmpty,se=v.useCallback(Z=>{Lc(Z)?ge&&ge():Ce&&Ce()},[ge,Ce]);pa(()=>{re&&se({value:te})},[te,se,re]);const ue=Z=>{if(ee.disabled){Z.stopPropagation();return}w&&w(Z),g.onFocus&&g.onFocus(Z),_&&_.onFocus?_.onFocus(Z):ze(!0)},Te=Z=>{B&&B(Z),g.onBlur&&g.onBlur(Z),_&&_.onBlur?_.onBlur(Z):ze(!1)},ne=(Z,...Y)=>{if(!re){const de=Z.target||oe.current;if(de==null)throw new Error(fr(1));se({value:de.value})}g.onChange&&g.onChange(Z,...Y),V&&V(Z,...Y)};v.useEffect(()=>{se(oe.current)},[]);const Le=Z=>{oe.current&&Z.currentTarget===Z.target&&oe.current.focus(),b&&b(Z)};let Me=h,ye=g;S&&Me==="input"&&(q?ye=I({type:void 0,minRows:q,maxRows:q},ye):ye=I({type:void 0,maxRows:y,minRows:x},ye),Me=A5);const Ze=Z=>{se(Z.animationName==="mui-auto-fill-cancel"?oe.current:{value:"x"})};v.useEffect(()=>{_&&_.setAdornedStart(!!R)},[_,R]);const Qe=I({},r,{color:ee.color||"primary",disabled:ee.disabled,endAdornment:W,error:ee.error,focused:ee.focused,formControl:_,fullWidth:C,hiddenLabel:ee.hiddenLabel,multiline:S,size:ee.size,startAdornment:R,type:X}),Fe=h5(Qe),P=K.root||p.Root||Uc,j=Q.root||u.root||{},O=K.input||p.Input||Fc;return ye=I({},ye,(a=Q.input)!=null?a:u.input),A.jsxs(v.Fragment,{children:[!f&&m5,A.jsxs(P,I({},j,!fc(P)&&{ownerState:I({},Qe,j.ownerState)},{ref:n,onClick:Le},L,{className:pe(Fe.root,j.className,s,T&&"MuiInputBase-readOnly"),children:[R,A.jsx(Mc.Provider,{value:null,children:A.jsx(O,I({ownerState:Qe,"aria-invalid":ee.error,"aria-describedby":l,autoComplete:i,autoFocus:o,defaultValue:c,disabled:ee.disabled,id:E,onAnimationStart:Ze,name:k,placeholder:F,readOnly:T,required:ee.required,rows:q,value:te,onKeyDown:M,onKeyUp:z,type:X},ye,!fc(O)&&{as:Me,ownerState:I({},Qe,ye.ownerState)},{ref:fe,className:pe(Fe.input,ye.className,T&&"MuiInputBase-readOnly"),onBlur:Te,onChange:ne,onFocus:ue}))}),W,U?U(I({},ee,{startAdornment:R})):null]}))]})});function C5(e){return Ee("MuiInput",e)}const Hr=I({},Nn,xe("MuiInput",["root","underline","input"]));function v5(e){return Ee("MuiOutlinedInput",e)}const Ga=I({},Nn,xe("MuiOutlinedInput",["root","notchedOutline","input"]));function y5(e){return Ee("MuiFilledInput",e)}const Gn=I({},Nn,xe("MuiFilledInput",["root","underline","input"])),KI=an(A.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function I5(e){return Ee("MuiAutocomplete",e)}const Ye=xe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var OI,PI;const S5=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],E5=["ref"],x5=["key"],b5=["key"],k5=e=>{const{classes:t,disablePortal:n,expanded:a,focused:r,fullWidth:l,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,popupOpen:p,size:u}=e,c={root:["root",a&&"expanded",r&&"focused",l&&"fullWidth",i&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag",`tagSize${$(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return be(c,I5,t)},R5=H("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:a,hasClearIcon:r,hasPopupIcon:l,inputFocused:i,size:o}=n;return[{[`& .${Ye.tag}`]:t.tag},{[`& .${Ye.tag}`]:t[`tagSize${$(o)}`]},{[`& .${Ye.inputRoot}`]:t.inputRoot},{[`& .${Ye.input}`]:t.input},{[`& .${Ye.input}`]:i&&t.inputFocused},t.root,a&&t.fullWidth,l&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${Ye.focused} .${Ye.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ye.clearIndicator}`]:{visibility:"visible"}},[`& .${Ye.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ye.inputRoot}`]:{[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:30},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:56},[`& .${Ye.input}`]:{width:0,minWidth:30}},[`& .${Hr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Hr.root}.${Nn.sizeSmall}`]:{[`& .${Hr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ga.root}`]:{padding:9,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${Ye.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${Ga.root}.${Nn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ye.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Gn.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ye.hasPopupIcon}&, .${Ye.hasClearIcon}&`]:{paddingRight:39},[`.${Ye.hasPopupIcon}.${Ye.hasClearIcon}&`]:{paddingRight:65},[`& .${Gn.input}`]:{padding:"7px 4px"},[`& .${Ye.endAdornment}`]:{right:9}},[`& .${Gn.root}.${Nn.sizeSmall}`]:{paddingBottom:1,[`& .${Gn.input}`]:{padding:"2.5px 4px"}},[`& .${Nn.hiddenLabel}`]:{paddingTop:8},[`& .${Gn.root}.${Nn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ye.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Gn.root}.${Nn.hiddenLabel}.${Nn.sizeSmall}`]:{[`& .${Ye.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ye.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ye.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ye.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ye.inputRoot}`]:{flexWrap:"wrap"}}}]}),w5=H("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),B5=H(da,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),M5=H(da,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>I({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),L5=H(wc,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ye.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),Q5=H(Dt,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>I({},e.typography.body1,{overflow:"auto"})),V5=H("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),U5=H("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),F5=H("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ye.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${Ye.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Ye.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ye.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ye.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),z5=H(zI,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),q5=H("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${Ye.option}`]:{paddingLeft:24}}),_W=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiAutocomplete"}),{autoComplete:s=!1,autoHighlight:p=!1,autoSelect:u=!1,blurOnSelect:c=!1,ChipProps:d,className:f,clearIcon:W=OI||(OI=A.jsx(uI,{fontSize:"small"})),clearOnBlur:C=!o.freeSolo,clearOnEscape:E=!1,clearText:h="Clear",closeText:g="Close",componentsProps:m={},defaultValue:y=o.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:S=!1,disabled:k=!1,disabledItemsFocusable:B=!1,disableListWrap:V=!1,disablePortal:b=!1,filterSelectedOptions:w=!1,forcePopupIcon:M="auto",freeSolo:z=!1,fullWidth:F=!1,getLimitTagsText:T=J=>`+${J}`,getOptionLabel:U,groupBy:q,handleHomeEndKeys:Q=!o.freeSolo,includeInputInList:K=!1,limitTags:R=-1,ListboxComponent:X="ul",ListboxProps:G,loading:L=!1,loadingText:te="Loading…",multiple:re=!1,noOptionsText:oe="No options",openOnFocus:ve=!1,openText:fe="Open",PaperComponent:he=Dt,PopperComponent:ze=wc,popupIcon:_=PI||(PI=A.jsx(KI,{})),readOnly:ee=!1,renderGroup:ge,renderInput:Ce,renderOption:se,renderTags:ue,selectOnFocus:Te=!o.freeSolo,size:ne="medium",slotProps:Le={}}=o,Me=ie(o,S5),{getRootProps:ye,getInputProps:Ze,getInputLabelProps:Qe,getPopupIndicatorProps:Fe,getClearProps:P,getTagProps:j,getListboxProps:O,getOptionProps:Z,value:Y,dirty:de,expanded:je,id:Xe,popupOpen:ce,focused:Re,focusedTag:Ve,anchorEl:Pe,setAnchorEl:dt,inputValue:$e,groupedOptions:Je}=wQ(I({},o,{componentName:"Autocomplete"})),De=!x&&!k&&de&&!ee,ot=(!z||M===!0)&&M!==!1,{onMouseDown:Ht}=Ze(),{ref:ke}=G??{},Ot=O(),{ref:it}=Ot,zt=ie(Ot,E5),_t=wt(it,ke),ya=U||(J=>{var Ae;return(Ae=J.label)!=null?Ae:J}),Qt=I({},o,{disablePortal:b,expanded:je,focused:Re,fullWidth:F,getOptionLabel:ya,hasClearIcon:De,hasPopupIcon:ot,inputFocused:Ve===-1,popupOpen:ce,size:ne}),xt=k5(Qt);let vn;if(re&&Y.length>0){const J=Ae=>I({className:xt.tag,disabled:k},j(Ae));ue?vn=ue(Y,J,Qt):vn=Y.map((Ae,Se)=>{const Ne=J({index:Se}),{key:Ie}=Ne,et=ie(Ne,x5);return A.jsx(ha,I({label:ya(Ae),size:ne},et,d),Ie)})}if(R>-1&&Array.isArray(vn)){const J=vn.length-R;!Re&&J>0&&(vn=vn.splice(0,R),vn.push(A.jsx("span",{className:xt.tag,children:T(J)},vn.length)))}const Er=ge||(J=>A.jsxs("li",{children:[A.jsx(z5,{className:xt.groupLabel,ownerState:Qt,component:"div",children:J.group}),A.jsx(q5,{className:xt.groupUl,ownerState:Qt,children:J.children})]},J.key)),xr=se||((J,Ae)=>{const{key:Se}=J,Ne=ie(J,b5);return A.jsx("li",I({},Ne,{children:ya(Ae)}),Se)}),il=(J,Ae)=>{const Se=Z({option:J,index:Ae});return xr(I({},Se,{className:xt.option}),J,{selected:Se["aria-selected"],index:Ae,inputValue:$e},Qt)},ol=(a=Le.clearIndicator)!=null?a:m.clearIndicator,tr=(r=Le.paper)!=null?r:m.paper,br=(l=Le.popper)!=null?l:m.popper,N=(i=Le.popupIndicator)!=null?i:m.popupIndicator;return A.jsxs(v.Fragment,{children:[A.jsx(R5,I({ref:n,className:pe(xt.root,f),ownerState:Qt},ye(Me),{children:Ce({id:Xe,disabled:k,fullWidth:!0,size:ne==="small"?"small":void 0,InputLabelProps:Qe(),InputProps:I({ref:dt,className:xt.inputRoot,startAdornment:vn,onClick:J=>{J.target===J.currentTarget&&Ht(J)}},(De||ot)&&{endAdornment:A.jsxs(w5,{className:xt.endAdornment,ownerState:Qt,children:[De?A.jsx(B5,I({},P(),{"aria-label":h,title:h,ownerState:Qt},ol,{className:pe(xt.clearIndicator,ol==null?void 0:ol.className),children:W})):null,ot?A.jsx(M5,I({},Fe(),{disabled:k,"aria-label":ce?g:fe,title:ce?g:fe,ownerState:Qt},N,{className:pe(xt.popupIndicator,N==null?void 0:N.className),children:_})):null]})}),inputProps:I({className:xt.input,disabled:k,readOnly:ee},Ze())})})),Pe?A.jsx(L5,I({as:ze,disablePortal:b,style:{width:Pe?Pe.clientWidth:null},ownerState:Qt,role:"presentation",anchorEl:Pe,open:ce},br,{className:pe(xt.popper,br==null?void 0:br.className),children:A.jsxs(Q5,I({ownerState:Qt,as:he},tr,{className:pe(xt.paper,tr==null?void 0:tr.className),children:[L&&Je.length===0?A.jsx(V5,{className:xt.loading,ownerState:Qt,children:te}):null,Je.length===0&&!z&&!L?A.jsx(U5,{className:xt.noOptions,ownerState:Qt,role:"presentation",onMouseDown:J=>{J.preventDefault()},children:oe}):null,Je.length>0?A.jsx(F5,I({as:X,className:xt.listbox,ownerState:Qt},zt,G,{ref:_t,children:Je.map((J,Ae)=>q?Er({key:J.key,group:J.group,children:J.options.map((Se,Ne)=>il(Se,J.index+Ne))}):il(J,Ae))})):null]}))})):null]})}),j5=an(A.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function T5(e){return Ee("MuiAvatar",e)}xe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const K5=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],O5=e=>{const{classes:t,variant:n,colorDefault:a}=e;return be({root:["root",n,a&&"colorDefault"],img:["img"],fallback:["fallback"]},T5,t)},P5=H("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:I({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:I({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),J5=H("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),D5=H(j5,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Y5({crossOrigin:e,referrerPolicy:t,src:n,srcSet:a}){const[r,l]=v.useState(!1);return v.useEffect(()=>{if(!n&&!a)return;l(!1);let i=!0;const o=new Image;return o.onload=()=>{i&&l("loaded")},o.onerror=()=>{i&&l("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,a&&(o.srcset=a),()=>{i=!1}},[e,t,n,a]),r}const Cr=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiAvatar"}),{alt:r,children:l,className:i,component:o="div",slots:s={},slotProps:p={},imgProps:u,sizes:c,src:d,srcSet:f,variant:W="circular"}=a,C=ie(a,K5);let E=null;const h=Y5(I({},u,{src:d,srcSet:f})),g=d||f,m=g&&h!=="error",y=I({},a,{colorDefault:!m,component:o,variant:W}),x=O5(y),[S,k]=zW("img",{className:x.img,elementType:J5,externalForwardedProps:{slots:s,slotProps:{img:I({},u,p.img)}},additionalProps:{alt:r,src:d,srcSet:f,sizes:c},ownerState:y});return m?E=A.jsx(S,I({},k)):l||l===0?E=l:g&&r?E=r[0]:E=A.jsx(D5,{ownerState:y,className:x.fallback}),A.jsx(P5,I({as:o,ownerState:y,className:pe(x.root,i),ref:n},C,{children:E}))}),Z5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],N5={entering:{opacity:1},entered:{opacity:1}},JI=v.forwardRef(function(t,n){const a=hr(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:l,appear:i=!0,children:o,easing:s,in:p,onEnter:u,onEntered:c,onEntering:d,onExit:f,onExited:W,onExiting:C,style:E,timeout:h=r,TransitionComponent:g=Ba}=t,m=ie(t,Z5),y=v.useRef(null),x=wt(y,Rl(o),n),S=F=>T=>{if(F){const U=y.current;T===void 0?F(U):F(U,T)}},k=S(d),B=S((F,T)=>{FW(F);const U=Ti({style:E,timeout:h,easing:s},{mode:"enter"});F.style.webkitTransition=a.transitions.create("opacity",U),F.style.transition=a.transitions.create("opacity",U),u&&u(F,T)}),V=S(c),b=S(C),w=S(F=>{const T=Ti({style:E,timeout:h,easing:s},{mode:"exit"});F.style.webkitTransition=a.transitions.create("opacity",T),F.style.transition=a.transitions.create("opacity",T),f&&f(F)}),M=S(W),z=F=>{l&&l(y.current,F)};return A.jsx(g,I({appear:i,in:p,nodeRef:y,onEnter:B,onEntered:V,onEntering:k,onExit:w,onExited:M,onExiting:b,addEndListener:z,timeout:h},m,{children:(F,T)=>v.cloneElement(o,I({style:I({opacity:0,visibility:F==="exited"&&!p?"hidden":void 0},N5[F],E,o.props.style),ref:x},T))}))});function G5(e){return Ee("MuiBackdrop",e)}xe("MuiBackdrop",["root","invisible"]);const X5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],H5=e=>{const{classes:t,invisible:n}=e;return be({root:["root",n&&"invisible"]},G5,t)},_5=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>I({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),DI=v.forwardRef(function(t,n){var a,r,l;const i=we({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:p="div",components:u={},componentsProps:c={},invisible:d=!1,open:f,slotProps:W={},slots:C={},TransitionComponent:E=JI,transitionDuration:h}=i,g=ie(i,X5),m=I({},i,{component:p,invisible:d}),y=H5(m),x=(a=W.root)!=null?a:c.root;return A.jsx(E,I({in:f,timeout:h},g,{children:A.jsx(_5,I({"aria-hidden":!0},x,{as:(r=(l=C.root)!=null?l:u.Root)!=null?r:p,className:pe(y.root,s,x==null?void 0:x.className),ownerState:I({},m,x==null?void 0:x.ownerState),classes:y,ref:n,children:o}))}))}),$5=xe("MuiBox",["root"]),eU=RW(),D=u2({themeId:Mi,defaultTheme:eU,defaultClassName:$5.root,generateClassName:fW.generate});function tU(e){return Ee("MuiButton",e)}const zc=xe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),nU=v.createContext({}),aU=v.createContext(void 0),rU=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lU=e=>{const{color:t,disableElevation:n,fullWidth:a,size:r,variant:l,classes:i}=e,o={root:["root",l,`${l}${$(t)}`,`size${$(r)}`,`${l}Size${$(r)}`,`color${$(t)}`,n&&"disableElevation",a&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$(r)}`],endIcon:["icon","endIcon",`iconSize${$(r)}`]},s=be(o,tU,i);return I({},i,s)},YI=e=>I({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),iU=H(Ki,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$(n.color)}`],t[`size${$(n.size)}`],t[`${n.variant}Size${$(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,a;const r=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],l=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return I({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:l,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zc.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zc.disabled}`]:I({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${mt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(a=e.palette).getContrastText)==null?void 0:n.call(a,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${zc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zc.disabled}`]:{boxShadow:"none"}}),oU=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},YI(e))),sU=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$(n.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},YI(e))),Ge=v.forwardRef(function(t,n){const a=v.useContext(nU),r=v.useContext(aU),l=ps(a,t),i=we({props:l,name:"MuiButton"}),{children:o,color:s="primary",component:p="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:f=!1,endIcon:W,focusVisibleClassName:C,fullWidth:E=!1,size:h="medium",startIcon:g,type:m,variant:y="text"}=i,x=ie(i,rU),S=I({},i,{color:s,component:p,disabled:c,disableElevation:d,disableFocusRipple:f,fullWidth:E,size:h,type:m,variant:y}),k=lU(S),B=g&&A.jsx(oU,{className:k.startIcon,ownerState:S,children:g}),V=W&&A.jsx(sU,{className:k.endIcon,ownerState:S,children:W}),b=r||"";return A.jsxs(iU,I({ownerState:S,className:pe(a.className,k.root,u,b),component:p,disabled:c,focusRipple:!f,focusVisibleClassName:pe(k.focusVisible,C),ref:n,type:m},x,{classes:k,children:[B,o,V]}))});function pU(e){return Ee("MuiCard",e)}xe("MuiCard",["root"]);const uU=["className","raised"],cU=e=>{const{classes:t}=e;return be({root:["root"]},pU,t)},AU=H(Dt,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),dU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCard"}),{className:r,raised:l=!1}=a,i=ie(a,uU),o=I({},a,{raised:l}),s=cU(o);return A.jsx(AU,I({className:pe(s.root,r),elevation:l?8:void 0,ref:n,ownerState:o},i))});function fU(e){return Ee("MuiCardActionArea",e)}const $W=xe("MuiCardActionArea",["root","focusVisible","focusHighlight"]),WU=["children","className","focusVisibleClassName"],gU=e=>{const{classes:t}=e;return be({root:["root"],focusHighlight:["focusHighlight"]},fU,t)},hU=H(Ki,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${$W.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$W.focusVisible} .${$W.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),mU=H("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),CU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCardActionArea"}),{children:r,className:l,focusVisibleClassName:i}=a,o=ie(a,WU),s=a,p=gU(s);return A.jsxs(hU,I({className:pe(p.root,l),focusVisibleClassName:pe(i,p.focusVisible),ref:n,ownerState:s},o,{children:[r,A.jsx(mU,{className:p.focusHighlight,ownerState:s})]}))});function vU(e){return Ee("MuiCardContent",e)}xe("MuiCardContent",["root"]);const yU=["className","component"],IU=e=>{const{classes:t}=e;return be({root:["root"]},vU,t)},SU=H("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),EU=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCardContent"}),{className:r,component:l="div"}=a,i=ie(a,yU),o=I({},a,{component:l}),s=IU(o);return A.jsx(SU,I({as:l,className:pe(s.root,r),ownerState:o,ref:n},i))});function xU(e){return Ee("PrivateSwitchBase",e)}xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],kU=e=>{const{classes:t,checked:n,disabled:a,edge:r}=e,l={root:["root",n&&"checked",a&&"disabled",r&&`edge${$(r)}`],input:["input"]};return be(l,xU,t)},RU=H(Ki,{name:"MuiSwitchBase"})(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),wU=H("input",{name:"MuiSwitchBase",shouldForwardProp:mn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ZI=v.forwardRef(function(t,n){const{autoFocus:a,checked:r,checkedIcon:l,className:i,defaultChecked:o,disabled:s,disableFocusRipple:p=!1,edge:u=!1,icon:c,id:d,inputProps:f,inputRef:W,name:C,onBlur:E,onChange:h,onFocus:g,readOnly:m,required:y=!1,tabIndex:x,type:S,value:k}=t,B=ie(t,bU),[V,b]=gr({controlled:r,default:!!o,name:"SwitchBase",state:"checked"}),w=Na(),M=K=>{g&&g(K),w&&w.onFocus&&w.onFocus(K)},z=K=>{E&&E(K),w&&w.onBlur&&w.onBlur(K)},F=K=>{if(K.nativeEvent.defaultPrevented)return;const R=K.target.checked;b(R),h&&h(K,R)};let T=s;w&&typeof T>"u"&&(T=w.disabled);const U=S==="checkbox"||S==="radio",q=I({},t,{checked:V,disabled:T,disableFocusRipple:p,edge:u}),Q=kU(q);return A.jsxs(RU,I({component:"span",className:pe(Q.root,i),centerRipple:!0,focusRipple:!p,disabled:T,tabIndex:null,role:void 0,onFocus:M,onBlur:z,ownerState:q,ref:n},B,{children:[A.jsx(wU,I({autoFocus:a,checked:r,defaultChecked:o,className:Q.input,disabled:T,id:U?d:void 0,name:C,onChange:F,readOnly:m,ref:W,required:y,ownerState:q,tabIndex:x,type:S},S==="checkbox"&&k===void 0?{}:{value:k},f)),V?l:c]}))}),BU=an(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MU=an(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),LU=an(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function QU(e){return Ee("MuiCheckbox",e)}const eg=xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VU=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],UU=e=>{const{classes:t,indeterminate:n,color:a,size:r}=e,l={root:["root",n&&"indeterminate",`color${$(a)}`,`size${$(r)}`]},i=be(l,QU,t);return I({},t,i)},FU=H(ZI,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${$(n.size)}`],n.color!=="default"&&t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${eg.checked}, &.${eg.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${eg.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zU=A.jsx(MU,{}),qU=A.jsx(BU,{}),jU=A.jsx(LU,{}),TU=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiCheckbox"}),{checkedIcon:i=zU,color:o="primary",icon:s=qU,indeterminate:p=!1,indeterminateIcon:u=jU,inputProps:c,size:d="medium",className:f}=l,W=ie(l,VU),C=p?u:s,E=p?u:i,h=I({},l,{color:o,indeterminate:p,size:d}),g=UU(h);return A.jsx(FU,I({type:"checkbox",inputProps:I({"data-indeterminate":p},c),icon:v.cloneElement(C,{fontSize:(a=C.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(E,{fontSize:(r=E.props.fontSize)!=null?r:d}),ownerState:h,ref:n,className:pe(g.root,f)},W,{classes:g}))});function KU(e){return Ee("MuiCircularProgress",e)}xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const OU=["className","color","disableShrink","size","style","thickness","value","variant"];let qc=e=>e,NI,GI,XI,HI;const _r=44,PU=Zr(NI||(NI=qc`
156
156
  0% {
157
157
  transform: rotate(0deg);
158
158
  }
@@ -179,7 +179,7 @@ Error generating stack: `+l.message+`
179
179
  animation: ${0} 1.4s linear infinite;
180
180
  `),PU)),ZU=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),NU=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${$(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Ei(HI||(HI=qc`
181
181
  animation: ${0} 1.4s ease-in-out infinite;
182
- `),JU)),$r=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:i=!1,size:o=40,style:s,thickness:p=3.6,value:u=0,variant:c="indeterminate"}=a,d=ie(a,OU),f=I({},a,{color:l,disableShrink:i,size:o,thickness:p,value:u,variant:c}),W=DU(f),C={},E={},h={};if(c==="determinate"){const g=2*Math.PI*((_r-p)/2);C.strokeDasharray=g.toFixed(3),h["aria-valuenow"]=Math.round(u),C.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,E.transform="rotate(-90deg)"}return A.jsx(YU,I({className:pe(W.root,r),style:I({width:o,height:o},E,s),ownerState:f,ref:n,role:"progressbar"},h,d,{children:A.jsx(ZU,{className:W.svg,ownerState:f,viewBox:`${_r/2} ${_r/2} ${_r} ${_r}`,children:A.jsx(NU,{className:W.circle,style:C,ownerState:f,cx:_r,cy:_r,r:(_r-p)/2,fill:"none",strokeWidth:p})})}))});function GU(e){const t=un(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ys(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _I(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function XU(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||a}function $I(e,t,n,a,r){const l=[t,n,...a];[].forEach.call(e.children,i=>{const o=l.indexOf(i)===-1,s=!XU(i);o&&s&&ys(i,r)})}function tg(e,t){let n=-1;return e.some((a,r)=>t(a)?(n=r,!0):!1),n}function HU(e,t){const n=[],a=e.container;if(!t.disableScrollLock){if(GU(a)){const i=x1(un(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${_I(a)+i}px`;const o=un(a).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${_I(s)+i}px`})}let l;if(a.parentNode instanceof DocumentFragment)l=un(a).body;else{const i=a.parentElement,o=Da(a);l=(i==null?void 0:i.nodeName)==="HTML"&&o.getComputedStyle(i).overflowY==="scroll"?i:a}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:i,property:o})=>{l?i.style.setProperty(o,l):i.style.removeProperty(o)})}}function _U(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $U{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&ys(t.modalRef,!1);const r=_U(n);$I(n,t.mount,t.modalRef,r,!0);const l=tg(this.containers,i=>i.container===n);return l!==-1?(this.containers[l].modals.push(t),a):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),a)}mount(t,n){const a=tg(this.containers,l=>l.modals.indexOf(t)!==-1),r=this.containers[a];r.restore||(r.restore=HU(r,n))}remove(t,n=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const r=tg(this.containers,i=>i.modals.indexOf(t)!==-1),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&ys(t.modalRef,n),$I(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=l.modals[l.modals.length-1];i.modalRef&&ys(i.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const eF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tF(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function nF(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function aF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nF(e))}function rF(e){const t=[],n=[];return Array.from(e.querySelectorAll(eF)).forEach((a,r)=>{const l=tF(a);l===-1||!aF(a)||(l===0?t.push(a):n.push({documentOrder:r,tabIndex:l,node:a}))}),n.sort((a,r)=>a.tabIndex===r.tabIndex?a.documentOrder-r.documentOrder:a.tabIndex-r.tabIndex).map(a=>a.node).concat(t)}function lF(){return!0}function iF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:a=!1,disableRestoreFocus:r=!1,getTabbable:l=rF,isEnabled:i=lF,open:o}=e,s=v.useRef(!1),p=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(!1),W=v.useRef(null),C=wt(Rl(t),W),E=v.useRef(null);v.useEffect(()=>{!o||!W.current||(f.current=!n)},[n,o]),v.useEffect(()=>{if(!o||!W.current)return;const m=un(W.current);return W.current.contains(m.activeElement)||(W.current.hasAttribute("tabIndex")||W.current.setAttribute("tabIndex","-1"),f.current&&W.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),v.useEffect(()=>{if(!o||!W.current)return;const m=un(W.current),y=k=>{E.current=k,!(a||!i()||k.key!=="Tab")&&m.activeElement===W.current&&k.shiftKey&&(s.current=!0,u.current&&u.current.focus())},x=()=>{const k=W.current;if(k===null)return;if(!m.hasFocus()||!i()||s.current){s.current=!1;return}if(k.contains(m.activeElement)||a&&m.activeElement!==p.current&&m.activeElement!==u.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let B=[];if((m.activeElement===p.current||m.activeElement===u.current)&&(B=l(W.current)),B.length>0){var V,b;const w=!!((V=E.current)!=null&&V.shiftKey&&((b=E.current)==null?void 0:b.key)==="Tab"),M=B[0],z=B[B.length-1];typeof M!="string"&&typeof z!="string"&&(w?z.focus():M.focus())}else k.focus()};m.addEventListener("focusin",x),m.addEventListener("keydown",y,!0);const S=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(S),m.removeEventListener("focusin",x),m.removeEventListener("keydown",y,!0)}},[n,a,r,i,o,l]);const h=m=>{c.current===null&&(c.current=m.relatedTarget),f.current=!0,d.current=m.target;const y=t.props.onFocus;y&&y(m)},g=m=>{c.current===null&&(c.current=m.relatedTarget),f.current=!0};return A.jsxs(v.Fragment,{children:[A.jsx("div",{tabIndex:o?0:-1,onFocus:g,ref:p,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:C,onFocus:h}),A.jsx("div",{tabIndex:o?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function oF(e){return typeof e=="function"?e():e}function sF(e){return e?e.props.hasOwnProperty("in"):!1}const pF=new $U;function uF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:a=!1,manager:r=pF,closeAfterTransition:l=!1,onTransitionEnter:i,onTransitionExited:o,children:s,onClose:p,open:u,rootRef:c}=e,d=v.useRef({}),f=v.useRef(null),W=v.useRef(null),C=wt(W,c),[E,h]=v.useState(!u),g=sF(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const y=()=>un(f.current),x=()=>(d.current.modalRef=W.current,d.current.mount=f.current,d.current),S=()=>{r.mount(x(),{disableScrollLock:a}),W.current&&(W.current.scrollTop=0)},k=wn(()=>{const U=oF(t)||y().body;r.add(x(),U),W.current&&S()}),B=v.useCallback(()=>r.isTopModal(x()),[r]),V=wn(U=>{f.current=U,U&&(u&&B()?S():W.current&&ys(W.current,m))}),b=v.useCallback(()=>{r.remove(x(),m)},[m,r]);v.useEffect(()=>()=>{b()},[b]),v.useEffect(()=>{u?k():(!g||!l)&&b()},[u,b,g,l,k]);const w=U=>q=>{var Q;(Q=U.onKeyDown)==null||Q.call(U,q),!(q.key!=="Escape"||q.which===229||!B())&&(n||(q.stopPropagation(),p&&p(q,"escapeKeyDown")))},M=U=>q=>{var Q;(Q=U.onClick)==null||Q.call(U,q),q.target===q.currentTarget&&p&&p(q,"backdropClick")};return{getRootProps:(U={})=>{const q=b1(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Q=I({},q,U);return I({role:"presentation"},Q,{onKeyDown:w(Q),ref:C})},getBackdropProps:(U={})=>{const q=U;return I({"aria-hidden":!0},q,{onClick:M(q),open:u})},getTransitionProps:()=>{const U=()=>{h(!1),i&&i()},q=()=>{h(!0),o&&o(),l&&b()};return{onEnter:uc(U,s==null?void 0:s.props.onEnter),onExited:uc(q,s==null?void 0:s.props.onExited)}},rootRef:C,portalRef:V,isTopModal:B,exited:E,hasTransition:g}}function cF(e){return Ee("MuiModal",e)}xe("MuiModal",["root","hidden","backdrop"]);const AF=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dF=e=>{const{open:t,exited:n,classes:a}=e;return be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cF,a)},fF=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),WF=H(DI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eS=v.forwardRef(function(t,n){var a,r,l,i,o,s;const p=we({name:"MuiModal",props:t}),{BackdropComponent:u=WF,BackdropProps:c,className:d,closeAfterTransition:f=!1,children:W,container:C,component:E,components:h={},componentsProps:g={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:B=!1,hideBackdrop:V=!1,keepMounted:b=!1,onBackdropClick:w,open:M,slotProps:z,slots:F}=p,T=ie(p,AF),U=I({},p,{closeAfterTransition:f,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:k,disableScrollLock:B,hideBackdrop:V,keepMounted:b}),{getRootProps:q,getBackdropProps:Q,getTransitionProps:K,portalRef:R,isTopModal:X,exited:G,hasTransition:L}=uF(I({},U,{rootRef:n})),te=I({},U,{exited:G}),re=dF(te),oe={};if(W.props.tabIndex===void 0&&(oe.tabIndex="-1"),L){const{onEnter:ge,onExited:Ce}=K();oe.onEnter=ge,oe.onExited=Ce}const ve=(a=(r=F==null?void 0:F.root)!=null?r:h.Root)!=null?a:fF,fe=(l=(i=F==null?void 0:F.backdrop)!=null?i:h.Backdrop)!=null?l:u,he=(o=z==null?void 0:z.root)!=null?o:g.root,ze=(s=z==null?void 0:z.backdrop)!=null?s:g.backdrop,_=kl({elementType:ve,externalSlotProps:he,externalForwardedProps:T,getSlotProps:q,additionalProps:{ref:n,as:E},ownerState:te,className:pe(d,he==null?void 0:he.className,re==null?void 0:re.root,!te.open&&te.exited&&(re==null?void 0:re.hidden))}),ee=kl({elementType:fe,externalSlotProps:ze,additionalProps:c,getSlotProps:ge=>Q(I({},ge,{onClick:Ce=>{w&&w(Ce),ge!=null&&ge.onClick&&ge.onClick(Ce)}})),className:pe(ze==null?void 0:ze.className,c==null?void 0:c.className,re==null?void 0:re.backdrop),ownerState:te});return!b&&!M&&(!L||G)?null:A.jsx(FI,{ref:R,container:C,disablePortal:S,children:A.jsxs(ve,I({},_,{children:[!V&&u?A.jsx(fe,I({},ee)):null,A.jsx(iF,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:k,isEnabled:X,open:M,children:v.cloneElement(W,oe)})]}))})});function gF(e){return Ee("MuiDialog",e)}const ng=xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),tS=v.createContext({}),hF=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mF=H(DI,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CF=e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:l}=e,i={root:["root"],container:["container",`scroll${$(n)}`],paper:["paper",`paperScroll${$(n)}`,`paperWidth${$(String(a))}`,r&&"paperFullWidth",l&&"paperFullScreen"]};return be(i,gF,t)},vF=H(eS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),yF=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${$(n.scroll)}`]]}})(({ownerState:e})=>I({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),IF=H(Dt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${$(n.scroll)}`],t[`paperWidth${$(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ng.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ng.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ng.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),SF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialog"}),r=hr(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":o,BackdropComponent:s,BackdropProps:p,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:f=!1,fullWidth:W=!1,maxWidth:C="sm",onBackdropClick:E,onClick:h,onClose:g,open:m,PaperComponent:y=Dt,PaperProps:x={},scroll:S="paper",TransitionComponent:k=JI,transitionDuration:B=l,TransitionProps:V}=a,b=ie(a,hF),w=I({},a,{disableEscapeKeyDown:d,fullScreen:f,fullWidth:W,maxWidth:C,scroll:S}),M=CF(w),z=v.useRef(),F=Q=>{z.current=Q.target===Q.currentTarget},T=Q=>{h&&h(Q),z.current&&(z.current=null,E&&E(Q),g&&g(Q,"backdropClick"))},U=Nr(o),q=v.useMemo(()=>({titleId:U}),[U]);return A.jsx(vF,I({className:pe(M.root,c),closeAfterTransition:!0,components:{Backdrop:mF},componentsProps:{backdrop:I({transitionDuration:B,as:s},p)},disableEscapeKeyDown:d,onClose:g,open:m,ref:n,onClick:T,ownerState:w},b,{children:A.jsx(k,I({appear:!0,in:m,timeout:B,role:"presentation"},V,{children:A.jsx(yF,{className:pe(M.container),onMouseDown:F,ownerState:w,children:A.jsx(IF,I({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":U},x,{className:pe(M.paper,x.className),ownerState:w,children:A.jsx(tS.Provider,{value:q,children:u})}))})}))}))});function EF(e){return Ee("MuiDialogContent",e)}xe("MuiDialogContent",["root","dividers"]);function xF(e){return Ee("MuiDialogTitle",e)}const bF=xe("MuiDialogTitle",["root"]),kF=["className","dividers"],RF=e=>{const{classes:t,dividers:n}=e;return be({root:["root",n&&"dividers"]},EF,t)},wF=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${bF.root} + &`]:{paddingTop:0}})),BF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialogContent"}),{className:r,dividers:l=!1}=a,i=ie(a,kF),o=I({},a,{dividers:l}),s=RF(o);return A.jsx(wF,I({className:pe(s.root,r),ownerState:o,ref:n},i))}),MF=["className","id"],LF=e=>{const{classes:t}=e;return be({root:["root"]},xF,t)},QF=H(We,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),VF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialogTitle"}),{className:r,id:l}=a,i=ie(a,MF),o=a,s=LF(o),{titleId:p=l}=v.useContext(tS);return A.jsx(QF,I({component:"h2",className:pe(s.root,r),ownerState:o,ref:n,variant:"h6",id:l??p},i))});function UF(e){return Ee("MuiDivider",e)}xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const FF=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zF=e=>{const{absolute:t,children:n,classes:a,flexItem:r,light:l,orientation:i,textAlign:o,variant:s}=e;return be({root:["root",t&&"absolute",s,l&&"light",i==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",o==="right"&&i!=="vertical"&&"textAlignRight",o==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},UF,a)},qF=H("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>I({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>I({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>I({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),jF=H("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>I({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xa=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDivider"}),{absolute:r=!1,children:l,className:i,component:o=l?"div":"hr",flexItem:s=!1,light:p=!1,orientation:u="horizontal",role:c=o!=="hr"?"separator":void 0,textAlign:d="center",variant:f="fullWidth"}=a,W=ie(a,FF),C=I({},a,{absolute:r,component:o,flexItem:s,light:p,orientation:u,role:c,textAlign:d,variant:f}),E=zF(C);return A.jsx(qF,I({as:o,className:pe(E.root,i),role:c,ref:n,ownerState:C},W,{children:l?A.jsx(jF,{className:E.wrapper,ownerState:C,children:l}):null}))});Xa.muiSkipListHighlight=!0;const TF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function KF(e,t,n){const a=t.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),l=Da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const p=l.getComputedStyle(t);i=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let o=0,s=0;if(i&&i!=="none"&&typeof i=="string"){const p=i.split("(")[1].split(")")[0].split(",");o=parseInt(p[4],10),s=parseInt(p[5],10)}return e==="left"?r?`translateX(${r.right+o-a.left}px)`:`translateX(${l.innerWidth+o-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-o}px)`:`translateX(-${a.left+a.width-o}px)`:e==="up"?r?`translateY(${r.bottom+s-a.top}px)`:`translateY(${l.innerHeight+s-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-s}px)`:`translateY(-${a.top+a.height-s}px)`}function OF(e){return typeof e=="function"?e():e}function jc(e,t,n){const a=OF(n),r=KF(e,t,a);r&&(t.style.webkitTransform=r,t.style.transform=r)}const PF=v.forwardRef(function(t,n){const a=hr(),r={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,container:p,direction:u="down",easing:c=r,in:d,onEnter:f,onEntered:W,onEntering:C,onExit:E,onExited:h,onExiting:g,style:m,timeout:y=l,TransitionComponent:x=Ba}=t,S=ie(t,TF),k=v.useRef(null),B=wt(Rl(s),k,n),V=Q=>K=>{Q&&(K===void 0?Q(k.current):Q(k.current,K))},b=V((Q,K)=>{jc(u,Q,p),FW(Q),f&&f(Q,K)}),w=V((Q,K)=>{const R=Ti({timeout:y,style:m,easing:c},{mode:"enter"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",I({},R)),Q.style.transition=a.transitions.create("transform",I({},R)),Q.style.webkitTransform="none",Q.style.transform="none",C&&C(Q,K)}),M=V(W),z=V(g),F=V(Q=>{const K=Ti({timeout:y,style:m,easing:c},{mode:"exit"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",K),Q.style.transition=a.transitions.create("transform",K),jc(u,Q,p),E&&E(Q)}),T=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",h&&h(Q)}),U=Q=>{i&&i(k.current,Q)},q=v.useCallback(()=>{k.current&&jc(u,k.current,p)},[u,p]);return v.useEffect(()=>{if(d||u==="down"||u==="right")return;const Q=cc(()=>{k.current&&jc(u,k.current,p)}),K=Da(k.current);return K.addEventListener("resize",Q),()=>{Q.clear(),K.removeEventListener("resize",Q)}},[u,d,p]),v.useEffect(()=>{d||q()},[d,q]),A.jsx(x,I({nodeRef:k,onEnter:b,onEntered:M,onEntering:w,onExit:F,onExited:T,onExiting:z,addEndListener:U,appear:o,in:d,timeout:y},S,{children:(Q,K)=>v.cloneElement(s,I({ref:B,style:I({visibility:Q==="exited"&&!d?"hidden":void 0},m,s.props.style)},K))}))}),JF=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],DF=e=>{const{classes:t,disableUnderline:n}=e,r=be({root:["root",!n&&"underline"],input:["input"]},y5,t);return I({},t,r)},YF=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const a=e.palette.mode==="light",r=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${Gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${Gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gn.disabled}, .${Gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ZF=H(Fc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>I({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ag=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:p,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:W={},type:C="text"}=o,E=ie(o,JF),h=I({},o,{fullWidth:u,inputComponent:c,multiline:d,type:C}),g=DF(o),m={root:{ownerState:h},input:{ownerState:h}},y=f??p?hn(m,f??p):m,x=(a=(r=W.root)!=null?r:s.Root)!=null?a:YF,S=(l=(i=W.input)!=null?i:s.Input)!=null?l:ZF;return A.jsx(HW,I({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:n,type:C},E,{classes:g}))});ag.muiName="Input";function NF(e){return Ee("MuiFormControl",e)}xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GF=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XF=e=>{const{classes:t,margin:n,fullWidth:a}=e,r={root:["root",n!=="none"&&`margin${$(n)}`,a&&"fullWidth"]};return be(r,NF,t)},HF=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${$(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),_F=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormControl"}),{children:r,className:l,color:i="primary",component:o="div",disabled:s=!1,error:p=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:f="none",required:W=!1,size:C="medium",variant:E="outlined"}=a,h=ie(a,GF),g=I({},a,{color:i,component:o,disabled:s,error:p,fullWidth:c,hiddenLabel:d,margin:f,required:W,size:C,variant:E}),m=XF(g),[y,x]=v.useState(()=>{let z=!1;return r&&v.Children.forEach(r,F=>{if(!Ac(F,["Input","Select"]))return;const T=Ac(F,["Select"])?F.props.input:F;T&&f5(T.props)&&(z=!0)}),z}),[S,k]=v.useState(()=>{let z=!1;return r&&v.Children.forEach(r,F=>{Ac(F,["Input","Select"])&&(Lc(F.props,!0)||Lc(F.props.inputProps,!0))&&(z=!0)}),z}),[B,V]=v.useState(!1);s&&B&&V(!1);const b=u!==void 0&&!s?u:B;let w;const M=v.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:i,disabled:s,error:p,filled:S,focused:b,fullWidth:c,hiddenLabel:d,size:C,onBlur:()=>{V(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{V(!0)},registerEffect:w,required:W,variant:E}),[y,i,s,p,S,b,c,d,w,W,C,E]);return A.jsx(Mc.Provider,{value:M,children:A.jsx(HF,I({as:o,ownerState:g,className:pe(m.root,l),ref:n},h,{children:r}))})}),Xt=dM({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>we({props:e,name:"MuiStack"})});function $F(e){return Ee("MuiFormControlLabel",e)}const Is=xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e9=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t9=e=>{const{classes:t,disabled:n,labelPlacement:a,error:r,required:l}=e,i={root:["root",n&&"disabled",`labelPlacement${$(a)}`,r&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return be(i,$F,t)},n9=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Is.label}`]:t.label},t.root,t[`labelPlacement${$(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Is.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Is.label}`]:{[`&.${Is.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),a9=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Is.error}`]:{color:(e.vars||e).palette.error.main}})),Tc=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:s,disabled:p,disableTypography:u,label:c,labelPlacement:d="end",required:f,slotProps:W={}}=l,C=ie(l,e9),E=Na(),h=(a=p??s.props.disabled)!=null?a:E==null?void 0:E.disabled,g=f??s.props.required,m={disabled:h,required:g};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof s.props[V]>"u"&&typeof l[V]<"u"&&(m[V]=l[V])});const y=Xr({props:l,muiFormControl:E,states:["error"]}),x=I({},l,{disabled:h,labelPlacement:d,required:g,error:y.error}),S=t9(x),k=(r=W.typography)!=null?r:o.typography;let B=c;return B!=null&&B.type!==We&&!u&&(B=A.jsx(We,I({component:"span"},k,{className:pe(S.label,k==null?void 0:k.className),children:B}))),A.jsxs(n9,I({className:pe(S.root,i),ownerState:x,ref:n},C,{children:[v.cloneElement(s,m),g?A.jsxs(Xt,{display:"block",children:[B,A.jsxs(a9,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):B]}))});function r9(e){return Ee("MuiFormGroup",e)}xe("MuiFormGroup",["root","row","error"]);const l9=["className","row"],i9=e=>{const{classes:t,row:n,error:a}=e;return be({root:["root",n&&"row",a&&"error"]},r9,t)},o9=H("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),s9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormGroup"}),{className:r,row:l=!1}=a,i=ie(a,l9),o=Na(),s=Xr({props:a,muiFormControl:o,states:["error"]}),p=I({},a,{row:l,error:s.error}),u=i9(p);return A.jsx(o9,I({className:pe(u.root,r),ownerState:p,ref:n},i))});function p9(e){return Ee("MuiFormHelperText",e)}const nS=xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aS;const u9=["children","className","component","disabled","error","filled","focused","margin","required","variant"],c9=e=>{const{classes:t,contained:n,size:a,disabled:r,error:l,filled:i,focused:o,required:s}=e,p={root:["root",r&&"disabled",l&&"error",a&&`size${$(a)}`,n&&"contained",o&&"focused",i&&"filled",s&&"required"]};return be(p,p9,t)},A9=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${$(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nS.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),d9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormHelperText"}),{children:r,className:l,component:i="p"}=a,o=ie(a,u9),s=Na(),p=Xr({props:a,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),u=I({},a,{component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=c9(u);return A.jsx(A9,I({as:i,ownerState:u,className:pe(c.root,l),ref:n},o,{children:r===" "?aS||(aS=A.jsx("span",{className:"notranslate",children:"​"})):r}))});function f9(e){return Ee("MuiFormLabel",e)}const Ss=xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),W9=["children","className","color","component","disabled","error","filled","focused","required"],g9=e=>{const{classes:t,color:n,focused:a,disabled:r,error:l,filled:i,required:o}=e,s={root:["root",`color${$(n)}`,r&&"disabled",l&&"error",i&&"filled",a&&"focused",o&&"required"],asterisk:["asterisk",l&&"error"]};return be(s,f9,t)},h9=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ss.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ss.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ss.error}`]:{color:(e.vars||e).palette.error.main}})),m9=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ss.error}`]:{color:(e.vars||e).palette.error.main}})),C9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormLabel"}),{children:r,className:l,component:i="label"}=a,o=ie(a,W9),s=Na(),p=Xr({props:a,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),u=I({},a,{color:p.color||"primary",component:i,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=g9(u);return A.jsxs(h9,I({as:i,ownerState:u,className:pe(c.root,l),ref:n},o,{children:[r,p.required&&A.jsxs(m9,{ownerState:u,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),rS=v.createContext();function v9(e){return Ee("MuiGrid",e)}const y9=[0,1,2,3,4,5,6,7,8,9,10],I9=["column-reverse","column","row-reverse","row"],S9=["nowrap","wrap-reverse","wrap"],Es=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=xe("MuiGrid",["root","container","item","zeroMinWidth",...y9.map(e=>`spacing-xs-${e}`),...I9.map(e=>`direction-xs-${e}`),...S9.map(e=>`wrap-xs-${e}`),...Es.map(e=>`grid-xs-${e}`),...Es.map(e=>`grid-sm-${e}`),...Es.map(e=>`grid-md-${e}`),...Es.map(e=>`grid-lg-${e}`),...Es.map(e=>`grid-xl-${e}`)]),E9=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Yi(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function x9({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((a,r)=>{let l={};if(t[r]&&(n=t[r]),!n)return a;if(n===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=xl({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof i=="object"?i[r]:i;if(o==null)return a;const s=`${Math.round(n/o*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${Yi(u)})`;p={flexBasis:c,maxWidth:c}}}l=I({flexBasis:s,flexGrow:0,maxWidth:s},p)}return e.breakpoints.values[r]===0?Object.assign(a,l):a[e.breakpoints.up(r)]=l,a},{})}function b9({theme:e,ownerState:t}){const n=xl({values:t.direction,breakpoints:e.breakpoints.values});return kn({theme:e},n,a=>{const r={flexDirection:a};return a.indexOf("column")===0&&(r[`& > .${xs.item}`]={maxWidth:"none"}),r})}function lS({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const a=Object.keys(e).sort((r,l)=>e[r]-e[l]);return a.slice(0,a.indexOf(n))}function k9({theme:e,ownerState:t}){const{container:n,rowSpacing:a}=t;let r={};if(n&&a!==0){const l=xl({values:a,breakpoints:e.breakpoints.values});let i;typeof l=="object"&&(i=lS({breakpoints:e.breakpoints.values,values:l})),r=kn({theme:e},l,(o,s)=>{var p;const u=e.spacing(o);return u!=="0px"?{marginTop:`-${Yi(u)}`,[`& > .${xs.item}`]:{paddingTop:Yi(u)}}:(p=i)!=null&&p.includes(s)?{}:{marginTop:0,[`& > .${xs.item}`]:{paddingTop:0}}})}return r}function R9({theme:e,ownerState:t}){const{container:n,columnSpacing:a}=t;let r={};if(n&&a!==0){const l=xl({values:a,breakpoints:e.breakpoints.values});let i;typeof l=="object"&&(i=lS({breakpoints:e.breakpoints.values,values:l})),r=kn({theme:e},l,(o,s)=>{var p;const u=e.spacing(o);return u!=="0px"?{width:`calc(100% + ${Yi(u)})`,marginLeft:`-${Yi(u)}`,[`& > .${xs.item}`]:{paddingLeft:Yi(u)}}:(p=i)!=null&&p.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${xs.item}`]:{paddingLeft:0}}})}return r}function w9(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const a=[];return t.forEach(r=>{const l=e[r];Number(l)>0&&a.push(n[`spacing-${r}-${String(l)}`])}),a}const B9=H("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:a,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:p}=n;let u=[];a&&(u=w9(i,p,t));const c=[];return p.forEach(d=>{const f=n[d];f&&c.push(t[`grid-${d}-${String(f)}`])}),[t.root,a&&t.container,l&&t.item,s&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...c]}})(({ownerState:e})=>I({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),b9,k9,R9,x9);function M9(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(a=>{const r=e[a];if(Number(r)>0){const l=`spacing-${a}-${String(r)}`;n.push(l)}}),n}const L9=e=>{const{classes:t,container:n,direction:a,item:r,spacing:l,wrap:i,zeroMinWidth:o,breakpoints:s}=e;let p=[];n&&(p=M9(l,s));const u=[];s.forEach(d=>{const f=e[d];f&&u.push(`grid-${d}-${String(f)}`)});const c={root:["root",n&&"container",r&&"item",o&&"zeroMinWidth",...p,a!=="row"&&`direction-xs-${String(a)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return be(c,v9,t)},ut=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiGrid"}),{breakpoints:r}=hr(),l=ss(a),{className:i,columns:o,columnSpacing:s,component:p="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:f,spacing:W=0,wrap:C="wrap",zeroMinWidth:E=!1}=l,h=ie(l,E9),g=f||W,m=s||W,y=v.useContext(rS),x=u?o||12:y,S={},k=I({},h);r.keys.forEach(b=>{h[b]!=null&&(S[b]=h[b],delete k[b])});const B=I({},l,{columns:x,container:u,direction:c,item:d,rowSpacing:g,columnSpacing:m,wrap:C,zeroMinWidth:E,spacing:W},S,{breakpoints:r.keys}),V=L9(B);return A.jsx(rS.Provider,{value:x,children:A.jsx(B9,I({ownerState:B,className:pe(V.root,i),as:p,ref:n},k))})}),Q9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rg(e){return`scale(${e}, ${e**2})`}const V9={entering:{opacity:1,transform:rg(1)},entered:{opacity:1,transform:"none"}},lg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kc=v.forwardRef(function(t,n){const{addEndListener:a,appear:r=!0,children:l,easing:i,in:o,onEnter:s,onEntered:p,onEntering:u,onExit:c,onExited:d,onExiting:f,style:W,timeout:C="auto",TransitionComponent:E=Ba}=t,h=ie(t,Q9),g=Vi(),m=v.useRef(),y=hr(),x=v.useRef(null),S=wt(x,Rl(l),n),k=T=>U=>{if(T){const q=x.current;U===void 0?T(q):T(q,U)}},B=k(u),V=k((T,U)=>{FW(T);const{duration:q,delay:Q,easing:K}=Ti({style:W,timeout:C,easing:i},{mode:"enter"});let R;C==="auto"?(R=y.transitions.getAutoHeightDuration(T.clientHeight),m.current=R):R=q,T.style.transition=[y.transitions.create("opacity",{duration:R,delay:Q}),y.transitions.create("transform",{duration:lg?R:R*.666,delay:Q,easing:K})].join(","),s&&s(T,U)}),b=k(p),w=k(f),M=k(T=>{const{duration:U,delay:q,easing:Q}=Ti({style:W,timeout:C,easing:i},{mode:"exit"});let K;C==="auto"?(K=y.transitions.getAutoHeightDuration(T.clientHeight),m.current=K):K=U,T.style.transition=[y.transitions.create("opacity",{duration:K,delay:q}),y.transitions.create("transform",{duration:lg?K:K*.666,delay:lg?q:q||K*.333,easing:Q})].join(","),T.style.opacity=0,T.style.transform=rg(.75),c&&c(T)}),z=k(d),F=T=>{C==="auto"&&g.start(m.current||0,T),a&&a(x.current,T)};return A.jsx(E,I({appear:r,in:o,nodeRef:x,onEnter:V,onEntered:b,onEntering:B,onExit:M,onExited:z,onExiting:w,addEndListener:F,timeout:C==="auto"?null:C},h,{children:(T,U)=>v.cloneElement(l,I({style:I({opacity:0,transform:rg(.75),visibility:T==="exited"&&!o?"hidden":void 0},V9[T],W,l.props.style),ref:S},U))}))});Kc.muiSupportAuto=!0;const U9=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],F9=e=>{const{classes:t,disableUnderline:n}=e,r=be({root:["root",!n&&"underline"],input:["input"]},C5,t);return I({},t,r)},z9=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let a=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(a=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),I({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Hr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Hr.disabled}, .${Hr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${Hr.disabled}:before`]:{borderBottomStyle:"dotted"}})}),q9=H(Fc,{name:"MuiInput",slot:"Input",overridesResolver:Vc})({}),ig=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiInput"}),{disableUnderline:s,components:p={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:W,slots:C={},type:E="text"}=o,h=ie(o,U9),g=F9(o),y={root:{ownerState:{disableUnderline:s}}},x=W??u?hn(W??u,y):y,S=(a=(r=C.root)!=null?r:p.Root)!=null?a:z9,k=(l=(i=C.input)!=null?i:p.Input)!=null?l:q9;return A.jsx(HW,I({slots:{root:S,input:k},slotProps:x,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:E},h,{classes:g}))});ig.muiName="Input";function j9(e){return Ee("MuiInputAdornment",e)}const iS=xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var oS;const T9=["children","className","component","disablePointerEvents","disableTypography","position","variant"],K9=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},O9=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:l,variant:i}=e,o={root:["root",n&&"disablePointerEvents",r&&`position${$(r)}`,i,a&&"hiddenLabel",l&&`size${$(l)}`]};return be(o,j9,t)},P9=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:K9})(({theme:e,ownerState:t})=>I({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${iS.positionStart}&:not(.${iS.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),og=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiInputAdornment"}),{children:r,className:l,component:i="div",disablePointerEvents:o=!1,disableTypography:s=!1,position:p,variant:u}=a,c=ie(a,T9),d=Na()||{};let f=u;u&&d.variant,d&&!f&&(f=d.variant);const W=I({},a,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:p,variant:f}),C=O9(W);return A.jsx(Mc.Provider,{value:null,children:A.jsx(P9,I({as:i,ownerState:W,className:pe(C.root,l),ref:n},c,{children:typeof r=="string"&&!s?A.jsx(We,{color:"text.secondary",children:r}):A.jsxs(v.Fragment,{children:[p==="start"?oS||(oS=A.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function J9(e){return Ee("MuiInputLabel",e)}xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const D9=["disableAnimation","margin","shrink","variant","className"],Y9=e=>{const{classes:t,formControl:n,size:a,shrink:r,disableAnimation:l,variant:i,required:o}=e,s={root:["root",n&&"formControl",!l&&"animated",r&&"shrink",a&&a!=="normal"&&`size${$(a)}`,i],asterisk:[o&&"asterisk"]},p=be(s,J9,t);return I({},t,p)},Z9=H(C9,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ss.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>I({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&I({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&I({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&I({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),N9=v.forwardRef(function(t,n){const a=we({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:l,className:i}=a,o=ie(a,D9),s=Na();let p=l;typeof p>"u"&&s&&(p=s.filled||s.focused||s.adornedStart);const u=Xr({props:a,muiFormControl:s,states:["size","variant","required","focused"]}),c=I({},a,{disableAnimation:r,formControl:s,shrink:p,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=Y9(c);return A.jsx(Z9,I({"data-shrink":p,ownerState:c,ref:n,className:pe(d.root,i)},o,{classes:d}))}),G9=v.createContext({});function X9(e){return Ee("MuiList",e)}xe("MuiList",["root","padding","dense","subheader"]);const H9=["children","className","component","dense","disablePadding","subheader"],_9=e=>{const{classes:t,disablePadding:n,dense:a,subheader:r}=e;return be({root:["root",!n&&"padding",a&&"dense",r&&"subheader"]},X9,t)},$9=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ez=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiList"}),{children:r,className:l,component:i="ul",dense:o=!1,disablePadding:s=!1,subheader:p}=a,u=ie(a,H9),c=v.useMemo(()=>({dense:o}),[o]),d=I({},a,{component:i,dense:o,disablePadding:s}),f=_9(d);return A.jsx(G9.Provider,{value:c,children:A.jsxs($9,I({as:i,className:pe(f.root,l),ref:n,ownerState:d},u,{children:[p,r]}))})}),tz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function bs(e,t,n,a,r,l){let i=!1,o=r(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(i)return!1;i=!0}const s=a?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!pS(o,l)||s)o=r(e,o,n);else return o.focus(),!0}return!1}const nz=v.forwardRef(function(t,n){const{actions:a,autoFocus:r=!1,autoFocusItem:l=!1,children:i,className:o,disabledItemsFocusable:s=!1,disableListWrap:p=!1,onKeyDown:u,variant:c="selectedMenu"}=t,d=ie(t,tz),f=v.useRef(null),W=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pa(()=>{r&&f.current.focus()},[r]),v.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(m,{direction:y})=>{const x=!f.current.style.width;if(m.clientHeight<f.current.clientHeight&&x){const S=`${x1(un(m))}px`;f.current.style[y==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const C=m=>{const y=f.current,x=m.key,S=un(y).activeElement;if(x==="ArrowDown")m.preventDefault(),bs(y,S,p,s,sg);else if(x==="ArrowUp")m.preventDefault(),bs(y,S,p,s,sS);else if(x==="Home")m.preventDefault(),bs(y,null,p,s,sg);else if(x==="End")m.preventDefault(),bs(y,null,p,s,sS);else if(x.length===1){const k=W.current,B=x.toLowerCase(),V=performance.now();k.keys.length>0&&(V-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&B!==k.keys[0]&&(k.repeating=!1)),k.lastTime=V,k.keys.push(B);const b=S&&!k.repeating&&pS(S,k);k.previousKeyMatched&&(b||bs(y,S,!1,s,sg,k))?m.preventDefault():k.previousKeyMatched=!1}u&&u(m)},E=wt(f,n);let h=-1;v.Children.forEach(i,(m,y)=>{if(!v.isValidElement(m)){h===y&&(h+=1,h>=i.length&&(h=-1));return}m.props.disabled||(c==="selectedMenu"&&m.props.selected||h===-1)&&(h=y),h===y&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))});const g=v.Children.map(i,(m,y)=>{if(y===h){const x={};return l&&(x.autoFocus=!0),m.props.tabIndex===void 0&&c==="selectedMenu"&&(x.tabIndex=0),v.cloneElement(m,x)}return m});return A.jsx(ez,I({role:"menu",ref:E,className:o,onKeyDown:C,tabIndex:r?0:-1},d,{children:g}))});function az(e){return Ee("MuiPopover",e)}xe("MuiPopover",["root","paper"]);const rz=["onEntering"],lz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],iz=["slotProps"];function uS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function cS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function AS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pg(e){return typeof e=="function"?e():e}const oz=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"]},az,t)},sz=H(eS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dS=H(Dt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fS=v.forwardRef(function(t,n){var a,r,l;const i=we({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:f,container:W,elevation:C=8,marginThreshold:E=16,open:h,PaperProps:g={},slots:m,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Kc,transitionDuration:k="auto",TransitionProps:{onEntering:B}={},disableScrollLock:V=!1}=i,b=ie(i.TransitionProps,rz),w=ie(i,lz),M=(a=y==null?void 0:y.paper)!=null?a:g,z=v.useRef(),F=wt(z,M.ref),T=I({},i,{anchorOrigin:p,anchorReference:c,elevation:C,marginThreshold:E,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:S,transitionDuration:k,TransitionProps:b}),U=oz(T),q=v.useCallback(()=>{if(c==="anchorPosition")return u;const ge=pg(s),se=(ge&&ge.nodeType===1?ge:un(z.current).body).getBoundingClientRect();return{top:se.top+uS(se,p.vertical),left:se.left+cS(se,p.horizontal)}},[s,p.horizontal,p.vertical,u,c]),Q=v.useCallback(ge=>({vertical:uS(ge,x.vertical),horizontal:cS(ge,x.horizontal)}),[x.horizontal,x.vertical]),K=v.useCallback(ge=>{const Ce={width:ge.offsetWidth,height:ge.offsetHeight},se=Q(Ce);if(c==="none")return{top:null,left:null,transformOrigin:AS(se)};const ue=q();let Te=ue.top-se.vertical,ne=ue.left-se.horizontal;const Le=Te+Ce.height,Me=ne+Ce.width,ye=Da(pg(s)),De=ye.innerHeight-E,Qe=ye.innerWidth-E;if(E!==null&&Te<E){const Fe=Te-E;Te-=Fe,se.vertical+=Fe}else if(E!==null&&Le>De){const Fe=Le-De;Te-=Fe,se.vertical+=Fe}if(E!==null&&ne<E){const Fe=ne-E;ne-=Fe,se.horizontal+=Fe}else if(Me>Qe){const Fe=Me-Qe;ne-=Fe,se.horizontal+=Fe}return{top:`${Math.round(Te)}px`,left:`${Math.round(ne)}px`,transformOrigin:AS(se)}},[s,c,q,Q,E]),[R,X]=v.useState(h),G=v.useCallback(()=>{const ge=z.current;if(!ge)return;const Ce=K(ge);Ce.top!==null&&(ge.style.top=Ce.top),Ce.left!==null&&(ge.style.left=Ce.left),ge.style.transformOrigin=Ce.transformOrigin,X(!0)},[K]);v.useEffect(()=>(V&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[s,V,G]);const L=(ge,Ce)=>{B&&B(ge,Ce),G()},te=()=>{X(!1)};v.useEffect(()=>{h&&G()}),v.useImperativeHandle(o,()=>h?{updatePosition:()=>{G()}}:null,[h,G]),v.useEffect(()=>{if(!h)return;const ge=cc(()=>{G()}),Ce=Da(s);return Ce.addEventListener("resize",ge),()=>{ge.clear(),Ce.removeEventListener("resize",ge)}},[s,h,G]);let re=k;k==="auto"&&!S.muiSupportAuto&&(re=void 0);const oe=W||(s?un(pg(s)).body:void 0),ve=(r=m==null?void 0:m.root)!=null?r:sz,fe=(l=m==null?void 0:m.paper)!=null?l:dS,he=kl({elementType:fe,externalSlotProps:I({},M,{style:R?M.style:I({},M.style,{opacity:0})}),additionalProps:{elevation:C,ref:F},ownerState:T,className:pe(U.paper,M==null?void 0:M.className)}),ze=kl({elementType:ve,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:w,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:oe,open:h},ownerState:T,className:pe(U.root,f)}),{slotProps:_}=ze,ee=ie(ze,iz);return A.jsx(ve,I({},ee,!fc(ve)&&{slotProps:_,disableScrollLock:V},{children:A.jsx(S,I({appear:!0,in:h,onEntering:L,onExited:te,timeout:re},b,{children:A.jsx(fe,I({},he,{children:d}))}))}))});function pz(e){return Ee("MuiMenu",e)}xe("MuiMenu",["root","paper","list"]);const uz=["onEntering"],cz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Az={vertical:"top",horizontal:"right"},dz={vertical:"top",horizontal:"left"},fz=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"],list:["list"]},pz,t)},Wz=H(fS,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gz=H(dS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hz=H(nz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),mz=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:s,disableAutoFocusItem:p=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:f={},PopoverClasses:W,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},variant:h="selectedMenu",slots:g={},slotProps:m={}}=l,y=ie(l.TransitionProps,uz),x=ie(l,cz),S=Q1(),k=I({},l,{autoFocus:i,disableAutoFocusItem:p,MenuListProps:u,onEntering:E,PaperProps:f,transitionDuration:C,TransitionProps:y,variant:h}),B=fz(k),V=i&&!p&&d,b=v.useRef(null),w=(Q,K)=>{b.current&&b.current.adjustStyleForScrollbar(Q,{direction:S?"rtl":"ltr"}),E&&E(Q,K)},M=Q=>{Q.key==="Tab"&&(Q.preventDefault(),c&&c(Q,"tabKeyDown"))};let z=-1;v.Children.map(o,(Q,K)=>{v.isValidElement(Q)&&(Q.props.disabled||(h==="selectedMenu"&&Q.props.selected||z===-1)&&(z=K))});const F=(a=g.paper)!=null?a:gz,T=(r=m.paper)!=null?r:f,U=kl({elementType:g.root,externalSlotProps:m.root,ownerState:k,className:[B.root,s]}),q=kl({elementType:F,externalSlotProps:T,ownerState:k,className:B.paper});return A.jsx(Wz,I({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Az:dz,slots:{paper:F,root:g.root},slotProps:{root:U,paper:q},open:d,ref:n,transitionDuration:C,TransitionProps:I({onEntering:w},y),ownerState:k},x,{classes:W,children:A.jsx(hz,I({onKeyDown:M,actions:b,autoFocus:i&&(z===-1||p),autoFocusItem:V,variant:h},u,{className:pe(B.list,u.className),children:o}))}))});function Cz(e){return Ee("MuiNativeSelect",e)}const ug=xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vz=["className","disabled","error","IconComponent","inputRef","variant"],yz=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:i}=e,o={select:["select",n,a&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"]};return be(o,Cz,t)},WS=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ug.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Iz=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ug.multiple}`]:t.multiple}]}})(WS),gS=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ug.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Sz=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(gS),Ez=v.forwardRef(function(t,n){const{className:a,disabled:r,error:l,IconComponent:i,inputRef:o,variant:s="standard"}=t,p=ie(t,vz),u=I({},t,{disabled:r,variant:s,error:l}),c=yz(u);return A.jsxs(v.Fragment,{children:[A.jsx(Iz,I({ownerState:u,className:pe(c.select,a),disabled:r,ref:o||n},p)),t.multiple?null:A.jsx(Sz,{as:i,ownerState:u,className:c.icon})]})});var hS;const xz=["children","classes","className","label","notched"],bz=H("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:mn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kz=H("legend",{name:"MuiNotchedOutlined",shouldForwardProp:mn})(({ownerState:e,theme:t})=>I({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&I({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Rz(e){const{className:t,label:n,notched:a}=e,r=ie(e,xz),l=n!=null&&n!=="",i=I({},e,{notched:a,withLabel:l});return A.jsx(bz,I({"aria-hidden":!0,className:t,ownerState:i},r,{children:A.jsx(kz,{ownerState:i,children:l?A.jsx("span",{children:n}):hS||(hS=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const wz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Bz=e=>{const{classes:t}=e,a=be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v5,t);return I({},t,a)},Mz=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ga.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ga.focused} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ga.error} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ga.disabled} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Lz=H(Rz,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Qz=H(Fc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>I({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),cg=v.forwardRef(function(t,n){var a,r,l,i,o;const s=we({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:f=!1,notched:W,slots:C={},type:E="text"}=s,h=ie(s,wz),g=Bz(s),m=Na(),y=Xr({props:s,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=I({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:E}),S=(a=(r=C.root)!=null?r:p.Root)!=null?a:Mz,k=(l=(i=C.input)!=null?i:p.Input)!=null?l:Qz;return A.jsx(HW,I({slots:{root:S,input:k},renderSuffix:B=>A.jsx(Lz,{ownerState:x,className:g.notchedOutline,label:d!=null&&d!==""&&y.required?o||(o=A.jsxs(v.Fragment,{children:[d," ","*"]})):d,notched:typeof W<"u"?W:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:u,inputComponent:c,multiline:f,ref:n,type:E},h,{classes:I({},g,{notchedOutline:null})}))});cg.muiName="Input";const Vz=an(A.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Uz=an(A.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Fz=H("span",{name:"MuiRadioButtonIcon",shouldForwardProp:mn})({position:"relative",display:"flex"}),zz=H(Vz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),qz=H(Uz,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>I({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function mS(e){const{checked:t=!1,classes:n={},fontSize:a}=e,r=I({},e,{checked:t});return A.jsxs(Fz,{className:n.root,ownerState:r,children:[A.jsx(zz,{fontSize:a,className:n.background,ownerState:r}),A.jsx(qz,{fontSize:a,className:n.dot,ownerState:r})]})}const CS=v.createContext(void 0);function jz(){return v.useContext(CS)}function Tz(e){return Ee("MuiRadio",e)}const vS=xe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Kz=["checked","checkedIcon","color","icon","name","onChange","size","className"],Oz=e=>{const{classes:t,color:n,size:a}=e,r={root:["root",`color${$(n)}`,a!=="medium"&&`size${$(a)}`]};return I({},t,be(r,Tz,t))},Pz=H(ZI,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${$(n.size)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vS.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${vS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Jz(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const yS=A.jsx(mS,{checked:!0}),IS=A.jsx(mS,{}),Ag=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:o=yS,color:s="primary",icon:p=IS,name:u,onChange:c,size:d="medium",className:f}=l,W=ie(l,Kz),C=I({},l,{color:s,size:d}),E=Oz(C),h=jz();let g=i;const m=uc(c,h&&h.onChange);let y=u;return h&&(typeof g>"u"&&(g=Jz(h.value,l.value)),typeof y>"u"&&(y=h.name)),A.jsx(Pz,I({type:"radio",icon:v.cloneElement(p,{fontSize:(a=IS.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(o,{fontSize:(r=yS.props.fontSize)!=null?r:d}),ownerState:C,classes:E,name:y,checked:g,onChange:m,ref:n,className:pe(E.root,f)},W))});function Dz(e){return Ee("MuiRadioGroup",e)}xe("MuiRadioGroup",["root","row","error"]);const Yz=["actions","children","className","defaultValue","name","onChange","value"],Zz=e=>{const{classes:t,row:n,error:a}=e;return be({root:["root",n&&"row",a&&"error"]},Dz,t)},Nz=v.forwardRef(function(t,n){const{actions:a,children:r,className:l,defaultValue:i,name:o,onChange:s,value:p}=t,u=ie(t,Yz),c=v.useRef(null),d=Zz(t),[f,W]=gr({controlled:p,default:i,name:"RadioGroup"});v.useImperativeHandle(a,()=>({focus:()=>{let g=c.current.querySelector("input:not(:disabled):checked");g||(g=c.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);const C=wt(n,c),E=Nr(o),h=v.useMemo(()=>({name:E,onChange(g){W(g.target.value),s&&s(g,g.target.value)},value:f}),[E,s,W,f]);return A.jsx(CS.Provider,{value:h,children:A.jsx(s9,I({role:"radiogroup",ref:C,className:pe(d.root,l)},u,{children:r}))})});function Gz(e){return Ee("MuiSelect",e)}const ks=xe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var SS;const Xz=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Hz=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ks.select}`]:t.select},{[`&.${ks.select}`]:t[n.variant]},{[`&.${ks.error}`]:t.error},{[`&.${ks.multiple}`]:t.multiple}]}})(WS,{[`&.${ks.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_z=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(gS),$z=H("input",{shouldForwardProp:e=>tI(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ES(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function eq(e){return e==null||typeof e=="string"&&!e.trim()}const tq=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:i}=e,o={select:["select",n,a&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return be(o,Gz,t)},nq=v.forwardRef(function(t,n){var a;const{"aria-describedby":r,"aria-label":l,autoFocus:i,autoWidth:o,children:s,className:p,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:W=!1,IconComponent:C,inputRef:E,labelId:h,MenuProps:g={},multiple:m,name:y,onBlur:x,onChange:S,onClose:k,onFocus:B,onOpen:V,open:b,readOnly:w,renderValue:M,SelectDisplayProps:z={},tabIndex:F,value:T,variant:U="standard"}=t,q=ie(t,Xz),[Q,K]=gr({controlled:T,default:c,name:"Select"}),[R,X]=gr({controlled:b,default:u,name:"Select"}),G=v.useRef(null),L=v.useRef(null),[te,re]=v.useState(null),{current:oe}=v.useRef(b!=null),[ve,fe]=v.useState(),he=wt(n,E),ze=v.useCallback(ce=>{L.current=ce,ce&&re(ce)},[]),_=te==null?void 0:te.parentNode;v.useImperativeHandle(he,()=>({focus:()=>{L.current.focus()},node:G.current,value:Q}),[Q]),v.useEffect(()=>{u&&R&&te&&!oe&&(fe(o?null:_.clientWidth),L.current.focus())},[te,o]),v.useEffect(()=>{i&&L.current.focus()},[i]),v.useEffect(()=>{if(!h)return;const ce=un(L.current).getElementById(h);if(ce){const Re=()=>{getSelection().isCollapsed&&L.current.focus()};return ce.addEventListener("click",Re),()=>{ce.removeEventListener("click",Re)}}},[h]);const ee=(ce,Re)=>{ce?V&&V(Re):k&&k(Re),oe||(fe(o?null:_.clientWidth),X(ce))},ge=ce=>{ce.button===0&&(ce.preventDefault(),L.current.focus(),ee(!0,ce))},Ce=ce=>{ee(!1,ce)},se=v.Children.toArray(s),ue=ce=>{const Re=se.find(Ve=>Ve.props.value===ce.target.value);Re!==void 0&&(K(Re.props.value),S&&S(ce,Re))},Te=ce=>Re=>{let Ve;if(Re.currentTarget.hasAttribute("tabindex")){if(m){Ve=Array.isArray(Q)?Q.slice():[];const Pe=Q.indexOf(ce.props.value);Pe===-1?Ve.push(ce.props.value):Ve.splice(Pe,1)}else Ve=ce.props.value;if(ce.props.onClick&&ce.props.onClick(Re),Q!==Ve&&(K(Ve),S)){const Pe=Re.nativeEvent||Re,Ye=new Pe.constructor(Pe.type,Pe);Object.defineProperty(Ye,"target",{writable:!0,value:{value:Ve,name:y}}),S(Ye,ce)}m||ee(!1,Re)}},ne=ce=>{w||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ce.key)!==-1&&(ce.preventDefault(),ee(!0,ce))},Le=te!==null&&R,Me=ce=>{!Le&&x&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:Q,name:y}}),x(ce))};delete q["aria-invalid"];let ye,De;const Qe=[];let Fe=!1;(Lc({value:Q})||f)&&(M?ye=M(Q):Fe=!0);const P=se.map(ce=>{if(!v.isValidElement(ce))return null;let Re;if(m){if(!Array.isArray(Q))throw new Error(fr(2));Re=Q.some(Ve=>ES(Ve,ce.props.value)),Re&&Fe&&Qe.push(ce.props.children)}else Re=ES(Q,ce.props.value),Re&&Fe&&(De=ce.props.children);return v.cloneElement(ce,{"aria-selected":Re?"true":"false",onClick:Te(ce),onKeyUp:Ve=>{Ve.key===" "&&Ve.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(Ve)},role:"option",selected:Re,value:void 0,"data-value":ce.props.value})});Fe&&(m?Qe.length===0?ye=null:ye=Qe.reduce((ce,Re,Ve)=>(ce.push(Re),Ve<Qe.length-1&&ce.push(", "),ce),[]):ye=De);let j=ve;!o&&oe&&te&&(j=_.clientWidth);let O;typeof F<"u"?O=F:O=d?null:0;const Z=z.id||(y?`mui-component-select-${y}`:void 0),Y=I({},t,{variant:U,value:Q,open:Le,error:W}),de=tq(Y),je=I({},g.PaperProps,(a=g.slotProps)==null?void 0:a.paper),Xe=Nr();return A.jsxs(v.Fragment,{children:[A.jsx(Hz,I({ref:ze,tabIndex:O,role:"combobox","aria-controls":Xe,"aria-disabled":d?"true":void 0,"aria-expanded":Le?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[h,Z].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ne,onMouseDown:d||w?null:ge,onBlur:Me,onFocus:B},z,{ownerState:Y,className:pe(z.className,de.select,p),id:Z,children:eq(ye)?SS||(SS=A.jsx("span",{className:"notranslate",children:"​"})):ye})),A.jsx($z,I({"aria-invalid":W,value:Array.isArray(Q)?Q.join(","):Q,name:y,ref:G,"aria-hidden":!0,onChange:ue,tabIndex:-1,disabled:d,className:de.nativeInput,autoFocus:i,ownerState:Y},q)),A.jsx(_z,{as:C,className:de.icon,ownerState:Y}),A.jsx(mz,I({id:`menu-${y||""}`,anchorEl:_,open:Le,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:I({"aria-labelledby":h,role:"listbox","aria-multiselectable":m?"true":void 0,disableListWrap:!0,id:Xe},g.MenuListProps),slotProps:I({},g.slotProps,{paper:I({},je,{style:I({minWidth:j},je!=null?je.style:null)})}),children:P}))]})}),aq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rq=["root"],lq=e=>{const{classes:t}=e;return t},dg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mn(e)&&e!=="variant",slot:"Root"},iq=H(ig,dg)(""),oq=H(cg,dg)(""),sq=H(ag,dg)(""),xS=v.forwardRef(function(t,n){const a=we({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:l,classes:i={},className:o,defaultOpen:s=!1,displayEmpty:p=!1,IconComponent:u=KI,id:c,input:d,inputProps:f,label:W,labelId:C,MenuProps:E,multiple:h=!1,native:g=!1,onClose:m,onOpen:y,open:x,renderValue:S,SelectDisplayProps:k,variant:B="outlined"}=a,V=ie(a,aq),b=g?Ez:nq,w=Na(),M=Xr({props:a,muiFormControl:w,states:["variant","error"]}),z=M.variant||B,F=I({},a,{variant:z,classes:i}),T=lq(F),U=ie(T,rq),q=d||{standard:A.jsx(iq,{ownerState:F}),outlined:A.jsx(oq,{label:W,ownerState:F}),filled:A.jsx(sq,{ownerState:F})}[z],Q=wt(n,Rl(q));return A.jsx(v.Fragment,{children:v.cloneElement(q,I({inputComponent:b,inputProps:I({children:l,error:M.error,IconComponent:u,variant:z,type:void 0,multiple:h},g?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:p,labelId:C,MenuProps:E,onClose:m,onOpen:y,open:x,renderValue:S,SelectDisplayProps:I({id:c},k)},f,{classes:f?hn(U,f.classes):U},d?d.props.inputProps:{})},(h&&g||p)&&z==="outlined"?{notched:!0}:{},{ref:Q,className:pe(q.props.className,o,T.root)},!d&&{variant:z},V))})});xS.muiName="Select";function pq(e){return Ee("MuiSkeleton",e)}xe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const uq=["animation","className","component","height","style","variant","width"];let Oc=e=>e,bS,kS,RS,wS;const cq=e=>{const{classes:t,variant:n,animation:a,hasChildren:r,width:l,height:i}=e;return be({root:["root",n,a,r&&"withChildren",r&&!l&&"fitContent",r&&!i&&"heightAuto"]},pq,t)},Aq=Zr(bS||(bS=Oc`
182
+ `),JU)),$r=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:i=!1,size:o=40,style:s,thickness:p=3.6,value:u=0,variant:c="indeterminate"}=a,d=ie(a,OU),f=I({},a,{color:l,disableShrink:i,size:o,thickness:p,value:u,variant:c}),W=DU(f),C={},E={},h={};if(c==="determinate"){const g=2*Math.PI*((_r-p)/2);C.strokeDasharray=g.toFixed(3),h["aria-valuenow"]=Math.round(u),C.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,E.transform="rotate(-90deg)"}return A.jsx(YU,I({className:pe(W.root,r),style:I({width:o,height:o},E,s),ownerState:f,ref:n,role:"progressbar"},h,d,{children:A.jsx(ZU,{className:W.svg,ownerState:f,viewBox:`${_r/2} ${_r/2} ${_r} ${_r}`,children:A.jsx(NU,{className:W.circle,style:C,ownerState:f,cx:_r,cy:_r,r:(_r-p)/2,fill:"none",strokeWidth:p})})}))});function GU(e){const t=un(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ys(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _I(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function XU(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||a}function $I(e,t,n,a,r){const l=[t,n,...a];[].forEach.call(e.children,i=>{const o=l.indexOf(i)===-1,s=!XU(i);o&&s&&ys(i,r)})}function tg(e,t){let n=-1;return e.some((a,r)=>t(a)?(n=r,!0):!1),n}function HU(e,t){const n=[],a=e.container;if(!t.disableScrollLock){if(GU(a)){const i=x1(un(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${_I(a)+i}px`;const o=un(a).querySelectorAll(".mui-fixed");[].forEach.call(o,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${_I(s)+i}px`})}let l;if(a.parentNode instanceof DocumentFragment)l=un(a).body;else{const i=a.parentElement,o=Da(a);l=(i==null?void 0:i.nodeName)==="HTML"&&o.getComputedStyle(i).overflowY==="scroll"?i:a}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:i,property:o})=>{l?i.style.setProperty(o,l):i.style.removeProperty(o)})}}function _U(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $U{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let a=this.modals.indexOf(t);if(a!==-1)return a;a=this.modals.length,this.modals.push(t),t.modalRef&&ys(t.modalRef,!1);const r=_U(n);$I(n,t.mount,t.modalRef,r,!0);const l=tg(this.containers,i=>i.container===n);return l!==-1?(this.containers[l].modals.push(t),a):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),a)}mount(t,n){const a=tg(this.containers,l=>l.modals.indexOf(t)!==-1),r=this.containers[a];r.restore||(r.restore=HU(r,n))}remove(t,n=!0){const a=this.modals.indexOf(t);if(a===-1)return a;const r=tg(this.containers,i=>i.modals.indexOf(t)!==-1),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(a,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&ys(t.modalRef,n),$I(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=l.modals[l.modals.length-1];i.modalRef&&ys(i.modalRef,!1)}return a}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const eF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function tF(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function nF(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function aF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||nF(e))}function rF(e){const t=[],n=[];return Array.from(e.querySelectorAll(eF)).forEach((a,r)=>{const l=tF(a);l===-1||!aF(a)||(l===0?t.push(a):n.push({documentOrder:r,tabIndex:l,node:a}))}),n.sort((a,r)=>a.tabIndex===r.tabIndex?a.documentOrder-r.documentOrder:a.tabIndex-r.tabIndex).map(a=>a.node).concat(t)}function lF(){return!0}function iF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:a=!1,disableRestoreFocus:r=!1,getTabbable:l=rF,isEnabled:i=lF,open:o}=e,s=v.useRef(!1),p=v.useRef(null),u=v.useRef(null),c=v.useRef(null),d=v.useRef(null),f=v.useRef(!1),W=v.useRef(null),C=wt(Rl(t),W),E=v.useRef(null);v.useEffect(()=>{!o||!W.current||(f.current=!n)},[n,o]),v.useEffect(()=>{if(!o||!W.current)return;const m=un(W.current);return W.current.contains(m.activeElement)||(W.current.hasAttribute("tabIndex")||W.current.setAttribute("tabIndex","-1"),f.current&&W.current.focus()),()=>{r||(c.current&&c.current.focus&&(s.current=!0,c.current.focus()),c.current=null)}},[o]),v.useEffect(()=>{if(!o||!W.current)return;const m=un(W.current),y=k=>{E.current=k,!(a||!i()||k.key!=="Tab")&&m.activeElement===W.current&&k.shiftKey&&(s.current=!0,u.current&&u.current.focus())},x=()=>{const k=W.current;if(k===null)return;if(!m.hasFocus()||!i()||s.current){s.current=!1;return}if(k.contains(m.activeElement)||a&&m.activeElement!==p.current&&m.activeElement!==u.current)return;if(m.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!f.current)return;let B=[];if((m.activeElement===p.current||m.activeElement===u.current)&&(B=l(W.current)),B.length>0){var V,b;const w=!!((V=E.current)!=null&&V.shiftKey&&((b=E.current)==null?void 0:b.key)==="Tab"),M=B[0],z=B[B.length-1];typeof M!="string"&&typeof z!="string"&&(w?z.focus():M.focus())}else k.focus()};m.addEventListener("focusin",x),m.addEventListener("keydown",y,!0);const S=setInterval(()=>{m.activeElement&&m.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(S),m.removeEventListener("focusin",x),m.removeEventListener("keydown",y,!0)}},[n,a,r,i,o,l]);const h=m=>{c.current===null&&(c.current=m.relatedTarget),f.current=!0,d.current=m.target;const y=t.props.onFocus;y&&y(m)},g=m=>{c.current===null&&(c.current=m.relatedTarget),f.current=!0};return A.jsxs(v.Fragment,{children:[A.jsx("div",{tabIndex:o?0:-1,onFocus:g,ref:p,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:C,onFocus:h}),A.jsx("div",{tabIndex:o?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function oF(e){return typeof e=="function"?e():e}function sF(e){return e?e.props.hasOwnProperty("in"):!1}const pF=new $U;function uF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:a=!1,manager:r=pF,closeAfterTransition:l=!1,onTransitionEnter:i,onTransitionExited:o,children:s,onClose:p,open:u,rootRef:c}=e,d=v.useRef({}),f=v.useRef(null),W=v.useRef(null),C=wt(W,c),[E,h]=v.useState(!u),g=sF(s);let m=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(m=!1);const y=()=>un(f.current),x=()=>(d.current.modalRef=W.current,d.current.mount=f.current,d.current),S=()=>{r.mount(x(),{disableScrollLock:a}),W.current&&(W.current.scrollTop=0)},k=wn(()=>{const U=oF(t)||y().body;r.add(x(),U),W.current&&S()}),B=v.useCallback(()=>r.isTopModal(x()),[r]),V=wn(U=>{f.current=U,U&&(u&&B()?S():W.current&&ys(W.current,m))}),b=v.useCallback(()=>{r.remove(x(),m)},[m,r]);v.useEffect(()=>()=>{b()},[b]),v.useEffect(()=>{u?k():(!g||!l)&&b()},[u,b,g,l,k]);const w=U=>q=>{var Q;(Q=U.onKeyDown)==null||Q.call(U,q),!(q.key!=="Escape"||q.which===229||!B())&&(n||(q.stopPropagation(),p&&p(q,"escapeKeyDown")))},M=U=>q=>{var Q;(Q=U.onClick)==null||Q.call(U,q),q.target===q.currentTarget&&p&&p(q,"backdropClick")};return{getRootProps:(U={})=>{const q=b1(e);delete q.onTransitionEnter,delete q.onTransitionExited;const Q=I({},q,U);return I({role:"presentation"},Q,{onKeyDown:w(Q),ref:C})},getBackdropProps:(U={})=>{const q=U;return I({"aria-hidden":!0},q,{onClick:M(q),open:u})},getTransitionProps:()=>{const U=()=>{h(!1),i&&i()},q=()=>{h(!0),o&&o(),l&&b()};return{onEnter:uc(U,s==null?void 0:s.props.onEnter),onExited:uc(q,s==null?void 0:s.props.onExited)}},rootRef:C,portalRef:V,isTopModal:B,exited:E,hasTransition:g}}function cF(e){return Ee("MuiModal",e)}xe("MuiModal",["root","hidden","backdrop"]);const AF=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dF=e=>{const{open:t,exited:n,classes:a}=e;return be({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cF,a)},fF=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),WF=H(DI,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eS=v.forwardRef(function(t,n){var a,r,l,i,o,s;const p=we({name:"MuiModal",props:t}),{BackdropComponent:u=WF,BackdropProps:c,className:d,closeAfterTransition:f=!1,children:W,container:C,component:E,components:h={},componentsProps:g={},disableAutoFocus:m=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:B=!1,hideBackdrop:V=!1,keepMounted:b=!1,onBackdropClick:w,open:M,slotProps:z,slots:F}=p,T=ie(p,AF),U=I({},p,{closeAfterTransition:f,disableAutoFocus:m,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:k,disableScrollLock:B,hideBackdrop:V,keepMounted:b}),{getRootProps:q,getBackdropProps:Q,getTransitionProps:K,portalRef:R,isTopModal:X,exited:G,hasTransition:L}=uF(I({},U,{rootRef:n})),te=I({},U,{exited:G}),re=dF(te),oe={};if(W.props.tabIndex===void 0&&(oe.tabIndex="-1"),L){const{onEnter:ge,onExited:Ce}=K();oe.onEnter=ge,oe.onExited=Ce}const ve=(a=(r=F==null?void 0:F.root)!=null?r:h.Root)!=null?a:fF,fe=(l=(i=F==null?void 0:F.backdrop)!=null?i:h.Backdrop)!=null?l:u,he=(o=z==null?void 0:z.root)!=null?o:g.root,ze=(s=z==null?void 0:z.backdrop)!=null?s:g.backdrop,_=kl({elementType:ve,externalSlotProps:he,externalForwardedProps:T,getSlotProps:q,additionalProps:{ref:n,as:E},ownerState:te,className:pe(d,he==null?void 0:he.className,re==null?void 0:re.root,!te.open&&te.exited&&(re==null?void 0:re.hidden))}),ee=kl({elementType:fe,externalSlotProps:ze,additionalProps:c,getSlotProps:ge=>Q(I({},ge,{onClick:Ce=>{w&&w(Ce),ge!=null&&ge.onClick&&ge.onClick(Ce)}})),className:pe(ze==null?void 0:ze.className,c==null?void 0:c.className,re==null?void 0:re.backdrop),ownerState:te});return!b&&!M&&(!L||G)?null:A.jsx(FI,{ref:R,container:C,disablePortal:S,children:A.jsxs(ve,I({},_,{children:[!V&&u?A.jsx(fe,I({},ee)):null,A.jsx(iF,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:k,isEnabled:X,open:M,children:v.cloneElement(W,oe)})]}))})});function gF(e){return Ee("MuiDialog",e)}const ng=xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),tS=v.createContext({}),hF=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mF=H(DI,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),CF=e=>{const{classes:t,scroll:n,maxWidth:a,fullWidth:r,fullScreen:l}=e,i={root:["root"],container:["container",`scroll${$(n)}`],paper:["paper",`paperScroll${$(n)}`,`paperWidth${$(String(a))}`,r&&"paperFullWidth",l&&"paperFullScreen"]};return be(i,gF,t)},vF=H(eS,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),yF=H("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${$(n.scroll)}`]]}})(({ownerState:e})=>I({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),IF=H(Dt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${$(n.scroll)}`],t[`paperWidth${$(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ng.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${ng.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ng.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),SF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialog"}),r=hr(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":o,BackdropComponent:s,BackdropProps:p,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:f=!1,fullWidth:W=!1,maxWidth:C="sm",onBackdropClick:E,onClick:h,onClose:g,open:m,PaperComponent:y=Dt,PaperProps:x={},scroll:S="paper",TransitionComponent:k=JI,transitionDuration:B=l,TransitionProps:V}=a,b=ie(a,hF),w=I({},a,{disableEscapeKeyDown:d,fullScreen:f,fullWidth:W,maxWidth:C,scroll:S}),M=CF(w),z=v.useRef(),F=Q=>{z.current=Q.target===Q.currentTarget},T=Q=>{h&&h(Q),z.current&&(z.current=null,E&&E(Q),g&&g(Q,"backdropClick"))},U=Nr(o),q=v.useMemo(()=>({titleId:U}),[U]);return A.jsx(vF,I({className:pe(M.root,c),closeAfterTransition:!0,components:{Backdrop:mF},componentsProps:{backdrop:I({transitionDuration:B,as:s},p)},disableEscapeKeyDown:d,onClose:g,open:m,ref:n,onClick:T,ownerState:w},b,{children:A.jsx(k,I({appear:!0,in:m,timeout:B,role:"presentation"},V,{children:A.jsx(yF,{className:pe(M.container),onMouseDown:F,ownerState:w,children:A.jsx(IF,I({as:y,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":U},x,{className:pe(M.paper,x.className),ownerState:w,children:A.jsx(tS.Provider,{value:q,children:u})}))})}))}))});function EF(e){return Ee("MuiDialogContent",e)}xe("MuiDialogContent",["root","dividers"]);function xF(e){return Ee("MuiDialogTitle",e)}const bF=xe("MuiDialogTitle",["root"]),kF=["className","dividers"],RF=e=>{const{classes:t,dividers:n}=e;return be({root:["root",n&&"dividers"]},EF,t)},wF=H("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${bF.root} + &`]:{paddingTop:0}})),BF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialogContent"}),{className:r,dividers:l=!1}=a,i=ie(a,kF),o=I({},a,{dividers:l}),s=RF(o);return A.jsx(wF,I({className:pe(s.root,r),ownerState:o,ref:n},i))}),MF=["className","id"],LF=e=>{const{classes:t}=e;return be({root:["root"]},xF,t)},QF=H(We,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),VF=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDialogTitle"}),{className:r,id:l}=a,i=ie(a,MF),o=a,s=LF(o),{titleId:p=l}=v.useContext(tS);return A.jsx(QF,I({component:"h2",className:pe(s.root,r),ownerState:o,ref:n,variant:"h6",id:l??p},i))});function UF(e){return Ee("MuiDivider",e)}xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const FF=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zF=e=>{const{absolute:t,children:n,classes:a,flexItem:r,light:l,orientation:i,textAlign:o,variant:s}=e;return be({root:["root",t&&"absolute",s,l&&"light",i==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",o==="right"&&i!=="vertical"&&"textAlignRight",o==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},UF,a)},qF=H("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>I({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:mt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>I({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>I({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>I({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),jF=H("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>I({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Xa=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiDivider"}),{absolute:r=!1,children:l,className:i,component:o=l?"div":"hr",flexItem:s=!1,light:p=!1,orientation:u="horizontal",role:c=o!=="hr"?"separator":void 0,textAlign:d="center",variant:f="fullWidth"}=a,W=ie(a,FF),C=I({},a,{absolute:r,component:o,flexItem:s,light:p,orientation:u,role:c,textAlign:d,variant:f}),E=zF(C);return A.jsx(qF,I({as:o,className:pe(E.root,i),role:c,ref:n,ownerState:C},W,{children:l?A.jsx(jF,{className:E.wrapper,ownerState:C,children:l}):null}))});Xa.muiSkipListHighlight=!0;const TF=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function KF(e,t,n){const a=t.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),l=Da(t);let i;if(t.fakeTransform)i=t.fakeTransform;else{const p=l.getComputedStyle(t);i=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let o=0,s=0;if(i&&i!=="none"&&typeof i=="string"){const p=i.split("(")[1].split(")")[0].split(",");o=parseInt(p[4],10),s=parseInt(p[5],10)}return e==="left"?r?`translateX(${r.right+o-a.left}px)`:`translateX(${l.innerWidth+o-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-o}px)`:`translateX(-${a.left+a.width-o}px)`:e==="up"?r?`translateY(${r.bottom+s-a.top}px)`:`translateY(${l.innerHeight+s-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-s}px)`:`translateY(-${a.top+a.height-s}px)`}function OF(e){return typeof e=="function"?e():e}function jc(e,t,n){const a=OF(n),r=KF(e,t,a);r&&(t.style.webkitTransform=r,t.style.transform=r)}const PF=v.forwardRef(function(t,n){const a=hr(),r={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:i,appear:o=!0,children:s,container:p,direction:u="down",easing:c=r,in:d,onEnter:f,onEntered:W,onEntering:C,onExit:E,onExited:h,onExiting:g,style:m,timeout:y=l,TransitionComponent:x=Ba}=t,S=ie(t,TF),k=v.useRef(null),B=wt(Rl(s),k,n),V=Q=>K=>{Q&&(K===void 0?Q(k.current):Q(k.current,K))},b=V((Q,K)=>{jc(u,Q,p),FW(Q),f&&f(Q,K)}),w=V((Q,K)=>{const R=Ti({timeout:y,style:m,easing:c},{mode:"enter"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",I({},R)),Q.style.transition=a.transitions.create("transform",I({},R)),Q.style.webkitTransform="none",Q.style.transform="none",C&&C(Q,K)}),M=V(W),z=V(g),F=V(Q=>{const K=Ti({timeout:y,style:m,easing:c},{mode:"exit"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",K),Q.style.transition=a.transitions.create("transform",K),jc(u,Q,p),E&&E(Q)}),T=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",h&&h(Q)}),U=Q=>{i&&i(k.current,Q)},q=v.useCallback(()=>{k.current&&jc(u,k.current,p)},[u,p]);return v.useEffect(()=>{if(d||u==="down"||u==="right")return;const Q=cc(()=>{k.current&&jc(u,k.current,p)}),K=Da(k.current);return K.addEventListener("resize",Q),()=>{Q.clear(),K.removeEventListener("resize",Q)}},[u,d,p]),v.useEffect(()=>{d||q()},[d,q]),A.jsx(x,I({nodeRef:k,onEnter:b,onEntered:M,onEntering:w,onExit:F,onExited:T,onExiting:z,addEndListener:U,appear:o,in:d,timeout:y},S,{children:(Q,K)=>v.cloneElement(s,I({ref:B,style:I({visibility:Q==="exited"&&!d?"hidden":void 0},m,s.props.style)},K))}))}),JF=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],DF=e=>{const{classes:t,disableUnderline:n}=e,r=be({root:["root",!n&&"underline"],input:["input"]},y5,t);return I({},t,r)},YF=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const a=e.palette.mode==="light",r=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l}},[`&.${Gn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:l},[`&.${Gn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gn.disabled}, .${Gn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),ZF=H(Fc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>I({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),ag=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiFilledInput"}),{components:s={},componentsProps:p,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:f,slots:W={},type:C="text"}=o,E=ie(o,JF),h=I({},o,{fullWidth:u,inputComponent:c,multiline:d,type:C}),g=DF(o),m={root:{ownerState:h},input:{ownerState:h}},y=f??p?hn(m,f??p):m,x=(a=(r=W.root)!=null?r:s.Root)!=null?a:YF,S=(l=(i=W.input)!=null?i:s.Input)!=null?l:ZF;return A.jsx(HW,I({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:n,type:C},E,{classes:g}))});ag.muiName="Input";function NF(e){return Ee("MuiFormControl",e)}xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GF=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],XF=e=>{const{classes:t,margin:n,fullWidth:a}=e,r={root:["root",n!=="none"&&`margin${$(n)}`,a&&"fullWidth"]};return be(r,NF,t)},HF=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${$(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),_F=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormControl"}),{children:r,className:l,color:i="primary",component:o="div",disabled:s=!1,error:p=!1,focused:u,fullWidth:c=!1,hiddenLabel:d=!1,margin:f="none",required:W=!1,size:C="medium",variant:E="outlined"}=a,h=ie(a,GF),g=I({},a,{color:i,component:o,disabled:s,error:p,fullWidth:c,hiddenLabel:d,margin:f,required:W,size:C,variant:E}),m=XF(g),[y,x]=v.useState(()=>{let z=!1;return r&&v.Children.forEach(r,F=>{if(!Ac(F,["Input","Select"]))return;const T=Ac(F,["Select"])?F.props.input:F;T&&f5(T.props)&&(z=!0)}),z}),[S,k]=v.useState(()=>{let z=!1;return r&&v.Children.forEach(r,F=>{Ac(F,["Input","Select"])&&(Lc(F.props,!0)||Lc(F.props.inputProps,!0))&&(z=!0)}),z}),[B,V]=v.useState(!1);s&&B&&V(!1);const b=u!==void 0&&!s?u:B;let w;const M=v.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:i,disabled:s,error:p,filled:S,focused:b,fullWidth:c,hiddenLabel:d,size:C,onBlur:()=>{V(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{V(!0)},registerEffect:w,required:W,variant:E}),[y,i,s,p,S,b,c,d,w,W,C,E]);return A.jsx(Mc.Provider,{value:M,children:A.jsx(HF,I({as:o,ownerState:g,className:pe(m.root,l),ref:n},h,{children:r}))})}),Xt=dM({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>we({props:e,name:"MuiStack"})});function $F(e){return Ee("MuiFormControlLabel",e)}const Is=xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),e9=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],t9=e=>{const{classes:t,disabled:n,labelPlacement:a,error:r,required:l}=e,i={root:["root",n&&"disabled",`labelPlacement${$(a)}`,r&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return be(i,$F,t)},n9=H("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Is.label}`]:t.label},t.root,t[`labelPlacement${$(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Is.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Is.label}`]:{[`&.${Is.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),a9=H("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Is.error}`]:{color:(e.vars||e).palette.error.main}})),Tc=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:s,disabled:p,disableTypography:u,label:c,labelPlacement:d="end",required:f,slotProps:W={}}=l,C=ie(l,e9),E=Na(),h=(a=p??s.props.disabled)!=null?a:E==null?void 0:E.disabled,g=f??s.props.required,m={disabled:h,required:g};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof s.props[V]>"u"&&typeof l[V]<"u"&&(m[V]=l[V])});const y=Xr({props:l,muiFormControl:E,states:["error"]}),x=I({},l,{disabled:h,labelPlacement:d,required:g,error:y.error}),S=t9(x),k=(r=W.typography)!=null?r:o.typography;let B=c;return B!=null&&B.type!==We&&!u&&(B=A.jsx(We,I({component:"span"},k,{className:pe(S.label,k==null?void 0:k.className),children:B}))),A.jsxs(n9,I({className:pe(S.root,i),ownerState:x,ref:n},C,{children:[v.cloneElement(s,m),g?A.jsxs(Xt,{display:"block",children:[B,A.jsxs(a9,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):B]}))});function r9(e){return Ee("MuiFormGroup",e)}xe("MuiFormGroup",["root","row","error"]);const l9=["className","row"],i9=e=>{const{classes:t,row:n,error:a}=e;return be({root:["root",n&&"row",a&&"error"]},r9,t)},o9=H("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),s9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormGroup"}),{className:r,row:l=!1}=a,i=ie(a,l9),o=Na(),s=Xr({props:a,muiFormControl:o,states:["error"]}),p=I({},a,{row:l,error:s.error}),u=i9(p);return A.jsx(o9,I({className:pe(u.root,r),ownerState:p,ref:n},i))});function p9(e){return Ee("MuiFormHelperText",e)}const nS=xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aS;const u9=["children","className","component","disabled","error","filled","focused","margin","required","variant"],c9=e=>{const{classes:t,contained:n,size:a,disabled:r,error:l,filled:i,focused:o,required:s}=e,p={root:["root",r&&"disabled",l&&"error",a&&`size${$(a)}`,n&&"contained",o&&"focused",i&&"filled",s&&"required"]};return be(p,p9,t)},A9=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${$(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${nS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${nS.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),d9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormHelperText"}),{children:r,className:l,component:i="p"}=a,o=ie(a,u9),s=Na(),p=Xr({props:a,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),u=I({},a,{component:i,contained:p.variant==="filled"||p.variant==="outlined",variant:p.variant,size:p.size,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=c9(u);return A.jsx(A9,I({as:i,ownerState:u,className:pe(c.root,l),ref:n},o,{children:r===" "?aS||(aS=A.jsx("span",{className:"notranslate",children:"​"})):r}))});function f9(e){return Ee("MuiFormLabel",e)}const Ss=xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),W9=["children","className","color","component","disabled","error","filled","focused","required"],g9=e=>{const{classes:t,color:n,focused:a,disabled:r,error:l,filled:i,required:o}=e,s={root:["root",`color${$(n)}`,r&&"disabled",l&&"error",i&&"filled",a&&"focused",o&&"required"],asterisk:["asterisk",l&&"error"]};return be(s,f9,t)},h9=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ss.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ss.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ss.error}`]:{color:(e.vars||e).palette.error.main}})),m9=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ss.error}`]:{color:(e.vars||e).palette.error.main}})),C9=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiFormLabel"}),{children:r,className:l,component:i="label"}=a,o=ie(a,W9),s=Na(),p=Xr({props:a,muiFormControl:s,states:["color","required","focused","disabled","error","filled"]}),u=I({},a,{color:p.color||"primary",component:i,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required}),c=g9(u);return A.jsxs(h9,I({as:i,ownerState:u,className:pe(c.root,l),ref:n},o,{children:[r,p.required&&A.jsxs(m9,{ownerState:u,"aria-hidden":!0,className:c.asterisk,children:[" ","*"]})]}))}),rS=v.createContext();function v9(e){return Ee("MuiGrid",e)}const y9=[0,1,2,3,4,5,6,7,8,9,10],I9=["column-reverse","column","row-reverse","row"],S9=["nowrap","wrap-reverse","wrap"],Es=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=xe("MuiGrid",["root","container","item","zeroMinWidth",...y9.map(e=>`spacing-xs-${e}`),...I9.map(e=>`direction-xs-${e}`),...S9.map(e=>`wrap-xs-${e}`),...Es.map(e=>`grid-xs-${e}`),...Es.map(e=>`grid-sm-${e}`),...Es.map(e=>`grid-md-${e}`),...Es.map(e=>`grid-lg-${e}`),...Es.map(e=>`grid-xl-${e}`)]),E9=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Yi(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function x9({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((a,r)=>{let l={};if(t[r]&&(n=t[r]),!n)return a;if(n===!0)l={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")l={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=xl({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof i=="object"?i[r]:i;if(o==null)return a;const s=`${Math.round(n/o*1e8)/1e6}%`;let p={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const c=`calc(${s} + ${Yi(u)})`;p={flexBasis:c,maxWidth:c}}}l=I({flexBasis:s,flexGrow:0,maxWidth:s},p)}return e.breakpoints.values[r]===0?Object.assign(a,l):a[e.breakpoints.up(r)]=l,a},{})}function b9({theme:e,ownerState:t}){const n=xl({values:t.direction,breakpoints:e.breakpoints.values});return kn({theme:e},n,a=>{const r={flexDirection:a};return a.indexOf("column")===0&&(r[`& > .${xs.item}`]={maxWidth:"none"}),r})}function lS({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(r=>{n===""&&t[r]!==0&&(n=r)});const a=Object.keys(e).sort((r,l)=>e[r]-e[l]);return a.slice(0,a.indexOf(n))}function k9({theme:e,ownerState:t}){const{container:n,rowSpacing:a}=t;let r={};if(n&&a!==0){const l=xl({values:a,breakpoints:e.breakpoints.values});let i;typeof l=="object"&&(i=lS({breakpoints:e.breakpoints.values,values:l})),r=kn({theme:e},l,(o,s)=>{var p;const u=e.spacing(o);return u!=="0px"?{marginTop:`-${Yi(u)}`,[`& > .${xs.item}`]:{paddingTop:Yi(u)}}:(p=i)!=null&&p.includes(s)?{}:{marginTop:0,[`& > .${xs.item}`]:{paddingTop:0}}})}return r}function R9({theme:e,ownerState:t}){const{container:n,columnSpacing:a}=t;let r={};if(n&&a!==0){const l=xl({values:a,breakpoints:e.breakpoints.values});let i;typeof l=="object"&&(i=lS({breakpoints:e.breakpoints.values,values:l})),r=kn({theme:e},l,(o,s)=>{var p;const u=e.spacing(o);return u!=="0px"?{width:`calc(100% + ${Yi(u)})`,marginLeft:`-${Yi(u)}`,[`& > .${xs.item}`]:{paddingLeft:Yi(u)}}:(p=i)!=null&&p.includes(s)?{}:{width:"100%",marginLeft:0,[`& > .${xs.item}`]:{paddingLeft:0}}})}return r}function w9(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const a=[];return t.forEach(r=>{const l=e[r];Number(l)>0&&a.push(n[`spacing-${r}-${String(l)}`])}),a}const B9=H("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:a,direction:r,item:l,spacing:i,wrap:o,zeroMinWidth:s,breakpoints:p}=n;let u=[];a&&(u=w9(i,p,t));const c=[];return p.forEach(d=>{const f=n[d];f&&c.push(t[`grid-${d}-${String(f)}`])}),[t.root,a&&t.container,l&&t.item,s&&t.zeroMinWidth,...u,r!=="row"&&t[`direction-xs-${String(r)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...c]}})(({ownerState:e})=>I({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),b9,k9,R9,x9);function M9(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(a=>{const r=e[a];if(Number(r)>0){const l=`spacing-${a}-${String(r)}`;n.push(l)}}),n}const L9=e=>{const{classes:t,container:n,direction:a,item:r,spacing:l,wrap:i,zeroMinWidth:o,breakpoints:s}=e;let p=[];n&&(p=M9(l,s));const u=[];s.forEach(d=>{const f=e[d];f&&u.push(`grid-${d}-${String(f)}`)});const c={root:["root",n&&"container",r&&"item",o&&"zeroMinWidth",...p,a!=="row"&&`direction-xs-${String(a)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...u]};return be(c,v9,t)},ut=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiGrid"}),{breakpoints:r}=hr(),l=ss(a),{className:i,columns:o,columnSpacing:s,component:p="div",container:u=!1,direction:c="row",item:d=!1,rowSpacing:f,spacing:W=0,wrap:C="wrap",zeroMinWidth:E=!1}=l,h=ie(l,E9),g=f||W,m=s||W,y=v.useContext(rS),x=u?o||12:y,S={},k=I({},h);r.keys.forEach(b=>{h[b]!=null&&(S[b]=h[b],delete k[b])});const B=I({},l,{columns:x,container:u,direction:c,item:d,rowSpacing:g,columnSpacing:m,wrap:C,zeroMinWidth:E,spacing:W},S,{breakpoints:r.keys}),V=L9(B);return A.jsx(rS.Provider,{value:x,children:A.jsx(B9,I({ownerState:B,className:pe(V.root,i),as:p,ref:n},k))})}),Q9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rg(e){return`scale(${e}, ${e**2})`}const V9={entering:{opacity:1,transform:rg(1)},entered:{opacity:1,transform:"none"}},lg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Kc=v.forwardRef(function(t,n){const{addEndListener:a,appear:r=!0,children:l,easing:i,in:o,onEnter:s,onEntered:p,onEntering:u,onExit:c,onExited:d,onExiting:f,style:W,timeout:C="auto",TransitionComponent:E=Ba}=t,h=ie(t,Q9),g=Vi(),m=v.useRef(),y=hr(),x=v.useRef(null),S=wt(x,Rl(l),n),k=T=>U=>{if(T){const q=x.current;U===void 0?T(q):T(q,U)}},B=k(u),V=k((T,U)=>{FW(T);const{duration:q,delay:Q,easing:K}=Ti({style:W,timeout:C,easing:i},{mode:"enter"});let R;C==="auto"?(R=y.transitions.getAutoHeightDuration(T.clientHeight),m.current=R):R=q,T.style.transition=[y.transitions.create("opacity",{duration:R,delay:Q}),y.transitions.create("transform",{duration:lg?R:R*.666,delay:Q,easing:K})].join(","),s&&s(T,U)}),b=k(p),w=k(f),M=k(T=>{const{duration:U,delay:q,easing:Q}=Ti({style:W,timeout:C,easing:i},{mode:"exit"});let K;C==="auto"?(K=y.transitions.getAutoHeightDuration(T.clientHeight),m.current=K):K=U,T.style.transition=[y.transitions.create("opacity",{duration:K,delay:q}),y.transitions.create("transform",{duration:lg?K:K*.666,delay:lg?q:q||K*.333,easing:Q})].join(","),T.style.opacity=0,T.style.transform=rg(.75),c&&c(T)}),z=k(d),F=T=>{C==="auto"&&g.start(m.current||0,T),a&&a(x.current,T)};return A.jsx(E,I({appear:r,in:o,nodeRef:x,onEnter:V,onEntered:b,onEntering:B,onExit:M,onExited:z,onExiting:w,addEndListener:F,timeout:C==="auto"?null:C},h,{children:(T,U)=>v.cloneElement(l,I({style:I({opacity:0,transform:rg(.75),visibility:T==="exited"&&!o?"hidden":void 0},V9[T],W,l.props.style),ref:S},U))}))});Kc.muiSupportAuto=!0;const U9=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],F9=e=>{const{classes:t,disableUnderline:n}=e,r=be({root:["root",!n&&"underline"],input:["input"]},C5,t);return I({},t,r)},z9=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qc(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let a=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(a=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),I({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Hr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${a}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Hr.disabled}, .${Hr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${a}`}},[`&.${Hr.disabled}:before`]:{borderBottomStyle:"dotted"}})}),q9=H(Fc,{name:"MuiInput",slot:"Input",overridesResolver:Vc})({}),ig=v.forwardRef(function(t,n){var a,r,l,i;const o=we({props:t,name:"MuiInput"}),{disableUnderline:s,components:p={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:W,slots:C={},type:E="text"}=o,h=ie(o,U9),g=F9(o),y={root:{ownerState:{disableUnderline:s}}},x=W??u?hn(W??u,y):y,S=(a=(r=C.root)!=null?r:p.Root)!=null?a:z9,k=(l=(i=C.input)!=null?i:p.Input)!=null?l:q9;return A.jsx(HW,I({slots:{root:S,input:k},slotProps:x,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:E},h,{classes:g}))});ig.muiName="Input";function j9(e){return Ee("MuiInputAdornment",e)}const iS=xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var oS;const T9=["children","className","component","disablePointerEvents","disableTypography","position","variant"],K9=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${$(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},O9=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:l,variant:i}=e,o={root:["root",n&&"disablePointerEvents",r&&`position${$(r)}`,i,a&&"hiddenLabel",l&&`size${$(l)}`]};return be(o,j9,t)},P9=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:K9})(({theme:e,ownerState:t})=>I({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${iS.positionStart}&:not(.${iS.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),og=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiInputAdornment"}),{children:r,className:l,component:i="div",disablePointerEvents:o=!1,disableTypography:s=!1,position:p,variant:u}=a,c=ie(a,T9),d=Na()||{};let f=u;u&&d.variant,d&&!f&&(f=d.variant);const W=I({},a,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:p,variant:f}),C=O9(W);return A.jsx(Mc.Provider,{value:null,children:A.jsx(P9,I({as:i,ownerState:W,className:pe(C.root,l),ref:n},c,{children:typeof r=="string"&&!s?A.jsx(We,{color:"text.secondary",children:r}):A.jsxs(v.Fragment,{children:[p==="start"?oS||(oS=A.jsx("span",{className:"notranslate",children:"​"})):null,r]})}))})});function J9(e){return Ee("MuiInputLabel",e)}xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const D9=["disableAnimation","margin","shrink","variant","className"],Y9=e=>{const{classes:t,formControl:n,size:a,shrink:r,disableAnimation:l,variant:i,required:o}=e,s={root:["root",n&&"formControl",!l&&"animated",r&&"shrink",a&&a!=="normal"&&`size${$(a)}`,i],asterisk:[o&&"asterisk"]},p=be(s,J9,t);return I({},t,p)},Z9=H(C9,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ss.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>I({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&I({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&I({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&I({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),N9=v.forwardRef(function(t,n){const a=we({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:l,className:i}=a,o=ie(a,D9),s=Na();let p=l;typeof p>"u"&&s&&(p=s.filled||s.focused||s.adornedStart);const u=Xr({props:a,muiFormControl:s,states:["size","variant","required","focused"]}),c=I({},a,{disableAnimation:r,formControl:s,shrink:p,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=Y9(c);return A.jsx(Z9,I({"data-shrink":p,ownerState:c,ref:n,className:pe(d.root,i)},o,{classes:d}))}),G9=v.createContext({});function X9(e){return Ee("MuiList",e)}xe("MuiList",["root","padding","dense","subheader"]);const H9=["children","className","component","dense","disablePadding","subheader"],_9=e=>{const{classes:t,disablePadding:n,dense:a,subheader:r}=e;return be({root:["root",!n&&"padding",a&&"dense",r&&"subheader"]},X9,t)},$9=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ez=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiList"}),{children:r,className:l,component:i="ul",dense:o=!1,disablePadding:s=!1,subheader:p}=a,u=ie(a,H9),c=v.useMemo(()=>({dense:o}),[o]),d=I({},a,{component:i,dense:o,disablePadding:s}),f=_9(d);return A.jsx(G9.Provider,{value:c,children:A.jsxs($9,I({as:i,className:pe(f.root,l),ref:n,ownerState:d},u,{children:[p,r]}))})}),tz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sS(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pS(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function bs(e,t,n,a,r,l){let i=!1,o=r(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(i)return!1;i=!0}const s=a?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!pS(o,l)||s)o=r(e,o,n);else return o.focus(),!0}return!1}const nz=v.forwardRef(function(t,n){const{actions:a,autoFocus:r=!1,autoFocusItem:l=!1,children:i,className:o,disabledItemsFocusable:s=!1,disableListWrap:p=!1,onKeyDown:u,variant:c="selectedMenu"}=t,d=ie(t,tz),f=v.useRef(null),W=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pa(()=>{r&&f.current.focus()},[r]),v.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(m,{direction:y})=>{const x=!f.current.style.width;if(m.clientHeight<f.current.clientHeight&&x){const S=`${x1(un(m))}px`;f.current.style[y==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const C=m=>{const y=f.current,x=m.key,S=un(y).activeElement;if(x==="ArrowDown")m.preventDefault(),bs(y,S,p,s,sg);else if(x==="ArrowUp")m.preventDefault(),bs(y,S,p,s,sS);else if(x==="Home")m.preventDefault(),bs(y,null,p,s,sg);else if(x==="End")m.preventDefault(),bs(y,null,p,s,sS);else if(x.length===1){const k=W.current,B=x.toLowerCase(),V=performance.now();k.keys.length>0&&(V-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&B!==k.keys[0]&&(k.repeating=!1)),k.lastTime=V,k.keys.push(B);const b=S&&!k.repeating&&pS(S,k);k.previousKeyMatched&&(b||bs(y,S,!1,s,sg,k))?m.preventDefault():k.previousKeyMatched=!1}u&&u(m)},E=wt(f,n);let h=-1;v.Children.forEach(i,(m,y)=>{if(!v.isValidElement(m)){h===y&&(h+=1,h>=i.length&&(h=-1));return}m.props.disabled||(c==="selectedMenu"&&m.props.selected||h===-1)&&(h=y),h===y&&(m.props.disabled||m.props.muiSkipListHighlight||m.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))});const g=v.Children.map(i,(m,y)=>{if(y===h){const x={};return l&&(x.autoFocus=!0),m.props.tabIndex===void 0&&c==="selectedMenu"&&(x.tabIndex=0),v.cloneElement(m,x)}return m});return A.jsx(ez,I({role:"menu",ref:E,className:o,onKeyDown:C,tabIndex:r?0:-1},d,{children:g}))});function az(e){return Ee("MuiPopover",e)}xe("MuiPopover",["root","paper"]);const rz=["onEntering"],lz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],iz=["slotProps"];function uS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function cS(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function AS(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pg(e){return typeof e=="function"?e():e}const oz=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"]},az,t)},sz=H(eS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dS=H(Dt,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fS=v.forwardRef(function(t,n){var a,r,l;const i=we({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:p={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:f,container:W,elevation:C=8,marginThreshold:E=16,open:h,PaperProps:g={},slots:m,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Kc,transitionDuration:k="auto",TransitionProps:{onEntering:B}={},disableScrollLock:V=!1}=i,b=ie(i.TransitionProps,rz),w=ie(i,lz),M=(a=y==null?void 0:y.paper)!=null?a:g,z=v.useRef(),F=wt(z,M.ref),T=I({},i,{anchorOrigin:p,anchorReference:c,elevation:C,marginThreshold:E,externalPaperSlotProps:M,transformOrigin:x,TransitionComponent:S,transitionDuration:k,TransitionProps:b}),U=oz(T),q=v.useCallback(()=>{if(c==="anchorPosition")return u;const ge=pg(s),se=(ge&&ge.nodeType===1?ge:un(z.current).body).getBoundingClientRect();return{top:se.top+uS(se,p.vertical),left:se.left+cS(se,p.horizontal)}},[s,p.horizontal,p.vertical,u,c]),Q=v.useCallback(ge=>({vertical:uS(ge,x.vertical),horizontal:cS(ge,x.horizontal)}),[x.horizontal,x.vertical]),K=v.useCallback(ge=>{const Ce={width:ge.offsetWidth,height:ge.offsetHeight},se=Q(Ce);if(c==="none")return{top:null,left:null,transformOrigin:AS(se)};const ue=q();let Te=ue.top-se.vertical,ne=ue.left-se.horizontal;const Le=Te+Ce.height,Me=ne+Ce.width,ye=Da(pg(s)),Ze=ye.innerHeight-E,Qe=ye.innerWidth-E;if(E!==null&&Te<E){const Fe=Te-E;Te-=Fe,se.vertical+=Fe}else if(E!==null&&Le>Ze){const Fe=Le-Ze;Te-=Fe,se.vertical+=Fe}if(E!==null&&ne<E){const Fe=ne-E;ne-=Fe,se.horizontal+=Fe}else if(Me>Qe){const Fe=Me-Qe;ne-=Fe,se.horizontal+=Fe}return{top:`${Math.round(Te)}px`,left:`${Math.round(ne)}px`,transformOrigin:AS(se)}},[s,c,q,Q,E]),[R,X]=v.useState(h),G=v.useCallback(()=>{const ge=z.current;if(!ge)return;const Ce=K(ge);Ce.top!==null&&(ge.style.top=Ce.top),Ce.left!==null&&(ge.style.left=Ce.left),ge.style.transformOrigin=Ce.transformOrigin,X(!0)},[K]);v.useEffect(()=>(V&&window.addEventListener("scroll",G),()=>window.removeEventListener("scroll",G)),[s,V,G]);const L=(ge,Ce)=>{B&&B(ge,Ce),G()},te=()=>{X(!1)};v.useEffect(()=>{h&&G()}),v.useImperativeHandle(o,()=>h?{updatePosition:()=>{G()}}:null,[h,G]),v.useEffect(()=>{if(!h)return;const ge=cc(()=>{G()}),Ce=Da(s);return Ce.addEventListener("resize",ge),()=>{ge.clear(),Ce.removeEventListener("resize",ge)}},[s,h,G]);let re=k;k==="auto"&&!S.muiSupportAuto&&(re=void 0);const oe=W||(s?un(pg(s)).body:void 0),ve=(r=m==null?void 0:m.root)!=null?r:sz,fe=(l=m==null?void 0:m.paper)!=null?l:dS,he=kl({elementType:fe,externalSlotProps:I({},M,{style:R?M.style:I({},M.style,{opacity:0})}),additionalProps:{elevation:C,ref:F},ownerState:T,className:pe(U.paper,M==null?void 0:M.className)}),ze=kl({elementType:ve,externalSlotProps:(y==null?void 0:y.root)||{},externalForwardedProps:w,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:oe,open:h},ownerState:T,className:pe(U.root,f)}),{slotProps:_}=ze,ee=ie(ze,iz);return A.jsx(ve,I({},ee,!fc(ve)&&{slotProps:_,disableScrollLock:V},{children:A.jsx(S,I({appear:!0,in:h,onEntering:L,onExited:te,timeout:re},b,{children:A.jsx(fe,I({},he,{children:d}))}))}))});function pz(e){return Ee("MuiMenu",e)}xe("MuiMenu",["root","paper","list"]);const uz=["onEntering"],cz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Az={vertical:"top",horizontal:"right"},dz={vertical:"top",horizontal:"left"},fz=e=>{const{classes:t}=e;return be({root:["root"],paper:["paper"],list:["list"]},pz,t)},Wz=H(fS,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gz=H(dS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hz=H(nz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),mz=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:s,disableAutoFocusItem:p=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:f={},PopoverClasses:W,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},variant:h="selectedMenu",slots:g={},slotProps:m={}}=l,y=ie(l.TransitionProps,uz),x=ie(l,cz),S=Q1(),k=I({},l,{autoFocus:i,disableAutoFocusItem:p,MenuListProps:u,onEntering:E,PaperProps:f,transitionDuration:C,TransitionProps:y,variant:h}),B=fz(k),V=i&&!p&&d,b=v.useRef(null),w=(Q,K)=>{b.current&&b.current.adjustStyleForScrollbar(Q,{direction:S?"rtl":"ltr"}),E&&E(Q,K)},M=Q=>{Q.key==="Tab"&&(Q.preventDefault(),c&&c(Q,"tabKeyDown"))};let z=-1;v.Children.map(o,(Q,K)=>{v.isValidElement(Q)&&(Q.props.disabled||(h==="selectedMenu"&&Q.props.selected||z===-1)&&(z=K))});const F=(a=g.paper)!=null?a:gz,T=(r=m.paper)!=null?r:f,U=kl({elementType:g.root,externalSlotProps:m.root,ownerState:k,className:[B.root,s]}),q=kl({elementType:F,externalSlotProps:T,ownerState:k,className:B.paper});return A.jsx(Wz,I({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Az:dz,slots:{paper:F,root:g.root},slotProps:{root:U,paper:q},open:d,ref:n,transitionDuration:C,TransitionProps:I({onEntering:w},y),ownerState:k},x,{classes:W,children:A.jsx(hz,I({onKeyDown:M,actions:b,autoFocus:i&&(z===-1||p),autoFocusItem:V,variant:h},u,{className:pe(B.list,u.className),children:o}))}))});function Cz(e){return Ee("MuiNativeSelect",e)}const ug=xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vz=["className","disabled","error","IconComponent","inputRef","variant"],yz=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:i}=e,o={select:["select",n,a&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"]};return be(o,Cz,t)},WS=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ug.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Iz=H("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ug.multiple}`]:t.multiple}]}})(WS),gS=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ug.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Sz=H("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(gS),Ez=v.forwardRef(function(t,n){const{className:a,disabled:r,error:l,IconComponent:i,inputRef:o,variant:s="standard"}=t,p=ie(t,vz),u=I({},t,{disabled:r,variant:s,error:l}),c=yz(u);return A.jsxs(v.Fragment,{children:[A.jsx(Iz,I({ownerState:u,className:pe(c.select,a),disabled:r,ref:o||n},p)),t.multiple?null:A.jsx(Sz,{as:i,ownerState:u,className:c.icon})]})});var hS;const xz=["children","classes","className","label","notched"],bz=H("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:mn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),kz=H("legend",{name:"MuiNotchedOutlined",shouldForwardProp:mn})(({ownerState:e,theme:t})=>I({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&I({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Rz(e){const{className:t,label:n,notched:a}=e,r=ie(e,xz),l=n!=null&&n!=="",i=I({},e,{notched:a,withLabel:l});return A.jsx(bz,I({"aria-hidden":!0,className:t,ownerState:i},r,{children:A.jsx(kz,{ownerState:i,children:l?A.jsx("span",{children:n}):hS||(hS=A.jsx("span",{className:"notranslate",children:"​"}))})}))}const wz=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Bz=e=>{const{classes:t}=e,a=be({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},v5,t);return I({},t,a)},Mz=H(Uc,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qc})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ga.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ga.focused} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ga.error} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ga.disabled} .${Ga.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Lz=H(Rz,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Qz=H(Fc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Vc})(({theme:e,ownerState:t})=>I({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),cg=v.forwardRef(function(t,n){var a,r,l,i,o;const s=we({props:t,name:"MuiOutlinedInput"}),{components:p={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:f=!1,notched:W,slots:C={},type:E="text"}=s,h=ie(s,wz),g=Bz(s),m=Na(),y=Xr({props:s,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=I({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:f,size:y.size,type:E}),S=(a=(r=C.root)!=null?r:p.Root)!=null?a:Mz,k=(l=(i=C.input)!=null?i:p.Input)!=null?l:Qz;return A.jsx(HW,I({slots:{root:S,input:k},renderSuffix:B=>A.jsx(Lz,{ownerState:x,className:g.notchedOutline,label:d!=null&&d!==""&&y.required?o||(o=A.jsxs(v.Fragment,{children:[d," ","*"]})):d,notched:typeof W<"u"?W:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:u,inputComponent:c,multiline:f,ref:n,type:E},h,{classes:I({},g,{notchedOutline:null})}))});cg.muiName="Input";const Vz=an(A.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Uz=an(A.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),Fz=H("span",{name:"MuiRadioButtonIcon",shouldForwardProp:mn})({position:"relative",display:"flex"}),zz=H(Vz,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),qz=H(Uz,{name:"MuiRadioButtonIcon"})(({theme:e,ownerState:t})=>I({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function mS(e){const{checked:t=!1,classes:n={},fontSize:a}=e,r=I({},e,{checked:t});return A.jsxs(Fz,{className:n.root,ownerState:r,children:[A.jsx(zz,{fontSize:a,className:n.background,ownerState:r}),A.jsx(qz,{fontSize:a,className:n.dot,ownerState:r})]})}const CS=v.createContext(void 0);function jz(){return v.useContext(CS)}function Tz(e){return Ee("MuiRadio",e)}const vS=xe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Kz=["checked","checkedIcon","color","icon","name","onChange","size","className"],Oz=e=>{const{classes:t,color:n,size:a}=e,r={root:["root",`color${$(n)}`,a!=="medium"&&`size${$(a)}`]};return I({},t,be(r,Tz,t))},Pz=H(ZI,{shouldForwardProp:e=>mn(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${$(n.size)}`],t[`color${$(n.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:mt(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${vS.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${vS.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function Jz(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const yS=A.jsx(mS,{checked:!0}),IS=A.jsx(mS,{}),Ag=v.forwardRef(function(t,n){var a,r;const l=we({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:o=yS,color:s="primary",icon:p=IS,name:u,onChange:c,size:d="medium",className:f}=l,W=ie(l,Kz),C=I({},l,{color:s,size:d}),E=Oz(C),h=jz();let g=i;const m=uc(c,h&&h.onChange);let y=u;return h&&(typeof g>"u"&&(g=Jz(h.value,l.value)),typeof y>"u"&&(y=h.name)),A.jsx(Pz,I({type:"radio",icon:v.cloneElement(p,{fontSize:(a=IS.props.fontSize)!=null?a:d}),checkedIcon:v.cloneElement(o,{fontSize:(r=yS.props.fontSize)!=null?r:d}),ownerState:C,classes:E,name:y,checked:g,onChange:m,ref:n,className:pe(E.root,f)},W))});function Dz(e){return Ee("MuiRadioGroup",e)}xe("MuiRadioGroup",["root","row","error"]);const Yz=["actions","children","className","defaultValue","name","onChange","value"],Zz=e=>{const{classes:t,row:n,error:a}=e;return be({root:["root",n&&"row",a&&"error"]},Dz,t)},Nz=v.forwardRef(function(t,n){const{actions:a,children:r,className:l,defaultValue:i,name:o,onChange:s,value:p}=t,u=ie(t,Yz),c=v.useRef(null),d=Zz(t),[f,W]=gr({controlled:p,default:i,name:"RadioGroup"});v.useImperativeHandle(a,()=>({focus:()=>{let g=c.current.querySelector("input:not(:disabled):checked");g||(g=c.current.querySelector("input:not(:disabled)")),g&&g.focus()}}),[]);const C=wt(n,c),E=Nr(o),h=v.useMemo(()=>({name:E,onChange(g){W(g.target.value),s&&s(g,g.target.value)},value:f}),[E,s,W,f]);return A.jsx(CS.Provider,{value:h,children:A.jsx(s9,I({role:"radiogroup",ref:C,className:pe(d.root,l)},u,{children:r}))})});function Gz(e){return Ee("MuiSelect",e)}const ks=xe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var SS;const Xz=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Hz=H("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ks.select}`]:t.select},{[`&.${ks.select}`]:t[n.variant]},{[`&.${ks.error}`]:t.error},{[`&.${ks.multiple}`]:t.multiple}]}})(WS,{[`&.${ks.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),_z=H("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${$(n.variant)}`],n.open&&t.iconOpen]}})(gS),$z=H("input",{shouldForwardProp:e=>tI(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ES(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function eq(e){return e==null||typeof e=="string"&&!e.trim()}const tq=e=>{const{classes:t,variant:n,disabled:a,multiple:r,open:l,error:i}=e,o={select:["select",n,a&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${$(n)}`,l&&"iconOpen",a&&"disabled"],nativeInput:["nativeInput"]};return be(o,Gz,t)},nq=v.forwardRef(function(t,n){var a;const{"aria-describedby":r,"aria-label":l,autoFocus:i,autoWidth:o,children:s,className:p,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:f,error:W=!1,IconComponent:C,inputRef:E,labelId:h,MenuProps:g={},multiple:m,name:y,onBlur:x,onChange:S,onClose:k,onFocus:B,onOpen:V,open:b,readOnly:w,renderValue:M,SelectDisplayProps:z={},tabIndex:F,value:T,variant:U="standard"}=t,q=ie(t,Xz),[Q,K]=gr({controlled:T,default:c,name:"Select"}),[R,X]=gr({controlled:b,default:u,name:"Select"}),G=v.useRef(null),L=v.useRef(null),[te,re]=v.useState(null),{current:oe}=v.useRef(b!=null),[ve,fe]=v.useState(),he=wt(n,E),ze=v.useCallback(ce=>{L.current=ce,ce&&re(ce)},[]),_=te==null?void 0:te.parentNode;v.useImperativeHandle(he,()=>({focus:()=>{L.current.focus()},node:G.current,value:Q}),[Q]),v.useEffect(()=>{u&&R&&te&&!oe&&(fe(o?null:_.clientWidth),L.current.focus())},[te,o]),v.useEffect(()=>{i&&L.current.focus()},[i]),v.useEffect(()=>{if(!h)return;const ce=un(L.current).getElementById(h);if(ce){const Re=()=>{getSelection().isCollapsed&&L.current.focus()};return ce.addEventListener("click",Re),()=>{ce.removeEventListener("click",Re)}}},[h]);const ee=(ce,Re)=>{ce?V&&V(Re):k&&k(Re),oe||(fe(o?null:_.clientWidth),X(ce))},ge=ce=>{ce.button===0&&(ce.preventDefault(),L.current.focus(),ee(!0,ce))},Ce=ce=>{ee(!1,ce)},se=v.Children.toArray(s),ue=ce=>{const Re=se.find(Ve=>Ve.props.value===ce.target.value);Re!==void 0&&(K(Re.props.value),S&&S(ce,Re))},Te=ce=>Re=>{let Ve;if(Re.currentTarget.hasAttribute("tabindex")){if(m){Ve=Array.isArray(Q)?Q.slice():[];const Pe=Q.indexOf(ce.props.value);Pe===-1?Ve.push(ce.props.value):Ve.splice(Pe,1)}else Ve=ce.props.value;if(ce.props.onClick&&ce.props.onClick(Re),Q!==Ve&&(K(Ve),S)){const Pe=Re.nativeEvent||Re,dt=new Pe.constructor(Pe.type,Pe);Object.defineProperty(dt,"target",{writable:!0,value:{value:Ve,name:y}}),S(dt,ce)}m||ee(!1,Re)}},ne=ce=>{w||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ce.key)!==-1&&(ce.preventDefault(),ee(!0,ce))},Le=te!==null&&R,Me=ce=>{!Le&&x&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:Q,name:y}}),x(ce))};delete q["aria-invalid"];let ye,Ze;const Qe=[];let Fe=!1;(Lc({value:Q})||f)&&(M?ye=M(Q):Fe=!0);const P=se.map(ce=>{if(!v.isValidElement(ce))return null;let Re;if(m){if(!Array.isArray(Q))throw new Error(fr(2));Re=Q.some(Ve=>ES(Ve,ce.props.value)),Re&&Fe&&Qe.push(ce.props.children)}else Re=ES(Q,ce.props.value),Re&&Fe&&(Ze=ce.props.children);return v.cloneElement(ce,{"aria-selected":Re?"true":"false",onClick:Te(ce),onKeyUp:Ve=>{Ve.key===" "&&Ve.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(Ve)},role:"option",selected:Re,value:void 0,"data-value":ce.props.value})});Fe&&(m?Qe.length===0?ye=null:ye=Qe.reduce((ce,Re,Ve)=>(ce.push(Re),Ve<Qe.length-1&&ce.push(", "),ce),[]):ye=Ze);let j=ve;!o&&oe&&te&&(j=_.clientWidth);let O;typeof F<"u"?O=F:O=d?null:0;const Z=z.id||(y?`mui-component-select-${y}`:void 0),Y=I({},t,{variant:U,value:Q,open:Le,error:W}),de=tq(Y),je=I({},g.PaperProps,(a=g.slotProps)==null?void 0:a.paper),Xe=Nr();return A.jsxs(v.Fragment,{children:[A.jsx(Hz,I({ref:ze,tabIndex:O,role:"combobox","aria-controls":Xe,"aria-disabled":d?"true":void 0,"aria-expanded":Le?"true":"false","aria-haspopup":"listbox","aria-label":l,"aria-labelledby":[h,Z].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:ne,onMouseDown:d||w?null:ge,onBlur:Me,onFocus:B},z,{ownerState:Y,className:pe(z.className,de.select,p),id:Z,children:eq(ye)?SS||(SS=A.jsx("span",{className:"notranslate",children:"​"})):ye})),A.jsx($z,I({"aria-invalid":W,value:Array.isArray(Q)?Q.join(","):Q,name:y,ref:G,"aria-hidden":!0,onChange:ue,tabIndex:-1,disabled:d,className:de.nativeInput,autoFocus:i,ownerState:Y},q)),A.jsx(_z,{as:C,className:de.icon,ownerState:Y}),A.jsx(mz,I({id:`menu-${y||""}`,anchorEl:_,open:Le,onClose:Ce,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},g,{MenuListProps:I({"aria-labelledby":h,role:"listbox","aria-multiselectable":m?"true":void 0,disableListWrap:!0,id:Xe},g.MenuListProps),slotProps:I({},g.slotProps,{paper:I({},je,{style:I({minWidth:j},je!=null?je.style:null)})}),children:P}))]})}),aq=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rq=["root"],lq=e=>{const{classes:t}=e;return t},dg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>mn(e)&&e!=="variant",slot:"Root"},iq=H(ig,dg)(""),oq=H(cg,dg)(""),sq=H(ag,dg)(""),xS=v.forwardRef(function(t,n){const a=we({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:l,classes:i={},className:o,defaultOpen:s=!1,displayEmpty:p=!1,IconComponent:u=KI,id:c,input:d,inputProps:f,label:W,labelId:C,MenuProps:E,multiple:h=!1,native:g=!1,onClose:m,onOpen:y,open:x,renderValue:S,SelectDisplayProps:k,variant:B="outlined"}=a,V=ie(a,aq),b=g?Ez:nq,w=Na(),M=Xr({props:a,muiFormControl:w,states:["variant","error"]}),z=M.variant||B,F=I({},a,{variant:z,classes:i}),T=lq(F),U=ie(T,rq),q=d||{standard:A.jsx(iq,{ownerState:F}),outlined:A.jsx(oq,{label:W,ownerState:F}),filled:A.jsx(sq,{ownerState:F})}[z],Q=wt(n,Rl(q));return A.jsx(v.Fragment,{children:v.cloneElement(q,I({inputComponent:b,inputProps:I({children:l,error:M.error,IconComponent:u,variant:z,type:void 0,multiple:h},g?{id:c}:{autoWidth:r,defaultOpen:s,displayEmpty:p,labelId:C,MenuProps:E,onClose:m,onOpen:y,open:x,renderValue:S,SelectDisplayProps:I({id:c},k)},f,{classes:f?hn(U,f.classes):U},d?d.props.inputProps:{})},(h&&g||p)&&z==="outlined"?{notched:!0}:{},{ref:Q,className:pe(q.props.className,o,T.root)},!d&&{variant:z},V))})});xS.muiName="Select";function pq(e){return Ee("MuiSkeleton",e)}xe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const uq=["animation","className","component","height","style","variant","width"];let Oc=e=>e,bS,kS,RS,wS;const cq=e=>{const{classes:t,variant:n,animation:a,hasChildren:r,width:l,height:i}=e;return be({root:["root",n,a,r&&"withChildren",r&&!l&&"fitContent",r&&!i&&"heightAuto"]},pq,t)},Aq=Zr(bS||(bS=Oc`
183
183
  0% {
184
184
  opacity: 1;
185
185
  }
@@ -229,7 +229,7 @@ Error generating stack: `+l.message+`
229
229
  right: 0;
230
230
  top: 0;
231
231
  }
232
- `),dq,(t.vars||t).palette.action.hover)),fg=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:l,component:i="span",height:o,style:s,variant:p="text",width:u}=a,c=ie(a,uq),d=I({},a,{animation:r,component:i,variant:p,hasChildren:!!c.children}),f=cq(d);return A.jsx(fq,I({as:i,ref:n,className:pe(f.root,l),ownerState:d},c,{style:I({width:u,height:o},s)}))});function Wq(e){return Ee("MuiTooltip",e)}const el=xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function hq(e){return Math.round(e*1e5)/1e5}const mq=e=>{const{classes:t,disableInteractive:n,arrow:a,touch:r,placement:l}=e,i={popper:["popper",!n&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",r&&"touch",`tooltipPlacement${$(l.split("-")[0])}`],arrow:["arrow"]};return be(i,Wq,t)},Cq=H(wc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${el.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${el.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${el.arrow}`]:I({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${el.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),vq=H("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${$(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${hq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${el.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${el.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${el.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${el.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),yq=H("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Pc=!1;const BS=new cs;let Rs={x:0,y:0};function Jc(e,t){return(n,...a)=>{t&&t(n,...a),e(n,...a)}}const Wg=v.forwardRef(function(t,n){var a,r,l,i,o,s,p,u,c,d,f,W,C,E,h,g,m,y,x;const S=we({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:B,components:V={},componentsProps:b={},describeChild:w=!1,disableFocusListener:M=!1,disableHoverListener:z=!1,disableInteractive:F=!1,disableTouchListener:T=!1,enterDelay:U=100,enterNextDelay:q=0,enterTouchDelay:Q=700,followCursor:K=!1,id:R,leaveDelay:X=0,leaveTouchDelay:G=1500,onClose:L,onOpen:te,open:re,placement:oe="bottom",PopperComponent:ve,PopperProps:fe={},slotProps:he={},slots:ze={},title:_,TransitionComponent:ee=Kc,TransitionProps:ge}=S,Ce=ie(S,gq),se=v.isValidElement(B)?B:A.jsx("span",{children:B}),ue=hr(),Te=Q1(),[ne,Le]=v.useState(),[Me,ye]=v.useState(null),De=v.useRef(!1),Qe=F||K,Fe=Vi(),P=Vi(),j=Vi(),O=Vi(),[Z,Y]=gr({controlled:re,default:!1,name:"Tooltip",state:"open"});let de=Z;const je=Nr(R),Xe=v.useRef(),ce=wn(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),O.clear()});v.useEffect(()=>ce,[ce]);const Re=Ie=>{BS.clear(),Pc=!0,Y(!0),te&&!de&&te(Ie)},Ve=wn(Ie=>{BS.start(800+X,()=>{Pc=!1}),Y(!1),L&&de&&L(Ie),Fe.start(ue.transitions.duration.shortest,()=>{De.current=!1})}),Pe=Ie=>{De.current&&Ie.type!=="touchstart"||(ne&&ne.removeAttribute("title"),P.clear(),j.clear(),U||Pc&&q?P.start(Pc?q:U,()=>{Re(Ie)}):Re(Ie))},Ye=Ie=>{P.clear(),j.start(X,()=>{Ve(Ie)})},{isFocusVisibleRef:Wt,onBlur:$e,onFocus:Ze,ref:ot}=yW(),[,Ht]=v.useState(!1),ke=Ie=>{$e(Ie),Wt.current===!1&&(Ht(!1),Ye(Ie))},Ot=Ie=>{ne||Le(Ie.currentTarget),Ze(Ie),Wt.current===!0&&(Ht(!0),Pe(Ie))},it=Ie=>{De.current=!0;const et=se.props;et.onTouchStart&&et.onTouchStart(Ie)},zt=Ie=>{it(Ie),j.clear(),Fe.clear(),ce(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",O.start(Q,()=>{document.body.style.WebkitUserSelect=Xe.current,Pe(Ie)})},_t=Ie=>{se.props.onTouchEnd&&se.props.onTouchEnd(Ie),ce(),j.start(G,()=>{Ve(Ie)})};v.useEffect(()=>{if(!de)return;function Ie(et){(et.key==="Escape"||et.key==="Esc")&&Ve(et)}return document.addEventListener("keydown",Ie),()=>{document.removeEventListener("keydown",Ie)}},[Ve,de]);const Pl=wt(Rl(se),ot,Le,n);!_&&_!==0&&(de=!1);const ya=v.useRef(),Qt=Ie=>{const et=se.props;et.onMouseMove&&et.onMouseMove(Ie),Rs={x:Ie.clientX,y:Ie.clientY},ya.current&&ya.current.update()},xt={},vn=typeof _=="string";w?(xt.title=!de&&vn&&!z?_:null,xt["aria-describedby"]=de?je:null):(xt["aria-label"]=vn?_:null,xt["aria-labelledby"]=de&&!vn?je:null);const Un=I({},xt,Ce,se.props,{className:pe(Ce.className,se.props.className),onTouchStart:it,ref:Pl},K?{onMouseMove:Qt}:{}),Er={};T||(Un.onTouchStart=zt,Un.onTouchEnd=_t),z||(Un.onMouseOver=Jc(Pe,Un.onMouseOver),Un.onMouseLeave=Jc(Ye,Un.onMouseLeave),Qe||(Er.onMouseOver=Pe,Er.onMouseLeave=Ye)),M||(Un.onFocus=Jc(Ot,Un.onFocus),Un.onBlur=Jc(ke,Un.onBlur),Qe||(Er.onFocus=Ot,Er.onBlur=ke));const _s=v.useMemo(()=>{var Ie;let et=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(Ie=fe.popperOptions)!=null&&Ie.modifiers&&(et=et.concat(fe.popperOptions.modifiers)),I({},fe.popperOptions,{modifiers:et})},[Me,fe]),xr=I({},S,{isRtl:Te,arrow:k,disableInteractive:Qe,placement:oe,PopperComponentProp:ve,touch:De.current}),il=mq(xr),ol=(a=(r=ze.popper)!=null?r:V.Popper)!=null?a:Cq,tr=(l=(i=(o=ze.transition)!=null?o:V.Transition)!=null?i:ee)!=null?l:Kc,br=(s=(p=ze.tooltip)!=null?p:V.Tooltip)!=null?s:vq,N=(u=(c=ze.arrow)!=null?c:V.Arrow)!=null?u:yq,J=Ui(ol,I({},fe,(d=he.popper)!=null?d:b.popper,{className:pe(il.popper,fe==null?void 0:fe.className,(f=(W=he.popper)!=null?W:b.popper)==null?void 0:f.className)}),xr),Ae=Ui(tr,I({},ge,(C=he.transition)!=null?C:b.transition),xr),Se=Ui(br,I({},(E=he.tooltip)!=null?E:b.tooltip,{className:pe(il.tooltip,(h=(g=he.tooltip)!=null?g:b.tooltip)==null?void 0:h.className)}),xr),Ne=Ui(N,I({},(m=he.arrow)!=null?m:b.arrow,{className:pe(il.arrow,(y=(x=he.arrow)!=null?x:b.arrow)==null?void 0:y.className)}),xr);return A.jsxs(v.Fragment,{children:[v.cloneElement(se,Un),A.jsx(ol,I({as:ve??wc,placement:oe,anchorEl:K?{getBoundingClientRect:()=>({top:Rs.y,left:Rs.x,right:Rs.x,bottom:Rs.y,width:0,height:0})}:ne,popperRef:ya,open:ne?de:!1,id:je,transition:!0},Er,J,{popperOptions:_s,children:({TransitionProps:Ie})=>A.jsx(tr,I({timeout:ue.transitions.duration.shorter},Ie,Ae,{children:A.jsxs(br,I({},Se,{children:[_,k?A.jsx(N,I({},Ne,{ref:ye})):null]}))}))}))]})}),Dc=v.createContext({}),gg=v.createContext({});function Iq(e){return Ee("MuiStep",e)}xe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Sq=["active","children","className","component","completed","disabled","expanded","index","last"],Eq=e=>{const{classes:t,orientation:n,alternativeLabel:a,completed:r}=e;return be({root:["root",n,a&&"alternativeLabel",r&&"completed"]},Iq,t)},xq=H("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),bq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStep"}),{active:r,children:l,className:i,component:o="div",completed:s,disabled:p,expanded:u=!1,index:c,last:d}=a,f=ie(a,Sq),{activeStep:W,connector:C,alternativeLabel:E,orientation:h,nonLinear:g}=v.useContext(Dc);let[m=!1,y=!1,x=!1]=[r,s,p];W===c?m=r!==void 0?r:!0:!g&&W>c?y=s!==void 0?s:!0:!g&&W<c&&(x=p!==void 0?p:!0);const S=v.useMemo(()=>({index:c,last:d,expanded:u,icon:c+1,active:m,completed:y,disabled:x}),[c,d,u,m,y,x]),k=I({},a,{active:m,orientation:h,alternativeLabel:E,completed:y,disabled:x,expanded:u,component:o}),B=Eq(k),V=A.jsxs(xq,I({as:o,className:pe(B.root,i),ref:n,ownerState:k},f,{children:[C&&E&&c!==0?C:null,l]}));return A.jsx(gg.Provider,{value:S,children:C&&!E&&c!==0?A.jsxs(v.Fragment,{children:[C,V]}):V})}),kq=an(A.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Rq=an(A.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function wq(e){return Ee("MuiStepIcon",e)}const hg=xe("MuiStepIcon",["root","active","completed","error","text"]);var MS;const Bq=["active","className","completed","error","icon"],Mq=e=>{const{classes:t,active:n,completed:a,error:r}=e;return be({root:["root",n&&"active",a&&"completed",r&&"error"],text:["text"]},wq,t)},mg=H(vc,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${hg.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${hg.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${hg.error}`]:{color:(e.vars||e).palette.error.main}})),Lq=H("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Qq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepIcon"}),{active:r=!1,className:l,completed:i=!1,error:o=!1,icon:s}=a,p=ie(a,Bq),u=I({},a,{active:r,completed:i,error:o}),c=Mq(u);if(typeof s=="number"||typeof s=="string"){const d=pe(l,c.root);return o?A.jsx(mg,I({as:Rq,className:d,ref:n,ownerState:u},p)):i?A.jsx(mg,I({as:kq,className:d,ref:n,ownerState:u},p)):A.jsxs(mg,I({className:d,ref:n,ownerState:u},p,{children:[MS||(MS=A.jsx("circle",{cx:"12",cy:"12",r:"12"})),A.jsx(Lq,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:s})]}))}return s});function Vq(e){return Ee("MuiStepLabel",e)}const tl=xe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Uq=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Fq=e=>{const{classes:t,orientation:n,active:a,completed:r,error:l,disabled:i,alternativeLabel:o}=e;return be({root:["root",n,l&&"error",i&&"disabled",o&&"alternativeLabel"],label:["label",a&&"active",r&&"completed",l&&"error",i&&"disabled",o&&"alternativeLabel"],iconContainer:["iconContainer",a&&"active",r&&"completed",l&&"error",i&&"disabled",o&&"alternativeLabel"],labelContainer:["labelContainer",o&&"alternativeLabel"]},Vq,t)},zq=H("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",[`&.${tl.alternativeLabel}`]:{flexDirection:"column"},[`&.${tl.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),qq=H("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>I({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${tl.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${tl.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${tl.alternativeLabel}`]:{marginTop:16},[`&.${tl.error}`]:{color:(e.vars||e).palette.error.main}})),jq=H("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${tl.alternativeLabel}`]:{paddingRight:0}})),Tq=H("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${tl.alternativeLabel}`]:{textAlign:"center"}})),LS=v.forwardRef(function(t,n){var a;const r=we({props:t,name:"MuiStepLabel"}),{children:l,className:i,componentsProps:o={},error:s=!1,icon:p,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:f}=r,W=ie(r,Uq),{alternativeLabel:C,orientation:E}=v.useContext(Dc),{active:h,disabled:g,completed:m,icon:y}=v.useContext(gg),x=p||y;let S=d;x&&!S&&(S=Qq);const k=I({},r,{active:h,alternativeLabel:C,completed:m,disabled:g,error:s,orientation:E}),B=Fq(k),V=(a=c.label)!=null?a:o.label;return A.jsxs(zq,I({className:pe(B.root,i),ref:n,ownerState:k},W,{children:[x||S?A.jsx(jq,{className:B.iconContainer,ownerState:k,children:A.jsx(S,I({completed:m,active:h,error:s,icon:x},f))}):null,A.jsxs(Tq,{className:B.labelContainer,ownerState:k,children:[l?A.jsx(qq,I({ownerState:k},V,{className:pe(B.label,V==null?void 0:V.className),children:l})):null,u]})]}))});LS.muiName="StepLabel";function Kq(e){return Ee("MuiStepConnector",e)}xe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Oq=["className"],Pq=e=>{const{classes:t,orientation:n,alternativeLabel:a,active:r,completed:l,disabled:i}=e,o={root:["root",n,a&&"alternativeLabel",r&&"active",l&&"completed",i&&"disabled"],line:["line",`line${$(n)}`]};return be(o,Kq,t)},Jq=H("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Dq=H("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${$(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return I({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),Yq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepConnector"}),{className:r}=a,l=ie(a,Oq),{alternativeLabel:i,orientation:o="horizontal"}=v.useContext(Dc),{active:s,disabled:p,completed:u}=v.useContext(gg),c=I({},a,{alternativeLabel:i,orientation:o,active:s,completed:u,disabled:p}),d=Pq(c);return A.jsx(Jq,I({className:pe(d.root,r),ref:n,ownerState:c},l,{children:A.jsx(Dq,{className:d.line,ownerState:c})}))});function Zq(e){return Ee("MuiStepper",e)}xe("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Nq=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Gq=e=>{const{orientation:t,nonLinear:n,alternativeLabel:a,classes:r}=e;return be({root:["root",t,n&&"nonLinear",a&&"alternativeLabel"]},Zq,r)},Xq=H("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>I({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Hq=A.jsx(Yq,{}),_q=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:l=!1,children:i,className:o,component:s="div",connector:p=Hq,nonLinear:u=!1,orientation:c="horizontal"}=a,d=ie(a,Nq),f=I({},a,{nonLinear:u,alternativeLabel:l,orientation:c,component:s}),W=Gq(f),C=v.Children.toArray(i).filter(Boolean),E=C.map((g,m)=>v.cloneElement(g,I({index:m,last:m+1===C.length},g.props))),h=v.useMemo(()=>({activeStep:r,alternativeLabel:l,connector:p,nonLinear:u,orientation:c}),[r,l,p,u,c]);return A.jsx(Dc.Provider,{value:h,children:A.jsx(Xq,I({as:s,ownerState:f,className:pe(W.root,o),ref:n},d,{children:E}))})});function $q(e){return Ee("MuiToolbar",e)}xe("MuiToolbar",["root","gutters","regular","dense"]);const ej=["className","component","disableGutters","variant"],tj=e=>{const{classes:t,disableGutters:n,variant:a}=e;return be({root:["root",!n&&"gutters",a]},$q,t)},nj=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>I({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),aj=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:i=!1,variant:o="regular"}=a,s=ie(a,ej),p=I({},a,{component:l,disableGutters:i,variant:o}),u=tj(p);return A.jsx(nj,I({as:l,className:pe(u.root,r),ref:n,ownerState:p},s))});function rj(e){return Ee("MuiTextField",e)}xe("MuiTextField",["root"]);const lj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ij={standard:ig,filled:ag,outlined:cg},oj=e=>{const{classes:t}=e;return be({root:["root"]},rj,t)},sj=H(_F,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),It=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:i,className:o,color:s="primary",defaultValue:p,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:W,id:C,InputLabelProps:E,inputProps:h,InputProps:g,inputRef:m,label:y,maxRows:x,minRows:S,multiline:k=!1,name:B,onBlur:V,onChange:b,onFocus:w,placeholder:M,required:z=!1,rows:F,select:T=!1,SelectProps:U,type:q,value:Q,variant:K="outlined"}=a,R=ie(a,lj),X=I({},a,{autoFocus:l,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:z,select:T,variant:K}),G=oj(X),L={};K==="outlined"&&(E&&typeof E.shrink<"u"&&(L.notched=E.shrink),L.label=y),T&&((!U||!U.native)&&(L.id=void 0),L["aria-describedby"]=void 0);const te=Nr(C),re=W&&te?`${te}-helper-text`:void 0,oe=y&&te?`${te}-label`:void 0,ve=ij[K],fe=A.jsx(ve,I({"aria-describedby":re,autoComplete:r,autoFocus:l,defaultValue:p,fullWidth:f,multiline:k,name:B,rows:F,maxRows:x,minRows:S,type:q,value:Q,id:te,inputRef:m,onBlur:V,onChange:b,onFocus:w,placeholder:M,inputProps:h},L,g));return A.jsxs(sj,I({className:pe(G.root,o),disabled:u,error:c,fullWidth:f,ref:n,required:z,color:s,variant:K,ownerState:X},R,{children:[y!=null&&y!==""&&A.jsx(N9,I({htmlFor:te,id:oe},E,{children:y})),T?A.jsx(xS,I({"aria-describedby":re,id:te,labelId:oe,value:Q,input:fe},U,{children:i})):fe,W&&A.jsx(d9,I({id:re},d,{children:W}))]}))}),pj={actionCards:{email:"צור לי מייל",domain:"מצאו לי דומיין",sms:"צרו SMS",analyze:"נתחו את העסק שלי"},actionCardsDesc:{email:"צרו ניוזלטר מותאם לעסק ולשפה שלכם.",domain:"מצאו שם דומיין זמין שמתאים למותג.",sms:"כתבו הודעת SMS שיווקית מוכנה לשליחה.",analyze:"קבלו תובנות על העסק, הקהל וההזדמנויות."},welcome:{heading:"טוב שבאת",text:`ברוכים הבאים למערכת שלח מסר 🚀. כאן תוכלו למצוא כלים לשווק את העסק שלכם.
232
+ `),dq,(t.vars||t).palette.action.hover)),fg=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:l,component:i="span",height:o,style:s,variant:p="text",width:u}=a,c=ie(a,uq),d=I({},a,{animation:r,component:i,variant:p,hasChildren:!!c.children}),f=cq(d);return A.jsx(fq,I({as:i,ref:n,className:pe(f.root,l),ownerState:d},c,{style:I({width:u,height:o},s)}))});function Wq(e){return Ee("MuiTooltip",e)}const el=xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),gq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function hq(e){return Math.round(e*1e5)/1e5}const mq=e=>{const{classes:t,disableInteractive:n,arrow:a,touch:r,placement:l}=e,i={popper:["popper",!n&&"popperInteractive",a&&"popperArrow"],tooltip:["tooltip",a&&"tooltipArrow",r&&"touch",`tooltipPlacement${$(l.split("-")[0])}`],arrow:["arrow"]};return be(i,Wq,t)},Cq=H(wc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${el.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${el.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${el.arrow}`]:I({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${el.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),vq=H("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${$(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${hq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${el.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${el.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${el.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${el.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),yq=H("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:mt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Pc=!1;const BS=new cs;let Rs={x:0,y:0};function Jc(e,t){return(n,...a)=>{t&&t(n,...a),e(n,...a)}}const Wg=v.forwardRef(function(t,n){var a,r,l,i,o,s,p,u,c,d,f,W,C,E,h,g,m,y,x;const S=we({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:B,components:V={},componentsProps:b={},describeChild:w=!1,disableFocusListener:M=!1,disableHoverListener:z=!1,disableInteractive:F=!1,disableTouchListener:T=!1,enterDelay:U=100,enterNextDelay:q=0,enterTouchDelay:Q=700,followCursor:K=!1,id:R,leaveDelay:X=0,leaveTouchDelay:G=1500,onClose:L,onOpen:te,open:re,placement:oe="bottom",PopperComponent:ve,PopperProps:fe={},slotProps:he={},slots:ze={},title:_,TransitionComponent:ee=Kc,TransitionProps:ge}=S,Ce=ie(S,gq),se=v.isValidElement(B)?B:A.jsx("span",{children:B}),ue=hr(),Te=Q1(),[ne,Le]=v.useState(),[Me,ye]=v.useState(null),Ze=v.useRef(!1),Qe=F||K,Fe=Vi(),P=Vi(),j=Vi(),O=Vi(),[Z,Y]=gr({controlled:re,default:!1,name:"Tooltip",state:"open"});let de=Z;const je=Nr(R),Xe=v.useRef(),ce=wn(()=>{Xe.current!==void 0&&(document.body.style.WebkitUserSelect=Xe.current,Xe.current=void 0),O.clear()});v.useEffect(()=>ce,[ce]);const Re=Ie=>{BS.clear(),Pc=!0,Y(!0),te&&!de&&te(Ie)},Ve=wn(Ie=>{BS.start(800+X,()=>{Pc=!1}),Y(!1),L&&de&&L(Ie),Fe.start(ue.transitions.duration.shortest,()=>{Ze.current=!1})}),Pe=Ie=>{Ze.current&&Ie.type!=="touchstart"||(ne&&ne.removeAttribute("title"),P.clear(),j.clear(),U||Pc&&q?P.start(Pc?q:U,()=>{Re(Ie)}):Re(Ie))},dt=Ie=>{P.clear(),j.start(X,()=>{Ve(Ie)})},{isFocusVisibleRef:$e,onBlur:Je,onFocus:De,ref:ot}=yW(),[,Ht]=v.useState(!1),ke=Ie=>{Je(Ie),$e.current===!1&&(Ht(!1),dt(Ie))},Ot=Ie=>{ne||Le(Ie.currentTarget),De(Ie),$e.current===!0&&(Ht(!0),Pe(Ie))},it=Ie=>{Ze.current=!0;const et=se.props;et.onTouchStart&&et.onTouchStart(Ie)},zt=Ie=>{it(Ie),j.clear(),Fe.clear(),ce(),Xe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",O.start(Q,()=>{document.body.style.WebkitUserSelect=Xe.current,Pe(Ie)})},_t=Ie=>{se.props.onTouchEnd&&se.props.onTouchEnd(Ie),ce(),j.start(G,()=>{Ve(Ie)})};v.useEffect(()=>{if(!de)return;function Ie(et){(et.key==="Escape"||et.key==="Esc")&&Ve(et)}return document.addEventListener("keydown",Ie),()=>{document.removeEventListener("keydown",Ie)}},[Ve,de]);const Pl=wt(Rl(se),ot,Le,n);!_&&_!==0&&(de=!1);const ya=v.useRef(),Qt=Ie=>{const et=se.props;et.onMouseMove&&et.onMouseMove(Ie),Rs={x:Ie.clientX,y:Ie.clientY},ya.current&&ya.current.update()},xt={},vn=typeof _=="string";w?(xt.title=!de&&vn&&!z?_:null,xt["aria-describedby"]=de?je:null):(xt["aria-label"]=vn?_:null,xt["aria-labelledby"]=de&&!vn?je:null);const Un=I({},xt,Ce,se.props,{className:pe(Ce.className,se.props.className),onTouchStart:it,ref:Pl},K?{onMouseMove:Qt}:{}),Er={};T||(Un.onTouchStart=zt,Un.onTouchEnd=_t),z||(Un.onMouseOver=Jc(Pe,Un.onMouseOver),Un.onMouseLeave=Jc(dt,Un.onMouseLeave),Qe||(Er.onMouseOver=Pe,Er.onMouseLeave=dt)),M||(Un.onFocus=Jc(Ot,Un.onFocus),Un.onBlur=Jc(ke,Un.onBlur),Qe||(Er.onFocus=Ot,Er.onBlur=ke));const _s=v.useMemo(()=>{var Ie;let et=[{name:"arrow",enabled:!!Me,options:{element:Me,padding:4}}];return(Ie=fe.popperOptions)!=null&&Ie.modifiers&&(et=et.concat(fe.popperOptions.modifiers)),I({},fe.popperOptions,{modifiers:et})},[Me,fe]),xr=I({},S,{isRtl:Te,arrow:k,disableInteractive:Qe,placement:oe,PopperComponentProp:ve,touch:Ze.current}),il=mq(xr),ol=(a=(r=ze.popper)!=null?r:V.Popper)!=null?a:Cq,tr=(l=(i=(o=ze.transition)!=null?o:V.Transition)!=null?i:ee)!=null?l:Kc,br=(s=(p=ze.tooltip)!=null?p:V.Tooltip)!=null?s:vq,N=(u=(c=ze.arrow)!=null?c:V.Arrow)!=null?u:yq,J=Ui(ol,I({},fe,(d=he.popper)!=null?d:b.popper,{className:pe(il.popper,fe==null?void 0:fe.className,(f=(W=he.popper)!=null?W:b.popper)==null?void 0:f.className)}),xr),Ae=Ui(tr,I({},ge,(C=he.transition)!=null?C:b.transition),xr),Se=Ui(br,I({},(E=he.tooltip)!=null?E:b.tooltip,{className:pe(il.tooltip,(h=(g=he.tooltip)!=null?g:b.tooltip)==null?void 0:h.className)}),xr),Ne=Ui(N,I({},(m=he.arrow)!=null?m:b.arrow,{className:pe(il.arrow,(y=(x=he.arrow)!=null?x:b.arrow)==null?void 0:y.className)}),xr);return A.jsxs(v.Fragment,{children:[v.cloneElement(se,Un),A.jsx(ol,I({as:ve??wc,placement:oe,anchorEl:K?{getBoundingClientRect:()=>({top:Rs.y,left:Rs.x,right:Rs.x,bottom:Rs.y,width:0,height:0})}:ne,popperRef:ya,open:ne?de:!1,id:je,transition:!0},Er,J,{popperOptions:_s,children:({TransitionProps:Ie})=>A.jsx(tr,I({timeout:ue.transitions.duration.shorter},Ie,Ae,{children:A.jsxs(br,I({},Se,{children:[_,k?A.jsx(N,I({},Ne,{ref:ye})):null]}))}))}))]})}),Dc=v.createContext({}),gg=v.createContext({});function Iq(e){return Ee("MuiStep",e)}xe("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const Sq=["active","children","className","component","completed","disabled","expanded","index","last"],Eq=e=>{const{classes:t,orientation:n,alternativeLabel:a,completed:r}=e;return be({root:["root",n,a&&"alternativeLabel",r&&"completed"]},Iq,t)},xq=H("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),bq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStep"}),{active:r,children:l,className:i,component:o="div",completed:s,disabled:p,expanded:u=!1,index:c,last:d}=a,f=ie(a,Sq),{activeStep:W,connector:C,alternativeLabel:E,orientation:h,nonLinear:g}=v.useContext(Dc);let[m=!1,y=!1,x=!1]=[r,s,p];W===c?m=r!==void 0?r:!0:!g&&W>c?y=s!==void 0?s:!0:!g&&W<c&&(x=p!==void 0?p:!0);const S=v.useMemo(()=>({index:c,last:d,expanded:u,icon:c+1,active:m,completed:y,disabled:x}),[c,d,u,m,y,x]),k=I({},a,{active:m,orientation:h,alternativeLabel:E,completed:y,disabled:x,expanded:u,component:o}),B=Eq(k),V=A.jsxs(xq,I({as:o,className:pe(B.root,i),ref:n,ownerState:k},f,{children:[C&&E&&c!==0?C:null,l]}));return A.jsx(gg.Provider,{value:S,children:C&&!E&&c!==0?A.jsxs(v.Fragment,{children:[C,V]}):V})}),kq=an(A.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Rq=an(A.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function wq(e){return Ee("MuiStepIcon",e)}const hg=xe("MuiStepIcon",["root","active","completed","error","text"]);var MS;const Bq=["active","className","completed","error","icon"],Mq=e=>{const{classes:t,active:n,completed:a,error:r}=e;return be({root:["root",n&&"active",a&&"completed",r&&"error"],text:["text"]},wq,t)},mg=H(vc,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${hg.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${hg.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${hg.error}`]:{color:(e.vars||e).palette.error.main}})),Lq=H("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),Qq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepIcon"}),{active:r=!1,className:l,completed:i=!1,error:o=!1,icon:s}=a,p=ie(a,Bq),u=I({},a,{active:r,completed:i,error:o}),c=Mq(u);if(typeof s=="number"||typeof s=="string"){const d=pe(l,c.root);return o?A.jsx(mg,I({as:Rq,className:d,ref:n,ownerState:u},p)):i?A.jsx(mg,I({as:kq,className:d,ref:n,ownerState:u},p)):A.jsxs(mg,I({className:d,ref:n,ownerState:u},p,{children:[MS||(MS=A.jsx("circle",{cx:"12",cy:"12",r:"12"})),A.jsx(Lq,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:s})]}))}return s});function Vq(e){return Ee("MuiStepLabel",e)}const tl=xe("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Uq=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],Fq=e=>{const{classes:t,orientation:n,active:a,completed:r,error:l,disabled:i,alternativeLabel:o}=e;return be({root:["root",n,l&&"error",i&&"disabled",o&&"alternativeLabel"],label:["label",a&&"active",r&&"completed",l&&"error",i&&"disabled",o&&"alternativeLabel"],iconContainer:["iconContainer",a&&"active",r&&"completed",l&&"error",i&&"disabled",o&&"alternativeLabel"],labelContainer:["labelContainer",o&&"alternativeLabel"]},Vq,t)},zq=H("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",[`&.${tl.alternativeLabel}`]:{flexDirection:"column"},[`&.${tl.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),qq=H("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>I({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${tl.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${tl.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${tl.alternativeLabel}`]:{marginTop:16},[`&.${tl.error}`]:{color:(e.vars||e).palette.error.main}})),jq=H("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${tl.alternativeLabel}`]:{paddingRight:0}})),Tq=H("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${tl.alternativeLabel}`]:{textAlign:"center"}})),LS=v.forwardRef(function(t,n){var a;const r=we({props:t,name:"MuiStepLabel"}),{children:l,className:i,componentsProps:o={},error:s=!1,icon:p,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:f}=r,W=ie(r,Uq),{alternativeLabel:C,orientation:E}=v.useContext(Dc),{active:h,disabled:g,completed:m,icon:y}=v.useContext(gg),x=p||y;let S=d;x&&!S&&(S=Qq);const k=I({},r,{active:h,alternativeLabel:C,completed:m,disabled:g,error:s,orientation:E}),B=Fq(k),V=(a=c.label)!=null?a:o.label;return A.jsxs(zq,I({className:pe(B.root,i),ref:n,ownerState:k},W,{children:[x||S?A.jsx(jq,{className:B.iconContainer,ownerState:k,children:A.jsx(S,I({completed:m,active:h,error:s,icon:x},f))}):null,A.jsxs(Tq,{className:B.labelContainer,ownerState:k,children:[l?A.jsx(qq,I({ownerState:k},V,{className:pe(B.label,V==null?void 0:V.className),children:l})):null,u]})]}))});LS.muiName="StepLabel";function Kq(e){return Ee("MuiStepConnector",e)}xe("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Oq=["className"],Pq=e=>{const{classes:t,orientation:n,alternativeLabel:a,active:r,completed:l,disabled:i}=e,o={root:["root",n,a&&"alternativeLabel",r&&"active",l&&"completed",i&&"disabled"],line:["line",`line${$(n)}`]};return be(o,Kq,t)},Jq=H("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})(({ownerState:e})=>I({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Dq=H("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${$(n.orientation)}`]]}})(({ownerState:e,theme:t})=>{const n=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return I({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),Yq=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepConnector"}),{className:r}=a,l=ie(a,Oq),{alternativeLabel:i,orientation:o="horizontal"}=v.useContext(Dc),{active:s,disabled:p,completed:u}=v.useContext(gg),c=I({},a,{alternativeLabel:i,orientation:o,active:s,completed:u,disabled:p}),d=Pq(c);return A.jsx(Jq,I({className:pe(d.root,r),ref:n,ownerState:c},l,{children:A.jsx(Dq,{className:d.line,ownerState:c})}))});function Zq(e){return Ee("MuiStepper",e)}xe("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Nq=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Gq=e=>{const{orientation:t,nonLinear:n,alternativeLabel:a,classes:r}=e;return be({root:["root",t,n&&"nonLinear",a&&"alternativeLabel"]},Zq,r)},Xq=H("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})(({ownerState:e})=>I({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Hq=A.jsx(Yq,{}),_q=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiStepper"}),{activeStep:r=0,alternativeLabel:l=!1,children:i,className:o,component:s="div",connector:p=Hq,nonLinear:u=!1,orientation:c="horizontal"}=a,d=ie(a,Nq),f=I({},a,{nonLinear:u,alternativeLabel:l,orientation:c,component:s}),W=Gq(f),C=v.Children.toArray(i).filter(Boolean),E=C.map((g,m)=>v.cloneElement(g,I({index:m,last:m+1===C.length},g.props))),h=v.useMemo(()=>({activeStep:r,alternativeLabel:l,connector:p,nonLinear:u,orientation:c}),[r,l,p,u,c]);return A.jsx(Dc.Provider,{value:h,children:A.jsx(Xq,I({as:s,ownerState:f,className:pe(W.root,o),ref:n},d,{children:E}))})});function $q(e){return Ee("MuiToolbar",e)}xe("MuiToolbar",["root","gutters","regular","dense"]);const ej=["className","component","disableGutters","variant"],tj=e=>{const{classes:t,disableGutters:n,variant:a}=e;return be({root:["root",!n&&"gutters",a]},$q,t)},nj=H("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>I({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),aj=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:i=!1,variant:o="regular"}=a,s=ie(a,ej),p=I({},a,{component:l,disableGutters:i,variant:o}),u=tj(p);return A.jsx(nj,I({as:l,className:pe(u.root,r),ref:n,ownerState:p},s))});function rj(e){return Ee("MuiTextField",e)}xe("MuiTextField",["root"]);const lj=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ij={standard:ig,filled:ag,outlined:cg},oj=e=>{const{classes:t}=e;return be({root:["root"]},rj,t)},sj=H(_F,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),It=v.forwardRef(function(t,n){const a=we({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:i,className:o,color:s="primary",defaultValue:p,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:W,id:C,InputLabelProps:E,inputProps:h,InputProps:g,inputRef:m,label:y,maxRows:x,minRows:S,multiline:k=!1,name:B,onBlur:V,onChange:b,onFocus:w,placeholder:M,required:z=!1,rows:F,select:T=!1,SelectProps:U,type:q,value:Q,variant:K="outlined"}=a,R=ie(a,lj),X=I({},a,{autoFocus:l,color:s,disabled:u,error:c,fullWidth:f,multiline:k,required:z,select:T,variant:K}),G=oj(X),L={};K==="outlined"&&(E&&typeof E.shrink<"u"&&(L.notched=E.shrink),L.label=y),T&&((!U||!U.native)&&(L.id=void 0),L["aria-describedby"]=void 0);const te=Nr(C),re=W&&te?`${te}-helper-text`:void 0,oe=y&&te?`${te}-label`:void 0,ve=ij[K],fe=A.jsx(ve,I({"aria-describedby":re,autoComplete:r,autoFocus:l,defaultValue:p,fullWidth:f,multiline:k,name:B,rows:F,maxRows:x,minRows:S,type:q,value:Q,id:te,inputRef:m,onBlur:V,onChange:b,onFocus:w,placeholder:M,inputProps:h},L,g));return A.jsxs(sj,I({className:pe(G.root,o),disabled:u,error:c,fullWidth:f,ref:n,required:z,color:s,variant:K,ownerState:X},R,{children:[y!=null&&y!==""&&A.jsx(N9,I({htmlFor:te,id:oe},E,{children:y})),T?A.jsx(xS,I({"aria-describedby":re,id:te,labelId:oe,value:Q,input:fe},U,{children:i})):fe,W&&A.jsx(d9,I({id:re},d,{children:W}))]}))}),pj={actionCards:{email:"צור לי מייל",domain:"מצאו לי דומיין",sms:"צרו SMS",analyze:"נתחו את העסק שלי"},actionCardsDesc:{email:"צרו ניוזלטר מותאם לעסק ולשפה שלכם.",domain:"מצאו שם דומיין זמין שמתאים למותג.",sms:"כתבו הודעת SMS שיווקית מוכנה לשליחה.",analyze:"קבלו תובנות על העסק, הקהל וההזדמנויות."},welcome:{heading:"טוב שבאת",text:`ברוכים הבאים למערכת שלח מסר 🚀. כאן תוכלו למצוא כלים לשווק את העסק שלכם.
233
233
  כבר עכשיו אפשר להתחיל בשיחה קצרה ולהכיר אותנו
234
234
  נשמח להכיר אותך ואת העסק שלך ולעשות יחד את הצעדים הראשונים:
235
235
  יצירת ניוזלטר ✉️, דף נחיתה 🎯, הקמת קורס דיגיטלי 📇 ועוד`,startButton:"שנתחיל?"},thankyou:{title:"תודה רבה {{name}}!",titleNoName:"תודה רבה",subtitle:"כעת תוכלו ליצור ניוזלטרים, דפי נחיתה, שיווק חכם ועוד - הכל בסגנון המותג שלך!",whatNext:"מה תרצו לעשות?",keepWorking:"אני רוצה להמשיך לעבוד"},secondTime:{hi:"היי",whatNext:"מה תרצו לעשות?",hubSectionPrimary:"פעולות",hubSectionPrimaryHint:"ניוזלטר, דומיין, הודעות או ניתוח עסק — בחרו כדי להמשיך.",hubSectionSecondary:"אפשרויות נוספות",hubSectionSecondaryHint:"להתחיל מחדש מההתחלה או לחזור לפרטי העסק ששמרתם.",or:"או",startFromBeginning:"להתחיל מחדש",startFromBeginningDesc:"להתחיל את התהליך מחדש מההתחלה",viewResults:"לצפות בתוצאות",viewResultsDesc:"לצפות בתוצאות הקודמות שלך",featureRequest:"מה הדבר, הטכנולוגיה שהכי יכולה לעזור לכם?"},featureRequestForm:{pageTitle:"שתפו אותנו ברעיון",pageSubtitle:"ספרו לנו מה הכי יעזור לכם — אנחנו קוראים כל בקשה.",pageSubtitleNamed:"{{name}}, ספרו לנו מה הכי יעזור לכם — אנחנו קוראים כל בקשה.",sectionTitle:"הרעיון שלכם",sectionHint:"כותרת קצרה וכמה פרטים עוזרים לנו לסדר עדיפויות.",titleLabel:"כותרת",titlePlaceholder:"לדוגמה: ייצוא ניוזלטר ל־PDF",descriptionLabel:"תיאור",descriptionPlaceholder:"מה התכונה צריכה לעשות? למי זה מיועד?",emailLabel:"אימייל (אופציונלי)",emailPlaceholder:"you@company.com",back:"חזרה",submit:"שליחת בקשה"},steps:{brandDetails:"פרטי המותג",designPrefs:"העדפות עיצוב",summary:"סיכום",summaryAndSend:"סיכום ושליחה"},common:{continue:"המשך",send:"שלח",close:"סגור",edit:"עריכה",error:"שגיאה",errorGeneric:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",tryAgain:"נסה שוב"},newsletter:{whatType:"איזה סוג מייל תרצו ליצור?",types:{webinar:"וובינר",designed_mail:"מעוצב(מצב מהיר)",designed_mail_advanced:"מעצב פרו (סטודיו)",authentic_text:"טקסט אישי"},comingSoon:"בקרוב",questions:{topic:"נושא / תיאור קצר",topicShort:"נושא / תיאור",date:"תאריך",time:"שעה"},successHeading:"המייל מוכן",successMessage:"המייל נוצר בהצלחה.",editDesign:"לעבור למצב עריכה",startOver:"להתחיל מחדש",tellUs:"ספרו לנו במשפט או שניים",toneLabel:"באיזה טון?",topicLabel:"מה תרצו לכלול במייל?",textStyleQuestion:"האם יש אתר שסגנון הטקסט שלו מתאים לכם?",websiteUrl:"כתובת האתר",back:"חזרה",loadingSteps:{building:"בונים את המייל...",searchingImages:"מחפשים תמונות...",choosingIcons:"בוחרים אייקונים...",analyzing:"מנתחים את העסק..."},writeHere:"כתבו כאן...",previewPlaceholder:"התצוגה המקדימה תופיע כאן לאחר יצירת המייל.",typeSectionHint:'בחרו פורמט — אפשר לשנות בהמשך עם "להתחיל מחדש".',questionsSectionHint:"הפרטים האלה עוזרים לבינה המלאכותית להתאים את המייל."},aiChat:{greeting:"היי! איך אני יכול לעזור לך היום?",thanksMessage:"תודה על ההודעה! אני אעבד על זה ואחזור אליך בקרוב.",placeholder:"הקלד הודעה..."},tone:{professional:"מקצועי",friendly:"ידידותי",formal:"פורמלי",casual:"קליל",concise:"תמציתי"},keywords:{label:"מילות מפתח",placeholder:"הוספת מילת מפתח..."},disclaimer:{beta:"בטא",aiMistakes:"הבינה המלאכותית עלולה לטעות. מומלץ לבדוק את התוצאות."},themeColorPicker:{removePrimary:"הסר מצבע ראשי",setPrimary:"הגדר כצבע ראשי",removeSecondary:"הסר מצבע משני",setSecondary:"הגדר כצבע משני"}},uj={actionCards:{email:"Design me an email",domain:"Find me a domain",sms:"Create SMS",analyze:"Analyze my business"},actionCardsDesc:{email:"Create a newsletter tailored to your business and language.",domain:"Find an available domain name that fits your brand.",sms:"Generate a marketing SMS ready to send.",analyze:"Get insights about your business, audience, and opportunities."},welcome:{heading:"Welcome",text:`Welcome to SendMsg 🚀. Here you'll find tools to market your business.
@@ -389,8 +389,8 @@ Newsletter creation ✉️, Landing pages 🎯, Digital courses 📇 and more`,s
389
389
  line-height: 1.45;
390
390
  color: rgba(26, 26, 46, 0.65);
391
391
  }
392
- `,ws=v.createContext({shadowRoot:null,activeStep:0,setActiveStep:()=>{},stepBeforeStep3:2,stepBeforeStep1:0,stepBeforeDomainFinder:-1,step2Data:null,setStep2Data:()=>{},step3Draft:null,setStep3Draft:()=>{},openDomainFinder:!1,setOpenDomainFinder:()=>{},openSmsChat:!1,setOpenSmsChat:()=>{},openAnalyzeChat:!1,setOpenAnalyzeChat:()=>{}}),nl=()=>v.useContext(ws),Bs=()=>{const{element:e}=v.useContext(ws);return e},Sg=()=>{const{step2Data:e,setStep2Data:t}=v.useContext(ws);return{step2Data:e,setStep2Data:t}},XS=()=>{const{step3Draft:e,setStep3Draft:t}=v.useContext(ws);return{step3Draft:e,setStep3Draft:t}},Zc=(e,t)=>{const{shadowRoot:n}=nl();v.useEffect(()=>{if(!n||!e)return;const a=n.querySelector(`style[data-style-id="${t}"]`);if(a){a.textContent!==e&&(a.textContent=e);return}const r=document.createElement("style");r.textContent=e,r.setAttribute("data-style-id",t),n.insertBefore(r,n.firstChild)},[n,e,t])},xj=({shadowRoot:e,element:t,children:n})=>{const[a,r]=v.useState(0),[l,i]=v.useState(2),o=k=>{k===3&&i(a),k===1&&C(a),r(k)},[s,p]=v.useState(null),[u,c]=v.useState(null),[d,f]=v.useState(!1),[W,C]=v.useState(0),[E,h]=v.useState(-1),g=k=>{k?h(a):(r(E),h(-1)),f(k)},[m,y]=v.useState(!1),[x,S]=v.useState(!1);return A.jsx(ws.Provider,{value:{shadowRoot:e,element:t,activeStep:a,setActiveStep:o,stepBeforeStep3:l,stepBeforeStep1:W,stepBeforeDomainFinder:E,step2Data:s,setStep2Data:p,step3Draft:u,setStep3Draft:c,openDomainFinder:d,setOpenDomainFinder:g,openSmsChat:m,setOpenSmsChat:y,openAnalyzeChat:x,setOpenAnalyzeChat:S},children:n})};function Nc(e,t){let n=e;return Object.entries(t).forEach(([a,r])=>{const l=new RegExp(`\\.${a}(?![\\w-])`,"g");n=n.replace(l,`.${r}`)}),n}var Eg={},bj=qe;Object.defineProperty(Eg,"__esModule",{value:!0});var xg=Eg.default=void 0,kj=bj(Ke()),Rj=A;xg=Eg.default=(0,kj.default)((0,Rj.jsx)("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");function Gc(e){const t=v.useId().replace(/:/g,""),n=`cdtr-bai-${t}-c0`,a=`cdtr-bai-${t}-c1`;return A.jsxs("svg",{width:"20",height:"23",viewBox:"0 0 24 27",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:"false",...e,children:[A.jsx("path",{d:"M21 22H23V24H1V22H3V7C3 6.44772 3.44772 6 4 6H14C14.5523 6 15 6.44772 15 7V22H19V14H17V12H20C20.5523 12 21 12.4477 21 13V22ZM5 8V22H13V8H5ZM7 14H11V16H7V14ZM7 10H11V12H7V10Z",fill:"url(#cdtr-brand-gradient)"}),A.jsx("g",{clipPath:`url(#${n})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"black"})}),A.jsx("g",{clipPath:`url(#${a})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"url(#cdtr-brand-gradient)"})}),A.jsxs("defs",{children:[A.jsx("clipPath",{id:n,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})}),A.jsx("clipPath",{id:a,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})})]})]})}const Ha="https://agent.creaditor.ai",wj="https://img.creaditor.ai",vr={BUSINESS_ANALYSIS:`${Ha}/api/v1/business-analysis/analyze`,BUSINESS_ANALYSIS_GET:e=>`${Ha}/api/v1/business-analysis/get?website=${encodeURIComponent(e)}`,BUSINESS_ANALYSIS_PATCH:`${Ha}/api/v1/business-analysis/patch`,DOMAIN_FINDER:`${Ha}/api/v1/domain-finder/find`,GENERATE_NEWSLETTER:`${Ha}/api/v1/generate/generate-newsletter`,GENERATE_NEWSLETTER3:`${Ha}/api/v1/generate/generate-newsletter3`,ALMOG_CHAT:`${Ha}/api/v1/almog/chat`,ALMOG_HISTORY:e=>`${Ha}/api/v1/almog/history/${e}`,CHAT_SESSION:`${Ha}/api/v1/chat/session`,CHAT_MESSAGE:`${Ha}/api/v1/chat/message`,LOGOS_ANALYZE:e=>`${wj}/logos/analyze?url=${encodeURIComponent(e)}`};function ma({title:e,description:t,children:n}){return A.jsxs(D,{component:"section",sx:{mb:{xs:2.5,sm:3.5}},children:[A.jsx(We,{component:"h2",sx:{fontSize:"0.8125rem",fontWeight:700,color:"text.secondary",letterSpacing:"0.02em",mb:t?.5:1.25,lineHeight:1.3},children:e}),t?A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mb:2,maxWidth:"min(52ch, 100%)",lineHeight:1.55,fontSize:"0.8125rem"},children:t}):null,n]})}const bg=["נשמע עסק מעניין מאוד!","בואו נמצא את הדומיין המושלם עבורך!","אני מחפש את האפשרויות הטובות ביותר...","מצאתי כמה אפשרויות מעולות!"],_a=Vl;function Bj({activeStep:e,steps:t,userName:n,websiteUrl:a,hasContext:r,urls:l,setWebsiteUrl:i,setActiveStep:o,freeSolo:s,businessNameOrDescription:p="",setBusinessNameOrDescription:u,language:c}){const[d,f]=v.useState(!!r),[W,C]=v.useState(!1),[E,h]=v.useState(!1),[g,m]=v.useState(p),[y,x]=v.useState([]),[S,k]=v.useState(!1),[B,V]=v.useState(null),[b,w]=v.useState(null),[M,z]=v.useState(""),F=v.useRef(a),T=v.useRef(!1),{openDomainFinder:U,setOpenDomainFinder:q,stepBeforeDomainFinder:Q,step2Data:K}=nl(),R=v.useRef(U),X=v.useRef(p);X.current=p;const G=v.useRef(K);G.current=K,v.useEffect(()=>{var _,ee,ge,Ce;if(U&&e===0&&(T.current=Q===2,h(!0),i(""),x([]),V(null),w(null)),U){const se=((_=X.current)==null?void 0:_.trim())||((Ce=(ge=(ee=G.current)==null?void 0:ee.businessData)==null?void 0:ge.business_name)==null?void 0:Ce.trim())||"";m(se),se&&oe(se)}},[U,e,Q]),v.useEffect(()=>{R.current&&!U&&E&&!T.current&&(h(!1),x([]),V(null)),R.current=U},[U,E]);const L=()=>{q(!1),T.current||(h(!1),x([]),V(null))},te=_=>{const ee=new CustomEvent("business-ai-buy-domain",{detail:{domain:_},bubbles:!0,composed:!0});window.dispatchEvent(ee)},re=()=>{T.current=!1,h(!0),i(""),u==null||u(""),m(""),x([]),V(null),w(null)},oe=_=>{const ee=(_??g.trim())||"business";u==null||u(ee!=="business"?ee:g.trim()),k(!0),V(null),w(null),x([]);const ge={prompt:`find domain for ${ee}`};c&&(ge.language=c),fetch(vr.DOMAIN_FINDER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ge)}).then(async Ce=>{var Me,ye;if(!Ce.ok)throw new Error("Failed to fetch domain suggestions");const se=(Me=Ce.body)==null?void 0:Me.getReader(),ue=new TextDecoder;let Te="",ne=null;if(!se)throw new Error("Response body is not readable");let Le=!1;for(;!Le;){const De=await se.read();if(Le=De.done,Le)break;const{value:Qe}=De;Te+=ue.decode(Qe,{stream:!0});const Fe=Te.split(`
393
- `);Te=Fe.pop()||"";for(const P of Fe)if(P.startsWith("data: ")){const j=P.slice(6);try{const O=JSON.parse(j);O.message&&!((ye=O.metadata)!=null&&ye.token)&&w(O.message),(O.suggestions&&Array.isArray(O.suggestions)||O.status==="complete"&&O.suggestions)&&(ne=O,w(null))}catch{continue}}}if(Te.startsWith("data: ")){const De=Te.slice(6);try{const Qe=JSON.parse(De);(Qe.suggestions&&Array.isArray(Qe.suggestions)||Qe.status==="complete"&&Qe.suggestions)&&(ne=Qe)}catch{}}return ne}).then(Ce=>{if(Ce!=null&&Ce.suggestions&&Array.isArray(Ce.suggestions))x(Ce.suggestions.map(se=>({domain:se.domain,available:se.available})));else if(Ce!=null&&Ce.data){const se=Ce.data;Array.isArray(se)?x(se.map(ue=>({domain:ue}))):se!=null&&se.domains&&Array.isArray(se.domains)?x(se.domains.map(ue=>({domain:ue}))):se!=null&&se.domain?x([{domain:se.domain}]):x([])}else x([]);k(!1)}).catch(Ce=>{console.error("Error fetching domains:",Ce),V("לא הצלחנו לטעון הצעות דומיין"),k(!1)})};v.useEffect(()=>{if(!S){z("");return}let _=0;z(bg[_]);const ee=setInterval(()=>{_=(_+1)%bg.length,z(bg[_])},2500);return()=>clearInterval(ee)},[S]),v.useEffect(()=>{C(!0)},[]),v.useEffect(()=>{F.current=a},[a]),v.useEffect(()=>{m(p)},[p]);const ve=_=>{f(_)},fe=_=>{const ee=_.trim();return!ee||ee.startsWith("http://")||ee.startsWith("https://")?ee:"https://"+ee},he=_=>{const ee=_.target.value,ge=F.current;if(!ee){F.current=ee,i(ee);return}if(ee.includes("://")){F.current=ee,i(ee);return}if(ee.startsWith("http://")||ee.startsWith("https://")){F.current=ee,i(ee);return}const Ce=ge.includes("://"),se=ee.length<ge.length;if(Ce&&!ee.includes("://")&&(ge.replace(/^https?:\/\//,"").startsWith(ee)||se)){F.current=ee,i(ee);return}if(ee.toLowerCase().startsWith("http")&&ee.length<7){F.current=ee,i(ee);return}if(ee.includes(".")||ee.length>3){const Te=fe(ee);F.current=Te,i(Te)}else F.current=ee,i(ee)},ze=_=>{if(!_.trim()||(_.includes("http")||(_="https://"+_),!_.includes(".")))return!1;try{const ee=new URL(_);return ee.protocol==="http:"||ee.protocol==="https:"}catch{return!1}};return A.jsxs(D,{sx:{position:"relative",padding:{xs:2,sm:3,md:5},width:{xs:"100%"},maxWidth:"100%",overflowY:"auto",boxSizing:"border-box"},children:[A.jsx(_q,{sx:{display:"none"},activeStep:e,children:t.map(_=>A.jsx(bq,{children:A.jsx(LS,{children:_})},_))}),A.jsxs(Xt,{spacing:0,sx:{width:"100%"},children:[A.jsx(ha,{label:"Business AI",className:W?_a.fadeUp:"",sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"},icon:A.jsx(Gc,{})}),A.jsxs(D,{className:W?_a.fadeUpDelay1:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",mb:{xs:1,sm:1.25}},children:"מביאים את המותג שלך למערכת"}),A.jsxs(We,{variant:"body2",color:"text.secondary",className:W?_a.fadeUpDelay2:"",sx:{fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:[n?`היי ${n} — `:"","הזינו את כתובת האתר כדי שנמשוך לוגו, צבעים ותוכן, או המשיכו בלי אתר ונחפש דומיין מתאים."]})]}),E?A.jsx(D,{className:_a.stepView,sx:{width:"100%"},children:!S&&y.length===0&&!B?A.jsxs(ma,{title:"חיפוש דומיין",description:"תארו את העסק או את שם הדומיין הרצוי — נציע אפשרויות מתאימות.",children:[A.jsx(It,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר",autoComplete:"off",value:g,onChange:_=>{m(_.target.value),u==null||u(_.target.value.trim())},onKeyDown:_=>{_.key==="Enter"&&g.trim()&&(_.preventDefault(),oe())},InputProps:{endAdornment:A.jsx(og,{position:"end",children:A.jsx(Ge,{variant:"contained",color:"primary",size:"small",disabled:!g.trim()||S,onClick:()=>oe(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(xg,{fontSize:"small"})})})},className:W?_a.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"},textTransform:"none"},children:"חזרה"})]}):S?A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,minHeight:220,borderRadius:2,border:"1px dashed",borderColor:"divider",bgcolor:_=>Rn(_.palette.common.black,.02)},children:[A.jsx($r,{sx:{mb:2,width:40,height:40}}),A.jsx(We,{variant:"body1",color:"text.secondary",sx:{fontSize:"0.9375rem",textAlign:"center",px:2},children:b||M})]}):B?A.jsxs(A.Fragment,{children:[A.jsx(jW,{severity:"error",sx:{mb:2,fontSize:"0.875rem"},children:B}),A.jsxs(ut,{container:!0,spacing:1,children:[A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>{V(null),oe()},sx:{fontSize:"0.875rem"},children:"נסה שוב"})}),A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{fontSize:"0.875rem"},children:"חזרה"})})]})]}):A.jsxs(ma,{title:"תוצאות",description:"לחצו על דומיין לפתיחת רכישה. אפשר לחפש מחדש עם ניסוח אחר.",children:[A.jsx(It,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר – חיפוש מחדש לתוצאות אחרות",autoComplete:"off",value:g,onChange:_=>{m(_.target.value),u==null||u(_.target.value.trim())},onKeyDown:_=>{_.key==="Enter"&&g.trim()&&(_.preventDefault(),oe())},InputProps:{endAdornment:A.jsx(og,{position:"end",children:A.jsx(Ge,{variant:"contained",color:"primary",size:"small",disabled:!g.trim()||S,onClick:()=>oe(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(xg,{fontSize:"small"})})})},sx:{mb:2,"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(D,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:1,mb:3},children:y.map((_,ee)=>A.jsxs(D,{onClick:()=>te(_.domain),sx:{border:"1px solid",borderColor:"divider",borderRadius:2,p:1.25,cursor:"pointer",transition:"border-color 0.2s ease, background-color 0.2s ease",bgcolor:ge=>Rn(ge.palette.common.black,.02),"&:hover":{borderColor:"primary.main",bgcolor:ge=>Rn(ge.palette.primary.main,.06)}},children:[A.jsx(We,{sx:{fontSize:"0.875rem",fontWeight:500},children:_.domain}),_.available!==!1&&A.jsx(We,{variant:"caption",color:"success.main",sx:{fontSize:"0.75rem"},children:"זמין"})]},ee))}),A.jsxs(ut,{container:!0,spacing:1,justifyContent:"space-between",children:[A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{fontSize:"0.875rem"},children:"חזרה"})}),A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:()=>{u==null||u(g.trim()),o(1)},sx:{fontSize:"0.875rem"},children:"הבא"})})]})]})}):A.jsxs(A.Fragment,{children:[A.jsxs(ma,{title:"כתובת האתר",description:"כתובת מלאה כולל https. אין אתר? השתמשו בקישור מתחת לשדה.",children:[A.jsx(It,{fullWidth:!0,label:"URL",variant:"outlined",margin:"normal",placeholder:"https://www.example.com",value:a,onChange:he,className:W?_a.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"},textAlign:"right",direction:"rtl",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},"& .MuiInputLabel-root":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:re,className:W?_a.fadeUpDelay4:"",sx:{mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},textAlign:"right",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:0},textTransform:"none"},children:"אני רוצה דומיין לעסק שלי"})]}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"אישור והמשך",description:"נדרש לאימות הבעלות על האתר ולשימוש במידע ליצירת תכנים.",children:A.jsx(D,{sx:{p:{xs:1.25,sm:1.5},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:_=>Rn(_.palette.common.black,.02)},children:A.jsx(Tc,{control:A.jsx(TU,{size:"small"}),checked:d,onChange:(_,ee)=>ve(ee),className:W?_a.fadeUpDelay3:"",sx:{m:0,alignItems:"flex-start","& .MuiTypography-root":{fontSize:{xs:"0.75rem",sm:"0.8125rem"},lineHeight:1.45}},label:"אני מאשר.ת שהאתר בבעלותי, ואני מסכימה למערכת שלח מסר לשמור את המידע ולהשתמש בו ליצירת תכנים לעסק שלי"})})}),Array.isArray(l)&&l.length>0?A.jsx(Ge,{onClick:()=>{i(""),o(1)},variant:"text",disabled:!d,color:"primary",className:W?_a.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.5},mb:{xs:1,sm:1.5},fontSize:{xs:"0.75rem",sm:"0.875rem"},textAlign:"center",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:1}},children:"אין לי אתר, אבל בואו ננסה לפי התכנים הקיימים במערכת"}):null,A.jsx(Ge,{disabled:!ze(a)||!d,variant:"contained",color:"primary",onClick:()=>o(1),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"הבא"}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ut,{className:W?_a.fadeUpDelay4:"",sx:{width:"100%",mt:{xs:2,sm:2.5,md:3}},justifyContent:{xs:"center",sm:"space-between"},container:!0,spacing:{xs:1,sm:0},children:s&&A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"text",color:"primary",disabled:!d,onClick:()=>{i(""),o(1)},fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:r?"צפייה במידע על העסק שלי":""})})})]})]})]})}var kg={},Mj=qe;Object.defineProperty(kg,"__esModule",{value:!0});var Ul=kg.default=void 0,Lj=Mj(Ke()),Qj=A;Ul=kg.default=(0,Lj.default)((0,Qj.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var Rg={},Vj=qe;Object.defineProperty(Rg,"__esModule",{value:!0});var Ms=Rg.default=void 0,Uj=Vj(Ke()),Fj=A;Ms=Rg.default=(0,Uj.default)((0,Fj.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var wg={},zj=qe;Object.defineProperty(wg,"__esModule",{value:!0});var HS=wg.default=void 0,qj=zj(Ke()),jj=A;HS=wg.default=(0,qj.default)((0,jj.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var Bg={},Tj=qe;Object.defineProperty(Bg,"__esModule",{value:!0});var _S=Bg.default=void 0,Kj=Tj(Ke()),Oj=A;_S=Bg.default=(0,Kj.default)((0,Oj.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var Mg={},Pj=qe;Object.defineProperty(Mg,"__esModule",{value:!0});var $S=Mg.default=void 0,Jj=Pj(Ke()),Dj=A;$S=Mg.default=(0,Jj.default)((0,Dj.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Lg={},Yj=qe;Object.defineProperty(Lg,"__esModule",{value:!0});var eE=Lg.default=void 0,Zj=Yj(Ke()),Nj=A;eE=Lg.default=(0,Zj.default)((0,Nj.jsx)("path",{d:"M9.5 11c1.93 0 3.5 1.57 3.5 3.5S11.43 18 9.5 18 6 16.43 6 14.5 7.57 11 9.5 11m0-2C6.46 9 4 11.46 4 14.5S6.46 20 9.5 20s5.5-2.46 5.5-5.5c0-1.16-.36-2.23-.97-3.12L18 7.42V10h2V4h-6v2h2.58l-3.97 3.97C11.73 9.36 10.66 9 9.5 9"}),"Male");var Qg={},Gj=qe;Object.defineProperty(Qg,"__esModule",{value:!0});var tE=Qg.default=void 0,Xj=Gj(Ke()),Hj=A;tE=Qg.default=(0,Xj.default)((0,Hj.jsx)("path",{d:"M17.5 9.5C17.5 6.46 15.04 4 12 4S6.5 6.46 6.5 9.5c0 2.7 1.94 4.93 4.5 5.4V17H9v2h2v2h2v-2h2v-2h-2v-2.1c2.56-.47 4.5-2.7 4.5-5.4m-9 0C8.5 7.57 10.07 6 12 6s3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5"}),"Female");var Vg={},_j=qe;Object.defineProperty(Vg,"__esModule",{value:!0});var nE=Vg.default=void 0,$j=_j(Ke()),eT=A;nE=Vg.default=(0,$j.default)((0,eT.jsx)("path",{d:"M12 8c1.93 0 3.5 1.57 3.5 3.5S13.93 15 12 15s-3.5-1.57-3.5-3.5S10.07 8 12 8m4.53.38 3.97-3.96V7h2V1h-6v2h2.58l-3.97 3.97C14.23 6.36 13.16 6 12 6s-2.23.36-3.11.97l-.65-.65 1.41-1.41-1.41-1.42L6.82 4.9 4.92 3H7.5V1h-6v6h2V4.42l1.91 1.9-1.42 1.42L5.4 9.15l1.41-1.41.65.65c-.6.88-.96 1.95-.96 3.11 0 2.7 1.94 4.94 4.5 5.41V19H9v2h2v2h2v-2h2v-2h-2v-2.09c2.56-.47 4.5-2.71 4.5-5.41 0-1.16-.36-2.23-.97-3.12"}),"Transgender");var Ug={},tT=qe;Object.defineProperty(Ug,"__esModule",{value:!0});var aE=Ug.default=void 0;rT(v);var nT=tT(Ke()),aT=A;function rE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(rE=function(a){return a?n:t})(e)}function rT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=rE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}aE=Ug.default=(0,nT.default)((0,aT.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook");var Fg={},lT=qe;Object.defineProperty(Fg,"__esModule",{value:!0});var lE=Fg.default=void 0;sT(v);var iT=lT(Ke()),oT=A;function iE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iE=function(a){return a?n:t})(e)}function sT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}lE=Fg.default=(0,iT.default)((0,oT.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");var zg={},pT=qe;Object.defineProperty(zg,"__esModule",{value:!0});var oE=zg.default=void 0;AT(v);var uT=pT(Ke()),cT=A;function sE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(sE=function(a){return a?n:t})(e)}function AT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=sE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}oE=zg.default=(0,uT.default)((0,cT.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");var qg={},dT=qe;Object.defineProperty(qg,"__esModule",{value:!0});var pE=qg.default=void 0;gT(v);var fT=dT(Ke()),WT=A;function uE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(uE=function(a){return a?n:t})(e)}function gT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=uE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}pE=qg.default=(0,fT.default)((0,WT.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");var jg={},hT=qe;Object.defineProperty(jg,"__esModule",{value:!0});var cE=jg.default=void 0;vT(v);var mT=hT(Ke()),CT=A;function AE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(AE=function(a){return a?n:t})(e)}function vT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=AE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}cE=jg.default=(0,mT.default)((0,CT.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");var Tg={},yT=qe;Object.defineProperty(Tg,"__esModule",{value:!0});var dE=Tg.default=void 0;ET(v);var IT=yT(Ke()),ST=A;function fE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fE=function(a){return a?n:t})(e)}function ET(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}dE=Tg.default=(0,IT.default)((0,ST.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp");var Kg={},xT=qe;Object.defineProperty(Kg,"__esModule",{value:!0});var WE=Kg.default=void 0;RT(v);var bT=xT(Ke()),kT=A;function gE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(gE=function(a){return a?n:t})(e)}function RT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=gE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}WE=Kg.default=(0,bT.default)((0,kT.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");var Og={},wT=qe;Object.defineProperty(Og,"__esModule",{value:!0});var hE=Og.default=void 0;LT(v);var BT=wT(Ke()),MT=A;function mE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mE=function(a){return a?n:t})(e)}function LT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}hE=Og.default=(0,BT.default)((0,MT.jsx)("path",{d:"M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"}),"Reddit");var Pg={},QT=qe;Object.defineProperty(Pg,"__esModule",{value:!0});var CE=Pg.default=void 0;FT(v);var VT=QT(Ke()),UT=A;function vE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vE=function(a){return a?n:t})(e)}function FT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}CE=Pg.default=(0,VT.default)((0,UT.jsx)("path",{d:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z"}),"Pinterest");var Jg={},zT=qe;Object.defineProperty(Jg,"__esModule",{value:!0});var yE=Jg.default=void 0;TT(v);var qT=zT(Ke()),jT=A;function IE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(IE=function(a){return a?n:t})(e)}function TT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=IE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}yE=Jg.default=(0,qT.default)((0,jT.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Dg={},KT=qe;Object.defineProperty(Dg,"__esModule",{value:!0});var SE=Dg.default=void 0,OT=KT(Ke()),PT=A;SE=Dg.default=(0,OT.default)((0,PT.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var Yg={},JT=qe;Object.defineProperty(Yg,"__esModule",{value:!0});var EE=Yg.default=void 0,DT=JT(Ke()),YT=A;EE=Yg.default=(0,DT.default)((0,YT.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h18zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3"}),"MusicVideo");const xE=async(e,t,n="",a)=>{const r={mainUrl:e,urls:t,context:n};if(!e)return Promise.resolve({});a&&(r.language=a);const l=await fetch(vr.BUSINESS_ANALYSIS,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!l.ok)throw new Error(`Failed to analyze business: ${l.statusText}`);return l.json()},ZT=async(e,t)=>{const n=await fetch(vr.BUSINESS_ANALYSIS_PATCH,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({website:e,...t})});if(!n.ok){const a=await n.text();throw new Error(`Failed to save business analysis: ${n.status} ${a}`)}return n.json()},NT=async e=>{const t=await fetch(vr.LOGOS_ANALYZE(e),{method:"GET"});if(!t.ok)throw new Error(`Failed to analyze logo: ${t.statusText}`);return t.json()};async function bE(e){if(!e.prompt)throw new Error("generateNewsletter3: prompt is required and cannot be null or empty");const t={prompt:e.prompt,domain:e.domain,mergeTags:e.mergeTags??[],structureUrl:e.structureUrl??"",textStyleUrl:e.textStyleUrl??""};if(e.language&&(t.language=e.language),e.location&&e.location.trim()&&(t.location=e.location.trim()),e.visibilityRules&&Object.keys(e.visibilityRules).length>0){const a=e.visibilityRules,r=[...a.exclude??[],...a.excludedGenders??[]];r.length>0&&(t.visibilityRules={exclude:r})}const n=await fetch(vr.GENERATE_NEWSLETTER3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`generate-newsletter3 failed: ${n.status} ${a}`)}return n.json()}function Zg(e){return(e||"default").trim().toLowerCase()||"default"}class GT{constructor(){$n(this,"storageKeyPrefix","sms_chat_token")}storageKey(t){return`${this.storageKeyPrefix}_${Zg(t)}`}getToken(t){try{return localStorage.getItem(this.storageKey(t))}catch(n){return console.warn("Failed to load SMS chat token from localStorage:",n),null}}clearSession(t){try{localStorage.removeItem(this.storageKey(t))}catch(n){console.warn("Failed to clear SMS chat token from localStorage:",n)}}async createSession(t,n){const a={skill:"sms",url:n},r=await fetch(vr.CHAT_SESSION,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!r.ok){const i=await r.text();throw new Error(`Failed to create SMS chat session: ${r.status} ${i}`)}const l=await r.json();try{localStorage.setItem(this.storageKey(t),l.token)}catch(i){console.warn("Failed to save SMS chat token to localStorage:",i)}return l}async sendMessage(t){const n={token:t.token,message:t.message,skill:"sms",...t.context&&{context:t.context},...t.domain&&{domain:t.domain},...t.forceAnswer!==void 0&&{forceAnswer:t.forceAnswer}},a=await fetch(vr.CHAT_MESSAGE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(a.status===404)throw this.clearSession(t.domain),new Error("SESSION_NOT_FOUND");if(!a.ok){const r=await a.json().catch(()=>({})),l=(r==null?void 0:r.error)||a.statusText;throw new Error(`SMS chat error: ${a.status} ${l}`)}return a.json()}}class XT{constructor(){$n(this,"storageKeyPrefix","chat_token_business_analysis")}storageKey(t){return`${this.storageKeyPrefix}_${Zg(t)}`}getToken(t){try{return localStorage.getItem(this.storageKey(t))}catch(n){return console.warn("Failed to load business-analysis chat token from localStorage:",n),null}}clearSession(t){try{localStorage.removeItem(this.storageKey(t))}catch(n){console.warn("Failed to clear business-analysis chat token from localStorage:",n)}}async createSession(t,n){const a={skill:"business-analysis",url:n},r=await fetch(vr.CHAT_SESSION,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!r.ok){const i=await r.text();throw new Error(`Failed to create business-analysis chat session: ${r.status} ${i}`)}const l=await r.json();try{localStorage.setItem(this.storageKey(t),l.token)}catch(i){console.warn("Failed to save business-analysis chat token to localStorage:",i)}return l}async sendMessage(t){const n={token:t.token,message:t.message,skill:"business-analysis",...t.context&&{context:t.context},...t.domain&&{domain:t.domain}},a=await fetch(vr.CHAT_MESSAGE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(a.status===404)throw this.clearSession(t.domain),new Error("SESSION_NOT_FOUND");if(!a.ok){const r=await a.json().catch(()=>({})),l=(r==null?void 0:r.error)||a.statusText;throw new Error(`Business-analysis chat error: ${a.status} ${l}`)}return a.json()}}const Ng="sms_chat_messages",Gg="analyze_chat_messages";function Xg(e,t){return`${e}_${Zg(t)}`}function kE(e,t){try{const n=localStorage.getItem(Xg(e,t));if(!n)return[];const a=JSON.parse(n);return Array.isArray(a)?a:[]}catch{return[]}}function RE(e,t,n){try{localStorage.setItem(Xg(e,t),JSON.stringify(n))}catch(a){console.warn("Failed to save chat messages to localStorage:",a)}}function wE(e,t){try{localStorage.removeItem(Xg(e,t))}catch{}}function HT({value:e,onChange:t,label:n="מילות מפתח",placeholder:a="הוספת מילת מפתח..."}){const[r,l]=v.useState(""),i=(s,p)=>{t(p)},o=(s,p)=>{l(p)};return A.jsx(_W,{multiple:!0,freeSolo:!0,options:[],value:e,onChange:i,inputValue:r,onInputChange:o,renderTags:(s,p)=>s.map((u,c)=>v.createElement(ha,{variant:"outlined",label:u,...p({index:c}),key:c})),renderInput:s=>A.jsx(It,{...s,label:n,placeholder:a,variant:"outlined",margin:"normal"}),sx:{"& .MuiAutocomplete-tag":{margin:"4px"}}})}var Hg={},_T=qe;Object.defineProperty(Hg,"__esModule",{value:!0});var _g=Hg.default=void 0,$T=_T(Ke()),eK=A;_g=Hg.default=(0,$T.default)((0,eK.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var Zi=255,Ma=100,Ls=e=>{var{r:t,g:n,b:a,a:r}=e,l=Math.max(t,n,a),i=l-Math.min(t,n,a),o=i?l===t?(n-a)/i:l===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(o<0?o+6:o),s:l?i/l*Ma:0,v:l/Zi*Ma,a:r}},BE=e=>{var{h:t,s:n,l:a,a:r}=$g(e);return"hsla("+t+", "+n+"%, "+a+"%, "+r+")"},Xc=e=>{var{h:t,s:n,l:a,a:r}=e;return n*=(a<50?a:Ma-a)/Ma,{h:t,s:n>0?2*n/(a+n)*Ma:0,v:a+n,a:r}},$g=e=>{var{h:t,s:n,v:a,a:r}=e,l=(200-n)*a/Ma;return{h:t,s:l>0&&l<200?n*a/Ma/(l<=Ma?l:200-l)*Ma:0,l:l/2,a:r}},ME=e=>{var{r:t,g:n,b:a}=e,r=t<<16|n<<8|a;return"#"+(l=>new Array(7-l.length).join("0")+l)(r.toString(16))},LE=e=>{var{r:t,g:n,b:a,a:r}=e,l=typeof r=="number"&&(r*255|256).toString(16).slice(1);return""+ME({r:t,g:n,b:a})+(l||"")},Fl=e=>Ls(tK(e)),tK=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[a,r,l=0,i]=e.match(n).map(o=>parseInt(o,16));return{r:a,g:r,b:l,a:(i??255)/Zi}},Qs=e=>{var{h:t,s:n,v:a,a:r}=e,l=t/60,i=n/Ma,o=a/Ma,s=Math.floor(l)%6,p=l-Math.floor(l),u=Zi*o*(1-i),c=Zi*o*(1-i*p),d=Zi*o*(1-i*(1-p));o*=Zi;var f={};switch(s){case 0:f.r=o,f.g=d,f.b=u;break;case 1:f.r=c,f.g=o,f.b=u;break;case 2:f.r=u,f.g=o,f.b=d;break;case 3:f.r=u,f.g=c,f.b=o;break;case 4:f.r=d,f.g=u,f.b=o;break;case 5:f.r=o,f.g=u,f.b=c;break}return f.r=Math.round(f.r),f.g=Math.round(f.g),f.b=Math.round(f.b),I({},f,{a:r})},nK=e=>{var{r:t,g:n,b:a,a:r}=Qs(e);return"rgba("+t+", "+n+", "+a+", "+r+")"},aK=e=>{var{r:t,g:n,b:a}=e;return{r:t,g:n,b:a}},rK=e=>{var{h:t,s:n,l:a}=e;return{h:t,s:n,l:a}},eh=e=>ME(Qs(e)),lK=e=>LE(Qs(e)),iK=e=>{var{h:t,s:n,v:a}=e;return{h:t,s:n,v:a}},oK=e=>{var{r:t,g:n,b:a}=e,r=function(u){return u<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)},l=r(t/255),i=r(n/255),o=r(a/255),s={};return s.x=l*.4124+i*.3576+o*.1805,s.y=l*.2126+i*.7152+o*.0722,s.bri=l*.0193+i*.1192+o*.9505,s},La=e=>{var t,n,a,r,l,i,o,s,p;return typeof e=="string"&&th(e)?(i=Fl(e),s=e):typeof e!="string"&&(i=e),i&&(a=iK(i),l=$g(i),r=Qs(i),p=LE(r),s=eh(i),n=rK(l),t=aK(r),o=oK(t)),{rgb:t,hsl:n,hsv:a,rgba:r,hsla:l,hsva:i,hex:s,hexa:p,xy:o}},th=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),sK=H1();const Ca=Jl(sK);function QE(e){var t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useCallback((n,a)=>t.current&&t.current(n,a),[])}var Vs=e=>"touches"in e,VE=e=>{!Vs(e)&&e.preventDefault&&e.preventDefault()},UE=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=1),t>a?a:t<n?n:t},FE=(e,t)=>{var n=e.getBoundingClientRect(),a=Vs(t)?t.touches[0]:t;return{left:UE((a.pageX-(n.left+window.pageXOffset))/n.width),top:UE((a.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:a.pageX-(n.left+window.pageXOffset),y:a.pageY-(n.top+window.pageYOffset)}},pK=["prefixCls","className","onMove","onDown"],nh=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:a,onMove:r,onDown:l}=e,i=Ca(e,pK),o=v.useRef(null),s=v.useRef(!1),[p,u]=v.useState(!1),c=QE(r),d=QE(l),f=g=>s.current&&!Vs(g)?!1:(s.current=Vs(g),!0),W=v.useCallback(g=>{if(VE(g),!!o.current){var m=Vs(g)?g.touches.length>0:g.buttons>0;if(!m){u(!1);return}c==null||c(FE(o.current,g),g)}},[c]),C=v.useCallback(()=>u(!1),[]),E=v.useCallback(g=>{g?(window.addEventListener(s.current?"touchmove":"mousemove",W),window.addEventListener(s.current?"touchend":"mouseup",C)):(window.removeEventListener("mousemove",W),window.removeEventListener("mouseup",C),window.removeEventListener("touchmove",W),window.removeEventListener("touchend",C))},[W,C]);v.useEffect(()=>(E(p),()=>{E(!1)}),[p,W,C,E]);var h=v.useCallback(g=>{var m=document.activeElement;m==null||m.blur(),VE(g.nativeEvent),f(g.nativeEvent)&&o.current&&(d==null||d(FE(o.current,g.nativeEvent),g.nativeEvent),u(!0))},[d]);return A.jsx("div",I({},i,{className:[n,a||""].filter(Boolean).join(" "),style:I({},i.style,{touchAction:"none"}),ref:o,tabIndex:0,onMouseDown:h,onTouchStart:h}))});nh.displayName="Interactive";var uK=["className","prefixCls","left","top","style","fillProps"],cK=e=>{var{className:t,prefixCls:n,left:a,top:r,style:l,fillProps:i}=e,o=Ca(e,uK),s=I({},l,{position:"absolute",left:a,top:r}),p=I({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},i==null?void 0:i.style,{transform:a?"translate(-9px, -1px)":"translate(-1px, -9px)"});return A.jsx("div",I({className:n+"-pointer "+(t||""),style:s},o,{children:A.jsx("div",I({className:n+"-fill"},i,{style:p}))}))},AK=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],dK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Hc=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:a,hsva:r,background:l,bgProps:i={},innerProps:o={},pointerProps:s={},radius:p=0,width:u,height:c=16,direction:d="horizontal",style:f,onChange:W,pointer:C}=e,E=Ca(e,AK),h=V=>{W&&W(I({},r,{a:d==="horizontal"?V.left:V.top}),V)},g=BE(Object.assign({},r,{a:1})),m="linear-gradient(to "+(d==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+g+" 100%)",y={};d==="horizontal"?y.left=r.a*100+"%":y.top=r.a*100+"%";var x=I({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:p,background:"url("+dK+") left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:c},f,{position:"relative"}),S=v.useCallback(V=>{var b=.01,w=r.a,M=w;switch(V.key){case"ArrowLeft":d==="horizontal"&&(M=Math.max(0,w-b),V.preventDefault());break;case"ArrowRight":d==="horizontal"&&(M=Math.min(1,w+b),V.preventDefault());break;case"ArrowUp":d==="vertical"&&(M=Math.max(0,w-b),V.preventDefault());break;case"ArrowDown":d==="vertical"&&(M=Math.min(1,w+b),V.preventDefault());break;default:return}if(M!==w){var z={left:d==="horizontal"?M:r.a,top:d==="vertical"?M:r.a,width:0,height:0,x:0,y:0};W&&W(I({},r,{a:M}),z)}},[r,d,W]),k=v.useCallback(V=>{V.target.focus()},[]),B=C&&typeof C=="function"?C(I({prefixCls:n},s,y)):A.jsx(cK,I({},s,{prefixCls:n},y));return A.jsxs("div",I({},E,{className:[n,n+"-"+d,a||""].filter(Boolean).join(" "),style:x,ref:t,children:[A.jsx("div",I({},i,{style:I({inset:0,position:"absolute",background:l||m,borderRadius:p},i.style)})),A.jsx(nh,I({},o,{style:I({},o.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:h,onDown:h,onClick:k,onKeyDown:S,children:B}))]}))});Hc.displayName="Alpha";var fK=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],WK=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),gK=e=>Number(String(e).replace(/%/g,"")),Ni=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:a="bottom",label:r,value:l,className:i,style:o,labelStyle:s,inputStyle:p,onChange:u,onBlur:c,renderInput:d}=e,f=Ca(e,fK),[W,C]=v.useState(l),E=v.useRef(!1),h=v.useRef(f.id||n+"-"+Math.random().toString(36).slice(2,11)),g=f.id||h.current;v.useEffect(()=>{e.value!==W&&(E.current||C(e.value))},[e.value]);function m(V,b){var w=(b||V.target.value).trim().replace(/^#/,"");WK(w)&&u&&u(V,w);var M=gK(w);isNaN(M)||u&&u(V,M),C(w)}function y(V){E.current=!1,C(e.value),c&&c(V)}var x={};a==="bottom"&&(x.flexDirection="column"),a==="top"&&(x.flexDirection="column-reverse"),a==="left"&&(x.flexDirection="row-reverse");var S=I({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},x,o),k=I({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},p),B=I({value:W,onChange:m,onBlur:y,autoComplete:"off",onFocus:()=>E.current=!0},f,{id:g,style:k,onFocusCapture:V=>{var b=V.target;b.setSelectionRange(b.value.length,b.value.length)}});return A.jsxs("div",{className:[n,i||""].filter(Boolean).join(" "),style:S,children:[d?d(B,t):A.jsx("input",I({ref:t},B)),r&&A.jsx("label",{htmlFor:g,style:I({color:"var(--editable-input-label-color)",textTransform:"capitalize"},s),children:r})]})});Ni.displayName="EditableInput";var hK=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],zE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:a,color:r,colors:l=[],style:i,rectProps:o={},onChange:s,addonAfter:p,addonBefore:u,rectRender:c}=e,d=Ca(e,hK),f=I({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},o.style),W=(C,E)=>{s&&s(Fl(C),La(Fl(C)),E)};return A.jsxs("div",I({ref:t},d,{className:[n,a||""].filter(Boolean).join(" "),style:I({display:"flex",flexWrap:"wrap",position:"relative"},i),children:[u&&gt.isValidElement(u)&&u,l&&Array.isArray(l)&&l.map((C,E)=>{var h="",g="";typeof C=="string"&&(h=C,g=C),typeof C=="object"&&C.color&&(h=C.title||C.color,g=C.color);var m=r&&r.toLocaleLowerCase()===g.toLocaleLowerCase(),y=c&&c({title:h,color:g,checked:!!m,style:I({},f,{background:g}),onClick:S=>W(g,S)});if(y)return A.jsx(v.Fragment,{children:y},E);var x=o.children&&gt.isValidElement(o.children)?gt.cloneElement(o.children,{color:g,checked:m}):null;return A.jsx("div",I({tabIndex:0,title:h,onClick:S=>W(g,S)},o,{children:x,style:I({},f,{background:g})}),E)}),p&&gt.isValidElement(p)&&p]}))});zE.displayName="Swatch";function mK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var CK={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function vK(e){var{style:t,title:n,checked:a,color:r,onClick:l,rectProps:i}=e,o=v.useRef(null),s=v.useCallback(()=>{o.current.style.zIndex="2",o.current.style.outline="#fff solid 2px",o.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),p=v.useCallback(()=>{a||(o.current.style.zIndex="0",o.current.style.outline="initial",o.current.style.boxShadow="initial")},[a]),u=a?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return A.jsx("div",I({ref:o,title:n},i,{onClick:l,onMouseEnter:s,onMouseLeave:p,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},CK,u,i==null?void 0:i.style)}))}var yK=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],IK=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],Tt=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),qE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:a=Tt.TopRight,className:r,style:l,color:i,colors:o=IK,showTriangle:s=!0,rectProps:p={},onChange:u,rectRender:c}=e,d=Ca(e,yK),f=typeof i=="string"&&th(i)?Fl(i):i,W=i?eh(f):"",C=x=>u&&u(La(x)),E=I({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},l),h={borderStyle:"solid",position:"absolute"},g=I({},h),m=I({},h);/^T/.test(a)&&(g.borderWidth="0 8px 8px",g.borderColor="transparent transparent var(--github-arrow-border-color)",m.borderWidth="0 7px 7px",m.borderColor="transparent transparent var(--github-background-color)"),a===Tt.TopRight&&(g.top=-8,m.top=-7),a===Tt.Top&&(g.top=-8,m.top=-7),a===Tt.TopLeft&&(g.top=-8,m.top=-7),/^B/.test(a)&&(g.borderWidth="8px 8px 0",g.borderColor="var(--github-arrow-border-color) transparent transparent",m.borderWidth="7px 7px 0",m.borderColor="var(--github-background-color) transparent transparent",a===Tt.BottomRight&&(g.top="100%",m.top="100%"),a===Tt.Bottom&&(g.top="100%",m.top="100%"),a===Tt.BottomLeft&&(g.top="100%",m.top="100%")),/^(B|T)/.test(a)&&((a===Tt.Top||a===Tt.Bottom)&&(g.left="50%",g.marginLeft=-8,m.left="50%",m.marginLeft=-7),(a===Tt.TopRight||a===Tt.BottomRight)&&(g.right=10,m.right=11),(a===Tt.TopLeft||a===Tt.BottomLeft)&&(g.left=7,m.left=8)),/^L/.test(a)&&(g.borderWidth="8px 8px 8px 0",g.borderColor="transparent var(--github-arrow-border-color) transparent transparent",m.borderWidth="7px 7px 7px 0",m.borderColor="transparent var(--github-background-color) transparent transparent",g.left=-8,m.left=-7),/^R/.test(a)&&(g.borderWidth="8px 0 8px 8px",g.borderColor="transparent transparent transparent var(--github-arrow-border-color)",m.borderWidth="7px 0 7px 7px",m.borderColor="transparent transparent transparent var(--github-background-color)",g.right=-8,m.right=-7),/^(L|R)/.test(a)&&((a===Tt.RightTop||a===Tt.LeftTop)&&(g.top=5,m.top=6),(a===Tt.Left||a===Tt.Right)&&(g.top="50%",m.top="50%",g.marginTop=-8,m.marginTop=-7),(a===Tt.LeftBottom||a===Tt.RightBottom)&&(g.top="100%",m.top="100%",g.marginTop=-21,m.marginTop=-20));var y=x=>{var S=I({},(mK(x),x)),k=c&&c(I({},S));return k||A.jsx(vK,I({},S,{rectProps:p}))};return A.jsx(zE,I({ref:t,className:[n,r].filter(Boolean).join(" "),colors:o,color:W,rectRender:y},d,{onChange:C,style:E,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:A.jsx(v.Fragment,{children:s&&A.jsxs(v.Fragment,{children:[A.jsx("div",{style:g}),A.jsx("div",{style:m})]})})}))});qE.displayName="Github";var SK=e=>{var{className:t,color:n,left:a,top:r,prefixCls:l}=e,i={position:"absolute",top:r,left:a},o={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return v.useMemo(()=>A.jsx("div",{className:l+"-pointer "+(t||""),style:i,children:A.jsx("div",{className:l+"-fill",style:o})}),[r,a,n,t,l])},EK=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],jE=gt.forwardRef((e,t)=>{var n,{prefixCls:a="w-color-saturation",radius:r=0,pointer:l,className:i,hue:o=0,style:s,hsva:p,onChange:u}=e,c=Ca(e,EK),d=I({width:200,height:200,borderRadius:r},s,{position:"relative"}),f=v.useRef(null),W=v.useCallback(m=>{f.current=m,typeof t=="function"?t(m):t&&"current"in t&&(t.current=m)},[t]),C=v.useCallback((m,y)=>{u&&p&&u({h:p.h,s:m.left*100,v:(1-m.top)*100,a:p.a});var x=f.current;x&&x.focus()},[p,u]),E=v.useCallback(m=>{if(!(!p||!u)){var y=1,x=p.s,S=p.v,k=!1;switch(m.key){case"ArrowLeft":x=Math.max(0,p.s-y),k=!0,m.preventDefault();break;case"ArrowRight":x=Math.min(100,p.s+y),k=!0,m.preventDefault();break;case"ArrowUp":S=Math.min(100,p.v+y),k=!0,m.preventDefault();break;case"ArrowDown":S=Math.max(0,p.v-y),k=!0,m.preventDefault();break;default:return}k&&u({h:p.h,s:x,v:S,a:p.a})}},[p,u]),h=v.useMemo(()=>{if(!p)return null;var m={top:100-p.v+"%",left:p.s+"%",color:BE(p)};return l&&typeof l=="function"?l(I({prefixCls:a},m)):A.jsx(SK,I({prefixCls:a},m))},[p,l,a]),g=v.useCallback(m=>{m.target.focus()},[]);return A.jsx(nh,I({className:[a,i||""].filter(Boolean).join(" ")},c,{style:I({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=p==null?void 0:p.h)!=null?n:o)+", 100%, 50%))"},d,{outline:"none"}),ref:W,onMove:C,onDown:C,onKeyDown:E,onClick:g,children:h}))});jE.displayName="Saturation";var xK=["prefixCls","className","hue","onChange","direction"],TE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:a,hue:r=0,onChange:l,direction:i="horizontal"}=e,o=Ca(e,xK);return A.jsx(Hc,I({ref:t,className:n+" "+(a||"")},o,{direction:i,background:"linear-gradient(to "+(i==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:r,s:100,v:100,a:r/360},onChange:(s,p)=>{l&&l({h:i==="horizontal"?360*p.left:360*p.top})}}))});TE.displayName="Hue";var bK=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],ah=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:a,placement:r="bottom",rProps:l={},gProps:i={},bProps:o={},aProps:s={},className:p,style:u,onChange:c}=e,d=Ca(e,bK),f=a?Qs(a):{};function W(g){var m=Number(g.target.value);m&&m>255&&(g.target.value="255"),m&&m<0&&(g.target.value="0")}var C=g=>{var m=Number(g.target.value);m&&m>100&&(g.target.value="100"),m&&m<0&&(g.target.value="0")},E=(g,m,y)=>{typeof g=="number"&&(m==="a"&&(g<0&&(g=0),g>100&&(g=100),c&&c(La(Ls(I({},f,{a:g/100}))))),g>255&&(g=255,y.target.value="255"),g<0&&(g=0,y.target.value="0"),m==="r"&&c&&c(La(Ls(I({},f,{r:g})))),m==="g"&&c&&c(La(Ls(I({},f,{g})))),m==="b"&&c&&c(La(Ls(I({},f,{b:g})))))},h=f.a?Math.round(f.a*100)/100:0;return A.jsxs("div",I({ref:t,className:[n,p||""].filter(Boolean).join(" ")},d,{style:I({fontSize:11,display:"flex"},u),children:[A.jsx(Ni,I({label:"R",value:f.r||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"r",g)},l,{style:I({},l.style)})),A.jsx(Ni,I({label:"G",value:f.g||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"g",g)},i,{style:I({marginLeft:5},i.style)})),A.jsx(Ni,I({label:"B",value:f.b||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"b",g)},o,{style:I({marginLeft:5},o.style)})),s&&A.jsx(Ni,I({label:"A",value:parseInt(String(h*100),10),onBlur:C,placement:r,onChange:(g,m)=>E(m,"a",g)},s,{style:I({marginLeft:5},s.style)}))]}))});ah.displayName="EditableInputRGBA";var kK=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],KE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:a,hProps:r={},sProps:l={},lProps:i={},aProps:o={},className:s,onChange:p}=e,u=Ca(e,kK),c=a?$g(a):{h:0,s:0,l:0,a:0},d=(W,C,E)=>{typeof W=="number"&&(C==="h"&&(W<0&&(W=0),W>360&&(W=360),p&&p(La(Xc(I({},c,{h:W}))))),C==="s"&&(W<0&&(W=0),W>100&&(W=100),p&&p(La(Xc(I({},c,{s:W}))))),C==="l"&&(W<0&&(W=0),W>100&&(W=100),p&&p(La(Xc(I({},c,{l:W}))))),C==="a"&&(W<0&&(W=0),W>1&&(W=1),p&&p(La(Xc(I({},c,{a:W}))))))},f=o==!1?!1:I({label:"A",value:Math.round(c.a*100)/100},o,{onChange:(W,C)=>d(C,"a")});return A.jsx(ah,I({ref:t,hsva:a,rProps:I({label:"H",value:Math.round(c.h)},r,{onChange:(W,C)=>d(C,"h")}),gProps:I({label:"S",value:Math.round(c.s)+"%"},l,{onChange:(W,C)=>d(C,"s")}),bProps:I({label:"L",value:Math.round(c.l)+"%"},i,{onChange:(W,C)=>d(C,"l")}),aProps:f,className:[n,s||""].filter(Boolean).join(" ")},u))});KE.displayName="EditableInputHSLA";var RK=["style"];function wK(e){var{style:t}=e,n=Ca(e,RK),a=v.useRef(null),r=v.useCallback(()=>{a.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),l=v.useCallback(()=>{a.current.style.backgroundColor="transparent"},[]);return A.jsx("div",I({ref:a,style:I({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:r,onMouseLeave:l,children:A.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:A.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function BK(){return"EyeDropper"in window}function MK(e){var t=()=>{if("EyeDropper"in window){var n=new window.EyeDropper;n.open().then(a=>{e.onPickColor==null||e.onPickColor(a.sRGBHex)}).catch(a=>{a.name})}};return A.jsx("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:t,children:A.jsx("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var LK=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],Qa=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),OE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:a,style:r,color:l,showEditableInput:i=!0,showEyeDropper:o=!0,showColorPreview:s=!0,showHue:p=!0,showAlpha:u=!0,inputType:c=Qa.RGBA,rectProps:d={},onChange:f}=e,W=Ca(e,LK),C=typeof l=="string"&&th(l)?Fl(l):l||{h:0,s:0,l:0,a:0},E=w=>f&&f(La(w)),[h,g]=v.useState(c),m=()=>{h===Qa.RGBA&&g(Qa.HSLA),h===Qa.HSLA&&g(Qa.HEXA),h===Qa.HEXA&&g(Qa.RGBA)},y={paddingTop:6},x={textAlign:"center",paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},r),k={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:nK(C),boxShadow:"var(--chrome-alpha-box-shadow)"},B=w=>{var M=Fl(w);E(I({},M))},V={height:14,width:14},b={style:I({},V),fillProps:{style:V}};return A.jsx(qE,I({ref:t,color:C,style:S,colors:void 0,className:[n,a].filter(Boolean).join(" "),placement:Tt.TopLeft},W,{addonAfter:A.jsxs(v.Fragment,{children:[A.jsx(jE,{hsva:C,style:{width:"100%",height:130},onChange:w=>{E(I({},C,w,{a:C.a}))}}),A.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[BK()&&o&&A.jsx(MK,{onPickColor:B}),s&&A.jsx(Hc,{width:28,height:28,hsva:C,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>A.jsx(v.Fragment,{})}),A.jsxs("div",{style:{flex:1},children:[p==!0&&A.jsx(TE,{hue:C.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:w=>{E(I({},C,w))}}),u==!0&&A.jsx(Hc,{hsva:C,style:{marginTop:6,height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:w=>{E(I({},C,w))}})]})]}),i&&A.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[A.jsxs("div",{style:{flex:1},children:[h==Qa.RGBA&&A.jsx(ah,{hsva:C,rProps:{labelStyle:y,inputStyle:x},gProps:{labelStyle:y,inputStyle:x},bProps:{labelStyle:y,inputStyle:x},aProps:u==!1?!1:{labelStyle:y,inputStyle:x},onChange:w=>E(w.hsva)}),h===Qa.HEXA&&A.jsx(Ni,{label:"HEX",labelStyle:y,inputStyle:x,value:C.a>0&&C.a<1?lK(C).toLocaleUpperCase():eh(C).toLocaleUpperCase(),onChange:(w,M)=>{typeof M=="string"&&E(Fl(/^#/.test(M)?M:"#"+M))}}),h===Qa.HSLA&&A.jsx(KE,{hsva:C,hProps:{labelStyle:y,inputStyle:x},sProps:{labelStyle:y,inputStyle:x},lProps:{labelStyle:y,inputStyle:x},aProps:u==!1?!1:{labelStyle:y,inputStyle:x},onChange:w=>E(w.hsva)})]}),A.jsx(wK,{onClick:m})]})]}),rectRender:()=>A.jsx(v.Fragment,{})}))});OE.displayName="Chrome";const rh="#6366f1";function Us(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-fA-F]{6}$/.test(t)?`#${t.toLowerCase()}`:/^[0-9a-fA-F]{3}$/.test(t)?`#${t.split("").map(a=>a+a).join("").toLowerCase()}`:""}function QK({colors:e,primary:t,secondary:n,onPrimaryChange:a,onSecondaryChange:r,onColorsChange:l}){const{shadowRoot:i}=nl(),o=v.useMemo(()=>i??void 0,[i]),[s,p]=v.useState(null),u=!!s,[c,d]=v.useState(rh),[f,W]=v.useState(""),[C,E]=v.useState(null),h=v.useCallback(B=>{p(B),d(e.length>0?e[e.length-1]:rh)},[e]),g=v.useCallback(()=>{p(null)},[]),m=v.useCallback(()=>{const B=Us(c);if(!B)return;if(e.some(b=>b.toLowerCase()===B.toLowerCase())){g();return}l([...e,B]),g()},[e,c,l,g]),y=v.useCallback(B=>{const V=e[B],b=e.filter((w,M)=>M!==B);V&&t.toLowerCase()===V.toLowerCase()&&a(""),V&&n.toLowerCase()===V.toLowerCase()&&r(""),l(b)},[e,t,n,a,r,l]),x=v.useCallback((B,V)=>{W(V),B.dataTransfer.effectAllowed="copy",B.dataTransfer.setData("text/plain",V)},[]),S=v.useCallback(()=>{E(null),W("")},[]),k=v.useCallback((B,V)=>{V.preventDefault();const b=V.dataTransfer.getData("text/plain"),w=Us(b||f);if(!w){E(null);return}B==="primary"?a(w):r(w),E(null),W("")},[f,a,r]);return A.jsxs(D,{children:[A.jsx(We,{variant:"subtitle2",sx:{mb:2,fontWeight:600},children:"בחירת צבעי עיצוב"}),A.jsx(We,{variant:"body2",sx:{mb:2,color:"text.secondary"},children:"הוסיפו צבעים משלכם או בחרו מהמאגר. לחצו על גוון או גררו אותו לאזור צבע ראשי/משני כדי להגדיר."}),A.jsx(Ge,{variant:"contained",color:"primary",size:"medium",startIcon:A.jsx(Ul,{}),onClick:B=>u?g():h(B.currentTarget),"aria-expanded":u,"aria-controls":"business-ai-color-picker-panel",id:"business-ai-color-picker-trigger",sx:{mb:3,px:2.5,py:1,borderRadius:3,textTransform:"none",fontWeight:600,boxShadow:"0 8px 24px rgba(99, 40, 167, 0.35)","&:hover":{boxShadow:"0 10px 28px rgba(99, 40, 167, 0.42)"}},children:u?"סגירת לוח בחירת הצבע":"הוספת צבע משלך"}),A.jsxs(fS,{open:u,anchorEl:s,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0,container:o,disablePortal:!o,slotProps:{root:{sx:{zIndex:2e3},disableEnforceFocus:!0,disableAutoFocus:!0},paper:{id:"business-ai-color-picker-panel",elevation:8,role:"region","aria-labelledby":"business-ai-color-picker-trigger",sx:{mt:1,p:2.5,borderRadius:3,maxWidth:340,background:"linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%)",border:"1px solid",borderColor:"divider",overflow:"visible"}}},children:[A.jsx(We,{variant:"subtitle2",sx:{mb:1.5,fontWeight:700},children:"בחירת צבע וגוון"}),A.jsx(We,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:1.5},children:"התאמת גוון, רוויה ובהירות, ועריכת HEX / RGB / HSL. אפשר לעבור בין מצבי הקלט בלחיצה על תווית השדות. דיגום צבע מהמסך זמין בדפדפנים שתומכים בכך."}),A.jsx(D,{sx:{display:"flex",justifyContent:"center",mb:2,"& .w-color-chrome":{boxShadow:"none !important",borderRadius:2,border:"1px solid",borderColor:"divider",overflow:"hidden",bgcolor:"background.paper"}},children:A.jsx(OE,{color:Us(c)||rh,onChange:B=>d(B.hex),showAlpha:!1,showHue:!0,showColorPreview:!0,showEditableInput:!0,showEyeDropper:!0,inputType:Qa.RGBA,style:{width:"100%",maxWidth:280}})}),A.jsxs(D,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[A.jsx(Ge,{variant:"text",onClick:g,sx:{textTransform:"none"},children:"ביטול"}),A.jsx(Ge,{variant:"contained",color:"primary",onClick:m,disabled:!Us(c),sx:{textTransform:"none",borderRadius:2,px:2},children:"הוסף ללוח"})]})]}),A.jsxs(D,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[A.jsxs(Dt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:t?"primary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"צבע ראשי"}),A.jsxs(D,{sx:{width:"100%",height:60,backgroundColor:t||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:C==="primary"?"primary.main":t?"divider":"rgba(99, 40, 167, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:C==="primary"?"0 0 0 3px rgba(99, 40, 167, 0.16)":"none"},onDragOver:B=>{B.preventDefault(),B.dataTransfer.dropEffect="copy",E("primary")},onDragLeave:()=>{C==="primary"&&E(null)},onDrop:B=>k("primary",B),children:[t&&A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{color:Fs(t)==="white"?"white":"black",fontWeight:"bold"},children:t.toUpperCase()}),A.jsx(_g,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:Fs(t)}})]}),!t&&A.jsx(We,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע ראשי"})]})]}),A.jsxs(Dt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:n?"secondary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"צבע משני"}),A.jsxs(D,{sx:{width:"100%",height:60,backgroundColor:n||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:C==="secondary"?"secondary.main":n?"divider":"rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:C==="secondary"?"0 0 0 3px rgba(0, 0, 0, 0.14)":"none"},onDragOver:B=>{B.preventDefault(),B.dataTransfer.dropEffect="copy",E("secondary")},onDragLeave:()=>{C==="secondary"&&E(null)},onDrop:B=>k("secondary",B),children:[n&&A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{color:Fs(n)==="white"?"white":"black",fontWeight:"bold"},children:n.toUpperCase()}),A.jsx(_g,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:Fs(n)}})]}),!n&&A.jsx(We,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע משני"})]})]})]}),A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"לוח צבעים"}),e.length===0?A.jsxs(Dt,{variant:"outlined",sx:{py:4,px:2,textAlign:"center",borderRadius:2,borderStyle:"dashed",bgcolor:"action.hover"},children:[A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:"עדיין אין צבעים בלוח"}),A.jsx(We,{variant:"caption",color:"text.secondary",children:'לחצו על "הוספת צבע משלך" כדי להתחיל'})]}):A.jsx(D,{sx:{display:"flex",flexWrap:"wrap",gap:2},children:e.map((B,V)=>{const b=t.toLowerCase()===B.toLowerCase(),w=n.toLowerCase()===B.toLowerCase(),M=b||w;return A.jsx(Dt,{elevation:M?4:1,sx:{position:"relative",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:3}},children:A.jsxs(D,{sx:{width:100,height:130,position:"relative",p:1},children:[A.jsx(Wg,{title:"הסר מהלוח",children:A.jsx(da,{size:"small",onClick:()=>y(V),sx:{position:"absolute",top:4,left:4,zIndex:2,bgcolor:"rgba(255,255,255,0.92)",width:26,height:26,"&:hover":{bgcolor:"rgba(255,255,255,1)"}},"aria-label":"הסר צבע",children:A.jsx(Yc,{sx:{fontSize:16}})})}),A.jsxs(D,{draggable:!0,onDragStart:z=>x(z,B),onDragEnd:S,sx:{width:"100%",height:80,backgroundColor:B,borderRadius:1,border:"2px solid",borderColor:M?b?"primary.main":"secondary.main":"divider",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",cursor:"grab","&:active":{cursor:"grabbing"}},children:[b&&A.jsx(D,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"ראשי"}),w&&!b&&A.jsx(D,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"משני"}),A.jsx(We,{variant:"caption",sx:{color:Fs(B),fontWeight:"bold",fontSize:10,textAlign:"center",px:.5},children:B.toUpperCase()})]}),A.jsxs(D,{sx:{display:"flex",gap:.5,mt:1,justifyContent:"center"},children:[A.jsx(Wg,{title:b?"הסר מצבע ראשי":"הגדר כצבע ראשי",children:A.jsx(Ge,{size:"small",variant:b?"contained":"outlined",color:"primary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{a(b?"":B)},children:"ראשי"})}),A.jsx(Wg,{title:w?"הסר מצבע משני":"הגדר כצבע משני",children:A.jsx(Ge,{size:"small",variant:w?"contained":"outlined",color:"secondary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{r(w?"":B)},children:"משני"})})]})]})},`${B}-${V}`)})})]})}function Fs(e){const t=Us(e);if(!t)return"black";const n=t.replace("#",""),a=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return(.299*a+.587*r+.114*l)/255>.5?"black":"white"}const lh="_analyzingContainer_aogto_1",ih="_scanningLine_aogto_10",PE="_scan_aogto_10",oh="_dataBars_aogto_19",sh="_dataBar_aogto_19",JE="_analyze_aogto_1",ph="_dots_aogto_80",uh="_fadeUp_aogto_98",ch="_fadeUpDelay1_aogto_103",Ah="_fadeUpDelay2_aogto_108",DE="_fadeUpDelay3_aogto_113",VK=Object.freeze(Object.defineProperty({__proto__:null,analyze:JE,analyzingContainer:lh,dataBar:sh,dataBars:oh,default:{analyzingContainer:lh,scanningLine:ih,scan:PE,dataBars:oh,dataBar:sh,analyze:JE,dots:ph,fadeUp:uh,fadeUpDelay1:ch,fadeUpDelay2:Ah,fadeUpDelay3:DE},dots:ph,fadeUp:uh,fadeUpDelay1:ch,fadeUpDelay2:Ah,fadeUpDelay3:DE,scan:PE,scanningLine:ih},Symbol.toStringTag,{value:"Module"})),UK=`.analyzingContainer {
392
+ `,ws=v.createContext({shadowRoot:null,activeStep:0,setActiveStep:()=>{},stepBeforeStep3:2,stepBeforeStep1:0,stepBeforeDomainFinder:-1,step2Data:null,setStep2Data:()=>{},step3Draft:null,setStep3Draft:()=>{},openDomainFinder:!1,setOpenDomainFinder:()=>{},openSmsChat:!1,setOpenSmsChat:()=>{},openAnalyzeChat:!1,setOpenAnalyzeChat:()=>{}}),nl=()=>v.useContext(ws),Bs=()=>{const{element:e}=v.useContext(ws);return e},Sg=()=>{const{step2Data:e,setStep2Data:t}=v.useContext(ws);return{step2Data:e,setStep2Data:t}},XS=()=>{const{step3Draft:e,setStep3Draft:t}=v.useContext(ws);return{step3Draft:e,setStep3Draft:t}},Zc=(e,t)=>{const{shadowRoot:n}=nl();v.useEffect(()=>{if(!n||!e)return;const a=n.querySelector(`style[data-style-id="${t}"]`);if(a){a.textContent!==e&&(a.textContent=e);return}const r=document.createElement("style");r.textContent=e,r.setAttribute("data-style-id",t),n.insertBefore(r,n.firstChild)},[n,e,t])},xj=({shadowRoot:e,element:t,children:n})=>{const[a,r]=v.useState(0),[l,i]=v.useState(2),o=k=>{k===3&&i(a),k===1&&C(a),r(k)},[s,p]=v.useState(null),[u,c]=v.useState(null),[d,f]=v.useState(!1),[W,C]=v.useState(0),[E,h]=v.useState(-1),g=k=>{k?h(a):(r(E),h(-1)),f(k)},[m,y]=v.useState(!1),[x,S]=v.useState(!1);return A.jsx(ws.Provider,{value:{shadowRoot:e,element:t,activeStep:a,setActiveStep:o,stepBeforeStep3:l,stepBeforeStep1:W,stepBeforeDomainFinder:E,step2Data:s,setStep2Data:p,step3Draft:u,setStep3Draft:c,openDomainFinder:d,setOpenDomainFinder:g,openSmsChat:m,setOpenSmsChat:y,openAnalyzeChat:x,setOpenAnalyzeChat:S},children:n})};function Nc(e,t){let n=e;return Object.entries(t).forEach(([a,r])=>{const l=new RegExp(`\\.${a}(?![\\w-])`,"g");n=n.replace(l,`.${r}`)}),n}var Eg={},bj=qe;Object.defineProperty(Eg,"__esModule",{value:!0});var xg=Eg.default=void 0,kj=bj(Ke()),Rj=A;xg=Eg.default=(0,kj.default)((0,Rj.jsx)("path",{d:"M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.79 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchRounded");function Gc(e){const t=v.useId().replace(/:/g,""),n=`cdtr-bai-${t}-c0`,a=`cdtr-bai-${t}-c1`;return A.jsxs("svg",{width:"20",height:"23",viewBox:"0 0 24 27",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:"false",...e,children:[A.jsx("path",{d:"M21 22H23V24H1V22H3V7C3 6.44772 3.44772 6 4 6H14C14.5523 6 15 6.44772 15 7V22H19V14H17V12H20C20.5523 12 21 12.4477 21 13V22ZM5 8V22H13V8H5ZM7 14H11V16H7V14ZM7 10H11V12H7V10Z",fill:"url(#cdtr-brand-gradient)"}),A.jsx("g",{clipPath:`url(#${n})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"black"})}),A.jsx("g",{clipPath:`url(#${a})`,children:A.jsx("path",{d:"M19.7134 7.12811L19.4668 7.69379C19.2864 8.10792 18.7136 8.10792 18.5331 7.69379L18.2866 7.12811C17.8471 6.11947 17.0554 5.31641 16.0677 4.87708L15.308 4.53922C14.8973 4.35653 14.8973 3.75881 15.308 3.57612L16.0252 3.25714C17.0384 2.80651 17.8442 1.97373 18.2761 0.930828L18.5293 0.319534C18.7058 -0.106511 19.2942 -0.106511 19.4706 0.319534L19.7238 0.930828C20.1558 1.97373 20.9616 2.80651 21.9748 3.25714L22.6919 3.57612C23.1027 3.75881 23.1027 4.35653 22.6919 4.53922L21.9323 4.87708C20.9445 5.31641 20.1529 6.11947 19.7134 7.12811Z",fill:"url(#cdtr-brand-gradient)"})}),A.jsxs("defs",{children:[A.jsx("clipPath",{id:n,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})}),A.jsx("clipPath",{id:a,children:A.jsx("rect",{width:"9",height:"8",fill:"white",transform:"translate(15)"})})]})]})}const Ha="https://agent.creaditor.ai",wj="https://img.creaditor.ai",vr={BUSINESS_ANALYSIS:`${Ha}/api/v1/business-analysis/analyze`,BUSINESS_ANALYSIS_GET:e=>`${Ha}/api/v1/business-analysis/get?website=${encodeURIComponent(e)}`,BUSINESS_ANALYSIS_PATCH:`${Ha}/api/v1/business-analysis/patch`,DOMAIN_FINDER:`${Ha}/api/v1/domain-finder/find`,GENERATE_NEWSLETTER:`${Ha}/api/v1/generate/generate-newsletter`,GENERATE_NEWSLETTER3:`${Ha}/api/v1/generate/generate-newsletter3`,ALMOG_CHAT:`${Ha}/api/v1/almog/chat`,ALMOG_HISTORY:e=>`${Ha}/api/v1/almog/history/${e}`,CHAT_SESSION:`${Ha}/api/v1/chat/session`,CHAT_MESSAGE:`${Ha}/api/v1/chat/message`,LOGOS_ANALYZE:e=>`${wj}/logos/analyze?url=${encodeURIComponent(e)}`};function ma({title:e,description:t,children:n}){return A.jsxs(D,{component:"section",sx:{mb:{xs:2.5,sm:3.5}},children:[A.jsx(We,{component:"h2",sx:{fontSize:"0.8125rem",fontWeight:700,color:"text.secondary",letterSpacing:"0.02em",mb:t?.5:1.25,lineHeight:1.3},children:e}),t?A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mb:2,maxWidth:"min(52ch, 100%)",lineHeight:1.55,fontSize:"0.8125rem"},children:t}):null,n]})}const bg=["נשמע עסק מעניין מאוד!","בואו נמצא את הדומיין המושלם עבורך!","אני מחפש את האפשרויות הטובות ביותר...","מצאתי כמה אפשרויות מעולות!"],_a=Vl;function Bj({activeStep:e,steps:t,userName:n,websiteUrl:a,hasContext:r,urls:l,setWebsiteUrl:i,setActiveStep:o,freeSolo:s,businessNameOrDescription:p="",setBusinessNameOrDescription:u,language:c}){const[d,f]=v.useState(!!r),[W,C]=v.useState(!1),[E,h]=v.useState(!1),[g,m]=v.useState(p),[y,x]=v.useState([]),[S,k]=v.useState(!1),[B,V]=v.useState(null),[b,w]=v.useState(null),[M,z]=v.useState(""),F=v.useRef(a),T=v.useRef(!1),{openDomainFinder:U,setOpenDomainFinder:q,stepBeforeDomainFinder:Q,step2Data:K}=nl(),R=v.useRef(U),X=v.useRef(p);X.current=p;const G=v.useRef(K);G.current=K,v.useEffect(()=>{var _,ee,ge,Ce;if(U&&e===0&&(T.current=Q===2,h(!0),i(""),x([]),V(null),w(null)),U){const se=((_=X.current)==null?void 0:_.trim())||((Ce=(ge=(ee=G.current)==null?void 0:ee.businessData)==null?void 0:ge.business_name)==null?void 0:Ce.trim())||"";m(se),se&&oe(se)}},[U,e,Q]),v.useEffect(()=>{R.current&&!U&&E&&!T.current&&(h(!1),x([]),V(null)),R.current=U},[U,E]);const L=()=>{q(!1),T.current||(h(!1),x([]),V(null))},te=_=>{const ee=new CustomEvent("business-ai-buy-domain",{detail:{domain:_},bubbles:!0,composed:!0});window.dispatchEvent(ee)},re=()=>{T.current=!1,h(!0),i(""),u==null||u(""),m(""),x([]),V(null),w(null)},oe=_=>{const ee=(_??g.trim())||"business";u==null||u(ee!=="business"?ee:g.trim()),k(!0),V(null),w(null),x([]);const ge={prompt:`find domain for ${ee}`};c&&(ge.language=c),fetch(vr.DOMAIN_FINDER,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ge)}).then(async Ce=>{var Me,ye;if(!Ce.ok)throw new Error("Failed to fetch domain suggestions");const se=(Me=Ce.body)==null?void 0:Me.getReader(),ue=new TextDecoder;let Te="",ne=null;if(!se)throw new Error("Response body is not readable");let Le=!1;for(;!Le;){const Ze=await se.read();if(Le=Ze.done,Le)break;const{value:Qe}=Ze;Te+=ue.decode(Qe,{stream:!0});const Fe=Te.split(`
393
+ `);Te=Fe.pop()||"";for(const P of Fe)if(P.startsWith("data: ")){const j=P.slice(6);try{const O=JSON.parse(j);O.message&&!((ye=O.metadata)!=null&&ye.token)&&w(O.message),(O.suggestions&&Array.isArray(O.suggestions)||O.status==="complete"&&O.suggestions)&&(ne=O,w(null))}catch{continue}}}if(Te.startsWith("data: ")){const Ze=Te.slice(6);try{const Qe=JSON.parse(Ze);(Qe.suggestions&&Array.isArray(Qe.suggestions)||Qe.status==="complete"&&Qe.suggestions)&&(ne=Qe)}catch{}}return ne}).then(Ce=>{if(Ce!=null&&Ce.suggestions&&Array.isArray(Ce.suggestions))x(Ce.suggestions.map(se=>({domain:se.domain,available:se.available})));else if(Ce!=null&&Ce.data){const se=Ce.data;Array.isArray(se)?x(se.map(ue=>({domain:ue}))):se!=null&&se.domains&&Array.isArray(se.domains)?x(se.domains.map(ue=>({domain:ue}))):se!=null&&se.domain?x([{domain:se.domain}]):x([])}else x([]);k(!1)}).catch(Ce=>{console.error("Error fetching domains:",Ce),V("לא הצלחנו לטעון הצעות דומיין"),k(!1)})};v.useEffect(()=>{if(!S){z("");return}let _=0;z(bg[_]);const ee=setInterval(()=>{_=(_+1)%bg.length,z(bg[_])},2500);return()=>clearInterval(ee)},[S]),v.useEffect(()=>{C(!0)},[]),v.useEffect(()=>{F.current=a},[a]),v.useEffect(()=>{m(p)},[p]);const ve=_=>{f(_)},fe=_=>{const ee=_.trim();return!ee||ee.startsWith("http://")||ee.startsWith("https://")?ee:"https://"+ee},he=_=>{const ee=_.target.value,ge=F.current;if(!ee){F.current=ee,i(ee);return}if(ee.includes("://")){F.current=ee,i(ee);return}if(ee.startsWith("http://")||ee.startsWith("https://")){F.current=ee,i(ee);return}const Ce=ge.includes("://"),se=ee.length<ge.length;if(Ce&&!ee.includes("://")&&(ge.replace(/^https?:\/\//,"").startsWith(ee)||se)){F.current=ee,i(ee);return}if(ee.toLowerCase().startsWith("http")&&ee.length<7){F.current=ee,i(ee);return}if(ee.includes(".")||ee.length>3){const Te=fe(ee);F.current=Te,i(Te)}else F.current=ee,i(ee)},ze=_=>{if(!_.trim()||(_.includes("http")||(_="https://"+_),!_.includes(".")))return!1;try{const ee=new URL(_);return ee.protocol==="http:"||ee.protocol==="https:"}catch{return!1}};return A.jsxs(D,{sx:{position:"relative",padding:{xs:2,sm:3,md:5},width:{xs:"100%"},maxWidth:"100%",overflowY:"auto",boxSizing:"border-box"},children:[A.jsx(_q,{sx:{display:"none"},activeStep:e,children:t.map(_=>A.jsx(bq,{children:A.jsx(LS,{children:_})},_))}),A.jsxs(Xt,{spacing:0,sx:{width:"100%"},children:[A.jsx(ha,{label:"Business AI",className:W?_a.fadeUp:"",sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"},icon:A.jsx(Gc,{})}),A.jsxs(D,{className:W?_a.fadeUpDelay1:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",mb:{xs:1,sm:1.25}},children:"מביאים את המותג שלך למערכת"}),A.jsxs(We,{variant:"body2",color:"text.secondary",className:W?_a.fadeUpDelay2:"",sx:{fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:[n?`היי ${n} — `:"","הזינו את כתובת האתר כדי שנמשוך לוגו, צבעים ותוכן, או המשיכו בלי אתר ונחפש דומיין מתאים."]})]}),E?A.jsx(D,{className:_a.stepView,sx:{width:"100%"},children:!S&&y.length===0&&!B?A.jsxs(ma,{title:"חיפוש דומיין",description:"תארו את העסק או את שם הדומיין הרצוי — נציע אפשרויות מתאימות.",children:[A.jsx(It,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר",autoComplete:"off",value:g,onChange:_=>{m(_.target.value),u==null||u(_.target.value.trim())},onKeyDown:_=>{_.key==="Enter"&&g.trim()&&(_.preventDefault(),oe())},InputProps:{endAdornment:A.jsx(og,{position:"end",children:A.jsx(Ge,{variant:"contained",color:"primary",size:"small",disabled:!g.trim()||S,onClick:()=>oe(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(xg,{fontSize:"small"})})})},className:W?_a.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"},textTransform:"none"},children:"חזרה"})]}):S?A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",py:4,minHeight:220,borderRadius:2,border:"1px dashed",borderColor:"divider",bgcolor:_=>Rn(_.palette.common.black,.02)},children:[A.jsx($r,{sx:{mb:2,width:40,height:40}}),A.jsx(We,{variant:"body1",color:"text.secondary",sx:{fontSize:"0.9375rem",textAlign:"center",px:2},children:b||M})]}):B?A.jsxs(A.Fragment,{children:[A.jsx(jW,{severity:"error",sx:{mb:2,fontSize:"0.875rem"},children:B}),A.jsxs(ut,{container:!0,spacing:1,children:[A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>{V(null),oe()},sx:{fontSize:"0.875rem"},children:"נסה שוב"})}),A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{fontSize:"0.875rem"},children:"חזרה"})})]})]}):A.jsxs(ma,{title:"תוצאות",description:"לחצו על דומיין לפתיחת רכישה. אפשר לחפש מחדש עם ניסוח אחר.",children:[A.jsx(It,{fullWidth:!0,variant:"outlined",placeholder:"שם העסק או תיאור קצר – חיפוש מחדש לתוצאות אחרות",autoComplete:"off",value:g,onChange:_=>{m(_.target.value),u==null||u(_.target.value.trim())},onKeyDown:_=>{_.key==="Enter"&&g.trim()&&(_.preventDefault(),oe())},InputProps:{endAdornment:A.jsx(og,{position:"end",children:A.jsx(Ge,{variant:"contained",color:"primary",size:"small",disabled:!g.trim()||S,onClick:()=>oe(),sx:{minWidth:0,px:1.25},"aria-label":"חפש דומיין",children:A.jsx(xg,{fontSize:"small"})})})},sx:{mb:2,"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(D,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:1,mb:3},children:y.map((_,ee)=>A.jsxs(D,{onClick:()=>te(_.domain),sx:{border:"1px solid",borderColor:"divider",borderRadius:2,p:1.25,cursor:"pointer",transition:"border-color 0.2s ease, background-color 0.2s ease",bgcolor:ge=>Rn(ge.palette.common.black,.02),"&:hover":{borderColor:"primary.main",bgcolor:ge=>Rn(ge.palette.primary.main,.06)}},children:[A.jsx(We,{sx:{fontSize:"0.875rem",fontWeight:500},children:_.domain}),_.available!==!1&&A.jsx(We,{variant:"caption",color:"success.main",sx:{fontSize:"0.75rem"},children:"זמין"})]},ee))}),A.jsxs(ut,{container:!0,spacing:1,justifyContent:"space-between",children:[A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"text",color:"primary",onClick:L,sx:{fontSize:"0.875rem"},children:"חזרה"})}),A.jsx(ut,{item:!0,children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:()=>{u==null||u(g.trim()),o(1)},sx:{fontSize:"0.875rem"},children:"הבא"})})]})]})}):A.jsxs(A.Fragment,{children:[A.jsxs(ma,{title:"כתובת האתר",description:"כתובת מלאה כולל https. אין אתר? השתמשו בקישור מתחת לשדה.",children:[A.jsx(It,{fullWidth:!0,label:"URL",variant:"outlined",margin:"normal",placeholder:"https://www.example.com",value:a,onChange:he,className:W?_a.fadeUpDelay3:"",sx:{"& .MuiInputBase-input":{fontSize:{xs:"0.875rem",sm:"1rem"},textAlign:"right",direction:"rtl",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},"& .MuiInputLabel-root":{fontSize:{xs:"0.875rem",sm:"1rem"}}}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:re,className:W?_a.fadeUpDelay4:"",sx:{mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},textAlign:"right",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:0},textTransform:"none"},children:"אני רוצה דומיין לעסק שלי"})]}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"אישור והמשך",description:"נדרש לאימות הבעלות על האתר ולשימוש במידע ליצירת תכנים.",children:A.jsx(D,{sx:{p:{xs:1.25,sm:1.5},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:_=>Rn(_.palette.common.black,.02)},children:A.jsx(Tc,{control:A.jsx(TU,{size:"small"}),checked:d,onChange:(_,ee)=>ve(ee),className:W?_a.fadeUpDelay3:"",sx:{m:0,alignItems:"flex-start","& .MuiTypography-root":{fontSize:{xs:"0.75rem",sm:"0.8125rem"},lineHeight:1.45}},label:"אני מאשר.ת שהאתר בבעלותי, ואני מסכימה למערכת שלח מסר לשמור את המידע ולהשתמש בו ליצירת תכנים לעסק שלי"})})}),Array.isArray(l)&&l.length>0?A.jsx(Ge,{onClick:()=>{i(""),o(1)},variant:"text",disabled:!d,color:"primary",className:W?_a.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.5},mb:{xs:1,sm:1.5},fontSize:{xs:"0.75rem",sm:"0.875rem"},textAlign:"center",whiteSpace:{xs:"normal",sm:"nowrap"},px:{xs:.5,sm:1}},children:"אין לי אתר, אבל בואו ננסה לפי התכנים הקיימים במערכת"}):null,A.jsx(Ge,{disabled:!ze(a)||!d,variant:"contained",color:"primary",onClick:()=>o(1),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"הבא"}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ut,{className:W?_a.fadeUpDelay4:"",sx:{width:"100%",mt:{xs:2,sm:2.5,md:3}},justifyContent:{xs:"center",sm:"space-between"},container:!0,spacing:{xs:1,sm:0},children:s&&A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"text",color:"primary",disabled:!d,onClick:()=>{i(""),o(1)},fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:r?"צפייה במידע על העסק שלי":""})})})]})]})]})}var kg={},Mj=qe;Object.defineProperty(kg,"__esModule",{value:!0});var Ul=kg.default=void 0,Lj=Mj(Ke()),Qj=A;Ul=kg.default=(0,Lj.default)((0,Qj.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var Rg={},Vj=qe;Object.defineProperty(Rg,"__esModule",{value:!0});var Ms=Rg.default=void 0,Uj=Vj(Ke()),Fj=A;Ms=Rg.default=(0,Uj.default)((0,Fj.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");var wg={},zj=qe;Object.defineProperty(wg,"__esModule",{value:!0});var HS=wg.default=void 0,qj=zj(Ke()),jj=A;HS=wg.default=(0,qj.default)((0,jj.jsx)("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}),"Upload");var Bg={},Tj=qe;Object.defineProperty(Bg,"__esModule",{value:!0});var _S=Bg.default=void 0,Kj=Tj(Ke()),Oj=A;_S=Bg.default=(0,Kj.default)((0,Oj.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image");var Mg={},Pj=qe;Object.defineProperty(Mg,"__esModule",{value:!0});var $S=Mg.default=void 0,Jj=Pj(Ke()),Dj=A;$S=Mg.default=(0,Jj.default)((0,Dj.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock");var Lg={},Yj=qe;Object.defineProperty(Lg,"__esModule",{value:!0});var eE=Lg.default=void 0,Zj=Yj(Ke()),Nj=A;eE=Lg.default=(0,Zj.default)((0,Nj.jsx)("path",{d:"M9.5 11c1.93 0 3.5 1.57 3.5 3.5S11.43 18 9.5 18 6 16.43 6 14.5 7.57 11 9.5 11m0-2C6.46 9 4 11.46 4 14.5S6.46 20 9.5 20s5.5-2.46 5.5-5.5c0-1.16-.36-2.23-.97-3.12L18 7.42V10h2V4h-6v2h2.58l-3.97 3.97C11.73 9.36 10.66 9 9.5 9"}),"Male");var Qg={},Gj=qe;Object.defineProperty(Qg,"__esModule",{value:!0});var tE=Qg.default=void 0,Xj=Gj(Ke()),Hj=A;tE=Qg.default=(0,Xj.default)((0,Hj.jsx)("path",{d:"M17.5 9.5C17.5 6.46 15.04 4 12 4S6.5 6.46 6.5 9.5c0 2.7 1.94 4.93 4.5 5.4V17H9v2h2v2h2v-2h2v-2h-2v-2.1c2.56-.47 4.5-2.7 4.5-5.4m-9 0C8.5 7.57 10.07 6 12 6s3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5"}),"Female");var Vg={},_j=qe;Object.defineProperty(Vg,"__esModule",{value:!0});var nE=Vg.default=void 0,$j=_j(Ke()),eT=A;nE=Vg.default=(0,$j.default)((0,eT.jsx)("path",{d:"M12 8c1.93 0 3.5 1.57 3.5 3.5S13.93 15 12 15s-3.5-1.57-3.5-3.5S10.07 8 12 8m4.53.38 3.97-3.96V7h2V1h-6v2h2.58l-3.97 3.97C14.23 6.36 13.16 6 12 6s-2.23.36-3.11.97l-.65-.65 1.41-1.41-1.41-1.42L6.82 4.9 4.92 3H7.5V1h-6v6h2V4.42l1.91 1.9-1.42 1.42L5.4 9.15l1.41-1.41.65.65c-.6.88-.96 1.95-.96 3.11 0 2.7 1.94 4.94 4.5 5.41V19H9v2h2v2h2v-2h2v-2h-2v-2.09c2.56-.47 4.5-2.71 4.5-5.41 0-1.16-.36-2.23-.97-3.12"}),"Transgender");var Ug={},tT=qe;Object.defineProperty(Ug,"__esModule",{value:!0});var aE=Ug.default=void 0;rT(v);var nT=tT(Ke()),aT=A;function rE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(rE=function(a){return a?n:t})(e)}function rT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=rE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}aE=Ug.default=(0,nT.default)((0,aT.jsx)("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"}),"Facebook");var Fg={},lT=qe;Object.defineProperty(Fg,"__esModule",{value:!0});var lE=Fg.default=void 0;sT(v);var iT=lT(Ke()),oT=A;function iE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iE=function(a){return a?n:t})(e)}function sT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}lE=Fg.default=(0,iT.default)((0,oT.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");var zg={},pT=qe;Object.defineProperty(zg,"__esModule",{value:!0});var oE=zg.default=void 0;AT(v);var uT=pT(Ke()),cT=A;function sE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(sE=function(a){return a?n:t})(e)}function AT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=sE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}oE=zg.default=(0,uT.default)((0,cT.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");var qg={},dT=qe;Object.defineProperty(qg,"__esModule",{value:!0});var pE=qg.default=void 0;gT(v);var fT=dT(Ke()),WT=A;function uE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(uE=function(a){return a?n:t})(e)}function gT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=uE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}pE=qg.default=(0,fT.default)((0,WT.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");var jg={},hT=qe;Object.defineProperty(jg,"__esModule",{value:!0});var cE=jg.default=void 0;vT(v);var mT=hT(Ke()),CT=A;function AE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(AE=function(a){return a?n:t})(e)}function vT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=AE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}cE=jg.default=(0,mT.default)((0,CT.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");var Tg={},yT=qe;Object.defineProperty(Tg,"__esModule",{value:!0});var dE=Tg.default=void 0;ET(v);var IT=yT(Ke()),ST=A;function fE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fE=function(a){return a?n:t})(e)}function ET(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}dE=Tg.default=(0,IT.default)((0,ST.jsx)("path",{d:"M16.75 13.96c.25.13.41.2.46.3.06.11.04.61-.21 1.18-.2.56-1.24 1.1-1.7 1.12-.46.02-.47.36-2.96-.73-2.49-1.09-3.99-3.75-4.11-3.92-.12-.17-.96-1.38-.92-2.61.05-1.22.69-1.8.95-2.04.24-.26.51-.29.68-.26h.47c.15 0 .36-.06.55.45l.69 1.87c.06.13.1.28.01.44l-.27.41-.39.42c-.12.12-.26.25-.12.5.12.26.62 1.09 1.32 1.78.91.88 1.71 1.17 1.95 1.3.24.14.39.12.54-.04l.81-.94c.19-.25.35-.19.58-.11l1.67.88M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10c-1.97 0-3.8-.57-5.35-1.55L2 22l1.55-4.65A9.969 9.969 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.72.54 3.31 1.46 4.61L4.5 19.5l2.89-.96A7.95 7.95 0 0 0 12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8z"}),"WhatsApp");var Kg={},xT=qe;Object.defineProperty(Kg,"__esModule",{value:!0});var WE=Kg.default=void 0;RT(v);var bT=xT(Ke()),kT=A;function gE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(gE=function(a){return a?n:t})(e)}function RT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=gE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}WE=Kg.default=(0,bT.default)((0,kT.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");var Og={},wT=qe;Object.defineProperty(Og,"__esModule",{value:!0});var hE=Og.default=void 0;LT(v);var BT=wT(Ke()),MT=A;function mE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(mE=function(a){return a?n:t})(e)}function LT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=mE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}hE=Og.default=(0,BT.default)((0,MT.jsx)("path",{d:"M22 12.14a2.19 2.19 0 0 0-3.71-1.57 10.93 10.93 0 0 0-5.86-1.87l1-4.7 3.27.71a1.56 1.56 0 1 0 .16-.76l-3.64-.77c-.11-.02-.22 0-.29.06-.09.05-.14.14-.16.26l-1.11 5.22c-2.33.07-4.43.78-5.95 1.86A2.2 2.2 0 0 0 4.19 10a2.16 2.16 0 0 0-.9 4.15 3.6 3.6 0 0 0-.05.66c0 3.37 3.92 6.12 8.76 6.12s8.76-2.73 8.76-6.12c0-.21-.01-.44-.05-.66A2.21 2.21 0 0 0 22 12.14M7 13.7c0-.86.68-1.56 1.54-1.56s1.56.7 1.56 1.56a1.56 1.56 0 0 1-1.56 1.56c-.86.02-1.54-.7-1.54-1.56m8.71 4.14C14.63 18.92 12.59 19 12 19c-.61 0-2.65-.1-3.71-1.16a.4.4 0 0 1 0-.57.4.4 0 0 1 .57 0c.68.68 2.14.91 3.14.91s2.47-.23 3.14-.91a.4.4 0 0 1 .57 0c.14.16.14.41 0 .57m-.29-2.56c-.86 0-1.56-.7-1.56-1.56a1.56 1.56 0 0 1 1.56-1.56c.86 0 1.58.7 1.58 1.56a1.6 1.6 0 0 1-1.58 1.56z"}),"Reddit");var Pg={},QT=qe;Object.defineProperty(Pg,"__esModule",{value:!0});var CE=Pg.default=void 0;FT(v);var VT=QT(Ke()),UT=A;function vE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(vE=function(a){return a?n:t})(e)}function FT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=vE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}CE=Pg.default=(0,VT.default)((0,UT.jsx)("path",{d:"M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2 10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41.86 0 1.26.63 1.26 1.44 0 .86-.57 2.09-.86 3.27-.17.98.52 1.84 1.52 1.84 1.78 0 3.16-1.9 3.16-4.58 0-2.4-1.72-4.04-4.19-4.04-2.82 0-4.48 2.1-4.48 4.31 0 .86.28 1.73.74 2.3.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11-1.28-.56-2.02-2.38-2.02-3.85 0-3.16 2.24-6.03 6.56-6.03 3.44 0 6.12 2.47 6.12 5.75 0 3.44-2.13 6.2-5.18 6.2-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03z"}),"Pinterest");var Jg={},zT=qe;Object.defineProperty(Jg,"__esModule",{value:!0});var yE=Jg.default=void 0;TT(v);var qT=zT(Ke()),jT=A;function IE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(IE=function(a){return a?n:t})(e)}function TT(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=IE(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(l!=="default"&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a}yE=Jg.default=(0,qT.default)((0,jT.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var Dg={},KT=qe;Object.defineProperty(Dg,"__esModule",{value:!0});var SE=Dg.default=void 0,OT=KT(Ke()),PT=A;SE=Dg.default=(0,OT.default)((0,PT.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");var Yg={},JT=qe;Object.defineProperty(Yg,"__esModule",{value:!0});var EE=Yg.default=void 0,DT=JT(Ke()),YT=A;EE=Yg.default=(0,DT.default)((0,YT.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h18zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.02 1.64-1.35 2.97-3 2.97-1.66 0-3-1.34-3-3"}),"MusicVideo");const xE=async(e,t,n="",a)=>{const r={mainUrl:e,urls:t,context:n};if(!e)return Promise.resolve({});a&&(r.language=a);const l=await fetch(vr.BUSINESS_ANALYSIS,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!l.ok)throw new Error(`Failed to analyze business: ${l.statusText}`);return l.json()},ZT=async(e,t)=>{const n=await fetch(vr.BUSINESS_ANALYSIS_PATCH,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({website:e,...t})});if(!n.ok){const a=await n.text();throw new Error(`Failed to save business analysis: ${n.status} ${a}`)}return n.json()},NT=async e=>{const t=await fetch(vr.LOGOS_ANALYZE(e),{method:"GET"});if(!t.ok)throw new Error(`Failed to analyze logo: ${t.statusText}`);return t.json()};async function bE(e){if(!e.prompt)throw new Error("generateNewsletter3: prompt is required and cannot be null or empty");const t={prompt:e.prompt,domain:e.domain,mergeTags:e.mergeTags??[],structureUrl:e.structureUrl??"",textStyleUrl:e.textStyleUrl??""};if(e.language&&(t.language=e.language),e.location&&e.location.trim()&&(t.location=e.location.trim()),e.visibilityRules&&Object.keys(e.visibilityRules).length>0){const a=e.visibilityRules,r=[...a.exclude??[],...a.excludedGenders??[]];r.length>0&&(t.visibilityRules={exclude:r})}const n=await fetch(vr.GENERATE_NEWSLETTER3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const a=await n.text();throw new Error(`generate-newsletter3 failed: ${n.status} ${a}`)}return n.json()}function Zg(e){return(e||"default").trim().toLowerCase()||"default"}class GT{constructor(){$n(this,"storageKeyPrefix","sms_chat_token")}storageKey(t){return`${this.storageKeyPrefix}_${Zg(t)}`}getToken(t){try{return localStorage.getItem(this.storageKey(t))}catch(n){return console.warn("Failed to load SMS chat token from localStorage:",n),null}}clearSession(t){try{localStorage.removeItem(this.storageKey(t))}catch(n){console.warn("Failed to clear SMS chat token from localStorage:",n)}}async createSession(t,n){const a={skill:"sms",url:n},r=await fetch(vr.CHAT_SESSION,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!r.ok){const i=await r.text();throw new Error(`Failed to create SMS chat session: ${r.status} ${i}`)}const l=await r.json();try{localStorage.setItem(this.storageKey(t),l.token)}catch(i){console.warn("Failed to save SMS chat token to localStorage:",i)}return l}async sendMessage(t){const n={token:t.token,message:t.message,skill:"sms",...t.context&&{context:t.context},...t.domain&&{domain:t.domain},...t.forceAnswer!==void 0&&{forceAnswer:t.forceAnswer}},a=await fetch(vr.CHAT_MESSAGE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(a.status===404)throw this.clearSession(t.domain),new Error("SESSION_NOT_FOUND");if(!a.ok){const r=await a.json().catch(()=>({})),l=(r==null?void 0:r.error)||a.statusText;throw new Error(`SMS chat error: ${a.status} ${l}`)}return a.json()}}class XT{constructor(){$n(this,"storageKeyPrefix","chat_token_business_analysis")}storageKey(t){return`${this.storageKeyPrefix}_${Zg(t)}`}getToken(t){try{return localStorage.getItem(this.storageKey(t))}catch(n){return console.warn("Failed to load business-analysis chat token from localStorage:",n),null}}clearSession(t){try{localStorage.removeItem(this.storageKey(t))}catch(n){console.warn("Failed to clear business-analysis chat token from localStorage:",n)}}async createSession(t,n){const a={skill:"business-analysis",url:n},r=await fetch(vr.CHAT_SESSION,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!r.ok){const i=await r.text();throw new Error(`Failed to create business-analysis chat session: ${r.status} ${i}`)}const l=await r.json();try{localStorage.setItem(this.storageKey(t),l.token)}catch(i){console.warn("Failed to save business-analysis chat token to localStorage:",i)}return l}async sendMessage(t){const n={token:t.token,message:t.message,skill:"business-analysis",...t.context&&{context:t.context},...t.domain&&{domain:t.domain}},a=await fetch(vr.CHAT_MESSAGE,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(a.status===404)throw this.clearSession(t.domain),new Error("SESSION_NOT_FOUND");if(!a.ok){const r=await a.json().catch(()=>({})),l=(r==null?void 0:r.error)||a.statusText;throw new Error(`Business-analysis chat error: ${a.status} ${l}`)}return a.json()}}const Ng="sms_chat_messages",Gg="analyze_chat_messages";function Xg(e,t){return`${e}_${Zg(t)}`}function kE(e,t){try{const n=localStorage.getItem(Xg(e,t));if(!n)return[];const a=JSON.parse(n);return Array.isArray(a)?a:[]}catch{return[]}}function RE(e,t,n){try{localStorage.setItem(Xg(e,t),JSON.stringify(n))}catch(a){console.warn("Failed to save chat messages to localStorage:",a)}}function wE(e,t){try{localStorage.removeItem(Xg(e,t))}catch{}}function HT({value:e,onChange:t,label:n="מילות מפתח",placeholder:a="הוספת מילת מפתח..."}){const[r,l]=v.useState(""),i=(s,p)=>{t(p)},o=(s,p)=>{l(p)};return A.jsx(_W,{multiple:!0,freeSolo:!0,options:[],value:e,onChange:i,inputValue:r,onInputChange:o,renderTags:(s,p)=>s.map((u,c)=>v.createElement(ha,{variant:"outlined",label:u,...p({index:c}),key:c})),renderInput:s=>A.jsx(It,{...s,label:n,placeholder:a,variant:"outlined",margin:"normal"}),sx:{"& .MuiAutocomplete-tag":{margin:"4px"}}})}var Hg={},_T=qe;Object.defineProperty(Hg,"__esModule",{value:!0});var _g=Hg.default=void 0,$T=_T(Ke()),eK=A;_g=Hg.default=(0,$T.default)((0,eK.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var Zi=255,Ma=100,Ls=e=>{var{r:t,g:n,b:a,a:r}=e,l=Math.max(t,n,a),i=l-Math.min(t,n,a),o=i?l===t?(n-a)/i:l===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(o<0?o+6:o),s:l?i/l*Ma:0,v:l/Zi*Ma,a:r}},BE=e=>{var{h:t,s:n,l:a,a:r}=$g(e);return"hsla("+t+", "+n+"%, "+a+"%, "+r+")"},Xc=e=>{var{h:t,s:n,l:a,a:r}=e;return n*=(a<50?a:Ma-a)/Ma,{h:t,s:n>0?2*n/(a+n)*Ma:0,v:a+n,a:r}},$g=e=>{var{h:t,s:n,v:a,a:r}=e,l=(200-n)*a/Ma;return{h:t,s:l>0&&l<200?n*a/Ma/(l<=Ma?l:200-l)*Ma:0,l:l/2,a:r}},ME=e=>{var{r:t,g:n,b:a}=e,r=t<<16|n<<8|a;return"#"+(l=>new Array(7-l.length).join("0")+l)(r.toString(16))},LE=e=>{var{r:t,g:n,b:a,a:r}=e,l=typeof r=="number"&&(r*255|256).toString(16).slice(1);return""+ME({r:t,g:n,b:a})+(l||"")},Fl=e=>Ls(tK(e)),tK=e=>{var t=e.replace("#","");/^#?/.test(e)&&t.length===3&&(e="#"+t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[a,r,l=0,i]=e.match(n).map(o=>parseInt(o,16));return{r:a,g:r,b:l,a:(i??255)/Zi}},Qs=e=>{var{h:t,s:n,v:a,a:r}=e,l=t/60,i=n/Ma,o=a/Ma,s=Math.floor(l)%6,p=l-Math.floor(l),u=Zi*o*(1-i),c=Zi*o*(1-i*p),d=Zi*o*(1-i*(1-p));o*=Zi;var f={};switch(s){case 0:f.r=o,f.g=d,f.b=u;break;case 1:f.r=c,f.g=o,f.b=u;break;case 2:f.r=u,f.g=o,f.b=d;break;case 3:f.r=u,f.g=c,f.b=o;break;case 4:f.r=d,f.g=u,f.b=o;break;case 5:f.r=o,f.g=u,f.b=c;break}return f.r=Math.round(f.r),f.g=Math.round(f.g),f.b=Math.round(f.b),I({},f,{a:r})},nK=e=>{var{r:t,g:n,b:a,a:r}=Qs(e);return"rgba("+t+", "+n+", "+a+", "+r+")"},aK=e=>{var{r:t,g:n,b:a}=e;return{r:t,g:n,b:a}},rK=e=>{var{h:t,s:n,l:a}=e;return{h:t,s:n,l:a}},eh=e=>ME(Qs(e)),lK=e=>LE(Qs(e)),iK=e=>{var{h:t,s:n,v:a}=e;return{h:t,s:n,v:a}},oK=e=>{var{r:t,g:n,b:a}=e,r=function(u){return u<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)},l=r(t/255),i=r(n/255),o=r(a/255),s={};return s.x=l*.4124+i*.3576+o*.1805,s.y=l*.2126+i*.7152+o*.0722,s.bri=l*.0193+i*.1192+o*.9505,s},La=e=>{var t,n,a,r,l,i,o,s,p;return typeof e=="string"&&th(e)?(i=Fl(e),s=e):typeof e!="string"&&(i=e),i&&(a=iK(i),l=$g(i),r=Qs(i),p=LE(r),s=eh(i),n=rK(l),t=aK(r),o=oK(t)),{rgb:t,hsl:n,hsv:a,rgba:r,hsla:l,hsva:i,hex:s,hexa:p,xy:o}},th=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),sK=H1();const Ca=Jl(sK);function QE(e){var t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useCallback((n,a)=>t.current&&t.current(n,a),[])}var Vs=e=>"touches"in e,VE=e=>{!Vs(e)&&e.preventDefault&&e.preventDefault()},UE=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=1),t>a?a:t<n?n:t},FE=(e,t)=>{var n=e.getBoundingClientRect(),a=Vs(t)?t.touches[0]:t;return{left:UE((a.pageX-(n.left+window.pageXOffset))/n.width),top:UE((a.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:a.pageX-(n.left+window.pageXOffset),y:a.pageY-(n.top+window.pageYOffset)}},pK=["prefixCls","className","onMove","onDown"],nh=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-interactive",className:a,onMove:r,onDown:l}=e,i=Ca(e,pK),o=v.useRef(null),s=v.useRef(!1),[p,u]=v.useState(!1),c=QE(r),d=QE(l),f=g=>s.current&&!Vs(g)?!1:(s.current=Vs(g),!0),W=v.useCallback(g=>{if(VE(g),!!o.current){var m=Vs(g)?g.touches.length>0:g.buttons>0;if(!m){u(!1);return}c==null||c(FE(o.current,g),g)}},[c]),C=v.useCallback(()=>u(!1),[]),E=v.useCallback(g=>{g?(window.addEventListener(s.current?"touchmove":"mousemove",W),window.addEventListener(s.current?"touchend":"mouseup",C)):(window.removeEventListener("mousemove",W),window.removeEventListener("mouseup",C),window.removeEventListener("touchmove",W),window.removeEventListener("touchend",C))},[W,C]);v.useEffect(()=>(E(p),()=>{E(!1)}),[p,W,C,E]);var h=v.useCallback(g=>{var m=document.activeElement;m==null||m.blur(),VE(g.nativeEvent),f(g.nativeEvent)&&o.current&&(d==null||d(FE(o.current,g.nativeEvent),g.nativeEvent),u(!0))},[d]);return A.jsx("div",I({},i,{className:[n,a||""].filter(Boolean).join(" "),style:I({},i.style,{touchAction:"none"}),ref:o,tabIndex:0,onMouseDown:h,onTouchStart:h}))});nh.displayName="Interactive";var uK=["className","prefixCls","left","top","style","fillProps"],cK=e=>{var{className:t,prefixCls:n,left:a,top:r,style:l,fillProps:i}=e,o=Ca(e,uK),s=I({},l,{position:"absolute",left:a,top:r}),p=I({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},i==null?void 0:i.style,{transform:a?"translate(-9px, -1px)":"translate(-1px, -9px)"});return A.jsx("div",I({className:n+"-pointer "+(t||""),style:s},o,{children:A.jsx("div",I({className:n+"-fill"},i,{style:p}))}))},AK=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],dK="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",Hc=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-alpha",className:a,hsva:r,background:l,bgProps:i={},innerProps:o={},pointerProps:s={},radius:p=0,width:u,height:c=16,direction:d="horizontal",style:f,onChange:W,pointer:C}=e,E=Ca(e,AK),h=V=>{W&&W(I({},r,{a:d==="horizontal"?V.left:V.top}),V)},g=BE(Object.assign({},r,{a:1})),m="linear-gradient(to "+(d==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+g+" 100%)",y={};d==="horizontal"?y.left=r.a*100+"%":y.top=r.a*100+"%";var x=I({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:p,background:"url("+dK+") left center",backgroundColor:"var(--alpha-background-color)"},{width:u,height:c},f,{position:"relative"}),S=v.useCallback(V=>{var b=.01,w=r.a,M=w;switch(V.key){case"ArrowLeft":d==="horizontal"&&(M=Math.max(0,w-b),V.preventDefault());break;case"ArrowRight":d==="horizontal"&&(M=Math.min(1,w+b),V.preventDefault());break;case"ArrowUp":d==="vertical"&&(M=Math.max(0,w-b),V.preventDefault());break;case"ArrowDown":d==="vertical"&&(M=Math.min(1,w+b),V.preventDefault());break;default:return}if(M!==w){var z={left:d==="horizontal"?M:r.a,top:d==="vertical"?M:r.a,width:0,height:0,x:0,y:0};W&&W(I({},r,{a:M}),z)}},[r,d,W]),k=v.useCallback(V=>{V.target.focus()},[]),B=C&&typeof C=="function"?C(I({prefixCls:n},s,y)):A.jsx(cK,I({},s,{prefixCls:n},y));return A.jsxs("div",I({},E,{className:[n,n+"-"+d,a||""].filter(Boolean).join(" "),style:x,ref:t,children:[A.jsx("div",I({},i,{style:I({inset:0,position:"absolute",background:l||m,borderRadius:p},i.style)})),A.jsx(nh,I({},o,{style:I({},o.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:h,onDown:h,onClick:k,onKeyDown:S,children:B}))]}))});Hc.displayName="Alpha";var fK=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],WK=e=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(e),gK=e=>Number(String(e).replace(/%/g,"")),Ni=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input",placement:a="bottom",label:r,value:l,className:i,style:o,labelStyle:s,inputStyle:p,onChange:u,onBlur:c,renderInput:d}=e,f=Ca(e,fK),[W,C]=v.useState(l),E=v.useRef(!1),h=v.useRef(f.id||n+"-"+Math.random().toString(36).slice(2,11)),g=f.id||h.current;v.useEffect(()=>{e.value!==W&&(E.current||C(e.value))},[e.value]);function m(V,b){var w=(b||V.target.value).trim().replace(/^#/,"");WK(w)&&u&&u(V,w);var M=gK(w);isNaN(M)||u&&u(V,M),C(w)}function y(V){E.current=!1,C(e.value),c&&c(V)}var x={};a==="bottom"&&(x.flexDirection="column"),a==="top"&&(x.flexDirection="column-reverse"),a==="left"&&(x.flexDirection="row-reverse");var S=I({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},x,o),k=I({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},p),B=I({value:W,onChange:m,onBlur:y,autoComplete:"off",onFocus:()=>E.current=!0},f,{id:g,style:k,onFocusCapture:V=>{var b=V.target;b.setSelectionRange(b.value.length,b.value.length)}});return A.jsxs("div",{className:[n,i||""].filter(Boolean).join(" "),style:S,children:[d?d(B,t):A.jsx("input",I({ref:t},B)),r&&A.jsx("label",{htmlFor:g,style:I({color:"var(--editable-input-label-color)",textTransform:"capitalize"},s),children:r})]})});Ni.displayName="EditableInput";var hK=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],zE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-swatch",className:a,color:r,colors:l=[],style:i,rectProps:o={},onChange:s,addonAfter:p,addonBefore:u,rectRender:c}=e,d=Ca(e,hK),f=I({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},o.style),W=(C,E)=>{s&&s(Fl(C),La(Fl(C)),E)};return A.jsxs("div",I({ref:t},d,{className:[n,a||""].filter(Boolean).join(" "),style:I({display:"flex",flexWrap:"wrap",position:"relative"},i),children:[u&&gt.isValidElement(u)&&u,l&&Array.isArray(l)&&l.map((C,E)=>{var h="",g="";typeof C=="string"&&(h=C,g=C),typeof C=="object"&&C.color&&(h=C.title||C.color,g=C.color);var m=r&&r.toLocaleLowerCase()===g.toLocaleLowerCase(),y=c&&c({title:h,color:g,checked:!!m,style:I({},f,{background:g}),onClick:S=>W(g,S)});if(y)return A.jsx(v.Fragment,{children:y},E);var x=o.children&&gt.isValidElement(o.children)?gt.cloneElement(o.children,{color:g,checked:m}):null;return A.jsx("div",I({tabIndex:0,title:h,onClick:S=>W(g,S)},o,{children:x,style:I({},f,{background:g})}),E)}),p&&gt.isValidElement(p)&&p]}))});zE.displayName="Swatch";function mK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var CK={marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25};function vK(e){var{style:t,title:n,checked:a,color:r,onClick:l,rectProps:i}=e,o=v.useRef(null),s=v.useCallback(()=>{o.current.style.zIndex="2",o.current.style.outline="#fff solid 2px",o.current.style.boxShadow="rgb(0 0 0 / 25%) 0 0 5px 2px"},[]),p=v.useCallback(()=>{a||(o.current.style.zIndex="0",o.current.style.outline="initial",o.current.style.boxShadow="initial")},[a]),u=a?{zIndex:1,outline:"#fff solid 2px",boxShadow:"rgb(0 0 0 / 25%) 0 0 5px 2px"}:{zIndex:0};return A.jsx("div",I({ref:o,title:n},i,{onClick:l,onMouseEnter:s,onMouseLeave:p,style:I({},t,{marginRight:0,marginBottom:0,borderRadius:0,boxSizing:"border-box",height:25,width:25},CK,u,i==null?void 0:i.style)}))}var yK=["prefixCls","placement","className","style","color","colors","showTriangle","rectProps","onChange","rectRender"],IK=["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],Tt=function(e){return e.Left="L",e.LeftTop="LT",e.LeftBottom="LB",e.Right="R",e.RightTop="RT",e.RightBottom="RB",e.Top="T",e.TopRight="TR",e.TopLeft="TL",e.Bottom="B",e.BottomLeft="BL",e.BottomRight="BR",e}({}),qE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-github",placement:a=Tt.TopRight,className:r,style:l,color:i,colors:o=IK,showTriangle:s=!0,rectProps:p={},onChange:u,rectRender:c}=e,d=Ca(e,yK),f=typeof i=="string"&&th(i)?Fl(i):i,W=i?eh(f):"",C=x=>u&&u(La(x)),E=I({"--github-border":"1px solid rgba(0, 0, 0, 0.2)","--github-background-color":"#fff","--github-box-shadow":"rgb(0 0 0 / 15%) 0px 3px 12px","--github-arrow-border-color":"rgba(0, 0, 0, 0.15)",width:200,borderRadius:4,background:"var(--github-background-color)",boxShadow:"var(--github-box-shadow)",border:"var(--github-border)",position:"relative",padding:5},l),h={borderStyle:"solid",position:"absolute"},g=I({},h),m=I({},h);/^T/.test(a)&&(g.borderWidth="0 8px 8px",g.borderColor="transparent transparent var(--github-arrow-border-color)",m.borderWidth="0 7px 7px",m.borderColor="transparent transparent var(--github-background-color)"),a===Tt.TopRight&&(g.top=-8,m.top=-7),a===Tt.Top&&(g.top=-8,m.top=-7),a===Tt.TopLeft&&(g.top=-8,m.top=-7),/^B/.test(a)&&(g.borderWidth="8px 8px 0",g.borderColor="var(--github-arrow-border-color) transparent transparent",m.borderWidth="7px 7px 0",m.borderColor="var(--github-background-color) transparent transparent",a===Tt.BottomRight&&(g.top="100%",m.top="100%"),a===Tt.Bottom&&(g.top="100%",m.top="100%"),a===Tt.BottomLeft&&(g.top="100%",m.top="100%")),/^(B|T)/.test(a)&&((a===Tt.Top||a===Tt.Bottom)&&(g.left="50%",g.marginLeft=-8,m.left="50%",m.marginLeft=-7),(a===Tt.TopRight||a===Tt.BottomRight)&&(g.right=10,m.right=11),(a===Tt.TopLeft||a===Tt.BottomLeft)&&(g.left=7,m.left=8)),/^L/.test(a)&&(g.borderWidth="8px 8px 8px 0",g.borderColor="transparent var(--github-arrow-border-color) transparent transparent",m.borderWidth="7px 7px 7px 0",m.borderColor="transparent var(--github-background-color) transparent transparent",g.left=-8,m.left=-7),/^R/.test(a)&&(g.borderWidth="8px 0 8px 8px",g.borderColor="transparent transparent transparent var(--github-arrow-border-color)",m.borderWidth="7px 0 7px 7px",m.borderColor="transparent transparent transparent var(--github-background-color)",g.right=-8,m.right=-7),/^(L|R)/.test(a)&&((a===Tt.RightTop||a===Tt.LeftTop)&&(g.top=5,m.top=6),(a===Tt.Left||a===Tt.Right)&&(g.top="50%",m.top="50%",g.marginTop=-8,m.marginTop=-7),(a===Tt.LeftBottom||a===Tt.RightBottom)&&(g.top="100%",m.top="100%",g.marginTop=-21,m.marginTop=-20));var y=x=>{var S=I({},(mK(x),x)),k=c&&c(I({},S));return k||A.jsx(vK,I({},S,{rectProps:p}))};return A.jsx(zE,I({ref:t,className:[n,r].filter(Boolean).join(" "),colors:o,color:W,rectRender:y},d,{onChange:C,style:E,rectProps:{style:{marginRight:0,marginBottom:0,borderRadius:0,height:25,width:25}},addonBefore:A.jsx(v.Fragment,{children:s&&A.jsxs(v.Fragment,{children:[A.jsx("div",{style:g}),A.jsx("div",{style:m})]})})}))});qE.displayName="Github";var SK=e=>{var{className:t,color:n,left:a,top:r,prefixCls:l}=e,i={position:"absolute",top:r,left:a},o={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return v.useMemo(()=>A.jsx("div",{className:l+"-pointer "+(t||""),style:i,children:A.jsx("div",{className:l+"-fill",style:o})}),[r,a,n,t,l])},EK=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],jE=gt.forwardRef((e,t)=>{var n,{prefixCls:a="w-color-saturation",radius:r=0,pointer:l,className:i,hue:o=0,style:s,hsva:p,onChange:u}=e,c=Ca(e,EK),d=I({width:200,height:200,borderRadius:r},s,{position:"relative"}),f=v.useRef(null),W=v.useCallback(m=>{f.current=m,typeof t=="function"?t(m):t&&"current"in t&&(t.current=m)},[t]),C=v.useCallback((m,y)=>{u&&p&&u({h:p.h,s:m.left*100,v:(1-m.top)*100,a:p.a});var x=f.current;x&&x.focus()},[p,u]),E=v.useCallback(m=>{if(!(!p||!u)){var y=1,x=p.s,S=p.v,k=!1;switch(m.key){case"ArrowLeft":x=Math.max(0,p.s-y),k=!0,m.preventDefault();break;case"ArrowRight":x=Math.min(100,p.s+y),k=!0,m.preventDefault();break;case"ArrowUp":S=Math.min(100,p.v+y),k=!0,m.preventDefault();break;case"ArrowDown":S=Math.max(0,p.v-y),k=!0,m.preventDefault();break;default:return}k&&u({h:p.h,s:x,v:S,a:p.a})}},[p,u]),h=v.useMemo(()=>{if(!p)return null;var m={top:100-p.v+"%",left:p.s+"%",color:BE(p)};return l&&typeof l=="function"?l(I({prefixCls:a},m)):A.jsx(SK,I({prefixCls:a},m))},[p,l,a]),g=v.useCallback(m=>{m.target.focus()},[]);return A.jsx(nh,I({className:[a,i||""].filter(Boolean).join(" ")},c,{style:I({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=p==null?void 0:p.h)!=null?n:o)+", 100%, 50%))"},d,{outline:"none"}),ref:W,onMove:C,onDown:C,onKeyDown:E,onClick:g,children:h}))});jE.displayName="Saturation";var xK=["prefixCls","className","hue","onChange","direction"],TE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-hue",className:a,hue:r=0,onChange:l,direction:i="horizontal"}=e,o=Ca(e,xK);return A.jsx(Hc,I({ref:t,className:n+" "+(a||"")},o,{direction:i,background:"linear-gradient(to "+(i==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:r,s:100,v:100,a:r/360},onChange:(s,p)=>{l&&l({h:i==="horizontal"?360*p.left:360*p.top})}}))});TE.displayName="Hue";var bK=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],ah=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:a,placement:r="bottom",rProps:l={},gProps:i={},bProps:o={},aProps:s={},className:p,style:u,onChange:c}=e,d=Ca(e,bK),f=a?Qs(a):{};function W(g){var m=Number(g.target.value);m&&m>255&&(g.target.value="255"),m&&m<0&&(g.target.value="0")}var C=g=>{var m=Number(g.target.value);m&&m>100&&(g.target.value="100"),m&&m<0&&(g.target.value="0")},E=(g,m,y)=>{typeof g=="number"&&(m==="a"&&(g<0&&(g=0),g>100&&(g=100),c&&c(La(Ls(I({},f,{a:g/100}))))),g>255&&(g=255,y.target.value="255"),g<0&&(g=0,y.target.value="0"),m==="r"&&c&&c(La(Ls(I({},f,{r:g})))),m==="g"&&c&&c(La(Ls(I({},f,{g})))),m==="b"&&c&&c(La(Ls(I({},f,{b:g})))))},h=f.a?Math.round(f.a*100)/100:0;return A.jsxs("div",I({ref:t,className:[n,p||""].filter(Boolean).join(" ")},d,{style:I({fontSize:11,display:"flex"},u),children:[A.jsx(Ni,I({label:"R",value:f.r||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"r",g)},l,{style:I({},l.style)})),A.jsx(Ni,I({label:"G",value:f.g||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"g",g)},i,{style:I({marginLeft:5},i.style)})),A.jsx(Ni,I({label:"B",value:f.b||0,onBlur:W,placement:r,onChange:(g,m)=>E(m,"b",g)},o,{style:I({marginLeft:5},o.style)})),s&&A.jsx(Ni,I({label:"A",value:parseInt(String(h*100),10),onBlur:C,placement:r,onChange:(g,m)=>E(m,"a",g)},s,{style:I({marginLeft:5},s.style)}))]}))});ah.displayName="EditableInputRGBA";var kK=["prefixCls","hsva","hProps","sProps","lProps","aProps","className","onChange"],KE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-editable-input-hsla",hsva:a,hProps:r={},sProps:l={},lProps:i={},aProps:o={},className:s,onChange:p}=e,u=Ca(e,kK),c=a?$g(a):{h:0,s:0,l:0,a:0},d=(W,C,E)=>{typeof W=="number"&&(C==="h"&&(W<0&&(W=0),W>360&&(W=360),p&&p(La(Xc(I({},c,{h:W}))))),C==="s"&&(W<0&&(W=0),W>100&&(W=100),p&&p(La(Xc(I({},c,{s:W}))))),C==="l"&&(W<0&&(W=0),W>100&&(W=100),p&&p(La(Xc(I({},c,{l:W}))))),C==="a"&&(W<0&&(W=0),W>1&&(W=1),p&&p(La(Xc(I({},c,{a:W}))))))},f=o==!1?!1:I({label:"A",value:Math.round(c.a*100)/100},o,{onChange:(W,C)=>d(C,"a")});return A.jsx(ah,I({ref:t,hsva:a,rProps:I({label:"H",value:Math.round(c.h)},r,{onChange:(W,C)=>d(C,"h")}),gProps:I({label:"S",value:Math.round(c.s)+"%"},l,{onChange:(W,C)=>d(C,"s")}),bProps:I({label:"L",value:Math.round(c.l)+"%"},i,{onChange:(W,C)=>d(C,"l")}),aProps:f,className:[n,s||""].filter(Boolean).join(" ")},u))});KE.displayName="EditableInputHSLA";var RK=["style"];function wK(e){var{style:t}=e,n=Ca(e,RK),a=v.useRef(null),r=v.useCallback(()=>{a.current.style.backgroundColor="var(--chrome-arrow-background-color)"},[]),l=v.useCallback(()=>{a.current.style.backgroundColor="transparent"},[]);return A.jsx("div",I({ref:a,style:I({marginLeft:5,cursor:"pointer",transition:"background-color .3s",borderRadius:2},t)},n,{onMouseEnter:r,onMouseLeave:l,children:A.jsx("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24",style:{display:"block"},children:A.jsx("path",{d:"M373.888 576h276.224c9.322667 0 14.293333 11.178667 9.173333 18.773333l-1.258666 1.557334-138.112 146.858666a10.709333 10.709333 0 0 1-14.293334 1.365334l-1.536-1.365334-138.112-146.858666c-6.592-6.997333-2.666667-18.645333 5.973334-20.16l1.941333-0.170667h276.224-276.224z m146.026667-295.189333l138.112 146.858666c7.04 7.509333 2.069333 20.330667-7.914667 20.330667H373.888c-9.984 0-14.976-12.821333-7.914667-20.330667l138.112-146.858666a10.730667 10.730667 0 0 1 15.829334 0z",fill:"var(--chrome-arrow-fill)"})})}))}function BK(){return"EyeDropper"in window}function MK(e){var t=()=>{if("EyeDropper"in window){var n=new window.EyeDropper;n.open().then(a=>{e.onPickColor==null||e.onPickColor(a.sRGBHex)}).catch(a=>{a.name})}};return A.jsx("svg",{viewBox:"0 0 512 512",height:"1em",width:"1em",onClick:t,children:A.jsx("path",{fill:"currentColor",d:"M482.8 29.23c38.9 38.98 38.9 102.17 0 141.17L381.2 271.9l9.4 9.5c12.5 12.5 12.5 32.7 0 45.2s-32.7 12.5-45.2 0l-160-160c-12.5-12.5-12.5-32.7 0-45.2s32.7-12.5 45.2 0l9.5 9.4L341.6 29.23c39-38.974 102.2-38.974 141.2 0zM55.43 323.3 176.1 202.6l45.3 45.3-120.7 120.7c-3.01 3-4.7 7-4.7 11.3V416h36.1c4.3 0 8.3-1.7 11.3-4.7l120.7-120.7 45.3 45.3-120.7 120.7c-15 15-35.4 23.4-56.6 23.4H89.69l-39.94 26.6c-12.69 8.5-29.59 6.8-40.377-4-10.786-10.8-12.459-27.7-3.998-40.4L32 422.3v-42.4c0-21.2 8.43-41.6 23.43-56.6z"})})}var LK=["prefixCls","className","style","color","showEditableInput","showEyeDropper","showColorPreview","showHue","showAlpha","inputType","rectProps","onChange"],Qa=function(e){return e.HEXA="hexa",e.RGBA="rgba",e.HSLA="hsla",e}({}),OE=gt.forwardRef((e,t)=>{var{prefixCls:n="w-color-chrome",className:a,style:r,color:l,showEditableInput:i=!0,showEyeDropper:o=!0,showColorPreview:s=!0,showHue:p=!0,showAlpha:u=!0,inputType:c=Qa.RGBA,rectProps:d={},onChange:f}=e,W=Ca(e,LK),C=typeof l=="string"&&th(l)?Fl(l):l||{h:0,s:0,l:0,a:0},E=w=>f&&f(La(w)),[h,g]=v.useState(c),m=()=>{h===Qa.RGBA&&g(Qa.HSLA),h===Qa.HSLA&&g(Qa.HEXA),h===Qa.HEXA&&g(Qa.RGBA)},y={paddingTop:6},x={textAlign:"center",paddingTop:4,paddingBottom:4},S=I({"--chrome-arrow-fill":"#333","--chrome-arrow-background-color":"#e8e8e8",borderRadius:0,flexDirection:"column",width:230,padding:0},r),k={"--chrome-alpha-box-shadow":"rgb(0 0 0 / 25%) 0px 0px 1px inset",borderRadius:"50%",background:nK(C),boxShadow:"var(--chrome-alpha-box-shadow)"},B=w=>{var M=Fl(w);E(I({},M))},V={height:14,width:14},b={style:I({},V),fillProps:{style:V}};return A.jsx(qE,I({ref:t,color:C,style:S,colors:void 0,className:[n,a].filter(Boolean).join(" "),placement:Tt.TopLeft},W,{addonAfter:A.jsxs(v.Fragment,{children:[A.jsx(jE,{hsva:C,style:{width:"100%",height:130},onChange:w=>{E(I({},C,w,{a:C.a}))}}),A.jsxs("div",{style:{padding:15,display:"flex",alignItems:"center",gap:10},children:[BK()&&o&&A.jsx(MK,{onPickColor:B}),s&&A.jsx(Hc,{width:28,height:28,hsva:C,radius:2,style:{borderRadius:"50%"},bgProps:{style:{background:"transparent"}},innerProps:{style:k},pointer:()=>A.jsx(v.Fragment,{})}),A.jsxs("div",{style:{flex:1},children:[p==!0&&A.jsx(TE,{hue:C.h,style:{width:"100%",height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:w=>{E(I({},C,w))}}),u==!0&&A.jsx(Hc,{hsva:C,style:{marginTop:6,height:12,borderRadius:2},pointerProps:b,bgProps:{style:{borderRadius:2}},onChange:w=>{E(I({},C,w))}})]})]}),i&&A.jsxs("div",{style:{display:"flex",alignItems:"flex-start",padding:"0 15px 15px 15px",userSelect:"none"},children:[A.jsxs("div",{style:{flex:1},children:[h==Qa.RGBA&&A.jsx(ah,{hsva:C,rProps:{labelStyle:y,inputStyle:x},gProps:{labelStyle:y,inputStyle:x},bProps:{labelStyle:y,inputStyle:x},aProps:u==!1?!1:{labelStyle:y,inputStyle:x},onChange:w=>E(w.hsva)}),h===Qa.HEXA&&A.jsx(Ni,{label:"HEX",labelStyle:y,inputStyle:x,value:C.a>0&&C.a<1?lK(C).toLocaleUpperCase():eh(C).toLocaleUpperCase(),onChange:(w,M)=>{typeof M=="string"&&E(Fl(/^#/.test(M)?M:"#"+M))}}),h===Qa.HSLA&&A.jsx(KE,{hsva:C,hProps:{labelStyle:y,inputStyle:x},sProps:{labelStyle:y,inputStyle:x},lProps:{labelStyle:y,inputStyle:x},aProps:u==!1?!1:{labelStyle:y,inputStyle:x},onChange:w=>E(w.hsva)})]}),A.jsx(wK,{onClick:m})]})]}),rectRender:()=>A.jsx(v.Fragment,{})}))});OE.displayName="Chrome";const rh="#6366f1";function Us(e){const t=e.trim().replace(/^#/,"");return/^[0-9a-fA-F]{6}$/.test(t)?`#${t.toLowerCase()}`:/^[0-9a-fA-F]{3}$/.test(t)?`#${t.split("").map(a=>a+a).join("").toLowerCase()}`:""}function QK({colors:e,primary:t,secondary:n,onPrimaryChange:a,onSecondaryChange:r,onColorsChange:l}){const{shadowRoot:i}=nl(),o=v.useMemo(()=>i??void 0,[i]),[s,p]=v.useState(null),u=!!s,[c,d]=v.useState(rh),[f,W]=v.useState(""),[C,E]=v.useState(null),h=v.useCallback(B=>{p(B),d(e.length>0?e[e.length-1]:rh)},[e]),g=v.useCallback(()=>{p(null)},[]),m=v.useCallback(()=>{const B=Us(c);if(!B)return;if(e.some(b=>b.toLowerCase()===B.toLowerCase())){g();return}l([...e,B]),g()},[e,c,l,g]),y=v.useCallback(B=>{const V=e[B],b=e.filter((w,M)=>M!==B);V&&t.toLowerCase()===V.toLowerCase()&&a(""),V&&n.toLowerCase()===V.toLowerCase()&&r(""),l(b)},[e,t,n,a,r,l]),x=v.useCallback((B,V)=>{W(V),B.dataTransfer.effectAllowed="copy",B.dataTransfer.setData("text/plain",V)},[]),S=v.useCallback(()=>{E(null),W("")},[]),k=v.useCallback((B,V)=>{V.preventDefault();const b=V.dataTransfer.getData("text/plain"),w=Us(b||f);if(!w){E(null);return}B==="primary"?a(w):r(w),E(null),W("")},[f,a,r]);return A.jsxs(D,{children:[A.jsx(We,{variant:"subtitle2",sx:{mb:2,fontWeight:600},children:"בחירת צבעי עיצוב"}),A.jsx(We,{variant:"body2",sx:{mb:2,color:"text.secondary"},children:"הוסיפו צבעים משלכם או בחרו מהמאגר. לחצו על גוון או גררו אותו לאזור צבע ראשי/משני כדי להגדיר."}),A.jsx(Ge,{variant:"contained",color:"primary",size:"medium",startIcon:A.jsx(Ul,{}),onClick:B=>u?g():h(B.currentTarget),"aria-expanded":u,"aria-controls":"business-ai-color-picker-panel",id:"business-ai-color-picker-trigger",sx:{mb:3,px:2.5,py:1,borderRadius:3,textTransform:"none",fontWeight:600,boxShadow:"0 8px 24px rgba(99, 40, 167, 0.35)","&:hover":{boxShadow:"0 10px 28px rgba(99, 40, 167, 0.42)"}},children:u?"סגירת לוח בחירת הצבע":"הוספת צבע משלך"}),A.jsxs(fS,{open:u,anchorEl:s,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0,container:o,disablePortal:!o,slotProps:{root:{sx:{zIndex:2e3},disableEnforceFocus:!0,disableAutoFocus:!0},paper:{id:"business-ai-color-picker-panel",elevation:8,role:"region","aria-labelledby":"business-ai-color-picker-trigger",sx:{mt:1,p:2.5,borderRadius:3,maxWidth:340,background:"linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%)",border:"1px solid",borderColor:"divider",overflow:"visible"}}},children:[A.jsx(We,{variant:"subtitle2",sx:{mb:1.5,fontWeight:700},children:"בחירת צבע וגוון"}),A.jsx(We,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:1.5},children:"התאמת גוון, רוויה ובהירות, ועריכת HEX / RGB / HSL. אפשר לעבור בין מצבי הקלט בלחיצה על תווית השדות. דיגום צבע מהמסך זמין בדפדפנים שתומכים בכך."}),A.jsx(D,{sx:{display:"flex",justifyContent:"center",mb:2,"& .w-color-chrome":{boxShadow:"none !important",borderRadius:2,border:"1px solid",borderColor:"divider",overflow:"hidden",bgcolor:"background.paper"}},children:A.jsx(OE,{color:Us(c)||rh,onChange:B=>d(B.hex),showAlpha:!1,showHue:!0,showColorPreview:!0,showEditableInput:!0,showEyeDropper:!0,inputType:Qa.RGBA,style:{width:"100%",maxWidth:280}})}),A.jsxs(D,{sx:{display:"flex",gap:1,justifyContent:"flex-end"},children:[A.jsx(Ge,{variant:"text",onClick:g,sx:{textTransform:"none"},children:"ביטול"}),A.jsx(Ge,{variant:"contained",color:"primary",onClick:m,disabled:!Us(c),sx:{textTransform:"none",borderRadius:2,px:2},children:"הוסף ללוח"})]})]}),A.jsxs(D,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[A.jsxs(Dt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:t?"primary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"צבע ראשי"}),A.jsxs(D,{sx:{width:"100%",height:60,backgroundColor:t||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:C==="primary"?"primary.main":t?"divider":"rgba(99, 40, 167, 0.45)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:C==="primary"?"0 0 0 3px rgba(99, 40, 167, 0.16)":"none"},onDragOver:B=>{B.preventDefault(),B.dataTransfer.dropEffect="copy",E("primary")},onDragLeave:()=>{C==="primary"&&E(null)},onDrop:B=>k("primary",B),children:[t&&A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{color:Fs(t)==="white"?"white":"black",fontWeight:"bold"},children:t.toUpperCase()}),A.jsx(_g,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:Fs(t)}})]}),!t&&A.jsx(We,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע ראשי"})]})]}),A.jsxs(Dt,{elevation:0,sx:{p:2,border:"2px solid",borderColor:n?"secondary.main":"divider",borderRadius:2,flex:1,minWidth:120},children:[A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"צבע משני"}),A.jsxs(D,{sx:{width:"100%",height:60,backgroundColor:n||"#f5f5f5",borderRadius:1,border:"2px dashed",borderColor:C==="secondary"?"secondary.main":n?"divider":"rgba(0, 0, 0, 0.25)",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",transition:"all 0.15s ease",boxShadow:C==="secondary"?"0 0 0 3px rgba(0, 0, 0, 0.14)":"none"},onDragOver:B=>{B.preventDefault(),B.dataTransfer.dropEffect="copy",E("secondary")},onDragLeave:()=>{C==="secondary"&&E(null)},onDrop:B=>k("secondary",B),children:[n&&A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{color:Fs(n)==="white"?"white":"black",fontWeight:"bold"},children:n.toUpperCase()}),A.jsx(_g,{sx:{position:"absolute",top:4,right:4,fontSize:16,color:Fs(n)}})]}),!n&&A.jsx(We,{variant:"caption",color:"text.secondary",children:"גררו לכאן צבע משני"})]})]})]}),A.jsx(We,{variant:"caption",sx:{display:"block",mb:1},children:"לוח צבעים"}),e.length===0?A.jsxs(Dt,{variant:"outlined",sx:{py:4,px:2,textAlign:"center",borderRadius:2,borderStyle:"dashed",bgcolor:"action.hover"},children:[A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:"עדיין אין צבעים בלוח"}),A.jsx(We,{variant:"caption",color:"text.secondary",children:'לחצו על "הוספת צבע משלך" כדי להתחיל'})]}):A.jsx(D,{sx:{display:"flex",flexWrap:"wrap",gap:2},children:e.map((B,V)=>{const b=t.toLowerCase()===B.toLowerCase(),w=n.toLowerCase()===B.toLowerCase(),M=b||w;return A.jsx(Dt,{elevation:M?4:1,sx:{position:"relative",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:3}},children:A.jsxs(D,{sx:{width:100,height:130,position:"relative",p:1},children:[A.jsx(Wg,{title:"הסר מהלוח",children:A.jsx(da,{size:"small",onClick:()=>y(V),sx:{position:"absolute",top:4,left:4,zIndex:2,bgcolor:"rgba(255,255,255,0.92)",width:26,height:26,"&:hover":{bgcolor:"rgba(255,255,255,1)"}},"aria-label":"הסר צבע",children:A.jsx(Yc,{sx:{fontSize:16}})})}),A.jsxs(D,{draggable:!0,onDragStart:z=>x(z,B),onDragEnd:S,sx:{width:"100%",height:80,backgroundColor:B,borderRadius:1,border:"2px solid",borderColor:M?b?"primary.main":"secondary.main":"divider",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",cursor:"grab","&:active":{cursor:"grabbing"}},children:[b&&A.jsx(D,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"ראשי"}),w&&!b&&A.jsx(D,{sx:{position:"absolute",top:4,right:4,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"white",px:.5,py:.25,borderRadius:.5,fontSize:9,fontWeight:"bold"},children:"משני"}),A.jsx(We,{variant:"caption",sx:{color:Fs(B),fontWeight:"bold",fontSize:10,textAlign:"center",px:.5},children:B.toUpperCase()})]}),A.jsxs(D,{sx:{display:"flex",gap:.5,mt:1,justifyContent:"center"},children:[A.jsx(Wg,{title:b?"הסר מצבע ראשי":"הגדר כצבע ראשי",children:A.jsx(Ge,{size:"small",variant:b?"contained":"outlined",color:"primary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{a(b?"":B)},children:"ראשי"})}),A.jsx(Wg,{title:w?"הסר מצבע משני":"הגדר כצבע משני",children:A.jsx(Ge,{size:"small",variant:w?"contained":"outlined",color:"secondary",sx:{minWidth:"auto",px:1,fontSize:10,height:28},onClick:()=>{r(w?"":B)},children:"משני"})})]})]})},`${B}-${V}`)})})]})}function Fs(e){const t=Us(e);if(!t)return"black";const n=t.replace("#",""),a=parseInt(n.substring(0,2),16),r=parseInt(n.substring(2,4),16),l=parseInt(n.substring(4,6),16);return(.299*a+.587*r+.114*l)/255>.5?"black":"white"}const lh="_analyzingContainer_aogto_1",ih="_scanningLine_aogto_10",PE="_scan_aogto_10",oh="_dataBars_aogto_19",sh="_dataBar_aogto_19",JE="_analyze_aogto_1",ph="_dots_aogto_80",uh="_fadeUp_aogto_98",ch="_fadeUpDelay1_aogto_103",Ah="_fadeUpDelay2_aogto_108",DE="_fadeUpDelay3_aogto_113",VK=Object.freeze(Object.defineProperty({__proto__:null,analyze:JE,analyzingContainer:lh,dataBar:sh,dataBars:oh,default:{analyzingContainer:lh,scanningLine:ih,scan:PE,dataBars:oh,dataBar:sh,analyze:JE,dots:ph,fadeUp:uh,fadeUpDelay1:ch,fadeUpDelay2:Ah,fadeUpDelay3:DE},dots:ph,fadeUp:uh,fadeUpDelay1:ch,fadeUpDelay2:Ah,fadeUpDelay3:DE,scan:PE,scanningLine:ih},Symbol.toStringTag,{value:"Module"})),UK=`.analyzingContainer {
394
394
  position: relative;
395
395
  width: 200px;
396
396
  height: 80px;
@@ -516,8 +516,8 @@ Newsletter creation ✉️, Landing pages 🎯, Digital courses 📇 and more`,s
516
516
  ${c(u,.8)} 0%,
517
517
  ${c(u,.6)} 50%,
518
518
  ${c(u,.4)} 100%
519
- )`,animationDelay:`${f*.15}s`}},f))})]}),A.jsxs(We,{className:l?ch:"",sx:{fontSize:{xs:"0.875rem",sm:"1rem"},fontWeight:500,color:"text.secondary"},children:[e,A.jsx("span",{className:ph,children:a})]}),t&&A.jsxs(D,{className:l?Ah:"",sx:{width:"100%",maxWidth:"600px",display:"flex",flexDirection:"column",gap:2,mt:1},children:[A.jsx(fg,{variant:"rectangular",height:60,sx:{borderRadius:2}}),A.jsx(fg,{variant:"rectangular",height:40,width:"80%",sx:{borderRadius:2}}),A.jsx(fg,{variant:"rectangular",height:40,width:"60%",sx:{borderRadius:2}})]})]}):null}const Gi=Vl,jK=["קהילה ועמותות","טכנולוגיה","בריאות","חינוך","אוכל ומסעדות","אופנה","נדל״ן","כספים וביטוח","תחבורה ולוגיסטיקה","תקשורת ושיווק","אמנות ותרבות","ספורט ופנאי","ייעוץ וניהול","מסחר קמעונאי","ייצור","אנרגיה וסביבה","משפטים","בנייה","חקלאות","תיירות","בידור","ביטחון"],TK=["מקצועי","ידידותי","פורמלי","לא פורמלי","חברתי","מעודכן","קלאסי","צעיר","משפחתי","איכותי","מהיר","אמין","יצירתי","חכם","חם","קר","מעורר השראה","מעשי","יוקרתי","נגיש"],qs=e=>{if(!e||typeof e!="string")return e;const t=e.trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`};function KK(e,t,n){let a="";const r=n.trim().toLowerCase();if(r)try{const i=/^https?:\/\//i.test(r)?r:`https://${r}`;a=new URL(i).hostname.replace(/^www\./,"")}catch{}const l=`${a} ${r} ${e.toLowerCase()} ${t.toLowerCase()}`;return/linkedin|לינקדאין|לינקדין/.test(l)?oE:/facebook|fb\.com|fb\.me|פייסבוק/.test(l)?aE:/instagram|instagr\.am|אינסטגרם/.test(l)?lE:/youtube|youtu\.be|יוטיוב/.test(l)?pE:/(^|\.)x\.com|twitter\.com|טוויטר|טוויט/.test(l)?cE:/tiktok|טיקטוק|tik tok/.test(l)?EE:/whatsapp|wa\.me|וואטסאפ|ווטסאפ/.test(l)?dE:/telegram|t\.me|טלגרם/.test(l)?WE:/reddit|רדיט/.test(l)?hE:/pinterest|פינטרסט/.test(l)?CE:/github|גיטהאב|גיטהב/.test(l)?yE:SE}function OK({platform:e,url:t,onPlatformCommit:n,onUrlChange:a,onRemove:r}){const[l,i]=v.useState(e);v.useEffect(()=>{i(e)},[e]);const o=v.useCallback(()=>{l!==e&&n(e,l)},[e,l,n]),s=KK(e,l,t);return A.jsxs(D,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1,flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(It,{fullWidth:!0,label:"פלטפורמה",value:l,onChange:p=>i(p.target.value),onBlur:o,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),p.target.blur())},variant:"outlined",margin:"normal",size:"small",sx:{flex:{xs:"1 1 100%",sm:"0 0 min(200px, 34%)"}},placeholder:"לדוגמה: LinkedIn",InputProps:{startAdornment:A.jsx(og,{position:"start",sx:{mr:0},children:A.jsx(s,{sx:{fontSize:22,color:"primary.main"},"aria-hidden":!0})})}}),A.jsx(It,{fullWidth:!0,label:"קישור",value:t,onChange:p=>a(e,p.target.value),variant:"outlined",margin:"normal",size:"small",sx:{flex:1},placeholder:"https://..."}),A.jsx(da,{color:"error",onClick:()=>r(e),sx:{mt:1},"aria-label":"הסר רשת חברתית",children:A.jsx(Ms,{})})]})}const PK=e=>({business_name:"",industry:"",business_type:"",business_type_options:[],keywords:[],profit_intent:"",is_haredi_sector:null,business_tone:"",description:"",overall_confidence:0,owner:"",owner_gender:"",business_address:"",website:e||"",contacts:{email:"",phone:""},socials:{linkedin:"",instagram:"",facebook:""},theme:void 0,website_confidence:0,confidence_scores:{website:0,contacts:{phone:0},socials:{},overall:0},token_usage:{total:{prompt_tokens:0,completion_tokens:0,total_tokens:0},breakdown:{analyze_business:{prompt_tokens:0,completion_tokens:0,total_tokens:0}}},estimated_cost_usd:0,source_urls:[],analyzed_at:new Date().toISOString()}),$c=e=>{var t,n;return e?{...e,business_address:e.business_address??(e==null?void 0:e.address)??"",business_type_options:Array.isArray(e.business_type_options)?e.business_type_options:[],keywords:Array.isArray(e.keywords)?e.keywords:[],description:Array.isArray(e.description)?e.description:e.description?[e.description]:[""],contacts:{email:((t=e.contacts)==null?void 0:t.email)??"",phone:((n=e.contacts)==null?void 0:n.phone)??""},socials:e.socials&&typeof e.socials=="object"?e.socials:{linkedin:"",instagram:"",facebook:""},theme:(()=>{var i;const a=(i=e.theme)==null?void 0:i.logoHeaderBackground,r=(e==null?void 0:e.logoHeaderBackground)??(e==null?void 0:e.logoBackgroundHex),l=typeof a=="string"?a:typeof r=="string"?r:void 0;if(e.theme)return{primary:e.theme.primary||"",secondary:e.theme.secondary||"",colors:Array.isArray(e.theme.colors)?e.theme.colors:[],...l?{logoHeaderBackground:l}:{}};if(l)return{primary:"",secondary:"",colors:[],logoHeaderBackground:l}})()}:null};function JK({data:e,websiteUrl:t,setActiveStep:n,onSave:a,urls:r,language:l}){var Me,ye,De,Qe,Fe;const i=Bs(),[o,s]=v.useState(null),[p,u]=v.useState(!0),[c,d]=v.useState(null),[f,W]=v.useState(!1),[C,E]=v.useState(null),[h,g]=v.useState([]),[m,y]=v.useState([]),[x,S]=v.useState((e==null?void 0:e.logo)||(e&&typeof e=="object"&&"logo"in e?e.logo:"")),k=v.useRef(null),B=v.useRef(""),V=v.useRef(!1),b=v.useRef(new Map),w=v.useRef(0),M=()=>{b.current=new Map,w.current=0},z=P=>{const j=b.current;let O=j.get(P);return O||(O=`social-row-${w.current++}`,j.set(P,O)),O},{shadowRoot:F,stepBeforeStep1:T,step2Data:U}=nl(),[q,Q]=v.useState(!1),K=v.useCallback(P=>{if(!P){S(""),s(O=>{var Z,Y,de,je;return!O||!((Z=O.theme)!=null&&Z.logoHeaderBackground)?O:{...O,theme:{...O.theme,primary:((Y=O.theme)==null?void 0:Y.primary)??"",secondary:((de=O.theme)==null?void 0:de.secondary)??"",colors:((je=O.theme)==null?void 0:je.colors)??[],logoHeaderBackground:void 0}}});return}P.startsWith("http://")||P.startsWith("https://")?NT(P).then(O=>{S(O.pngDataUrl),s(Z=>{var Y,de,je,Xe;return Z&&{...Z,theme:{...Z.theme,primary:((Y=Z.theme)==null?void 0:Y.primary)??"",secondary:((de=Z.theme)==null?void 0:de.secondary)??"",colors:((je=Z.theme)==null?void 0:je.colors)??[],logoHeaderBackground:((Xe=Z.theme)==null?void 0:Xe.logoHeaderBackground)??O.backgroundHex}}})}).catch(()=>{S(P)}):S(P)},[]),R=P=>{var Z;const j=(Z=P.target.files)==null?void 0:Z[0];if(!j)return;if(!j.type.startsWith("image/")){alert("אנא בחר קובץ תמונה בלבד");return}if(j.size>5*1024*1024){alert("קובץ התמונה גדול מדי. אנא בחר קובץ קטן מ-5MB");return}const O=new FileReader;O.onloadend=()=>{const Y=O.result;S(Y)},O.onerror=()=>{alert("שגיאה בקריאת הקובץ. אנא נסה שוב.")},O.readAsDataURL(j)},X=()=>{S(""),s(P=>{var j,O,Z,Y;return(j=P==null?void 0:P.theme)!=null&&j.logoHeaderBackground?{...P,theme:{...P.theme,primary:((O=P.theme)==null?void 0:O.primary)??"",secondary:((Z=P.theme)==null?void 0:Z.secondary)??"",colors:((Y=P.theme)==null?void 0:Y.colors)??[],logoHeaderBackground:void 0}}:P}),k.current&&(k.current.value="")},G=v.useCallback(()=>[...jK].sort(),[]),L=v.useCallback(()=>[...TK].sort(),[]);v.useEffect(()=>{g(G()),y(L())},[G,L]),v.useEffect(()=>{if(o!=null&&o.industry){const P=G();P.includes(o.industry)||P.push(o.industry),g(P.sort())}},[o==null?void 0:o.industry,G]),v.useEffect(()=>{if(o!=null&&o.business_tone){const P=L();P.includes(o.business_tone)||P.push(o.business_tone),y(P.sort())}},[o==null?void 0:o.business_tone,L]);const te=P=>!P||typeof P!="object"?!1:"business_name"in P||"industry"in P||"business_type"in P||"keywords"in P||"description"in P;v.useEffect(()=>{if(e&&te(e)&&e.logo){const P=e.logo;P.startsWith("http://")||P.startsWith("https://")?K(P):S(P)}else if(e&&"logo"in e&&e.logo){const P=e.logo;P.startsWith("http://")||P.startsWith("https://")?K(P):S(P)}},[e,K]),v.useEffect(()=>{!p&&o&&Q(!0)},[p,o]),v.useEffect(()=>{(async()=>{var je,Xe,ce,Re,Ve,Pe,Ye,Wt;const j=t?qs(t).replace(/\/$/,"").toLowerCase():"",O=t&&t.trim()!=="";if(B.current===j&&o!==null&&O){u(!1);return}if(V.current)return;if(!!!(e&&te(e))&&(U!=null&&U.businessData)&&(U!=null&&U.websiteUrl)){const $e=$c(U.businessData);if($e){M(),s($e),u(!1),B.current="",U.logo&&(U.logo.startsWith("http://")||U.logo.startsWith("https://")?K(U.logo):S(U.logo));return}}if(O){const $e=Array.isArray(r)?r.map(qs):[];$e.push(qs(t));try{V.current=!0,u(!0),d(null);const Ze=await xE(t,$e,"",l);let ot=$c(Ze);const Ht=(je=e==null?void 0:e.theme)==null?void 0:je.logoHeaderBackground;if(ot&&typeof Ht=="string"&&(ot={...ot,theme:{...ot.theme,primary:((Xe=ot.theme)==null?void 0:Xe.primary)??"",secondary:((ce=ot.theme)==null?void 0:ce.secondary)??"",colors:Array.isArray((Re=ot.theme)==null?void 0:Re.colors)?ot.theme.colors:[],logoHeaderBackground:Ht}}),ot){M(),s(ot),B.current=j;const ke=Ze==null?void 0:Ze.logo;ke&&K(ke)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(Ze){d(Ze instanceof Error?Ze.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}return}if(e&&te(e)){const $e=$c(e);if($e){M(),s($e),u(!1),B.current="";const Ze=e==null?void 0:e.logo;Ze&&(Ze.startsWith("http://")||Ze.startsWith("https://")?K(Ze):S(Ze));return}}const de=Array.isArray(r)?r.map(qs):[];if(de.length===0){M(),s(PK(t)),u(!1),B.current="";return}try{V.current=!0,u(!0),d(null);const $e=await xE(t,de,"",l);let Ze=$c($e);const ot=(Ve=e==null?void 0:e.theme)==null?void 0:Ve.logoHeaderBackground;if(Ze&&typeof ot=="string"&&(Ze={...Ze,theme:{...Ze.theme,primary:((Pe=Ze.theme)==null?void 0:Pe.primary)??"",secondary:((Ye=Ze.theme)==null?void 0:Ye.secondary)??"",colors:Array.isArray((Wt=Ze.theme)==null?void 0:Wt.colors)?Ze.theme.colors:[],logoHeaderBackground:ot}}),Ze){M(),s(Ze),B.current="";const Ht=$e==null?void 0:$e.logo;Ht&&K(Ht)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch($e){d($e instanceof Error?$e.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}})()},[t,U]);const re=(P,j)=>{o&&s({...o,[P]:j})},oe=(P,j,O)=>{o&&s({...o,[P]:{...o[P],[j]:O}})},ve=(P,j)=>{if(o){const O=o.theme||{primary:"",secondary:"",colors:[]};s({...o,theme:{...O,[P]:j}})}},fe=P=>{if(!o)return;const j={primary:"",secondary:"",colors:[],...o.theme},O=je=>je.toLowerCase(),Z=new Set(P.map(O)),Y=j.primary&&Z.has(O(j.primary))?j.primary:"",de=j.secondary&&Z.has(O(j.secondary))?j.secondary:"";s({...o,theme:{...j,primary:Y,secondary:de,colors:P}})},he=(P,j,O)=>{if(o)if(P==="description"){const Y=[...Array.isArray(o.description)?o.description:o.description?[o.description]:[""]];Y[j]=O,s({...o,description:Y})}else{const Z=[...o[P]];Z[j]=O,s({...o,[P]:Z})}},ze=()=>{if(o){const P=[...o.business_type_options,""];s({...o,business_type_options:P})}},_=P=>{if(o){const j=o.business_type_options.filter((O,Z)=>Z!==P);s({...o,business_type_options:j})}},ee=()=>{if(o){const j=[...Array.isArray(o.description)?o.description:o.description?[o.description]:[""],""];s({...o,description:j})}},ge=P=>{if(o){const O=(Array.isArray(o.description)?o.description:o.description?[o.description]:[""]).filter((Z,Y)=>Y!==P);s({...o,description:O.length>0?O:[""]})}},Ce=()=>{if(o){const P={...o.socials};let j=1,O="social_media";for(;P[O];)O=`social_media_${j}`,j++;P[O]="",b.current.has(O)||b.current.set(O,`social-row-${w.current++}`),s({...o,socials:P})}},se=P=>{if(o){b.current.delete(P);const j={...o.socials};delete j[P],s({...o,socials:j})}},ue=(P,j)=>{if(o&&P!==j){const O={...o.socials},Z=O[P]||"";delete O[P];const Y=j.trim(),de=b.current.get(P);de&&(b.current.delete(P),Y&&b.current.set(Y,de)),Y&&(O[Y]&&Y!==P?O[Y]=Z||O[Y]:O[Y]=Z),s({...o,socials:O})}},Te=(P,j)=>{if(o){const O={...o.socials};O[P]=j,s({...o,socials:O})}},ne=async()=>{var Re,Ve,Pe;if(!o)return;const P=(t==null?void 0:t.trim())||((Re=o.website)==null?void 0:Re.trim())||"";let j=!0;P||(j=!1);const O=x||"",Z=O.startsWith("data:image/"),Y=(Ve=o==null?void 0:o.theme)==null?void 0:Ve.logoHeaderBackground,de=Y&&/^#(000|000000)$/i.test(String(Y).trim()),je=Y&&!de?Y:Y&&de?"white":void 0,Xe=(Pe=o==null?void 0:o.theme)!=null&&Pe.logoHeaderBackground&&/^#(000|000000)$/i.test(String(o.theme.logoHeaderBackground).trim())?{...o,theme:{...o.theme,logoHeaderBackground:"white"}}:o;if(!Xe.business_name){E("שם העסק הוא שדה חובה"),W(!1);return}const ce={businessData:Xe,logo:O,websiteUrl:P,...je?{logoBackgroundHex:je}:{}};Z&&(ce.logoToUpload=O),W(!0),E(null);try{const Ye={...Xe};delete Ye._id,delete Ye.__v,Ye.business_address!==void 0&&(Ye.address=Ye.business_address),Array.isArray(Ye.description)&&(Ye.description=Ye.description.filter(Boolean).join(`
520
- `)||""),j&&await ZT(P,Ye)}catch(Ye){const Wt=Ye instanceof Error?Ye.message:String(Ye);if(Wt.includes("404")||Wt.includes("not found"))console.warn("Business analysis not in DB, saving to context only:",Wt);else{console.error("Failed to save business analysis:",Wt),E(`שמירה נכשלה: ${Wt}`),W(!1);return}}W(!1),a(ce),i&&i.triggerEvent("onDataComplete",ce),window.dispatchEvent(new CustomEvent("business-analysis-saved",{detail:o,bubbles:!0,composed:!0})),n(2)};if(p)return A.jsx(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:{xs:2,sm:3,md:5},minHeight:{xs:"300px",sm:"350px",md:"400px"}},children:A.jsx(qK,{text:"Analyzing",showSkeletons:!0})});if(c)return A.jsxs(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"500px"},maxWidth:"100%",boxSizing:"border-box"},children:[A.jsx(jW,{severity:"error",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:c}),A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>n(T),sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"חזרה"})]});if(!o)return null;const Le=(t==null?void 0:t.trim())||(e&&typeof e=="object"&&"websiteUrl"in e?(Me=e.websiteUrl)==null?void 0:Me.trim():"")||((ye=o==null?void 0:o.website)==null?void 0:ye.trim())||"";return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,height:"100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"},children:[A.jsxs(D,{sx:{flex:1,minHeight:0,height:"100%",maxHeight:"calc(90vh - 140px)",overflowY:"auto",overflowX:"hidden",padding:{xs:2,sm:3,md:5},paddingBottom:{xs:1,sm:1.5,md:2},WebkitOverflowScrolling:"touch"},children:[Le&&A.jsx(D,{className:q?Gi.fadeUp:"",sx:{mb:{xs:2,sm:2.5},mt:{xs:.5,sm:1}},children:A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1.25,px:{xs:1.5,sm:2},py:{xs:1,sm:1.125},borderRadius:2,border:"1px solid",borderColor:"divider",maxWidth:"100%",overflow:"hidden",bgcolor:P=>Rn(P.palette.primary.main,.06)},children:[A.jsx($S,{sx:{fontSize:{xs:"1.125rem",sm:"1.25rem"},color:"text.secondary",flexShrink:0,opacity:.85}}),A.jsx(We,{variant:"body2",sx:{fontSize:{xs:"0.8125rem",sm:"0.875rem"},color:"text.primary",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1,direction:"ltr",textAlign:"left",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},children:qs(Le)})]})}),A.jsxs(D,{className:q?Gi.fadeUp:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{mt:Le?{xs:1.5,sm:2}:{xs:4,sm:4},fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:"עריכת פרטי העסק"}),A.jsx(We,{variant:"body2",className:q?Gi.fadeUpDelay1:"",color:"text.secondary",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:"עברו על השדות, עדכנו מה שצריך, והמשיכו לשלב הבא."})]}),A.jsx(D,{className:q?Gi.fadeUpDelay2:"",children:A.jsxs(ma,{title:"לוגו",description:"מומלץ קובץ שקוף או רקע בהיר. אפשר לדלג אם אין לוגו מעודכן.",children:[A.jsx("input",{ref:k,type:"file",accept:"image/*",onChange:R,style:{display:"none"},id:"logo-upload-input"}),x?A.jsxs(D,{sx:{p:{xs:1.5,sm:2,md:2.5},border:"1px dashed",borderColor:"divider",borderRadius:2,bgcolor:P=>Rn(P.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease",mb:{xs:1.5,sm:2},"&:hover":{borderColor:"text.secondary",bgcolor:P=>Rn(P.palette.common.black,.035)}},children:[A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:{xs:1,sm:1.5,md:2},mb:{xs:1.5,sm:2},flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(da,{size:"small",color:"error",onClick:X,sx:{border:"1px solid rgba(211, 47, 47, 0.3)",alignSelf:{xs:"flex-start",sm:"auto"},"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.08)",borderColor:"rgba(211, 47, 47, 0.5)"}},"aria-label":"הסר לוגו",children:A.jsx(Ms,{fontSize:"small"})}),A.jsx(D,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",minHeight:{xs:"80px",sm:"90px",md:"100px"},backgroundColor:(()=>{var O;const P=((O=o==null?void 0:o.theme)==null?void 0:O.logoHeaderBackground)??"white";return/^#(000|000000)$/i.test(P.trim())||/^rgb\s*\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i.test(P.trim())?"white":P})(),borderRadius:1,border:"1px solid rgba(0, 0, 0, 0.08)",p:{xs:.5,sm:1},width:{xs:"100%",sm:"auto"}},children:A.jsx("img",{src:x,alt:"Logo preview",style:{maxWidth:"100%",maxHeight:"100px",objectFit:"contain"}})})]}),A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(Ge,{variant:"outlined",component:"span",startIcon:A.jsx(_S,{}),fullWidth:!0,sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"החלף לוגו"})})]}):A.jsxs(D,{sx:{border:"1px dashed",borderColor:"divider",borderRadius:2,p:{xs:2,sm:2.5,md:3},textAlign:"center",bgcolor:P=>Rn(P.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:"text.secondary",bgcolor:P=>Rn(P.palette.common.black,.035)}},children:[A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(Ge,{variant:"outlined",component:"span",startIcon:A.jsx(HS,{}),sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},px:{xs:2,sm:2.5,md:3},py:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"העלה לוגו"})}),A.jsx(We,{variant:"caption",color:"text.secondary",sx:{mt:{xs:1,sm:1.5},display:"block",fontSize:{xs:"0.7rem",sm:"0.75rem"}},children:"תמונות PNG, JPG או SVG עד 5MB"})]})]})}),A.jsxs(Xt,{spacing:0,className:q?Gi.fadeUpDelay3:"",children:[A.jsx(ma,{title:"פרטי העסק",description:"שם, תעשייה, כתובת והגדרות סוג עסק — משמשים לנתח ולייצר תוצרים מדויקים יותר.",children:A.jsxs(ut,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"שם העסק",value:o.business_name,onChange:P=>re("business_name",P.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ut,{item:!0,xs:12,md:6,children:[A.jsx(It,{fullWidth:!0,label:"שם בעל.ת העסק (מלא)",value:o.owner,onChange:P=>re("owner",P.target.value),variant:"outlined",margin:"normal"}),A.jsxs(Nz,{row:!0,value:o.owner_gender??"",onChange:P=>re("owner_gender",P.target.value),sx:{mt:.5,gap:{xs:.5,sm:1},"& .MuiFormControlLabel-root":{mr:0}},children:[A.jsx(Tc,{value:"male",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(eE,{fontSize:"small"}),A.jsx("span",{children:"זכר"})]}),labelPlacement:"end"}),A.jsx(Tc,{value:"female",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(tE,{fontSize:"small"}),A.jsx("span",{children:"נקבה"})]}),labelPlacement:"end"}),A.jsx(Tc,{value:"other",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(nE,{fontSize:"small"}),A.jsx("span",{children:"אחר"})]}),labelPlacement:"end"})]})]}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(_W,{freeSolo:!0,options:h,value:o.industry||"",onChange:(P,j)=>{re("industry",j||"")},onInputChange:(P,j)=>{re("industry",j)},inputValue:o.industry||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(F==null?void 0:F.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:P,...j})=>A.jsx(D,{...j,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:P}),renderInput:P=>A.jsx(It,{...P,label:"תעשייה",variant:"outlined",margin:"normal"}),noOptionsText:h.length===0?"הקלד תעשייה":"אין אפשרויות"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"סוג עסק",value:o.business_type,onChange:P=>re("business_type",P.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"כתובת העסק",value:o.business_address??"",onChange:P=>re("business_address",P.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ut,{item:!0,xs:12,children:[A.jsx(We,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"אפשרויות סוג עסק"}),(Array.isArray(o.business_type_options)?o.business_type_options:[]).map((P,j)=>A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[A.jsx(It,{fullWidth:!0,value:P,onChange:O=>he("business_type_options",j,O.target.value),variant:"outlined",margin:"normal",size:"small"}),A.jsx(da,{color:"error",onClick:()=>_(j),sx:{mt:1},"aria-label":"הסר אפשרות",children:A.jsx(Ms,{})})]},j)),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:ze,sx:{mt:1},children:"הוספת אפשרות"})]}),A.jsx(ut,{item:!0,xs:12,children:A.jsx(HT,{value:o.keywords,onChange:P=>re("keywords",P)})})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"צבעי מותג",description:"גררו צבעים או עדכנו ראשי ומשני — משפיעים על תצוגת המותג בחוויה.",children:A.jsx(QK,{colors:((De=o.theme)==null?void 0:De.colors)??[],primary:((Qe=o.theme)==null?void 0:Qe.primary)||"",secondary:((Fe=o.theme)==null?void 0:Fe.secondary)||"",onPrimaryChange:P=>ve("primary",P),onSecondaryChange:P=>ve("secondary",P),onColorsChange:fe})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"טון ותוכן",description:"איך העסק נשמע, תיאור קצר וכתובת האתר לעדכון.",children:A.jsxs(ut,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(_W,{freeSolo:!0,options:m,value:o.business_tone||"",onChange:(P,j)=>{re("business_tone",j||"")},onInputChange:(P,j)=>{re("business_tone",j)},inputValue:o.business_tone||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(F==null?void 0:F.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:P,...j})=>A.jsx(D,{...j,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:P}),renderInput:P=>A.jsx(It,{...P,label:"טון עסקי",variant:"outlined",margin:"normal"}),noOptionsText:m.length===0?"הקלד טון עסקי":"אין אפשרויות"})}),A.jsxs(ut,{item:!0,xs:12,children:[A.jsx(We,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"תיאור"}),(Array.isArray(o.description)?o.description:o.description?[o.description]:[""]).map((P,j)=>A.jsxs(D,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1},children:[A.jsx(It,{fullWidth:!0,value:P,onChange:O=>he("description",j,O.target.value),variant:"outlined",margin:"normal",multiline:!0,rows:3,size:"small"}),A.jsx(da,{color:"error",onClick:()=>ge(j),sx:{mt:1},"aria-label":"הסר תיאור",children:A.jsx(Ms,{})})]},j)),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:ee,sx:{mt:1},children:"הוספת תיאור"})]}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"אתר אינטרנט",value:o.website,onChange:P=>re("website",P.target.value),variant:"outlined",margin:"normal"})})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(ma,{title:"קשר ורשתות",description:"אימייל וטלפון ליצירת קשר, וקישורים לפרופילים ציבוריים.",children:[A.jsxs(ut,{container:!0,spacing:{xs:1.5,sm:2},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"אימייל",value:o.contacts.email,onChange:P=>oe("contacts","email",P.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"טלפון",value:o.contacts.phone,onChange:P=>oe("contacts","phone",P.target.value),variant:"outlined",margin:"normal"})})]}),A.jsxs(D,{sx:{mt:{xs:2,sm:2.5},p:{xs:1.5,sm:2},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:P=>Rn(P.palette.common.black,.02)},children:[Object.entries(o.socials).map(([P,j])=>A.jsx(OK,{platform:P,url:j,onPlatformCommit:ue,onUrlChange:Te,onRemove:se},z(P))),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:Ce,sx:{mt:1,textTransform:"none"},children:"הוספת רשת חברתית"})]})]})]})]}),A.jsxs(D,{className:q?Gi.fadeUpDelay4:"",sx:{position:"fixed",bottom:0,left:0,right:0,zIndex:10,padding:{xs:1,sm:1,md:1},paddingTop:{xs:1,sm:1,md:1},backgroundColor:"background.default",borderTop:"1px solid",borderColor:"divider"},children:[C&&A.jsx(jW,{severity:"error",sx:{mb:1},onClose:()=>E(null),children:C}),A.jsxs(ut,{container:!0,spacing:{xs:1,sm:2},sx:{justifyContent:{xs:"center",sm:"space-between"}},children:[A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>n(T),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"חזרה"})}),A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:ne,disabled:f,fullWidth:!0,startIcon:f?A.jsx($r,{size:18,color:"inherit"}):null,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"},minWidth:120},children:f?"שומר...":"שלב הבא"})})]})]})]})}const DK=an(A.jsx("path",{d:"M20.97 7.27c.39-.39.39-1.02 0-1.41l-2.83-2.83a.9959.9959 0 0 0-1.41 0l-4.49 4.49-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52 3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31 7.02 7.5l1.41 1.41 1.19-1.19 1.2 1.2-1.9 1.9zm11.23 7.44-1.19 1.19 1.41 1.41 1.19-1.19 1.27 1.27-1.9 1.9-3.89-3.89 1.9-1.9zM6.41 19H5v-1.41l9.61-9.61 1.3 1.3.11.11zm9.61-12.44 1.41-1.41 1.41 1.41-1.41 1.41z"}),"DesignServicesOutlined");var fh={},YK=qe;Object.defineProperty(fh,"__esModule",{value:!0});var ZE=fh.default=void 0,ZK=YK(Ke()),NK=A;ZE=fh.default=(0,ZK.default)((0,NK.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined");var Wh={},GK=qe;Object.defineProperty(Wh,"__esModule",{value:!0});var NE=Wh.default=void 0,XK=GK(Ke()),gh=A;NE=Wh.default=(0,XK.default)([(0,gh.jsx)("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),(0,gh.jsx)("circle",{cx:"10",cy:"10",r:"2"},"1"),(0,gh.jsx)("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.99 0-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined");var hh={},HK=qe;Object.defineProperty(hh,"__esModule",{value:!0});var mh=hh.default=void 0,_K=HK(Ke()),$K=A;mh=hh.default=(0,_K.default)((0,$K.jsx)("path",{d:"M21 11.01 3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"}),"NotesOutlined");var Ch={},eO=qe;Object.defineProperty(Ch,"__esModule",{value:!0});var GE=Ch.default=void 0,tO=eO(Ke()),nO=A;GE=Ch.default=(0,tO.default)((0,nO.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var vh={},aO=qe;Object.defineProperty(vh,"__esModule",{value:!0});var XE=vh.default=void 0,rO=aO(Ke()),lO=A;XE=vh.default=(0,rO.default)((0,lO.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const HE=[{id:"authentic_text",label:"טקסט אישי",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"webinar",label:"וובינר",questions:[{id:"date",label:"תאריך",inputType:"date"},{id:"time",label:"שעה",inputType:"time"},{id:"topic",label:"נושא / תיאור",inputType:"multiline"}]},{id:"designed_mail",label:"מעוצב(מצב מהיר)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail_advanced",comingSoon:!0,label:"מעצב פרו (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]}];function _E(e){return HE.find(t=>t.id===e)}function yh(e){return e==="other"}function $E(e,t,n){if(e==="other"&&n!=null){const l=n.trim();return l?l+(l.endsWith(".")?"":"."):"אני רוצה לבנות מייל."}const a=_E(e);if(!a)return"";const r=[];if(e==="webinar"){const l=t.date||"",i=t.time||"",o=t.topic||"";return r.push("אני רוצה לבנות מייל לוובינר"),(l||i)&&r.push(`בתאריך ${l}${i?` בשעה ${i}`:""}`),o&&r.push(`, ${o}`),r.join(" ")+"."}if(e==="designed_mail"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב: ${l}.`:"אני רוצה לבנות מייל מעוצב."}if(e==="authentic_text"){const l=t.topic||"";return l?`אני רוצה לבנות מייל בטקסט אישי: ${l}.`:"אני רוצה לבנות מייל בטקסט אישי."}return a.label?`אני רוצה לבנות מייל מסוג ${a.label}.`:""}var Ih={},iO=qe;Object.defineProperty(Ih,"__esModule",{value:!0});var eA=Ih.default=void 0,oO=iO(Ke()),sO=A;eA=Ih.default=(0,oO.default)((0,sO.jsx)("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields");var Sh={},pO=qe;Object.defineProperty(Sh,"__esModule",{value:!0});var js=Sh.default=void 0,uO=pO(Ke()),cO=A;js=Sh.default=(0,uO.default)((0,cO.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");const ex=["newsletter.loadingSteps.building","newsletter.loadingSteps.searchingImages","newsletter.loadingSteps.choosingIcons","newsletter.loadingSteps.analyzing"],Eh=["https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/2762247/pexels-photo-2762247.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/267350/pexels-photo-267350.jpeg?auto=compress&cs=tinysrgb&w=200"],AO={"@keyframes sceneIn":{"0%":{opacity:0,transform:"scale(0.94)"},"100%":{opacity:1,transform:"scale(1)"}},"@keyframes blockDrop":{"0%":{transform:"translate(-10px, -16px)",opacity:.5},"100%":{transform:"translate(0, 0)",opacity:1}},"@keyframes blockFloat":{"0%, 100%":{transform:"translate(0, 0)"},"50%":{transform:"translate(3px, -2px)"}}},Ln={animation:"blockDrop 0.5s ease-out both, blockFloat 2.2s ease-in-out 0.6s infinite",borderRadius:2,border:"1px solid rgba(0, 0, 0, 0.08)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},tx={background:`linear-gradient(135deg, ${_c}61 0%, ${dh}61 100%)`};function dO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(D,{className:"block",sx:{...Ln,width:110,height:26,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:16}})}),A.jsx(D,{className:"block",sx:{...Ln,width:130,height:72},children:A.jsx("img",{src:Eh[0],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})}),A.jsx(D,{className:"block",sx:{...Ln,width:44,height:36,...tx}})]})]})}function fO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(D,{className:"block",sx:{...Ln,width:130,height:68},children:A.jsx("img",{src:Eh[1],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:100,height:24,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:14}})}),A.jsx(D,{className:"block",sx:{...Ln,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})})]}),A.jsx(D,{className:"block",sx:{...Ln,width:90,height:32,bgcolor:"grey.300"}})]})}function WO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:38,height:38,background:Xn,color:"primary.contrastText"},children:A.jsx(js,{sx:{fontSize:22}})}),A.jsx(D,{className:"block",sx:{...Ln,width:50,height:38,...tx}}),A.jsx(D,{className:"block",sx:{...Ln,width:38,height:38,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})})]}),A.jsx(D,{className:"block",sx:{...Ln,width:120,height:70},children:A.jsx("img",{src:Eh[2],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsx(D,{className:"block",sx:{...Ln,width:100,height:22,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:14}})})]})}const nx=[dO,fO,WO];function gO(e){const{t}=Ja(),[n,a]=v.useState(0),[r,l]=v.useState(0);v.useEffect(()=>{const o=setInterval(()=>{a(s=>(s+1)%ex.length)},2500);return()=>clearInterval(o)},[]),v.useEffect(()=>{const o=setInterval(()=>{l(s=>(s+1)%nx.length)},3200);return()=>clearInterval(o)},[]);const i=nx[r];return A.jsxs(D,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:2,paddingTop:4,...AO},children:[A.jsx(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,mb:3,minHeight:180,"& .block":Ln,"& .block:nth-of-type(1)":{animationDelay:"0s, 0.6s"},"& .block:nth-of-type(2)":{animationDelay:"0.12s, 0.72s"},"& .block:nth-of-type(3)":{animationDelay:"0.24s, 0.84s"},"& .block:nth-of-type(4)":{animationDelay:"0.36s, 0.96s"},"& .block:nth-of-type(5)":{animationDelay:"0.48s, 1.08s"},"& .block:nth-of-type(6)":{animationDelay:"0.6s, 1.2s"}},children:A.jsx(D,{sx:{animation:"sceneIn 0.4s ease-out"},children:A.jsx(i,{})},r)}),A.jsx(D,{sx:{display:"flex",gap:.75,mb:1.5},children:[0,1,2,3].map(o=>A.jsx(D,{sx:{width:10,height:10,borderRadius:"50%",...o<=n?{background:Xn}:{bgcolor:"action.hover"},opacity:o===n?1:o<n?.8:.4,transition:"opacity 0.3s ease, background-color 0.3s ease"}},o))}),A.jsx(We,{variant:"body1",sx:{fontWeight:500,color:"text.secondary"},children:t(ex[n])})]})}const ax={IL:"Israel",US:"United States",CA:"Canada",GB:"United Kingdom",UK:"United Kingdom",AU:"Australia",DE:"Germany",FR:"France",ES:"Spain",IT:"Italy",NL:"Netherlands",BR:"Brazil",MX:"Mexico",AR:"Argentina",RU:"Russia",JP:"Japan",CN:"China",IN:"India",ZA:"South Africa",AE:"United Arab Emirates",SA:"Saudi Arabia",PL:"Poland",SE:"Sweden",NO:"Norway",DK:"Denmark",FI:"Finland",CH:"Switzerland",AT:"Austria",BE:"Belgium",PT:"Portugal",GR:"Greece",TR:"Turkey",KR:"South Korea",SG:"Singapore",HK:"Hong Kong",TW:"Taiwan",NZ:"New Zealand",IE:"Ireland"},hO={"Asia/Jerusalem":"Israel","America/New_York":"United States","America/Los_Angeles":"United States","America/Chicago":"United States","America/Toronto":"Canada","America/Vancouver":"Canada","Europe/London":"United Kingdom","Europe/Paris":"France","Europe/Berlin":"Germany","Europe/Madrid":"Spain","Europe/Rome":"Italy","Europe/Amsterdam":"Netherlands","Australia/Sydney":"Australia","Australia/Melbourne":"Australia","Asia/Tokyo":"Japan","Asia/Shanghai":"China","Asia/Dubai":"United Arab Emirates","America/Sao_Paulo":"Brazil","America/Mexico_City":"Mexico"};function mO(){if(typeof navigator>"u")return null;try{const e=navigator,t=[navigator.language,...e.languages??[]].filter(Boolean);for(const n of t){if(!n)continue;const a=new Intl.Locale(n).region;if(a&&ax[a])return ax[a];if(n.startsWith("he")&&!a)return"Israel"}}catch{}try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e){const t=hO[e];if(t)return t;if(e.split("/")[0]==="Asia"&&e.includes("Jerusalem"))return"Israel"}}catch{}return null}const CO={authentic_text:mh,webinar:NE,designed_mail:ZE,designed_mail_advanced:DK};function xh({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(D,{sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(D,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(D,{sx:{flex:1,minHeight:0}}):A.jsx(D,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(D,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function vO({domain:e,mergeTags:t=[],visibilityRules:n,location:a,onResult:r,result:l,language:i}){const{t:o}=Ja(),s=Bs(),{step3Draft:p,setStep3Draft:u}=XS(),[c,d]=v.useState(0),[f,W]=v.useState(null),[C,E]=v.useState({}),[h,g]=v.useState(""),[m,y]=v.useState(!1),[x,S]=v.useState(null),k=f?_E(f):null,B=(k==null?void 0:k.questions)??[],V=a&&a.trim()||mO()||void 0,b=R=>{W(R),E({}),d(1)},w=(R,X)=>{E(G=>({...G,[R]:X}))},M=async()=>{if(h.trim()){y(!0),S(null);try{const R=$E("other",{},h),X=await bE({prompt:R,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:"",...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...i?{language:i}:{},...V?{location:V}:{}});r(X)}catch(R){console.error("Newsletter generation failed:",R),S(o("common.errorGeneric"))}finally{y(!1)}}},z=async(R,X)=>{y(!0),S(null);try{const G=await bE({prompt:R,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:X,...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...i?{language:i}:{},...V?{location:V}:{}});r(G)}catch(G){console.error("Newsletter generation failed:",G),S(o("common.errorGeneric"))}finally{y(!1)}},F=()=>{const R=$E(f,C);R&&z(R,"")},T=()=>{if(s&&l){const R=(p==null?void 0:p.components)??l.components??l.template,X={...l,components:R,template:R};try{s.triggerEvent("onEditPage",X),u(null)}catch{}}},U=()=>{r(null),d(0),W(null),E({}),g(""),S(null)},q=()=>{d(0),W(null),E({}),g("")};if(l&&l.components)return A.jsx(xh,{compactBody:!0,header:A.jsxs(Xt,{spacing:1,children:[A.jsx(We,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:o("newsletter.successHeading")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.55},children:o("newsletter.successMessage")})]}),footer:A.jsxs(Xt,{direction:"row",flexWrap:"wrap",gap:1.5,justifyContent:"flex-start",children:[A.jsx(Ge,{variant:"contained",color:"primary",startIcon:A.jsx(GE,{}),onClick:T,sx:{textTransform:"none"},children:o("newsletter.editDesign")}),A.jsx(Ge,{variant:"outlined",color:"primary",startIcon:A.jsx(XE,{}),onClick:U,sx:{textTransform:"none"},children:o("newsletter.startOver")})]})});if(m)return A.jsx(D,{sx:{height:"100%",minHeight:0,overflow:"auto"},children:A.jsx(gO,{language:i})});const Q=c!==1||!f?"":yh(f)?o("newsletter.tellUs"):k?o(`newsletter.types.${k.id}`):"";if(c===0)return A.jsxs(xh,{header:A.jsxs(Xt,{spacing:1,children:[A.jsx("br",{}),A.jsx("br",{}),A.jsx(We,{component:"h1",variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35,color:"text.primary"},children:o("newsletter.whatType")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55,maxWidth:"52ch"},children:o("newsletter.typeSectionHint")})]}),children:[A.jsx(Xt,{spacing:1.25,children:HE.map(R=>{const X=CO[R.id]??mh;return A.jsx(dU,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",transition:"border-color 0.2s ease, box-shadow 0.2s ease","&:hover":{borderColor:"primary.main",boxShadow:G=>`0 2px 12px ${Rn(G.palette.primary.main,.12)}`},...R.comingSoon?{opacity:.5,cursor:"not-allowed"}:{}},children:A.jsx(CU,{onClick:()=>R.comingSoon?null:b(R.id),sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(EU,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(Xt,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(D,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:G=>Rn(G.palette.primary.main,.08),border:G=>`1px solid ${Rn(G.palette.primary.main,.16)}`},children:A.jsx(X,{sx:{fontSize:24,...zs}})}),A.jsx(We,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:o(`newsletter.types.${R.id}`)}),R.comingSoon?A.jsx(ha,{label:o("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"}):null]})})})},R.id)})}),x?A.jsx(We,{color:"error",variant:"body2",sx:{mt:2},children:x}):null]});const K=yh(f)?A.jsx(Xt,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:M,disabled:!h.trim()||m,sx:{textTransform:"none"},children:m?A.jsx($r,{size:22,color:"inherit"}):o("common.send")})}):A.jsx(Xt,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:F,disabled:m,sx:{textTransform:"none"},children:m?A.jsx($r,{size:22,color:"inherit"}):o("common.continue")})});return A.jsxs(xh,{header:A.jsxs(Xt,{spacing:1.25,children:[A.jsx(Ge,{variant:"text",color:"primary",onClick:q,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:-.5},children:o("newsletter.back")}),A.jsx(We,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:Q}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55},children:o("newsletter.questionsSectionHint")})]}),footer:K,children:[yh(f)?A.jsx(It,{multiline:!0,minRows:4,placeholder:o("newsletter.writeHere"),value:h,onChange:R=>g(R.target.value),fullWidth:!0,variant:"outlined",size:"small"}):A.jsx(Xt,{spacing:2,children:B.map(R=>A.jsx(D,{children:R.inputType==="multiline"?A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{mb:.75,display:"block",fontWeight:600,color:"text.secondary",letterSpacing:"0.02em"},children:o("newsletter.topicLabel")}),A.jsx(It,{multiline:!0,minRows:3,placeholder:o("newsletter.writeHere"),value:C[R.id]??"",onChange:X=>w(R.id,X.target.value),fullWidth:!0,variant:"outlined",size:"small"})]}):A.jsx(It,{label:o(f==="webinar"&&R.id==="topic"?"newsletter.questions.topicShort":`newsletter.questions.${R.id}`),type:R.inputType==="date"?"date":R.inputType==="time"?"time":"text",value:C[R.id]??"",onChange:X=>w(R.id,X.target.value),fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:R.inputType==="date"||R.inputType==="time"?{shrink:!0}:void 0})},R.id))}),x?A.jsx(We,{color:"error",variant:"body2",sx:{mt:2},children:x}):null]})}function yO({setActiveStep:e,placeholderSuggestions:t=[],language:n,data:a={},logo:r="",mergeTags:l=[],visibilityRules:i,location:o,onDesignChange:s}){const{t:p}=Ja(),u=v.useRef(s);u.current=s;const{step2Data:c}=Sg(),{step3Draft:d,setStep3Draft:f}=XS(),W=c||a,C=(W==null?void 0:W.businessData)||W,E=(W==null?void 0:W.websiteUrl)||(C==null?void 0:C.website)||"",h=(c==null?void 0:c.logo)||(W&&typeof W=="object"&&"logo"in W?W.logo:r),g=(c==null?void 0:c.logoBackgroundHex)??(W==null?void 0:W.logoBackgroundHex),m=v.useRef(null),y=v.useRef(!1),x=v.useRef(null),S=v.useRef(!1),[k,B]=v.useState(0),[V,b]=v.useState(0),[w,M]=v.useState([]),[z,F]=v.useState(null);v.useEffect(()=>{var Q;if(S.current)return;const q=d;(Q=q==null?void 0:q.components)!=null&&Q.length&&(S.current=!0,M(Array.isArray(q.components)?q.components:[]),F(q.surveyResult??null))},[d]);const T=q=>{if(q!=null&&q.components){const Q=Array.isArray(q.components)?q.components:[];M(Q),F(q),f({components:Q,surveyResult:q})}else M([]),F(null),f(null),b(Q=>Q+1)};v.useEffect(()=>{},[]),v.useEffect(()=>{var R;if(w.length===0||!m.current)return;const q=m.current.querySelector("iframe");q&&q.remove(),(R=x.current)!=null&&R.parentNode&&x.current.parentNode.removeChild(x.current),x.current=null,y.current=!1,y.current=!0;const Q=document.createElement("iframe");Q.width="100%",Q.height="100%",Q.style.border="none",x.current=Q,m.current.appendChild(Q);let K=!1;return Q.onload=()=>{if(K)return;K=!0;const X=Q.contentDocument,G=Q.contentWindow;if(!X||!G||X.querySelector('script[src*="creaditor.bundle.js"]'))return;X.open(),X.write(`
519
+ )`,animationDelay:`${f*.15}s`}},f))})]}),A.jsxs(We,{className:l?ch:"",sx:{fontSize:{xs:"0.875rem",sm:"1rem"},fontWeight:500,color:"text.secondary"},children:[e,A.jsx("span",{className:ph,children:a})]}),t&&A.jsxs(D,{className:l?Ah:"",sx:{width:"100%",maxWidth:"600px",display:"flex",flexDirection:"column",gap:2,mt:1},children:[A.jsx(fg,{variant:"rectangular",height:60,sx:{borderRadius:2}}),A.jsx(fg,{variant:"rectangular",height:40,width:"80%",sx:{borderRadius:2}}),A.jsx(fg,{variant:"rectangular",height:40,width:"60%",sx:{borderRadius:2}})]})]}):null}const Gi=Vl,jK=["קהילה ועמותות","טכנולוגיה","בריאות","חינוך","אוכל ומסעדות","אופנה","נדל״ן","כספים וביטוח","תחבורה ולוגיסטיקה","תקשורת ושיווק","אמנות ותרבות","ספורט ופנאי","ייעוץ וניהול","מסחר קמעונאי","ייצור","אנרגיה וסביבה","משפטים","בנייה","חקלאות","תיירות","בידור","ביטחון"],TK=["מקצועי","ידידותי","פורמלי","לא פורמלי","חברתי","מעודכן","קלאסי","צעיר","משפחתי","איכותי","מהיר","אמין","יצירתי","חכם","חם","קר","מעורר השראה","מעשי","יוקרתי","נגיש"],qs=e=>{if(!e||typeof e!="string")return e;const t=e.trim();return!t||/^https?:\/\//i.test(t)?t:`https://${t}`};function KK(e,t,n){let a="";const r=n.trim().toLowerCase();if(r)try{const i=/^https?:\/\//i.test(r)?r:`https://${r}`;a=new URL(i).hostname.replace(/^www\./,"")}catch{}const l=`${a} ${r} ${e.toLowerCase()} ${t.toLowerCase()}`;return/linkedin|לינקדאין|לינקדין/.test(l)?oE:/facebook|fb\.com|fb\.me|פייסבוק/.test(l)?aE:/instagram|instagr\.am|אינסטגרם/.test(l)?lE:/youtube|youtu\.be|יוטיוב/.test(l)?pE:/(^|\.)x\.com|twitter\.com|טוויטר|טוויט/.test(l)?cE:/tiktok|טיקטוק|tik tok/.test(l)?EE:/whatsapp|wa\.me|וואטסאפ|ווטסאפ/.test(l)?dE:/telegram|t\.me|טלגרם/.test(l)?WE:/reddit|רדיט/.test(l)?hE:/pinterest|פינטרסט/.test(l)?CE:/github|גיטהאב|גיטהב/.test(l)?yE:SE}function OK({platform:e,url:t,onPlatformCommit:n,onUrlChange:a,onRemove:r}){const[l,i]=v.useState(e);v.useEffect(()=>{i(e)},[e]);const o=v.useCallback(()=>{l!==e&&n(e,l)},[e,l,n]),s=KK(e,l,t);return A.jsxs(D,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1,flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(It,{fullWidth:!0,label:"פלטפורמה",value:l,onChange:p=>i(p.target.value),onBlur:o,onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),p.target.blur())},variant:"outlined",margin:"normal",size:"small",sx:{flex:{xs:"1 1 100%",sm:"0 0 min(200px, 34%)"}},placeholder:"לדוגמה: LinkedIn",InputProps:{startAdornment:A.jsx(og,{position:"start",sx:{mr:0},children:A.jsx(s,{sx:{fontSize:22,color:"primary.main"},"aria-hidden":!0})})}}),A.jsx(It,{fullWidth:!0,label:"קישור",value:t,onChange:p=>a(e,p.target.value),variant:"outlined",margin:"normal",size:"small",sx:{flex:1},placeholder:"https://..."}),A.jsx(da,{color:"error",onClick:()=>r(e),sx:{mt:1},"aria-label":"הסר רשת חברתית",children:A.jsx(Ms,{})})]})}const PK=e=>({business_name:"",industry:"",business_type:"",business_type_options:[],keywords:[],profit_intent:"",is_haredi_sector:null,business_tone:"",description:"",overall_confidence:0,owner:"",owner_gender:"",business_address:"",website:e||"",contacts:{email:"",phone:""},socials:{linkedin:"",instagram:"",facebook:""},theme:void 0,website_confidence:0,confidence_scores:{website:0,contacts:{phone:0},socials:{},overall:0},token_usage:{total:{prompt_tokens:0,completion_tokens:0,total_tokens:0},breakdown:{analyze_business:{prompt_tokens:0,completion_tokens:0,total_tokens:0}}},estimated_cost_usd:0,source_urls:[],analyzed_at:new Date().toISOString()}),$c=e=>{var t,n;return e?{...e,business_address:e.business_address??(e==null?void 0:e.address)??"",business_type_options:Array.isArray(e.business_type_options)?e.business_type_options:[],keywords:Array.isArray(e.keywords)?e.keywords:[],description:Array.isArray(e.description)?e.description:e.description?[e.description]:[""],contacts:{email:((t=e.contacts)==null?void 0:t.email)??"",phone:((n=e.contacts)==null?void 0:n.phone)??""},socials:e.socials&&typeof e.socials=="object"?e.socials:{linkedin:"",instagram:"",facebook:""},theme:(()=>{var i;const a=(i=e.theme)==null?void 0:i.logoHeaderBackground,r=(e==null?void 0:e.logoHeaderBackground)??(e==null?void 0:e.logoBackgroundHex),l=typeof a=="string"?a:typeof r=="string"?r:void 0;if(e.theme)return{primary:e.theme.primary||"",secondary:e.theme.secondary||"",colors:Array.isArray(e.theme.colors)?e.theme.colors:[],...l?{logoHeaderBackground:l}:{}};if(l)return{primary:"",secondary:"",colors:[],logoHeaderBackground:l}})()}:null};function JK({data:e,websiteUrl:t,setActiveStep:n,onSave:a,urls:r,language:l}){var Me,ye,Ze,Qe,Fe;const i=Bs(),[o,s]=v.useState(null),[p,u]=v.useState(!0),[c,d]=v.useState(null),[f,W]=v.useState(!1),[C,E]=v.useState(null),[h,g]=v.useState([]),[m,y]=v.useState([]),[x,S]=v.useState((e==null?void 0:e.logo)||(e&&typeof e=="object"&&"logo"in e?e.logo:"")),k=v.useRef(null),B=v.useRef(""),V=v.useRef(!1),b=v.useRef(new Map),w=v.useRef(0),M=()=>{b.current=new Map,w.current=0},z=P=>{const j=b.current;let O=j.get(P);return O||(O=`social-row-${w.current++}`,j.set(P,O)),O},{shadowRoot:F,stepBeforeStep1:T,step2Data:U}=nl(),[q,Q]=v.useState(!1),K=v.useCallback(P=>{if(!P){S(""),s(O=>{var Z,Y,de,je;return!O||!((Z=O.theme)!=null&&Z.logoHeaderBackground)?O:{...O,theme:{...O.theme,primary:((Y=O.theme)==null?void 0:Y.primary)??"",secondary:((de=O.theme)==null?void 0:de.secondary)??"",colors:((je=O.theme)==null?void 0:je.colors)??[],logoHeaderBackground:void 0}}});return}P.startsWith("http://")||P.startsWith("https://")?NT(P).then(O=>{S(O.pngDataUrl),s(Z=>{var Y,de,je,Xe;return Z&&{...Z,theme:{...Z.theme,primary:((Y=Z.theme)==null?void 0:Y.primary)??"",secondary:((de=Z.theme)==null?void 0:de.secondary)??"",colors:((je=Z.theme)==null?void 0:je.colors)??[],logoHeaderBackground:((Xe=Z.theme)==null?void 0:Xe.logoHeaderBackground)??O.backgroundHex}}})}).catch(()=>{S(P)}):S(P)},[]),R=P=>{var Z;const j=(Z=P.target.files)==null?void 0:Z[0];if(!j)return;if(!j.type.startsWith("image/")){alert("אנא בחר קובץ תמונה בלבד");return}if(j.size>5*1024*1024){alert("קובץ התמונה גדול מדי. אנא בחר קובץ קטן מ-5MB");return}const O=new FileReader;O.onloadend=()=>{const Y=O.result;S(Y)},O.onerror=()=>{alert("שגיאה בקריאת הקובץ. אנא נסה שוב.")},O.readAsDataURL(j)},X=()=>{S(""),s(P=>{var j,O,Z,Y;return(j=P==null?void 0:P.theme)!=null&&j.logoHeaderBackground?{...P,theme:{...P.theme,primary:((O=P.theme)==null?void 0:O.primary)??"",secondary:((Z=P.theme)==null?void 0:Z.secondary)??"",colors:((Y=P.theme)==null?void 0:Y.colors)??[],logoHeaderBackground:void 0}}:P}),k.current&&(k.current.value="")},G=v.useCallback(()=>[...jK].sort(),[]),L=v.useCallback(()=>[...TK].sort(),[]);v.useEffect(()=>{g(G()),y(L())},[G,L]),v.useEffect(()=>{if(o!=null&&o.industry){const P=G();P.includes(o.industry)||P.push(o.industry),g(P.sort())}},[o==null?void 0:o.industry,G]),v.useEffect(()=>{if(o!=null&&o.business_tone){const P=L();P.includes(o.business_tone)||P.push(o.business_tone),y(P.sort())}},[o==null?void 0:o.business_tone,L]);const te=P=>!P||typeof P!="object"?!1:"business_name"in P||"industry"in P||"business_type"in P||"keywords"in P||"description"in P;v.useEffect(()=>{if(e&&te(e)&&e.logo){const P=e.logo;P.startsWith("http://")||P.startsWith("https://")?K(P):S(P)}else if(e&&"logo"in e&&e.logo){const P=e.logo;P.startsWith("http://")||P.startsWith("https://")?K(P):S(P)}},[e,K]),v.useEffect(()=>{!p&&o&&Q(!0)},[p,o]),v.useEffect(()=>{(async()=>{var je,Xe,ce,Re,Ve,Pe,dt,$e;const j=t?qs(t).replace(/\/$/,"").toLowerCase():"",O=t&&t.trim()!=="";if(B.current===j&&o!==null&&O){u(!1);return}if(V.current)return;if(!!!(e&&te(e))&&(U!=null&&U.businessData)&&(U!=null&&U.websiteUrl)){const Je=$c(U.businessData);if(Je){M(),s(Je),u(!1),B.current="",U.logo&&(U.logo.startsWith("http://")||U.logo.startsWith("https://")?K(U.logo):S(U.logo));return}}if(O){const Je=Array.isArray(r)?r.map(qs):[];Je.push(qs(t));try{V.current=!0,u(!0),d(null);const De=await xE(t,Je,"",l);let ot=$c(De);const Ht=(je=e==null?void 0:e.theme)==null?void 0:je.logoHeaderBackground;if(ot&&typeof Ht=="string"&&(ot={...ot,theme:{...ot.theme,primary:((Xe=ot.theme)==null?void 0:Xe.primary)??"",secondary:((ce=ot.theme)==null?void 0:ce.secondary)??"",colors:Array.isArray((Re=ot.theme)==null?void 0:Re.colors)?ot.theme.colors:[],logoHeaderBackground:Ht}}),ot){M(),s(ot),B.current=j;const ke=De==null?void 0:De.logo;ke&&K(ke)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(De){d(De instanceof Error?De.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}return}if(e&&te(e)){const Je=$c(e);if(Je){M(),s(Je),u(!1),B.current="";const De=e==null?void 0:e.logo;De&&(De.startsWith("http://")||De.startsWith("https://")?K(De):S(De));return}}const de=Array.isArray(r)?r.map(qs):[];if(de.length===0){M(),s(PK(t)),u(!1),B.current="";return}try{V.current=!0,u(!0),d(null);const Je=await xE(t,de,"",l);let De=$c(Je);const ot=(Ve=e==null?void 0:e.theme)==null?void 0:Ve.logoHeaderBackground;if(De&&typeof ot=="string"&&(De={...De,theme:{...De.theme,primary:((Pe=De.theme)==null?void 0:Pe.primary)??"",secondary:((dt=De.theme)==null?void 0:dt.secondary)??"",colors:Array.isArray(($e=De.theme)==null?void 0:$e.colors)?De.theme.colors:[],logoHeaderBackground:ot}}),De){M(),s(De),B.current="";const Ht=Je==null?void 0:Je.logo;Ht&&K(Ht)}else d("שגיאה בעיבוד הנתונים שהתקבלו מהשרת")}catch(Je){d(Je instanceof Error?Je.message:"שגיאה בטעינת הנתונים")}finally{u(!1),V.current=!1}})()},[t,U]);const re=(P,j)=>{o&&s({...o,[P]:j})},oe=(P,j,O)=>{o&&s({...o,[P]:{...o[P],[j]:O}})},ve=(P,j)=>{if(o){const O=o.theme||{primary:"",secondary:"",colors:[]};s({...o,theme:{...O,[P]:j}})}},fe=P=>{if(!o)return;const j={primary:"",secondary:"",colors:[],...o.theme},O=je=>je.toLowerCase(),Z=new Set(P.map(O)),Y=j.primary&&Z.has(O(j.primary))?j.primary:"",de=j.secondary&&Z.has(O(j.secondary))?j.secondary:"";s({...o,theme:{...j,primary:Y,secondary:de,colors:P}})},he=(P,j,O)=>{if(o)if(P==="description"){const Y=[...Array.isArray(o.description)?o.description:o.description?[o.description]:[""]];Y[j]=O,s({...o,description:Y})}else{const Z=[...o[P]];Z[j]=O,s({...o,[P]:Z})}},ze=()=>{if(o){const P=[...o.business_type_options,""];s({...o,business_type_options:P})}},_=P=>{if(o){const j=o.business_type_options.filter((O,Z)=>Z!==P);s({...o,business_type_options:j})}},ee=()=>{if(o){const j=[...Array.isArray(o.description)?o.description:o.description?[o.description]:[""],""];s({...o,description:j})}},ge=P=>{if(o){const O=(Array.isArray(o.description)?o.description:o.description?[o.description]:[""]).filter((Z,Y)=>Y!==P);s({...o,description:O.length>0?O:[""]})}},Ce=()=>{if(o){const P={...o.socials};let j=1,O="social_media";for(;P[O];)O=`social_media_${j}`,j++;P[O]="",b.current.has(O)||b.current.set(O,`social-row-${w.current++}`),s({...o,socials:P})}},se=P=>{if(o){b.current.delete(P);const j={...o.socials};delete j[P],s({...o,socials:j})}},ue=(P,j)=>{if(o&&P!==j){const O={...o.socials},Z=O[P]||"";delete O[P];const Y=j.trim(),de=b.current.get(P);de&&(b.current.delete(P),Y&&b.current.set(Y,de)),Y&&(O[Y]&&Y!==P?O[Y]=Z||O[Y]:O[Y]=Z),s({...o,socials:O})}},Te=(P,j)=>{if(o){const O={...o.socials};O[P]=j,s({...o,socials:O})}},ne=async()=>{var Re,Ve,Pe,dt;if(!o)return;const P=(t==null?void 0:t.trim())||((Re=o.website)==null?void 0:Re.trim())||"";let j=!0;(Ve=o.website)!=null&&Ve.trim()||(j=!1);const O=x||"",Z=O.startsWith("data:image/"),Y=(Pe=o==null?void 0:o.theme)==null?void 0:Pe.logoHeaderBackground,de=Y&&/^#(000|000000)$/i.test(String(Y).trim()),je=Y&&!de?Y:Y&&de?"white":void 0,Xe=(dt=o==null?void 0:o.theme)!=null&&dt.logoHeaderBackground&&/^#(000|000000)$/i.test(String(o.theme.logoHeaderBackground).trim())?{...o,theme:{...o.theme,logoHeaderBackground:"white"}}:o;if(!Xe.business_name){E("שם העסק הוא שדה חובה"),W(!1);return}const ce={businessData:Xe,logo:O,websiteUrl:P,...je?{logoBackgroundHex:je}:{}};Z&&(ce.logoToUpload=O),W(!0),E(null);try{const $e={...Xe};delete $e._id,delete $e.__v,$e.business_address!==void 0&&($e.address=$e.business_address),Array.isArray($e.description)&&($e.description=$e.description.filter(Boolean).join(`
520
+ `)||""),j&&await ZT(P,$e)}catch($e){const Je=$e instanceof Error?$e.message:String($e);if(Je.includes("404")||Je.includes("not found"))console.warn("Business analysis not in DB, saving to context only:",Je);else{console.error("Failed to save business analysis:",Je),E(`שמירה נכשלה: ${Je}`),W(!1);return}}W(!1),a(ce),i&&i.triggerEvent("onDataComplete",ce),window.dispatchEvent(new CustomEvent("business-analysis-saved",{detail:o,bubbles:!0,composed:!0})),n(2)};if(p)return A.jsx(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:{xs:2,sm:3,md:5},minHeight:{xs:"300px",sm:"350px",md:"400px"}},children:A.jsx(qK,{text:"Analyzing",showSkeletons:!0})});if(c)return A.jsxs(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"500px"},maxWidth:"100%",boxSizing:"border-box"},children:[A.jsx(jW,{severity:"error",sx:{fontSize:{xs:"0.875rem",sm:"1rem"}},children:c}),A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>n(T),sx:{mt:2,fontSize:{xs:"0.875rem",sm:"1rem"}},children:"חזרה"})]});if(!o)return null;const Le=(t==null?void 0:t.trim())||(e&&typeof e=="object"&&"websiteUrl"in e?(Me=e.websiteUrl)==null?void 0:Me.trim():"")||((ye=o==null?void 0:o.website)==null?void 0:ye.trim())||"";return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",flex:1,minHeight:0,height:"100%",width:"100%",maxWidth:"100%",boxSizing:"border-box",overflow:"hidden"},children:[A.jsxs(D,{sx:{flex:1,minHeight:0,height:"100%",maxHeight:"calc(90vh - 140px)",overflowY:"auto",overflowX:"hidden",padding:{xs:2,sm:3,md:5},paddingBottom:{xs:1,sm:1.5,md:2},WebkitOverflowScrolling:"touch"},children:[Le&&A.jsx(D,{className:q?Gi.fadeUp:"",sx:{mb:{xs:2,sm:2.5},mt:{xs:.5,sm:1}},children:A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1.25,px:{xs:1.5,sm:2},py:{xs:1,sm:1.125},borderRadius:2,border:"1px solid",borderColor:"divider",maxWidth:"100%",overflow:"hidden",bgcolor:P=>Rn(P.palette.primary.main,.06)},children:[A.jsx($S,{sx:{fontSize:{xs:"1.125rem",sm:"1.25rem"},color:"text.secondary",flexShrink:0,opacity:.85}}),A.jsx(We,{variant:"body2",sx:{fontSize:{xs:"0.8125rem",sm:"0.875rem"},color:"text.primary",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",flex:1,direction:"ltr",textAlign:"left",fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',fontWeight:500},children:qs(Le)})]})}),A.jsxs(D,{className:q?Gi.fadeUp:"",sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{mt:Le?{xs:1.5,sm:2}:{xs:4,sm:4},fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:"עריכת פרטי העסק"}),A.jsx(We,{variant:"body2",className:q?Gi.fadeUpDelay1:"",color:"text.secondary",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(48ch, 100%)",lineHeight:1.55},children:"עברו על השדות, עדכנו מה שצריך, והמשיכו לשלב הבא."})]}),A.jsx(D,{className:q?Gi.fadeUpDelay2:"",children:A.jsxs(ma,{title:"לוגו",description:"מומלץ קובץ שקוף או רקע בהיר. אפשר לדלג אם אין לוגו מעודכן.",children:[A.jsx("input",{ref:k,type:"file",accept:"image/*",onChange:R,style:{display:"none"},id:"logo-upload-input"}),x?A.jsxs(D,{sx:{p:{xs:1.5,sm:2,md:2.5},border:"1px dashed",borderColor:"divider",borderRadius:2,bgcolor:P=>Rn(P.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease",mb:{xs:1.5,sm:2},"&:hover":{borderColor:"text.secondary",bgcolor:P=>Rn(P.palette.common.black,.035)}},children:[A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:{xs:1,sm:1.5,md:2},mb:{xs:1.5,sm:2},flexDirection:{xs:"column",sm:"row"}},children:[A.jsx(da,{size:"small",color:"error",onClick:X,sx:{border:"1px solid rgba(211, 47, 47, 0.3)",alignSelf:{xs:"flex-start",sm:"auto"},"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.08)",borderColor:"rgba(211, 47, 47, 0.5)"}},"aria-label":"הסר לוגו",children:A.jsx(Ms,{fontSize:"small"})}),A.jsx(D,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",minHeight:{xs:"80px",sm:"90px",md:"100px"},backgroundColor:(()=>{var O;const P=((O=o==null?void 0:o.theme)==null?void 0:O.logoHeaderBackground)??"white";return/^#(000|000000)$/i.test(P.trim())||/^rgb\s*\(\s*0\s*,\s*0\s*,\s*0\s*\)$/i.test(P.trim())?"white":P})(),borderRadius:1,border:"1px solid rgba(0, 0, 0, 0.08)",p:{xs:.5,sm:1},width:{xs:"100%",sm:"auto"}},children:A.jsx("img",{src:x,alt:"Logo preview",style:{maxWidth:"100%",maxHeight:"100px",objectFit:"contain"}})})]}),A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(Ge,{variant:"outlined",component:"span",startIcon:A.jsx(_S,{}),fullWidth:!0,sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"החלף לוגו"})})]}):A.jsxs(D,{sx:{border:"1px dashed",borderColor:"divider",borderRadius:2,p:{xs:2,sm:2.5,md:3},textAlign:"center",bgcolor:P=>Rn(P.palette.common.black,.02),transition:"border-color 0.2s ease, background-color 0.2s ease","&:hover":{borderColor:"text.secondary",bgcolor:P=>Rn(P.palette.common.black,.035)}},children:[A.jsx("label",{htmlFor:"logo-upload-input",children:A.jsx(Ge,{variant:"outlined",component:"span",startIcon:A.jsx(HS,{}),sx:{textTransform:"none",borderRadius:{xs:1.5,sm:2},px:{xs:2,sm:2.5,md:3},py:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"העלה לוגו"})}),A.jsx(We,{variant:"caption",color:"text.secondary",sx:{mt:{xs:1,sm:1.5},display:"block",fontSize:{xs:"0.7rem",sm:"0.75rem"}},children:"תמונות PNG, JPG או SVG עד 5MB"})]})]})}),A.jsxs(Xt,{spacing:0,className:q?Gi.fadeUpDelay3:"",children:[A.jsx(ma,{title:"פרטי העסק",description:"שם, תעשייה, כתובת והגדרות סוג עסק — משמשים לנתח ולייצר תוצרים מדויקים יותר.",children:A.jsxs(ut,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"שם העסק",value:o.business_name,onChange:P=>re("business_name",P.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ut,{item:!0,xs:12,md:6,children:[A.jsx(It,{fullWidth:!0,label:"שם בעל.ת העסק (מלא)",value:o.owner,onChange:P=>re("owner",P.target.value),variant:"outlined",margin:"normal"}),A.jsxs(Nz,{row:!0,value:o.owner_gender??"",onChange:P=>re("owner_gender",P.target.value),sx:{mt:.5,gap:{xs:.5,sm:1},"& .MuiFormControlLabel-root":{mr:0}},children:[A.jsx(Tc,{value:"male",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(eE,{fontSize:"small"}),A.jsx("span",{children:"זכר"})]}),labelPlacement:"end"}),A.jsx(Tc,{value:"female",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(tE,{fontSize:"small"}),A.jsx("span",{children:"נקבה"})]}),labelPlacement:"end"}),A.jsx(Tc,{value:"other",control:A.jsx(Ag,{size:"small"}),label:A.jsxs(D,{component:"span",sx:{display:"flex",alignItems:"center",gap:.5},children:[A.jsx(nE,{fontSize:"small"}),A.jsx("span",{children:"אחר"})]}),labelPlacement:"end"})]})]}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(_W,{freeSolo:!0,options:h,value:o.industry||"",onChange:(P,j)=>{re("industry",j||"")},onInputChange:(P,j)=>{re("industry",j)},inputValue:o.industry||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(F==null?void 0:F.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:P,...j})=>A.jsx(D,{...j,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:P}),renderInput:P=>A.jsx(It,{...P,label:"תעשייה",variant:"outlined",margin:"normal"}),noOptionsText:h.length===0?"הקלד תעשייה":"אין אפשרויות"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"סוג עסק",value:o.business_type,onChange:P=>re("business_type",P.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"כתובת העסק",value:o.business_address??"",onChange:P=>re("business_address",P.target.value),variant:"outlined",margin:"normal"})}),A.jsxs(ut,{item:!0,xs:12,children:[A.jsx(We,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"אפשרויות סוג עסק"}),(Array.isArray(o.business_type_options)?o.business_type_options:[]).map((P,j)=>A.jsxs(D,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[A.jsx(It,{fullWidth:!0,value:P,onChange:O=>he("business_type_options",j,O.target.value),variant:"outlined",margin:"normal",size:"small"}),A.jsx(da,{color:"error",onClick:()=>_(j),sx:{mt:1},"aria-label":"הסר אפשרות",children:A.jsx(Ms,{})})]},j)),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:ze,sx:{mt:1},children:"הוספת אפשרות"})]}),A.jsx(ut,{item:!0,xs:12,children:A.jsx(HT,{value:o.keywords,onChange:P=>re("keywords",P)})})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"צבעי מותג",description:"גררו צבעים או עדכנו ראשי ומשני — משפיעים על תצוגת המותג בחוויה.",children:A.jsx(QK,{colors:((Ze=o.theme)==null?void 0:Ze.colors)??[],primary:((Qe=o.theme)==null?void 0:Qe.primary)||"",secondary:((Fe=o.theme)==null?void 0:Fe.secondary)||"",onPrimaryChange:P=>ve("primary",P),onSecondaryChange:P=>ve("secondary",P),onColorsChange:fe})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:"טון ותוכן",description:"איך העסק נשמע, תיאור קצר וכתובת האתר לעדכון.",children:A.jsxs(ut,{container:!0,spacing:{xs:2,sm:2.5,md:3},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(_W,{freeSolo:!0,options:m,value:o.business_tone||"",onChange:(P,j)=>{re("business_tone",j||"")},onInputChange:(P,j)=>{re("business_tone",j)},inputValue:o.business_tone||"",openOnFocus:!0,disablePortal:!0,componentsProps:{popper:{container:(F==null?void 0:F.getElementById("cdtr-business-ai-root"))||void 0,style:{zIndex:9999},modifiers:[{name:"offset",options:{offset:[0,4]}}]}},ListboxProps:{sx:{maxHeight:"300px","& .MuiAutocomplete-option":{padding:"8px 16px","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.04)"},"&[aria-selected='true']":{backgroundColor:"rgba(0, 0, 0, 0.08)"}}}},PaperComponent:({children:P,...j})=>A.jsx(D,{...j,sx:{borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.1)",marginTop:"4px",backgroundColor:"white"},children:P}),renderInput:P=>A.jsx(It,{...P,label:"טון עסקי",variant:"outlined",margin:"normal"}),noOptionsText:m.length===0?"הקלד טון עסקי":"אין אפשרויות"})}),A.jsxs(ut,{item:!0,xs:12,children:[A.jsx(We,{variant:"subtitle2",sx:{mb:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"1rem"}},children:"תיאור"}),(Array.isArray(o.description)?o.description:o.description?[o.description]:[""]).map((P,j)=>A.jsxs(D,{sx:{display:"flex",alignItems:"flex-start",gap:1,mb:1},children:[A.jsx(It,{fullWidth:!0,value:P,onChange:O=>he("description",j,O.target.value),variant:"outlined",margin:"normal",multiline:!0,rows:3,size:"small"}),A.jsx(da,{color:"error",onClick:()=>ge(j),sx:{mt:1},"aria-label":"הסר תיאור",children:A.jsx(Ms,{})})]},j)),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:ee,sx:{mt:1},children:"הוספת תיאור"})]}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"אתר אינטרנט",value:o.website,onChange:P=>re("website",P.target.value),variant:"outlined",margin:"normal"})})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(ma,{title:"קשר ורשתות",description:"אימייל וטלפון ליצירת קשר, וקישורים לפרופילים ציבוריים.",children:[A.jsxs(ut,{container:!0,spacing:{xs:1.5,sm:2},children:[A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"אימייל",value:o.contacts.email,onChange:P=>oe("contacts","email",P.target.value),variant:"outlined",margin:"normal"})}),A.jsx(ut,{item:!0,xs:12,md:6,children:A.jsx(It,{fullWidth:!0,label:"טלפון",value:o.contacts.phone,onChange:P=>oe("contacts","phone",P.target.value),variant:"outlined",margin:"normal"})})]}),A.jsxs(D,{sx:{mt:{xs:2,sm:2.5},p:{xs:1.5,sm:2},borderRadius:2,border:"1px solid",borderColor:"divider",bgcolor:P=>Rn(P.palette.common.black,.02)},children:[Object.entries(o.socials).map(([P,j])=>A.jsx(OK,{platform:P,url:j,onPlatformCommit:ue,onUrlChange:Te,onRemove:se},z(P))),A.jsx(Ge,{variant:"outlined",startIcon:A.jsx(Ul,{}),onClick:Ce,sx:{mt:1,textTransform:"none"},children:"הוספת רשת חברתית"})]})]})]})]}),A.jsxs(D,{className:q?Gi.fadeUpDelay4:"",sx:{position:"fixed",bottom:0,left:0,right:0,zIndex:10,padding:{xs:1,sm:1,md:1},paddingTop:{xs:1,sm:1,md:1},backgroundColor:"background.default",borderTop:"1px solid",borderColor:"divider"},children:[C&&A.jsx(jW,{severity:"error",sx:{mb:1},onClose:()=>E(null),children:C}),A.jsxs(ut,{container:!0,spacing:{xs:1,sm:2},sx:{justifyContent:{xs:"center",sm:"space-between"}},children:[A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"text",color:"primary",onClick:()=>n(T),fullWidth:!0,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"}},children:"חזרה"})}),A.jsx(ut,{item:!0,xs:12,sm:"auto",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:ne,disabled:f,fullWidth:!0,startIcon:f?A.jsx($r,{size:18,color:"inherit"}):null,sx:{fontSize:{xs:"0.875rem",sm:"1rem"},maxWidth:{xs:"100%",sm:"auto"},minWidth:120},children:f?"שומר...":"שלב הבא"})})]})]})]})}const DK=an(A.jsx("path",{d:"M20.97 7.27c.39-.39.39-1.02 0-1.41l-2.83-2.83a.9959.9959 0 0 0-1.41 0l-4.49 4.49-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52 3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31 7.02 7.5l1.41 1.41 1.19-1.19 1.2 1.2-1.9 1.9zm11.23 7.44-1.19 1.19 1.41 1.41 1.19-1.19 1.27 1.27-1.9 1.9-3.89-3.89 1.9-1.9zM6.41 19H5v-1.41l9.61-9.61 1.3 1.3.11.11zm9.61-12.44 1.41-1.41 1.41 1.41-1.41 1.41z"}),"DesignServicesOutlined");var fh={},YK=qe;Object.defineProperty(fh,"__esModule",{value:!0});var ZE=fh.default=void 0,ZK=YK(Ke()),NK=A;ZE=fh.default=(0,ZK.default)((0,NK.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm0 6-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25zm-7.5-5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zm-1.51 3.49L9 15.17l-.99-2.18L5.83 12l2.18-.99L9 8.83l.99 2.18 2.18.99z"}),"AutoAwesomeOutlined");var Wh={},GK=qe;Object.defineProperty(Wh,"__esModule",{value:!0});var NE=Wh.default=void 0,XK=GK(Ke()),gh=A;NE=Wh.default=(0,XK.default)([(0,gh.jsx)("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),(0,gh.jsx)("circle",{cx:"10",cy:"10",r:"2"},"1"),(0,gh.jsx)("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.99 0-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined");var hh={},HK=qe;Object.defineProperty(hh,"__esModule",{value:!0});var mh=hh.default=void 0,_K=HK(Ke()),$K=A;mh=hh.default=(0,_K.default)((0,$K.jsx)("path",{d:"M21 11.01 3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"}),"NotesOutlined");var Ch={},eO=qe;Object.defineProperty(Ch,"__esModule",{value:!0});var GE=Ch.default=void 0,tO=eO(Ke()),nO=A;GE=Ch.default=(0,tO.default)((0,nO.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit");var vh={},aO=qe;Object.defineProperty(vh,"__esModule",{value:!0});var XE=vh.default=void 0,rO=aO(Ke()),lO=A;XE=vh.default=(0,rO.default)((0,lO.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const HE=[{id:"authentic_text",label:"טקסט אישי",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"webinar",label:"וובינר",questions:[{id:"date",label:"תאריך",inputType:"date"},{id:"time",label:"שעה",inputType:"time"},{id:"topic",label:"נושא / תיאור",inputType:"multiline"}]},{id:"designed_mail",label:"מעוצב(מצב מהיר)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]},{id:"designed_mail_advanced",comingSoon:!0,label:"מעצב פרו (סטודיו)",questions:[{id:"topic",label:"נושא / תיאור קצר",inputType:"multiline"}]}];function _E(e){return HE.find(t=>t.id===e)}function yh(e){return e==="other"}function $E(e,t,n){if(e==="other"&&n!=null){const l=n.trim();return l?l+(l.endsWith(".")?"":"."):"אני רוצה לבנות מייל."}const a=_E(e);if(!a)return"";const r=[];if(e==="webinar"){const l=t.date||"",i=t.time||"",o=t.topic||"";return r.push("אני רוצה לבנות מייל לוובינר"),(l||i)&&r.push(`בתאריך ${l}${i?` בשעה ${i}`:""}`),o&&r.push(`, ${o}`),r.join(" ")+"."}if(e==="designed_mail"){const l=t.topic||"";return l?`אני רוצה לבנות מייל מעוצב: ${l}.`:"אני רוצה לבנות מייל מעוצב."}if(e==="authentic_text"){const l=t.topic||"";return l?`אני רוצה לבנות מייל בטקסט אישי: ${l}.`:"אני רוצה לבנות מייל בטקסט אישי."}return a.label?`אני רוצה לבנות מייל מסוג ${a.label}.`:""}var Ih={},iO=qe;Object.defineProperty(Ih,"__esModule",{value:!0});var eA=Ih.default=void 0,oO=iO(Ke()),sO=A;eA=Ih.default=(0,oO.default)((0,sO.jsx)("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields");var Sh={},pO=qe;Object.defineProperty(Sh,"__esModule",{value:!0});var js=Sh.default=void 0,uO=pO(Ke()),cO=A;js=Sh.default=(0,uO.default)((0,cO.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11"}),"Extension");const ex=["newsletter.loadingSteps.building","newsletter.loadingSteps.searchingImages","newsletter.loadingSteps.choosingIcons","newsletter.loadingSteps.analyzing"],Eh=["https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/2762247/pexels-photo-2762247.jpeg?auto=compress&cs=tinysrgb&w=200","https://images.pexels.com/photos/267350/pexels-photo-267350.jpeg?auto=compress&cs=tinysrgb&w=200"],AO={"@keyframes sceneIn":{"0%":{opacity:0,transform:"scale(0.94)"},"100%":{opacity:1,transform:"scale(1)"}},"@keyframes blockDrop":{"0%":{transform:"translate(-10px, -16px)",opacity:.5},"100%":{transform:"translate(0, 0)",opacity:1}},"@keyframes blockFloat":{"0%, 100%":{transform:"translate(0, 0)"},"50%":{transform:"translate(3px, -2px)"}}},Ln={animation:"blockDrop 0.5s ease-out both, blockFloat 2.2s ease-in-out 0.6s infinite",borderRadius:2,border:"1px solid rgba(0, 0, 0, 0.08)",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},tx={background:`linear-gradient(135deg, ${_c}61 0%, ${dh}61 100%)`};function dO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(D,{className:"block",sx:{...Ln,width:110,height:26,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:16}})}),A.jsx(D,{className:"block",sx:{...Ln,width:130,height:72},children:A.jsx("img",{src:Eh[0],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})}),A.jsx(D,{className:"block",sx:{...Ln,width:44,height:36,...tx}})]})]})}function fO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsx(D,{className:"block",sx:{...Ln,width:130,height:68},children:A.jsx("img",{src:Eh[1],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:100,height:24,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:14}})}),A.jsx(D,{className:"block",sx:{...Ln,width:36,height:36,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})})]}),A.jsx(D,{className:"block",sx:{...Ln,width:90,height:32,bgcolor:"grey.300"}})]})}function WO(){return A.jsxs(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5},children:[A.jsxs(D,{sx:{display:"flex",gap:1},children:[A.jsx(D,{className:"block",sx:{...Ln,width:38,height:38,background:Xn,color:"primary.contrastText"},children:A.jsx(js,{sx:{fontSize:22}})}),A.jsx(D,{className:"block",sx:{...Ln,width:50,height:38,...tx}}),A.jsx(D,{className:"block",sx:{...Ln,width:38,height:38,bgcolor:"secondary.main",color:"secondary.contrastText"},children:A.jsx(js,{sx:{fontSize:20}})})]}),A.jsx(D,{className:"block",sx:{...Ln,width:120,height:70},children:A.jsx("img",{src:Eh[2],alt:"",style:{width:"100%",height:"100%",objectFit:"cover"}})}),A.jsx(D,{className:"block",sx:{...Ln,width:100,height:22,background:Xn,color:"primary.contrastText"},children:A.jsx(eA,{sx:{fontSize:14}})})]})}const nx=[dO,fO,WO];function gO(e){const{t}=Ja(),[n,a]=v.useState(0),[r,l]=v.useState(0);v.useEffect(()=>{const o=setInterval(()=>{a(s=>(s+1)%ex.length)},2500);return()=>clearInterval(o)},[]),v.useEffect(()=>{const o=setInterval(()=>{l(s=>(s+1)%nx.length)},3200);return()=>clearInterval(o)},[]);const i=nx[r];return A.jsxs(D,{sx:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:2,paddingTop:4,...AO},children:[A.jsx(D,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,mb:3,minHeight:180,"& .block":Ln,"& .block:nth-of-type(1)":{animationDelay:"0s, 0.6s"},"& .block:nth-of-type(2)":{animationDelay:"0.12s, 0.72s"},"& .block:nth-of-type(3)":{animationDelay:"0.24s, 0.84s"},"& .block:nth-of-type(4)":{animationDelay:"0.36s, 0.96s"},"& .block:nth-of-type(5)":{animationDelay:"0.48s, 1.08s"},"& .block:nth-of-type(6)":{animationDelay:"0.6s, 1.2s"}},children:A.jsx(D,{sx:{animation:"sceneIn 0.4s ease-out"},children:A.jsx(i,{})},r)}),A.jsx(D,{sx:{display:"flex",gap:.75,mb:1.5},children:[0,1,2,3].map(o=>A.jsx(D,{sx:{width:10,height:10,borderRadius:"50%",...o<=n?{background:Xn}:{bgcolor:"action.hover"},opacity:o===n?1:o<n?.8:.4,transition:"opacity 0.3s ease, background-color 0.3s ease"}},o))}),A.jsx(We,{variant:"body1",sx:{fontWeight:500,color:"text.secondary"},children:t(ex[n])})]})}const ax={IL:"Israel",US:"United States",CA:"Canada",GB:"United Kingdom",UK:"United Kingdom",AU:"Australia",DE:"Germany",FR:"France",ES:"Spain",IT:"Italy",NL:"Netherlands",BR:"Brazil",MX:"Mexico",AR:"Argentina",RU:"Russia",JP:"Japan",CN:"China",IN:"India",ZA:"South Africa",AE:"United Arab Emirates",SA:"Saudi Arabia",PL:"Poland",SE:"Sweden",NO:"Norway",DK:"Denmark",FI:"Finland",CH:"Switzerland",AT:"Austria",BE:"Belgium",PT:"Portugal",GR:"Greece",TR:"Turkey",KR:"South Korea",SG:"Singapore",HK:"Hong Kong",TW:"Taiwan",NZ:"New Zealand",IE:"Ireland"},hO={"Asia/Jerusalem":"Israel","America/New_York":"United States","America/Los_Angeles":"United States","America/Chicago":"United States","America/Toronto":"Canada","America/Vancouver":"Canada","Europe/London":"United Kingdom","Europe/Paris":"France","Europe/Berlin":"Germany","Europe/Madrid":"Spain","Europe/Rome":"Italy","Europe/Amsterdam":"Netherlands","Australia/Sydney":"Australia","Australia/Melbourne":"Australia","Asia/Tokyo":"Japan","Asia/Shanghai":"China","Asia/Dubai":"United Arab Emirates","America/Sao_Paulo":"Brazil","America/Mexico_City":"Mexico"};function mO(){if(typeof navigator>"u")return null;try{const e=navigator,t=[navigator.language,...e.languages??[]].filter(Boolean);for(const n of t){if(!n)continue;const a=new Intl.Locale(n).region;if(a&&ax[a])return ax[a];if(n.startsWith("he")&&!a)return"Israel"}}catch{}try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e){const t=hO[e];if(t)return t;if(e.split("/")[0]==="Asia"&&e.includes("Jerusalem"))return"Israel"}}catch{}return null}const CO={authentic_text:mh,webinar:NE,designed_mail:ZE,designed_mail_advanced:DK};function xh({header:e,children:t,footer:n,compactBody:a}){return A.jsxs(D,{sx:{height:"100%",minHeight:0,display:"flex",flexDirection:"column",bgcolor:"background.paper"},children:[A.jsx(D,{sx:{flexShrink:0,pt:{xs:6,sm:7},px:2.5,pb:2,borderBottom:"1px solid",borderColor:"divider"},children:e}),a?A.jsx(D,{sx:{flex:1,minHeight:0}}):A.jsx(D,{sx:{flex:1,minHeight:0,overflow:"auto",px:2.5,py:2,WebkitOverflowScrolling:"touch"},children:t}),n?A.jsx(D,{sx:{flexShrink:0,px:2.5,py:2,borderTop:"1px solid",borderColor:"divider",bgcolor:"background.paper"},children:n}):null]})}function vO({domain:e,mergeTags:t=[],visibilityRules:n,location:a,onResult:r,result:l,language:i}){const{t:o}=Ja(),s=Bs(),{step3Draft:p,setStep3Draft:u}=XS(),[c,d]=v.useState(0),[f,W]=v.useState(null),[C,E]=v.useState({}),[h,g]=v.useState(""),[m,y]=v.useState(!1),[x,S]=v.useState(null),k=f?_E(f):null,B=(k==null?void 0:k.questions)??[],V=a&&a.trim()||mO()||void 0,b=R=>{W(R),E({}),d(1)},w=(R,X)=>{E(G=>({...G,[R]:X}))},M=async()=>{if(h.trim()){y(!0),S(null);try{const R=$E("other",{},h),X=await bE({prompt:R,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:"",...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...i?{language:i}:{},...V?{location:V}:{}});r(X)}catch(R){console.error("Newsletter generation failed:",R),S(o("common.errorGeneric"))}finally{y(!1)}}},z=async(R,X)=>{y(!0),S(null);try{const G=await bE({prompt:R,domain:e,mergeTags:t,structureUrl:"",textStyleUrl:X,...n&&Object.keys(n).length>0?{visibilityRules:n}:{},...i?{language:i}:{},...V?{location:V}:{}});r(G)}catch(G){console.error("Newsletter generation failed:",G),S(o("common.errorGeneric"))}finally{y(!1)}},F=()=>{const R=$E(f,C);R&&z(R,"")},T=()=>{if(s&&l){const R=(p==null?void 0:p.components)??l.components??l.template,X={...l,components:R,template:R};try{s.triggerEvent("onEditPage",X),u(null)}catch{}}},U=()=>{r(null),d(0),W(null),E({}),g(""),S(null)},q=()=>{d(0),W(null),E({}),g("")};if(l&&l.components)return A.jsx(xh,{compactBody:!0,header:A.jsxs(Xt,{spacing:1,children:[A.jsx(We,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:o("newsletter.successHeading")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{lineHeight:1.55},children:o("newsletter.successMessage")})]}),footer:A.jsxs(Xt,{direction:"row",flexWrap:"wrap",gap:1.5,justifyContent:"flex-start",children:[A.jsx(Ge,{variant:"contained",color:"primary",startIcon:A.jsx(GE,{}),onClick:T,sx:{textTransform:"none"},children:o("newsletter.editDesign")}),A.jsx(Ge,{variant:"outlined",color:"primary",startIcon:A.jsx(XE,{}),onClick:U,sx:{textTransform:"none"},children:o("newsletter.startOver")})]})});if(m)return A.jsx(D,{sx:{height:"100%",minHeight:0,overflow:"auto"},children:A.jsx(gO,{language:i})});const Q=c!==1||!f?"":yh(f)?o("newsletter.tellUs"):k?o(`newsletter.types.${k.id}`):"";if(c===0)return A.jsxs(xh,{header:A.jsxs(Xt,{spacing:1,children:[A.jsx("br",{}),A.jsx("br",{}),A.jsx(We,{component:"h1",variant:"h6",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35,color:"text.primary"},children:o("newsletter.whatType")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55,maxWidth:"52ch"},children:o("newsletter.typeSectionHint")})]}),children:[A.jsx(Xt,{spacing:1.25,children:HE.map(R=>{const X=CO[R.id]??mh;return A.jsx(dU,{elevation:0,variant:"outlined",sx:{borderRadius:2,borderColor:"divider",bgcolor:"background.paper",transition:"border-color 0.2s ease, box-shadow 0.2s ease","&:hover":{borderColor:"primary.main",boxShadow:G=>`0 2px 12px ${Rn(G.palette.primary.main,.12)}`},...R.comingSoon?{opacity:.5,cursor:"not-allowed"}:{}},children:A.jsx(CU,{onClick:()=>R.comingSoon?null:b(R.id),sx:{borderRadius:0,"&:focus-visible":{outlineOffset:-2}},children:A.jsx(EU,{sx:{py:1.75,px:2,"&:last-child":{pb:1.75}},children:A.jsxs(Xt,{direction:"row",spacing:1.75,alignItems:"center",children:[A.jsx(D,{sx:{width:44,height:44,borderRadius:1.5,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:G=>Rn(G.palette.primary.main,.08),border:G=>`1px solid ${Rn(G.palette.primary.main,.16)}`},children:A.jsx(X,{sx:{fontSize:24,...zs}})}),A.jsx(We,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"0.9375rem",lineHeight:1.4,letterSpacing:"-0.01em",color:"text.primary"},children:o(`newsletter.types.${R.id}`)}),R.comingSoon?A.jsx(ha,{label:o("newsletter.comingSoon"),size:"small",color:"primary",variant:"outlined"}):null]})})})},R.id)})}),x?A.jsx(We,{color:"error",variant:"body2",sx:{mt:2},children:x}):null]});const K=yh(f)?A.jsx(Xt,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:M,disabled:!h.trim()||m,sx:{textTransform:"none"},children:m?A.jsx($r,{size:22,color:"inherit"}):o("common.send")})}):A.jsx(Xt,{direction:"row",spacing:1.5,justifyContent:"flex-end",flexWrap:"wrap",children:A.jsx(Ge,{variant:"contained",color:"primary",onClick:F,disabled:m,sx:{textTransform:"none"},children:m?A.jsx($r,{size:22,color:"inherit"}):o("common.continue")})});return A.jsxs(xh,{header:A.jsxs(Xt,{spacing:1.25,children:[A.jsx(Ge,{variant:"text",color:"primary",onClick:q,sx:{alignSelf:"flex-start",textTransform:"none",minWidth:"auto",px:.5,ml:-.5,mt:-.5},children:o("newsletter.back")}),A.jsx(We,{variant:"h6",component:"h1",sx:{fontWeight:700,letterSpacing:"-0.02em",lineHeight:1.35},children:Q}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{fontSize:"0.8125rem",lineHeight:1.55},children:o("newsletter.questionsSectionHint")})]}),footer:K,children:[yh(f)?A.jsx(It,{multiline:!0,minRows:4,placeholder:o("newsletter.writeHere"),value:h,onChange:R=>g(R.target.value),fullWidth:!0,variant:"outlined",size:"small"}):A.jsx(Xt,{spacing:2,children:B.map(R=>A.jsx(D,{children:R.inputType==="multiline"?A.jsxs(A.Fragment,{children:[A.jsx(We,{variant:"caption",sx:{mb:.75,display:"block",fontWeight:600,color:"text.secondary",letterSpacing:"0.02em"},children:o("newsletter.topicLabel")}),A.jsx(It,{multiline:!0,minRows:3,placeholder:o("newsletter.writeHere"),value:C[R.id]??"",onChange:X=>w(R.id,X.target.value),fullWidth:!0,variant:"outlined",size:"small"})]}):A.jsx(It,{label:o(f==="webinar"&&R.id==="topic"?"newsletter.questions.topicShort":`newsletter.questions.${R.id}`),type:R.inputType==="date"?"date":R.inputType==="time"?"time":"text",value:C[R.id]??"",onChange:X=>w(R.id,X.target.value),fullWidth:!0,variant:"outlined",size:"small",InputLabelProps:R.inputType==="date"||R.inputType==="time"?{shrink:!0}:void 0})},R.id))}),x?A.jsx(We,{color:"error",variant:"body2",sx:{mt:2},children:x}):null]})}function yO({setActiveStep:e,placeholderSuggestions:t=[],language:n,data:a={},logo:r="",mergeTags:l=[],visibilityRules:i,location:o,onDesignChange:s}){const{t:p}=Ja(),u=v.useRef(s);u.current=s;const{step2Data:c}=Sg(),{step3Draft:d,setStep3Draft:f}=XS(),W=c||a,C=(W==null?void 0:W.businessData)||W,E=(W==null?void 0:W.websiteUrl)||(C==null?void 0:C.website)||"",h=(c==null?void 0:c.logo)||(W&&typeof W=="object"&&"logo"in W?W.logo:r),g=(c==null?void 0:c.logoBackgroundHex)??(W==null?void 0:W.logoBackgroundHex),m=v.useRef(null),y=v.useRef(!1),x=v.useRef(null),S=v.useRef(!1),[k,B]=v.useState(0),[V,b]=v.useState(0),[w,M]=v.useState([]),[z,F]=v.useState(null);v.useEffect(()=>{var Q;if(S.current)return;const q=d;(Q=q==null?void 0:q.components)!=null&&Q.length&&(S.current=!0,M(Array.isArray(q.components)?q.components:[]),F(q.surveyResult??null))},[d]);const T=q=>{if(q!=null&&q.components){const Q=Array.isArray(q.components)?q.components:[];M(Q),F(q),f({components:Q,surveyResult:q})}else M([]),F(null),f(null),b(Q=>Q+1)};v.useEffect(()=>{},[]),v.useEffect(()=>{var R;if(w.length===0||!m.current)return;const q=m.current.querySelector("iframe");q&&q.remove(),(R=x.current)!=null&&R.parentNode&&x.current.parentNode.removeChild(x.current),x.current=null,y.current=!1,y.current=!0;const Q=document.createElement("iframe");Q.width="100%",Q.height="100%",Q.style.border="none",x.current=Q,m.current.appendChild(Q);let K=!1;return Q.onload=()=>{if(K)return;K=!0;const X=Q.contentDocument,G=Q.contentWindow;if(!X||!G||X.querySelector('script[src*="creaditor.bundle.js"]'))return;X.open(),X.write(`
521
521
  <!DOCTYPE html>
522
522
  <html>
523
523
  <head>
@@ -784,9 +784,9 @@ Newsletter creation ✉️, Landing pages 🎯, Digital courses 📇 and more`,s
784
784
  direction: rtl;
785
785
  }
786
786
  `;function j4(){}function T4(){}function MO(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const LO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,QO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VO={};function Rx(e,t){return(VO.jsx?QO:LO).test(e)}const UO=/[ \t\n\f\r]/g;function FO(e){return typeof e=="object"?e.type==="text"?wx(e.value):!1:wx(e)}function wx(e){return e.replace(UO,"")===""}class Ts{constructor(t,n,a){this.normal=n,this.property=t,a&&(this.space=a)}}Ts.prototype.normal={},Ts.prototype.property={},Ts.prototype.space=void 0;function Bx(e,t){const n={},a={};for(const r of e)Object.assign(n,r.property),Object.assign(a,r.normal);return new Ts(n,a,t)}function Bh(e){return e.toLowerCase()}class Qn{constructor(t,n){this.attribute=n,this.property=t}}Qn.prototype.attribute="",Qn.prototype.booleanish=!1,Qn.prototype.boolean=!1,Qn.prototype.commaOrSpaceSeparated=!1,Qn.prototype.commaSeparated=!1,Qn.prototype.defined=!1,Qn.prototype.mustUseProperty=!1,Qn.prototype.number=!1,Qn.prototype.overloadedBoolean=!1,Qn.prototype.property="",Qn.prototype.spaceSeparated=!1,Qn.prototype.space=void 0;let zO=0;const Oe=ql(),Kt=ql(),Mh=ql(),le=ql(),Ct=ql(),Xi=ql(),Hn=ql();function ql(){return 2**++zO}const Lh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Oe,booleanish:Kt,commaOrSpaceSeparated:Hn,commaSeparated:Xi,number:le,overloadedBoolean:Mh,spaceSeparated:Ct},Symbol.toStringTag,{value:"Module"})),Qh=Object.keys(Lh);class Vh extends Qn{constructor(t,n,a,r){let l=-1;if(super(t,n),Mx(this,"space",r),typeof a=="number")for(;++l<Qh.length;){const i=Qh[l];Mx(this,Qh[l],(a&Lh[i])===Lh[i])}}}Vh.prototype.defined=!0;function Mx(e,t,n){n&&(e[t]=n)}function Hi(e){const t={},n={};for(const[a,r]of Object.entries(e.properties)){const l=new Vh(a,e.transform(e.attributes||{},a),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(l.mustUseProperty=!0),t[a]=l,n[Bh(a)]=a,n[Bh(l.attribute)]=a}return new Ts(t,n,e.space)}const Lx=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Kt,ariaAutoComplete:null,ariaBusy:Kt,ariaChecked:Kt,ariaColCount:le,ariaColIndex:le,ariaColSpan:le,ariaControls:Ct,ariaCurrent:null,ariaDescribedBy:Ct,ariaDetails:null,ariaDisabled:Kt,ariaDropEffect:Ct,ariaErrorMessage:null,ariaExpanded:Kt,ariaFlowTo:Ct,ariaGrabbed:Kt,ariaHasPopup:null,ariaHidden:Kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ct,ariaLevel:le,ariaLive:null,ariaModal:Kt,ariaMultiLine:Kt,ariaMultiSelectable:Kt,ariaOrientation:null,ariaOwns:Ct,ariaPlaceholder:null,ariaPosInSet:le,ariaPressed:Kt,ariaReadOnly:Kt,ariaRelevant:null,ariaRequired:Kt,ariaRoleDescription:Ct,ariaRowCount:le,ariaRowIndex:le,ariaRowSpan:le,ariaSelected:Kt,ariaSetSize:le,ariaSort:null,ariaValueMax:le,ariaValueMin:le,ariaValueNow:le,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qx(e,t){return t in e?e[t]:t}function Vx(e,t){return Qx(e,t.toLowerCase())}const qO=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:Ct,accessKey:Ct,action:null,allow:null,allowFullScreen:Oe,allowPaymentRequest:Oe,allowUserMedia:Oe,alt:null,as:null,async:Oe,autoCapitalize:null,autoComplete:Ct,autoFocus:Oe,autoPlay:Oe,blocking:Ct,capture:null,charSet:null,checked:Oe,cite:null,className:Ct,cols:le,colSpan:null,content:null,contentEditable:Kt,controls:Oe,controlsList:Ct,coords:le|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Oe,defer:Oe,dir:null,dirName:null,disabled:Oe,download:Mh,draggable:Kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Oe,formTarget:null,headers:Ct,height:le,hidden:Mh,high:le,href:null,hrefLang:null,htmlFor:Ct,httpEquiv:Ct,id:null,imageSizes:null,imageSrcSet:null,inert:Oe,inputMode:null,integrity:null,is:null,isMap:Oe,itemId:null,itemProp:Ct,itemRef:Ct,itemScope:Oe,itemType:Ct,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Oe,low:le,manifest:null,max:null,maxLength:le,media:null,method:null,min:null,minLength:le,multiple:Oe,muted:Oe,name:null,nonce:null,noModule:Oe,noValidate:Oe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Oe,optimum:le,pattern:null,ping:Ct,placeholder:null,playsInline:Oe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Oe,referrerPolicy:null,rel:Ct,required:Oe,reversed:Oe,rows:le,rowSpan:le,sandbox:Ct,scope:null,scoped:Oe,seamless:Oe,selected:Oe,shadowRootClonable:Oe,shadowRootDelegatesFocus:Oe,shadowRootMode:null,shape:null,size:le,sizes:null,slot:null,span:le,spellCheck:Kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:le,step:null,style:null,tabIndex:le,target:null,title:null,translate:null,type:null,typeMustMatch:Oe,useMap:null,value:Kt,width:le,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ct,axis:null,background:null,bgColor:null,border:le,borderColor:null,bottomMargin:le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Oe,declare:Oe,event:null,face:null,frame:null,frameBorder:null,hSpace:le,leftMargin:le,link:null,longDesc:null,lowSrc:null,marginHeight:le,marginWidth:le,noResize:Oe,noHref:Oe,noShade:Oe,noWrap:Oe,object:null,profile:null,prompt:null,rev:null,rightMargin:le,rules:null,scheme:null,scrolling:Kt,standby:null,summary:null,text:null,topMargin:le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Oe,disableRemotePlayback:Oe,prefix:null,property:null,results:le,security:null,unselectable:null},space:"html",transform:Vx}),jO=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Hn,accentHeight:le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:le,amplitude:le,arabicForm:null,ascent:le,attributeName:null,attributeType:null,azimuth:le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:le,by:null,calcMode:null,capHeight:le,className:Ct,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:le,diffuseConstant:le,direction:null,display:null,dur:null,divisor:le,dominantBaseline:null,download:Oe,dx:null,dy:null,edgeMode:null,editable:null,elevation:le,enableBackground:null,end:null,event:null,exponent:le,externalResourcesRequired:null,fill:null,fillOpacity:le,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xi,g2:Xi,glyphName:Xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:le,horizOriginX:le,horizOriginY:le,id:null,ideographic:le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:le,k:le,k1:le,k2:le,k3:le,k4:le,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:le,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:le,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:le,overlineThickness:le,paintOrder:null,panose1:null,path:null,pathLength:le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ct,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:le,pointsAtY:le,pointsAtZ:le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:le,specularExponent:le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:le,strikethroughThickness:le,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:le,strokeOpacity:le,strokeWidth:null,style:null,surfaceScale:le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:le,tableValues:null,target:null,targetX:le,targetY:le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:le,underlineThickness:le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:le,values:null,vAlphabetic:le,vMathematical:le,vectorEffect:null,vHanging:le,vIdeographic:le,version:null,vertAdvY:le,vertOriginX:le,vertOriginY:le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qx}),Ux=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Fx=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vx}),zx=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),TO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KO=/[A-Z]/g,qx=/-[a-z]/g,OO=/^data[-\w.:]+$/i;function PO(e,t){const n=Bh(t);let a=t,r=Qn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&OO.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(qx,DO);a="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!qx.test(l)){let i=l.replace(KO,JO);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=Vh}return new r(a,t)}function JO(e){return"-"+e.toLowerCase()}function DO(e){return e.charAt(1).toUpperCase()}const YO=Bx([Lx,qO,Ux,Fx,zx],"html"),Uh=Bx([Lx,jO,Ux,Fx,zx],"svg");function ZO(e){return e.join(" ").trim()}var Fh={},jx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NO=/\n/g,GO=/^\s*/,XO=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,HO=/^:\s*/,_O=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$O=/^[;\s]*/,e6=/^\s+|\s+$/g,t6=`
787
- `,Tx="/",Kx="*",jl="",n6="comment",a6="declaration";function r6(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function r(W){var C=W.match(NO);C&&(n+=C.length);var E=W.lastIndexOf(t6);a=~E?W.length-E:a+W.length}function l(){var W={line:n,column:a};return function(C){return C.position=new i(W),p(),C}}function i(W){this.start=W,this.end={line:n,column:a},this.source=t.source}i.prototype.content=e;function o(W){var C=new Error(t.source+":"+n+":"+a+": "+W);if(C.reason=W,C.filename=t.source,C.line=n,C.column=a,C.source=e,!t.silent)throw C}function s(W){var C=W.exec(e);if(C){var E=C[0];return r(E),e=e.slice(E.length),C}}function p(){s(GO)}function u(W){var C;for(W=W||[];C=c();)C!==!1&&W.push(C);return W}function c(){var W=l();if(!(Tx!=e.charAt(0)||Kx!=e.charAt(1))){for(var C=2;jl!=e.charAt(C)&&(Kx!=e.charAt(C)||Tx!=e.charAt(C+1));)++C;if(C+=2,jl===e.charAt(C-1))return o("End of comment missing");var E=e.slice(2,C-2);return a+=2,r(E),e=e.slice(C),a+=2,W({type:n6,comment:E})}}function d(){var W=l(),C=s(XO);if(C){if(c(),!s(HO))return o("property missing ':'");var E=s(_O),h=W({type:a6,property:Ox(C[0].replace(jx,jl)),value:E?Ox(E[0].replace(jx,jl)):jl});return s($O),h}}function f(){var W=[];u(W);for(var C;C=d();)C!==!1&&(W.push(C),u(W));return W}return p(),f()}function Ox(e){return e?e.replace(e6,jl):jl}var l6=r6,i6=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.default=s6;const o6=i6(l6);function s6(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,o6.default)(e),r=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:i,value:o}=l;r?t(i,o,l):o&&(n=n||{},n[i]=o)}),n}var aA={};Object.defineProperty(aA,"__esModule",{value:!0}),aA.camelCase=void 0;var p6=/^--[a-zA-Z0-9_-]+$/,u6=/-([a-z])/g,c6=/^[^-]+$/,A6=/^-(webkit|moz|ms|o|khtml)-/,d6=/^-(ms)-/,f6=function(e){return!e||c6.test(e)||p6.test(e)},W6=function(e,t){return t.toUpperCase()},Px=function(e,t){return"".concat(t,"-")},g6=function(e,t){return t===void 0&&(t={}),f6(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d6,Px):e=e.replace(A6,Px),e.replace(u6,W6))};aA.camelCase=g6;var h6=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},m6=h6(Fh),C6=aA;function zh(e,t){var n={};return!e||typeof e!="string"||(0,m6.default)(e,function(a,r){a&&r&&(n[(0,C6.camelCase)(a,t)]=r)}),n}zh.default=zh;var v6=zh;const y6=Jl(v6),Jx=Dx("end"),qh=Dx("start");function Dx(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function I6(e){const t=qh(e),n=Jx(e);if(t&&n)return{start:t,end:n}}function Ks(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yx(e.position):"start"in e||"end"in e?Yx(e):"line"in e||"column"in e?jh(e):""}function jh(e){return Zx(e&&e.line)+":"+Zx(e&&e.column)}function Yx(e){return jh(e&&e.start)+"-"+jh(e&&e.end)}function Zx(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let r="",l={},i=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?r=t:!l.cause&&t&&(i=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const s=a.indexOf(":");s===-1?l.ruleId=a:(l.source=a.slice(0,s),l.ruleId=a.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Ks(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="",cn.prototype.name="",cn.prototype.reason="",cn.prototype.message="",cn.prototype.stack="",cn.prototype.column=void 0,cn.prototype.line=void 0,cn.prototype.ancestors=void 0,cn.prototype.cause=void 0,cn.prototype.fatal=void 0,cn.prototype.place=void 0,cn.prototype.ruleId=void 0,cn.prototype.source=void 0;const Th={}.hasOwnProperty,S6=new Map,E6=/[A-Z]/g,x6=new Set(["table","tbody","thead","tfoot","tr"]),b6=new Set(["td","th"]),Nx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function k6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=U6(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=V6(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Uh:YO,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Gx(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function Gx(e,t,n){if(t.type==="element")return R6(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return M6(e,t,n);if(t.type==="mdxjsEsm")return B6(e,t);if(t.type==="root")return L6(e,t,n);if(t.type==="text")return Q6(e,t)}function R6(e,t,n){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=Uh,e.schema=r),e.ancestors.push(t);const l=Hx(e,t.tagName,!1),i=F6(e,t);let o=Oh(e,t);return x6.has(t.tagName)&&(o=o.filter(function(s){return typeof s=="string"?!FO(s):!0})),Xx(e,i,l,t),Kh(i,o),e.ancestors.pop(),e.schema=a,e.create(t,l,i,n)}function w6(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Os(e,t.position)}function B6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Os(e,t.position)}function M6(e,t,n){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=Uh,e.schema=r),e.ancestors.push(t);const l=t.name===null?e.Fragment:Hx(e,t.name,!0),i=z6(e,t),o=Oh(e,t);return Xx(e,i,l,t),Kh(i,o),e.ancestors.pop(),e.schema=a,e.create(t,l,i,n)}function L6(e,t,n){const a={};return Kh(a,Oh(e,t)),e.create(t,e.Fragment,a,n)}function Q6(e,t){return t.value}function Xx(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Kh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function V6(e,t,n){return a;function a(r,l,i,o){const p=Array.isArray(i.children)?n:t;return o?p(l,i,o):p(l,i)}}function U6(e,t){return n;function n(a,r,l,i){const o=Array.isArray(l.children),s=qh(a);return t(r,l,i,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function F6(e,t){const n={};let a,r;for(r in t.properties)if(r!=="children"&&Th.call(t.properties,r)){const l=q6(e,r,t.properties[r]);if(l){const[i,o]=l;e.tableCellAlignToStyle&&i==="align"&&typeof o=="string"&&b6.has(t.tagName)?a=o:n[i]=o}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function z6(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const i=l.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Os(e,t.position);else{const r=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const o=a.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else Os(e,t.position);else l=a.value===null?!0:a.value;n[r]=l}return n}function Oh(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:S6;for(;++a<t.children.length;){const l=t.children[a];let i;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const p=r.get(s)||0;i=s+"-"+p,r.set(s,p+1)}}const o=Gx(e,l,i);o!==void 0&&n.push(o)}return n}function q6(e,t,n){const a=PO(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?MO(n):ZO(n)),a.property==="style"){let r=typeof n=="object"?n:j6(e,String(n));return e.stylePropertyNameCase==="css"&&(r=T6(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?TO[a.property]||a.property:a.attribute,n]}}function j6(e,t){try{return y6(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,r=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Nx+"#cannot-parse-style-attribute",r}}function Hx(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let l=-1,i;for(;++l<r.length;){const o=Rx(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};i=i?{type:"MemberExpression",object:i,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}a=i}else a=Rx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return Th.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);Os(e)}function Os(e,t){const n=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Nx+"#cannot-handle-mdx-estrees-without-createevaluater",n}function T6(e){const t={};let n;for(n in e)Th.call(e,n)&&(t[K6(n)]=e[n]);return t}function K6(e){let t=e.replace(E6,O6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function O6(e){return"-"+e.toLowerCase()}const Ph={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},P6={};function Jh(e,t){const n=P6,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _x(e,a,r)}function _x(e,t,n){if(J6(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $x(e.children,t,n)}return Array.isArray(e)?$x(e,t,n):""}function $x(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=_x(e[r],t,n);return a.join("")}function J6(e){return!!(e&&typeof e=="object")}const eb=document.createElement("i");function Dh(e){const t="&"+e+";";eb.innerHTML=t;const n=eb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _n(e,t,n,a){const r=e.length;let l=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,a.length<1e4)i=Array.from(a),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<a.length;)i=a.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function va(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const tb={}.hasOwnProperty;function nb(e){const t={};let n=-1;for(;++n<e.length;)D6(t,e[n]);return t}function D6(e,t){let n;for(n in t){const r=(tb.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let i;if(l)for(i in l){tb.call(r,i)||(r[i]=[]);const o=l[i];Y6(r[i],Array.isArray(o)?o:o?[o]:[])}}}function Y6(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);_n(e,0,0,a)}function ab(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Va(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Cn=al(/[A-Za-z]/),An=al(/[\dA-Za-z]/),Z6=al(/[#-'*+\--9=?A-Z^-~]/);function rA(e){return e!==null&&(e<32||e===127)}const Yh=al(/\d/),N6=al(/[\dA-Fa-f]/),G6=al(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function ft(e){return e!==null&&(e<0||e===32)}function _e(e){return e===-2||e===-1||e===32}const lA=al(new RegExp("\\p{P}|\\p{S}","u")),Tl=al(/\s/);function al(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _i(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const l=e.charCodeAt(n);let i="";if(l===37&&An(e.charCodeAt(n+1))&&An(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(i=String.fromCharCode(l,o),r=1):i="�"}else i=String.fromCharCode(l);i&&(t.push(e.slice(a,n),encodeURIComponent(i)),a=n+r+1,i=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function tt(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(s){return _e(s)?(e.enter(n),o(s)):t(s)}function o(s){return _e(s)&&l++<r?(e.consume(s),o):(e.exit(n),t(s))}}const X6={tokenize:H6};function H6(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let n;return t;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),tt(e,t,"linePrefix")}function r(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,i(o)}function i(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Be(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),i)}}const _6={tokenize:$6},rb={tokenize:eP};function $6(e){const t=this,n=[];let a=0,r,l,i;return o;function o(m){if(a<n.length){const y=n[a];return t.containerState=y[1],e.attempt(y[0].continuation,s,p)(m)}return p(m)}function s(m){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const y=t.events.length;let x=y,S;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){S=t.events[x][1].end;break}h(a);let k=y;for(;k<t.events.length;)t.events[k][1].end={...S},k++;return _n(t.events,x+1,0,t.events.slice(y)),t.events.length=k,p(m)}return o(m)}function p(m){if(a===n.length){if(!r)return d(m);if(r.currentConstruct&&r.currentConstruct.concrete)return W(m);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rb,u,c)(m)}function u(m){return r&&g(),h(a),d(m)}function c(m){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,W(m)}function d(m){return t.containerState={},e.attempt(rb,f,W)(m)}function f(m){return a++,n.push([t.currentConstruct,t.containerState]),d(m)}function W(m){if(m===null){r&&g(),h(0),e.consume(m);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),C(m)}function C(m){if(m===null){E(e.exit("chunkFlow"),!0),h(0),e.consume(m);return}return Be(m)?(e.consume(m),E(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(m),C)}function E(m,y){const x=t.sliceStream(m);if(y&&x.push(null),m.previous=l,l&&(l.next=m),l=m,r.defineSkip(m.start),r.write(x),t.parser.lazy[m.start.line]){let S=r.events.length;for(;S--;)if(r.events[S][1].start.offset<i&&(!r.events[S][1].end||r.events[S][1].end.offset>i))return;const k=t.events.length;let B=k,V,b;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(V){b=t.events[B][1].end;break}V=!0}for(h(a),S=k;S<t.events.length;)t.events[S][1].end={...b},S++;_n(t.events,B+1,0,t.events.slice(k)),t.events.length=S}}function h(m){let y=n.length;for(;y-- >m;){const x=n[y];t.containerState=x[1],x[0].exit.call(t,e)}n.length=m}function g(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function eP(e,t,n){return tt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $i(e){if(e===null||ft(e)||Tl(e))return 1;if(lA(e))return 2}function iA(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const l=e[r].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const Zh={name:"attention",resolveAll:tP,tokenize:nP};function tP(e,t){let n=-1,a,r,l,i,o,s,p,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[a][1].end},d={...e[n][1].start};lb(c,-s),lb(d,s),i={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[a][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[a][1].end={...i.start},e[n][1].start={...o.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=va(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=va(p,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),p=va(p,iA(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),p=va(p,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,p=va(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,_n(e,a-1,n-a+3,p),n=a+p.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nP(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=$i(a);let l;return i;function i(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const p=e.exit("attentionSequence"),u=$i(s),c=!u||u===2&&r||n.includes(s),d=!r||r===2&&u||n.includes(a);return p._open=!!(l===42?c:c&&(r||!d)),p._close=!!(l===42?d:d&&(u||!c)),t(s)}}function lb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aP={name:"autolink",tokenize:rP};function rP(e,t,n){let a=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return Cn(f)?(e.consume(f),i):f===64?n(f):p(f)}function i(f){return f===43||f===45||f===46||An(f)?(a=1,o(f)):p(f)}function o(f){return f===58?(e.consume(f),a=0,s):(f===43||f===45||f===46||An(f))&&a++<32?(e.consume(f),o):(a=0,p(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||rA(f)?n(f):(e.consume(f),s)}function p(f){return f===64?(e.consume(f),u):Z6(f)?(e.consume(f),p):n(f)}function u(f){return An(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),a=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||An(f))&&a++<63){const W=f===45?d:c;return e.consume(f),W}return n(f)}}const Ps={partial:!0,tokenize:lP};function lP(e,t,n){return a;function a(l){return _e(l)?tt(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||Be(l)?t(l):n(l)}}const ib={continuation:{tokenize:oP},exit:sP,name:"blockQuote",tokenize:iP};function iP(e,t,n){const a=this;return r;function r(i){if(i===62){const o=a.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return n(i)}function l(i){return _e(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function oP(e,t,n){const a=this;return r;function r(i){return _e(i)?tt(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(ib,t,n)(i)}}function sP(e){e.exit("blockQuote")}const ob={name:"characterEscape",tokenize:pP};function pP(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return G6(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const sb={name:"characterReference",tokenize:uP};function uP(e,t,n){const a=this;let r=0,l,i;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,i=An,u(c))}function p(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=N6,u):(e.enter("characterReferenceValue"),l=7,i=Yh,u(c))}function u(c){if(c===59&&r){const d=e.exit("characterReferenceValue");return i===An&&!Dh(a.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(c)&&r++<l?(e.consume(c),u):n(c)}}const pb={partial:!0,tokenize:AP},ub={concrete:!0,name:"codeFenced",tokenize:cP};function cP(e,t,n){const a=this,r={partial:!0,tokenize:x};let l=0,i=0,o;return s;function s(S){return p(S)}function p(S){const k=a.events[a.events.length-1];return l=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===o?(i++,e.consume(S),u):i<3?n(S):(e.exit("codeFencedFenceSequence"),_e(S)?tt(e,c,"whitespace")(S):c(S))}function c(S){return S===null||Be(S)?(e.exit("codeFencedFence"),a.interrupt?t(S):e.check(pb,C,y)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):_e(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tt(e,f,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),d)}function f(S){return S===null||Be(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),W(S))}function W(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===o?n(S):(e.consume(S),W)}function C(S){return e.attempt(r,y,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h}function h(S){return l>0&&_e(S)?tt(e,g,"linePrefix",l+1)(S):g(S)}function g(S){return S===null||Be(S)?e.check(pb,C,y)(S):(e.enter("codeFlowValue"),m(S))}function m(S){return S===null||Be(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),m)}function y(S){return e.exit("codeFenced"),t(S)}function x(S,k,B){let V=0;return b;function b(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),w}function w(T){return S.enter("codeFencedFence"),_e(T)?tt(S,M,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):M(T)}function M(T){return T===o?(S.enter("codeFencedFenceSequence"),z(T)):B(T)}function z(T){return T===o?(V++,S.consume(T),z):V>=i?(S.exit("codeFencedFenceSequence"),_e(T)?tt(S,F,"whitespace")(T):F(T)):B(T)}function F(T){return T===null||Be(T)?(S.exit("codeFencedFence"),k(T)):B(T)}}}function AP(e,t,n){const a=this;return r;function r(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return a.parser.lazy[a.now().line]?n(i):t(i)}}const Nh={name:"codeIndented",tokenize:fP},dP={partial:!0,tokenize:WP};function fP(e,t,n){const a=this;return r;function r(p){return e.enter("codeIndented"),tt(e,l,"linePrefix",5)(p)}function l(p){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?i(p):n(p)}function i(p){return p===null?s(p):Be(p)?e.attempt(dP,i,s)(p):(e.enter("codeFlowValue"),o(p))}function o(p){return p===null||Be(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),o)}function s(p){return e.exit("codeIndented"),t(p)}}function WP(e,t,n){const a=this;return r;function r(i){return a.parser.lazy[a.now().line]?n(i):Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):tt(e,l,"linePrefix",5)(i)}function l(i){const o=a.events[a.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):Be(i)?r(i):n(i)}}const gP={name:"codeText",previous:mP,resolve:hP,tokenize:CP};function hP(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function mP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function CP(e,t,n){let a=0,r,l;return i;function i(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),a++,o):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),r=0,u(c)):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),p(c))}function p(c){return c===null||c===32||c===96||Be(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),p)}function u(c){return c===96?(e.consume(c),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",p(c))}}class vP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const r=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&Js(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Js(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Js(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Js(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Js(this.left,n.reverse())}}}function Js(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cb(e){const t={};let n=-1,a,r,l,i,o,s,p;const u=new vP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(a=u.get(n),n&&a[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=a[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,yP(u,n)),n=t[n],p=!0);else if(a[1]._container){for(l=n,r=void 0;l--;)if(i=u.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(a[1].end={...u.get(r)[1].start},o=u.slice(r,n),o.unshift(a),u.splice(r,n-r+1,o))}}return _n(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!p}function yP(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const l=[];let i=n._tokenizer;i||(i=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,s=[],p={};let u,c,d=-1,f=n,W=0,C=0;const E=[C];for(;f;){for(;e.get(++r)[1]!==f;);l.push(r),f._tokenizer||(u=a.sliceStream(f),f.next||u.push(null),c&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(C=d+1,E.push(C),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):E.pop(),d=E.length;d--;){const h=o.slice(E[d],E[d+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),d=-1;++d<s.length;)p[W+s[d][0]]=W+s[d][1],W+=s[d][1]-s[d][0]-1;return p}const IP={resolve:EP,tokenize:xP},SP={partial:!0,tokenize:bP};function EP(e){return cb(e),e}function xP(e,t){let n;return a;function a(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(o)}function r(o){return o===null?l(o):Be(o)?e.check(SP,i,l)(o):(e.consume(o),r)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function i(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function bP(e,t,n){const a=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),tt(e,l,"linePrefix")}function l(i){if(i===null||Be(i))return n(i);const o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(a.parser.constructs.flow,n,t)(i)}}function Ab(e,t,n,a,r,l,i,o,s){const p=s||Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return h===60?(e.enter(a),e.enter(r),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||rA(h)?n(h):(e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(o),d(h)):h===null||h===60||Be(h)?n(h):(e.consume(h),h===92?W:f)}function W(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function C(h){return!u&&(h===null||h===41||ft(h))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(a),t(h)):u<p&&h===40?(e.consume(h),u++,C):h===41?(e.consume(h),u--,C):h===null||h===32||h===40||rA(h)?n(h):(e.consume(h),h===92?E:C)}function E(h){return h===40||h===41||h===92?(e.consume(h),C):C(h)}}function db(e,t,n,a,r,l){const i=this;let o=0,s;return p;function p(f){return e.enter(a),e.enter(r),e.consume(f),e.exit(r),e.enter(l),u}function u(f){return o>999||f===null||f===91||f===93&&!s||f===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):f===93?(e.exit(l),e.enter(r),e.consume(f),e.exit(r),e.exit(a),t):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||Be(f)||o++>999?(e.exit("chunkString"),u(f)):(e.consume(f),s||(s=!_e(f)),f===92?d:c)}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,c):c(f)}}function fb(e,t,n,a,r,l){let i;return o;function o(d){return d===34||d===39||d===40?(e.enter(a),e.enter(r),e.consume(d),e.exit(r),i=d===40?41:d,s):n(d)}function s(d){return d===i?(e.enter(r),e.consume(d),e.exit(r),e.exit(a),t):(e.enter(l),p(d))}function p(d){return d===i?(e.exit(l),s(i)):d===null?n(d):Be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),tt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===i||d===null||Be(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?c:u)}function c(d){return d===i||d===92?(e.consume(d),u):u(d)}}function Ds(e,t){let n;return a;function a(r){return Be(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):_e(r)?tt(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}const kP={name:"definition",tokenize:wP},RP={partial:!0,tokenize:BP};function wP(e,t,n){const a=this;let r;return l;function l(f){return e.enter("definition"),i(f)}function i(f){return db.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return r=Va(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return ft(f)?Ds(e,p)(f):p(f)}function p(f){return Ab(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(RP,c,c)(f)}function c(f){return _e(f)?tt(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Be(f)?(e.exit("definition"),a.parser.defined.push(r),t(f)):n(f)}}function BP(e,t,n){return a;function a(o){return ft(o)?Ds(e,r)(o):n(o)}function r(o){return fb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return _e(o)?tt(e,i,"whitespace")(o):i(o)}function i(o){return o===null||Be(o)?t(o):n(o)}}const MP={name:"hardBreakEscape",tokenize:LP};function LP(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return Be(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const QP={name:"headingAtx",resolve:VP,tokenize:UP};function VP(e,t){let n=e.length-2,a=3,r,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},_n(e,a,n-a+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function UP(e,t,n){let a=0;return r;function r(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),i(u)}function i(u){return u===35&&a++<6?(e.consume(u),i):u===null||ft(u)?(e.exit("atxHeadingSequence"),o(u)):n(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||Be(u)?(e.exit("atxHeading"),t(u)):_e(u)?tt(e,o,"whitespace")(u):(e.enter("atxHeadingText"),p(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),o(u))}function p(u){return u===null||u===35||ft(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),p)}}const FP=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Wb=["pre","script","style","textarea"],zP={concrete:!0,name:"htmlFlow",resolveTo:TP,tokenize:KP},qP={partial:!0,tokenize:PP},jP={partial:!0,tokenize:OP};function TP(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KP(e,t,n){const a=this;let r,l,i,o,s;return p;function p(L){return u(L)}function u(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),c}function c(L){return L===33?(e.consume(L),d):L===47?(e.consume(L),l=!0,C):L===63?(e.consume(L),r=3,a.interrupt?t:R):Cn(L)?(e.consume(L),i=String.fromCharCode(L),E):n(L)}function d(L){return L===45?(e.consume(L),r=2,f):L===91?(e.consume(L),r=5,o=0,W):Cn(L)?(e.consume(L),r=4,a.interrupt?t:R):n(L)}function f(L){return L===45?(e.consume(L),a.interrupt?t:R):n(L)}function W(L){const te="CDATA[";return L===te.charCodeAt(o++)?(e.consume(L),o===te.length?a.interrupt?t:M:W):n(L)}function C(L){return Cn(L)?(e.consume(L),i=String.fromCharCode(L),E):n(L)}function E(L){if(L===null||L===47||L===62||ft(L)){const te=L===47,re=i.toLowerCase();return!te&&!l&&Wb.includes(re)?(r=1,a.interrupt?t(L):M(L)):FP.includes(i.toLowerCase())?(r=6,te?(e.consume(L),h):a.interrupt?t(L):M(L)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(L):l?g(L):m(L))}return L===45||An(L)?(e.consume(L),i+=String.fromCharCode(L),E):n(L)}function h(L){return L===62?(e.consume(L),a.interrupt?t:M):n(L)}function g(L){return _e(L)?(e.consume(L),g):b(L)}function m(L){return L===47?(e.consume(L),b):L===58||L===95||Cn(L)?(e.consume(L),y):_e(L)?(e.consume(L),m):b(L)}function y(L){return L===45||L===46||L===58||L===95||An(L)?(e.consume(L),y):x(L)}function x(L){return L===61?(e.consume(L),S):_e(L)?(e.consume(L),x):m(L)}function S(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),s=L,k):_e(L)?(e.consume(L),S):B(L)}function k(L){return L===s?(e.consume(L),s=null,V):L===null||Be(L)?n(L):(e.consume(L),k)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||ft(L)?x(L):(e.consume(L),B)}function V(L){return L===47||L===62||_e(L)?m(L):n(L)}function b(L){return L===62?(e.consume(L),w):n(L)}function w(L){return L===null||Be(L)?M(L):_e(L)?(e.consume(L),w):n(L)}function M(L){return L===45&&r===2?(e.consume(L),U):L===60&&r===1?(e.consume(L),q):L===62&&r===4?(e.consume(L),X):L===63&&r===3?(e.consume(L),R):L===93&&r===5?(e.consume(L),K):Be(L)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(qP,G,z)(L)):L===null||Be(L)?(e.exit("htmlFlowData"),z(L)):(e.consume(L),M)}function z(L){return e.check(jP,F,G)(L)}function F(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),T}function T(L){return L===null||Be(L)?z(L):(e.enter("htmlFlowData"),M(L))}function U(L){return L===45?(e.consume(L),R):M(L)}function q(L){return L===47?(e.consume(L),i="",Q):M(L)}function Q(L){if(L===62){const te=i.toLowerCase();return Wb.includes(te)?(e.consume(L),X):M(L)}return Cn(L)&&i.length<8?(e.consume(L),i+=String.fromCharCode(L),Q):M(L)}function K(L){return L===93?(e.consume(L),R):M(L)}function R(L){return L===62?(e.consume(L),X):L===45&&r===2?(e.consume(L),R):M(L)}function X(L){return L===null||Be(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),X)}function G(L){return e.exit("htmlFlow"),t(L)}}function OP(e,t,n){const a=this;return r;function r(i){return Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):n(i)}function l(i){return a.parser.lazy[a.now().line]?n(i):t(i)}}function PP(e,t,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ps,t,n)}}const JP={name:"htmlText",tokenize:DP};function DP(e,t,n){const a=this;let r,l,i;return o;function o(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),s}function s(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),x):R===63?(e.consume(R),m):Cn(R)?(e.consume(R),B):n(R)}function p(R){return R===45?(e.consume(R),u):R===91?(e.consume(R),l=0,W):Cn(R)?(e.consume(R),g):n(R)}function u(R){return R===45?(e.consume(R),f):n(R)}function c(R){return R===null?n(R):R===45?(e.consume(R),d):Be(R)?(i=c,q(R)):(e.consume(R),c)}function d(R){return R===45?(e.consume(R),f):c(R)}function f(R){return R===62?U(R):R===45?d(R):c(R)}function W(R){const X="CDATA[";return R===X.charCodeAt(l++)?(e.consume(R),l===X.length?C:W):n(R)}function C(R){return R===null?n(R):R===93?(e.consume(R),E):Be(R)?(i=C,q(R)):(e.consume(R),C)}function E(R){return R===93?(e.consume(R),h):C(R)}function h(R){return R===62?U(R):R===93?(e.consume(R),h):C(R)}function g(R){return R===null||R===62?U(R):Be(R)?(i=g,q(R)):(e.consume(R),g)}function m(R){return R===null?n(R):R===63?(e.consume(R),y):Be(R)?(i=m,q(R)):(e.consume(R),m)}function y(R){return R===62?U(R):m(R)}function x(R){return Cn(R)?(e.consume(R),S):n(R)}function S(R){return R===45||An(R)?(e.consume(R),S):k(R)}function k(R){return Be(R)?(i=k,q(R)):_e(R)?(e.consume(R),k):U(R)}function B(R){return R===45||An(R)?(e.consume(R),B):R===47||R===62||ft(R)?V(R):n(R)}function V(R){return R===47?(e.consume(R),U):R===58||R===95||Cn(R)?(e.consume(R),b):Be(R)?(i=V,q(R)):_e(R)?(e.consume(R),V):U(R)}function b(R){return R===45||R===46||R===58||R===95||An(R)?(e.consume(R),b):w(R)}function w(R){return R===61?(e.consume(R),M):Be(R)?(i=w,q(R)):_e(R)?(e.consume(R),w):V(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),r=R,z):Be(R)?(i=M,q(R)):_e(R)?(e.consume(R),M):(e.consume(R),F)}function z(R){return R===r?(e.consume(R),r=void 0,T):R===null?n(R):Be(R)?(i=z,q(R)):(e.consume(R),z)}function F(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||ft(R)?V(R):(e.consume(R),F)}function T(R){return R===47||R===62||ft(R)?V(R):n(R)}function U(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function q(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Q}function Q(R){return _e(R)?tt(e,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):K(R)}function K(R){return e.enter("htmlTextData"),i(R)}}const Gh={name:"labelEnd",resolveAll:GP,resolveTo:XP,tokenize:HP},YP={tokenize:_P},ZP={tokenize:$P},NP={tokenize:eJ};function GP(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==n.length&&_n(e,0,e.length,n),e}function XP(e,t){let n=e.length,a=0,r,l,i,o;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(i=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",s,t],["enter",p,t]],o=va(o,e.slice(l+1,l+a+3)),o=va(o,[["enter",u,t]]),o=va(o,iA(t.parser.constructs.insideSpan.null,e.slice(l+a+4,i-3),t)),o=va(o,[["exit",u,t],e[i-2],e[i-1],["exit",p,t]]),o=va(o,e.slice(i+1)),o=va(o,[["exit",s,t]]),_n(e,l,e.length,o),e}function HP(e,t,n){const a=this;let r=a.events.length,l,i;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){l=a.events[r][1];break}return o;function o(d){return l?l._inactive?c(d):(i=a.parser.defined.includes(Va(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(YP,u,i?u:c)(d):d===91?e.attempt(ZP,u,i?p:c)(d):i?u(d):c(d)}function p(d){return e.attempt(NP,u,c)(d)}function u(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function _P(e,t,n){return a;function a(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return ft(c)?Ds(e,l)(c):l(c)}function l(c){return c===41?u(c):Ab(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return ft(c)?Ds(e,s)(c):u(c)}function o(c){return n(c)}function s(c){return c===34||c===39||c===40?fb(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function p(c){return ft(c)?Ds(e,u)(c):u(c)}function u(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function $P(e,t,n){const a=this;return r;function r(o){return db.call(a,e,l,i,"reference","referenceMarker","referenceString")(o)}function l(o){return a.parser.defined.includes(Va(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function i(o){return n(o)}}function eJ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const tJ={name:"labelStartImage",resolveAll:Gh.resolveAll,tokenize:nJ};function nJ(e,t,n){const a=this;return r;function r(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):n(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(o):t(o)}}const aJ={name:"labelStartLink",resolveAll:Gh.resolveAll,tokenize:rJ};function rJ(e,t,n){const a=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(i):t(i)}}const Xh={name:"lineEnding",tokenize:lJ};function lJ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),tt(e,t,"linePrefix")}}const oA={name:"thematicBreak",tokenize:iJ};function iJ(e,t,n){let a=0,r;return l;function l(p){return e.enter("thematicBreak"),i(p)}function i(p){return r=p,o(p)}function o(p){return p===r?(e.enter("thematicBreakSequence"),s(p)):a>=3&&(p===null||Be(p))?(e.exit("thematicBreak"),t(p)):n(p)}function s(p){return p===r?(e.consume(p),a++,s):(e.exit("thematicBreakSequence"),_e(p)?tt(e,o,"whitespace")(p):o(p))}}const Vn={continuation:{tokenize:uJ},exit:AJ,name:"list",tokenize:pJ},oJ={partial:!0,tokenize:dJ},sJ={partial:!0,tokenize:cJ};function pJ(e,t,n){const a=this,r=a.events[a.events.length-1];let l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return o;function o(f){const W=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(W==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:Yh(f)){if(a.containerState.type||(a.containerState.type=W,e.enter(W,{_container:!0})),W==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(oA,n,p)(f):p(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return Yh(f)&&++i<10?(e.consume(f),s):(!a.interrupt||i<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):n(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Ps,a.interrupt?n:u,e.attempt(oJ,d,c))}function u(f){return a.containerState.initialBlankLine=!0,l++,d(f)}function c(f){return _e(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uJ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(Ps,r,l);function r(o){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,tt(e,t,"listItemIndent",a.containerState.size+1)(o)}function l(o){return a.containerState.furtherBlankLines||!_e(o)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(o)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(sJ,t,i)(o))}function i(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,tt(e,e.attempt(Vn,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function cJ(e,t,n){const a=this;return tt(e,r,"listItemIndent",a.containerState.size+1);function r(l){const i=a.events[a.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===a.containerState.size?t(l):n(l)}}function AJ(e){e.exit(this.containerState.type)}function dJ(e,t,n){const a=this;return tt(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){const i=a.events[a.events.length-1];return!_e(l)&&i&&i[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const gb={name:"setextUnderline",resolveTo:fJ,tokenize:WJ};function fJ(e,t){let n=e.length,a,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const i={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",i,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=i,e.push(["exit",i,t]),e}function WJ(e,t,n){const a=this;let r;return l;function l(p){let u=a.events.length,c;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){c=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||c)?(e.enter("setextHeadingLine"),r=p,i(p)):n(p)}function i(p){return e.enter("setextHeadingLineSequence"),o(p)}function o(p){return p===r?(e.consume(p),o):(e.exit("setextHeadingLineSequence"),_e(p)?tt(e,s,"lineSuffix")(p):s(p))}function s(p){return p===null||Be(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const gJ={tokenize:hJ};function hJ(e){const t=this,n=e.attempt(Ps,a,e.attempt(this.parser.constructs.flowInitial,r,tt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(IP,r)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const mJ={resolveAll:mb()},CJ=hb("string"),vJ=hb("text");function hb(e){return{resolveAll:mb(e==="text"?yJ:void 0),tokenize:t};function t(n){const a=this,r=this.parser.constructs[e],l=n.attempt(r,i,o);return i;function i(u){return p(u)?l(u):o(u)}function o(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return p(u)?(n.exit("data"),l(u)):(n.consume(u),s)}function p(u){if(u===null)return!0;const c=r[u];let d=-1;if(c)for(;++d<c.length;){const f=c[d];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function mb(e){return t;function t(n,a){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,a):n}}function yJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],r=t.sliceStream(a);let l=r.length,i=-1,o=0,s;for(;l--;){const p=r[l];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)o++,i--;if(i)break;i=-1}else if(p===-2)s=!0,o++;else if(p!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const p={type:n===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?i:a.start._bufferIndex+i,_index:a.start._index+l,line:a.end.line,column:a.end.column-o,offset:a.end.offset-o},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const IJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:kP},disable:{null:[]},document:{42:Vn,43:Vn,45:Vn,48:Vn,49:Vn,50:Vn,51:Vn,52:Vn,53:Vn,54:Vn,55:Vn,56:Vn,57:Vn,62:ib},flow:{35:QP,42:oA,45:[gb,oA],60:zP,61:gb,95:oA,96:ub,126:ub},flowInitial:{[-2]:Nh,[-1]:Nh,32:Nh},insideSpan:{null:[Zh,mJ]},string:{38:sb,92:ob},text:{[-5]:Xh,[-4]:Xh,[-3]:Xh,33:tJ,38:sb,42:Zh,60:[aP,JP],91:aJ,92:[MP,ob],93:Gh,95:Zh,96:gP}},Symbol.toStringTag,{value:"Module"}));function SJ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},l=[];let i=[],o=[];const s={attempt:k(x),check:k(S),consume:g,enter:m,exit:y,interrupt:k(S,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:W,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:c};let u=t.tokenize.call(p,s);return t.resolveAll&&l.push(t),p;function c(w){return i=va(i,w),E(),i[i.length-1]!==null?[]:(B(t,0),p.events=iA(l,p.events,p),p.events)}function d(w,M){return xJ(f(w),M)}function f(w){return EJ(i,w)}function W(){const{_bufferIndex:w,_index:M,line:z,column:F,offset:T}=a;return{_bufferIndex:w,_index:M,line:z,column:F,offset:T}}function C(w){r[w.line]=w.column,b()}function E(){let w;for(;a._index<i.length;){const M=i[a._index];if(typeof M=="string")for(w=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===w&&a._bufferIndex<M.length;)h(M.charCodeAt(a._bufferIndex));else h(M)}}function h(w){u=u(w)}function g(w){Be(w)?(a.line++,a.column=1,a.offset+=w===-3?2:1,b()):w!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===i[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=w}function m(w,M){const z=M||{};return z.type=w,z.start=W(),p.events.push(["enter",z,p]),o.push(z),z}function y(w){const M=o.pop();return M.end=W(),p.events.push(["exit",M,p]),M}function x(w,M){B(w,M.from)}function S(w,M){M.restore()}function k(w,M){return z;function z(F,T,U){let q,Q,K,R;return Array.isArray(F)?G(F):"tokenize"in F?G([F]):X(F);function X(oe){return ve;function ve(fe){const he=fe!==null&&oe[fe],ze=fe!==null&&oe.null,_=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return G(_)(fe)}}function G(oe){return q=oe,Q=0,oe.length===0?U:L(oe[Q])}function L(oe){return ve;function ve(fe){return R=V(),K=oe,oe.partial||(p.currentConstruct=oe),oe.name&&p.parser.constructs.disable.null.includes(oe.name)?re():oe.tokenize.call(M?Object.assign(Object.create(p),M):p,s,te,re)(fe)}}function te(oe){return w(K,R),T}function re(oe){return R.restore(),++Q<q.length?L(q[Q]):U}}}function B(w,M){w.resolveAll&&!l.includes(w)&&l.push(w),w.resolve&&_n(p.events,M,p.events.length-M,w.resolve(p.events.slice(M),p)),w.resolveTo&&(p.events=w.resolveTo(p.events,p))}function V(){const w=W(),M=p.previous,z=p.currentConstruct,F=p.events.length,T=Array.from(o);return{from:F,restore:U};function U(){a=w,p.previous=M,p.currentConstruct=z,p.events.length=F,o=T,b()}}function b(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function EJ(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex;let i;if(n===r)i=[e[n].slice(a,l)];else{if(i=e.slice(n,r),a>-1){const o=i[0];typeof o=="string"?i[0]=o.slice(a):i.shift()}l>0&&i.push(e[r].slice(0,l))}return i}function xJ(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const l=e[n];let i;if(typeof l=="string")i=l;else switch(l){case-5:{i="\r";break}case-4:{i=`
787
+ `,Tx="/",Kx="*",jl="",n6="comment",a6="declaration";function r6(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,a=1;function r(W){var C=W.match(NO);C&&(n+=C.length);var E=W.lastIndexOf(t6);a=~E?W.length-E:a+W.length}function l(){var W={line:n,column:a};return function(C){return C.position=new i(W),p(),C}}function i(W){this.start=W,this.end={line:n,column:a},this.source=t.source}i.prototype.content=e;function o(W){var C=new Error(t.source+":"+n+":"+a+": "+W);if(C.reason=W,C.filename=t.source,C.line=n,C.column=a,C.source=e,!t.silent)throw C}function s(W){var C=W.exec(e);if(C){var E=C[0];return r(E),e=e.slice(E.length),C}}function p(){s(GO)}function u(W){var C;for(W=W||[];C=c();)C!==!1&&W.push(C);return W}function c(){var W=l();if(!(Tx!=e.charAt(0)||Kx!=e.charAt(1))){for(var C=2;jl!=e.charAt(C)&&(Kx!=e.charAt(C)||Tx!=e.charAt(C+1));)++C;if(C+=2,jl===e.charAt(C-1))return o("End of comment missing");var E=e.slice(2,C-2);return a+=2,r(E),e=e.slice(C),a+=2,W({type:n6,comment:E})}}function d(){var W=l(),C=s(XO);if(C){if(c(),!s(HO))return o("property missing ':'");var E=s(_O),h=W({type:a6,property:Ox(C[0].replace(jx,jl)),value:E?Ox(E[0].replace(jx,jl)):jl});return s($O),h}}function f(){var W=[];u(W);for(var C;C=d();)C!==!1&&(W.push(C),u(W));return W}return p(),f()}function Ox(e){return e?e.replace(e6,jl):jl}var l6=r6,i6=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.default=s6;const o6=i6(l6);function s6(e,t){let n=null;if(!e||typeof e!="string")return n;const a=(0,o6.default)(e),r=typeof t=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:i,value:o}=l;r?t(i,o,l):o&&(n=n||{},n[i]=o)}),n}var aA={};Object.defineProperty(aA,"__esModule",{value:!0}),aA.camelCase=void 0;var p6=/^--[a-zA-Z0-9_-]+$/,u6=/-([a-z])/g,c6=/^[^-]+$/,A6=/^-(webkit|moz|ms|o|khtml)-/,d6=/^-(ms)-/,f6=function(e){return!e||c6.test(e)||p6.test(e)},W6=function(e,t){return t.toUpperCase()},Px=function(e,t){return"".concat(t,"-")},g6=function(e,t){return t===void 0&&(t={}),f6(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d6,Px):e=e.replace(A6,Px),e.replace(u6,W6))};aA.camelCase=g6;var h6=ar&&ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},m6=h6(Fh),C6=aA;function zh(e,t){var n={};return!e||typeof e!="string"||(0,m6.default)(e,function(a,r){a&&r&&(n[(0,C6.camelCase)(a,t)]=r)}),n}zh.default=zh;var v6=zh;const y6=Jl(v6),Jx=Dx("end"),qh=Dx("start");function Dx(e){return t;function t(n){const a=n&&n.position&&n.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function I6(e){const t=qh(e),n=Jx(e);if(t&&n)return{start:t,end:n}}function Ks(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yx(e.position):"start"in e||"end"in e?Yx(e):"line"in e||"column"in e?jh(e):""}function jh(e){return Zx(e&&e.line)+":"+Zx(e&&e.column)}function Yx(e){return jh(e&&e.start)+"-"+jh(e&&e.end)}function Zx(e){return e&&typeof e=="number"?e:1}class cn extends Error{constructor(t,n,a){super(),typeof n=="string"&&(a=n,n=void 0);let r="",l={},i=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?r=t:!l.cause&&t&&(i=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof a=="string"){const s=a.indexOf(":");s===-1?l.ruleId=a:(l.source=a.slice(0,s),l.ruleId=a.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=Ks(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=i&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}cn.prototype.file="",cn.prototype.name="",cn.prototype.reason="",cn.prototype.message="",cn.prototype.stack="",cn.prototype.column=void 0,cn.prototype.line=void 0,cn.prototype.ancestors=void 0,cn.prototype.cause=void 0,cn.prototype.fatal=void 0,cn.prototype.place=void 0,cn.prototype.ruleId=void 0,cn.prototype.source=void 0;const Th={}.hasOwnProperty,S6=new Map,E6=/[A-Z]/g,x6=new Set(["table","tbody","thead","tfoot","tr"]),b6=new Set(["td","th"]),Nx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function k6(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let a;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=U6(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=V6(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:a,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Uh:YO,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Gx(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function Gx(e,t,n){if(t.type==="element")return R6(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return M6(e,t,n);if(t.type==="mdxjsEsm")return B6(e,t);if(t.type==="root")return L6(e,t,n);if(t.type==="text")return Q6(e,t)}function R6(e,t,n){const a=e.schema;let r=a;t.tagName.toLowerCase()==="svg"&&a.space==="html"&&(r=Uh,e.schema=r),e.ancestors.push(t);const l=Hx(e,t.tagName,!1),i=F6(e,t);let o=Oh(e,t);return x6.has(t.tagName)&&(o=o.filter(function(s){return typeof s=="string"?!FO(s):!0})),Xx(e,i,l,t),Kh(i,o),e.ancestors.pop(),e.schema=a,e.create(t,l,i,n)}function w6(e,t){if(t.data&&t.data.estree&&e.evaluater){const a=t.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Os(e,t.position)}function B6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Os(e,t.position)}function M6(e,t,n){const a=e.schema;let r=a;t.name==="svg"&&a.space==="html"&&(r=Uh,e.schema=r),e.ancestors.push(t);const l=t.name===null?e.Fragment:Hx(e,t.name,!0),i=z6(e,t),o=Oh(e,t);return Xx(e,i,l,t),Kh(i,o),e.ancestors.pop(),e.schema=a,e.create(t,l,i,n)}function L6(e,t,n){const a={};return Kh(a,Oh(e,t)),e.create(t,e.Fragment,a,n)}function Q6(e,t){return t.value}function Xx(e,t,n,a){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=a)}function Kh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function V6(e,t,n){return a;function a(r,l,i,o){const p=Array.isArray(i.children)?n:t;return o?p(l,i,o):p(l,i)}}function U6(e,t){return n;function n(a,r,l,i){const o=Array.isArray(l.children),s=qh(a);return t(r,l,i,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function F6(e,t){const n={};let a,r;for(r in t.properties)if(r!=="children"&&Th.call(t.properties,r)){const l=q6(e,r,t.properties[r]);if(l){const[i,o]=l;e.tableCellAlignToStyle&&i==="align"&&typeof o=="string"&&b6.has(t.tagName)?a=o:n[i]=o}}if(a){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return n}function z6(e,t){const n={};for(const a of t.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const l=a.data.estree.body[0];l.type;const i=l.expression;i.type;const o=i.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Os(e,t.position);else{const r=a.name;let l;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const o=a.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else Os(e,t.position);else l=a.value===null?!0:a.value;n[r]=l}return n}function Oh(e,t){const n=[];let a=-1;const r=e.passKeys?new Map:S6;for(;++a<t.children.length;){const l=t.children[a];let i;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const p=r.get(s)||0;i=s+"-"+p,r.set(s,p+1)}}const o=Gx(e,l,i);o!==void 0&&n.push(o)}return n}function q6(e,t,n){const a=PO(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=a.commaSeparated?MO(n):ZO(n)),a.property==="style"){let r=typeof n=="object"?n:j6(e,String(n));return e.stylePropertyNameCase==="css"&&(r=T6(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&a.space?TO[a.property]||a.property:a.attribute,n]}}function j6(e,t){try{return y6(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const a=n,r=new cn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Nx+"#cannot-parse-style-attribute",r}}function Hx(e,t,n){let a;if(!n)a={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let l=-1,i;for(;++l<r.length;){const o=Rx(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};i=i?{type:"MemberExpression",object:i,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}a=i}else a=Rx(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(a.type==="Literal"){const r=a.value;return Th.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(a);Os(e)}function Os(e,t){const n=new cn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Nx+"#cannot-handle-mdx-estrees-without-createevaluater",n}function T6(e){const t={};let n;for(n in e)Th.call(e,n)&&(t[K6(n)]=e[n]);return t}function K6(e){let t=e.replace(E6,O6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function O6(e){return"-"+e.toLowerCase()}const Ph={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},P6={};function Jh(e,t){const n=P6,a=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _x(e,a,r)}function _x(e,t,n){if(J6(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $x(e.children,t,n)}return Array.isArray(e)?$x(e,t,n):""}function $x(e,t,n){const a=[];let r=-1;for(;++r<e.length;)a[r]=_x(e[r],t,n);return a.join("")}function J6(e){return!!(e&&typeof e=="object")}const eb=document.createElement("i");function Dh(e){const t="&"+e+";";eb.innerHTML=t;const n=eb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _n(e,t,n,a){const r=e.length;let l=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,a.length<1e4)i=Array.from(a),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);l<a.length;)i=a.slice(l,l+1e4),i.unshift(t,0),e.splice(...i),l+=1e4,t+=1e4}function va(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const tb={}.hasOwnProperty;function nb(e){const t={};let n=-1;for(;++n<e.length;)D6(t,e[n]);return t}function D6(e,t){let n;for(n in t){const r=(tb.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let i;if(l)for(i in l){tb.call(r,i)||(r[i]=[]);const o=l[i];Y6(r[i],Array.isArray(o)?o:o?[o]:[])}}}function Y6(e,t){let n=-1;const a=[];for(;++n<t.length;)(t[n].add==="after"?e:a).push(t[n]);_n(e,0,0,a)}function ab(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Va(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Cn=al(/[A-Za-z]/),An=al(/[\dA-Za-z]/),Z6=al(/[#-'*+\--9=?A-Z^-~]/);function rA(e){return e!==null&&(e<32||e===127)}const Yh=al(/\d/),N6=al(/[\dA-Fa-f]/),G6=al(/[!-/:-@[-`{-~]/);function Be(e){return e!==null&&e<-2}function Wt(e){return e!==null&&(e<0||e===32)}function _e(e){return e===-2||e===-1||e===32}const lA=al(new RegExp("\\p{P}|\\p{S}","u")),Tl=al(/\s/);function al(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function _i(e){const t=[];let n=-1,a=0,r=0;for(;++n<e.length;){const l=e.charCodeAt(n);let i="";if(l===37&&An(e.charCodeAt(n+1))&&An(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(i=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(n+1);l<56320&&o>56319&&o<57344?(i=String.fromCharCode(l,o),r=1):i="�"}else i=String.fromCharCode(l);i&&(t.push(e.slice(a,n),encodeURIComponent(i)),a=n+r+1,i=""),r&&(n+=r,r=0)}return t.join("")+e.slice(a)}function tt(e,t,n,a){const r=a?a-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(s){return _e(s)?(e.enter(n),o(s)):t(s)}function o(s){return _e(s)&&l++<r?(e.consume(s),o):(e.exit(n),t(s))}}const X6={tokenize:H6};function H6(e){const t=e.attempt(this.parser.constructs.contentInitial,a,r);let n;return t;function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),tt(e,t,"linePrefix")}function r(o){return e.enter("paragraph"),l(o)}function l(o){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,i(o)}function i(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Be(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),i)}}const _6={tokenize:$6},rb={tokenize:eP};function $6(e){const t=this,n=[];let a=0,r,l,i;return o;function o(m){if(a<n.length){const y=n[a];return t.containerState=y[1],e.attempt(y[0].continuation,s,p)(m)}return p(m)}function s(m){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&g();const y=t.events.length;let x=y,S;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){S=t.events[x][1].end;break}h(a);let k=y;for(;k<t.events.length;)t.events[k][1].end={...S},k++;return _n(t.events,x+1,0,t.events.slice(y)),t.events.length=k,p(m)}return o(m)}function p(m){if(a===n.length){if(!r)return d(m);if(r.currentConstruct&&r.currentConstruct.concrete)return W(m);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rb,u,c)(m)}function u(m){return r&&g(),h(a),d(m)}function c(m){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,W(m)}function d(m){return t.containerState={},e.attempt(rb,f,W)(m)}function f(m){return a++,n.push([t.currentConstruct,t.containerState]),d(m)}function W(m){if(m===null){r&&g(),h(0),e.consume(m);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),C(m)}function C(m){if(m===null){E(e.exit("chunkFlow"),!0),h(0),e.consume(m);return}return Be(m)?(e.consume(m),E(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(m),C)}function E(m,y){const x=t.sliceStream(m);if(y&&x.push(null),m.previous=l,l&&(l.next=m),l=m,r.defineSkip(m.start),r.write(x),t.parser.lazy[m.start.line]){let S=r.events.length;for(;S--;)if(r.events[S][1].start.offset<i&&(!r.events[S][1].end||r.events[S][1].end.offset>i))return;const k=t.events.length;let B=k,V,b;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(V){b=t.events[B][1].end;break}V=!0}for(h(a),S=k;S<t.events.length;)t.events[S][1].end={...b},S++;_n(t.events,B+1,0,t.events.slice(k)),t.events.length=S}}function h(m){let y=n.length;for(;y-- >m;){const x=n[y];t.containerState=x[1],x[0].exit.call(t,e)}n.length=m}function g(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function eP(e,t,n){return tt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $i(e){if(e===null||Wt(e)||Tl(e))return 1;if(lA(e))return 2}function iA(e,t,n){const a=[];let r=-1;for(;++r<e.length;){const l=e[r].resolveAll;l&&!a.includes(l)&&(t=l(t,n),a.push(l))}return t}const Zh={name:"attention",resolveAll:tP,tokenize:nP};function tP(e,t){let n=-1,a,r,l,i,o,s,p,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(a=n;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[a][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[a][1].end.offset-e[a][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[a][1].end},d={...e[n][1].start};lb(c,-s),lb(d,s),i={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[a][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},l={type:s>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[n][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[a][1].end={...i.start},e[n][1].start={...o.end},p=[],e[a][1].end.offset-e[a][1].start.offset&&(p=va(p,[["enter",e[a][1],t],["exit",e[a][1],t]])),p=va(p,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",l,t]]),p=va(p,iA(t.parser.constructs.insideSpan.null,e.slice(a+1,n),t)),p=va(p,[["exit",l,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,p=va(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,_n(e,a-1,n-a+3,p),n=a+p.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function nP(e,t){const n=this.parser.constructs.attentionMarkers.null,a=this.previous,r=$i(a);let l;return i;function i(s){return l=s,e.enter("attentionSequence"),o(s)}function o(s){if(s===l)return e.consume(s),o;const p=e.exit("attentionSequence"),u=$i(s),c=!u||u===2&&r||n.includes(s),d=!r||r===2&&u||n.includes(a);return p._open=!!(l===42?c:c&&(r||!d)),p._close=!!(l===42?d:d&&(u||!c)),t(s)}}function lb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const aP={name:"autolink",tokenize:rP};function rP(e,t,n){let a=0;return r;function r(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(f){return Cn(f)?(e.consume(f),i):f===64?n(f):p(f)}function i(f){return f===43||f===45||f===46||An(f)?(a=1,o(f)):p(f)}function o(f){return f===58?(e.consume(f),a=0,s):(f===43||f===45||f===46||An(f))&&a++<32?(e.consume(f),o):(a=0,p(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||rA(f)?n(f):(e.consume(f),s)}function p(f){return f===64?(e.consume(f),u):Z6(f)?(e.consume(f),p):n(f)}function u(f){return An(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),a=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):d(f)}function d(f){if((f===45||An(f))&&a++<63){const W=f===45?d:c;return e.consume(f),W}return n(f)}}const Ps={partial:!0,tokenize:lP};function lP(e,t,n){return a;function a(l){return _e(l)?tt(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||Be(l)?t(l):n(l)}}const ib={continuation:{tokenize:oP},exit:sP,name:"blockQuote",tokenize:iP};function iP(e,t,n){const a=this;return r;function r(i){if(i===62){const o=a.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),l}return n(i)}function l(i){return _e(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function oP(e,t,n){const a=this;return r;function r(i){return _e(i)?tt(e,l,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):l(i)}function l(i){return e.attempt(ib,t,n)(i)}}function sP(e){e.exit("blockQuote")}const ob={name:"characterEscape",tokenize:pP};function pP(e,t,n){return a;function a(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return G6(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const sb={name:"characterReference",tokenize:uP};function uP(e,t,n){const a=this;let r=0,l,i;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),l=31,i=An,u(c))}function p(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,i=N6,u):(e.enter("characterReferenceValue"),l=7,i=Yh,u(c))}function u(c){if(c===59&&r){const d=e.exit("characterReferenceValue");return i===An&&!Dh(a.sliceSerialize(d))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(c)&&r++<l?(e.consume(c),u):n(c)}}const pb={partial:!0,tokenize:AP},ub={concrete:!0,name:"codeFenced",tokenize:cP};function cP(e,t,n){const a=this,r={partial:!0,tokenize:x};let l=0,i=0,o;return s;function s(S){return p(S)}function p(S){const k=a.events[a.events.length-1];return l=k&&k[1].type==="linePrefix"?k[2].sliceSerialize(k[1],!0).length:0,o=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(S)}function u(S){return S===o?(i++,e.consume(S),u):i<3?n(S):(e.exit("codeFencedFenceSequence"),_e(S)?tt(e,c,"whitespace")(S):c(S))}function c(S){return S===null||Be(S)?(e.exit("codeFencedFence"),a.interrupt?t(S):e.check(pb,C,y)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):_e(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),tt(e,f,"whitespace")(S)):S===96&&S===o?n(S):(e.consume(S),d)}function f(S){return S===null||Be(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),W(S))}function W(S){return S===null||Be(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===o?n(S):(e.consume(S),W)}function C(S){return e.attempt(r,y,E)(S)}function E(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),h}function h(S){return l>0&&_e(S)?tt(e,g,"linePrefix",l+1)(S):g(S)}function g(S){return S===null||Be(S)?e.check(pb,C,y)(S):(e.enter("codeFlowValue"),m(S))}function m(S){return S===null||Be(S)?(e.exit("codeFlowValue"),g(S)):(e.consume(S),m)}function y(S){return e.exit("codeFenced"),t(S)}function x(S,k,B){let V=0;return b;function b(T){return S.enter("lineEnding"),S.consume(T),S.exit("lineEnding"),w}function w(T){return S.enter("codeFencedFence"),_e(T)?tt(S,M,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):M(T)}function M(T){return T===o?(S.enter("codeFencedFenceSequence"),z(T)):B(T)}function z(T){return T===o?(V++,S.consume(T),z):V>=i?(S.exit("codeFencedFenceSequence"),_e(T)?tt(S,F,"whitespace")(T):F(T)):B(T)}function F(T){return T===null||Be(T)?(S.exit("codeFencedFence"),k(T)):B(T)}}}function AP(e,t,n){const a=this;return r;function r(i){return i===null?n(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l)}function l(i){return a.parser.lazy[a.now().line]?n(i):t(i)}}const Nh={name:"codeIndented",tokenize:fP},dP={partial:!0,tokenize:WP};function fP(e,t,n){const a=this;return r;function r(p){return e.enter("codeIndented"),tt(e,l,"linePrefix",5)(p)}function l(p){const u=a.events[a.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?i(p):n(p)}function i(p){return p===null?s(p):Be(p)?e.attempt(dP,i,s)(p):(e.enter("codeFlowValue"),o(p))}function o(p){return p===null||Be(p)?(e.exit("codeFlowValue"),i(p)):(e.consume(p),o)}function s(p){return e.exit("codeIndented"),t(p)}}function WP(e,t,n){const a=this;return r;function r(i){return a.parser.lazy[a.now().line]?n(i):Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):tt(e,l,"linePrefix",5)(i)}function l(i){const o=a.events[a.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):Be(i)?r(i):n(i)}}const gP={name:"codeText",previous:mP,resolve:hP,tokenize:CP};function hP(e){let t=e.length-4,n=3,a,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=n;++a<t;)if(e[a][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(a=n-1,t++;++a<=t;)r===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(r=a):(a===t||e[a][1].type==="lineEnding")&&(e[r][1].type="codeTextData",a!==r+2&&(e[r][1].end=e[a-1][1].end,e.splice(r+2,a-r-2),t-=a-r-2,a=r+2),r=void 0);return e}function mP(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function CP(e,t,n){let a=0,r,l;return i;function i(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),a++,o):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),r=0,u(c)):Be(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),p(c))}function p(c){return c===null||c===32||c===96||Be(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),p)}function u(c){return c===96?(e.consume(c),r++,u):r===a?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",p(c))}}class vP{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const a=n??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(t,a):t>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(t,n,a){const r=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return a&&Js(this.left,a),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Js(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Js(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Js(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Js(this.left,n.reverse())}}}function Js(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function cb(e){const t={};let n=-1,a,r,l,i,o,s,p;const u=new vP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(a=u.get(n),n&&a[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(s=a[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(a[0]==="enter")a[1].contentType&&(Object.assign(t,yP(u,n)),n=t[n],p=!0);else if(a[1]._container){for(l=n,r=void 0;l--;)if(i=u.get(l),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=l);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(a[1].end={...u.get(r)[1].start},o=u.slice(r,n),o.unshift(a),u.splice(r,n-r+1,o))}}return _n(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!p}function yP(e,t){const n=e.get(t)[1],a=e.get(t)[2];let r=t-1;const l=[];let i=n._tokenizer;i||(i=a.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));const o=i.events,s=[],p={};let u,c,d=-1,f=n,W=0,C=0;const E=[C];for(;f;){for(;e.get(++r)[1]!==f;);l.push(r),f._tokenizer||(u=a.sliceStream(f),f.next||u.push(null),c&&i.defineSkip(f.start),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(u),f._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(C=d+1,E.push(C),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(i.events=[],f?(f._tokenizer=void 0,f.previous=void 0):E.pop(),d=E.length;d--;){const h=o.slice(E[d],E[d+1]),g=l.pop();s.push([g,g+h.length-1]),e.splice(g,2,h)}for(s.reverse(),d=-1;++d<s.length;)p[W+s[d][0]]=W+s[d][1],W+=s[d][1]-s[d][0]-1;return p}const IP={resolve:EP,tokenize:xP},SP={partial:!0,tokenize:bP};function EP(e){return cb(e),e}function xP(e,t){let n;return a;function a(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(o)}function r(o){return o===null?l(o):Be(o)?e.check(SP,i,l)(o):(e.consume(o),r)}function l(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function i(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function bP(e,t,n){const a=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),tt(e,l,"linePrefix")}function l(i){if(i===null||Be(i))return n(i);const o=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(a.parser.constructs.flow,n,t)(i)}}function Ab(e,t,n,a,r,l,i,o,s){const p=s||Number.POSITIVE_INFINITY;let u=0;return c;function c(h){return h===60?(e.enter(a),e.enter(r),e.enter(l),e.consume(h),e.exit(l),d):h===null||h===32||h===41||rA(h)?n(h):(e.enter(a),e.enter(i),e.enter(o),e.enter("chunkString",{contentType:"string"}),C(h))}function d(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(r),e.exit(a),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===62?(e.exit("chunkString"),e.exit(o),d(h)):h===null||h===60||Be(h)?n(h):(e.consume(h),h===92?W:f)}function W(h){return h===60||h===62||h===92?(e.consume(h),f):f(h)}function C(h){return!u&&(h===null||h===41||Wt(h))?(e.exit("chunkString"),e.exit(o),e.exit(i),e.exit(a),t(h)):u<p&&h===40?(e.consume(h),u++,C):h===41?(e.consume(h),u--,C):h===null||h===32||h===40||rA(h)?n(h):(e.consume(h),h===92?E:C)}function E(h){return h===40||h===41||h===92?(e.consume(h),C):C(h)}}function db(e,t,n,a,r,l){const i=this;let o=0,s;return p;function p(f){return e.enter(a),e.enter(r),e.consume(f),e.exit(r),e.enter(l),u}function u(f){return o>999||f===null||f===91||f===93&&!s||f===94&&!o&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):f===93?(e.exit(l),e.enter(r),e.consume(f),e.exit(r),e.exit(a),t):Be(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||Be(f)||o++>999?(e.exit("chunkString"),u(f)):(e.consume(f),s||(s=!_e(f)),f===92?d:c)}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,c):c(f)}}function fb(e,t,n,a,r,l){let i;return o;function o(d){return d===34||d===39||d===40?(e.enter(a),e.enter(r),e.consume(d),e.exit(r),i=d===40?41:d,s):n(d)}function s(d){return d===i?(e.enter(r),e.consume(d),e.exit(r),e.exit(a),t):(e.enter(l),p(d))}function p(d){return d===i?(e.exit(l),s(i)):d===null?n(d):Be(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),tt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===i||d===null||Be(d)?(e.exit("chunkString"),p(d)):(e.consume(d),d===92?c:u)}function c(d){return d===i||d===92?(e.consume(d),u):u(d)}}function Ds(e,t){let n;return a;function a(r){return Be(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,a):_e(r)?tt(e,a,n?"linePrefix":"lineSuffix")(r):t(r)}}const kP={name:"definition",tokenize:wP},RP={partial:!0,tokenize:BP};function wP(e,t,n){const a=this;let r;return l;function l(f){return e.enter("definition"),i(f)}function i(f){return db.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return r=Va(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return Wt(f)?Ds(e,p)(f):p(f)}function p(f){return Ab(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(RP,c,c)(f)}function c(f){return _e(f)?tt(e,d,"whitespace")(f):d(f)}function d(f){return f===null||Be(f)?(e.exit("definition"),a.parser.defined.push(r),t(f)):n(f)}}function BP(e,t,n){return a;function a(o){return Wt(o)?Ds(e,r)(o):n(o)}function r(o){return fb(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return _e(o)?tt(e,i,"whitespace")(o):i(o)}function i(o){return o===null||Be(o)?t(o):n(o)}}const MP={name:"hardBreakEscape",tokenize:LP};function LP(e,t,n){return a;function a(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return Be(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const QP={name:"headingAtx",resolve:VP,tokenize:UP};function VP(e,t){let n=e.length-2,a=3,r,l;return e[a][1].type==="whitespace"&&(a+=2),n-2>a&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(a===n-1||n-4>a&&e[n-2][1].type==="whitespace")&&(n-=a+1===n?2:4),n>a&&(r={type:"atxHeadingText",start:e[a][1].start,end:e[n][1].end},l={type:"chunkText",start:e[a][1].start,end:e[n][1].end,contentType:"text"},_n(e,a,n-a+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function UP(e,t,n){let a=0;return r;function r(u){return e.enter("atxHeading"),l(u)}function l(u){return e.enter("atxHeadingSequence"),i(u)}function i(u){return u===35&&a++<6?(e.consume(u),i):u===null||Wt(u)?(e.exit("atxHeadingSequence"),o(u)):n(u)}function o(u){return u===35?(e.enter("atxHeadingSequence"),s(u)):u===null||Be(u)?(e.exit("atxHeading"),t(u)):_e(u)?tt(e,o,"whitespace")(u):(e.enter("atxHeadingText"),p(u))}function s(u){return u===35?(e.consume(u),s):(e.exit("atxHeadingSequence"),o(u))}function p(u){return u===null||u===35||Wt(u)?(e.exit("atxHeadingText"),o(u)):(e.consume(u),p)}}const FP=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Wb=["pre","script","style","textarea"],zP={concrete:!0,name:"htmlFlow",resolveTo:TP,tokenize:KP},qP={partial:!0,tokenize:PP},jP={partial:!0,tokenize:OP};function TP(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function KP(e,t,n){const a=this;let r,l,i,o,s;return p;function p(L){return u(L)}function u(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),c}function c(L){return L===33?(e.consume(L),d):L===47?(e.consume(L),l=!0,C):L===63?(e.consume(L),r=3,a.interrupt?t:R):Cn(L)?(e.consume(L),i=String.fromCharCode(L),E):n(L)}function d(L){return L===45?(e.consume(L),r=2,f):L===91?(e.consume(L),r=5,o=0,W):Cn(L)?(e.consume(L),r=4,a.interrupt?t:R):n(L)}function f(L){return L===45?(e.consume(L),a.interrupt?t:R):n(L)}function W(L){const te="CDATA[";return L===te.charCodeAt(o++)?(e.consume(L),o===te.length?a.interrupt?t:M:W):n(L)}function C(L){return Cn(L)?(e.consume(L),i=String.fromCharCode(L),E):n(L)}function E(L){if(L===null||L===47||L===62||Wt(L)){const te=L===47,re=i.toLowerCase();return!te&&!l&&Wb.includes(re)?(r=1,a.interrupt?t(L):M(L)):FP.includes(i.toLowerCase())?(r=6,te?(e.consume(L),h):a.interrupt?t(L):M(L)):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(L):l?g(L):m(L))}return L===45||An(L)?(e.consume(L),i+=String.fromCharCode(L),E):n(L)}function h(L){return L===62?(e.consume(L),a.interrupt?t:M):n(L)}function g(L){return _e(L)?(e.consume(L),g):b(L)}function m(L){return L===47?(e.consume(L),b):L===58||L===95||Cn(L)?(e.consume(L),y):_e(L)?(e.consume(L),m):b(L)}function y(L){return L===45||L===46||L===58||L===95||An(L)?(e.consume(L),y):x(L)}function x(L){return L===61?(e.consume(L),S):_e(L)?(e.consume(L),x):m(L)}function S(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),s=L,k):_e(L)?(e.consume(L),S):B(L)}function k(L){return L===s?(e.consume(L),s=null,V):L===null||Be(L)?n(L):(e.consume(L),k)}function B(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Wt(L)?x(L):(e.consume(L),B)}function V(L){return L===47||L===62||_e(L)?m(L):n(L)}function b(L){return L===62?(e.consume(L),w):n(L)}function w(L){return L===null||Be(L)?M(L):_e(L)?(e.consume(L),w):n(L)}function M(L){return L===45&&r===2?(e.consume(L),U):L===60&&r===1?(e.consume(L),q):L===62&&r===4?(e.consume(L),X):L===63&&r===3?(e.consume(L),R):L===93&&r===5?(e.consume(L),K):Be(L)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(qP,G,z)(L)):L===null||Be(L)?(e.exit("htmlFlowData"),z(L)):(e.consume(L),M)}function z(L){return e.check(jP,F,G)(L)}function F(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),T}function T(L){return L===null||Be(L)?z(L):(e.enter("htmlFlowData"),M(L))}function U(L){return L===45?(e.consume(L),R):M(L)}function q(L){return L===47?(e.consume(L),i="",Q):M(L)}function Q(L){if(L===62){const te=i.toLowerCase();return Wb.includes(te)?(e.consume(L),X):M(L)}return Cn(L)&&i.length<8?(e.consume(L),i+=String.fromCharCode(L),Q):M(L)}function K(L){return L===93?(e.consume(L),R):M(L)}function R(L){return L===62?(e.consume(L),X):L===45&&r===2?(e.consume(L),R):M(L)}function X(L){return L===null||Be(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),X)}function G(L){return e.exit("htmlFlow"),t(L)}}function OP(e,t,n){const a=this;return r;function r(i){return Be(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),l):n(i)}function l(i){return a.parser.lazy[a.now().line]?n(i):t(i)}}function PP(e,t,n){return a;function a(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Ps,t,n)}}const JP={name:"htmlText",tokenize:DP};function DP(e,t,n){const a=this;let r,l,i;return o;function o(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),s}function s(R){return R===33?(e.consume(R),p):R===47?(e.consume(R),x):R===63?(e.consume(R),m):Cn(R)?(e.consume(R),B):n(R)}function p(R){return R===45?(e.consume(R),u):R===91?(e.consume(R),l=0,W):Cn(R)?(e.consume(R),g):n(R)}function u(R){return R===45?(e.consume(R),f):n(R)}function c(R){return R===null?n(R):R===45?(e.consume(R),d):Be(R)?(i=c,q(R)):(e.consume(R),c)}function d(R){return R===45?(e.consume(R),f):c(R)}function f(R){return R===62?U(R):R===45?d(R):c(R)}function W(R){const X="CDATA[";return R===X.charCodeAt(l++)?(e.consume(R),l===X.length?C:W):n(R)}function C(R){return R===null?n(R):R===93?(e.consume(R),E):Be(R)?(i=C,q(R)):(e.consume(R),C)}function E(R){return R===93?(e.consume(R),h):C(R)}function h(R){return R===62?U(R):R===93?(e.consume(R),h):C(R)}function g(R){return R===null||R===62?U(R):Be(R)?(i=g,q(R)):(e.consume(R),g)}function m(R){return R===null?n(R):R===63?(e.consume(R),y):Be(R)?(i=m,q(R)):(e.consume(R),m)}function y(R){return R===62?U(R):m(R)}function x(R){return Cn(R)?(e.consume(R),S):n(R)}function S(R){return R===45||An(R)?(e.consume(R),S):k(R)}function k(R){return Be(R)?(i=k,q(R)):_e(R)?(e.consume(R),k):U(R)}function B(R){return R===45||An(R)?(e.consume(R),B):R===47||R===62||Wt(R)?V(R):n(R)}function V(R){return R===47?(e.consume(R),U):R===58||R===95||Cn(R)?(e.consume(R),b):Be(R)?(i=V,q(R)):_e(R)?(e.consume(R),V):U(R)}function b(R){return R===45||R===46||R===58||R===95||An(R)?(e.consume(R),b):w(R)}function w(R){return R===61?(e.consume(R),M):Be(R)?(i=w,q(R)):_e(R)?(e.consume(R),w):V(R)}function M(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),r=R,z):Be(R)?(i=M,q(R)):_e(R)?(e.consume(R),M):(e.consume(R),F)}function z(R){return R===r?(e.consume(R),r=void 0,T):R===null?n(R):Be(R)?(i=z,q(R)):(e.consume(R),z)}function F(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Wt(R)?V(R):(e.consume(R),F)}function T(R){return R===47||R===62||Wt(R)?V(R):n(R)}function U(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function q(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),Q}function Q(R){return _e(R)?tt(e,K,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):K(R)}function K(R){return e.enter("htmlTextData"),i(R)}}const Gh={name:"labelEnd",resolveAll:GP,resolveTo:XP,tokenize:HP},YP={tokenize:_P},ZP={tokenize:$P},NP={tokenize:eJ};function GP(e){let t=-1;const n=[];for(;++t<e.length;){const a=e[t][1];if(n.push(e[t]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const r=a.type==="labelImage"?4:2;a.type="data",t+=r}}return e.length!==n.length&&_n(e,0,e.length,n),e}function XP(e,t){let n=e.length,a=0,r,l,i,o;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){a=2;break}}else r.type==="labelEnd"&&(i=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[l][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[l+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",s,t],["enter",p,t]],o=va(o,e.slice(l+1,l+a+3)),o=va(o,[["enter",u,t]]),o=va(o,iA(t.parser.constructs.insideSpan.null,e.slice(l+a+4,i-3),t)),o=va(o,[["exit",u,t],e[i-2],e[i-1],["exit",p,t]]),o=va(o,e.slice(i+1)),o=va(o,[["exit",s,t]]),_n(e,l,e.length,o),e}function HP(e,t,n){const a=this;let r=a.events.length,l,i;for(;r--;)if((a.events[r][1].type==="labelImage"||a.events[r][1].type==="labelLink")&&!a.events[r][1]._balanced){l=a.events[r][1];break}return o;function o(d){return l?l._inactive?c(d):(i=a.parser.defined.includes(Va(a.sliceSerialize({start:l.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),s):n(d)}function s(d){return d===40?e.attempt(YP,u,i?u:c)(d):d===91?e.attempt(ZP,u,i?p:c)(d):i?u(d):c(d)}function p(d){return e.attempt(NP,u,c)(d)}function u(d){return t(d)}function c(d){return l._balanced=!0,n(d)}}function _P(e,t,n){return a;function a(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),r}function r(c){return Wt(c)?Ds(e,l)(c):l(c)}function l(c){return c===41?u(c):Ab(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function i(c){return Wt(c)?Ds(e,s)(c):u(c)}function o(c){return n(c)}function s(c){return c===34||c===39||c===40?fb(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):u(c)}function p(c){return Wt(c)?Ds(e,u)(c):u(c)}function u(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function $P(e,t,n){const a=this;return r;function r(o){return db.call(a,e,l,i,"reference","referenceMarker","referenceString")(o)}function l(o){return a.parser.defined.includes(Va(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function i(o){return n(o)}}function eJ(e,t,n){return a;function a(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const tJ={name:"labelStartImage",resolveAll:Gh.resolveAll,tokenize:nJ};function nJ(e,t,n){const a=this;return r;function r(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),i):n(o)}function i(o){return o===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(o):t(o)}}const aJ={name:"labelStartLink",resolveAll:Gh.resolveAll,tokenize:rJ};function rJ(e,t,n){const a=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),l}function l(i){return i===94&&"_hiddenFootnoteSupport"in a.parser.constructs?n(i):t(i)}}const Xh={name:"lineEnding",tokenize:lJ};function lJ(e,t){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),tt(e,t,"linePrefix")}}const oA={name:"thematicBreak",tokenize:iJ};function iJ(e,t,n){let a=0,r;return l;function l(p){return e.enter("thematicBreak"),i(p)}function i(p){return r=p,o(p)}function o(p){return p===r?(e.enter("thematicBreakSequence"),s(p)):a>=3&&(p===null||Be(p))?(e.exit("thematicBreak"),t(p)):n(p)}function s(p){return p===r?(e.consume(p),a++,s):(e.exit("thematicBreakSequence"),_e(p)?tt(e,o,"whitespace")(p):o(p))}}const Vn={continuation:{tokenize:uJ},exit:AJ,name:"list",tokenize:pJ},oJ={partial:!0,tokenize:dJ},sJ={partial:!0,tokenize:cJ};function pJ(e,t,n){const a=this,r=a.events[a.events.length-1];let l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return o;function o(f){const W=a.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(W==="listUnordered"?!a.containerState.marker||f===a.containerState.marker:Yh(f)){if(a.containerState.type||(a.containerState.type=W,e.enter(W,{_container:!0})),W==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(oA,n,p)(f):p(f);if(!a.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return Yh(f)&&++i<10?(e.consume(f),s):(!a.interrupt||i<2)&&(a.containerState.marker?f===a.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),p(f)):n(f)}function p(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||f,e.check(Ps,a.interrupt?n:u,e.attempt(oJ,d,c))}function u(f){return a.containerState.initialBlankLine=!0,l++,d(f)}function c(f){return _e(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),d):n(f)}function d(f){return a.containerState.size=l+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function uJ(e,t,n){const a=this;return a.containerState._closeFlow=void 0,e.check(Ps,r,l);function r(o){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,tt(e,t,"listItemIndent",a.containerState.size+1)(o)}function l(o){return a.containerState.furtherBlankLines||!_e(o)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,i(o)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(sJ,t,i)(o))}function i(o){return a.containerState._closeFlow=!0,a.interrupt=void 0,tt(e,e.attempt(Vn,t,n),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function cJ(e,t,n){const a=this;return tt(e,r,"listItemIndent",a.containerState.size+1);function r(l){const i=a.events[a.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===a.containerState.size?t(l):n(l)}}function AJ(e){e.exit(this.containerState.type)}function dJ(e,t,n){const a=this;return tt(e,r,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){const i=a.events[a.events.length-1];return!_e(l)&&i&&i[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const gb={name:"setextUnderline",resolveTo:fJ,tokenize:WJ};function fJ(e,t){let n=e.length,a,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){a=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const i={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",i,t]),e.splice(l+1,0,["exit",e[a][1],t]),e[a][1].end={...e[l][1].end}):e[a][1]=i,e.push(["exit",i,t]),e}function WJ(e,t,n){const a=this;let r;return l;function l(p){let u=a.events.length,c;for(;u--;)if(a.events[u][1].type!=="lineEnding"&&a.events[u][1].type!=="linePrefix"&&a.events[u][1].type!=="content"){c=a.events[u][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||c)?(e.enter("setextHeadingLine"),r=p,i(p)):n(p)}function i(p){return e.enter("setextHeadingLineSequence"),o(p)}function o(p){return p===r?(e.consume(p),o):(e.exit("setextHeadingLineSequence"),_e(p)?tt(e,s,"lineSuffix")(p):s(p))}function s(p){return p===null||Be(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const gJ={tokenize:hJ};function hJ(e){const t=this,n=e.attempt(Ps,a,e.attempt(this.parser.constructs.flowInitial,r,tt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(IP,r)),"linePrefix")));return n;function a(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const mJ={resolveAll:mb()},CJ=hb("string"),vJ=hb("text");function hb(e){return{resolveAll:mb(e==="text"?yJ:void 0),tokenize:t};function t(n){const a=this,r=this.parser.constructs[e],l=n.attempt(r,i,o);return i;function i(u){return p(u)?l(u):o(u)}function o(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),s}function s(u){return p(u)?(n.exit("data"),l(u)):(n.consume(u),s)}function p(u){if(u===null)return!0;const c=r[u];let d=-1;if(c)for(;++d<c.length;){const f=c[d];if(!f.previous||f.previous.call(a,a.previous))return!0}return!1}}}function mb(e){return t;function t(n,a){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,a):n}}function yJ(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const a=e[n-1][1],r=t.sliceStream(a);let l=r.length,i=-1,o=0,s;for(;l--;){const p=r[l];if(typeof p=="string"){for(i=p.length;p.charCodeAt(i-1)===32;)o++,i--;if(i)break;i=-1}else if(p===-2)s=!0,o++;else if(p!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const p={type:n===e.length||s||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?i:a.start._bufferIndex+i,_index:a.start._index+l,line:a.end.line,column:a.end.column-o,offset:a.end.offset-o},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const IJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:kP},disable:{null:[]},document:{42:Vn,43:Vn,45:Vn,48:Vn,49:Vn,50:Vn,51:Vn,52:Vn,53:Vn,54:Vn,55:Vn,56:Vn,57:Vn,62:ib},flow:{35:QP,42:oA,45:[gb,oA],60:zP,61:gb,95:oA,96:ub,126:ub},flowInitial:{[-2]:Nh,[-1]:Nh,32:Nh},insideSpan:{null:[Zh,mJ]},string:{38:sb,92:ob},text:{[-5]:Xh,[-4]:Xh,[-3]:Xh,33:tJ,38:sb,42:Zh,60:[aP,JP],91:aJ,92:[MP,ob],93:Gh,95:Zh,96:gP}},Symbol.toStringTag,{value:"Module"}));function SJ(e,t,n){let a={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},l=[];let i=[],o=[];const s={attempt:k(x),check:k(S),consume:g,enter:m,exit:y,interrupt:k(S,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:W,parser:e,previous:null,sliceSerialize:d,sliceStream:f,write:c};let u=t.tokenize.call(p,s);return t.resolveAll&&l.push(t),p;function c(w){return i=va(i,w),E(),i[i.length-1]!==null?[]:(B(t,0),p.events=iA(l,p.events,p),p.events)}function d(w,M){return xJ(f(w),M)}function f(w){return EJ(i,w)}function W(){const{_bufferIndex:w,_index:M,line:z,column:F,offset:T}=a;return{_bufferIndex:w,_index:M,line:z,column:F,offset:T}}function C(w){r[w.line]=w.column,b()}function E(){let w;for(;a._index<i.length;){const M=i[a._index];if(typeof M=="string")for(w=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===w&&a._bufferIndex<M.length;)h(M.charCodeAt(a._bufferIndex));else h(M)}}function h(w){u=u(w)}function g(w){Be(w)?(a.line++,a.column=1,a.offset+=w===-3?2:1,b()):w!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===i[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=w}function m(w,M){const z=M||{};return z.type=w,z.start=W(),p.events.push(["enter",z,p]),o.push(z),z}function y(w){const M=o.pop();return M.end=W(),p.events.push(["exit",M,p]),M}function x(w,M){B(w,M.from)}function S(w,M){M.restore()}function k(w,M){return z;function z(F,T,U){let q,Q,K,R;return Array.isArray(F)?G(F):"tokenize"in F?G([F]):X(F);function X(oe){return ve;function ve(fe){const he=fe!==null&&oe[fe],ze=fe!==null&&oe.null,_=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ze)?ze:ze?[ze]:[]];return G(_)(fe)}}function G(oe){return q=oe,Q=0,oe.length===0?U:L(oe[Q])}function L(oe){return ve;function ve(fe){return R=V(),K=oe,oe.partial||(p.currentConstruct=oe),oe.name&&p.parser.constructs.disable.null.includes(oe.name)?re():oe.tokenize.call(M?Object.assign(Object.create(p),M):p,s,te,re)(fe)}}function te(oe){return w(K,R),T}function re(oe){return R.restore(),++Q<q.length?L(q[Q]):U}}}function B(w,M){w.resolveAll&&!l.includes(w)&&l.push(w),w.resolve&&_n(p.events,M,p.events.length-M,w.resolve(p.events.slice(M),p)),w.resolveTo&&(p.events=w.resolveTo(p.events,p))}function V(){const w=W(),M=p.previous,z=p.currentConstruct,F=p.events.length,T=Array.from(o);return{from:F,restore:U};function U(){a=w,p.previous=M,p.currentConstruct=z,p.events.length=F,o=T,b()}}function b(){a.line in r&&a.column<2&&(a.column=r[a.line],a.offset+=r[a.line]-1)}}function EJ(e,t){const n=t.start._index,a=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex;let i;if(n===r)i=[e[n].slice(a,l)];else{if(i=e.slice(n,r),a>-1){const o=i[0];typeof o=="string"?i[0]=o.slice(a):i.shift()}l>0&&i.push(e[r].slice(0,l))}return i}function xJ(e,t){let n=-1;const a=[];let r;for(;++n<e.length;){const l=e[n];let i;if(typeof l=="string")i=l;else switch(l){case-5:{i="\r";break}case-4:{i=`
788
788
  `;break}case-3:{i=`\r
789
- `;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(l)}r=l===-2,a.push(i)}return a.join("")}function bJ(e){const a={constructs:nb([IJ,...(e||{}).extensions||[]]),content:r(X6),defined:[],document:r(_6),flow:r(gJ),lazy:{},string:r(CJ),text:r(vJ)};return a;function r(l){return i;function i(o){return SJ(a,l,o)}}}function kJ(e){for(;!cb(e););return e}const Cb=/[\0\t\n\r]/g;function RJ(){let e=1,t="",n=!0,a;return r;function r(l,i,o){const s=[];let p,u,c,d,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(i||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Cb.lastIndex=c,p=Cb.exec(l),d=p&&p.index!==void 0?p.index:l.length,f=l.charCodeAt(d),!p){t=l.slice(c);break}if(f===10&&c===d&&a)s.push(-3),a=void 0;else switch(a&&(s.push(-5),a=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),f){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:a=!0,e=1}c=d+1}return o&&(a&&s.push(-5),t&&s.push(t),s.push(null)),s}}const wJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BJ(e){return e.replace(wJ,MJ)}function MJ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),l=r===120||r===88;return ab(n.slice(l?2:1),l?16:10)}return Dh(n)||e}const vb={}.hasOwnProperty;function LJ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),QJ(n)(kJ(bJ(n).document().write(RJ()(e,t,!0))))}function QJ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Le),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(se),blockQuote:l(ze),characterEscape:V,characterReference:V,codeFenced:l(_),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:l(_,i),codeText:l(ee,i),codeTextData:V,data:V,codeFlowValue:V,definition:l(ge),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:l(Ce),hardBreakEscape:l(ue),hardBreakTrailing:l(ue),htmlFlow:l(Te,i),htmlFlowData:V,htmlText:l(Te,i),htmlTextData:V,image:l(ne),label:i,link:l(Le),listItem:l(ye),listItemValue:d,listOrdered:l(Me,c),listUnordered:l(Me),paragraph:l(De),reference:L,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:l(se),strong:l(Qe),thematicBreak:l(P)},exit:{atxHeading:s(),atxHeadingSequence:x,autolink:s(),autolinkEmail:he,autolinkProtocol:fe,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:oe,characterReference:ve,codeFenced:s(E),codeFencedFence:C,codeFencedFenceInfo:f,codeFencedFenceMeta:W,codeFlowValue:b,codeIndented:s(h),codeText:s(T),codeTextData:b,data:b,definition:s(),definitionDestinationString:y,definitionLabelString:g,definitionTitleString:m,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(z),htmlFlowData:b,htmlText:s(F),htmlTextData:b,image:s(q),label:K,labelText:Q,lineEnding:w,link:s(U),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:te,resourceDestinationString:R,resourceTitleString:X,resource:G,setextHeading:s(B),setextHeadingLineSequence:k,setextHeadingText:S,strong:s(),thematicBreak:s()}};yb(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(j){let O={type:"root",children:[]};const Z={stack:[O],tokenStack:[],config:t,enter:o,exit:p,buffer:i,resume:u,data:n},Y=[];let de=-1;for(;++de<j.length;)if(j[de][1].type==="listOrdered"||j[de][1].type==="listUnordered")if(j[de][0]==="enter")Y.push(de);else{const je=Y.pop();de=r(j,je,de)}for(de=-1;++de<j.length;){const je=t[j[de][0]];vb.call(je,j[de][1].type)&&je[j[de][1].type].call(Object.assign({sliceSerialize:j[de][2].sliceSerialize},Z),j[de][1])}if(Z.tokenStack.length>0){const je=Z.tokenStack[Z.tokenStack.length-1];(je[1]||Ib).call(Z,void 0,je[0])}for(O.position={start:rl(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:rl(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)O=t.transforms[de](O)||O;return O}function r(j,O,Z){let Y=O-1,de=-1,je=!1,Xe,ce,Re,Ve;for(;++Y<=Z;){const Pe=j[Y];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?de++:de--,Ve=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(Xe&&!Ve&&!de&&!Re&&(Re=Y),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!de&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||de===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(Xe){let Ye=Y;for(ce=void 0;Ye--;){const Wt=j[Ye];if(Wt[1].type==="lineEnding"||Wt[1].type==="lineEndingBlank"){if(Wt[0]==="exit")continue;ce&&(j[ce][1].type="lineEndingBlank",je=!0),Wt[1].type="lineEnding",ce=Ye}else if(!(Wt[1].type==="linePrefix"||Wt[1].type==="blockQuotePrefix"||Wt[1].type==="blockQuotePrefixWhitespace"||Wt[1].type==="blockQuoteMarker"||Wt[1].type==="listItemIndent"))break}Re&&(!ce||Re<ce)&&(Xe._spread=!0),Xe.end=Object.assign({},ce?j[ce][1].start:Pe[1].end),j.splice(ce||Y,0,["exit",Xe,Pe[2]]),Y++,Z++}if(Pe[1].type==="listItemPrefix"){const Ye={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};Xe=Ye,j.splice(Y,0,["enter",Ye,Pe[2]]),Y++,Z++,Re=void 0,Ve=!0}}}return j[O][1]._spread=je,Z}function l(j,O){return Z;function Z(Y){o.call(this,j(Y),Y),O&&O.call(this,Y)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(j,O,Z){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([O,Z||void 0]),j.position={start:rl(O.start),end:void 0}}function s(j){return O;function O(Z){j&&j.call(this,Z),p.call(this,Z)}}function p(j,O){const Z=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==j.type&&(O?O.call(this,j,Y[0]):(Y[1]||Ib).call(this,j,Y[0]));else throw new Error("Cannot close `"+j.type+"` ("+Ks({start:j.start,end:j.end})+"): it’s not open");Z.position.end=rl(j.end)}function u(){return Jh(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(j){if(this.data.expectingFirstListItemValue){const O=this.stack[this.stack.length-2];O.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function f(){const j=this.resume(),O=this.stack[this.stack.length-1];O.lang=j}function W(){const j=this.resume(),O=this.stack[this.stack.length-1];O.meta=j}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j.replace(/(\r?\n|\r)$/g,"")}function g(j){const O=this.resume(),Z=this.stack[this.stack.length-1];Z.label=O,Z.identifier=Va(this.sliceSerialize(j)).toLowerCase()}function m(){const j=this.resume(),O=this.stack[this.stack.length-1];O.title=j}function y(){const j=this.resume(),O=this.stack[this.stack.length-1];O.url=j}function x(j){const O=this.stack[this.stack.length-1];if(!O.depth){const Z=this.sliceSerialize(j).length;O.depth=Z}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function k(j){const O=this.stack[this.stack.length-1];O.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function V(j){const Z=this.stack[this.stack.length-1].children;let Y=Z[Z.length-1];(!Y||Y.type!=="text")&&(Y=Fe(),Y.position={start:rl(j.start),end:void 0},Z.push(Y)),this.stack.push(Y)}function b(j){const O=this.stack.pop();O.value+=this.sliceSerialize(j),O.position.end=rl(j.end)}function w(j){const O=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Z=O.children[O.children.length-1];Z.position.end=rl(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(O.type)&&(V.call(this,j),b.call(this,j))}function M(){this.data.atHardBreak=!0}function z(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function F(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function T(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=O,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function q(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=O,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function Q(j){const O=this.sliceSerialize(j),Z=this.stack[this.stack.length-2];Z.label=BJ(O),Z.identifier=Va(O).toLowerCase()}function K(){const j=this.stack[this.stack.length-1],O=this.resume(),Z=this.stack[this.stack.length-1];if(this.data.inReference=!0,Z.type==="link"){const Y=j.children;Z.children=Y}else Z.alt=O}function R(){const j=this.resume(),O=this.stack[this.stack.length-1];O.url=j}function X(){const j=this.resume(),O=this.stack[this.stack.length-1];O.title=j}function G(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function te(j){const O=this.resume(),Z=this.stack[this.stack.length-1];Z.label=O,Z.identifier=Va(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function re(j){this.data.characterReferenceType=j.type}function oe(j){const O=this.sliceSerialize(j),Z=this.data.characterReferenceType;let Y;Z?(Y=ab(O,Z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=Dh(O);const de=this.stack[this.stack.length-1];de.value+=Y}function ve(j){const O=this.stack.pop();O.position.end=rl(j.end)}function fe(j){b.call(this,j);const O=this.stack[this.stack.length-1];O.url=this.sliceSerialize(j)}function he(j){b.call(this,j);const O=this.stack[this.stack.length-1];O.url="mailto:"+this.sliceSerialize(j)}function ze(){return{type:"blockquote",children:[]}}function _(){return{type:"code",lang:null,meta:null,value:""}}function ee(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function se(){return{type:"heading",depth:0,children:[]}}function ue(){return{type:"break"}}function Te(){return{type:"html",value:""}}function ne(){return{type:"image",title:null,url:"",alt:null}}function Le(){return{type:"link",title:null,url:"",children:[]}}function Me(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ye(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function De(){return{type:"paragraph",children:[]}}function Qe(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function P(){return{type:"thematicBreak"}}}function rl(e){return{line:e.line,column:e.column,offset:e.offset}}function yb(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?yb(e,a):VJ(e,a)}}function VJ(e,t){let n;for(n in t)if(vb.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function Ib(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ks({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ks({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ks({start:t.start,end:t.end})+") is still open")}function UJ(e){const t=this;t.parser=n;function n(a){return LJ(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function FJ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function zJ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
789
+ `;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(l)}r=l===-2,a.push(i)}return a.join("")}function bJ(e){const a={constructs:nb([IJ,...(e||{}).extensions||[]]),content:r(X6),defined:[],document:r(_6),flow:r(gJ),lazy:{},string:r(CJ),text:r(vJ)};return a;function r(l){return i;function i(o){return SJ(a,l,o)}}}function kJ(e){for(;!cb(e););return e}const Cb=/[\0\t\n\r]/g;function RJ(){let e=1,t="",n=!0,a;return r;function r(l,i,o){const s=[];let p,u,c,d,f;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(i||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(Cb.lastIndex=c,p=Cb.exec(l),d=p&&p.index!==void 0?p.index:l.length,f=l.charCodeAt(d),!p){t=l.slice(c);break}if(f===10&&c===d&&a)s.push(-3),a=void 0;else switch(a&&(s.push(-5),a=void 0),c<d&&(s.push(l.slice(c,d)),e+=d-c),f){case 0:{s.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,s.push(-2);e++<u;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:a=!0,e=1}c=d+1}return o&&(a&&s.push(-5),t&&s.push(t),s.push(null)),s}}const wJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function BJ(e){return e.replace(wJ,MJ)}function MJ(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),l=r===120||r===88;return ab(n.slice(l?2:1),l?16:10)}return Dh(n)||e}const vb={}.hasOwnProperty;function LJ(e,t,n){return typeof t!="string"&&(n=t,t=void 0),QJ(n)(kJ(bJ(n).document().write(RJ()(e,t,!0))))}function QJ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Le),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(se),blockQuote:l(ze),characterEscape:V,characterReference:V,codeFenced:l(_),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:l(_,i),codeText:l(ee,i),codeTextData:V,data:V,codeFlowValue:V,definition:l(ge),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:l(Ce),hardBreakEscape:l(ue),hardBreakTrailing:l(ue),htmlFlow:l(Te,i),htmlFlowData:V,htmlText:l(Te,i),htmlTextData:V,image:l(ne),label:i,link:l(Le),listItem:l(ye),listItemValue:d,listOrdered:l(Me,c),listUnordered:l(Me),paragraph:l(Ze),reference:L,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:l(se),strong:l(Qe),thematicBreak:l(P)},exit:{atxHeading:s(),atxHeadingSequence:x,autolink:s(),autolinkEmail:he,autolinkProtocol:fe,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:oe,characterReference:ve,codeFenced:s(E),codeFencedFence:C,codeFencedFenceInfo:f,codeFencedFenceMeta:W,codeFlowValue:b,codeIndented:s(h),codeText:s(T),codeTextData:b,data:b,definition:s(),definitionDestinationString:y,definitionLabelString:g,definitionTitleString:m,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(z),htmlFlowData:b,htmlText:s(F),htmlTextData:b,image:s(q),label:K,labelText:Q,lineEnding:w,link:s(U),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:te,resourceDestinationString:R,resourceTitleString:X,resource:G,setextHeading:s(B),setextHeadingLineSequence:k,setextHeadingText:S,strong:s(),thematicBreak:s()}};yb(t,(e||{}).mdastExtensions||[]);const n={};return a;function a(j){let O={type:"root",children:[]};const Z={stack:[O],tokenStack:[],config:t,enter:o,exit:p,buffer:i,resume:u,data:n},Y=[];let de=-1;for(;++de<j.length;)if(j[de][1].type==="listOrdered"||j[de][1].type==="listUnordered")if(j[de][0]==="enter")Y.push(de);else{const je=Y.pop();de=r(j,je,de)}for(de=-1;++de<j.length;){const je=t[j[de][0]];vb.call(je,j[de][1].type)&&je[j[de][1].type].call(Object.assign({sliceSerialize:j[de][2].sliceSerialize},Z),j[de][1])}if(Z.tokenStack.length>0){const je=Z.tokenStack[Z.tokenStack.length-1];(je[1]||Ib).call(Z,void 0,je[0])}for(O.position={start:rl(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:rl(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},de=-1;++de<t.transforms.length;)O=t.transforms[de](O)||O;return O}function r(j,O,Z){let Y=O-1,de=-1,je=!1,Xe,ce,Re,Ve;for(;++Y<=Z;){const Pe=j[Y];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?de++:de--,Ve=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(Xe&&!Ve&&!de&&!Re&&(Re=Y),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!de&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||de===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(Xe){let dt=Y;for(ce=void 0;dt--;){const $e=j[dt];if($e[1].type==="lineEnding"||$e[1].type==="lineEndingBlank"){if($e[0]==="exit")continue;ce&&(j[ce][1].type="lineEndingBlank",je=!0),$e[1].type="lineEnding",ce=dt}else if(!($e[1].type==="linePrefix"||$e[1].type==="blockQuotePrefix"||$e[1].type==="blockQuotePrefixWhitespace"||$e[1].type==="blockQuoteMarker"||$e[1].type==="listItemIndent"))break}Re&&(!ce||Re<ce)&&(Xe._spread=!0),Xe.end=Object.assign({},ce?j[ce][1].start:Pe[1].end),j.splice(ce||Y,0,["exit",Xe,Pe[2]]),Y++,Z++}if(Pe[1].type==="listItemPrefix"){const dt={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};Xe=dt,j.splice(Y,0,["enter",dt,Pe[2]]),Y++,Z++,Re=void 0,Ve=!0}}}return j[O][1]._spread=je,Z}function l(j,O){return Z;function Z(Y){o.call(this,j(Y),Y),O&&O.call(this,Y)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(j,O,Z){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([O,Z||void 0]),j.position={start:rl(O.start),end:void 0}}function s(j){return O;function O(Z){j&&j.call(this,Z),p.call(this,Z)}}function p(j,O){const Z=this.stack.pop(),Y=this.tokenStack.pop();if(Y)Y[0].type!==j.type&&(O?O.call(this,j,Y[0]):(Y[1]||Ib).call(this,j,Y[0]));else throw new Error("Cannot close `"+j.type+"` ("+Ks({start:j.start,end:j.end})+"): it’s not open");Z.position.end=rl(j.end)}function u(){return Jh(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function d(j){if(this.data.expectingFirstListItemValue){const O=this.stack[this.stack.length-2];O.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function f(){const j=this.resume(),O=this.stack[this.stack.length-1];O.lang=j}function W(){const j=this.resume(),O=this.stack[this.stack.length-1];O.meta=j}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j.replace(/(\r?\n|\r)$/g,"")}function g(j){const O=this.resume(),Z=this.stack[this.stack.length-1];Z.label=O,Z.identifier=Va(this.sliceSerialize(j)).toLowerCase()}function m(){const j=this.resume(),O=this.stack[this.stack.length-1];O.title=j}function y(){const j=this.resume(),O=this.stack[this.stack.length-1];O.url=j}function x(j){const O=this.stack[this.stack.length-1];if(!O.depth){const Z=this.sliceSerialize(j).length;O.depth=Z}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function k(j){const O=this.stack[this.stack.length-1];O.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function V(j){const Z=this.stack[this.stack.length-1].children;let Y=Z[Z.length-1];(!Y||Y.type!=="text")&&(Y=Fe(),Y.position={start:rl(j.start),end:void 0},Z.push(Y)),this.stack.push(Y)}function b(j){const O=this.stack.pop();O.value+=this.sliceSerialize(j),O.position.end=rl(j.end)}function w(j){const O=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Z=O.children[O.children.length-1];Z.position.end=rl(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(O.type)&&(V.call(this,j),b.call(this,j))}function M(){this.data.atHardBreak=!0}function z(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function F(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function T(){const j=this.resume(),O=this.stack[this.stack.length-1];O.value=j}function U(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=O,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function q(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const O=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=O,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function Q(j){const O=this.sliceSerialize(j),Z=this.stack[this.stack.length-2];Z.label=BJ(O),Z.identifier=Va(O).toLowerCase()}function K(){const j=this.stack[this.stack.length-1],O=this.resume(),Z=this.stack[this.stack.length-1];if(this.data.inReference=!0,Z.type==="link"){const Y=j.children;Z.children=Y}else Z.alt=O}function R(){const j=this.resume(),O=this.stack[this.stack.length-1];O.url=j}function X(){const j=this.resume(),O=this.stack[this.stack.length-1];O.title=j}function G(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function te(j){const O=this.resume(),Z=this.stack[this.stack.length-1];Z.label=O,Z.identifier=Va(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function re(j){this.data.characterReferenceType=j.type}function oe(j){const O=this.sliceSerialize(j),Z=this.data.characterReferenceType;let Y;Z?(Y=ab(O,Z==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Y=Dh(O);const de=this.stack[this.stack.length-1];de.value+=Y}function ve(j){const O=this.stack.pop();O.position.end=rl(j.end)}function fe(j){b.call(this,j);const O=this.stack[this.stack.length-1];O.url=this.sliceSerialize(j)}function he(j){b.call(this,j);const O=this.stack[this.stack.length-1];O.url="mailto:"+this.sliceSerialize(j)}function ze(){return{type:"blockquote",children:[]}}function _(){return{type:"code",lang:null,meta:null,value:""}}function ee(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function se(){return{type:"heading",depth:0,children:[]}}function ue(){return{type:"break"}}function Te(){return{type:"html",value:""}}function ne(){return{type:"image",title:null,url:"",alt:null}}function Le(){return{type:"link",title:null,url:"",children:[]}}function Me(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function ye(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function Ze(){return{type:"paragraph",children:[]}}function Qe(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function P(){return{type:"thematicBreak"}}}function rl(e){return{line:e.line,column:e.column,offset:e.offset}}function yb(e,t){let n=-1;for(;++n<t.length;){const a=t[n];Array.isArray(a)?yb(e,a):VJ(e,a)}}function VJ(e,t){let n;for(n in t)if(vb.call(t,n))switch(n){case"canContainEols":{const a=t[n];a&&e[n].push(...a);break}case"transforms":{const a=t[n];a&&e[n].push(...a);break}case"enter":case"exit":{const a=t[n];a&&Object.assign(e[n],a);break}}}function Ib(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ks({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ks({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ks({start:t.start,end:t.end})+") is still open")}function UJ(e){const t=this;t.parser=n;function n(a){return LJ(a,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function FJ(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function zJ(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
790
790
  `}]}function qJ(e,t){const n=t.value?t.value+`
791
791
  `:"",a={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(a.className=["language-"+r[0]]);let l={type:"element",tagName:"code",properties:a,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function jJ(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TJ(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KJ(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),r=_i(a.toLowerCase()),l=e.footnoteOrder.indexOf(a);let i,o=e.footnoteCounts.get(a);o===void 0?(o=0,e.footnoteOrder.push(a),i=e.footnoteOrder.length):i=l+1,o+=1,e.footnoteCounts.set(a,o);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const p={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,p),e.applyData(t,p)}function OJ(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function PJ(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sb(e,t){const n=t.referenceType;let a="]";if(n==="collapsed"?a+="[]":n==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const r=e.all(t),l=r[0];l&&l.type==="text"?l.value="["+l.value:r.unshift({type:"text",value:"["});const i=r[r.length-1];return i&&i.type==="text"?i.value+=a:r.push({type:"text",value:a}),r}function JJ(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Sb(e,t);const r={src:_i(a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,l),e.applyData(t,l)}function DJ(e,t){const n={src:_i(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function YJ(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const a={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,a),e.applyData(t,a)}function ZJ(e,t){const n=String(t.identifier).toUpperCase(),a=e.definitionById.get(n);if(!a)return Sb(e,t);const r={href:_i(a.url||"")};a.title!==null&&a.title!==void 0&&(r.title=a.title);const l={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function NJ(e,t){const n={href:_i(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function GJ(e,t,n){const a=e.all(t),r=n?XJ(n):Eb(t),l={},i=[];if(typeof t.checked=="boolean"){const u=a[0];let c;u&&u.type==="element"&&u.tagName==="p"?c=u:(c={type:"element",tagName:"p",properties:{},children:[]},a.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<a.length;){const u=a[o];(r||o!==0||u.type!=="element"||u.tagName!=="p")&&i.push({type:"text",value:`
792
792
  `}),u.type==="element"&&u.tagName==="p"&&!r?i.push(...u.children):i.push(u)}const s=a[a.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
@@ -811,7 +811,7 @@ Newsletter creation ✉️, Landing pages 🎯, Digital courses 📇 and more`,s
811
811
  `))+1))}const i="#".repeat(r),o=n.enter("headingAtx"),s=n.enter("phrasing");l.move(i+" ");let p=n.containerPhrasing(e,{before:"# ",after:`
812
812
  `,...l.current()});return/^[\t ]/.test(p)&&(p=Gs(p.charCodeAt(0))+p.slice(1)),p=p?i+" "+p:i,n.options.closeAtx&&(p+=" "+i),s(),o(),p}ok.peek=tZ;function ok(e){return e.value||""}function tZ(){return"<"}sk.peek=nZ;function sk(e,t,n,a){const r=hm(n),l=r==='"'?"Quote":"Apostrophe",i=n.enter("image");let o=n.enter("label");const s=n.createTracker(a);let p=s.move("![");return p+=s.move(n.safe(e.alt,{before:p,after:"]",...s.current()})),p+=s.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(n.safe(e.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(o=n.enter("destinationRaw"),p+=s.move(n.safe(e.url,{before:p,after:e.title?" ":")",...s.current()}))),o(),e.title&&(o=n.enter(`title${l}`),p+=s.move(" "+r),p+=s.move(n.safe(e.title,{before:p,after:r,...s.current()})),p+=s.move(r),o()),p+=s.move(")"),i(),p}function nZ(){return"!"}pk.peek=aZ;function pk(e,t,n,a){const r=e.referenceType,l=n.enter("imageReference");let i=n.enter("label");const o=n.createTracker(a);let s=o.move("![");const p=n.safe(e.alt,{before:s,after:"]",...o.current()});s+=o.move(p+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return i(),n.stack=u,l(),r==="full"||!p||p!==c?s+=o.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function aZ(){return"!"}uk.peek=rZ;function uk(e,t,n){let a=e.value||"",r="`",l=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(a);)r+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++l<n.unsafe.length;){const i=n.unsafe[l],o=n.compilePattern(i);let s;if(i.atBreak)for(;s=o.exec(a);){let p=s.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(s.index+1)}}return r+a+r}function rZ(){return"`"}function ck(e,t){const n=Jh(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ak.peek=lZ;function Ak(e,t,n,a){const r=hm(n),l=r==='"'?"Quote":"Apostrophe",i=n.createTracker(a);let o,s;if(ck(e,n)){const u=n.stack;n.stack=[],o=n.enter("autolink");let c=i.move("<");return c+=i.move(n.containerPhrasing(e,{before:c,after:">",...i.current()})),c+=i.move(">"),o(),n.stack=u,c}o=n.enter("link"),s=n.enter("label");let p=i.move("[");return p+=i.move(n.containerPhrasing(e,{before:p,after:"](",...i.current()})),p+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),p+=i.move("<"),p+=i.move(n.safe(e.url,{before:p,after:">",...i.current()})),p+=i.move(">")):(s=n.enter("destinationRaw"),p+=i.move(n.safe(e.url,{before:p,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=n.enter(`title${l}`),p+=i.move(" "+r),p+=i.move(n.safe(e.title,{before:p,after:r,...i.current()})),p+=i.move(r),s()),p+=i.move(")"),o(),p}function lZ(e,t,n){return ck(e,n)?"<":"["}dk.peek=iZ;function dk(e,t,n,a){const r=e.referenceType,l=n.enter("linkReference");let i=n.enter("label");const o=n.createTracker(a);let s=o.move("[");const p=n.containerPhrasing(e,{before:s,after:"]",...o.current()});s+=o.move(p+"]["),i();const u=n.stack;n.stack=[],i=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...o.current()});return i(),n.stack=u,l(),r==="full"||!p||p!==c?s+=o.move(c+"]"):r==="shortcut"?s=s.slice(0,-1):s+=o.move("]"),s}function iZ(){return"["}function mm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function oZ(e){const t=mm(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function sZ(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function fk(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function pZ(e,t,n,a){const r=n.enter("list"),l=n.bulletCurrent;let i=e.ordered?sZ(n):mm(n);const o=e.ordered?i==="."?")":".":oZ(n);let s=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),fk(n)===i&&u){let c=-1;for(;++c<e.children.length;){const d=e.children[c];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(i=o),n.bulletCurrent=i;const p=n.containerFlow(e,a);return n.bulletLastUsed=i,n.bulletCurrent=l,r(),p}function uZ(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function cZ(e,t,n,a){const r=uZ(n);let l=n.bulletCurrent||mm(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let i=l.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const o=n.createTracker(a);o.move(l+" ".repeat(i-l.length)),o.shift(i);const s=n.enter("listItem"),p=n.indentLines(n.containerFlow(e,o.current()),u);return s(),p;function u(c,d,f){return d?(f?"":" ".repeat(i))+c:(f?l:l+" ".repeat(i-l.length))+c}}function AZ(e,t,n,a){const r=n.enter("paragraph"),l=n.enter("phrasing"),i=n.containerPhrasing(e,a);return l(),r(),i}const dZ=dA(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function fZ(e,t,n,a){return(e.children.some(function(i){return dZ(i)})?n.containerPhrasing:n.containerFlow).call(n,e,a)}function WZ(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Wk.peek=gZ;function Wk(e,t,n,a){const r=WZ(n),l=n.enter("strong"),i=n.createTracker(a),o=i.move(r+r);let s=i.move(n.containerPhrasing(e,{after:r,before:o,...i.current()}));const p=s.charCodeAt(0),u=hA(a.before.charCodeAt(a.before.length-1),p,r);u.inside&&(s=Gs(p)+s.slice(1));const c=s.charCodeAt(s.length-1),d=hA(a.after.charCodeAt(0),c,r);d.inside&&(s=s.slice(0,-1)+Gs(c));const f=i.move(r+r);return l(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},o+s+f}function gZ(e,t,n){return n.options.strong||"*"}function hZ(e,t,n,a){return n.safe(e.value,a)}function mZ(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function CZ(e,t,n){const a=(fk(n)+(n.options.ruleSpaces?" ":"")).repeat(mZ(n));return n.options.ruleSpaces?a.slice(0,-1):a}const gk={blockquote:OY,break:lk,code:NY,definition:XY,emphasis:ik,hardBreak:lk,heading:eZ,html:ok,image:sk,imageReference:pk,inlineCode:uk,link:Ak,linkReference:dk,list:pZ,listItem:cZ,paragraph:AZ,root:fZ,strong:Wk,text:hZ,thematicBreak:CZ};function vZ(){return{enter:{table:yZ,tableData:hk,tableHeader:hk,tableRow:SZ},exit:{codeText:EZ,table:IZ,tableData:Cm,tableHeader:Cm,tableRow:Cm}}}function yZ(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function IZ(e){this.exit(e),this.data.inTable=void 0}function SZ(e){this.enter({type:"tableRow",children:[]},e)}function Cm(e){this.exit(e)}function hk(e){this.enter({type:"tableCell",children:[]},e)}function EZ(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xZ));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function xZ(e,t){return t==="|"?t:e}function bZ(e){const t=e||{},n=t.tableCellPadding,a=t.tablePipeAlign,r=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
813
813
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:i,tableCell:s,tableRow:o}};function i(f,W,C,E){return p(u(f,C,E),f.align)}function o(f,W,C,E){const h=c(f,C,E),g=p([h]);return g.slice(0,g.indexOf(`
814
- `))}function s(f,W,C,E){const h=C.enter("tableCell"),g=C.enter("phrasing"),m=C.containerPhrasing(f,{...E,before:l,after:l});return g(),h(),m}function p(f,W){return TY(f,{align:W,alignDelimiters:a,padding:n,stringLength:r})}function u(f,W,C){const E=f.children;let h=-1;const g=[],m=W.enter("table");for(;++h<E.length;)g[h]=c(E[h],W,C);return m(),g}function c(f,W,C){const E=f.children;let h=-1;const g=[],m=W.enter("tableRow");for(;++h<E.length;)g[h]=s(E[h],f,W,C);return m(),g}function d(f,W,C){let E=gk.inlineCode(f,W,C);return C.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function kZ(){return{exit:{taskListCheckValueChecked:mk,taskListCheckValueUnchecked:mk,paragraph:wZ}}}function RZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:BZ}}}function mk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wZ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const r=t.children;let l=-1,i;for(;++l<r.length;){const o=r[l];if(o.type==="paragraph"){i=o;break}}i===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function BZ(e,t,n,a){const r=e.children[0],l=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",o=n.createTracker(a);l&&o.move(i);let s=gk.listItem(e,t,n,{...a,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),s;function p(u){return u+i}}function MZ(){return[pY(),BY(),VY(),vZ(),kZ()]}function LZ(e){return{extensions:[uY(),MY(e),UY(),bZ(e),RZ()]}}const QZ={tokenize:jZ,partial:!0},Ck={tokenize:TZ,partial:!0},vk={tokenize:KZ,partial:!0},yk={tokenize:OZ,partial:!0},VZ={tokenize:PZ,partial:!0},Ik={name:"wwwAutolink",tokenize:zZ,previous:Ek},Sk={name:"protocolAutolink",tokenize:qZ,previous:xk},yr={name:"emailAutolink",tokenize:FZ,previous:bk},er={};function UZ(){return{text:er}}let Kl=48;for(;Kl<123;)er[Kl]=yr,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);er[43]=yr,er[45]=yr,er[46]=yr,er[95]=yr,er[72]=[yr,Sk],er[104]=[yr,Sk],er[87]=[yr,Ik],er[119]=[yr,Ik];function FZ(e,t,n){const a=this;let r,l;return i;function i(c){return!vm(c)||!bk.call(a,a.previous)||ym(a.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return vm(c)?(e.consume(c),o):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(VZ,u,p)(c):c===45||c===95||An(c)?(l=!0,e.consume(c),s):u(c)}function p(c){return e.consume(c),r=!0,s}function u(c){return l&&r&&Cn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function zZ(e,t,n){const a=this;return r;function r(i){return i!==87&&i!==119||!Ek.call(a,a.previous)||ym(a.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QZ,e.attempt(Ck,e.attempt(vk,l),n),n)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function qZ(e,t,n){const a=this;let r="",l=!1;return i;function i(c){return(c===72||c===104)&&xk.call(a,a.previous)&&!ym(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),o):n(c)}function o(c){if(Cn(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?p:(l=!0,s)):n(c)}function p(c){return c===null||rA(c)||ft(c)||Tl(c)||lA(c)?n(c):e.attempt(Ck,e.attempt(vk,u),n)(c)}function u(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function jZ(e,t,n){let a=0;return r;function r(i){return(i===87||i===119)&&a<3?(a++,e.consume(i),r):i===46&&a===3?(e.consume(i),l):n(i)}function l(i){return i===null?n(i):t(i)}}function TZ(e,t,n){let a,r,l;return i;function i(p){return p===46||p===95?e.check(yk,s,o)(p):p===null||ft(p)||Tl(p)||p!==45&&lA(p)?s(p):(l=!0,e.consume(p),i)}function o(p){return p===95?a=!0:(r=a,a=void 0),e.consume(p),i}function s(p){return r||a||!l?n(p):t(p)}}function KZ(e,t){let n=0,a=0;return r;function r(i){return i===40?(n++,e.consume(i),r):i===41&&a<n?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(yk,t,l)(i):i===null||ft(i)||Tl(i)?t(i):(e.consume(i),r)}function l(i){return i===41&&a++,e.consume(i),r}}function OZ(e,t,n){return a;function a(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),a):o===38?(e.consume(o),l):o===93?(e.consume(o),r):o===60||o===null||ft(o)||Tl(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||ft(o)||Tl(o)?t(o):a(o)}function l(o){return Cn(o)?i(o):n(o)}function i(o){return o===59?(e.consume(o),a):Cn(o)?(e.consume(o),i):n(o)}}function PZ(e,t,n){return a;function a(l){return e.consume(l),r}function r(l){return An(l)?n(l):t(l)}}function Ek(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ft(e)}function xk(e){return!Cn(e)}function bk(e){return!(e===47||vm(e))}function vm(e){return e===43||e===45||e===46||e===95||An(e)}function ym(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const JZ={tokenize:_Z,partial:!0};function DZ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:GZ,continuation:{tokenize:XZ},exit:HZ}},text:{91:{name:"gfmFootnoteCall",tokenize:NZ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:YZ,resolveTo:ZZ}}}}function YZ(e,t,n){const a=this;let r=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i;for(;r--;){const s=a.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return o;function o(s){if(!i||!i._balanced)return n(s);const p=Va(a.sliceSerialize({start:i.end,end:a.now()}));return p.codePointAt(0)!==94||!l.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function ZZ(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...o),e}function NZ(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,i;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(l>999||c===93&&!i||c===null||c===91||ft(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(Va(a.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ft(c)||(i=!0),l++,e.consume(c),c===92?u:p}function u(c){return c===91||c===92||c===93?(e.consume(c),l++,p):p(c)}}function GZ(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,i=0,o;return s;function s(W){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(W){return W===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(W)}function u(W){if(i>999||W===93&&!o||W===null||W===91||ft(W))return n(W);if(W===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return l=Va(a.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return ft(W)||(o=!0),i++,e.consume(W),W===92?c:u}function c(W){return W===91||W===92||W===93?(e.consume(W),i++,u):u(W)}function d(W){return W===58?(e.enter("definitionMarker"),e.consume(W),e.exit("definitionMarker"),r.includes(l)||r.push(l),tt(e,f,"gfmFootnoteDefinitionWhitespace")):n(W)}function f(W){return t(W)}}function XZ(e,t,n){return e.check(Ps,t,e.attempt(JZ,t,n))}function HZ(e){e.exit("gfmFootnoteDefinition")}function _Z(e,t,n){const a=this;return tt(e,r,"gfmFootnoteDefinitionIndent",5);function r(l){const i=a.events[a.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(l):n(l)}}function $Z(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:r};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(i,o){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let p=s;for(;p--;)if(i[p][0]==="exit"&&i[p][1].type==="strikethroughSequenceTemporary"&&i[p][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[p][1].end.offset-i[p][1].start.offset){i[s][1].type="strikethroughSequence",i[p][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},i[p][1].start),end:Object.assign({},i[s][1].end)},c={type:"strikethroughText",start:Object.assign({},i[p][1].end),end:Object.assign({},i[s][1].start)},d=[["enter",u,o],["enter",i[p][1],o],["exit",i[p][1],o],["enter",c,o]],f=o.parser.constructs.insideSpan.null;f&&_n(d,d.length,0,iA(f,i.slice(p+1,s),o)),_n(d,d.length,0,[["exit",c,o],["enter",i[s][1],o],["exit",i[s][1],o],["exit",u,o]]),_n(i,p-1,s-p+3,d),s=p+d.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function l(i,o,s){const p=this.previous,u=this.events;let c=0;return d;function d(W){return p===126&&u[u.length-1][1].type!=="characterEscape"?s(W):(i.enter("strikethroughSequenceTemporary"),f(W))}function f(W){const C=$i(p);if(W===126)return c>1?s(W):(i.consume(W),c++,f);if(c<2&&!n)return s(W);const E=i.exit("strikethroughSequenceTemporary"),h=$i(W);return E._open=!h||h===2&&!!C,E._close=!C||C===2&&!!h,o(W)}}}class eN{constructor(){this.map=[]}add(t,n,a){tN(this,t,n,a)}consume(t){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const l of r)t.push(l);r=a.pop()}this.map.length=0}}function tN(e,t,n,a){let r=0;if(!(n===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}function nN(e,t){let n=!1;const a=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=a.length-1;a[l]=a[l]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function aN(){return{flow:{null:{name:"table",tokenize:rN,resolveAll:lN}}}}function rN(e,t,n){const a=this;let r=0,l=0,i;return o;function o(b){let w=a.events.length-1;for(;w>-1;){const F=a.events[w][1].type;if(F==="lineEnding"||F==="linePrefix")w--;else break}const M=w>-1?a.events[w][1].type:null,z=M==="tableHead"||M==="tableRow"?S:s;return z===S&&a.parser.lazy[a.now().line]?n(b):z(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),p(b)}function p(b){return b===124||(i=!0,l+=1),u(b)}function u(b){return b===null?n(b):Be(b)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):_e(b)?tt(e,u,"whitespace")(b):(l+=1,i&&(i=!1,r+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),i=!0,u):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||ft(b)?(e.exit("data"),u(b)):(e.consume(b),b===92?d:c)}function d(b){return b===92||b===124?(e.consume(b),c):c(b)}function f(b){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(b):(e.enter("tableDelimiterRow"),i=!1,_e(b)?tt(e,W,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):W(b))}function W(b){return b===45||b===58?E(b):b===124?(i=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),C):x(b)}function C(b){return _e(b)?tt(e,E,"whitespace")(b):E(b)}function E(b){return b===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),h):b===45?(l+=1,h(b)):b===null||Be(b)?y(b):x(b)}function h(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):x(b)}function g(b){return b===45?(e.consume(b),g):b===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(b))}function m(b){return _e(b)?tt(e,y,"whitespace")(b):y(b)}function y(b){return b===124?W(b):b===null||Be(b)?!i||r!==l?x(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):x(b)}function x(b){return n(b)}function S(b){return e.enter("tableRow"),k(b)}function k(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):b===null||Be(b)?(e.exit("tableRow"),t(b)):_e(b)?tt(e,k,"whitespace")(b):(e.enter("data"),B(b))}function B(b){return b===null||b===124||ft(b)?(e.exit("data"),k(b)):(e.consume(b),b===92?V:B)}function V(b){return b===92||b===124?(e.consume(b),B):B(b)}}function lN(e,t){let n=-1,a=!0,r=0,l=[0,0,0,0],i=[0,0,0,0],o=!1,s=0,p,u,c;const d=new eN;for(;++n<e.length;){const f=e[n],W=f[1];f[0]==="enter"?W.type==="tableHead"?(o=!1,s!==0&&(kk(d,t,s,p,u),u=void 0,s=0),p={type:"table",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",p,t]])):W.type==="tableRow"||W.type==="tableDelimiterRow"?(a=!0,c=void 0,l=[0,0,0,0],i=[0,n+1,0,0],o&&(o=!1,u={type:"tableBody",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",u,t]])),r=W.type==="tableDelimiterRow"?2:u?3:1):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")?(a=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],c=mA(d,t,l,r,void 0,c),l=[0,0,0,0]),i[2]=n)):W.type==="tableCellDivider"&&(a?a=!1:(l[1]!==0&&(i[0]=i[1],c=mA(d,t,l,r,void 0,c)),l=i,i=[l[1],n,0,0])):W.type==="tableHead"?(o=!0,s=n):W.type==="tableRow"||W.type==="tableDelimiterRow"?(s=n,l[1]!==0?(i[0]=i[1],c=mA(d,t,l,r,n,c)):i[1]!==0&&(c=mA(d,t,i,r,n,c)),r=0):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")&&(i[3]=n)}for(s!==0&&kk(d,t,s,p,u),d.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=nN(t.events,n))}return e}function mA(e,t,n,a,r,l){const i=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(l.end=Object.assign({},to(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=to(t.events,n[1]);if(l={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const p=to(t.events,n[2]),u=to(t.events,n[3]),c={type:o,start:Object.assign({},p),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",c,t]]),a!==2){const d=t.events[n[2]],f=t.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const W=n[2]+1,C=n[3]-n[2]-1;e.add(W,C,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(l.end=Object.assign({},to(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function kk(e,t,n,a,r){const l=[],i=to(t.events,n);r&&(r.end=Object.assign({},i),l.push(["exit",r,t])),a.end=Object.assign({},i),l.push(["exit",a,t]),e.add(n+1,0,l)}function to(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const iN={name:"tasklistCheck",tokenize:sN};function oN(){return{text:{91:iN}}}function sN(e,t,n){const a=this;return r;function r(s){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ft(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):n(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(s)}function o(s){return Be(s)?t(s):_e(s)?e.check({tokenize:pN},t,n)(s):n(s)}}function pN(e,t,n){return tt(e,a,"whitespace");function a(r){return r===null?n(r):t(r)}}function uN(e){return nb([UZ(),DZ(),$Z(e),aN(),oN()])}const cN={};function AN(e){const t=this,n=e||cN,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),i=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(uN(n)),l.push(MZ()),i.push(LZ(n))}function CA({text:e,className:t,dense:n,disableLinks:a}){const r=a?{a:({children:l,href:i})=>A.jsx("span",{title:i,style:{color:"inherit",textDecoration:"underline",cursor:"default"},children:l})}:void 0;return A.jsx(D,{className:t,component:"div",sx:{"& p":{margin:n?"0 0 0.5em":"0 0 0.75em","&:last-child":{marginBottom:0}},"& ul, & ol":{margin:"0.25em 0",paddingLeft:"1.5em"},"& li":{marginBottom:"0.25em"},"& strong":{fontWeight:600},"& code":{fontSize:"0.9em",bgcolor:"action.hover",px:.5,borderRadius:.5},"& pre":{overflow:"auto",margin:"0.5em 0","& code":{bgcolor:"transparent",px:0}},"& table":{width:"100%",borderCollapse:"collapse",margin:"0.5em 0",fontSize:"0.9em"},"& th, & td":{border:"1px solid",borderColor:"divider",padding:"6px 10px",textAlign:"start"},"& th":{fontWeight:600,bgcolor:"action.hover"},"& tr:nth-of-type(even)":{bgcolor:"action.hover"},lineHeight:1.6,fontSize:"0.9375rem"},children:A.jsx($D,{remarkPlugins:[AN],components:r,children:e})})}const ct=nA,dN=Nc(kx,nA);function fN(e){return e.map(t=>({...t,timestamp:new Date(t.timestamp)}))}function WN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Ir=new GT;function Rk({domain:e="",onClose:t,logo:n="",logoBackgroundHex:a,language:r}){Zc(dN,"smsAIChat-styles");const l=hr(),i=mW(l.breakpoints.down("sm")),o=Bs(),{step2Data:s}=Sg(),p=s==null?void 0:s.websiteUrl,u=p??e,[c,d]=v.useState([]),f=c.length>0,[W,C]=v.useState(""),[E,h]=v.useState(!1),[g,m]=v.useState(!1),[y,x]=v.useState(null),[S,k]=v.useState(null),B=v.useRef(null),V=v.useRef(null),b=v.useRef(null);v.useEffect(()=>{const q=kE(Ng,u);d(fN(q))},[u]),v.useEffect(()=>{c.length!==0&&RE(Ng,u,WN(c))},[u,c]);const w=v.useCallback(()=>{V.current?V.current.scrollTo({top:V.current.scrollHeight,behavior:"smooth"}):B.current&&B.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{w()},[c,w]),v.useEffect(()=>{let q=!1;return(async()=>{try{Ir.getToken(u)||await Ir.createSession(u,u),q||(m(!0),x(null))}catch(K){q||x(K instanceof Error?K.message:"לא ניתן להתחבר לצ'אט SMS")}})(),()=>{q=!0}},[u]);const M=v.useCallback(async q=>{let Q=Ir.getToken(u);if(!Q)try{const{token:G}=await Ir.createSession(u,p??e);if(Q=G,!Q){d(L=>[...L,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{d(G=>[...G,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const K=Ir.getToken(u);let R;try{R=await Ir.sendMessage({token:K,message:q,domain:u,...r&&{language:r}})}catch(G){if(G instanceof Error&&G.message==="SESSION_NOT_FOUND")try{const{token:L}=await Ir.createSession(u,p??e);if(L)R=await Ir.sendMessage({token:L,message:q,domain:u,...r&&{language:r}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{d(te=>[...te,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{d(L=>[...L,{id:Date.now().toString(),text:G instanceof Error?G.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}const X=(R.quickQuestions||[]).filter(G=>typeof G=="string"&&G.trim().length>0).map(G=>G.trim());d(G=>[...G,{id:Date.now().toString(),text:R.answer,sender:"ai",timestamp:new Date,sms:R.sms&&R.sms.trim()?R.sms.trim():void 0,...X.length>0&&{quickQuestions:X}}])},[e,p,u,r]),z=async q=>{const Q=(q??W).trim();if(!Q||E||!g)return;const K={id:Date.now().toString(),text:Q,sender:"user",timestamp:new Date};d(R=>[...R,K]),q==null&&C(""),h(!0),setTimeout(()=>{var R;return(R=b.current)==null?void 0:R.focus()},0);try{await M(Q)}finally{h(!1),setTimeout(()=>{var R;return(R=b.current)==null?void 0:R.focus()},100)}},F=q=>{q.key==="Enter"&&!q.shiftKey&&(q.preventDefault(),z())},T=()=>{Ir.clearSession(u),wE(Ng,u),d([])},U=(q,Q)=>{if(k(q),o)try{o.triggerEvent("onUseSms",Q)}catch(K){console.error("Error triggering onUseSms:",K)}window.dispatchEvent(new CustomEvent("business-ai-use-sms",{detail:{sms:Q},bubbles:!0,composed:!0})),setTimeout(()=>k(null),1e4)};return y&&!g?A.jsxs(D,{className:ct.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(We,{color:"error",children:y}),t&&A.jsx(We,{component:"button",onClick:t,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):g?A.jsxs(D,{"data-lang":"he",className:ct.smsChatContainer,sx:{p:0,flex:1,minHeight:0,minWidth:0,maxWidth:"100%",display:"flex",width:"100%",flexDirection:"column",overflow:"hidden"},children:[A.jsx(D,{ref:V,className:ct.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:f?A.jsxs(A.Fragment,{children:[c.map(q=>A.jsxs(D,{children:[A.jsxs(D,{className:`${ct.messageWrapper} ${q.sender==="user"?ct.userMessage:ct.aiMessage}`,children:[q.sender==="ai"&&A.jsx(Cr,{className:ct.messageAvatar,children:A.jsx(tA,{})}),A.jsx(Dt,{className:`${ct.messageBubble} ${q.sender==="user"?ct.userBubble:ct.aiBubble}`,elevation:0,sx:{backgroundColor:q.sender==="user"?"#e0e0e0":"#9c27b0",color:q.sender==="user"?"#333333":"#ffffff"},children:q.sender==="ai"?A.jsx(CA,{text:q.text,className:ct.messageText,dense:!0,disableLinks:!0}):A.jsx(We,{variant:"body1",className:ct.messageText,children:q.text})}),q.sender==="user"&&A.jsx(Cr,{className:ct.messageAvatar,src:n,sx:{bgcolor:n?a??"transparent":"#9c27b0"},children:!n&&"U"})]}),q.sender==="ai"&&q.sms&&A.jsx(D,{className:ct.quickQuestionsContainer,children:S===q.id?A.jsxs(D,{className:ct.bouncingDots,children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]}):A.jsx(Ge,{variant:"contained",size:"small",onClick:()=>U(q.id,q.sms),sx:{bgcolor:"#000",color:"#fff","&:hover":{bgcolor:"#333"},textTransform:"none"},children:"בחירת הודעה"})}),q.sender==="ai"&&q.quickQuestions&&q.quickQuestions.length>0&&A.jsx(D,{className:ct.quickQuestionsContainer,children:q.quickQuestions.map((Q,K)=>A.jsx(ha,{label:Q,onClick:()=>z(Q),disabled:E,className:ct.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},K))})]},q.id)),E&&A.jsxs(D,{className:`${ct.messageWrapper} ${ct.aiMessage}`,children:[A.jsx(Cr,{className:ct.messageAvatar,children:A.jsx(tA,{})}),A.jsx(Dt,{className:`${ct.messageBubble} ${ct.aiBubble}`,elevation:0,children:A.jsx($r,{size:16,className:ct.loadingSpinner})})]}),A.jsx("div",{ref:B})]}):A.jsxs(D,{className:ct.welcomeScreen,children:[A.jsx(Cr,{className:ct.aiAvatar,children:A.jsx(tA,{})}),A.jsx(We,{variant:"h5",className:ct.welcomeTitle,children:"איזה SMS תרצו ליצור?"})]})}),f&&A.jsx(D,{sx:{flexShrink:0,flexGrow:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(Ge,{size:"small",startIcon:A.jsx(Ul,{}),onClick:T,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(D,{className:ct.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(D,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(It,{inputRef:b,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"צור SMS עבור...",value:W,onChange:q=>C(q.target.value),onKeyPress:F,disabled:E,variant:"outlined",className:ct.inputField,inputProps:i?{"aria-label":"הודעה ל-SMS"}:void 0,InputProps:{endAdornment:A.jsx(da,{color:"primary",onClick:()=>z(),disabled:!W.trim()||E,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Rh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}):A.jsx(D,{className:ct.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx($r,{})})}var Im={},gN=qe;Object.defineProperty(Im,"__esModule",{value:!0});var wk=Im.default=void 0,hN=gN(Ke()),mN=A;wk=Im.default=(0,hN.default)((0,mN.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var Sm={},CN=qe;Object.defineProperty(Sm,"__esModule",{value:!0});var Xs=Sm.default=void 0,vN=CN(Ke()),yN=A;Xs=Sm.default=(0,vN.default)((0,yN.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-5h2zm4 0h-2v-3h2zm0-5h-2v-2h2zm4 5h-2V7h2z"}),"Analytics");const At=nA,IN=Nc(kx,nA);function SN(e){return e.map(t=>{const{componentType:n,...a}=t;return{...a,timestamp:new Date(t.timestamp),...n&&{componentType:n}}})}function EN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Sr=new XT;function xN({componentType:e,content:t}){const n=t||"";if(e==="card")return A.jsx(Dt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#f5f5f5",borderRadius:2},children:A.jsx(CA,{text:n,dense:!0})});if(e==="numbers"){const a=n.split(/\n/).filter(Boolean);return A.jsx(D,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1},children:a.map((r,l)=>A.jsx(ha,{label:r,size:"small",sx:{borderRadius:1}},l))})}if(e==="todoList"){const a=n.split(/\n/).filter(Boolean);return A.jsx(D,{component:"ul",sx:{mt:1,pl:2.5,mb:0},children:a.map((r,l)=>A.jsx(We,{component:"li",variant:"body2",sx:{mb:.5},children:r.replace(/^[-*]\s*/,"")},l))})}return e==="graph"||e==="image"?A.jsxs(Dt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#fafafa",borderRadius:2},children:[A.jsx(We,{variant:"caption",color:"text.secondary",children:e==="graph"?"גרף":"תמונה"}),A.jsx(D,{sx:{mt:.5},children:A.jsx(CA,{text:n,dense:!0})})]}):null}function Bk({domain:e="",context:t="",onClose:n,language:a}){Zc(IN,"analyzeAIChat-styles");const r=hr(),l=mW(r.breakpoints.up("lg")),i=mW(r.breakpoints.down("sm")),[o,s]=v.useState([]),p=o.length>0,[u,c]=v.useState(""),[d,f]=v.useState(!1),[W,C]=v.useState(!1),[E,h]=v.useState(null),g=v.useRef(null),m=v.useRef(null),y=v.useRef(null),x=v.useMemo(()=>{const w=new Set,M=[];return o.forEach(z=>{var F;(F=z.sources)==null||F.forEach(T=>{T.url&&!w.has(T.url)&&(w.add(T.url),M.push(T))})}),M},[o]);v.useEffect(()=>{const w=kE(Gg,e);s(SN(w))},[e]),v.useEffect(()=>{o.length!==0&&RE(Gg,e,EN(o))},[e,o]);const S=v.useCallback(()=>{m.current?m.current.scrollTo({top:m.current.scrollHeight,behavior:"smooth"}):g.current&&g.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{S()},[o,S]),v.useEffect(()=>{let w=!1;return(async()=>{try{Sr.getToken(e)||await Sr.createSession(e),w||(C(!0),h(null))}catch(z){w||h(z instanceof Error?z.message:"לא ניתן להתחבר לצ'אט ניתוח עסקי")}})(),()=>{w=!0}},[e,a]);const k=v.useCallback(async w=>{let M=Sr.getToken(e);if(!M)try{const{token:T}=await Sr.createSession(e);if(M=T,!M){s(U=>[...U,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{s(T=>[...T,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const z=Sr.getToken(e);let F;try{F=await Sr.sendMessage({token:z,message:w,domain:e,...t&&{context:t}})}catch(T){if(T instanceof Error&&T.message==="SESSION_NOT_FOUND")try{const{token:U}=await Sr.createSession(e);if(U)F=await Sr.sendMessage({token:U,message:w,domain:e,...t&&{context:t}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{s(U=>[...U,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{s(U=>[...U,{id:Date.now().toString(),text:T instanceof Error?T.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}s(T=>{var U,q;return[...T,{id:Date.now().toString(),text:F.answer,sender:"ai",timestamp:new Date,quickQuestions:((U=F.quickQuestions)==null?void 0:U.filter(Q=>Q&&String(Q).trim()))||[],...F.componentType&&{componentType:F.componentType},...F.markdown!=null&&{markdown:F.markdown},...((q=F.sources)==null?void 0:q.length)&&{sources:F.sources}}]})},[e,t,a]),B=async w=>{const M=(w??u).trim();if(!M||d||!W)return;const z={id:Date.now().toString(),text:M,sender:"user",timestamp:new Date};s(F=>[...F,z]),w||c(""),f(!0),setTimeout(()=>{var F;return(F=y.current)==null?void 0:F.focus()},0);try{await k(M)}finally{f(!1),setTimeout(()=>{var F;return(F=y.current)==null?void 0:F.focus()},100)}},V=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),B())},b=()=>{Sr.clearSession(e),wE(Gg,e),s([])};return E&&!W?A.jsxs(D,{className:At.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(We,{color:"error",children:E}),n&&A.jsx(We,{component:"button",onClick:n,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):W?A.jsxs(D,{"data-lang":"he",sx:{p:0,height:"100%",display:"flex",width:"100%",maxWidth:"100%",minWidth:0,flexDirection:{xs:"column",lg:"row"},overflow:"hidden",boxSizing:"border-box"},children:[A.jsxs(D,{className:At.smsChatContainer,sx:{p:0,height:"100%",display:"flex",flex:1,minWidth:0,flexDirection:"column",overflow:"hidden"},children:[A.jsx(D,{ref:m,className:At.messagesContainer,children:p?A.jsxs(A.Fragment,{children:[o.map(w=>A.jsxs(D,{children:[A.jsxs(D,{className:`${At.messageWrapper} ${w.sender==="user"?At.userMessage:At.aiMessage}`,children:[w.sender==="ai"&&A.jsx(Cr,{className:At.messageAvatar,children:A.jsx(Xs,{})}),A.jsx(Dt,{className:`${At.messageBubble} ${w.sender==="user"?At.userBubble:At.aiBubble}`,elevation:0,sx:{backgroundColor:w.sender==="user"?"#e0e0e0":"#9c27b0",color:w.sender==="user"?"#333333":"#ffffff"},children:w.sender==="ai"?A.jsx(CA,{text:w.text,className:At.messageText,dense:!0}):A.jsx(We,{variant:"body1",className:At.messageText,children:w.text})}),w.sender==="user"&&A.jsx(Cr,{className:At.messageAvatar,children:"U"})]}),w.sender==="ai"&&w.componentType&&(w.markdown??w.text)&&A.jsx(xN,{componentType:w.componentType,content:w.markdown??w.text}),w.sender==="ai"&&w.quickQuestions&&w.quickQuestions.length>0&&A.jsx(D,{className:At.quickQuestionsContainer,children:w.quickQuestions.map((M,z)=>A.jsx(ha,{label:M,onClick:()=>B(M),disabled:d,className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},z))}),w.sender==="ai"&&w.sources&&w.sources.length>0&&!l&&A.jsxs(D,{className:At.quickQuestionsContainer,sx:{mt:1},children:[A.jsx(We,{variant:"caption",color:"text.secondary",component:"span",sx:{fontWeight:600,mr:.5},children:"מקורות:"}),w.sources.map((M,z)=>A.jsx(ha,{label:M.title||`מקור ${z+1}`,onClick:()=>window.open(M.url,"_blank","noopener,noreferrer"),size:"small",className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},z))]})]},w.id)),d&&A.jsxs(D,{className:`${At.messageWrapper} ${At.aiMessage}`,children:[A.jsx(Cr,{className:At.messageAvatar,children:A.jsx(Xs,{})}),A.jsx(Dt,{className:`${At.messageBubble} ${At.aiBubble}`,elevation:0,children:A.jsx($r,{size:16,className:At.loadingSpinner})})]}),A.jsx("div",{ref:g})]}):A.jsxs(D,{className:At.welcomeScreen,children:[A.jsx(Cr,{className:At.aiAvatar,children:A.jsx(Xs,{})}),A.jsx(We,{variant:"h5",className:At.welcomeTitle,children:"בואו נדבר על העסק שלך, על המתחרים ועל ההזדמנויות שמחכות לכם."})]})}),p&&A.jsx(D,{sx:{flexShrink:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(Ge,{size:"small",startIcon:A.jsx(Ul,{}),onClick:b,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(D,{className:At.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(D,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(It,{inputRef:y,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"מי המתחרים שלי? איך לנצח את השנה ? מה החוזקות והחולשות שלי",value:u,onChange:w=>c(w.target.value),onKeyPress:V,disabled:d,variant:"outlined",className:At.inputField,inputProps:i?{"aria-label":"שאלה לניתוח עסקי"}:void 0,InputProps:{endAdornment:A.jsx(da,{color:"primary",onClick:()=>B(),disabled:!u.trim()||d,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Rh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}),l&&x.length>0&&A.jsxs(D,{sx:{width:280,minWidth:280,flexShrink:0,maxHeight:"100%",height:"100%",borderInlineStart:"1px solid",borderColor:"divider",display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"grey.50"},children:[A.jsx(We,{variant:"subtitle2",sx:{p:2,fontWeight:600,flexShrink:0},children:"מקורות"}),A.jsx(D,{sx:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",px:1.5,pb:2,display:"flex",flexDirection:"column",gap:1.5},children:x.map((w,M)=>A.jsxs(Dt,{elevation:0,sx:{p:1.5,borderRadius:1,bgcolor:"background.paper"},children:[A.jsx(We,{variant:"body2",sx:{fontWeight:500},children:w.title||`מקור ${M+1}`}),w.snippet&&A.jsx(We,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.5},children:w.snippet}),A.jsx(Ge,{size:"small",startIcon:A.jsx(wk,{}),href:w.url,target:"_blank",rel:"noopener noreferrer",sx:{mt:1,textTransform:"none"},children:"עבור למקור"})]},M))})]})]}):A.jsx(D,{className:At.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx($r,{})})}var Em={},bN=qe;Object.defineProperty(Em,"__esModule",{value:!0});var Mk=Em.default=void 0,kN=bN(Ke()),RN=A;Mk=Em.default=(0,kN.default)((0,RN.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var xm={},wN=qe;Object.defineProperty(xm,"__esModule",{value:!0});var Lk=xm.default=void 0,BN=wN(Ke()),MN=A;Lk=xm.default=(0,BN.default)((0,MN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var bm={},LN=qe;Object.defineProperty(bm,"__esModule",{value:!0});var Qk=bm.default=void 0,QN=LN(Ke()),VN=A;Qk=bm.default=(0,QN.default)((0,VN.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"Sms");const Hs=Vl;function Vk({onCardClick:e,className:t=""}){const{t:n}=Ja(),a=[{id:"email",title:n("actionCards.email"),description:n("actionCardsDesc.email"),step:3,icon:Mk},{id:"domain",title:n("actionCards.domain"),description:n("actionCardsDesc.domain"),icon:Lk},{id:"sms",title:n("actionCards.sms"),description:n("actionCardsDesc.sms"),icon:Qk},{id:"analyze",title:n("actionCards.analyze"),description:n("actionCardsDesc.analyze"),step:1,icon:Xs}];return A.jsx(D,{className:t,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:a.map(r=>{const l=r.icon;return A.jsxs(D,{component:"button",type:"button",className:Hs.actionCard,onClick:()=>e(r),children:[A.jsx("span",{className:Hs.actionCardIcon,children:A.jsx(l,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:Hs.actionCardContent,children:[A.jsx("span",{className:Hs.actionCardTitle,children:r.title}),A.jsx("span",{className:Hs.actionCardDescription,children:r.description})]})]},r.id)})})}const Ol=Vl;function UN({userName:e="",websiteUrl:t="",businessName:n="",setActiveStep:a}){var E,h;const{t:r}=Ja(),l=Bs(),{setOpenDomainFinder:i,openSmsChat:o,setOpenSmsChat:s,openAnalyzeChat:p,setOpenAnalyzeChat:u}=nl(),{step2Data:c}=Sg(),[d,f]=v.useState(!1),W=()=>{l&&(l.open=!1)},C=g=>{g.id==="email"&&g.step!==void 0?a==null||a(g.step):g.id==="domain"?(i(!0),a==null||a(0)):g.id==="sms"?s(!0):g.id==="analyze"&&u(!0)};if(v.useEffect(()=>{f(!0)},[]),o)return A.jsxs(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(D,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Rk,{domain:t,onClose:()=>s(!1),logo:c==null?void 0:c.logo,logoBackgroundHex:c==null?void 0:c.logoBackgroundHex})})]});if(p){const g=c?[(E=c.businessData)==null?void 0:E.business_name,(h=c.businessData)==null?void 0:h.description,c.websiteUrl].filter(Boolean).join(" | "):"";return A.jsxs(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(D,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Bk,{domain:t,context:g||void 0,onClose:()=>u(!1)})})]})}return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",position:"relative",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",className:d?Ol.fadeUp:"",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},margin:"0 auto",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsx(D,{className:d?Ol.fadeUpDelay1:"",sx:{mb:{xs:2,sm:2.5},display:"flex",justifyContent:"center",alignItems:"center"},children:A.jsx(rx,{sx:{fontSize:{xs:50,sm:65,md:80},...zs}})}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",className:d?Ol.fadeUpDelay2:"",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",textAlign:"center"},children:e?r("thankyou.title",{name:e}):`${r("thankyou.titleNoName")}!`}),A.jsx(We,{variant:"body2",color:"text.secondary",className:d?Ol.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.subtitle")}),A.jsx(We,{variant:"body2",color:"text.secondary",className:d?Ol.fadeUpDelay5:"",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.whatNext")})]}),A.jsx(D,{sx:{textAlign:"center"},className:d?Ol.fadeUpDelay5:"",children:A.jsx(Vk,{onCardClick:C})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Ge,{onClick:W,variant:"text",color:"primary",className:d?Ol.fadeUpDelay5:"",sx:{alignSelf:"flex-start",textTransform:"none",maxWidth:"min(100%, 32rem)",px:.5},children:r("thankyou.keepWorking")})]})})}var km={},FN=qe;Object.defineProperty(km,"__esModule",{value:!0});var Uk=km.default=void 0,zN=FN(Ke()),qN=A;Uk=km.default=(0,zN.default)((0,qN.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Rm={},jN=qe;Object.defineProperty(Rm,"__esModule",{value:!0});var Fk=Rm.default=void 0,TN=jN(Ke()),KN=A;Fk=Rm.default=(0,TN.default)((0,KN.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const ll=Vl;function ON({userName:e="",setActiveStep:t,onViewResults:n,onStartFromBeginning:a}){const{t:r}=Ja(),{setOpenDomainFinder:l,setOpenSmsChat:i,setOpenAnalyzeChat:o}=nl(),s=()=>{if(a){a();return}t(0)},p=()=>{n?n():t(1)},u=()=>{t(-2)},c=d=>{d.id==="email"&&d.step!==void 0?t(d.step):d.id==="domain"?(l(!0),t(0)):d.id==="sms"?i(!0):d.id==="analyze"&&o(!0)};return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsxs(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:[r("secondTime.hi"),e?` ${e}`:"","!"]}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:r("secondTime.whatNext")})]}),A.jsx(ma,{title:r("secondTime.hubSectionPrimary"),description:r("secondTime.hubSectionPrimaryHint"),children:A.jsx(Vk,{onCardClick:c})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:r("secondTime.hubSectionSecondary"),description:r("secondTime.hubSectionSecondaryHint"),children:A.jsxs(D,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:[A.jsxs(D,{component:"button",type:"button",className:ll.actionCard,onClick:s,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Uk,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.startFromBeginning")}),A.jsx(We,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.startFromBeginningDesc")})]})]}),A.jsxs(D,{component:"button",type:"button",className:ll.actionCard,onClick:p,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Fk,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.viewResults")}),A.jsx(We,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.viewResultsDesc")})]})]})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:u,sx:{alignSelf:"center",mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},px:{xs:1,sm:2},textAlign:"center",textTransform:"none",whiteSpace:{xs:"normal",sm:"nowrap"},maxWidth:"min(40ch, 100%)",lineHeight:1.45},children:r("secondTime.featureRequest")})]})})}function PN({userName:e="",setActiveStep:t}){const{t:n}=Ja(),[a,r]=v.useState({title:"",description:"",email:""}),l=()=>{if(!a.title.trim()||!a.description.trim())return;const s=new CustomEvent("business-ai-feature-request",{detail:{title:a.title,description:a.description,email:a.email||void 0,timestamp:new Date().toISOString()},bubbles:!0,composed:!0});window.dispatchEvent(s),t(-1)},i=()=>{t(-1)},o=!!a.title.trim()&&!!a.description.trim();return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:n("featureRequestForm.pageTitle")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:e?n("featureRequestForm.pageSubtitleNamed",{name:e}):n("featureRequestForm.pageSubtitle")})]}),A.jsx(ma,{title:n("featureRequestForm.sectionTitle"),description:n("featureRequestForm.sectionHint"),children:A.jsxs(Xt,{spacing:2,children:[A.jsx(It,{label:n("featureRequestForm.titleLabel"),fullWidth:!0,required:!0,value:a.title,onChange:s=>r({...a,title:s.target.value}),placeholder:n("featureRequestForm.titlePlaceholder"),size:"small"}),A.jsx(It,{label:n("featureRequestForm.descriptionLabel"),fullWidth:!0,required:!0,multiline:!0,minRows:3,maxRows:8,value:a.description,onChange:s=>r({...a,description:s.target.value}),placeholder:n("featureRequestForm.descriptionPlaceholder"),size:"small"}),A.jsx(It,{label:n("featureRequestForm.emailLabel"),fullWidth:!0,type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),placeholder:n("featureRequestForm.emailPlaceholder"),size:"small"})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(Xt,{direction:{xs:"column-reverse",sm:"row"},spacing:1.5,justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},children:[A.jsx(Ge,{variant:"text",color:"primary",onClick:i,sx:{alignSelf:{xs:"stretch",sm:"flex-start"},textTransform:"none"},children:n("featureRequestForm.back")}),A.jsx(Ge,{disabled:!o,variant:"contained",color:"primary",onClick:l,sx:{textTransform:"none"},children:n("featureRequestForm.submit")})]})]})})}const JN="https://static.intercomassets.com/avatars/5075191/square_128/%D7%AA%D7%9E%D7%95%D7%A0%D7%AA_%D7%A4%D7%A8%D7%95%D7%A4%D7%99%D7%9C_%D7%9E%D7%A6%D7%95%D7%99%D7%A8%D7%AA-1763991463.jpg";function DN({setActiveStep:e}){const{t}=Ja(),n=()=>{e(0)};return A.jsx(D,{dir:"auto",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",height:"100%",padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center",alignItems:"stretch"},children:[A.jsx(Cr,{src:JN,alt:"Support Avatar",sx:{alignSelf:"center",width:{xs:80,sm:100,md:120},height:{xs:80,sm:100,md:120},mb:{xs:2.5,sm:3}}}),A.jsx(We,{dir:"auto",component:"h1",variant:"h4",sx:{textAlign:"center",fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:t("welcome.heading")}),A.jsx(We,{dir:"auto",variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},textAlign:"center",lineHeight:1.55,whiteSpace:"pre-wrap",fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(44ch, 100%)",mx:"auto",mb:{xs:3,sm:3.5}},children:t("welcome.text")}),A.jsx(Ge,{size:"large",dir:"auto",variant:"contained",color:"primary",onClick:n,sx:{alignSelf:"center",textTransform:"none"},children:t("welcome.startButton")})]})})}const YN=Vl,ZN=Nc(Ej,Vl);function NN(e,t){return t!=null?!0:wm(e)}function wm(e){if(!e||typeof e!="object")return!1;const t=e,n=t.domain??t.website??t.websiteUrl,a=typeof n=="string"&&n.length>0&&!n.includes("example.com"),r=typeof t.business_name=="string"&&t.business_name.length>0&&t.business_name!=="Example Company";return!!(a||r||t.analyzed_at||t.businessData)}function GN({language:e="he",showWelcome:t=!1,userName:n="",freeSolo:a=!0,placeholderSuggestions:r=[],data:l={websiteUrl:"https://www.example.com",business_name:"Example Company"},websiteUrl:i="",business_name:o="",logo:s="",urls:p=[],mergeTags:u=[],visibilityRules:c,location:d}){Zc(ZN,"bussinessAILayout-styles");const{t:f}=Ja(),{shadowRoot:W,activeStep:C,setActiveStep:E,step2Data:h,setStep2Data:g,step3Draft:m,setStep3Draft:y,openSmsChat:x,setOpenSmsChat:S,openAnalyzeChat:k,setOpenAnalyzeChat:B,openDomainFinder:V}=nl(),b=NN(l,h),w=()=>t&&!b?-3:b?-1:0,M=v.useRef(!1),z=v.useRef(C),F=v.useRef(!1);v.useEffect(()=>{if(M.current)b&&C===0&&h==null&&!F.current&&!V?(E(-1),F.current=!0):M.current&&h!=null&&C===2&&wm(l)?E(-1):M.current&&h!=null&&C===0&&!V&&(E(-1),F.current=!0);else{if(h!=null&&C===2&&wm(l)){E(-1),F.current=!0,M.current=!0;return}if(h!=null){C===0&&(E(-1),F.current=!0),M.current=!0;return}const ne=w();ne!==0&&z.current===0&&(E(ne),ne===-1&&(F.current=!0)),M.current=!0}},[h,b,C,l,V]),v.useEffect(()=>{if((C===-1||C===-2)&&!b){E(t?-3:0);return}C===-3&&!t&&E(0)},[C,b,t,E]);const T=v.useRef(null);v.useEffect(()=>{if(T.current===null){T.current=t;return}!T.current&&t&&C===0&&!b&&h==null&&!V&&E(-3),T.current=t},[t,C,b,h,V,E]);const U=C,q=E,Q=l??{},K=Q.businessData&&typeof Q.businessData=="object"?Q.businessData:null,R=i||(typeof Q.websiteUrl=="string"?Q.websiteUrl:"")||(typeof Q.website=="string"?Q.website:"")||(typeof Q.domain=="string"?Q.domain:"")||(typeof(K==null?void 0:K.website)=="string"?K.website:""),X=o||(typeof Q.business_name=="string"?Q.business_name:"")||(typeof(K==null?void 0:K.business_name)=="string"?K.business_name:""),G=K!=null?{...K,logo:(typeof Q.logo=="string"?Q.logo:"")||(typeof K.logo=="string"?K.logo:""),websiteUrl:(typeof Q.websiteUrl=="string"?Q.websiteUrl:"")||(typeof K.website=="string"?K.website:""),domain:(typeof Q.domain=="string"?Q.domain:"")||(typeof K.website=="string"?K.website:"")}:l,[L,te]=v.useState(R),[re,oe]=v.useState(X),[ve,fe]=v.useState(null),[he,ze]=v.useState(null),_=v.useRef(null),ee=v.useRef(null);v.useEffect(()=>{console.log("🔄 [Parent] step2Data from context updated:",h),console.log("🔄 [Parent] step2Data (stringified):",h?JSON.stringify(h,null,2):"null"),h&&fe(h.businessData)},[h]);function ge(ne){var Me;console.log("💾 [Parent] onSave called with data:",ne),console.log("💾 [Parent] onSave data (stringified):",JSON.stringify(ne,null,2)),console.log("💾 [Parent] onSave - businessData keys:",Object.keys(ne.businessData||{})),g(ne),fe(ne.businessData),console.log("💾 [Parent] step2Data saved to context");const Le=((Me=ne.businessData)==null?void 0:Me.website)||ne.websiteUrl||"";Le&&te(Le)}const Ce=()=>{S(!1),B(!1),g(null),m!=null&&y(null),fe(null),te(R),oe(X),E(0)},se=[f("steps.brandDetails"),f("steps.designPrefs"),f("steps.summary"),f("steps.summaryAndSend")];v.useEffect(()=>{const ne=()=>{let ye=null;if(_.current&&(ye=_.current.closest(".MuiDialog-paper")),!ye&&W&&(ye=W.querySelector(".MuiDialog-paper")),ye||(ye=document.querySelector(".MuiDialog-paper")),ye){const Qe=ye.getBoundingClientRect().height;ze(Qe)}else if(_.current){const De=_.current.getBoundingClientRect();ze(De.height)}};ne(),window.addEventListener("resize",ne);const Le=setTimeout(ne,100),Me=setTimeout(ne,300);return()=>{window.removeEventListener("resize",ne),clearTimeout(Le),clearTimeout(Me)}},[U,W]);const ue=U===-3||U===-2||U===-1||U===2,Te=U===3||x||k;return A.jsx(D,{"data-lang":e,sx:{flex:1,minHeight:0,height:"100%",width:"100%",display:"flex",flexDirection:"column",paddingBottom:U===1?{xs:72,sm:80}:0},children:A.jsxs(ut,{height:"100%",justifyContent:"space-between",sx:{height:"100%",flex:"1 1 0%",minHeight:0,minWidth:0,flexWrap:{xs:"wrap",md:U===0?"nowrap":"wrap"}},container:!0,children:[A.jsx(ut,{item:!0,lg:U===0?8:12,md:U===0?8:12,sm:12,xs:12,sx:{minHeight:0,minWidth:0,display:"flex",flexDirection:"column",flex:"1 1 0%",maxWidth:{xs:"100%",md:U===0?"66.666667%":"100%"}},children:A.jsx(D,{ref:_,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column"},children:U===1?A.jsx(D,{ref:ee,sx:{overflow:"hidden",flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(JK,{data:G,websiteUrl:L,setActiveStep:q,onSave:ge,urls:p||[],language:e})}):A.jsx(D,{sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column",width:"100%",position:"relative",justifyContent:Te||ue?"flex-start":"center",alignItems:Te||ue?"stretch":"center"},children:A.jsxs(D,{ref:ee,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,overflowY:"auto",overscrollBehaviorY:"contain",overflowX:"hidden",width:"100%",maxHeight:Te?void 0:ue?"calc(90vh - 7.5rem)":void 0,display:"flex",flexDirection:"column",alignItems:Te?"stretch":"center",pb:ue?{xs:4,sm:5}:{xs:1,sm:2},WebkitOverflowScrolling:"touch"},children:[x?A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(D,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Rk,{domain:L||(l==null?void 0:l.domain)||"",onClose:()=>S(!1),logo:(h==null?void 0:h.logo)??(l==null?void 0:l.logo)??"",logoBackgroundHex:(h==null?void 0:h.logoBackgroundHex)??(l==null?void 0:l.logoBackgroundHex)??void 0,language:e})})}):k?(()=>{var Le,Me;const ne=h?[(Le=h.businessData)==null?void 0:Le.business_name,(Me=h.businessData)==null?void 0:Me.description,h.websiteUrl].filter(Boolean).join(" | "):(()=>{const ye=l;return ye?[ye.business_name,ye.websiteUrl??ye.domain,ye.business_type,ye.business_tone,ye.businessDesign??ye.description].filter(Boolean).join(" | "):""})();return A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(D,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Bk,{domain:L||(l==null?void 0:l.domain)||"",context:ne||void 0,onClose:()=>B(!1),language:e})})})})():null,!x&&!k?A.jsxs(A.Fragment,{children:[t&&U===-3?A.jsx(DN,{userName:n,setActiveStep:q}):null,b&&U===-1?A.jsx(ON,{userName:n,setActiveStep:q,onStartFromBeginning:Ce}):null,b&&U===-2?A.jsx(PN,{userName:n,setActiveStep:q}):null,U===0?A.jsx(Bj,{activeStep:U,steps:se,userName:n,websiteUrl:L,setWebsiteUrl:te,setActiveStep:q,freeSolo:a,hasContext:b,urls:p||[],businessNameOrDescription:re||(ve==null?void 0:ve.business_name)||"",setBusinessNameOrDescription:oe,language:e}):null,U===2?A.jsx(UN,{userName:n,websiteUrl:(ve==null?void 0:ve.website)||L||"",businessName:(ve==null?void 0:ve.business_name)||re||"",setActiveStep:q}):null,U===3?(()=>{const ne=l,Le=h||{businessData:ve||(ne&&typeof ne=="object"&&"businessData"in ne?ne.businessData:ne)||{},logo:s||(ne==null?void 0:ne.logo)||"",websiteUrl:L||(ne==null?void 0:ne.domain)||(ne==null?void 0:ne.websiteUrl)||""};return A.jsx(yO,{setActiveStep:q,placeholderSuggestions:r,language:e,data:Le,logo:(h==null?void 0:h.logo)||s,mergeTags:u,visibilityRules:c,location:d})})():null]}):null]})})})}),U===0?A.jsx(ut,{item:!0,lg:5,md:4,sx:{display:{xs:"none",sm:"none",md:"block"},position:"sticky",top:0,alignSelf:"flex-start",height:"fit-content",maxHeight:"100vh"},className:YN.rightLayout,children:A.jsx(D,{sx:{height:he?`${he}px`:"100vh",minHeight:"100%",backgroundImage:`url(${Sj})`,backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundColor:"#ececec"}})}):null]})})}function XN({showWelcome:e=!1,fullScreen:t=!1,language:n="he",userName:a="",freeSolo:r=!0,placeholderSuggestions:l=[],data:i={},websiteUrl:o="",business_name:s="",logo:p="",open:u=!1,urls:c=[],mergeTags:d=[],visibilityRules:f,location:W}){const C=i??{},E=n&&/^(he|ar|fa|ur)/i.test(n)?"rtl":"ltr",h=v.useMemo(()=>RW({direction:E,typography:{fontFamily:"'Rubik', sans-serif"},palette:{mode:"light",primary:{main:"#6328A7",contrastText:"#ffffff"},secondary:{main:"#000"}},components:{MuiSvgIcon:{styleOverrides:{colorPrimary:{...zl}}},MuiIconButton:{styleOverrides:{colorPrimary:{color:"transparent","& .MuiSvgIcon-root":{...zl}}}},MuiTypography:{styleOverrides:{root:({ownerState:U})=>U.color==="primary"?{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiLink:{styleOverrides:{root:({ownerState:U})=>U.color==="primary"?{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiCircularProgress:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)"}}},MuiCheckbox:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)","&.Mui-checked, &.MuiCheckbox-indeterminate":{color:"url(#cdtr-brand-gradient)"},"& .MuiSvgIcon-root":{...zl}}}},MuiChip:{styleOverrides:{outlinedPrimary:({theme:U})=>({border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:`
814
+ `))}function s(f,W,C,E){const h=C.enter("tableCell"),g=C.enter("phrasing"),m=C.containerPhrasing(f,{...E,before:l,after:l});return g(),h(),m}function p(f,W){return TY(f,{align:W,alignDelimiters:a,padding:n,stringLength:r})}function u(f,W,C){const E=f.children;let h=-1;const g=[],m=W.enter("table");for(;++h<E.length;)g[h]=c(E[h],W,C);return m(),g}function c(f,W,C){const E=f.children;let h=-1;const g=[],m=W.enter("tableRow");for(;++h<E.length;)g[h]=s(E[h],f,W,C);return m(),g}function d(f,W,C){let E=gk.inlineCode(f,W,C);return C.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function kZ(){return{exit:{taskListCheckValueChecked:mk,taskListCheckValueUnchecked:mk,paragraph:wZ}}}function RZ(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:BZ}}}function mk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wZ(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const a=n.children[0];if(a&&a.type==="text"){const r=t.children;let l=-1,i;for(;++l<r.length;){const o=r[l];if(o.type==="paragraph"){i=o;break}}i===n&&(a.value=a.value.slice(1),a.value.length===0?n.children.shift():n.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,n.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function BZ(e,t,n,a){const r=e.children[0],l=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",o=n.createTracker(a);l&&o.move(i);let s=gk.listItem(e,t,n,{...a,...o.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),s;function p(u){return u+i}}function MZ(){return[pY(),BY(),VY(),vZ(),kZ()]}function LZ(e){return{extensions:[uY(),MY(e),UY(),bZ(e),RZ()]}}const QZ={tokenize:jZ,partial:!0},Ck={tokenize:TZ,partial:!0},vk={tokenize:KZ,partial:!0},yk={tokenize:OZ,partial:!0},VZ={tokenize:PZ,partial:!0},Ik={name:"wwwAutolink",tokenize:zZ,previous:Ek},Sk={name:"protocolAutolink",tokenize:qZ,previous:xk},yr={name:"emailAutolink",tokenize:FZ,previous:bk},er={};function UZ(){return{text:er}}let Kl=48;for(;Kl<123;)er[Kl]=yr,Kl++,Kl===58?Kl=65:Kl===91&&(Kl=97);er[43]=yr,er[45]=yr,er[46]=yr,er[95]=yr,er[72]=[yr,Sk],er[104]=[yr,Sk],er[87]=[yr,Ik],er[119]=[yr,Ik];function FZ(e,t,n){const a=this;let r,l;return i;function i(c){return!vm(c)||!bk.call(a,a.previous)||ym(a.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return vm(c)?(e.consume(c),o):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(VZ,u,p)(c):c===45||c===95||An(c)?(l=!0,e.consume(c),s):u(c)}function p(c){return e.consume(c),r=!0,s}function u(c){return l&&r&&Cn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function zZ(e,t,n){const a=this;return r;function r(i){return i!==87&&i!==119||!Ek.call(a,a.previous)||ym(a.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(QZ,e.attempt(Ck,e.attempt(vk,l),n),n)(i))}function l(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function qZ(e,t,n){const a=this;let r="",l=!1;return i;function i(c){return(c===72||c===104)&&xk.call(a,a.previous)&&!ym(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(c),e.consume(c),o):n(c)}function o(c){if(Cn(c)&&r.length<5)return r+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const d=r.toLowerCase();if(d==="http"||d==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?p:(l=!0,s)):n(c)}function p(c){return c===null||rA(c)||Wt(c)||Tl(c)||lA(c)?n(c):e.attempt(Ck,e.attempt(vk,u),n)(c)}function u(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function jZ(e,t,n){let a=0;return r;function r(i){return(i===87||i===119)&&a<3?(a++,e.consume(i),r):i===46&&a===3?(e.consume(i),l):n(i)}function l(i){return i===null?n(i):t(i)}}function TZ(e,t,n){let a,r,l;return i;function i(p){return p===46||p===95?e.check(yk,s,o)(p):p===null||Wt(p)||Tl(p)||p!==45&&lA(p)?s(p):(l=!0,e.consume(p),i)}function o(p){return p===95?a=!0:(r=a,a=void 0),e.consume(p),i}function s(p){return r||a||!l?n(p):t(p)}}function KZ(e,t){let n=0,a=0;return r;function r(i){return i===40?(n++,e.consume(i),r):i===41&&a<n?l(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(yk,t,l)(i):i===null||Wt(i)||Tl(i)?t(i):(e.consume(i),r)}function l(i){return i===41&&a++,e.consume(i),r}}function OZ(e,t,n){return a;function a(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),a):o===38?(e.consume(o),l):o===93?(e.consume(o),r):o===60||o===null||Wt(o)||Tl(o)?t(o):n(o)}function r(o){return o===null||o===40||o===91||Wt(o)||Tl(o)?t(o):a(o)}function l(o){return Cn(o)?i(o):n(o)}function i(o){return o===59?(e.consume(o),a):Cn(o)?(e.consume(o),i):n(o)}}function PZ(e,t,n){return a;function a(l){return e.consume(l),r}function r(l){return An(l)?n(l):t(l)}}function Ek(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Wt(e)}function xk(e){return!Cn(e)}function bk(e){return!(e===47||vm(e))}function vm(e){return e===43||e===45||e===46||e===95||An(e)}function ym(e){let t=e.length,n=!1;for(;t--;){const a=e[t][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){n=!0;break}if(a._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const JZ={tokenize:_Z,partial:!0};function DZ(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:GZ,continuation:{tokenize:XZ},exit:HZ}},text:{91:{name:"gfmFootnoteCall",tokenize:NZ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:YZ,resolveTo:ZZ}}}}function YZ(e,t,n){const a=this;let r=a.events.length;const l=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let i;for(;r--;){const s=a.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return o;function o(s){if(!i||!i._balanced)return n(s);const p=Va(a.sliceSerialize({start:i.end,end:a.now()}));return p.codePointAt(0)!==94||!l.includes(p.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function ZZ(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},o=[e[n+1],e[n+2],["enter",a,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",i,t],["exit",i,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",a,t]];return e.splice(n,e.length-n+1,...o),e}function NZ(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l=0,i;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(c){if(l>999||c===93&&!i||c===null||c===91||Wt(c))return n(c);if(c===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return r.includes(Va(a.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Wt(c)||(i=!0),l++,e.consume(c),c===92?u:p}function u(c){return c===91||c===92||c===93?(e.consume(c),l++,p):p(c)}}function GZ(e,t,n){const a=this,r=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let l,i=0,o;return s;function s(W){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(W){return W===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(W)}function u(W){if(i>999||W===93&&!o||W===null||W===91||Wt(W))return n(W);if(W===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return l=Va(a.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(W),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Wt(W)||(o=!0),i++,e.consume(W),W===92?c:u}function c(W){return W===91||W===92||W===93?(e.consume(W),i++,u):u(W)}function d(W){return W===58?(e.enter("definitionMarker"),e.consume(W),e.exit("definitionMarker"),r.includes(l)||r.push(l),tt(e,f,"gfmFootnoteDefinitionWhitespace")):n(W)}function f(W){return t(W)}}function XZ(e,t,n){return e.check(Ps,t,e.attempt(JZ,t,n))}function HZ(e){e.exit("gfmFootnoteDefinition")}function _Z(e,t,n){const a=this;return tt(e,r,"gfmFootnoteDefinitionIndent",5);function r(l){const i=a.events[a.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(l):n(l)}}function $Z(e){let n=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:l,resolveAll:r};return n==null&&(n=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function r(i,o){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let p=s;for(;p--;)if(i[p][0]==="exit"&&i[p][1].type==="strikethroughSequenceTemporary"&&i[p][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[p][1].end.offset-i[p][1].start.offset){i[s][1].type="strikethroughSequence",i[p][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},i[p][1].start),end:Object.assign({},i[s][1].end)},c={type:"strikethroughText",start:Object.assign({},i[p][1].end),end:Object.assign({},i[s][1].start)},d=[["enter",u,o],["enter",i[p][1],o],["exit",i[p][1],o],["enter",c,o]],f=o.parser.constructs.insideSpan.null;f&&_n(d,d.length,0,iA(f,i.slice(p+1,s),o)),_n(d,d.length,0,[["exit",c,o],["enter",i[s][1],o],["exit",i[s][1],o],["exit",u,o]]),_n(i,p-1,s-p+3,d),s=p+d.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function l(i,o,s){const p=this.previous,u=this.events;let c=0;return d;function d(W){return p===126&&u[u.length-1][1].type!=="characterEscape"?s(W):(i.enter("strikethroughSequenceTemporary"),f(W))}function f(W){const C=$i(p);if(W===126)return c>1?s(W):(i.consume(W),c++,f);if(c<2&&!n)return s(W);const E=i.exit("strikethroughSequenceTemporary"),h=$i(W);return E._open=!h||h===2&&!!C,E._close=!C||C===2&&!!h,o(W)}}}class eN{constructor(){this.map=[]}add(t,n,a){tN(this,t,n,a)}consume(t){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const a=[];for(;n>0;)n-=1,a.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];a.push(t.slice()),t.length=0;let r=a.pop();for(;r;){for(const l of r)t.push(l);r=a.pop()}this.map.length=0}}function tN(e,t,n,a){let r=0;if(!(n===0&&a.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...a);return}r+=1}e.map.push([t,n,a])}}function nN(e,t){let n=!1;const a=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&a.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=a.length-1;a[l]=a[l]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return a}function aN(){return{flow:{null:{name:"table",tokenize:rN,resolveAll:lN}}}}function rN(e,t,n){const a=this;let r=0,l=0,i;return o;function o(b){let w=a.events.length-1;for(;w>-1;){const F=a.events[w][1].type;if(F==="lineEnding"||F==="linePrefix")w--;else break}const M=w>-1?a.events[w][1].type:null,z=M==="tableHead"||M==="tableRow"?S:s;return z===S&&a.parser.lazy[a.now().line]?n(b):z(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),p(b)}function p(b){return b===124||(i=!0,l+=1),u(b)}function u(b){return b===null?n(b):Be(b)?l>1?(l=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):_e(b)?tt(e,u,"whitespace")(b):(l+=1,i&&(i=!1,r+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),i=!0,u):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||Wt(b)?(e.exit("data"),u(b)):(e.consume(b),b===92?d:c)}function d(b){return b===92||b===124?(e.consume(b),c):c(b)}function f(b){return a.interrupt=!1,a.parser.lazy[a.now().line]?n(b):(e.enter("tableDelimiterRow"),i=!1,_e(b)?tt(e,W,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):W(b))}function W(b){return b===45||b===58?E(b):b===124?(i=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),C):x(b)}function C(b){return _e(b)?tt(e,E,"whitespace")(b):E(b)}function E(b){return b===58?(l+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),h):b===45?(l+=1,h(b)):b===null||Be(b)?y(b):x(b)}function h(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):x(b)}function g(b){return b===45?(e.consume(b),g):b===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):(e.exit("tableDelimiterFiller"),m(b))}function m(b){return _e(b)?tt(e,y,"whitespace")(b):y(b)}function y(b){return b===124?W(b):b===null||Be(b)?!i||r!==l?x(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):x(b)}function x(b){return n(b)}function S(b){return e.enter("tableRow"),k(b)}function k(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),k):b===null||Be(b)?(e.exit("tableRow"),t(b)):_e(b)?tt(e,k,"whitespace")(b):(e.enter("data"),B(b))}function B(b){return b===null||b===124||Wt(b)?(e.exit("data"),k(b)):(e.consume(b),b===92?V:B)}function V(b){return b===92||b===124?(e.consume(b),B):B(b)}}function lN(e,t){let n=-1,a=!0,r=0,l=[0,0,0,0],i=[0,0,0,0],o=!1,s=0,p,u,c;const d=new eN;for(;++n<e.length;){const f=e[n],W=f[1];f[0]==="enter"?W.type==="tableHead"?(o=!1,s!==0&&(kk(d,t,s,p,u),u=void 0,s=0),p={type:"table",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",p,t]])):W.type==="tableRow"||W.type==="tableDelimiterRow"?(a=!0,c=void 0,l=[0,0,0,0],i=[0,n+1,0,0],o&&(o=!1,u={type:"tableBody",start:Object.assign({},W.start),end:Object.assign({},W.end)},d.add(n,0,[["enter",u,t]])),r=W.type==="tableDelimiterRow"?2:u?3:1):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")?(a=!1,i[2]===0&&(l[1]!==0&&(i[0]=i[1],c=mA(d,t,l,r,void 0,c),l=[0,0,0,0]),i[2]=n)):W.type==="tableCellDivider"&&(a?a=!1:(l[1]!==0&&(i[0]=i[1],c=mA(d,t,l,r,void 0,c)),l=i,i=[l[1],n,0,0])):W.type==="tableHead"?(o=!0,s=n):W.type==="tableRow"||W.type==="tableDelimiterRow"?(s=n,l[1]!==0?(i[0]=i[1],c=mA(d,t,l,r,n,c)):i[1]!==0&&(c=mA(d,t,i,r,n,c)),r=0):r&&(W.type==="data"||W.type==="tableDelimiterMarker"||W.type==="tableDelimiterFiller")&&(i[3]=n)}for(s!==0&&kk(d,t,s,p,u),d.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=nN(t.events,n))}return e}function mA(e,t,n,a,r,l){const i=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(l.end=Object.assign({},to(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=to(t.events,n[1]);if(l={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const p=to(t.events,n[2]),u=to(t.events,n[3]),c={type:o,start:Object.assign({},p),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",c,t]]),a!==2){const d=t.events[n[2]],f=t.events[n[3]];if(d[1].end=Object.assign({},f[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const W=n[2]+1,C=n[3]-n[2]-1;e.add(W,C,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return r!==void 0&&(l.end=Object.assign({},to(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function kk(e,t,n,a,r){const l=[],i=to(t.events,n);r&&(r.end=Object.assign({},i),l.push(["exit",r,t])),a.end=Object.assign({},i),l.push(["exit",a,t]),e.add(n+1,0,l)}function to(e,t){const n=e[t],a=n[0]==="enter"?"start":"end";return n[1][a]}const iN={name:"tasklistCheck",tokenize:sN};function oN(){return{text:{91:iN}}}function sN(e,t,n){const a=this;return r;function r(s){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return Wt(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):n(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(s)}function o(s){return Be(s)?t(s):_e(s)?e.check({tokenize:pN},t,n)(s):n(s)}}function pN(e,t,n){return tt(e,a,"whitespace");function a(r){return r===null?n(r):t(r)}}function uN(e){return nb([UZ(),DZ(),$Z(e),aN(),oN()])}const cN={};function AN(e){const t=this,n=e||cN,a=t.data(),r=a.micromarkExtensions||(a.micromarkExtensions=[]),l=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),i=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);r.push(uN(n)),l.push(MZ()),i.push(LZ(n))}function CA({text:e,className:t,dense:n,disableLinks:a}){const r=a?{a:({children:l,href:i})=>A.jsx("span",{title:i,style:{color:"inherit",textDecoration:"underline",cursor:"default"},children:l})}:void 0;return A.jsx(D,{className:t,component:"div",sx:{"& p":{margin:n?"0 0 0.5em":"0 0 0.75em","&:last-child":{marginBottom:0}},"& ul, & ol":{margin:"0.25em 0",paddingLeft:"1.5em"},"& li":{marginBottom:"0.25em"},"& strong":{fontWeight:600},"& code":{fontSize:"0.9em",bgcolor:"action.hover",px:.5,borderRadius:.5},"& pre":{overflow:"auto",margin:"0.5em 0","& code":{bgcolor:"transparent",px:0}},"& table":{width:"100%",borderCollapse:"collapse",margin:"0.5em 0",fontSize:"0.9em"},"& th, & td":{border:"1px solid",borderColor:"divider",padding:"6px 10px",textAlign:"start"},"& th":{fontWeight:600,bgcolor:"action.hover"},"& tr:nth-of-type(even)":{bgcolor:"action.hover"},lineHeight:1.6,fontSize:"0.9375rem"},children:A.jsx($D,{remarkPlugins:[AN],components:r,children:e})})}const ct=nA,dN=Nc(kx,nA);function fN(e){return e.map(t=>({...t,timestamp:new Date(t.timestamp)}))}function WN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Ir=new GT;function Rk({domain:e="",onClose:t,logo:n="",logoBackgroundHex:a,language:r}){Zc(dN,"smsAIChat-styles");const l=hr(),i=mW(l.breakpoints.down("sm")),o=Bs(),{step2Data:s}=Sg(),p=s==null?void 0:s.websiteUrl,u=p??e,[c,d]=v.useState([]),f=c.length>0,[W,C]=v.useState(""),[E,h]=v.useState(!1),[g,m]=v.useState(!1),[y,x]=v.useState(null),[S,k]=v.useState(null),B=v.useRef(null),V=v.useRef(null),b=v.useRef(null);v.useEffect(()=>{const q=kE(Ng,u);d(fN(q))},[u]),v.useEffect(()=>{c.length!==0&&RE(Ng,u,WN(c))},[u,c]);const w=v.useCallback(()=>{V.current?V.current.scrollTo({top:V.current.scrollHeight,behavior:"smooth"}):B.current&&B.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{w()},[c,w]),v.useEffect(()=>{let q=!1;return(async()=>{try{Ir.getToken(u)||await Ir.createSession(u,u),q||(m(!0),x(null))}catch(K){q||x(K instanceof Error?K.message:"לא ניתן להתחבר לצ'אט SMS")}})(),()=>{q=!0}},[u]);const M=v.useCallback(async q=>{let Q=Ir.getToken(u);if(!Q)try{const{token:G}=await Ir.createSession(u,p??e);if(Q=G,!Q){d(L=>[...L,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{d(G=>[...G,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const K=Ir.getToken(u);let R;try{R=await Ir.sendMessage({token:K,message:q,domain:u,...r&&{language:r}})}catch(G){if(G instanceof Error&&G.message==="SESSION_NOT_FOUND")try{const{token:L}=await Ir.createSession(u,p??e);if(L)R=await Ir.sendMessage({token:L,message:q,domain:u,...r&&{language:r}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{d(te=>[...te,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{d(L=>[...L,{id:Date.now().toString(),text:G instanceof Error?G.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}const X=(R.quickQuestions||[]).filter(G=>typeof G=="string"&&G.trim().length>0).map(G=>G.trim());d(G=>[...G,{id:Date.now().toString(),text:R.answer,sender:"ai",timestamp:new Date,sms:R.sms&&R.sms.trim()?R.sms.trim():void 0,...X.length>0&&{quickQuestions:X}}])},[e,p,u,r]),z=async q=>{const Q=(q??W).trim();if(!Q||E||!g)return;const K={id:Date.now().toString(),text:Q,sender:"user",timestamp:new Date};d(R=>[...R,K]),q==null&&C(""),h(!0),setTimeout(()=>{var R;return(R=b.current)==null?void 0:R.focus()},0);try{await M(Q)}finally{h(!1),setTimeout(()=>{var R;return(R=b.current)==null?void 0:R.focus()},100)}},F=q=>{q.key==="Enter"&&!q.shiftKey&&(q.preventDefault(),z())},T=()=>{Ir.clearSession(u),wE(Ng,u),d([])},U=(q,Q)=>{if(k(q),o)try{o.triggerEvent("onUseSms",Q)}catch(K){console.error("Error triggering onUseSms:",K)}window.dispatchEvent(new CustomEvent("business-ai-use-sms",{detail:{sms:Q},bubbles:!0,composed:!0})),setTimeout(()=>k(null),1e4)};return y&&!g?A.jsxs(D,{className:ct.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(We,{color:"error",children:y}),t&&A.jsx(We,{component:"button",onClick:t,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):g?A.jsxs(D,{"data-lang":"he",className:ct.smsChatContainer,sx:{p:0,flex:1,minHeight:0,minWidth:0,maxWidth:"100%",display:"flex",width:"100%",flexDirection:"column",overflow:"hidden"},children:[A.jsx(D,{ref:V,className:ct.messagesContainer,sx:{flex:"1 1 0",minHeight:0,overflowY:"auto",overflowX:"hidden"},children:f?A.jsxs(A.Fragment,{children:[c.map(q=>A.jsxs(D,{children:[A.jsxs(D,{className:`${ct.messageWrapper} ${q.sender==="user"?ct.userMessage:ct.aiMessage}`,children:[q.sender==="ai"&&A.jsx(Cr,{className:ct.messageAvatar,children:A.jsx(tA,{})}),A.jsx(Dt,{className:`${ct.messageBubble} ${q.sender==="user"?ct.userBubble:ct.aiBubble}`,elevation:0,sx:{backgroundColor:q.sender==="user"?"#e0e0e0":"#9c27b0",color:q.sender==="user"?"#333333":"#ffffff"},children:q.sender==="ai"?A.jsx(CA,{text:q.text,className:ct.messageText,dense:!0,disableLinks:!0}):A.jsx(We,{variant:"body1",className:ct.messageText,children:q.text})}),q.sender==="user"&&A.jsx(Cr,{className:ct.messageAvatar,src:n,sx:{bgcolor:n?a??"transparent":"#9c27b0"},children:!n&&"U"})]}),q.sender==="ai"&&q.sms&&A.jsx(D,{className:ct.quickQuestionsContainer,children:S===q.id?A.jsxs(D,{className:ct.bouncingDots,children:[A.jsx("span",{}),A.jsx("span",{}),A.jsx("span",{})]}):A.jsx(Ge,{variant:"contained",size:"small",onClick:()=>U(q.id,q.sms),sx:{bgcolor:"#000",color:"#fff","&:hover":{bgcolor:"#333"},textTransform:"none"},children:"בחירת הודעה"})}),q.sender==="ai"&&q.quickQuestions&&q.quickQuestions.length>0&&A.jsx(D,{className:ct.quickQuestionsContainer,children:q.quickQuestions.map((Q,K)=>A.jsx(ha,{label:Q,onClick:()=>z(Q),disabled:E,className:ct.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},K))})]},q.id)),E&&A.jsxs(D,{className:`${ct.messageWrapper} ${ct.aiMessage}`,children:[A.jsx(Cr,{className:ct.messageAvatar,children:A.jsx(tA,{})}),A.jsx(Dt,{className:`${ct.messageBubble} ${ct.aiBubble}`,elevation:0,children:A.jsx($r,{size:16,className:ct.loadingSpinner})})]}),A.jsx("div",{ref:B})]}):A.jsxs(D,{className:ct.welcomeScreen,children:[A.jsx(Cr,{className:ct.aiAvatar,children:A.jsx(tA,{})}),A.jsx(We,{variant:"h5",className:ct.welcomeTitle,children:"איזה SMS תרצו ליצור?"})]})}),f&&A.jsx(D,{sx:{flexShrink:0,flexGrow:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(Ge,{size:"small",startIcon:A.jsx(Ul,{}),onClick:T,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(D,{className:ct.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(D,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(It,{inputRef:b,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"צור SMS עבור...",value:W,onChange:q=>C(q.target.value),onKeyPress:F,disabled:E,variant:"outlined",className:ct.inputField,inputProps:i?{"aria-label":"הודעה ל-SMS"}:void 0,InputProps:{endAdornment:A.jsx(da,{color:"primary",onClick:()=>z(),disabled:!W.trim()||E,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Rh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}):A.jsx(D,{className:ct.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx($r,{})})}var Im={},gN=qe;Object.defineProperty(Im,"__esModule",{value:!0});var wk=Im.default=void 0,hN=gN(Ke()),mN=A;wk=Im.default=(0,hN.default)((0,mN.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew");var Sm={},CN=qe;Object.defineProperty(Sm,"__esModule",{value:!0});var Xs=Sm.default=void 0,vN=CN(Ke()),yN=A;Xs=Sm.default=(0,vN.default)((0,yN.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-5h2zm4 0h-2v-3h2zm0-5h-2v-2h2zm4 5h-2V7h2z"}),"Analytics");const At=nA,IN=Nc(kx,nA);function SN(e){return e.map(t=>{const{componentType:n,...a}=t;return{...a,timestamp:new Date(t.timestamp),...n&&{componentType:n}}})}function EN(e){return e.map(t=>({...t,timestamp:t.timestamp.toISOString()}))}const Sr=new XT;function xN({componentType:e,content:t}){const n=t||"";if(e==="card")return A.jsx(Dt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#f5f5f5",borderRadius:2},children:A.jsx(CA,{text:n,dense:!0})});if(e==="numbers"){const a=n.split(/\n/).filter(Boolean);return A.jsx(D,{sx:{display:"flex",flexWrap:"wrap",gap:1,mt:1},children:a.map((r,l)=>A.jsx(ha,{label:r,size:"small",sx:{borderRadius:1}},l))})}if(e==="todoList"){const a=n.split(/\n/).filter(Boolean);return A.jsx(D,{component:"ul",sx:{mt:1,pl:2.5,mb:0},children:a.map((r,l)=>A.jsx(We,{component:"li",variant:"body2",sx:{mb:.5},children:r.replace(/^[-*]\s*/,"")},l))})}return e==="graph"||e==="image"?A.jsxs(Dt,{elevation:0,sx:{p:2,mt:1,bgcolor:"#fafafa",borderRadius:2},children:[A.jsx(We,{variant:"caption",color:"text.secondary",children:e==="graph"?"גרף":"תמונה"}),A.jsx(D,{sx:{mt:.5},children:A.jsx(CA,{text:n,dense:!0})})]}):null}function Bk({domain:e="",context:t="",onClose:n,language:a}){Zc(IN,"analyzeAIChat-styles");const r=hr(),l=mW(r.breakpoints.up("lg")),i=mW(r.breakpoints.down("sm")),[o,s]=v.useState([]),p=o.length>0,[u,c]=v.useState(""),[d,f]=v.useState(!1),[W,C]=v.useState(!1),[E,h]=v.useState(null),g=v.useRef(null),m=v.useRef(null),y=v.useRef(null),x=v.useMemo(()=>{const w=new Set,M=[];return o.forEach(z=>{var F;(F=z.sources)==null||F.forEach(T=>{T.url&&!w.has(T.url)&&(w.add(T.url),M.push(T))})}),M},[o]);v.useEffect(()=>{const w=kE(Gg,e);s(SN(w))},[e]),v.useEffect(()=>{o.length!==0&&RE(Gg,e,EN(o))},[e,o]);const S=v.useCallback(()=>{m.current?m.current.scrollTo({top:m.current.scrollHeight,behavior:"smooth"}):g.current&&g.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[]);v.useEffect(()=>{S()},[o,S]),v.useEffect(()=>{let w=!1;return(async()=>{try{Sr.getToken(e)||await Sr.createSession(e),w||(C(!0),h(null))}catch(z){w||h(z instanceof Error?z.message:"לא ניתן להתחבר לצ'אט ניתוח עסקי")}})(),()=>{w=!0}},[e,a]);const k=v.useCallback(async w=>{let M=Sr.getToken(e);if(!M)try{const{token:T}=await Sr.createSession(e);if(M=T,!M){s(U=>[...U,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}catch{s(T=>[...T,{id:Date.now().toString(),text:"שגיאה: לא ניתן ליצור סשן. נסו שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}const z=Sr.getToken(e);let F;try{F=await Sr.sendMessage({token:z,message:w,domain:e,...t&&{context:t}})}catch(T){if(T instanceof Error&&T.message==="SESSION_NOT_FOUND")try{const{token:U}=await Sr.createSession(e);if(U)F=await Sr.sendMessage({token:U,message:w,domain:e,...t&&{context:t}});else throw new Error("לא ניתן ליצור סשן חדש")}catch{s(U=>[...U,{id:Date.now().toString(),text:"פג תוקף השיחה. התחילו שיחה חדשה.",sender:"ai",timestamp:new Date}]);return}else{s(U=>[...U,{id:Date.now().toString(),text:T instanceof Error?T.message:"מצטער, אירעה שגיאה. נסה שוב מאוחר יותר.",sender:"ai",timestamp:new Date}]);return}}s(T=>{var U,q;return[...T,{id:Date.now().toString(),text:F.answer,sender:"ai",timestamp:new Date,quickQuestions:((U=F.quickQuestions)==null?void 0:U.filter(Q=>Q&&String(Q).trim()))||[],...F.componentType&&{componentType:F.componentType},...F.markdown!=null&&{markdown:F.markdown},...((q=F.sources)==null?void 0:q.length)&&{sources:F.sources}}]})},[e,t,a]),B=async w=>{const M=(w??u).trim();if(!M||d||!W)return;const z={id:Date.now().toString(),text:M,sender:"user",timestamp:new Date};s(F=>[...F,z]),w||c(""),f(!0),setTimeout(()=>{var F;return(F=y.current)==null?void 0:F.focus()},0);try{await k(M)}finally{f(!1),setTimeout(()=>{var F;return(F=y.current)==null?void 0:F.focus()},100)}},V=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),B())},b=()=>{Sr.clearSession(e),wE(Gg,e),s([])};return E&&!W?A.jsxs(D,{className:At.smsChatContainer,"data-lang":"he",sx:{p:3},children:[A.jsx(We,{color:"error",children:E}),n&&A.jsx(We,{component:"button",onClick:n,sx:{mt:2,textDecoration:"underline",cursor:"pointer"},children:"סגור"})]}):W?A.jsxs(D,{"data-lang":"he",sx:{p:0,height:"100%",display:"flex",width:"100%",maxWidth:"100%",minWidth:0,flexDirection:{xs:"column",lg:"row"},overflow:"hidden",boxSizing:"border-box"},children:[A.jsxs(D,{className:At.smsChatContainer,sx:{p:0,height:"100%",display:"flex",flex:1,minWidth:0,flexDirection:"column",overflow:"hidden"},children:[A.jsx(D,{ref:m,className:At.messagesContainer,children:p?A.jsxs(A.Fragment,{children:[o.map(w=>A.jsxs(D,{children:[A.jsxs(D,{className:`${At.messageWrapper} ${w.sender==="user"?At.userMessage:At.aiMessage}`,children:[w.sender==="ai"&&A.jsx(Cr,{className:At.messageAvatar,children:A.jsx(Xs,{})}),A.jsx(Dt,{className:`${At.messageBubble} ${w.sender==="user"?At.userBubble:At.aiBubble}`,elevation:0,sx:{backgroundColor:w.sender==="user"?"#e0e0e0":"#9c27b0",color:w.sender==="user"?"#333333":"#ffffff"},children:w.sender==="ai"?A.jsx(CA,{text:w.text,className:At.messageText,dense:!0}):A.jsx(We,{variant:"body1",className:At.messageText,children:w.text})}),w.sender==="user"&&A.jsx(Cr,{className:At.messageAvatar,children:"U"})]}),w.sender==="ai"&&w.componentType&&(w.markdown??w.text)&&A.jsx(xN,{componentType:w.componentType,content:w.markdown??w.text}),w.sender==="ai"&&w.quickQuestions&&w.quickQuestions.length>0&&A.jsx(D,{className:At.quickQuestionsContainer,children:w.quickQuestions.map((M,z)=>A.jsx(ha,{label:M,onClick:()=>B(M),disabled:d,className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},z))}),w.sender==="ai"&&w.sources&&w.sources.length>0&&!l&&A.jsxs(D,{className:At.quickQuestionsContainer,sx:{mt:1},children:[A.jsx(We,{variant:"caption",color:"text.secondary",component:"span",sx:{fontWeight:600,mr:.5},children:"מקורות:"}),w.sources.map((M,z)=>A.jsx(ha,{label:M.title||`מקור ${z+1}`,onClick:()=>window.open(M.url,"_blank","noopener,noreferrer"),size:"small",className:At.quickQuestionChip,sx:{cursor:"pointer","&:hover":{bgcolor:"action.hover"}}},z))]})]},w.id)),d&&A.jsxs(D,{className:`${At.messageWrapper} ${At.aiMessage}`,children:[A.jsx(Cr,{className:At.messageAvatar,children:A.jsx(Xs,{})}),A.jsx(Dt,{className:`${At.messageBubble} ${At.aiBubble}`,elevation:0,children:A.jsx($r,{size:16,className:At.loadingSpinner})})]}),A.jsx("div",{ref:g})]}):A.jsxs(D,{className:At.welcomeScreen,children:[A.jsx(Cr,{className:At.aiAvatar,children:A.jsx(Xs,{})}),A.jsx(We,{variant:"h5",className:At.welcomeTitle,children:"בואו נדבר על העסק שלך, על המתחרים ועל ההזדמנויות שמחכות לכם."})]})}),p&&A.jsx(D,{sx:{flexShrink:0,display:"flex",justifyContent:"flex-start",px:1,pb:.5},children:A.jsx(Ge,{size:"small",startIcon:A.jsx(Ul,{}),onClick:b,sx:{textTransform:"none"},children:"שיחה חדשה"})}),A.jsx(D,{className:At.inputContainer,sx:{flexShrink:0,flexGrow:0},children:A.jsx(D,{sx:{flex:1,minWidth:0,maxWidth:"100%",display:"flex",flexDirection:"column",gap:.5},children:A.jsx(It,{inputRef:y,fullWidth:!0,multiline:!0,minRows:2,maxRows:6,placeholder:i?void 0:"מי המתחרים שלי? איך לנצח את השנה ? מה החוזקות והחולשות שלי",value:u,onChange:w=>c(w.target.value),onKeyPress:V,disabled:d,variant:"outlined",className:At.inputField,inputProps:i?{"aria-label":"שאלה לניתוח עסקי"}:void 0,InputProps:{endAdornment:A.jsx(da,{color:"primary",onClick:()=>B(),disabled:!u.trim()||d,size:"small",sx:{alignSelf:"flex-end",mb:.5,marginInlineEnd:.5,flexShrink:0,bgcolor:"#9c27b0",color:"white","&:hover":{bgcolor:"#7b1fa2"},"&.Mui-disabled":{bgcolor:"#e0e0e0",color:"#9e9e9e"}},children:A.jsx(Rh,{fontSize:"small"})})},sx:{width:"100%",minWidth:0,maxWidth:"100%","& .MuiOutlinedInput-root":{borderRadius:"24px",backgroundColor:"#f5f5f5",minWidth:0,width:"100%",maxWidth:"100%",boxSizing:"border-box","& fieldset":{border:"none"},"&:hover fieldset":{border:"none"},"&.Mui-focused fieldset":{border:"none"},alignItems:"flex-end"},"& .MuiOutlinedInput-input":{padding:"12px 16px",paddingInlineEnd:52,lineHeight:"1.5",boxSizing:"border-box"},"& textarea":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}}})})})]}),l&&x.length>0&&A.jsxs(D,{sx:{width:280,minWidth:280,flexShrink:0,maxHeight:"100%",height:"100%",borderInlineStart:"1px solid",borderColor:"divider",display:"flex",flexDirection:"column",overflow:"hidden",bgcolor:"grey.50"},children:[A.jsx(We,{variant:"subtitle2",sx:{p:2,fontWeight:600,flexShrink:0},children:"מקורות"}),A.jsx(D,{sx:{flex:1,minHeight:0,overflowY:"auto",overflowX:"hidden",WebkitOverflowScrolling:"touch",px:1.5,pb:2,display:"flex",flexDirection:"column",gap:1.5},children:x.map((w,M)=>A.jsxs(Dt,{elevation:0,sx:{p:1.5,borderRadius:1,bgcolor:"background.paper"},children:[A.jsx(We,{variant:"body2",sx:{fontWeight:500},children:w.title||`מקור ${M+1}`}),w.snippet&&A.jsx(We,{variant:"caption",color:"text.secondary",sx:{display:"block",mt:.5},children:w.snippet}),A.jsx(Ge,{size:"small",startIcon:A.jsx(wk,{}),href:w.url,target:"_blank",rel:"noopener noreferrer",sx:{mt:1,textTransform:"none"},children:"עבור למקור"})]},M))})]})]}):A.jsx(D,{className:At.smsChatContainer,"data-lang":"he",sx:{display:"flex",alignItems:"center",justifyContent:"center",p:3},children:A.jsx($r,{})})}var Em={},bN=qe;Object.defineProperty(Em,"__esModule",{value:!0});var Mk=Em.default=void 0,kN=bN(Ke()),RN=A;Mk=Em.default=(0,kN.default)((0,RN.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"}),"Email");var xm={},wN=qe;Object.defineProperty(xm,"__esModule",{value:!0});var Lk=xm.default=void 0,BN=wN(Ke()),MN=A;Lk=xm.default=(0,BN.default)((0,MN.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public");var bm={},LN=qe;Object.defineProperty(bm,"__esModule",{value:!0});var Qk=bm.default=void 0,QN=LN(Ke()),VN=A;Qk=bm.default=(0,QN.default)((0,VN.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"}),"Sms");const Hs=Vl;function Vk({onCardClick:e,className:t=""}){const{t:n}=Ja(),a=[{id:"email",title:n("actionCards.email"),description:n("actionCardsDesc.email"),step:3,icon:Mk},{id:"domain",title:n("actionCards.domain"),description:n("actionCardsDesc.domain"),icon:Lk},{id:"sms",title:n("actionCards.sms"),description:n("actionCardsDesc.sms"),icon:Qk},{id:"analyze",title:n("actionCards.analyze"),description:n("actionCardsDesc.analyze"),step:1,icon:Xs}];return A.jsx(D,{className:t,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:a.map(r=>{const l=r.icon;return A.jsxs(D,{component:"button",type:"button",className:Hs.actionCard,onClick:()=>e(r),children:[A.jsx("span",{className:Hs.actionCardIcon,children:A.jsx(l,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:Hs.actionCardContent,children:[A.jsx("span",{className:Hs.actionCardTitle,children:r.title}),A.jsx("span",{className:Hs.actionCardDescription,children:r.description})]})]},r.id)})})}const Ol=Vl;function UN({userName:e="",websiteUrl:t="",businessName:n="",setActiveStep:a}){var E,h;const{t:r}=Ja(),l=Bs(),{setOpenDomainFinder:i,openSmsChat:o,setOpenSmsChat:s,openAnalyzeChat:p,setOpenAnalyzeChat:u}=nl(),{step2Data:c}=Sg(),[d,f]=v.useState(!1),W=()=>{l&&(l.open=!1)},C=g=>{g.id==="email"&&g.step!==void 0?a==null||a(g.step):g.id==="domain"?(i(!0),a==null||a(0)):g.id==="sms"?s(!0):g.id==="analyze"&&u(!0)};if(v.useEffect(()=>{f(!0)},[]),o)return A.jsxs(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(D,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Rk,{domain:t,onClose:()=>s(!1),logo:c==null?void 0:c.logo,logoBackgroundHex:c==null?void 0:c.logoBackgroundHex})})]});if(p){const g=c?[(E=c.businessData)==null?void 0:E.business_name,(h=c.businessData)==null?void 0:h.description,c.websiteUrl].filter(Boolean).join(" | "):"";return A.jsxs(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:[A.jsx(D,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:0,py:4,borderBottom:"1px solid",borderColor:"divider",flexShrink:0,width:"100%"}}),A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,maxWidth:"100%",width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Bk,{domain:t,context:g||void 0,onClose:()=>u(!1)})})]})}return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",position:"relative",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",className:d?Ol.fadeUp:"",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},margin:"0 auto",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsx(D,{className:d?Ol.fadeUpDelay1:"",sx:{mb:{xs:2,sm:2.5},display:"flex",justifyContent:"center",alignItems:"center"},children:A.jsx(rx,{sx:{fontSize:{xs:50,sm:65,md:80},...zs}})}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3}},children:[A.jsx(We,{component:"h1",variant:"h4",className:d?Ol.fadeUpDelay2:"",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary",textAlign:"center"},children:e?r("thankyou.title",{name:e}):`${r("thankyou.titleNoName")}!`}),A.jsx(We,{variant:"body2",color:"text.secondary",className:d?Ol.fadeUpDelay4:"",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.subtitle")}),A.jsx(We,{variant:"body2",color:"text.secondary",className:d?Ol.fadeUpDelay5:"",sx:{mt:{xs:.75,sm:1},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,textAlign:"center",maxWidth:"min(44ch, 100%)",mx:"auto"},children:r("thankyou.whatNext")})]}),A.jsx(D,{sx:{textAlign:"center"},className:d?Ol.fadeUpDelay5:"",children:A.jsx(Vk,{onCardClick:C})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Ge,{onClick:W,variant:"text",color:"primary",className:d?Ol.fadeUpDelay5:"",sx:{alignSelf:"flex-start",textTransform:"none",maxWidth:"min(100%, 32rem)",px:.5},children:r("thankyou.keepWorking")})]})})}var km={},FN=qe;Object.defineProperty(km,"__esModule",{value:!0});var Uk=km.default=void 0,zN=FN(Ke()),qN=A;Uk=km.default=(0,zN.default)((0,qN.jsx)("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"}),"RestartAlt");var Rm={},jN=qe;Object.defineProperty(Rm,"__esModule",{value:!0});var Fk=Rm.default=void 0,TN=jN(Ke()),KN=A;Fk=Rm.default=(0,TN.default)((0,KN.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility");const ll=Vl;function ON({userName:e="",setActiveStep:t,onViewResults:n,onStartFromBeginning:a}){const{t:r}=Ja(),{setOpenDomainFinder:l,setOpenSmsChat:i,setOpenAnalyzeChat:o}=nl(),s=()=>{if(a){a();return}t(0)},p=()=>{n?n():t(1)},u=()=>{t(-2)},c=d=>{d.id==="email"&&d.step!==void 0?t(d.step):d.id==="domain"?(l(!0),t(0)):d.id==="sms"?i(!0):d.id==="analyze"&&o(!0)};return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsxs(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:[r("secondTime.hi"),e?` ${e}`:"","!"]}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:r("secondTime.whatNext")})]}),A.jsx(ma,{title:r("secondTime.hubSectionPrimary"),description:r("secondTime.hubSectionPrimaryHint"),children:A.jsx(Vk,{onCardClick:c})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(ma,{title:r("secondTime.hubSectionSecondary"),description:r("secondTime.hubSectionSecondaryHint"),children:A.jsxs(D,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(2, 1fr)"},gap:{xs:1.25,sm:1.5},width:"100%"},children:[A.jsxs(D,{component:"button",type:"button",className:ll.actionCard,onClick:s,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Uk,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.startFromBeginning")}),A.jsx(We,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.startFromBeginningDesc")})]})]}),A.jsxs(D,{component:"button",type:"button",className:ll.actionCard,onClick:p,children:[A.jsx("span",{className:ll.actionCardIcon,children:A.jsx(Fk,{sx:{fontSize:28,...zs}})}),A.jsxs("span",{className:ll.actionCardContent,children:[A.jsx("span",{className:ll.actionCardTitle,children:r("secondTime.viewResults")}),A.jsx(We,{component:"span",variant:"body2",sx:{color:"text.secondary",mt:.5,fontSize:"0.8125rem",display:"block",lineHeight:1.45},children:r("secondTime.viewResultsDesc")})]})]})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsx(Ge,{variant:"text",color:"primary",onClick:u,sx:{alignSelf:"center",mt:{xs:.5,sm:1},fontSize:{xs:"0.8125rem",sm:"0.875rem"},px:{xs:1,sm:2},textAlign:"center",textTransform:"none",whiteSpace:{xs:"normal",sm:"nowrap"},maxWidth:"min(40ch, 100%)",lineHeight:1.45},children:r("secondTime.featureRequest")})]})})}function PN({userName:e="",setActiveStep:t}){const{t:n}=Ja(),[a,r]=v.useState({title:"",description:"",email:""}),l=()=>{if(!a.title.trim()||!a.description.trim())return;const s=new CustomEvent("business-ai-feature-request",{detail:{title:a.title,description:a.description,email:a.email||void 0,timestamp:new Date().toISOString()},bubbles:!0,composed:!0});window.dispatchEvent(s),t(-1)},i=()=>{t(-1)},o=!!a.title.trim()&&!!a.description.trim();return A.jsx(D,{sx:{padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"stretch"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center"},children:[A.jsx(ha,{label:"Business AI",icon:A.jsx(Gc,{}),sx:{p:{xs:1,sm:1.5,md:2},mb:{xs:2,sm:2.25},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"},alignSelf:"flex-start"}}),A.jsxs(D,{sx:{mb:{xs:2.5,sm:3},alignSelf:"stretch",textAlign:"start"},children:[A.jsx(We,{component:"h1",variant:"h4",sx:{fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:n("featureRequestForm.pageTitle")}),A.jsx(We,{variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},fontSize:{xs:"0.875rem",sm:"0.9375rem"},lineHeight:1.55,maxWidth:"min(52ch, 100%)"},children:e?n("featureRequestForm.pageSubtitleNamed",{name:e}):n("featureRequestForm.pageSubtitle")})]}),A.jsx(ma,{title:n("featureRequestForm.sectionTitle"),description:n("featureRequestForm.sectionHint"),children:A.jsxs(Xt,{spacing:2,children:[A.jsx(It,{label:n("featureRequestForm.titleLabel"),fullWidth:!0,required:!0,value:a.title,onChange:s=>r({...a,title:s.target.value}),placeholder:n("featureRequestForm.titlePlaceholder"),size:"small"}),A.jsx(It,{label:n("featureRequestForm.descriptionLabel"),fullWidth:!0,required:!0,multiline:!0,minRows:3,maxRows:8,value:a.description,onChange:s=>r({...a,description:s.target.value}),placeholder:n("featureRequestForm.descriptionPlaceholder"),size:"small"}),A.jsx(It,{label:n("featureRequestForm.emailLabel"),fullWidth:!0,type:"email",value:a.email,onChange:s=>r({...a,email:s.target.value}),placeholder:n("featureRequestForm.emailPlaceholder"),size:"small"})]})}),A.jsx(Xa,{sx:{my:{xs:1.5,sm:2},borderColor:"divider"}}),A.jsxs(Xt,{direction:{xs:"column-reverse",sm:"row"},spacing:1.5,justifyContent:"space-between",alignItems:{xs:"stretch",sm:"center"},children:[A.jsx(Ge,{variant:"text",color:"primary",onClick:i,sx:{alignSelf:{xs:"stretch",sm:"flex-start"},textTransform:"none"},children:n("featureRequestForm.back")}),A.jsx(Ge,{disabled:!o,variant:"contained",color:"primary",onClick:l,sx:{textTransform:"none"},children:n("featureRequestForm.submit")})]})]})})}const JN="https://static.intercomassets.com/avatars/5075191/square_128/%D7%AA%D7%9E%D7%95%D7%A0%D7%AA_%D7%A4%D7%A8%D7%95%D7%A4%D7%99%D7%9C_%D7%9E%D7%A6%D7%95%D7%99%D7%A8%D7%AA-1763991463.jpg";function DN({setActiveStep:e}){const{t}=Ja(),n=()=>{e(0)};return A.jsx(D,{dir:"auto",sx:{display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"center",height:"100%",padding:{xs:2,sm:3,md:5},width:{xs:"100%",sm:"600px",md:"800px"},maxWidth:"100%",boxSizing:"border-box"},children:A.jsxs(Xt,{spacing:0,sx:{width:"100%",maxWidth:{sm:"600px"},alignSelf:"center",alignItems:"stretch"},children:[A.jsx(Cr,{src:JN,alt:"Support Avatar",sx:{alignSelf:"center",width:{xs:80,sm:100,md:120},height:{xs:80,sm:100,md:120},mb:{xs:2.5,sm:3}}}),A.jsx(We,{dir:"auto",component:"h1",variant:"h4",sx:{textAlign:"center",fontSize:{xs:"1.5rem",sm:"1.875rem",md:"2rem"},fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.2,color:"text.primary"},children:t("welcome.heading")}),A.jsx(We,{dir:"auto",variant:"body2",color:"text.secondary",sx:{mt:{xs:1,sm:1.25},textAlign:"center",lineHeight:1.55,whiteSpace:"pre-wrap",fontSize:{xs:"0.875rem",sm:"0.9375rem"},maxWidth:"min(44ch, 100%)",mx:"auto",mb:{xs:3,sm:3.5}},children:t("welcome.text")}),A.jsx(Ge,{size:"large",dir:"auto",variant:"contained",color:"primary",onClick:n,sx:{alignSelf:"center",textTransform:"none"},children:t("welcome.startButton")})]})})}const YN=Vl,ZN=Nc(Ej,Vl);function NN(e,t){return t!=null?!0:wm(e)}function wm(e){if(!e||typeof e!="object")return!1;const t=e,n=t.domain??t.website??t.websiteUrl,a=typeof n=="string"&&n.length>0&&!n.includes("example.com"),r=typeof t.business_name=="string"&&t.business_name.length>0&&t.business_name!=="Example Company";return!!(a||r||t.analyzed_at||t.businessData)}function GN({language:e="he",showWelcome:t=!1,userName:n="",freeSolo:a=!0,placeholderSuggestions:r=[],data:l={websiteUrl:"https://www.example.com",business_name:"Example Company"},websiteUrl:i="",business_name:o="",logo:s="",urls:p=[],mergeTags:u=[],visibilityRules:c,location:d}){Zc(ZN,"bussinessAILayout-styles");const{t:f}=Ja(),{shadowRoot:W,activeStep:C,setActiveStep:E,step2Data:h,setStep2Data:g,step3Draft:m,setStep3Draft:y,openSmsChat:x,setOpenSmsChat:S,openAnalyzeChat:k,setOpenAnalyzeChat:B,openDomainFinder:V}=nl(),b=NN(l,h),w=()=>t&&!b?-3:b?-1:0,M=v.useRef(!1),z=v.useRef(C),F=v.useRef(!1);v.useEffect(()=>{if(M.current)b&&C===0&&h==null&&!F.current&&!V?(E(-1),F.current=!0):M.current&&h!=null&&C===2&&wm(l)?E(-1):M.current&&h!=null&&C===0&&!V&&(E(-1),F.current=!0);else{if(h!=null&&C===2&&wm(l)){E(-1),F.current=!0,M.current=!0;return}if(h!=null){C===0&&(E(-1),F.current=!0),M.current=!0;return}const ne=w();ne!==0&&z.current===0&&(E(ne),ne===-1&&(F.current=!0)),M.current=!0}},[h,b,C,l,V]),v.useEffect(()=>{if((C===-1||C===-2)&&!b){E(t?-3:0);return}C===-3&&!t&&E(0)},[C,b,t,E]);const T=v.useRef(null);v.useEffect(()=>{if(T.current===null){T.current=t;return}!T.current&&t&&C===0&&!b&&h==null&&!V&&E(-3),T.current=t},[t,C,b,h,V,E]);const U=C,q=E,Q=l??{},K=Q.businessData&&typeof Q.businessData=="object"?Q.businessData:null,R=i||(typeof Q.websiteUrl=="string"?Q.websiteUrl:"")||(typeof Q.website=="string"?Q.website:"")||(typeof Q.domain=="string"?Q.domain:"")||(typeof(K==null?void 0:K.website)=="string"?K.website:""),X=o||(typeof Q.business_name=="string"?Q.business_name:"")||(typeof(K==null?void 0:K.business_name)=="string"?K.business_name:""),G=K!=null?{...K,logo:(typeof Q.logo=="string"?Q.logo:"")||(typeof K.logo=="string"?K.logo:""),websiteUrl:(typeof Q.websiteUrl=="string"?Q.websiteUrl:"")||(typeof K.website=="string"?K.website:""),domain:(typeof Q.domain=="string"?Q.domain:"")||(typeof K.website=="string"?K.website:"")}:l,[L,te]=v.useState(R),[re,oe]=v.useState(X),[ve,fe]=v.useState(null),[he,ze]=v.useState(null),_=v.useRef(null),ee=v.useRef(null);v.useEffect(()=>{console.log("🔄 [Parent] step2Data from context updated:",h),console.log("🔄 [Parent] step2Data (stringified):",h?JSON.stringify(h,null,2):"null"),h&&fe(h.businessData)},[h]);function ge(ne){var Me;console.log("💾 [Parent] onSave called with data:",ne),console.log("💾 [Parent] onSave data (stringified):",JSON.stringify(ne,null,2)),console.log("💾 [Parent] onSave - businessData keys:",Object.keys(ne.businessData||{})),g(ne),fe(ne.businessData),console.log("💾 [Parent] step2Data saved to context");const Le=((Me=ne.businessData)==null?void 0:Me.website)||ne.websiteUrl||"";Le&&te(Le)}const Ce=()=>{S(!1),B(!1),g(null),m!=null&&y(null),fe(null),te(R),oe(X),E(0)},se=[f("steps.brandDetails"),f("steps.designPrefs"),f("steps.summary"),f("steps.summaryAndSend")];v.useEffect(()=>{const ne=()=>{let ye=null;if(_.current&&(ye=_.current.closest(".MuiDialog-paper")),!ye&&W&&(ye=W.querySelector(".MuiDialog-paper")),ye||(ye=document.querySelector(".MuiDialog-paper")),ye){const Qe=ye.getBoundingClientRect().height;ze(Qe)}else if(_.current){const Ze=_.current.getBoundingClientRect();ze(Ze.height)}};ne(),window.addEventListener("resize",ne);const Le=setTimeout(ne,100),Me=setTimeout(ne,300);return()=>{window.removeEventListener("resize",ne),clearTimeout(Le),clearTimeout(Me)}},[U,W]);const ue=U===-3||U===-2||U===-1||U===2,Te=U===3||x||k;return A.jsx(D,{"data-lang":e,sx:{flex:1,minHeight:0,height:"100%",width:"100%",display:"flex",flexDirection:"column",paddingBottom:U===1?{xs:72,sm:80}:0},children:A.jsxs(ut,{height:"100%",justifyContent:"space-between",sx:{height:"100%",flex:"1 1 0%",minHeight:0,minWidth:0,flexWrap:{xs:"wrap",md:U===0?"nowrap":"wrap"}},container:!0,children:[A.jsx(ut,{item:!0,lg:U===0?8:12,md:U===0?8:12,sm:12,xs:12,sx:{minHeight:0,minWidth:0,display:"flex",flexDirection:"column",flex:"1 1 0%",maxWidth:{xs:"100%",md:U===0?"66.666667%":"100%"}},children:A.jsx(D,{ref:_,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column"},children:U===1?A.jsx(D,{ref:ee,sx:{overflow:"hidden",flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(JK,{data:G,websiteUrl:L,setActiveStep:q,onSave:ge,urls:p||[],language:e})}):A.jsx(D,{sx:{flex:"1 1 0%",minHeight:0,minWidth:0,display:"flex",flexDirection:"column",width:"100%",position:"relative",justifyContent:Te||ue?"flex-start":"center",alignItems:Te||ue?"stretch":"center"},children:A.jsxs(D,{ref:ee,sx:{flex:"1 1 0%",minHeight:0,minWidth:0,overflowY:"auto",overscrollBehaviorY:"contain",overflowX:"hidden",width:"100%",maxHeight:Te?void 0:ue?"calc(90vh - 7.5rem)":void 0,display:"flex",flexDirection:"column",alignItems:Te?"stretch":"center",pb:ue?{xs:4,sm:5}:{xs:1,sm:2},WebkitOverflowScrolling:"touch"},children:[x?A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(D,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Rk,{domain:L||(l==null?void 0:l.domain)||"",onClose:()=>S(!1),logo:(h==null?void 0:h.logo)??(l==null?void 0:l.logo)??"",logoBackgroundHex:(h==null?void 0:h.logoBackgroundHex)??(l==null?void 0:l.logoBackgroundHex)??void 0,language:e})})}):k?(()=>{var Le,Me;const ne=h?[(Le=h.businessData)==null?void 0:Le.business_name,(Me=h.businessData)==null?void 0:Me.description,h.websiteUrl].filter(Boolean).join(" | "):(()=>{const ye=l;return ye?[ye.business_name,ye.websiteUrl??ye.domain,ye.business_type,ye.business_tone,ye.businessDesign??ye.description].filter(Boolean).join(" | "):""})();return A.jsx(D,{sx:{flex:1,minHeight:0,minWidth:0,alignSelf:"stretch",display:"flex",flexDirection:"column",overflow:"hidden",width:"100%"},children:A.jsx(D,{sx:{flex:1,minHeight:0,width:"100%",display:"flex",flexDirection:"column"},children:A.jsx(Bk,{domain:L||(l==null?void 0:l.domain)||"",context:ne||void 0,onClose:()=>B(!1),language:e})})})})():null,!x&&!k?A.jsxs(A.Fragment,{children:[t&&U===-3?A.jsx(DN,{userName:n,setActiveStep:q}):null,b&&U===-1?A.jsx(ON,{userName:n,setActiveStep:q,onStartFromBeginning:Ce}):null,b&&U===-2?A.jsx(PN,{userName:n,setActiveStep:q}):null,U===0?A.jsx(Bj,{activeStep:U,steps:se,userName:n,websiteUrl:L,setWebsiteUrl:te,setActiveStep:q,freeSolo:a,hasContext:b,urls:p||[],businessNameOrDescription:re||(ve==null?void 0:ve.business_name)||"",setBusinessNameOrDescription:oe,language:e}):null,U===2?A.jsx(UN,{userName:n,websiteUrl:(ve==null?void 0:ve.website)||L||"",businessName:(ve==null?void 0:ve.business_name)||re||"",setActiveStep:q}):null,U===3?(()=>{const ne=l,Le=h||{businessData:ve||(ne&&typeof ne=="object"&&"businessData"in ne?ne.businessData:ne)||{},logo:s||(ne==null?void 0:ne.logo)||"",websiteUrl:L||(ne==null?void 0:ne.domain)||(ne==null?void 0:ne.websiteUrl)||""};return A.jsx(yO,{setActiveStep:q,placeholderSuggestions:r,language:e,data:Le,logo:(h==null?void 0:h.logo)||s,mergeTags:u,visibilityRules:c,location:d})})():null]}):null]})})})}),U===0?A.jsx(ut,{item:!0,lg:5,md:4,sx:{display:{xs:"none",sm:"none",md:"block"},position:"sticky",top:0,alignSelf:"flex-start",height:"fit-content",maxHeight:"100vh"},className:YN.rightLayout,children:A.jsx(D,{sx:{height:he?`${he}px`:"100vh",minHeight:"100%",backgroundImage:`url(${Sj})`,backgroundSize:"cover",backgroundPosition:"right",backgroundRepeat:"no-repeat",backgroundColor:"#ececec"}})}):null]})})}function XN({showWelcome:e=!1,fullScreen:t=!1,language:n="he",userName:a="",freeSolo:r=!0,placeholderSuggestions:l=[],data:i={},websiteUrl:o="",business_name:s="",logo:p="",open:u=!1,urls:c=[],mergeTags:d=[],visibilityRules:f,location:W}){const C=i??{},E=n&&/^(he|ar|fa|ur)/i.test(n)?"rtl":"ltr",h=v.useMemo(()=>RW({direction:E,typography:{fontFamily:"'Rubik', sans-serif"},palette:{mode:"light",primary:{main:"#6328A7",contrastText:"#ffffff"},secondary:{main:"#000"}},components:{MuiSvgIcon:{styleOverrides:{colorPrimary:{...zl}}},MuiIconButton:{styleOverrides:{colorPrimary:{color:"transparent","& .MuiSvgIcon-root":{...zl}}}},MuiTypography:{styleOverrides:{root:({ownerState:U})=>U.color==="primary"?{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiLink:{styleOverrides:{root:({ownerState:U})=>U.color==="primary"?{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{}}},MuiCircularProgress:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)"}}},MuiCheckbox:{styleOverrides:{colorPrimary:{color:"url(#cdtr-brand-gradient)","&.Mui-checked, &.MuiCheckbox-indeterminate":{color:"url(#cdtr-brand-gradient)"},"& .MuiSvgIcon-root":{...zl}}}},MuiChip:{styleOverrides:{outlinedPrimary:({theme:U})=>({border:"1px solid transparent",backgroundColor:"transparent",backgroundImage:`
815
815
  linear-gradient(${U.palette.background.paper}, ${U.palette.background.paper}),
816
816
  ${Xn}
817
817
  `,backgroundOrigin:"padding-box, border-box",backgroundClip:"padding-box, border-box","& .MuiChip-label":{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"},"& .MuiChip-icon":{color:"transparent","& .MuiSvgIcon-root":{...zl}}})}},MuiButton:{styleOverrides:{root:{borderRadius:999},textPrimary:({theme:U})=>({backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent","& .MuiButton-startIcon, & .MuiButton-endIcon":{WebkitBackgroundClip:"border-box",WebkitTextFillColor:"unset",backgroundImage:"none","& .MuiSvgIcon-root":{...zl}},"&:hover":{backgroundImage:Xn,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",opacity:.92},"&.Mui-disabled":{WebkitTextFillColor:"currentcolor",backgroundImage:"none",color:U.palette.action.disabled,"& .MuiButton-startIcon .MuiSvgIcon-root, & .MuiButton-endIcon .MuiSvgIcon-root":{fill:"none",color:U.palette.action.disabled}}}),outlinedPrimary:({theme:U})=>({border:"2px solid transparent",backgroundColor:"transparent",boxShadow:"none",backgroundImage:`