From 63a573c2f1023792aaef91c4fdd0003ddafddbd3 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 19 Jan 2024 14:53:53 +0200 Subject: [PATCH] Update dependency uhtml to v4.4.3 (#574) * Update dependency uhtml to v4.4.3 * Adding back the json created... --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] --- 11ty/js/index.js | 4 ++-- docs/js/index.js | 4 ++-- package-lock.json | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/11ty/js/index.js b/11ty/js/index.js index 7358526..46e4061 100644 --- a/11ty/js/index.js +++ b/11ty/js/index.js @@ -1,3 +1,3 @@ -const{isArray:e}=Array,{getPrototypeOf:t,getOwnPropertyDescriptor:n}=Object,s=[],l=()=>document.createRange(),r=(e,t,n)=>(e.set(t,n),n),{setPrototypeOf:i}=Object;let a;var o=(e,t,n)=>(a||(a=l()),n?a.setStartAfter(e):a.setStartBefore(e),a.setEndAfter(t),a.deleteContents(),e);const c=({firstChild:e,lastChild:t},n)=>o(e,t,n);let d=!1;const h=(e,t)=>d&&11===e.nodeType?1/t<0?t?c(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,p=e=>document.createComment(e);class u extends((e=>{function t(e){return i(e,new.target.prototype)}return t.prototype=e.prototype,t})(DocumentFragment)){#e=p("<>");#t=p("");#n=s;constructor(e){super(e),this.replaceChildren(this.#e,...e.childNodes,this.#t),d=!0}get firstChild(){return this.#e}get lastChild(){return this.#t}get parentNode(){return this.#e.parentNode}remove(){c(this,!1)}replaceWith(e){c(this,!0).replaceWith(e)}valueOf(){let{firstChild:e,lastChild:t,parentNode:n}=this;if(n===this)this.#n===s&&(this.#n=[...this.childNodes]);else{if(n)for(this.#n=[e];e!==t;)this.#n.push(e=e.nextSibling);this.replaceChildren(...this.#n)}return this}}const m=(e,t,n)=>e.setAttribute(t,n),f=(e,t)=>e.removeAttribute(t);let g;const b=(t,n,s)=>{s=s.slice(1),g||(g=new WeakMap);const l=g.get(t)||r(g,t,{});let i=l[s];return i&&i[0]&&t.removeEventListener(s,...i),i=e(n)?n:[n,!1],l[s]=i,i[0]&&t.addEventListener(s,...i),n};function y(e,t){let{n:n}=this,s=!1;switch(typeof t){case"object":if(null!==t){(n||e).replaceWith(this.n=t.valueOf());break}case"undefined":s=!0;default:e.data=s?"":t,n&&(this.n=null,n.replaceWith(e))}return t}const C=(e,t,n)=>e[n]=t,$=(e,t,n)=>C(e,t,n.slice(1)),w=(e,t,n)=>null==t?(f(e,n),t):C(e,t,n),v=(e,t)=>("function"==typeof t?t(e):t.current=e,t),x=(e,t,n)=>(null==t?f(e,n):m(e,n,t),t),k=(e,t,n)=>(e.toggleAttribute(n.slice(1),t),t),E=(e,t,n)=>{const{length:l}=t;if(e.data=`[${l}]`,l)return((e,t,n,s,l)=>{const r=n.length;let i=t.length,a=r,o=0,c=0,d=null;for(;ol-c){const r=s(t[o],0);for(;c{for(const n in t){const s=t[n],l="role"===n?n:`aria-${n}`;null==s?f(e,l):m(e,l,s)}return t}],["class",(e,t)=>w(e,t,null==t?"class":"className")],["data",(e,t)=>{const{dataset:n}=e;for(const e in t)null==t[e]?delete n[e]:n[e]=t[e];return t}],["ref",v],["style",(e,t)=>null==t?w(e,t,"style"):C(e.style,t,"cssText")]]),S=(e,s,l)=>{switch(s[0]){case".":return $;case"?":return k;case"@":return b;default:return l||"ownerSVGElement"in e?"ref"===s?v:x:N.get(s)||(s in e?s.startsWith("on")?C:((e,s)=>{let l;do{l=n(e,s)}while(!l&&(e=t(e)));return l})(e,s)?.set?w:x:x)}},j=(e,t)=>(e.textContent=null==t?"":t,t),O=(e,t,n)=>({p:e,u:t,n:n}),I=e=>({s:e,t:null,n:null,d:s}),A=(e,t)=>t.reduceRight(W,e),W=(e,t)=>e.childNodes[t];var T=e=>(t,n)=>{const{f:l,e:r,d:i}=e(t,n),a=l.cloneNode(!0);let o,c,d=r===s?s:[];for(let e=0;e({n:e,d:t}))(i?a.firstChild:new u(a),d)};const B=/^(?:plaintext|script|style|textarea|title|xmp)$/i,L=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,M=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,D=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,V=/[\x01\x02]/g;let Z,J,_=document.createElement("template");var P=(e,t)=>{if(t)return Z||(Z=document.createElementNS("http://www.w3.org/2000/svg","svg"),J=l(),J.selectNodeContents(Z)),J.createContextualFragment(e);_.innerHTML=e;const{content:n}=_;return _=_.cloneNode(!1),n};const R=e=>{const t=[];let n;for(;n=e.parentNode;)t.push(t.indexOf.call(n.childNodes,e)),e=n;return t},z=()=>document.createTextNode(""),U=(t,n,l)=>{const i=P(((e,t,n)=>{let s=0;return e.join("").trim().replace(M,((e,t,s,l)=>`<${t}${s.replace(D,"=$2$1").trimEnd()}${l?n||L.test(t)?" /":`>`)).replace(V,(e=>""===e?`\x3c!--${t+s++}--\x3e`:t+s++))})(t,G,l),l),{length:a}=t;let o=s;if(a>1){const t=[],s=document.createTreeWalker(i,129);let r=0,c=`${G}${r++}`;for(o=[];r(t,n)=>F.get(t)||U(t,n,e);const q=T(H(!1)),K=T(H(!0)),Q=({u:e})=>e===E?I([]):e===y?I(s):null,X=(e,{s:t,t:n,v:s})=>{let l=0,{d:r,s:i}=e;if(e.t!==n){const{n:l,d:a}=(t?K:q)(n,s);e.t=n,e.n=l,e.d=r=a,s.length&&(e.s=i=a.map(Q))}for(;l{let n=0,{length:l}=t;for(ldocument.createRange(),r=(e,t,n)=>(e.set(t,n),n),{setPrototypeOf:i}=Object;let a;var o=(e,t,n)=>(a||(a=l()),n?a.setStartAfter(e):a.setStartBefore(e),a.setEndAfter(t),a.deleteContents(),e);const c=({firstChild:e,lastChild:t},n)=>o(e,t,n);let d=!1;const h=(e,t)=>d&&11===e.nodeType?1/t<0?t?c(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,u=e=>document.createComment(e);class p extends((e=>{function t(e){return i(e,new.target.prototype)}return t.prototype=e.prototype,t})(DocumentFragment)){#e=u("<>");#t=u("");#n=s;constructor(e){super(e),this.replaceChildren(this.#e,...e.childNodes,this.#t),d=!0}get firstChild(){return this.#e}get lastChild(){return this.#t}get parentNode(){return this.#e.parentNode}remove(){c(this,!1)}replaceWith(e){c(this,!0).replaceWith(e)}valueOf(){let{firstChild:e,lastChild:t,parentNode:n}=this;if(n===this)this.#n===s&&(this.#n=[...this.childNodes]);else{if(n)for(this.#n=[e];e!==t;)this.#n.push(e=e.nextSibling);this.replaceChildren(...this.#n)}return this}}const m=(e,t,n)=>e.setAttribute(t,n),f=(e,t)=>e.removeAttribute(t);let g;const b=(t,n,s)=>{s=s.slice(1),g||(g=new WeakMap);const l=g.get(t)||r(g,t,{});let i=l[s];return i&&i[0]&&t.removeEventListener(s,...i),i=e(n)?n:[n,!1],l[s]=i,i[0]&&t.addEventListener(s,...i),n};function y(e,t){let{n:n}=this,s=!1;switch(typeof t){case"object":if(null!==t){(n||e).replaceWith(this.n=t.valueOf());break}case"undefined":s=!0;default:e.data=s?"":t,n&&(this.n=null,n.replaceWith(e))}return t}const C=(e,t,n)=>e[n]=t,$=(e,t,n)=>C(e,t,n.slice(1)),w=(e,t,n)=>null==t?(f(e,n),t):C(e,t,n),v=(e,t)=>("function"==typeof t?t(e):t.current=e,t),x=(e,t,n)=>(null==t?f(e,n):m(e,n,t),t),k=(e,t,n)=>(e.toggleAttribute(n.slice(1),t),t),E=(e,t,n)=>{const{length:l}=t;if(e.data=`[${l}]`,l)return((e,t,n,s,l)=>{const r=n.length;let i=t.length,a=r,o=0,c=0,d=null;for(;ol-c){const r=s(t[o],0);for(;c{for(const n in t){const s=t[n],l="role"===n?n:`aria-${n}`;null==s?f(e,l):m(e,l,s)}return t}],["class",(e,t)=>w(e,t,null==t?"class":"className")],["data",(e,t)=>{const{dataset:n}=e;for(const e in t)null==t[e]?delete n[e]:n[e]=t[e];return t}],["ref",v],["style",(e,t)=>null==t?w(e,t,"style"):C(e.style,t,"cssText")]]),S=(e,s,l)=>{switch(s[0]){case".":return $;case"?":return k;case"@":return b;default:return l||"ownerSVGElement"in e?"ref"===s?v:x:N.get(s)||(s in e?s.startsWith("on")?C:((e,s)=>{let l;do{l=n(e,s)}while(!l&&(e=t(e)));return l})(e,s)?.set?w:x:x)}},O=(e,t)=>(e.textContent=null==t?"":t,t),j=(e,t,n)=>({p:e,u:t,n:n}),I=e=>({t:null,n:null,d:s,s:e}),A=(e,t)=>t.reduceRight(W,e),W=(e,t)=>e.childNodes[t];var T=e=>(t,n)=>{const{f:l,e:r,d:i}=e(t,n),a=l.cloneNode(!0);let o=s,c=s;if(r!==s){o=[],c=[];for(let e,t,n=0;n]*?)(\/?)>/g,L=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,V=/[\x01\x02]/g;let Z,J,_=document.createElement("template");var P=(e,t)=>{if(t)return Z||(Z=document.createElementNS("http://www.w3.org/2000/svg","svg"),J=l(),J.selectNodeContents(Z)),J.createContextualFragment(e);_.innerHTML=e;const{content:n}=_;return _=_.cloneNode(!1),n};const R=e=>{const t=[];let n;for(;n=e.parentNode;)t.push(t.indexOf.call(n.childNodes,e)),e=n;return t},z=()=>document.createTextNode(""),U=(t,n,l)=>{const i=P(((e,t,n)=>{let s=0;return e.join("").trim().replace(D,((e,t,s,l)=>`<${t}${s.replace(L,"=$2$1").trimEnd()}${l?n||B.test(t)?" /":`>`)).replace(V,(e=>""===e?`\x3c!--${t+s++}--\x3e`:t+s++))})(t,G,l),l),{length:a}=t;let o=s;if(a>1){const t=[],s=document.createTreeWalker(i,129);let r=0,c=`${G}${r++}`;for(o=[];r(t,n)=>F.get(t)||U(t,n,e);const{assign:q}=Object,K=T(H(!1)),Q=T(H(!0)),X=(e,{s:t,t:n,v:l})=>{e.t!==n&&q(e,(t?Q:K)(n,l));for(let{d:t,s:n}=e,r=0;r{let n=0,{length:l}=t;for(l(t,...n)=>new ee(e,t,n))(!1),se=(e,t)=>{const n=e.name.toUpperCase(),s=t.name.toUpperCase();let l=0;return n>s?l=1:n{e.store={component:[],plugin:[],module:[],template:[]},t.j4.forEach((t=>{t.locked&&1===t.locked||0===t.protected&&e.store[t.type].push({name:t.name,folder:t.folder,clientId:t.client_id,enabled:t.enabled})})),e.store.component=e.store.component.sort(se),e.store.plugin=e.store.plugin.sort(se),e.store.module=e.store.module.sort(se),e.store.template=e.store.template.sort(se)},re=async e=>{const{configure:t,BlobReader:n,BlobWriter:s,ZipReader:l,ZipWriter:r}=await import("./zip.7qoWLxoQ.js");let i;t({workerScriptsPath:"/js/"}),e.writer=new s("application/zip"),e.ZipWriter=new r(e.writer);const a=[],o={},c=e.data.files;Object.keys(c).map((e=>o[e]=c[e]));const d=ie(e.store);o["script.php"]=e.data.files["script.php"].replace("/**{{replacement}}**/",d),Object.keys(o).map((t=>a.push((async(e,t,n,s)=>{const l=new Blob([t],{type:"text/plain"});await n.ZipWriter.add(e,new s(l))})(`${t}`,o[t],e,n)))),await Promise.all(a);const h=new l(new n(await e.ZipWriter.close()));try{await h.close(),i=URL.createObjectURL(await e.writer.getData()),e.ZipWriter=null;let t=document.createElement("a");t.href=i,t.download="com_remove_joomla_fat.zip",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(e){alert(e)}},ie=e=>{let t="$useless = array(";return["component","plugin","module","template"].forEach((n=>{e[n].forEach((e=>{t+=`\n '${e.name}' => array(`,"component"===n&&(t+="'type' => 'component',"),"module"===n&&(t+=`'type' => 'module', 'client_id' => ${parseInt(e.clientId,10)},`),"plugin"===n&&(t+=`'type' => 'plugin', 'folder' => '${e.folder}'`),"template"===n&&(t+=`'type' => '"template"', 'client_id' => ${parseInt(e.clientId,10)},`),t+=`'enabled' => ${e.enabled}`,t+="),"}))})),t+="\n );",t};class ae extends HTMLElement{constructor(){super(),this.jVersion=4,this.store={},this.renderEl=this.renderEl.bind(this),this.updState=this.updState.bind(this),this.onClick=this.onClick.bind(this),this.onCreate=this.onCreate.bind(this),this.onSelectChange=this.onSelectChange.bind(this)}connectedCallback(){let e,t;const n=document.getElementById("data"),s=document.getElementById("db");if(!n||!s)throw new Error("Data is missing...");try{e=JSON.parse(n.innerText)}catch(e){throw new Error("Malformed JSON...")}try{t=JSON.parse(s.innerText)}catch(e){throw new Error("Malformed JSON...")}if(!e||!t)throw new Error("Data is missing...");this.data={files:e.files,data:t},le(this,this.data.data,this.jVersion),this.renderEl()}renderEl(){((e,t)=>{const n=te.get(e)||r(te,e,I(s));n.n!==X(n,"function"==typeof t?t():t)&&e.replaceChildren(n.n.valueOf())})(this,ne`
Online Joomla's fat-remover plugin creator

A simple (client side exclusive) plugin generator. The plugin upon installation will disable (hide) all the extensions you have disabled in the given list. The plugin will uninstall itself after that. No extension is uninstalled they are just disabled.



${["component","plugin","module","template"].map((e=>ne`
List of Joomla's ${e}s:${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}${this.store[e].map(((t,n)=>ne`${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}`))}
NameTypeClientState
${t.name.toLowerCase()}${t.folder}${1!==parseInt(t.clientId,10)?"site":"admin"}
`))}
`)}updState(e,t,n,s){this.store[e]&&this.store[e].length&&this.store[e][s]&&(this.store[e][s][t]=parseInt(n,10))}onSelectChange(e){const t=e.target;this.jVersion=parseInt(t.options[t.selectedIndex].value,10),le(this,this.data.data,this.jVersion),this.renderEl()}onClick(e){if(e.key&&[32,13].indexOf(e.keyCode)<0)return;let t=e.target;"tr"!==t.tagName.toLowerCase()&&(t=t.closest("tr")),this.updState(t.getAttribute("type"),t.getAttribute("prop"),t.getAttribute("value"),t.getAttribute("index")),e.preventDefault(),e.stopPropagation(),this.renderEl()}async onCreate(e){e.preventDefault,re(this)}}customElements.define("create-joomla-fat-free-plugin",ae); +const ne=(e=>(t,...n)=>new ee(e,t,n))(!1),se=(e,t)=>{const n=e.name.toUpperCase(),s=t.name.toUpperCase();let l=0;return n>s?l=1:n{e.store={component:[],plugin:[],module:[],template:[]},t.j4.forEach((t=>{t.locked&&1===t.locked||0===t.protected&&e.store[t.type].push({name:t.name,folder:t.folder,clientId:t.client_id,enabled:t.enabled})})),e.store.component=e.store.component.sort(se),e.store.plugin=e.store.plugin.sort(se),e.store.module=e.store.module.sort(se),e.store.template=e.store.template.sort(se)},re=async e=>{const{configure:t,BlobReader:n,BlobWriter:s,ZipReader:l,ZipWriter:r}=await import("./zip.7qoWLxoQ.js");let i;t({workerScriptsPath:"/js/"}),e.writer=new s("application/zip"),e.ZipWriter=new r(e.writer);const a=[],o={},c=e.data.files;Object.keys(c).map((e=>o[e]=c[e]));const d=ie(e.store);o["script.php"]=e.data.files["script.php"].replace("/**{{replacement}}**/",d),Object.keys(o).map((t=>a.push((async(e,t,n,s)=>{const l=new Blob([t],{type:"text/plain"});await n.ZipWriter.add(e,new s(l))})(`${t}`,o[t],e,n)))),await Promise.all(a);const h=new l(new n(await e.ZipWriter.close()));try{await h.close(),i=URL.createObjectURL(await e.writer.getData()),e.ZipWriter=null;let t=document.createElement("a");t.href=i,t.download="com_remove_joomla_fat.zip",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(e){alert(e)}},ie=e=>{let t="$useless = array(";return["component","plugin","module","template"].forEach((n=>{e[n].forEach((e=>{t+=`\n '${e.name}' => array(`,"component"===n&&(t+="'type' => 'component',"),"module"===n&&(t+=`'type' => 'module', 'client_id' => ${parseInt(e.clientId,10)},`),"plugin"===n&&(t+=`'type' => 'plugin', 'folder' => '${e.folder}'`),"template"===n&&(t+=`'type' => '"template"', 'client_id' => ${parseInt(e.clientId,10)},`),t+=`'enabled' => ${e.enabled}`,t+="),"}))})),t+="\n );",t};class ae extends HTMLElement{constructor(){super(),this.jVersion=4,this.store={},this.renderEl=this.renderEl.bind(this),this.updState=this.updState.bind(this),this.onClick=this.onClick.bind(this),this.onCreate=this.onCreate.bind(this),this.onSelectChange=this.onSelectChange.bind(this)}connectedCallback(){let e,t;const n=document.getElementById("data"),s=document.getElementById("db");if(!n||!s)throw new Error("Data is missing...");try{e=JSON.parse(n.innerText)}catch(e){throw new Error("Malformed JSON...")}try{t=JSON.parse(s.innerText)}catch(e){throw new Error("Malformed JSON...")}if(!e||!t)throw new Error("Data is missing...");this.data={files:e.files,data:t},le(this,this.data.data,this.jVersion),this.renderEl()}renderEl(){((e,t)=>{const n=te.get(e)||r(te,e,I(s));n.n!==("function"==typeof t?t():t).toDOM(n)&&e.replaceChildren(n.n.valueOf())})(this,ne`
Online Joomla's fat-remover plugin creator

A simple (client side exclusive) plugin generator. The plugin upon installation will disable (hide) all the extensions you have disabled in the given list. The plugin will uninstall itself after that. No extension is uninstalled they are just disabled.



${["component","plugin","module","template"].map((e=>ne`
List of Joomla's ${e}s:${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}${this.store[e].map(((t,n)=>ne`${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}`))}
NameTypeClientState
${t.name.toLowerCase()}${t.folder}${1!==parseInt(t.clientId,10)?"site":"admin"}
`))}
`)}updState(e,t,n,s){this.store[e]&&this.store[e].length&&this.store[e][s]&&(this.store[e][s][t]=parseInt(n,10))}onSelectChange(e){const t=e.target;this.jVersion=parseInt(t.options[t.selectedIndex].value,10),le(this,this.data.data,this.jVersion),this.renderEl()}onClick(e){if(e.key&&[32,13].indexOf(e.keyCode)<0)return;let t=e.target;"tr"!==t.tagName.toLowerCase()&&(t=t.closest("tr")),this.updState(t.getAttribute("type"),t.getAttribute("prop"),t.getAttribute("value"),t.getAttribute("index")),e.preventDefault(),e.stopPropagation(),this.renderEl()}async onCreate(e){e.preventDefault,re(this)}}customElements.define("create-joomla-fat-free-plugin",ae); diff --git a/docs/js/index.js b/docs/js/index.js index 7358526..46e4061 100644 --- a/docs/js/index.js +++ b/docs/js/index.js @@ -1,3 +1,3 @@ -const{isArray:e}=Array,{getPrototypeOf:t,getOwnPropertyDescriptor:n}=Object,s=[],l=()=>document.createRange(),r=(e,t,n)=>(e.set(t,n),n),{setPrototypeOf:i}=Object;let a;var o=(e,t,n)=>(a||(a=l()),n?a.setStartAfter(e):a.setStartBefore(e),a.setEndAfter(t),a.deleteContents(),e);const c=({firstChild:e,lastChild:t},n)=>o(e,t,n);let d=!1;const h=(e,t)=>d&&11===e.nodeType?1/t<0?t?c(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,p=e=>document.createComment(e);class u extends((e=>{function t(e){return i(e,new.target.prototype)}return t.prototype=e.prototype,t})(DocumentFragment)){#e=p("<>");#t=p("");#n=s;constructor(e){super(e),this.replaceChildren(this.#e,...e.childNodes,this.#t),d=!0}get firstChild(){return this.#e}get lastChild(){return this.#t}get parentNode(){return this.#e.parentNode}remove(){c(this,!1)}replaceWith(e){c(this,!0).replaceWith(e)}valueOf(){let{firstChild:e,lastChild:t,parentNode:n}=this;if(n===this)this.#n===s&&(this.#n=[...this.childNodes]);else{if(n)for(this.#n=[e];e!==t;)this.#n.push(e=e.nextSibling);this.replaceChildren(...this.#n)}return this}}const m=(e,t,n)=>e.setAttribute(t,n),f=(e,t)=>e.removeAttribute(t);let g;const b=(t,n,s)=>{s=s.slice(1),g||(g=new WeakMap);const l=g.get(t)||r(g,t,{});let i=l[s];return i&&i[0]&&t.removeEventListener(s,...i),i=e(n)?n:[n,!1],l[s]=i,i[0]&&t.addEventListener(s,...i),n};function y(e,t){let{n:n}=this,s=!1;switch(typeof t){case"object":if(null!==t){(n||e).replaceWith(this.n=t.valueOf());break}case"undefined":s=!0;default:e.data=s?"":t,n&&(this.n=null,n.replaceWith(e))}return t}const C=(e,t,n)=>e[n]=t,$=(e,t,n)=>C(e,t,n.slice(1)),w=(e,t,n)=>null==t?(f(e,n),t):C(e,t,n),v=(e,t)=>("function"==typeof t?t(e):t.current=e,t),x=(e,t,n)=>(null==t?f(e,n):m(e,n,t),t),k=(e,t,n)=>(e.toggleAttribute(n.slice(1),t),t),E=(e,t,n)=>{const{length:l}=t;if(e.data=`[${l}]`,l)return((e,t,n,s,l)=>{const r=n.length;let i=t.length,a=r,o=0,c=0,d=null;for(;ol-c){const r=s(t[o],0);for(;c{for(const n in t){const s=t[n],l="role"===n?n:`aria-${n}`;null==s?f(e,l):m(e,l,s)}return t}],["class",(e,t)=>w(e,t,null==t?"class":"className")],["data",(e,t)=>{const{dataset:n}=e;for(const e in t)null==t[e]?delete n[e]:n[e]=t[e];return t}],["ref",v],["style",(e,t)=>null==t?w(e,t,"style"):C(e.style,t,"cssText")]]),S=(e,s,l)=>{switch(s[0]){case".":return $;case"?":return k;case"@":return b;default:return l||"ownerSVGElement"in e?"ref"===s?v:x:N.get(s)||(s in e?s.startsWith("on")?C:((e,s)=>{let l;do{l=n(e,s)}while(!l&&(e=t(e)));return l})(e,s)?.set?w:x:x)}},j=(e,t)=>(e.textContent=null==t?"":t,t),O=(e,t,n)=>({p:e,u:t,n:n}),I=e=>({s:e,t:null,n:null,d:s}),A=(e,t)=>t.reduceRight(W,e),W=(e,t)=>e.childNodes[t];var T=e=>(t,n)=>{const{f:l,e:r,d:i}=e(t,n),a=l.cloneNode(!0);let o,c,d=r===s?s:[];for(let e=0;e({n:e,d:t}))(i?a.firstChild:new u(a),d)};const B=/^(?:plaintext|script|style|textarea|title|xmp)$/i,L=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,M=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,D=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,V=/[\x01\x02]/g;let Z,J,_=document.createElement("template");var P=(e,t)=>{if(t)return Z||(Z=document.createElementNS("http://www.w3.org/2000/svg","svg"),J=l(),J.selectNodeContents(Z)),J.createContextualFragment(e);_.innerHTML=e;const{content:n}=_;return _=_.cloneNode(!1),n};const R=e=>{const t=[];let n;for(;n=e.parentNode;)t.push(t.indexOf.call(n.childNodes,e)),e=n;return t},z=()=>document.createTextNode(""),U=(t,n,l)=>{const i=P(((e,t,n)=>{let s=0;return e.join("").trim().replace(M,((e,t,s,l)=>`<${t}${s.replace(D,"=$2$1").trimEnd()}${l?n||L.test(t)?" /":`>`)).replace(V,(e=>""===e?`\x3c!--${t+s++}--\x3e`:t+s++))})(t,G,l),l),{length:a}=t;let o=s;if(a>1){const t=[],s=document.createTreeWalker(i,129);let r=0,c=`${G}${r++}`;for(o=[];r(t,n)=>F.get(t)||U(t,n,e);const q=T(H(!1)),K=T(H(!0)),Q=({u:e})=>e===E?I([]):e===y?I(s):null,X=(e,{s:t,t:n,v:s})=>{let l=0,{d:r,s:i}=e;if(e.t!==n){const{n:l,d:a}=(t?K:q)(n,s);e.t=n,e.n=l,e.d=r=a,s.length&&(e.s=i=a.map(Q))}for(;l{let n=0,{length:l}=t;for(ldocument.createRange(),r=(e,t,n)=>(e.set(t,n),n),{setPrototypeOf:i}=Object;let a;var o=(e,t,n)=>(a||(a=l()),n?a.setStartAfter(e):a.setStartBefore(e),a.setEndAfter(t),a.deleteContents(),e);const c=({firstChild:e,lastChild:t},n)=>o(e,t,n);let d=!1;const h=(e,t)=>d&&11===e.nodeType?1/t<0?t?c(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,u=e=>document.createComment(e);class p extends((e=>{function t(e){return i(e,new.target.prototype)}return t.prototype=e.prototype,t})(DocumentFragment)){#e=u("<>");#t=u("");#n=s;constructor(e){super(e),this.replaceChildren(this.#e,...e.childNodes,this.#t),d=!0}get firstChild(){return this.#e}get lastChild(){return this.#t}get parentNode(){return this.#e.parentNode}remove(){c(this,!1)}replaceWith(e){c(this,!0).replaceWith(e)}valueOf(){let{firstChild:e,lastChild:t,parentNode:n}=this;if(n===this)this.#n===s&&(this.#n=[...this.childNodes]);else{if(n)for(this.#n=[e];e!==t;)this.#n.push(e=e.nextSibling);this.replaceChildren(...this.#n)}return this}}const m=(e,t,n)=>e.setAttribute(t,n),f=(e,t)=>e.removeAttribute(t);let g;const b=(t,n,s)=>{s=s.slice(1),g||(g=new WeakMap);const l=g.get(t)||r(g,t,{});let i=l[s];return i&&i[0]&&t.removeEventListener(s,...i),i=e(n)?n:[n,!1],l[s]=i,i[0]&&t.addEventListener(s,...i),n};function y(e,t){let{n:n}=this,s=!1;switch(typeof t){case"object":if(null!==t){(n||e).replaceWith(this.n=t.valueOf());break}case"undefined":s=!0;default:e.data=s?"":t,n&&(this.n=null,n.replaceWith(e))}return t}const C=(e,t,n)=>e[n]=t,$=(e,t,n)=>C(e,t,n.slice(1)),w=(e,t,n)=>null==t?(f(e,n),t):C(e,t,n),v=(e,t)=>("function"==typeof t?t(e):t.current=e,t),x=(e,t,n)=>(null==t?f(e,n):m(e,n,t),t),k=(e,t,n)=>(e.toggleAttribute(n.slice(1),t),t),E=(e,t,n)=>{const{length:l}=t;if(e.data=`[${l}]`,l)return((e,t,n,s,l)=>{const r=n.length;let i=t.length,a=r,o=0,c=0,d=null;for(;ol-c){const r=s(t[o],0);for(;c{for(const n in t){const s=t[n],l="role"===n?n:`aria-${n}`;null==s?f(e,l):m(e,l,s)}return t}],["class",(e,t)=>w(e,t,null==t?"class":"className")],["data",(e,t)=>{const{dataset:n}=e;for(const e in t)null==t[e]?delete n[e]:n[e]=t[e];return t}],["ref",v],["style",(e,t)=>null==t?w(e,t,"style"):C(e.style,t,"cssText")]]),S=(e,s,l)=>{switch(s[0]){case".":return $;case"?":return k;case"@":return b;default:return l||"ownerSVGElement"in e?"ref"===s?v:x:N.get(s)||(s in e?s.startsWith("on")?C:((e,s)=>{let l;do{l=n(e,s)}while(!l&&(e=t(e)));return l})(e,s)?.set?w:x:x)}},O=(e,t)=>(e.textContent=null==t?"":t,t),j=(e,t,n)=>({p:e,u:t,n:n}),I=e=>({t:null,n:null,d:s,s:e}),A=(e,t)=>t.reduceRight(W,e),W=(e,t)=>e.childNodes[t];var T=e=>(t,n)=>{const{f:l,e:r,d:i}=e(t,n),a=l.cloneNode(!0);let o=s,c=s;if(r!==s){o=[],c=[];for(let e,t,n=0;n]*?)(\/?)>/g,L=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,V=/[\x01\x02]/g;let Z,J,_=document.createElement("template");var P=(e,t)=>{if(t)return Z||(Z=document.createElementNS("http://www.w3.org/2000/svg","svg"),J=l(),J.selectNodeContents(Z)),J.createContextualFragment(e);_.innerHTML=e;const{content:n}=_;return _=_.cloneNode(!1),n};const R=e=>{const t=[];let n;for(;n=e.parentNode;)t.push(t.indexOf.call(n.childNodes,e)),e=n;return t},z=()=>document.createTextNode(""),U=(t,n,l)=>{const i=P(((e,t,n)=>{let s=0;return e.join("").trim().replace(D,((e,t,s,l)=>`<${t}${s.replace(L,"=$2$1").trimEnd()}${l?n||B.test(t)?" /":`>`)).replace(V,(e=>""===e?`\x3c!--${t+s++}--\x3e`:t+s++))})(t,G,l),l),{length:a}=t;let o=s;if(a>1){const t=[],s=document.createTreeWalker(i,129);let r=0,c=`${G}${r++}`;for(o=[];r(t,n)=>F.get(t)||U(t,n,e);const{assign:q}=Object,K=T(H(!1)),Q=T(H(!0)),X=(e,{s:t,t:n,v:l})=>{e.t!==n&&q(e,(t?Q:K)(n,l));for(let{d:t,s:n}=e,r=0;r{let n=0,{length:l}=t;for(l(t,...n)=>new ee(e,t,n))(!1),se=(e,t)=>{const n=e.name.toUpperCase(),s=t.name.toUpperCase();let l=0;return n>s?l=1:n{e.store={component:[],plugin:[],module:[],template:[]},t.j4.forEach((t=>{t.locked&&1===t.locked||0===t.protected&&e.store[t.type].push({name:t.name,folder:t.folder,clientId:t.client_id,enabled:t.enabled})})),e.store.component=e.store.component.sort(se),e.store.plugin=e.store.plugin.sort(se),e.store.module=e.store.module.sort(se),e.store.template=e.store.template.sort(se)},re=async e=>{const{configure:t,BlobReader:n,BlobWriter:s,ZipReader:l,ZipWriter:r}=await import("./zip.7qoWLxoQ.js");let i;t({workerScriptsPath:"/js/"}),e.writer=new s("application/zip"),e.ZipWriter=new r(e.writer);const a=[],o={},c=e.data.files;Object.keys(c).map((e=>o[e]=c[e]));const d=ie(e.store);o["script.php"]=e.data.files["script.php"].replace("/**{{replacement}}**/",d),Object.keys(o).map((t=>a.push((async(e,t,n,s)=>{const l=new Blob([t],{type:"text/plain"});await n.ZipWriter.add(e,new s(l))})(`${t}`,o[t],e,n)))),await Promise.all(a);const h=new l(new n(await e.ZipWriter.close()));try{await h.close(),i=URL.createObjectURL(await e.writer.getData()),e.ZipWriter=null;let t=document.createElement("a");t.href=i,t.download="com_remove_joomla_fat.zip",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(e){alert(e)}},ie=e=>{let t="$useless = array(";return["component","plugin","module","template"].forEach((n=>{e[n].forEach((e=>{t+=`\n '${e.name}' => array(`,"component"===n&&(t+="'type' => 'component',"),"module"===n&&(t+=`'type' => 'module', 'client_id' => ${parseInt(e.clientId,10)},`),"plugin"===n&&(t+=`'type' => 'plugin', 'folder' => '${e.folder}'`),"template"===n&&(t+=`'type' => '"template"', 'client_id' => ${parseInt(e.clientId,10)},`),t+=`'enabled' => ${e.enabled}`,t+="),"}))})),t+="\n );",t};class ae extends HTMLElement{constructor(){super(),this.jVersion=4,this.store={},this.renderEl=this.renderEl.bind(this),this.updState=this.updState.bind(this),this.onClick=this.onClick.bind(this),this.onCreate=this.onCreate.bind(this),this.onSelectChange=this.onSelectChange.bind(this)}connectedCallback(){let e,t;const n=document.getElementById("data"),s=document.getElementById("db");if(!n||!s)throw new Error("Data is missing...");try{e=JSON.parse(n.innerText)}catch(e){throw new Error("Malformed JSON...")}try{t=JSON.parse(s.innerText)}catch(e){throw new Error("Malformed JSON...")}if(!e||!t)throw new Error("Data is missing...");this.data={files:e.files,data:t},le(this,this.data.data,this.jVersion),this.renderEl()}renderEl(){((e,t)=>{const n=te.get(e)||r(te,e,I(s));n.n!==X(n,"function"==typeof t?t():t)&&e.replaceChildren(n.n.valueOf())})(this,ne`
Online Joomla's fat-remover plugin creator

A simple (client side exclusive) plugin generator. The plugin upon installation will disable (hide) all the extensions you have disabled in the given list. The plugin will uninstall itself after that. No extension is uninstalled they are just disabled.



${["component","plugin","module","template"].map((e=>ne`
List of Joomla's ${e}s:${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}${this.store[e].map(((t,n)=>ne`${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}`))}
NameTypeClientState
${t.name.toLowerCase()}${t.folder}${1!==parseInt(t.clientId,10)?"site":"admin"}
`))}
`)}updState(e,t,n,s){this.store[e]&&this.store[e].length&&this.store[e][s]&&(this.store[e][s][t]=parseInt(n,10))}onSelectChange(e){const t=e.target;this.jVersion=parseInt(t.options[t.selectedIndex].value,10),le(this,this.data.data,this.jVersion),this.renderEl()}onClick(e){if(e.key&&[32,13].indexOf(e.keyCode)<0)return;let t=e.target;"tr"!==t.tagName.toLowerCase()&&(t=t.closest("tr")),this.updState(t.getAttribute("type"),t.getAttribute("prop"),t.getAttribute("value"),t.getAttribute("index")),e.preventDefault(),e.stopPropagation(),this.renderEl()}async onCreate(e){e.preventDefault,re(this)}}customElements.define("create-joomla-fat-free-plugin",ae); +const ne=(e=>(t,...n)=>new ee(e,t,n))(!1),se=(e,t)=>{const n=e.name.toUpperCase(),s=t.name.toUpperCase();let l=0;return n>s?l=1:n{e.store={component:[],plugin:[],module:[],template:[]},t.j4.forEach((t=>{t.locked&&1===t.locked||0===t.protected&&e.store[t.type].push({name:t.name,folder:t.folder,clientId:t.client_id,enabled:t.enabled})})),e.store.component=e.store.component.sort(se),e.store.plugin=e.store.plugin.sort(se),e.store.module=e.store.module.sort(se),e.store.template=e.store.template.sort(se)},re=async e=>{const{configure:t,BlobReader:n,BlobWriter:s,ZipReader:l,ZipWriter:r}=await import("./zip.7qoWLxoQ.js");let i;t({workerScriptsPath:"/js/"}),e.writer=new s("application/zip"),e.ZipWriter=new r(e.writer);const a=[],o={},c=e.data.files;Object.keys(c).map((e=>o[e]=c[e]));const d=ie(e.store);o["script.php"]=e.data.files["script.php"].replace("/**{{replacement}}**/",d),Object.keys(o).map((t=>a.push((async(e,t,n,s)=>{const l=new Blob([t],{type:"text/plain"});await n.ZipWriter.add(e,new s(l))})(`${t}`,o[t],e,n)))),await Promise.all(a);const h=new l(new n(await e.ZipWriter.close()));try{await h.close(),i=URL.createObjectURL(await e.writer.getData()),e.ZipWriter=null;let t=document.createElement("a");t.href=i,t.download="com_remove_joomla_fat.zip",document.body.appendChild(t),t.click(),document.body.removeChild(t)}catch(e){alert(e)}},ie=e=>{let t="$useless = array(";return["component","plugin","module","template"].forEach((n=>{e[n].forEach((e=>{t+=`\n '${e.name}' => array(`,"component"===n&&(t+="'type' => 'component',"),"module"===n&&(t+=`'type' => 'module', 'client_id' => ${parseInt(e.clientId,10)},`),"plugin"===n&&(t+=`'type' => 'plugin', 'folder' => '${e.folder}'`),"template"===n&&(t+=`'type' => '"template"', 'client_id' => ${parseInt(e.clientId,10)},`),t+=`'enabled' => ${e.enabled}`,t+="),"}))})),t+="\n );",t};class ae extends HTMLElement{constructor(){super(),this.jVersion=4,this.store={},this.renderEl=this.renderEl.bind(this),this.updState=this.updState.bind(this),this.onClick=this.onClick.bind(this),this.onCreate=this.onCreate.bind(this),this.onSelectChange=this.onSelectChange.bind(this)}connectedCallback(){let e,t;const n=document.getElementById("data"),s=document.getElementById("db");if(!n||!s)throw new Error("Data is missing...");try{e=JSON.parse(n.innerText)}catch(e){throw new Error("Malformed JSON...")}try{t=JSON.parse(s.innerText)}catch(e){throw new Error("Malformed JSON...")}if(!e||!t)throw new Error("Data is missing...");this.data={files:e.files,data:t},le(this,this.data.data,this.jVersion),this.renderEl()}renderEl(){((e,t)=>{const n=te.get(e)||r(te,e,I(s));n.n!==("function"==typeof t?t():t).toDOM(n)&&e.replaceChildren(n.n.valueOf())})(this,ne`
Online Joomla's fat-remover plugin creator

A simple (client side exclusive) plugin generator. The plugin upon installation will disable (hide) all the extensions you have disabled in the given list. The plugin will uninstall itself after that. No extension is uninstalled they are just disabled.



${["component","plugin","module","template"].map((e=>ne`
List of Joomla's ${e}s:${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}${this.store[e].map(((t,n)=>ne`${"plugin"===e?ne``:"module"===e||"template"===e?ne``:""}`))}
NameTypeClientState
${t.name.toLowerCase()}${t.folder}${1!==parseInt(t.clientId,10)?"site":"admin"}
`))}
`)}updState(e,t,n,s){this.store[e]&&this.store[e].length&&this.store[e][s]&&(this.store[e][s][t]=parseInt(n,10))}onSelectChange(e){const t=e.target;this.jVersion=parseInt(t.options[t.selectedIndex].value,10),le(this,this.data.data,this.jVersion),this.renderEl()}onClick(e){if(e.key&&[32,13].indexOf(e.keyCode)<0)return;let t=e.target;"tr"!==t.tagName.toLowerCase()&&(t=t.closest("tr")),this.updState(t.getAttribute("type"),t.getAttribute("prop"),t.getAttribute("value"),t.getAttribute("index")),e.preventDefault(),e.stopPropagation(),this.renderEl()}async onCreate(e){e.preventDefault,re(this)}}customElements.define("create-joomla-fat-free-plugin",ae); diff --git a/package-lock.json b/package-lock.json index 197c067..9d6acd0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3319,9 +3319,9 @@ } }, "node_modules/uhtml": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uhtml/-/uhtml-4.4.1.tgz", - "integrity": "sha512-bUYbdns0icnMNbJrTwqY2IWmPo+/5gEW4FfS/YMMNX+9mePlwTH8JphKBobXFpfrZqN72idgvp5kOCuTxAZocQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/uhtml/-/uhtml-4.4.3.tgz", + "integrity": "sha512-gX2qY3DIRlAy2PkAkLq0Yw9ya/qbW0LpMHymQcf8GpM4rRwQZTiuvWYVY7Fn3CPCewnOzX9Lym0VerAQTolQFA==", "dependencies": { "@webreflection/uparser": "^0.3.3", "custom-function": "^1.0.6",