diff --git a/Frontend/assets/__federation_expose_Dim-DWu30WY1.js b/Frontend/assets/__federation_expose_Dim-DWu30WY1.js new file mode 100644 index 0000000..52b489a --- /dev/null +++ b/Frontend/assets/__federation_expose_Dim-DWu30WY1.js @@ -0,0 +1,19 @@ +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const U=globalThis,L=U.ShadowRoot&&(U.ShadyCSS===void 0||U.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,tt=Symbol(),B=new WeakMap;let lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==tt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(L&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=B.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&B.set(e,t))}return t}toString(){return this.cssText}};const at=n=>new lt(typeof n=="string"?n:n+"",void 0,tt),dt=(n,t)=>{if(L)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=U.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)}},W=L?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return at(e)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const{is:pt,defineProperty:ut,getOwnPropertyDescriptor:$t,getOwnPropertyNames:_t,getOwnPropertySymbols:ft,getPrototypeOf:mt}=Object,H=globalThis,V=H.trustedTypes,At=V?V.emptyScript:"",yt=H.reactiveElementPolyfillSupport,E=(n,t)=>n,I={toAttribute(n,t){switch(t){case Boolean:n=n?At:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},et=(n,t)=>!pt(n,t),q={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:et};Symbol.metadata??=Symbol("metadata"),H.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=q){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ut(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=$t(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return i?.call(this)},set(r){const l=i?.call(this);o.call(this,r),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??q}static _$Ei(){if(this.hasOwnProperty(E("elementProperties")))return;const t=mt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(E("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(E("properties"))){const e=this.properties,s=[..._t(e),...ft(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(W(i))}else t!==void 0&&e.push(W(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:I).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),r=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:I;this._$Em=i,this[i]=r.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??et)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,o]of s)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[E("elementProperties")]=new Map,y[E("finalized")]=new Map,yt?.({ReactiveElement:y}),(H.reactiveElementVersions??=[]).push("2.0.4");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const j=globalThis,T=j.trustedTypes,F=T?T.createPolicy("lit-html",{createHTML:n=>n}):void 0,st="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,it="?"+_,gt=`<${it}>`,A=document,C=()=>A.createComment(""),w=n=>n===null||typeof n!="object"&&typeof n!="function",nt=Array.isArray,St=n=>nt(n)||typeof n?.[Symbol.iterator]=="function",O=`[ +\f\r]`,v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,J=/>/g,f=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,G=/"/g,ot=/^(?:script|style|textarea|title)$/i,g=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Q=new WeakMap,m=A.createTreeWalker(A,129);function rt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return F!==void 0?F.createHTML(t):t}const vt=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"":"",r=v;for(let l=0;l"?(r=i??v,c=-1):p[1]===void 0?c=-2:(c=r.lastIndex-p[2].length,a=p[1],r=p[3]===void 0?f:p[3]==='"'?G:K):r===G||r===K?r=f:r===Z||r===J?r=v:(r=f,i=void 0);const $=r===f&&n[l+1].startsWith("/>")?" ":"";o+=r===v?h+gt:c>=0?(s.push(a),h.slice(0,c)+st+h.slice(c)+_+$):h+_+(c===-2?l:$)}return[rt(n,o+(n[e]||"")+(t===2?"":"")),s]};class x{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const l=t.length-1,h=this.parts,[a,p]=vt(t,e);if(this.el=x.createElement(a,s),m.currentNode=this.el.content,e===2){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(i=m.nextNode())!==null&&h.length0){i.textContent=T?T.emptyScript:"";for(let $=0;$2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=S(this,t,e,0),r=!w(t)||t!==this._$AH&&t!==g,r&&(this._$AH=t);else{const l=t;let h,a;for(t=o[0],h=0;h{const s=e?.renderBefore??t;let i=s._$litPart$;if(i===void 0){const o=e?.renderBefore??null;s._$litPart$=i=new k(t.insertBefore(C(),o),o,void 0,e??{})}return i._$AI(n),i};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class b extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Pt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return g}}b._$litElement$=!0,b.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:b});const Ut=globalThis.litElementPolyfillSupport;Ut?.({LitElement:b});(globalThis.litElementVersions??=[]).push("4.0.6");const M=globalThis,Tt=M.ShadowRoot&&(M.ShadyCSS===void 0||M.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,z=Symbol(),X=new WeakMap;class ht{constructor(t,e,s){if(this._$cssResult$=!0,s!==z)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this._strings=e}get styleSheet(){let t=this._styleSheet;const e=this._strings;if(Tt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=X.get(e)),t===void 0&&((this._styleSheet=t=new CSSStyleSheet).replaceSync(this.cssText),s&&X.set(e,t))}return t}toString(){return this.cssText}}const Ht=n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${n}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)},Rt=n=>new ht(typeof n=="string"?n:String(n),void 0,z),Nt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((s,i,o)=>s+Ht(i)+n[o+1],n[0]);return new ht(e,n,z)},Ot=(n,...t)=>({_$litType$:1,strings:n,values:t});let D=null;function Y(n){D=n}function N(){if(!D)throw new Error("Hooks can only be called inside a component.");return D}function ct({tag:n,component:t}){class e extends b{static get properties(){return{props:{type:Object}}}constructor(){super(),this.hookIndex=0,this.hooks={}}render(){this.hookIndex=0,Y(this);const i=Array.from(this.attributes).reduce((l,h)=>(l[h.name]=h.value,l),{});console.log("attributes",this.attributes,this.props),this.props=this.props||{};const o={useState:Mt,useEffect:It,useMemo:Dt,useScope:Lt,useStyle:jt,html:Ot,css:Nt},r=t({...i,...this.props,children:this.innerHTML},o);return Y(null),r}}window.customElements.define(n,e)}function Mt(n){const t=N(),s=`hook-${t.hookIndex++}`;t.hooks[s]||(t.hooks[s]=n);const i=o=>{const r=typeof o=="function"?o(t.hooks[s]):o;t.hooks[s]=r,t.requestUpdate()};return[t.hooks[s],i]}function It(n,t){const e=N(),i=`hook-${e.hookIndex++}`,o=e.hooks[i]?.dependencies;if(!o||t.some((l,h)=>l!==o[h])){e.hooks[i]?.cleanup&&e.hooks[i].cleanup();const l=n();e.hooks[i]={dependencies:t,cleanup:l}}e.addController({hostDisconnected(){e.hooks[i]?.cleanup&&e.hooks[i].cleanup()}})}function Dt(n,t){const e=N(),i=`hook-${e.hookIndex++}`,o=e.hooks[i]?.dependencies;return(!o||t.some((l,h)=>l!==o[h]))&&(e.hooks[i]={value:n(),dependencies:t}),e.hooks[i].value}function Lt(n){Object.keys(n).forEach(t=>{const e=n[t];customElements.get(t)||ct({tag:t,component:e})})}function jt(n){const t=N();if(!t._stylesApplied){t._stylesApplied=!0;const e=document.createElement("style");e.textContent=Rt(n).cssText,t.shadowRoot.appendChild(e)}}const Bt=(n,t)=>{t.then(e=>{const s=new Function(`return ${e}`)();customElements.get(n)||ct({tag:n,component:s})})};export{ct as define,It as useEffect,Bt as useLazyScope,Dt as useMemo,Lt as useScope,Mt as useState,jt as useStyle}; diff --git a/Frontend/assets/__federation_expose_Dim-Ezem4zve.js b/Frontend/assets/__federation_expose_Dim-Ezem4zve.js deleted file mode 100644 index c6e8f3c..0000000 --- a/Frontend/assets/__federation_expose_Dim-Ezem4zve.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @license - * Copyright 2019 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const N=globalThis,D=N.ShadowRoot&&(N.ShadyCSS===void 0||N.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,F=Symbol(),z=new WeakMap;let st=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==F)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(D&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=z.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&z.set(e,t))}return t}toString(){return this.cssText}};const it=n=>new st(typeof n=="string"?n:n+"",void 0,F),nt=(n,t)=>{if(D)n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=N.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)}},j=D?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return it(e)})(n):n;/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const{is:ot,defineProperty:rt,getOwnPropertyDescriptor:ht,getOwnPropertyNames:at,getOwnPropertySymbols:lt,getPrototypeOf:ct}=Object,O=globalThis,I=O.trustedTypes,dt=I?I.emptyScript:"",pt=O.reactiveElementPolyfillSupport,b=(n,t)=>n,k={toAttribute(n,t){switch(t){case Boolean:n=n?dt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},G=(n,t)=>!ot(n,t),B={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:G};Symbol.metadata??=Symbol("metadata"),O.litPropertyMetadata??=new WeakMap;class g extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=B){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&rt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=ht(this.prototype,t)??{get(){return this[e]},set(r){this[e]=r}};return{get(){return i?.call(this)},set(r){const p=i?.call(this);o.call(this,r),this.requestUpdate(t,p,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??B}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=ct(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const e=this.properties,s=[...at(e),...lt(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(j(i))}else t!==void 0&&e.push(j(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return nt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:k).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),r=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:k;this._$Em=i,this[i]=r.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??G)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,o]of s)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}}g.elementStyles=[],g.shadowRootOptions={mode:"open"},g[b("elementProperties")]=new Map,g[b("finalized")]=new Map,pt?.({ReactiveElement:g}),(O.reactiveElementVersions??=[]).push("2.0.4");/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */const L=globalThis,T=L.trustedTypes,V=T?T.createPolicy("lit-html",{createHTML:n=>n}):void 0,Q="$lit$",f=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+f,ut=`<${X}>`,y=document,w=()=>y.createComment(""),P=n=>n===null||typeof n!="object"&&typeof n!="function",Y=Array.isArray,$t=n=>Y(n)||typeof n?.[Symbol.iterator]=="function",R=`[ -\f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,q=/>/g,A=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,J=/"/g,tt=/^(?:script|style|textarea|title)$/i,_t=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),ft=_t(1),v=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),K=new WeakMap,m=y.createTreeWalker(y,129);function et(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return V!==void 0?V.createHTML(t):t}const At=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"":"",r=S;for(let p=0;p"?(r=i??S,a=-1):u[1]===void 0?a=-2:(a=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?A:u[3]==='"'?J:Z):r===J||r===Z?r=A:r===W||r===q?r=S:(r=A,i=void 0);const _=r===A&&n[p+1].startsWith("/>")?" ":"";o+=r===S?h+ut:a>=0?(s.push(c),h.slice(0,a)+Q+h.slice(a)+f+_):h+f+(a===-2?p:_)}return[et(n,o+(n[e]||"")+(t===2?"":"")),s]};class U{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const p=t.length-1,h=this.parts,[c,u]=At(t,e);if(this.el=U.createElement(c,s),m.currentNode=this.el.content,e===2){const a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(i=m.nextNode())!==null&&h.length0){i.textContent=T?T.emptyScript:"";for(let _=0;_<$;_++)i.append(a[_],w()),m.nextNode(),h.push({type:2,index:++o});i.append(a[$],w())}}}else if(i.nodeType===8)if(i.data===X)h.push({type:2,index:o});else{let a=-1;for(;(a=i.data.indexOf(f,a+1))!==-1;)h.push({type:7,index:o}),a+=f.length-1}o++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}}function E(n,t,e=n,s){if(t===v)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl;const o=P(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(n),i._$AT(n,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=E(n,i._$AS(n,t.values),i,s)),t}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??y).importNode(e,!0);m.currentNode=i;let o=m.nextNode(),r=0,p=0,h=s[0];for(;h!==void 0;){if(r===h.index){let c;h.type===2?c=new x(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new Et(o,this,t)),this._$AV.push(c),h=s[++p]}r!==h?.index&&(o=m.nextNode(),r++)}return m.currentNode=y,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class x{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),P(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):$t(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=U.createElement(et(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const o=new mt(i,this),r=o.u(this.options);o.p(e),this.T(r),this._$AH=o}}_$AC(t){let e=K.get(t.strings);return e===void 0&&K.set(t.strings,e=new U(t)),e}k(t){Y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new x(this.S(w()),this.S(w()),this,this.options)):s=e[i],s._$AI(o),i++;i2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=E(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==v,r&&(this._$AH=t);else{const p=t;let h,c;for(t=o[0],h=0;h{const s=e?.renderBefore??t;let i=s._$litPart$;if(i===void 0){const o=e?.renderBefore??null;s._$litPart$=i=new x(t.insertBefore(w(),o),o,void 0,e??{})}return i._$AI(n),i};/** - * @license - * Copyright 2017 Google LLC - * SPDX-License-Identifier: BSD-3-Clause - */class C extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return v}}C._$litElement$=!0,C.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:C});const Ct=globalThis.litElementPolyfillSupport;Ct?.({LitElement:C});(globalThis.litElementVersions??=[]).push("4.0.6");let l={};const Pt=ft;function Ut(n,t){const e=`state-${t}`;return l[e]=l?.[e]??n,[()=>l[e],(i=void 0)=>{const o=l?.[e],r=typeof i=="function"?i(o):i;l[e]=r,l?.requestUpdate?.()}]}function xt(n,t,e){const s=`effect-${e}`;if(l[s]?!t.every((o,r)=>o===l[s].dependencies[r]):!0){l[s]={dependencies:t,cleanup:void 0};const o=n();typeof o=="function"&&(l[s].cleanup=o)}l.addController({hostDisconnected(){l[s]?.cleanup&&l[s].cleanup()}})}function Ht(n,t,e){const s=`memo-${e}`;return l[s]||(l[s]={dependencies:[],value:void 0}),!t.every((o,r)=>o===l[s].dependencies[r])&&(l[s].value=n(),l[s].dependencies=t),l[s].value}function Nt({tag:n,component:t}){class e extends C{render(){const i=Array.from(this.attributes).reduce((r,p)=>(r[p.name]=p.value,r),{}),o=()=>t({...i,children:this.innerHTML,component:this});return l=this,o()}}window.customElements.define(n,e)}export{Nt as define,Pt as html,xt as useEffect,Ht as useMemo,Ut as useState,ft as x}; diff --git a/Frontend/assets/__federation_fn_import-CC-ia08v.js b/Frontend/assets/__federation_fn_import-CC-ia08v.js new file mode 100644 index 0000000..702b4a4 --- /dev/null +++ b/Frontend/assets/__federation_fn_import-CC-ia08v.js @@ -0,0 +1 @@ +const S="[0-9A-Za-z-]+",C=`(?:\\+(${S}(?:\\.${S})*))`,_="0|[1-9]\\d*",v="[0-9]+",F="\\d*[a-zA-Z-][a-zA-Z0-9-]*",X=`(?:${v}|${F})`,N=`(?:-?(${X}(?:\\.${X})*))`,q=`(?:${_}|${F})`,U=`(?:-(${q}(?:\\.${q})*))`,g=`${_}|x|X|\\*`,d=`[v=\\s]*(${g})(?:\\.(${g})(?:\\.(${g})(?:${U})?${C}?)?)?`,D=`^\\s*(${d})\\s+-\\s+(${d})\\s*$`,J=`(${v})\\.(${v})\\.(${v})`,Q=`[v=\\s]*${J}${N}?${C}?`,P="((?:<|>)?=?)",W=`(\\s*)${P}\\s*(${Q}|${d})`,k="(?:~>?)",Y=`(\\s*)${k}\\s+`,B="(?:\\^)",A=`(\\s*)${B}\\s+`,j="(<|>)?=?\\s*\\*",m=`^${B}${d}$`,ee=`(${_})\\.(${_})\\.(${_})`,re=`v?${ee}${U}?${C}?`,te=`^${k}${d}$`,ne=`^${P}\\s*${d}$`,se=`^${P}\\s*(${re})$|^$`,ie="^\\s*>=\\s*0.0.0\\s*$";function o(e){return new RegExp(e)}function u(e){return!e||e.toLowerCase()==="x"||e==="*"}function G(...e){return n=>e.reduce((i,r)=>r(i),n)}function E(e){return e.match(o(se))}function z(e,n,i,r){const t=`${e}.${n}.${i}`;return r?`${t}-${r}`:t}function $e(e){return e.replace(o(D),(n,i,r,t,s,$,c,f,a,l,R,p)=>(u(r)?i="":u(t)?i=`>=${r}.0.0`:u(s)?i=`>=${r}.${t}.0`:i=`>=${i}`,u(a)?f="":u(l)?f=`<${+a+1}.0.0-0`:u(R)?f=`<${a}.${+l+1}.0-0`:p?f=`<=${a}.${l}.${R}-${p}`:f=`<=${f}`,`${i} ${f}`.trim()))}function ue(e){return e.replace(o(W),"$1$2$3")}function ce(e){return e.replace(o(Y),"$1~")}function fe(e){return e.replace(o(A),"$1^")}function ae(e){return e.trim().split(/\s+/).map(n=>n.replace(o(m),(i,r,t,s,$)=>u(r)?"":u(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:u(s)?r==="0"?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:`>=${r}.${t}.0 <${+r+1}.0.0-0`:$?r==="0"?t==="0"?`>=${r}.${t}.${s}-${$} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s}-${$} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s}-${$} <${+r+1}.0.0-0`:r==="0"?t==="0"?`>=${r}.${t}.${s} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${+r+1}.0.0-0`)).join(" ")}function le(e){return e.trim().split(/\s+/).map(n=>n.replace(o(te),(i,r,t,s,$)=>u(r)?"":u(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:u(s)?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:$?`>=${r}.${t}.${s}-${$} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`)).join(" ")}function oe(e){return e.split(/\s+/).map(n=>n.trim().replace(o(ne),(i,r,t,s,$,c)=>{const f=u(t),a=f||u(s),l=a||u($);return r==="="&&l&&(r=""),c="",f?r===">"||r==="<"?"<0.0.0-0":"*":r&&l?(a&&(s=0),$=0,r===">"?(r=">=",a?(t=+t+1,s=0,$=0):(s=+s+1,$=0)):r==="<="&&(r="<",a?t=+t+1:s=+s+1),r==="<"&&(c="-0"),`${r+t}.${s}.${$}${c}`):a?`>=${t}.0.0${c} <${+t+1}.0.0-0`:l?`>=${t}.${s}.0${c} <${t}.${+s+1}.0-0`:i})).join(" ")}function pe(e){return e.trim().replace(o(j),"")}function de(e){return e.trim().replace(o(ie),"")}function w(e,n){return e=+e||e,n=+n||n,e>n?1:e===n?0:-1}function _e(e,n){const{preRelease:i}=e,{preRelease:r}=n;if(i===void 0&&r)return 1;if(i&&r===void 0)return-1;if(i===void 0&&r===void 0)return 0;for(let t=0,s=i.length;t<=s;t++){const $=i[t],c=r[t];if($!==c)return $===void 0&&c===void 0?0:$?c?w($,c):-1:1}return 0}function h(e,n){return w(e.major,n.major)||w(e.minor,n.minor)||w(e.patch,n.patch)||_e(e,n)}function x(e,n){return e.version===n.version}function Re(e,n){switch(e.operator){case"":case"=":return x(e,n);case">":return h(e,n)<0;case">=":return x(e,n)||h(e,n)<0;case"<":return h(e,n)>0;case"<=":return x(e,n)||h(e,n)>0;case void 0:return!0;default:return!1}}function he(e){return G(ae,le,oe,pe)(e)}function ve(e){return G($e,ue,ce,fe)(e.trim()).split(/\s+/).join(" ")}function we(e,n){if(!e)return!1;const t=ve(n).split(" ").map(p=>he(p)).join(" ").split(/\s+/).map(p=>de(p)),s=E(e);if(!s)return!1;const[,$,,c,f,a,l]=s,R={operator:$,version:z(c,f,a,l),major:c,minor:f,patch:a,preRelease:l?.split(".")};for(const p of t){const y=E(p);if(!y)return!1;const[,K,,L,O,I,V]=y,M={operator:K,version:z(L,O,I,V),major:L,minor:O,patch:I,preRelease:V?.split(".")};if(!Re(M,R))return!1}return!0}const b={react:{get:()=>()=>Z(new URL("__federation_shared_react-BChr2Uhh.js",import.meta.url).href),import:!0},"react-dom":{get:()=>()=>Z(new URL("__federation_shared_react-dom-BkmDDO3p.js",import.meta.url).href),import:!0}},T=Object.create(null);async function Ve(e,n="default"){return T[e]?new Promise(i=>i(T[e])):await be(e,n)||Te(e)}async function Z(e){return import(e)}async function be(e,n){let i=null;if(globalThis?.__federation_shared__?.[n]?.[e]){const r=globalThis.__federation_shared__[n][e],t=Object.keys(r)[0],s=Object.values(r)[0];b[e]?.requiredVersion?we(t,b[e].requiredVersion)?i=await(await s.get())():console.log(`provider support ${e}(${t}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`):i=await(await s.get())()}if(i)return H(i,e)}async function Te(e){if(b[e]?.import){let n=await(await b[e].get())();return H(n,e)}else console.error("consumer config import=false,so cant use callback shared module")}function H(e,n){return typeof e.default=="function"?(Object.keys(e).forEach(i=>{i!=="default"&&(e.default[i]=e[i])}),T[n]=e.default,e.default):(e.default&&(e=Object.assign({},e.default,e)),T[n]=e,e)}export{Ve as importShared,Te as importSharedLocal,be as importSharedRuntime}; diff --git a/Frontend/assets/__federation_shared_react-dom-BkmDDO3p.js b/Frontend/assets/__federation_shared_react-dom-BkmDDO3p.js new file mode 100644 index 0000000..9e5b43e --- /dev/null +++ b/Frontend/assets/__federation_shared_react-dom-BkmDDO3p.js @@ -0,0 +1,24 @@ +import{r as za,g as Pa}from"./__federation_shared_react-BChr2Uhh.js";var Co={exports:{}},ve={},xo={exports:{}},_o={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(e){function n(C,z){var P=C.length;C.push(z);e:for(;0>>1,Y=C[H];if(0>>1;Hl(sl,P))mnl(Xt,sl)?(C[H]=Xt,C[mn]=P,H=mn):(C[H]=sl,C[pn]=P,H=pn);else if(mnl(Xt,P))C[H]=Xt,C[mn]=P,H=mn;else break e}}return z}function l(C,z){var P=C.sortIndex-z.sortIndex;return P!==0?P:C.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,o=u.now();e.unstable_now=function(){return u.now()-o}}var s=[],d=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,O=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(C){for(var z=t(d);z!==null;){if(z.callback===null)r(d);else if(z.startTime<=C)r(d),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(d)}}function h(C){if(k=!1,f(C),!w)if(t(s)!==null)w=!0,ul(E);else{var z=t(d);z!==null&&ol(h,z.startTime-C)}}function E(C,z){w=!1,k&&(k=!1,c(N),N=-1),g=!0;var P=p;try{for(f(z),m=t(s);m!==null&&(!(m.expirationTime>z)||C&&!Ce());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var Y=H(m.expirationTime<=z);z=e.unstable_now(),typeof Y=="function"?m.callback=Y:m===t(s)&&r(s),f(z)}else r(s);m=t(s)}if(m!==null)var Yt=!0;else{var pn=t(d);pn!==null&&ol(h,pn.startTime-z),Yt=!1}return Yt}finally{m=null,p=P,g=!1}}var x=!1,_=null,N=-1,B=5,T=-1;function Ce(){return!(e.unstable_now()-TC||125H?(C.sortIndex=P,n(d,C),t(s)===null&&C===t(d)&&(k?(c(N),N=-1):k=!0,ol(h,P-H))):(C.sortIndex=Y,n(s,C),w||g||(w=!0,ul(E))),C},e.unstable_shouldYield=Ce,e.unstable_wrapCallback=function(C){var z=p;return function(){var P=p;p=z;try{return C.apply(this,arguments)}finally{p=P}}}})(_o);xo.exports=_o;var Ta=xo.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var No=za,me=Ta;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fl=Object.prototype.hasOwnProperty,La=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yu={},gu={};function Ma(e){return Fl.call(gu,e)?!0:Fl.call(yu,e)?!1:La.test(e)?gu[e]=!0:(yu[e]=!0,!1)}function Da(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ra(e,n,t,r){if(n===null||typeof n>"u"||Da(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,i,u){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=u}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){q[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];q[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){q[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){q[e]=new ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){q[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){q[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){q[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){q[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){q[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ni=/[\-:]([a-z])/g;function zi(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Ni,zi);q[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});q.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){q[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pi(e,n,t,r){var l=q.hasOwnProperty(n)?q[n]:null;(l!==null?l.type!==0:r||!(2o||l[u]!==i[o]){var s=` +`+l[u].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=u&&0<=o);break}}}finally{cl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?pt(e):""}function Fa(e){switch(e.tag){case 5:return pt(e.type);case 16:return pt("Lazy");case 13:return pt("Suspense");case 19:return pt("SuspenseList");case 0:case 2:case 15:return e=fl(e.type,!1),e;case 11:return e=fl(e.type.render,!1),e;case 1:return e=fl(e.type,!0),e;default:return""}}function Ul(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case Ln:return"Portal";case Ol:return"Profiler";case Ti:return"StrictMode";case Il:return"Suspense";case jl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case To:return(e.displayName||"Context")+".Consumer";case Po:return(e._context.displayName||"Context")+".Provider";case Li:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mi:return n=e.displayName||null,n!==null?n:Ul(e.type)||"Memo";case Ye:n=e._payload,e=e._init;try{return Ul(e(n))}catch{}}return null}function Oa(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ul(n);case 8:return n===Ti?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function sn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mo(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Ia(e){var n=Mo(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,i=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Zt(e){e._valueTracker||(e._valueTracker=Ia(e))}function Do(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Mo(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Vl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function ku(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=sn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ro(e,n){n=n.checked,n!=null&&Pi(e,"checked",n,!1)}function Al(e,n){Ro(e,n);var t=sn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Bl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Bl(e,n.type,sn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Su(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Bl(e,n,t){(n!=="number"||Sr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var mt=Array.isArray;function Hn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=Jt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var yt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ja=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(e){ja.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),yt[n]=yt[e]})});function jo(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||yt.hasOwnProperty(e)&&yt[e]?(""+n).trim():n+"px"}function Uo(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=jo(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Ua=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Wl(e,n){if(n){if(Ua[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function $l(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Kl=null;function Di(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Qn=null,Wn=null;function xu(e){if(e=$t(e)){if(typeof Yl!="function")throw Error(y(280));var n=e.stateNode;n&&(n=Gr(n),Yl(e.stateNode,e.type,n))}}function Vo(e){Qn?Wn?Wn.push(e):Wn=[e]:Qn=e}function Ao(){if(Qn){var e=Qn,n=Wn;if(Wn=Qn=null,xu(e),n)for(e=0;e>>=0,e===0?32:31-(Ga(e)/Za|0)|0}var qt=64,bt=4194304;function vt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _r(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,u=t&268435455;if(u!==0){var o=u&~l;o!==0?r=vt(o):(i&=u,i!==0&&(r=vt(i)))}else u=t&~l,u!==0?r=vt(u):i!==0&&(r=vt(i));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,i=n&-n,l>=i||l===16&&(i&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Qt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Pe(n),e[n]=t}function ec(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=wt),Ru=" ",Fu=!1;function us(e,n){switch(e){case"keyup":return Pc.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function os(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Lc(e,n){switch(e){case"compositionend":return os(n);case"keypress":return n.which!==32?null:(Fu=!0,Ru);case"textInput":return e=n.data,e===Ru&&Fu?null:e;default:return null}}function Mc(e,n){if(Dn)return e==="compositionend"||!Ai&&us(e,n)?(e=ls(),dr=ji=Je=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Uu(t)}}function fs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?fs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ds(){for(var e=window,n=Sr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=Sr(e.document)}return n}function Bi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ac(e){var n=ds(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fs(t.ownerDocument.documentElement,t)){if(r!==null&&Bi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Vu(t,i);var u=Vu(t,r);l&&u&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,Rn=null,bl=null,St=null,ei=!1;function Au(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;ei||Rn==null||Rn!==Sr(r)||(r=Rn,"selectionStart"in r&&Bi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),St&&Rt(St,r)||(St=r,r=Pr(bl,"onSelect"),0In||(e.current=ui[In],ui[In]=null,In--)}function D(e,n){In++,ui[In]=e.current,e.current=n}var an={},te=fn(an),se=fn(!1),En=an;function Gn(e,n){var t=e.type.contextTypes;if(!t)return an;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in t)l[i]=n[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function ae(e){return e=e.childContextTypes,e!=null}function Lr(){F(se),F(te)}function Yu(e,n,t){if(te.current!==an)throw Error(y(168));D(te,n),D(se,t)}function Ss(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Oa(e)||"Unknown",l));return V({},t,r)}function Mr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||an,En=te.current,D(te,e),D(se,se.current),!0}function Xu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Ss(e,n,En),r.__reactInternalMemoizedMergedChildContext=e,F(se),F(te),D(te,e)):F(se),D(se,t)}var je=null,Zr=!1,_l=!1;function Es(e){je===null?je=[e]:je.push(e)}function qc(e){Zr=!0,Es(e)}function dn(){if(!_l&&je!==null){_l=!0;var e=0,n=M;try{var t=je;for(M=1;e>=u,l-=u,Ue=1<<32-Pe(n)+l|t<N?(B=_,_=null):B=_.sibling;var T=p(c,_,f[N],h);if(T===null){_===null&&(_=B);break}e&&_&&T.alternate===null&&n(c,_),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T,_=B}if(N===f.length)return t(c,_),I&&vn(c,N),E;if(_===null){for(;NN?(B=_,_=null):B=_.sibling;var Ce=p(c,_,T.value,h);if(Ce===null){_===null&&(_=B);break}e&&_&&Ce.alternate===null&&n(c,_),a=i(Ce,a,N),x===null?E=Ce:x.sibling=Ce,x=Ce,_=B}if(T.done)return t(c,_),I&&vn(c,N),E;if(_===null){for(;!T.done;N++,T=f.next())T=m(c,T.value,h),T!==null&&(a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return I&&vn(c,N),E}for(_=r(c,_);!T.done;N++,T=f.next())T=g(_,c,N,T.value,h),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?N:T.key),a=i(T,a,N),x===null?E=T:x.sibling=T,x=T);return e&&_.forEach(function(rt){return n(c,rt)}),I&&vn(c,N),E}function O(c,a,f,h){if(typeof f=="object"&&f!==null&&f.type===Mn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Gt:e:{for(var E=f.key,x=a;x!==null;){if(x.key===E){if(E=f.type,E===Mn){if(x.tag===7){t(c,x.sibling),a=l(x,f.props.children),a.return=c,c=a;break e}}else if(x.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ye&&no(E)===x.type){t(c,x.sibling),a=l(x,f.props),a.ref=ct(c,x,f),a.return=c,c=a;break e}t(c,x);break}else n(c,x);x=x.sibling}f.type===Mn?(a=Sn(f.props.children,c.mode,h,f.key),a.return=c,c=a):(h=kr(f.type,f.key,f.props,null,c.mode,h),h.ref=ct(c,a,f),h.return=c,c=h)}return u(c);case Ln:e:{for(x=f.key;a!==null;){if(a.key===x)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){t(c,a.sibling),a=l(a,f.children||[]),a.return=c,c=a;break e}else{t(c,a);break}else n(c,a);a=a.sibling}a=Rl(f,c.mode,h),a.return=c,c=a}return u(c);case Ye:return x=f._init,O(c,a,x(f._payload),h)}if(mt(f))return w(c,a,f,h);if(it(f))return k(c,a,f,h);ur(c,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(t(c,a.sibling),a=l(a,f),a.return=c,c=a):(t(c,a),a=Dl(f,c.mode,h),a.return=c,c=a),u(c)):t(c,a)}return O}var Jn=Ls(!0),Ms=Ls(!1),Kt={},Oe=fn(Kt),jt=fn(Kt),Ut=fn(Kt);function wn(e){if(e===Kt)throw Error(y(174));return e}function Zi(e,n){switch(D(Ut,n),D(jt,e),D(Oe,Kt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ql(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ql(n,e)}F(Oe),D(Oe,n)}function qn(){F(Oe),F(jt),F(Ut)}function Ds(e){wn(Ut.current);var n=wn(Oe.current),t=Ql(n,e.type);n!==t&&(D(jt,e),D(Oe,t))}function Ji(e){jt.current===e&&(F(Oe),F(jt))}var j=fn(0);function jr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Nl=[];function qi(){for(var e=0;et?t:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),n()}finally{M=t,zl.transition=r}}function Xs(){return Ee().memoizedState}function tf(e,n,t){var r=un(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Gs(e))Zs(n,t);else if(t=Ns(e,n,t,r),t!==null){var l=le();Te(t,e,r,l),Js(t,n,r)}}function rf(e,n,t){var r=un(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))Zs(n,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=n.lastRenderedReducer,i!==null))try{var u=n.lastRenderedState,o=i(u,t);if(l.hasEagerState=!0,l.eagerState=o,Le(o,u)){var s=n.interleaved;s===null?(l.next=l,Xi(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=Ns(e,n,l,r),t!==null&&(l=le(),Te(t,e,r,l),Js(t,n,r))}}function Gs(e){var n=e.alternate;return e===U||n!==null&&n===U}function Zs(e,n){Et=Ur=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Js(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Fi(e,t)}}var Vr={readContext:Se,useCallback:b,useContext:b,useEffect:b,useImperativeHandle:b,useInsertionEffect:b,useLayoutEffect:b,useMemo:b,useReducer:b,useRef:b,useState:b,useDebugValue:b,useDeferredValue:b,useTransition:b,useMutableSource:b,useSyncExternalStore:b,useId:b,unstable_isNewReconciler:!1},lf={readContext:Se,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:Se,useEffect:ro,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,hr(4194308,4,Qs.bind(null,n,e),t)},useLayoutEffect:function(e,n){return hr(4194308,4,e,n)},useInsertionEffect:function(e,n){return hr(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=tf.bind(null,U,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:to,useDebugValue:ru,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=to(!1),n=e[0];return e=nf.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=U,l=De();if(I){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),G===null)throw Error(y(349));xn&30||Os(r,n,t)}l.memoizedState=t;var i={value:t,getSnapshot:n};return l.queue=i,ro(js.bind(null,r,i,e),[e]),r.flags|=2048,Bt(9,Is.bind(null,r,i,t,n),void 0,null),t},useId:function(){var e=De(),n=G.identifierPrefix;if(I){var t=Ve,r=Ue;t=(r&~(1<<32-Pe(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Vt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(t,{is:r.is}):(e=u.createElement(t),t==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,t),e[Re]=n,e[It]=r,ua(e,n,!1,!1),n.stateNode=e;e:{switch(u=$l(t,r),t){case"dialog":R("cancel",e),R("close",e),l=r;break;case"iframe":case"object":case"embed":R("load",e),l=r;break;case"video":case"audio":for(l=0;let&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304)}else{if(!r)if(e=jr(u),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),ft(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!I)return ee(n),null}else 2*Q()-i.renderingStartTime>et&&t!==1073741824&&(n.flags|=128,r=!0,ft(i,!1),n.lanes=4194304);i.isBackwards?(u.sibling=n.child,n.child=u):(t=i.last,t!==null?t.sibling=u:n.child=u,i.last=u)}return i.tail!==null?(n=i.tail,i.rendering=n,i.tail=n.sibling,i.renderingStartTime=Q(),n.sibling=null,t=j.current,D(j,r?t&1|2:t&1),n):(ee(n),null);case 22:case 23:return au(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?fe&1073741824&&(ee(n),n.subtreeFlags&6&&(n.flags|=8192)):ee(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function pf(e,n){switch(Qi(n),n.tag){case 1:return ae(n.type)&&Lr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qn(),F(se),F(te),qi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Ji(n),null;case 13:if(F(j),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));Zn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return F(j),null;case 4:return qn(),null;case 10:return Yi(n.type._context),null;case 22:case 23:return au(),null;case 24:return null;default:return null}}var sr=!1,ne=!1,mf=typeof WeakSet=="function"?WeakSet:Set,S=null;function An(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function gi(e,n,t){try{t()}catch(r){A(e,n,r)}}var po=!1;function vf(e,n){if(ni=Nr,e=ds(),Bi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var u=0,o=-1,s=-1,d=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(o=u+l),m!==i||r!==0&&m.nodeType!==3||(s=u+r),m.nodeType===3&&(u+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++d===l&&(o=u),p===i&&++v===r&&(s=u),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=o===-1||s===-1?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(ti={focusedElem:e,selectionRange:t},Nr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,O=w.memoizedState,c=n.stateNode,a=c.getSnapshotBeforeUpdate(n.elementType===n.type?k:_e(n.type,k),O);c.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=n.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){A(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=po,po=!1,w}function Ct(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&gi(n,t,i)}l=l.next}while(l!==r)}}function br(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function wi(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function aa(e){var n=e.alternate;n!==null&&(e.alternate=null,aa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Re],delete n[It],delete n[ii],delete n[Zc],delete n[Jc])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ca(e){return e.tag===5||e.tag===3||e.tag===4}function mo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ca(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ki(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Tr));else if(r!==4&&(e=e.child,e!==null))for(ki(e,n,t),e=e.sibling;e!==null;)ki(e,n,t),e=e.sibling}function Si(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Si(e,n,t),e=e.sibling;e!==null;)Si(e,n,t),e=e.sibling}var Z=null,Ne=!1;function Ke(e,n,t){for(t=t.child;t!==null;)fa(e,n,t),t=t.sibling}function fa(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount($r,t)}catch{}switch(t.tag){case 5:ne||An(t,n);case 6:var r=Z,l=Ne;Z=null,Ke(e,n,t),Z=r,Ne=l,Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Z.removeChild(t.stateNode));break;case 18:Z!==null&&(Ne?(e=Z,t=t.stateNode,e.nodeType===8?xl(e.parentNode,t):e.nodeType===1&&xl(e,t),Mt(e)):xl(Z,t.stateNode));break;case 4:r=Z,l=Ne,Z=t.stateNode.containerInfo,Ne=!0,Ke(e,n,t),Z=r,Ne=l;break;case 0:case 11:case 14:case 15:if(!ne&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,u=i.destroy;i=i.tag,u!==void 0&&(i&2||i&4)&&gi(t,n,u),l=l.next}while(l!==r)}Ke(e,n,t);break;case 1:if(!ne&&(An(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){A(t,n,o)}Ke(e,n,t);break;case 21:Ke(e,n,t);break;case 22:t.mode&1?(ne=(r=ne)||t.memoizedState!==null,Ke(e,n,t),ne=r):Ke(e,n,t);break;default:Ke(e,n,t)}}function vo(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new mf),n.forEach(function(r){var l=xf.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function xe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=u),r&=~i}if(r=l,r=Q()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yf(r/1960))-r,10e?16:e,qe===null)var r=!1;else{if(e=qe,qe=null,Hr=0,L&6)throw Error(y(331));var l=L;for(L|=4,S=e.current;S!==null;){var i=S,u=i.child;if(S.flags&16){var o=i.deletions;if(o!==null){for(var s=0;sQ()-ou?kn(e,0):uu|=t),ce(e,n)}function wa(e,n){n===0&&(e.mode&1?(n=bt,bt<<=1,!(bt&130023424)&&(bt=4194304)):n=1);var t=le();e=Qe(e,n),e!==null&&(Qt(e,n,t),ce(e,t))}function Cf(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),wa(e,t)}function xf(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),wa(e,t)}var ka;ka=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||se.current)oe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return oe=!1,ff(e,n,t);oe=!!(e.flags&131072)}else oe=!1,I&&n.flags&1048576&&Cs(n,Rr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;yr(e,n),e=n.pendingProps;var l=Gn(n,te.current);Kn(n,t),l=eu(null,n,r,e,l,t);var i=nu();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ae(r)?(i=!0,Mr(n)):i=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Gi(n),l.updater=Jr,n.stateNode=l,l._reactInternals=n,fi(n,r,e,t),n=mi(null,n,r,!0,i,t)):(n.tag=0,I&&i&&Hi(n),re(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(yr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Nf(r),e=_e(r,e),l){case 0:n=pi(null,n,r,e,t);break e;case 1:n=ao(null,n,r,e,t);break e;case 11:n=oo(null,n,r,e,t);break e;case 14:n=so(null,n,r,_e(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),pi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),ao(e,n,r,l,t);case 3:e:{if(ra(n),e===null)throw Error(y(387));r=n.pendingProps,i=n.memoizedState,l=i.element,zs(e,n),Ir(n,r,null,t);var u=n.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},n.updateQueue.baseState=i,n.memoizedState=i,n.flags&256){l=bn(Error(y(423)),n),n=co(e,n,r,t,l);break e}else if(r!==l){l=bn(Error(y(424)),n),n=co(e,n,r,t,l);break e}else for(de=tn(n.stateNode.containerInfo.firstChild),pe=n,I=!0,ze=null,t=Ms(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Zn(),r===l){n=We(e,n,t);break e}re(e,n,r,t)}n=n.child}return n;case 5:return Ds(n),e===null&&si(n),r=n.type,l=n.pendingProps,i=e!==null?e.memoizedProps:null,u=l.children,ri(r,l)?u=null:i!==null&&ri(r,i)&&(n.flags|=32),ta(e,n),re(e,n,u,t),n.child;case 6:return e===null&&si(n),null;case 13:return la(e,n,t);case 4:return Zi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=Jn(n,null,r,t):re(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),oo(e,n,r,l,t);case 7:return re(e,n,n.pendingProps,t),n.child;case 8:return re(e,n,n.pendingProps.children,t),n.child;case 12:return re(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,i=n.memoizedProps,u=l.value,D(Fr,r._currentValue),r._currentValue=u,i!==null)if(Le(i.value,u)){if(i.children===l.children&&!se.current){n=We(e,n,t);break e}}else for(i=n.child,i!==null&&(i.return=n);i!==null;){var o=i.dependencies;if(o!==null){u=i.child;for(var s=o.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=Ae(-1,t&-t),s.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?s.next=s:(s.next=v.next,v.next=s),d.pending=s}}i.lanes|=t,s=i.alternate,s!==null&&(s.lanes|=t),ai(i.return,t,n),o.lanes|=t;break}s=s.next}}else if(i.tag===10)u=i.type===n.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(y(341));u.lanes|=t,o=u.alternate,o!==null&&(o.lanes|=t),ai(u,t,n),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===n){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}re(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Kn(n,t),l=Se(l),r=r(l),n.flags|=1,re(e,n,r,t),n.child;case 14:return r=n.type,l=_e(r,n.pendingProps),l=_e(r.type,l),so(e,n,r,l,t);case 15:return ea(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:_e(r,l),yr(e,n),n.tag=1,ae(r)?(e=!0,Mr(n)):e=!1,Kn(n,t),Ts(n,r,l),fi(n,r,l,t),mi(null,n,r,!0,e,t);case 19:return ia(e,n,t);case 22:return na(e,n,t)}throw Error(y(156,n.tag))};function Sa(e,n){return Yo(e,n)}function _f(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,n,t,r){return new _f(e,n,t,r)}function fu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nf(e){if(typeof e=="function")return fu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Li)return 11;if(e===Mi)return 14}return 2}function on(e,n){var t=e.alternate;return t===null?(t=we(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function kr(e,n,t,r,l,i){var u=2;if(r=e,typeof e=="function")fu(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Mn:return Sn(t.children,l,i,n);case Ti:u=8,l|=8;break;case Ol:return e=we(12,t,n,l|2),e.elementType=Ol,e.lanes=i,e;case Il:return e=we(13,t,n,l),e.elementType=Il,e.lanes=i,e;case jl:return e=we(19,t,n,l),e.elementType=jl,e.lanes=i,e;case Lo:return nl(t,l,i,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Po:u=10;break e;case To:u=9;break e;case Li:u=11;break e;case Mi:u=14;break e;case Ye:u=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=we(u,t,n,l),n.elementType=e,n.type=r,n.lanes=i,n}function Sn(e,n,t,r){return e=we(7,e,r,n),e.lanes=t,e}function nl(e,n,t,r){return e=we(22,e,r,n),e.elementType=Lo,e.lanes=t,e.stateNode={isHidden:!1},e}function Dl(e,n,t){return e=we(6,e,null,n),e.lanes=t,e}function Rl(e,n,t){return n=we(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function zf(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pl(0),this.expirationTimes=pl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function du(e,n,t,r,l,i,u,o,s){return e=new zf(e,n,t,o,s),n===1?(n=1,i===!0&&(n|=8)):n=0,i=we(3,null,null,n),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gi(i),e}function Pf(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_a)}catch(e){console.error(e)}}_a(),Co.exports=ve;var Rf=Co.exports;const Of=Pa(Rf);export{Of as default}; diff --git a/Frontend/assets/bootstrap-BtdKyxwL.js b/Frontend/assets/bootstrap-BtdKyxwL.js deleted file mode 100644 index 6ed0e95..0000000 --- a/Frontend/assets/bootstrap-BtdKyxwL.js +++ /dev/null @@ -1,15 +0,0 @@ -import{r as d}from"./__federation_shared_react-BChr2Uhh.js";import{r as _}from"./__federation_shared_react-dom-9lRLKTWe.js";import{useState as x,useEffect as m,useMemo as y,x as v,define as g}from"./__federation_expose_Dim-Ezem4zve.js";var l={exports:{}},c={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var E=d,R=Symbol.for("react.element"),b=Symbol.for("react.fragment"),j=Object.prototype.hasOwnProperty,O=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0};function f(r,t,o){var e,n={},s=null,i=null;o!==void 0&&(s=""+o),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(e in t)j.call(t,e)&&!$.hasOwnProperty(e)&&(n[e]=t[e]);if(r&&r.defaultProps)for(e in t=r.defaultProps,t)n[e]===void 0&&(n[e]=t[e]);return{$$typeof:R,type:r,key:s,ref:i,props:n,_owner:O.current}}c.Fragment=b;c.jsx=f;c.jsxs=f;l.exports=c;var u=l.exports,p,a=_;p=a.createRoot,a.hydrateRoot;const h=function({children:r,initialstate:t=0}){const[o,e]=x(parseInt(t),"test-state");m(()=>(console.log("Button mounted"),()=>{console.log("Button unmounted")}),[],"test-mount-effect"),m(()=>{console.log("count effect triggered")},[o()],"test-effect");const n=y(()=>{const s=o()*2;return console.log("memo calculation triggered:",s),s},[o()],"test-memo");return v` - - `};g({tag:"my-button",component:h});const k=()=>u.jsx("div",{children:u.jsx("my-button",{id:"aaa",initialstate:"33",children:"positive-intentions"})}),S=document.getElementById("app"),B=p(S);B.render(u.jsx(k,{})); diff --git a/Frontend/assets/index-DhtP0bqX.js b/Frontend/assets/index-DhtP0bqX.js deleted file mode 100644 index 90a1f42..0000000 --- a/Frontend/assets/index-DhtP0bqX.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__fileDeps=["assets/bootstrap-BtdKyxwL.js","assets/__federation_shared_react-BChr2Uhh.js","assets/__federation_shared_react-dom-9lRLKTWe.js","assets/__federation_expose_Dim-Ezem4zve.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -const f="modulepreload",h=function(c){return"/"+c},l={},p=function(a,s,E){let i=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),n=r?.nonce||r?.getAttribute("nonce");i=Promise.all(s.map(e=>{if(e=h(e),e in l)return;l[e]=!0;const o=e.endsWith(".css"),u=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${u}`))return;const t=document.createElement("link");if(t.rel=o?"stylesheet":f,o||(t.as="script",t.crossOrigin=""),t.href=e,n&&t.setAttribute("nonce",n),document.head.appendChild(t),o)return new Promise((d,m)=>{t.addEventListener("load",d),t.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${e}`)))})}))}return i.then(()=>a()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})};p(()=>import("./bootstrap-BtdKyxwL.js"),__vite__mapDeps([0,1,2,3])); diff --git a/Frontend/assets/index-DqUEHiHE.js b/Frontend/assets/index-DqUEHiHE.js new file mode 100644 index 0000000..ca9a90a --- /dev/null +++ b/Frontend/assets/index-DqUEHiHE.js @@ -0,0 +1 @@ +const f="modulepreload",h=function(c){return"/"+c},i={},p=function(a,s,_){let l=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),n=r?.nonce||r?.getAttribute("nonce");l=Promise.all(s.map(e=>{if(e=h(e),e in i)return;i[e]=!0;const o=e.endsWith(".css"),u=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${u}`))return;const t=document.createElement("link");if(t.rel=o?"stylesheet":f,o||(t.as="script",t.crossOrigin=""),t.href=e,n&&t.setAttribute("nonce",n),document.head.appendChild(t),o)return new Promise((d,m)=>{t.addEventListener("load",d),t.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${e}`)))})}))}return l.then(()=>a()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})};p(()=>Promise.resolve().then(()=>v),void 0);const v=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})); diff --git a/Frontend/assets/vite-remoteEntry.js b/Frontend/assets/vite-remoteEntry.js index 339a0bb..14cad1e 100644 --- a/Frontend/assets/vite-remoteEntry.js +++ b/Frontend/assets/vite-remoteEntry.js @@ -1 +1 @@ -const d=new Set(["Module","__esModule","default","_export_sfc"]);let a={"./Dim":()=>(l([],!1,"./Dim"),f("./__federation_expose_Dim-BcErRfdZ.js").then(e=>Object.keys(e).every(n=>d.has(n))?()=>e.default:()=>e))};const c={},l=(e,n,i)=>{const o=import.meta.url;if(typeof o>"u"){console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');return}const _=o.substring(0,o.lastIndexOf("vite-remoteEntry.js"));e.forEach(r=>{const t=_+r;if(!(t in c))if(c[t]=!0,n){const s="css__dim__"+i;window[s]==null&&(window[s]=[]),window[s].push(t)}else{const s=document.head.appendChild(document.createElement("link"));s.href=t,s.rel="stylesheet"}})};async function f(e){return import(e)}const h=e=>{if(!a[e])throw new Error("Can not find remote module "+e);return a[e]()},u=e=>{globalThis.__federation_shared__=globalThis.__federation_shared__||{},Object.entries(e).forEach(([n,i])=>{const o=Object.keys(i)[0],_=Object.values(i)[0],r=_.scope||"default";globalThis.__federation_shared__[r]=globalThis.__federation_shared__[r]||{};const t=globalThis.__federation_shared__[r];(t[n]=t[n]||{})[o]=_})};export{l as dynamicLoadingCss,h as get,u as init}; +const d=new Set(["Module","__esModule","default","_export_sfc"]);let a={"./Dim":()=>(l([],!1,"./Dim"),f("./__federation_expose_Dim-DWu30WY1.js").then(e=>Object.keys(e).every(n=>d.has(n))?()=>e.default:()=>e))};const c={},l=(e,n,i)=>{const o=import.meta.url;if(typeof o>"u"){console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');return}const _=o.substring(0,o.lastIndexOf("vite-remoteEntry.js"));e.forEach(r=>{const t=_+r;if(!(t in c))if(c[t]=!0,n){const s="css__dim__"+i;window[s]==null&&(window[s]=[]),window[s].push(t)}else{const s=document.head.appendChild(document.createElement("link"));s.href=t,s.rel="stylesheet"}})};async function f(e){return import(e)}const h=e=>{if(!a[e])throw new Error("Can not find remote module "+e);return a[e]()},u=e=>{globalThis.__federation_shared__=globalThis.__federation_shared__||{},Object.entries(e).forEach(([n,i])=>{const o=Object.keys(i)[0],_=Object.values(i)[0],r=_.scope||"default";globalThis.__federation_shared__[r]=globalThis.__federation_shared__[r]||{};const t=globalThis.__federation_shared__[r];(t[n]=t[n]||{})[o]=_})};export{l as dynamicLoadingCss,h as get,u as init}; diff --git a/Frontend/coverage-report/AddItemForm.js.html b/Frontend/coverage-report/AddItemForm.js.html new file mode 100644 index 0000000..4094638 --- /dev/null +++ b/Frontend/coverage-report/AddItemForm.js.html @@ -0,0 +1,217 @@ + + + + + + Code coverage report for AddItemForm.js + + + + + + + + + +
+
+

All files AddItemForm.js

+
+ +
+ 0% + Statements + 0/13 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 0% + Functions + 0/4 +
+ + +
+ 0% + Lines + 0/13 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
const AddItemForm = ({ onAdd }, { useState, useStyle, html, css }) => {
+    console.log("AddItemForm", onAdd);
+    const [inputValue, setInputValue] = useState("");
+ 
+    useStyle(css`
+        button {
+        background-color: #029cfd;
+        border: none;
+        border-radius: 5px;
+        color: white;
+        padding: 5px 10px;
+        text-align: center;
+        text-decoration: none;
+        display: inline-block;
+        cursor: pointer;
+        }
+    `);
+ 
+    const handleInput = (e) => {
+        e.preventDefault();
+        setInputValue(e.target.value);
+    };
+ 
+    const clearInput = () => {
+        setInputValue("");
+    };
+ 
+    const addTodo = () => {
+        onAdd(inputValue);
+        clearInput();
+    };
+ 
+    return html`
+    <input
+        type="text"
+        placeholder="Add todo"
+        .value="${inputValue}"
+        @change="${handleInput}"
+    />
+    <button @click="${addTodo}">Add</button>
+    <button @click="${clearInput}">Clear</button>
+  `;
+};
+ 
+export default AddItemForm;
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/Frontend/coverage-report/Button.ts.html b/Frontend/coverage-report/Button.ts.html index 299472f..591a9e1 100644 --- a/Frontend/coverage-report/Button.ts.html +++ b/Frontend/coverage-report/Button.ts.html @@ -166,7 +166,7 @@

All files Button.ts

+ + + + + + \ No newline at end of file diff --git a/Frontend/coverage-report/TodoList.js.html b/Frontend/coverage-report/TodoList.js.html new file mode 100644 index 0000000..00f6496 --- /dev/null +++ b/Frontend/coverage-report/TodoList.js.html @@ -0,0 +1,175 @@ + + + + + + Code coverage report for TodoList.js + + + + + + + + + +
+
+

All files TodoList.js

+
+ +
+ 0% + Statements + 0/9 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 0% + Functions + 0/4 +
+ + +
+ 0% + Lines + 0/9 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import ListItem from "./ListItem.js";
+ 
+const TodoList = ({ todos, onRemove }, { useScope, useEffect, html }) => {
+    console.log("todo list render", todos);
+ 
+    useScope({
+        "list-item": ListItem,
+    });
+ 
+    useEffect(() => {
+        console.log("todos list updated");
+    }, [todos]);
+ 
+    return html`
+        <ul>
+            ${todos.map((todo, index) => {
+        const handleRemove = () => {
+            onRemove(index);
+        };
+ 
+        return html`
+                    <list-item
+                        .props="${{ todo, onRemove: handleRemove }}"
+                    ></list-item>
+                `;
+    })}
+        </ul>
+    `;
+};
+ 
+export default TodoList;
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/Frontend/coverage-report/dim.ts.html b/Frontend/coverage-report/dim.ts.html index 184b94f..dc2b0b5 100644 --- a/Frontend/coverage-report/dim.ts.html +++ b/Frontend/coverage-report/dim.ts.html @@ -25,28 +25,28 @@

All files dim.ts

0% Statements - 0/44 + 0/69
0% Branches - 0/19 + 0/26
0% Functions - 0/12 + 0/19
0% Lines - 0/41 + 0/67
@@ -170,228 +170,450 @@

All files dim.ts

105 106 107 -108  +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173 +174 +175 +176 +177 +178 +179 +180 +181 +182  +    -      +            -        -  +  +  +  +  +      +  +  +  +          +  +        +  +        +            +  +  +  +  +  +  +  +  +  +          +  +  +  +  +  +  +      +        +  +  +            +  +      +        +          +        +  +  +        +        +    +  +          +  +  +  +  +  +  +    +  +  +  +  +              +        +  +              +  +  +        +  +            -  +        +      +  +  +      -      +  +      +  +    - 
import { LitElement, html as litHtml } from 'lit';
+ 
+ 
import { LitElement } from "lit";
+import { html, css, unsafeCSS } from "./mini-lit";
  
-let currentComponent = {};
-let hookIndex = 0;
+let currentInstance = null;
  
-export const html = litHtml;
+function setCurrentInstance(instance) {
+  currentInstance = instance;
+}
  
-export function useState(initialState) {
-    // Define a unique property name for each state variable
-    const propName = `state-${hookIndex++}`;
+function getCurrentInstance() {
+  if (!currentInstance) {
+    throw new Error("Hooks can only be called inside a component.");
+  }
+  return currentInstance;
+}
  
-    currentComponent[propName] = currentComponent?.[propName] ?? initialState;
+export function define({ tag, component: CustomFunctionalComponent }) {
+  class DimComponent extends LitElement {
+    static get properties() {
+      return {
+        props: {type: Object},
+      };
+    }
+    constructor() {
+      super();
+      this.hookIndex = 0;
+      this.hooks = {};
+    }
  
-    const setState = (newState = undefined) => {
-        const currentValue = currentComponent?.[propName];
-        const newValue = typeof newState === 'function' ? newState(currentValue) : newState;
+    render() {
+      // Reset hook index on every render
+      this.hookIndex = 0;
  
-        currentComponent[propName] = newValue;
-        currentComponent?.requestUpdate?.();
-    };
+      // Set the current instance context
+      setCurrentInstance(this);
  
-    return [() => currentComponent[propName], setState];
+      // Get all attributes as props
+      const attributes = Array.from(this.attributes).reduce((acc, attr) => {
+        acc[attr.name] = attr.value;
+        return acc;
+      }, {});
+ 
+      console.log("attributes", this.attributes, this.props);
+      this.props = this.props || {};
+ 
+      const sharedDependencies = {
+        useState,
+        useEffect,
+        useMemo,
+        useScope,
+        useStyle,
+        html,
+        css,
+      };
+ 
+      // Call the functional component
+      const result = CustomFunctionalComponent(
+        {
+          ...attributes,
+          ...this.props,
+          children: this.innerHTML,
+        },
+        sharedDependencies
+      );
+ 
+      // Clear the current instance context
+      setCurrentInstance(null);
+ 
+      return result;
+    }
+  }
+ 
+  window.customElements.define(tag, DimComponent);
 }
  
-export function useEffect(effectCallback, dependencies) {
-    console.log('useEffect called updated')
-    const effectPropName = `effect-${hookIndex++}`;
+export function useState(initialState) {
+  const component = getCurrentInstance();
+  const hookIndex = component.hookIndex++;
+  const hookName = `hook-${hookIndex}`;
  
-    // Initialize or update the dependencies property
-    const hasChangedDependencies = currentComponent[effectPropName] ? 
-        !dependencies.every((dep, i) => dep === currentComponent[effectPropName].dependencies[i]) : 
-        true;
-    
-    if (hasChangedDependencies) {
- 
-        // Update dependencies
-        currentComponent[effectPropName] = {
-            dependencies,
-            cleanup: undefined, // Placeholder for cleanup function
-        };
- 
-        // Call the effect callback and store any cleanup function
-        const cleanup = effectCallback();
-        if (typeof cleanup === 'function') {
-            currentComponent[effectPropName].cleanup = cleanup;
-        }
+  if (!component.hooks[hookName]) {
+    component.hooks[hookName] = initialState;
+  }
+ 
+  const setState = (newState) => {
+    const value =
+      typeof newState === "function"
+        ? newState(component.hooks[hookName])
+        : newState;
+    component.hooks[hookName] = value;
+    component.requestUpdate();
+  };
+ 
+  return [component.hooks[hookName], setState];
+}
+ 
+export function useEffect(effect, dependencies) {
+  const component = getCurrentInstance();
+  const hookIndex = component.hookIndex++;
+  const hookName = `hook-${hookIndex}`;
+ 
+  const prevDeps = component.hooks[hookName]?.dependencies;
+  const hasChanged =
+    !prevDeps || dependencies.some((dep, i) => dep !== prevDeps[i]);
+ 
+  if (hasChanged) {
+    if (component.hooks[hookName]?.cleanup) {
+      component.hooks[hookName].cleanup();
     }
+    const cleanup = effect();
+    component.hooks[hookName] = { dependencies, cleanup };
+  }
+ 
+  // // Add event listener to handle unmount
+  // component.addEventListener("disconnectedCallback", () => {
+  //   if (component.hooks[hookName]?.cleanup) {
+  //     component.hooks[hookName].cleanup();
+  //   }
+  // });
  
-    // Integrate with LitElement lifecycle for cleanup
-    currentComponent.addController({
-        hostDisconnected() {
-            if (currentComponent[effectPropName]?.cleanup) {
-                currentComponent[effectPropName].cleanup();
-            }
+  component.addController({
+    hostDisconnected() {
+        if (component.hooks[hookName]?.cleanup) {
+            component.hooks[hookName].cleanup();
         }
-    });
+    }
+});
 }
  
 export function useMemo(calculation, dependencies) {
-    const memoPropName = `memo-${hookIndex++}`;
- 
-    // Check if the memoized value and dependencies exist
-    if (!currentComponent[memoPropName]) {
-        currentComponent[memoPropName] = {
-            dependencies: [],
-            value: undefined,
-        };
-    }
+  const component = getCurrentInstance();
+  const hookIndex = component.hookIndex++;
+  const hookName = `hook-${hookIndex}`;
  
-    const hasChangedDependencies = !dependencies.every((dep, index) => dep === currentComponent[memoPropName].dependencies[index]);
+  const prevDeps = component.hooks[hookName]?.dependencies;
+  const hasChanged =
+    !prevDeps || dependencies.some((dep, i) => dep !== prevDeps[i]);
  
-    // If dependencies have changed or this is the first run, recalculate the memoized value
-    if (hasChangedDependencies) {
-        currentComponent[memoPropName].value = calculation();
-        currentComponent[memoPropName].dependencies = dependencies;
-    }
+  if (hasChanged) {
+    component.hooks[hookName] = {
+      value: calculation(),
+      dependencies,
+    };
+  }
  
-    return currentComponent[memoPropName].value;
+  return component.hooks[hookName].value;
 }
  
-export function define({ tag, component: CustomFuntionalComponent }) {
-    class CustomComponent extends LitElement {
-        render() {
-            // get all attributes
-            const attributes = Array.from(this.attributes).reduce((acc, attr) => {
-                acc[attr.name] = attr.value;
-                return acc;
-            }, {});
-            const functionalComponent = () => CustomFuntionalComponent({
-                ...attributes,
-                children: this.innerHTML
-            });
- 
-            currentComponent = this;
-            hookIndex = 0;
- 
-            return functionalComponent();
-        }
+export function useScope(elements) {
+  Object.keys(elements).forEach((key) => {
+    const elementClass = elements[key];
+ 
+    // Define the custom element with a unique tag per component instance
+    if (!customElements.get(key)) {
+      define({ tag: key, component: elementClass });
     }
-    // window.customElements.define(tag, CustomComponent);
-    // replace if already defined or define as normal
-    if (window.customElements.get(tag)) {
-        // remove existing definition and redefine
-        console.info(`Component ${tag} already defined, unable to redefine. you need to refresh if you want to see changes in the ${tag} component`);
-    } else {
-        window.customElements.define(tag, CustomComponent);
+  });
+}
+ 
+export function useStyle(styles) {
+  const component = getCurrentInstance();
+ 
+  if (!component._stylesApplied) {
+    component._stylesApplied = true;
+ 
+    // Apply the styles to the component
+    const styleElement = document.createElement("style");
+    styleElement.textContent = unsafeCSS(styles).cssText;
+    component.shadowRoot.appendChild(styleElement);
+  }
+}
+ 
+export const useLazyScope = (tag, promise) => {
+  promise.then((module) => {
+    const elementClass = new Function(`return ${module}`)();
+ 
+    if (!customElements.get(tag)) {
+      define({ tag, component: elementClass });
     }
-}
+ }); +}; + 
+ + + + + + \ No newline at end of file diff --git a/Frontend/coverage-report/todo.js.html b/Frontend/coverage-report/todo.js.html new file mode 100644 index 0000000..d288743 --- /dev/null +++ b/Frontend/coverage-report/todo.js.html @@ -0,0 +1,406 @@ + + + + + + Code coverage report for todo.js + + + + + + + + + +
+
+

All files todo.js

+
+ +
+ 0% + Statements + 0/21 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 0% + Functions + 0/8 +
+ + +
+ 0% + Lines + 0/20 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import { html, css, expandSelfClosingTags } from "./mini-lit.js";
+import {
+    define,
+    useState,
+    useEffect,
+    useMemo,
+    useScope,
+    useStyle,
+    lazy,
+    useLazy,
+    useLazyScope,
+} from "./dim.ts";
+ 
+import AddItemForm from "./AddItemForm.js";
+import TodoList from "./TodoList.js";
+ 
+// export const Button = (
+//     { children, initialstate = 3 },
+//     { useState, useEffect, useMemo, useStyle, html, css }
+// ) => {
+//     const [count, setCount] = useState(parseInt(initialstate));
+ 
+//     const someCalculation = useMemo(() => {
+//         const result = count * 2;
+//         console.log("memo calculation triggered:", result);
+//         return result;
+//     }, [count]);
+ 
+//     const updateCount = () => {
+//         setCount(count + 1);
+//     };
+ 
+//     return html`
+//     <button @click="${updateCount}">
+//         ${children} ${count} ${someCalculation}
+//     </button>
+//   `;
+// };
+ 
+// const NewButton = new Function(`return ${Button.toString()}`)();
+ 
+const Todo = ({ }, {
+    useState,
+    useEffect,
+    useMemo,
+    useScope,
+    html,
+}) => {
+    // const LazyButton = useLazyScope(
+    //     "lazy-button",
+    //     new Promise((resolve) => {
+    //         setTimeout(() => {
+    //             resolve(Button.toString());
+    //         }, 2000);
+    //     })
+    // );
+ 
+    const [todos, setTodos] = useState([]);
+ 
+    useScope({
+        "add-item-form": AddItemForm,
+        "todo-list": TodoList,
+        // "some-button": Button,
+        // "new-button": NewButton,
+        // "lazy-button": LazyButton,
+    });
+ 
+    useEffect(() => {
+        console.log("Todo mounted");
+        return () => {
+            console.log("Todo unmounted");
+        };
+    }, []);
+ 
+    useEffect(() => {
+        console.log("Todos changed");
+    }, [todos]);
+ 
+    const numberOfTodoItems = useMemo(() => {
+        console.log("memo calculation triggered");
+        return todos.length;
+    }, [todos]);
+ 
+    const addTodo = (inputValue) => {
+        console.log("adding new item");
+        setTodos([...todos, inputValue]);
+    };
+ 
+    const removeTodo = (index) => {
+        console.log("removing item", index);
+        setTodos(todos.filter((_, i) => i !== index));
+    };
+ 
+    console.log("rendering todo app", todos);
+ 
+    return html`
+    <div>
+        <h1>Todo App</h1>
+        <add-item-form .props="${{ onAdd: addTodo }}"></add-item-form>
+        <p>Number of todo items: ${numberOfTodoItems}</p>
+        <todo-list .props="${{ todos, onRemove: removeTodo }}"></todo-list>
+    </div>
+    `;
+};
+ 
+// define({ tag: "todo-app", component: Todo }); // commented out because it is defined in storybook preview.js
+export default Todo;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/Frontend/dim.png b/Frontend/dim.png new file mode 100644 index 0000000..f2c1f56 Binary files /dev/null and b/Frontend/dim.png differ diff --git a/Frontend/iframe.html b/Frontend/iframe.html index 48cbd15..0368f49 100644 --- a/Frontend/iframe.html +++ b/Frontend/iframe.html @@ -348,7 +348,7 @@ window['DOCS_OPTIONS'] = {"defaultName":"Docs","autodocs":"tag"};