diff --git a/docs/assets/index-8a432803.css b/docs/assets/index-8a432803.css deleted file mode 100644 index e92cd65..0000000 --- a/docs/assets/index-8a432803.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!visible{visibility:visible!important}.visible{visibility:visible}.relative{position:relative}.float-right{float:right}.m-3{margin:.75rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-6{margin-left:1.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-7{height:1.75rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-full{width:100%}.w-screen{width:100vw}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pl-1{padding-left:.25rem}.text-left{text-align:left}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-5{line-height:1.25rem}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:-translate-y-0:hover{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:bg-gray-50:active{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.active\:text-gray-800:active{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))} diff --git a/docs/assets/index-9403d969.js b/docs/assets/index-9403d969.js new file mode 100644 index 0000000..55db1c8 --- /dev/null +++ b/docs/assets/index-9403d969.js @@ -0,0 +1,14 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function l(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=l(o);fetch(o.href,s)}})();function D(){}function Nt(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ht(e){return e()}function qe(){return Object.create(null)}function fe(e){e.forEach(ht)}function bt(e){return typeof e=="function"}function be(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Ct(e){return Object.keys(e).length===0}function d(e,t){e.appendChild(t)}function g(e,t,l){e.insertBefore(t,l||null)}function b(e){e.parentNode&&e.parentNode.removeChild(e)}function je(e,t){for(let l=0;le.removeEventListener(t,l,n)}function v(e,t,l){l==null?e.removeAttribute(t):e.getAttribute(t)!==l&&e.setAttribute(t,l)}function jt(e,t,l){const n=new Set;for(let o=0;oe.push(n))},r(){t.forEach(l=>e.splice(e.indexOf(l),1))}}}function Et(e){return Array.from(e.childNodes)}function V(e,t){t=""+t,e.data!==t&&(e.data=t)}function ne(e,t){e.value=t??""}let Ce;function ee(e){Ce=e}function Pt(){if(!Ce)throw new Error("Function called outside component initialization");return Ce}const _e=[],Z=[];let he=[];const Se=[],At=Promise.resolve();let Be=!1;function Mt(){Be||(Be=!0,At.then(ze))}function Re(e){he.push(e)}function ue(e){Se.push(e)}const Le=new Set;let me=0;function ze(){if(me!==0)return;const e=Ce;do{try{for(;me<_e.length;){const t=_e[me];me++,ee(t),Lt(t.$$)}}catch(t){throw _e.length=0,me=0,t}for(ee(null),_e.length=0,me=0;Z.length;)Z.pop()();for(let t=0;te.indexOf(n)===-1?t.push(n):l.push(n)),l.forEach(n=>n()),he=t}const Ae=new Set;let se;function ge(){se={r:0,c:[],p:se}}function ke(){se.r||fe(se.c),se=se.p}function z(e,t){e&&e.i&&(Ae.delete(e),e.i(t))}function G(e,t,l,n){if(e&&e.o){if(Ae.has(e))return;Ae.add(e),se.c.push(()=>{Ae.delete(e),n&&(l&&e.d(1),n())}),e.o(t)}else n&&n()}function De(e,t){const l=t.token={};function n(o,s,r,u){if(t.token!==l)return;t.resolved=u;let i=t.ctx;r!==void 0&&(i=i.slice(),i[r]=u);const c=o&&(t.current=o)(i);let a=!1;t.block&&(t.blocks?t.blocks.forEach((p,h)=>{h!==s&&p&&(ge(),G(p,1,1,()=>{t.blocks[h]===p&&(t.blocks[h]=null)}),ke())}):t.block.d(1),c.c(),z(c,1),c.m(t.mount(),t.anchor),a=!0),t.block=c,t.blocks&&(t.blocks[s]=c),a&&ze()}if(Nt(e)){const o=Pt();if(e.then(s=>{ee(o),n(t.then,1,t.value,s),ee(null)},s=>{if(ee(o),n(t.catch,2,t.error,s),ee(null),!t.hasCatch)throw s}),t.current!==t.pending)return n(t.pending,0),!0}else{if(t.current!==t.then)return n(t.then,1,t.value,e),!0;t.resolved=e}}function vt(e,t,l){const n=t.slice(),{resolved:o}=e;e.current===e.then&&(n[e.value]=o),e.current===e.catch&&(n[e.error]=o),e.block.p(n,l)}function ce(e,t,l){const n=e.$$.props[t];n!==void 0&&(e.$$.bound[n]=l,l(e.$$.ctx[n]))}function re(e){e&&e.c()}function te(e,t,l,n){const{fragment:o,after_update:s}=e.$$;o&&o.m(t,l),n||Re(()=>{const r=e.$$.on_mount.map(ht).filter(bt);e.$$.on_destroy?e.$$.on_destroy.push(...r):fe(r),e.$$.on_mount=[]}),s.forEach(Re)}function le(e,t){const l=e.$$;l.fragment!==null&&(Tt(l.after_update),fe(l.on_destroy),l.fragment&&l.fragment.d(t),l.on_destroy=l.fragment=null,l.ctx=[])}function St(e,t){e.$$.dirty[0]===-1&&(_e.push(e),Mt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const y=C.length?C[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=y)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](y),a&&St(e,p)),h}):[],c.update(),a=!0,fe(c.before_update),c.fragment=n?n(c.ctx):!1,t.target){if(t.hydrate){const p=Et(t.target);c.fragment&&c.fragment.l(p),p.forEach(b)}else c.fragment&&c.fragment.c();t.intro&&z(e.$$.fragment),te(e,t.target,t.anchor,t.customElement),ze()}ee(i)}class ye{$destroy(){le(this,1),this.$destroy=D}$on(t,l){if(!bt(l))return D;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(l),()=>{const o=n.indexOf(l);o!==-1&&n.splice(o,1)}}$set(t){this.$$set&&!Ct(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Bt(e){let t,l,n;return{c(){t=k("button"),t.textContent="Copy",v(t,"id","cbut"),v(t,"class","transition ease-in-out hover:-translate-y-0.5 rounded-lg border w-full p-3 mb-3 items-stretch bg-gray-300 border-gray-400 text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none")},m(o,s){g(o,t,s),e[2](t),l||(n=[W(t,"mouseleave",e[3]),W(t,"click",e[4])],l=!0)},p:D,i:D,o:D,d(o){o&&b(t),e[2](null),l=!1,fe(n)}}}function Rt(e,t,l){let n,{id:o}=t;function s(i){Z[i?"unshift":"push"](()=>{n=i,l(1,n)})}const r=()=>{n.textContent!=="Copy"&&l(1,n.textContent="Copy",n)},u=()=>{navigator.clipboard.writeText(document.getElementById(o).innerText),n.textContent!=="Copied ✔"&&l(1,n.textContent="Copied ✔",n)};return e.$$set=i=>{"id"in i&&l(0,o=i.id)},[o,n,s,r,u]}class Je extends ye{constructor(t){super(),ve(this,t,Rt,Bt,be,{id:0})}}function We(e,t,l){const n=e.slice();return n[6]=t[l],n[7]=t,n[8]=l,n}function Ye(e){let t,l,n,o=e[0].patchOptions,s=[];for(let r=0;rl(3,r=!r),i=(c,a,p,h)=>{l(0,a[p].value=h.target.value,n),l(0,a[p].is_selected=!0,n),s[n.name]===void 0&&l(1,s[n.name]={},s),s[n.name][c.key]===void 0&&l(1,s[n.name][c.key]=[],s),l(1,s[n.name][c.key]=c.value,s)};return e.$$set=c=>{"patch"in c&&l(0,n=c.patch),"optionName"in c&&l(2,o=c.optionName),"selectedOpts"in c&&l(1,s=c.selectedOpts)},[n,s,o,r,u,i]}class Ht extends ye{constructor(t){super(),ve(this,t,zt,Dt,be,{patch:0,optionName:2,selectedOpts:1})}}function Ue(e,t,l){const n=e.slice();return n[12]=t[l],n}function Xe(e){let t,l,n,o,s,r,u,i,c,a,p=e[3],h=[];for(let y=0;yG(h[y],1,1,()=>{h[y]=null});return{c(){t=k("p"),l=k("button"),n=w(e[5]),o=E(),s=k("div"),r=k("div"),u=k("p");for(let y=0;yce(l,"selectedOpts",s)),{c(){t=k("p"),re(l.$$.fragment),v(t,"class","ml-6")},m(u,i){g(u,t,i),te(l,t,null),o=!0},p(u,i){const c={};i&8&&(c.patch=u[12]),!n&&i&2&&(n=!0,c.selectedOpts=u[1],ue(()=>n=!1)),l.$set(c)},i(u){o||(z(l.$$.fragment,u),o=!0)},o(u){G(l.$$.fragment,u),o=!1},d(u){u&&b(t),le(l)}}}function xe(e){let t,l,n,o=!1,s,r,u=e[12].name+"",i,c,a,p,h,C,y,m=e[12].description+"",f,O,L,S,T,P,N,R,M,B=e[12].warn!==void 0&&e[12].warn&&Ze();function F(H,K){return H[12].pkg_versions.length>0?It:Vt}let _=F(e),j=_(e),I=e[12].patchOptions.length>0&&$e(e);return N=kt(e[9][0]),{c(){t=k("label"),l=k("input"),s=E(),r=k("span"),i=w(u),c=E(),B&&B.c(),a=E(),p=k("p"),j.c(),h=E(),C=k("p"),y=w("- "),f=w(m),O=E(),I&&I.c(),L=E(),S=k("div"),T=E(),v(l,"type","checkbox"),l.__value=n=e[12],l.value=l.__value,v(p,"class","ml-6"),v(C,"class","font-bold font-mono ml-6"),v(S,"class","pb-2"),v(t,"class","items-center"),N.p(l)},m(H,K){g(H,t,K),d(t,l),l.checked=~(e[0]||[]).indexOf(l.__value),d(t,s),d(t,r),d(r,i),d(r,c),B&&B.m(r,null),d(r,a),d(r,p),j.m(p,null),d(t,h),d(t,C),d(C,y),d(C,f),d(t,O),I&&I.m(t,null),d(t,L),d(t,S),d(t,T),P=!0,R||(M=W(l,"change",e[8]),R=!0)},p(H,K){(!P||K&8&&n!==(n=H[12]))&&(l.__value=n,l.value=l.__value,o=!0),(o||K&9)&&(l.checked=~(H[0]||[]).indexOf(l.__value)),(!P||K&8)&&u!==(u=H[12].name+"")&&V(i,u),H[12].warn!==void 0&&H[12].warn?B||(B=Ze(),B.c(),B.m(r,a)):B&&(B.d(1),B=null),_===(_=F(H))&&j?j.p(H,K):(j.d(1),j=_(H),j&&(j.c(),j.m(p,null))),(!P||K&8)&&m!==(m=H[12].description+"")&&V(f,m),H[12].patchOptions.length>0?I?(I.p(H,K),K&8&&z(I,1)):(I=$e(H),I.c(),z(I,1),I.m(t,L)):I&&(ge(),G(I,1,1,()=>{I=null}),ke())},i(H){P||(z(I),P=!0)},o(H){G(I),P=!1},d(H){H&&b(t),B&&B.d(),j.d(),I&&I.d(),N.r(),R=!1,M()}}}function Ft(e){let t,l,n,o,s,r,u,i,c=e[4]&&Xe(e);return{c(){t=k("div"),l=k("button"),n=k("span"),o=w(e[2]),s=E(),c&&c.c(),v(l,"class","inline-flex justify-center items-center space-x-2 border border-gray-300 rounded-md py-2 px-4 bg-white text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none focus:border-gray-300 focus:ring-blue active:bg-gray-50 active:text-gray-800"),v(t,"class","relative inline-block text-left")},m(a,p){g(a,t,p),d(t,l),d(l,n),d(n,o),d(t,s),c&&c.m(t,null),r=!0,u||(i=W(l,"click",e[7]),u=!0)},p(a,[p]){(!r||p&4)&&V(o,a[2]),a[4]?c?(c.p(a,p),p&16&&z(c,1)):(c=Xe(a),c.c(),z(c,1),c.m(t,null)):c&&(ge(),G(c,1,1,()=>{c=null}),ke())},i(a){r||(z(c),r=!0)},o(a){G(c),r=!1},d(a){a&&b(t),c&&c.d(),u=!1,i()}}}function Kt(e,t,l){let{optionName:n}=t,{options:o}=t,s=!1,{selected:r=[]}=t;const u=m=>{for(const f of m)f.use&&r.push(f)},i=()=>{c==="Deselect All"?(l(0,r.length=0,r),l(5,c="Select Default")):(l(0,r.length=0,r),u(o),l(5,c="Deselect All"))};let c="Deselect All",{selectedOpts:a}=t;const p=[[]],h=()=>l(4,s=!s);function C(){r=jt(p[0],this.__value,this.checked),l(0,r)}function y(m){a=m,l(1,a)}return e.$$set=m=>{"optionName"in m&&l(2,n=m.optionName),"options"in m&&l(3,o=m.options),"selected"in m&&l(0,r=m.selected),"selectedOpts"in m&&l(1,a=m.selectedOpts)},e.$$.update=()=>{e.$$.dirty&8&&u(o)},[r,a,n,o,s,c,i,h,C,p,y]}class Gt extends ye{constructor(t){super(),ve(this,t,Kt,Ft,be,{optionName:2,options:3,selected:0,selectedOpts:1})}}function et(e,t,l){const n=e.slice();return n[7]=t[l],n}function tt(e){let t,l,n,o=e[2],s=[];for(let r=0;rl(3,r=!r);function c(){s=this.__value,l(0,s)}return e.$$set=a=>{"optionName"in a&&l(1,n=a.optionName),"options"in a&&l(2,o=a.options),"selected"in a&&l(0,s=a.selected)},[s,n,o,r,i,c,u]}class Te extends ye{constructor(t){super(),ve(this,t,Jt,qt,be,{optionName:1,options:2,selected:0})}}function Wt(e){let t,l,n=`https://raw.githubusercontent.com/${e[8]}/HEAD/patches.json`,o;return{c(){t=k("div"),l=w("Could not fetch patches from "),o=w(n),v(t,"class","border border-t-0 border-red-200 rounded-b bg-red-100 text-red-400")},m(s,r){g(s,t,r),d(t,l),d(t,o)},p(s,r){r&256&&n!==(n=`https://raw.githubusercontent.com/${s[8]}/HEAD/patches.json`)&&V(o,n)},i:D,o:D,d(s){s&&b(t)}}}function Yt(e){let t,l,n,o,s,r;function u(a){e[25](a)}function i(a){e[26](a)}let c={optionName:"patches",options:e[11]};return e[5]!==void 0&&(c.selected=e[5]),e[10]!==void 0&&(c.selectedOpts=e[10]),n=new Gt({props:c}),Z.push(()=>ce(n,"selected",u)),Z.push(()=>ce(n,"selectedOpts",i)),{c(){t=k("hr"),l=E(),re(n.$$.fragment),v(t,"class","my-3 border-t border-gray-300")},m(a,p){g(a,t,p),g(a,l,p),te(n,a,p),r=!0},p(a,p){const h={};p&2048&&(h.options=a[11]),!o&&p&32&&(o=!0,h.selected=a[5],ue(()=>o=!1)),!s&&p&1024&&(s=!0,h.selectedOpts=a[10],ue(()=>s=!1)),n.$set(h)},i(a){r||(z(n.$$.fragment,a),r=!0)},o(a){G(n.$$.fragment,a),r=!1},d(a){a&&b(t),a&&b(l),le(n,a)}}}function Qt(e){return{c:D,m:D,p:D,i:D,o:D,d:D}}function Ut(e){let t,l,n=(e[6]?e[6]:e[3])+"",o,s,r,u,i,c,a,p,h,C,y,m,f,O,L,S,T,P,N,R,M,B,F,_,j,I,H,K,A,X,ae,de,$,we,Oe,U,x,ie,Ne,Y,oe,Ee,pe,Me,He;function yt(q){e[20](q)}let Ve={optionName:"version",options:["auto","latest","beta"]};e[7]!==void 0&&(Ve.selected=e[7]),N=new Te({props:Ve}),Z.push(()=>ce(N,"selected",yt));function wt(q){e[22](q)}let Ie={optionName:"build-mode",options:["apk","both","module"]};e[4]!==void 0&&(Ie.selected=e[4]),K=new Te({props:Ie}),Z.push(()=>ce(K,"selected",wt));function Ot(q){e[23](q)}let Fe={optionName:"apkmirror arch",options:["universal","arm64-v8a","arm-v7a","both"]};e[1]!==void 0&&(Fe.selected=e[1]),$=new Te({props:Fe}),Z.push(()=>ce($,"selected",Ot));let Q={ctx:e,current:null,token:null,hasCatch:!0,pending:Qt,then:Yt,catch:Wt,value:11,error:29,blocks:[,,,]};return De(Ee=e[11],Q),{c(){t=k("details"),l=k("summary"),o=w(n),s=E(),r=k("button"),r.textContent="-",u=E(),i=k("div"),c=k("label"),a=w(`app-name: + `),p=k("input"),C=E(),y=k("hr"),m=E(),f=k("label"),O=w(`apkmirror-dlurl: + `),L=k("input"),S=E(),T=k("hr"),P=E(),re(N.$$.fragment),M=E(),B=k("label"),F=w(`custom: + `),_=k("input"),j=E(),I=k("hr"),H=E(),re(K.$$.fragment),X=E(),ae=k("hr"),de=E(),re($.$$.fragment),Oe=E(),U=k("hr"),x=E(),ie=k("label"),Ne=w(`patches source: + `),Y=k("input"),oe=E(),Q.block.c(),v(r,"class","float-right w-7 h-7 rounded-full border-2 border-gray-400 text-gray-400 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-50"),v(p,"id","app-name"),v(p,"type","text"),v(p,"class","border-2 rounded border-gray-300 p-0.5 w-full"),v(p,"placeholder",h=e[3]===e[2]?"Fill in app-name and apkmirror-dlurl":e[3]),v(y,"class","my-3 border-t border-gray-300"),v(L,"type","text"),v(L,"class","border-2 rounded border-gray-300 p-0.5 pl-1 w-full"),v(L,"size","60"),v(T,"class","my-3 border-t border-gray-300"),v(_,"type","text"),v(_,"class","border-2 rounded border-gray-300 p-0.5 w-20"),v(_,"placeholder","18.19.35"),v(I,"class","my-3 border-t border-gray-300"),v(ae,"class","my-3 border-t border-gray-300"),v(U,"class","my-3 border-t border-gray-300"),v(Y,"id","patches-source"),v(Y,"type","text"),v(Y,"class","border-2 rounded border-gray-300 p-0.5 pl-1 w-full"),v(Y,"size","60"),v(i,"class","select-none text-xs my-3 py-1 cursor-pointer hover:bg-gray-50 hover:border-gray-300"),v(t,"class","select-none m-3 group p-4 border-2 cursor-pointer rounded-md hover:bg-gray-50 hover:border-gray-300")},m(q,J){g(q,t,J),d(t,l),d(l,o),d(l,s),d(l,r),d(t,u),d(t,i),d(i,c),d(c,a),d(c,p),ne(p,e[6]),d(i,C),d(i,y),d(i,m),d(i,f),d(f,O),d(f,L),ne(L,e[0]),d(i,S),d(i,T),d(i,P),te(N,i,null),d(i,M),d(i,B),d(B,F),d(B,_),ne(_,e[7]),d(i,j),d(i,I),d(i,H),te(K,i,null),d(i,X),d(i,ae),d(i,de),te($,i,null),d(i,Oe),d(i,U),d(i,x),d(i,ie),d(ie,Ne),d(ie,Y),ne(Y,e[8]),d(i,oe),Q.block.m(i,Q.anchor=null),Q.mount=()=>i,Q.anchor=null,e[27](t),pe=!0,Me||(He=[W(r,"click",e[17]),W(p,"input",e[18]),W(L,"input",e[19]),W(_,"input",e[21]),W(Y,"input",e[24]),W(Y,"blur",e[13])],Me=!0)},p(q,[J]){e=q,(!pe||J&72)&&n!==(n=(e[6]?e[6]:e[3])+"")&&V(o,n),(!pe||J&12&&h!==(h=e[3]===e[2]?"Fill in app-name and apkmirror-dlurl":e[3]))&&v(p,"placeholder",h),J&64&&p.value!==e[6]&&ne(p,e[6]),J&1&&L.value!==e[0]&&ne(L,e[0]);const Pe={};!R&&J&128&&(R=!0,Pe.selected=e[7],ue(()=>R=!1)),N.$set(Pe),J&128&&_.value!==e[7]&&ne(_,e[7]);const Ke={};!A&&J&16&&(A=!0,Ke.selected=e[4],ue(()=>A=!1)),K.$set(Ke);const Ge={};!we&&J&2&&(we=!0,Ge.selected=e[1],ue(()=>we=!1)),$.$set(Ge),J&256&&Y.value!==e[8]&&ne(Y,e[8]),Q.ctx=e,J&2048&&Ee!==(Ee=e[11])&&De(Ee,Q)||vt(Q,e,J)},i(q){pe||(z(N.$$.fragment,q),z(K.$$.fragment,q),z($.$$.fragment,q),z(Q.block),pe=!0)},o(q){G(N.$$.fragment,q),G(K.$$.fragment,q),G($.$$.fragment,q);for(let J=0;J<3;J+=1){const Pe=Q.blocks[J];G(Pe)}pe=!1},d(q){q&&b(t),le(N),le(K),le($),Q.block.d(),Q.token=null,Q=null,e[27](null),Me=!1,fe(He)}}}async function Xt(e,t){const l=[];for(const n of await t)for(const o of n.compatiblePackages)if(o.name===e){const s=new Set;o.versions!==null&&o.versions.forEach(i=>{s.add(i)});const r=[...s],u={name:n.name,description:n.description,pkg_versions:r,use:n.use,patchOptions:n.options};l.push(u)}return l}function Zt(e,t,l){let{pkgName:n}=t,{reprName:o}=t,{apkmirror_dlurl:s="https://apkmirror.com/apk/"}=t,{revancedPatches:r}=t,{TOML:u}=t,i,c=[],a,p="auto",h="revanced/revanced-patches",C=r;function y(){h==="revanced/revanced-patches"?l(11,C=r):fetch(`https://raw.githubusercontent.com/${h}/HEAD/patches.json`).then(A=>l(11,C=Xt(n,A.json())))}async function m(A){for(const X of await C)A==="auto"||A==="latest"||A==="beta"?X.warn=!1:X.warn=X.pkg_versions.length!==0&&!X.pkg_versions.includes(A)}let f="",O,L=!1,S=[],{arch:T="universal"}=t;const P=()=>{O.parentNode.removeChild(O),l(9,L=!0)};function N(){a=this.value,l(6,a)}function R(){s=this.value,l(0,s)}function M(A){p=A,l(7,p)}function B(){p=this.value,l(7,p)}function F(A){i=A,l(4,i)}function _(A){T=A,l(1,T)}function j(){h=this.value,l(8,h)}function I(A){c=A,l(5,c)}function H(A){S=A,l(10,S)}function K(A){Z[A?"unshift":"push"](()=>{O=A,l(12,O)})}return e.$$set=A=>{"pkgName"in A&&l(2,n=A.pkgName),"reprName"in A&&l(3,o=A.reprName),"apkmirror_dlurl"in A&&l(0,s=A.apkmirror_dlurl),"revancedPatches"in A&&l(15,r=A.revancedPatches),"TOML"in A&&l(14,u=A.TOML),"arch"in A&&l(1,T=A.arch)},e.$$.update=()=>{e.$$.dirty&1&&l(0,s=(A=>A.startsWith("https://apkmirror.com/apk/")||A.startsWith("https://www.apkmirror.com/apk/")||A.length===0?A:"https://apkmirror.com/apk/")(s)),e.$$.dirty&128&&m(p),e.$$.dirty&69627&&C.then(A=>{const X=[],ae=[];let de;if(c.length>A.length/2){de=!1;for(const U of A){const x=`'${U.name}'`;!U.use&&c.includes(U)?X.push(x):U.use&&!c.includes(U)&&ae.push(x)}}else de=!0,c.forEach(U=>{const x=`'${U.name}'`;X.push(x)});const $=X.join(" "),we=ae.join(" ");a?l(16,f=a):l(16,f=o);const Oe=[];for(const[U,x]of Object.entries(S)){let ie=!0;for(const[Y,oe]of Object.entries(x))oe.length>0&&(ie=!1);if(ie)break;const Ne=[];for(const[Y,oe]of Object.entries(x))oe.length>0&&Ne.push({key:Y,value:oe});Oe.push({patchName:U,options:Ne})}l(14,u={"app-name":f,"apkmirror-dlurl":s,"patches-source":h,version:p,"build-mode":i,arch:T,"included-patches":$,"excluded-patches":we,"exclusive-patches":de,deleted:L,opts:Oe})})},[s,T,n,o,i,c,a,p,h,L,S,C,O,y,u,r,f,P,N,R,M,B,F,_,j,I,H,K]}class $t extends ye{constructor(t){super(),ve(this,t,Zt,Ut,be,{pkgName:2,reprName:3,apkmirror_dlurl:0,revancedPatches:15,TOML:14,arch:1})}}function nt(e,t,l){const n=e.slice();return n[13]=t[l],n[14]=t,n[15]=l,n}function rt(e,t,l){const n=e.slice();return n[16]=t[l],n}function it(e){let t,l,n,o,s,r,u,i,c,a,p,h,C,y,m,f=e[7]()+"",O,L,S;l=new Je({props:{id:"config-toml-text"}});let T=e[0],P=[];for(let N=0;NG(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;rce(t,"TOML",o)),{c(){re(t.$$.fragment)},m(r,u){te(t,r,u),n=!0},p(r,u){e=r;const i={};!l&&u&1&&(l=!0,i.TOML=e[0][e[15]],ue(()=>l=!1)),t.$set(i)},i(r){n||(z(t.$$.fragment,r),n=!0)},o(r){G(t.$$.fragment,r),n=!1},d(r){le(t,r)}}}function tl(e){return{c:D,m:D,p:D,i:D,o:D,d:D}}function ll(e){let t,l,n,o,s,r,u,i,c=e[1]?"Hide Config":"Create Config",a,p,h,C,y,m,f=e[1]&&it(e),O={ctx:e,current:null,token:null,hasCatch:!1,pending:tl,then:el,catch:xt,value:12,blocks:[,,,]};return De(e[5].then(e[8]),O),{c(){t=k("main"),l=k("p"),l.textContent="RVMM Config Generator",n=E(),o=k("div"),o.innerHTML=` + + `,s=E(),r=k("br"),u=E(),i=k("button"),a=w(c),p=E(),f&&f.c(),h=E(),O.block.c(),v(l,"class","m-4"),v(o,"class","inline-flex"),v(i,"class","m-3 mb-5 justify-center items-center space-x-2 border border-gray-300 rounded-md py-2 px-4 bg-white text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none focus:border-gray-300 focus:ring-blue active:bg-gray-50 active:text-gray-800")},m(L,S){g(L,t,S),d(t,l),d(t,n),d(t,o),d(t,s),d(t,r),d(t,u),d(t,i),d(i,a),d(t,p),f&&f.m(t,null),d(t,h),O.block.m(t,O.anchor=null),O.mount=()=>t,O.anchor=null,C=!0,y||(m=W(i,"click",e[6]),y=!0)},p(L,[S]){e=L,(!C||S&2)&&c!==(c=e[1]?"Hide Config":"Create Config")&&V(a,c),e[1]?f?(f.p(e,S),S&2&&z(f,1)):(f=it(e),f.c(),z(f,1),f.m(t,h)):f&&(ge(),G(f,1,1,()=>{f=null}),ke()),vt(O,e,S)},i(L){C||(z(f),z(O.block),C=!0)},o(L){G(f);for(let S=0;S<3;S+=1){const T=O.blocks[S];G(T)}C=!1},d(L){L&&b(t),f&&f.d(),O.block.d(),O.token=null,O=null,y=!1,m()}}}async function nl(e,t){const l=[];for(const n of await t)for(const o of n.compatiblePackages||[])if(o.name===e){const s=new Set;o.versions!==null&&o.versions.forEach(i=>{s.add(i)});const r=[...s],u={name:n.name,description:n.description,pkg_versions:r,use:n.use,patchOptions:n.options};l.push(u)}return l}function rl(e,t,l){function n(m){const f=new Set;for(const L of m)L.compatiblePackages!==null&&L.compatiblePackages.map(S=>S.name).forEach(S=>{f.add(S)});const O=[...f];return O.sort((L,S)=>{const T=o[L]!==void 0,P=o[S]!==void 0;if(T&&P)return 0;if(T)return-1;if(P)return 1}),O}const o={"com.google.android.youtube":"YouTube","tv.twitch.android.app":"Twitch","com.twitter.android":"Twitter","com.laurencedawson.reddit_sync":"Sync","com.laurencedawson.reddit_sync.pro":"Sync Pro","com.google.android.apps.youtube.music":"Music","com.rubenmayayo.reddit":"Boost","com.zhiliaoapp.musically":"Tiktok","com.reddit.frontpage":"Reddit","com.facebook.orca":"Messenger","com.instagram.android":"Instagram"};function s(m){return o[m]!==void 0?o[m]:m}const r={"com.google.android.youtube":"https://apkmirror.com/apk/google-inc/youtube/","tv.twitch.android.app":"https://apkmirror.com/apk/twitch-interactive-inc/twitch/","com.twitter.android":"https://apkmirror.com/apk/twitter-inc/twitter/","com.google.android.apps.youtube.music":"https://apkmirror.com/apk/google-inc/youtube-music/","com.zhiliaoapp.musically":"https://apkmirror.com/apk/tiktok-pte-ltd/tik-tok-including-musical-ly/","com.reddit.frontpage":"https://apkmirror.com/apk/redditinc/reddit/","com.facebook.orca":"https://apkmirror.com/apk/facebook-2/messenger/","com.instagram.android":"https://apkmirror.com/apk/instagram/instagram-instagram/"};function u(m){if(r[m]!==void 0)return r[m]}let i=[],c=!1,a=fetch("https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json").then(m=>m.json());const p=()=>{l(1,c=!c)},h=()=>{let m=[];return i.forEach(f=>{m=[...m,...f.opts]}),` +`+JSON.stringify(m,void 0,2)},C=m=>n(m);function y(m,f){e.$$.not_equal(i[f],m)&&(i[f]=m,l(0,i))}return[i,c,n,s,u,a,p,h,C,y]}class il extends ye{constructor(t){super(),ve(this,t,rl,ll,be,{})}}new il({target:document.getElementById("app")}); diff --git a/docs/assets/index-a42c899d.js b/docs/assets/index-a42c899d.js deleted file mode 100644 index dc1defd..0000000 --- a/docs/assets/index-a42c899d.js +++ /dev/null @@ -1,13 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))l(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function l(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function B(){}function Ct(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function bt(e){return e()}function We(){return Object.create(null)}function pe(e){e.forEach(bt)}function gt(e){return typeof e=="function"}function ye(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Pt(e){return Object.keys(e).length===0}function p(e,t){e.appendChild(t)}function g(e,t,n){e.insertBefore(t,n||null)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function Ee(e,t){for(let n=0;ne.removeEventListener(t,n,l)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function jt(e,t,n){const l=new Set;for(let i=0;ie.push(l))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function Et(e){return Array.from(e.childNodes)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function be(e,t){e.value=t??""}let je;function re(e){je=e}function Mt(){if(!je)throw new Error("Function called outside component initialization");return je}const ke=[],x=[];let ve=[];const Se=[],At=Promise.resolve();let Be=!1;function Lt(){Be||(Be=!0,At.then(De))}function Re(e){ve.push(e)}function ce(e){Se.push(e)}const Te=new Set;let ge=0;function De(){if(ge!==0)return;const e=je;do{try{for(;gee.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),ve=t}const Le=new Set;let de;function we(){de={r:0,c:[],p:de}}function Oe(){de.r||pe(de.c),de=de.p}function V(e,t){e&&e.i&&(Le.delete(e),e.i(t))}function H(e,t,n,l){if(e&&e.o){if(Le.has(e))return;Le.add(e),de.c.push(()=>{Le.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}function ze(e,t){const n=t.token={};function l(i,o,r,c){if(t.token!==n)return;t.resolved=c;let s=t.ctx;r!==void 0&&(s=s.slice(),s[r]=c);const u=i&&(t.current=i)(s);let f=!1;t.block&&(t.blocks?t.blocks.forEach((d,m)=>{m!==o&&d&&(we(),H(d,1,1,()=>{t.blocks[m]===d&&(t.blocks[m]=null)}),Oe())}):t.block.d(1),u.c(),V(u,1),u.m(t.mount(),t.anchor),f=!0),t.block=u,t.blocks&&(t.blocks[o]=u),f&&De()}if(Ct(e)){const i=Mt();if(e.then(o=>{re(i),l(t.then,1,t.value,o),re(null)},o=>{if(re(i),l(t.catch,2,t.error,o),re(null),!t.hasCatch)throw o}),t.current!==t.pending)return l(t.pending,0),!0}else{if(t.current!==t.then)return l(t.then,1,t.value,e),!0;t.resolved=e}}function yt(e,t,n){const l=t.slice(),{resolved:i}=e;e.current===e.then&&(l[e.value]=i),e.current===e.catch&&(l[e.error]=i),e.block.p(l,n)}function ue(e,t,n){const l=e.$$.props[t];l!==void 0&&(e.$$.bound[l]=n,n(e.$$.ctx[l]))}function ie(e){e&&e.c()}function $(e,t,n,l){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),l||Re(()=>{const r=e.$$.on_mount.map(bt).filter(gt);e.$$.on_destroy?e.$$.on_destroy.push(...r):pe(r),e.$$.on_mount=[]}),o.forEach(Re)}function ee(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),pe(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Bt(e,t){e.$$.dirty[0]===-1&&(ke.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const _=O.length?O[0]:m;return u.ctx&&i(u.ctx[d],u.ctx[d]=_)&&(!u.skip_bound&&u.bound[d]&&u.bound[d](_),f&&Bt(e,d)),m}):[],u.update(),f=!0,pe(u.before_update),u.fragment=l?l(u.ctx):!1,t.target){if(t.hydrate){const d=Et(t.target);u.fragment&&u.fragment.l(d),d.forEach(h)}else u.fragment&&u.fragment.c();t.intro&&V(e.$$.fragment),$(e,t.target,t.anchor,t.customElement),De()}re(s)}class Ce{$destroy(){ee(this,1),this.$destroy=B}$on(t,n){if(!gt(n))return B;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const i=l.indexOf(n);i!==-1&&l.splice(i,1)}}$set(t){this.$$set&&!Pt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Rt(e){let t,n,l;return{c(){t=k("button"),t.textContent="Copy",y(t,"id","cbut"),y(t,"class","transition ease-in-out hover:-translate-y-0.5 rounded-lg border w-full p-3 mb-3 items-stretch bg-gray-300 border-gray-400 text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none")},m(i,o){g(i,t,o),e[2](t),n||(l=[X(t,"mouseleave",e[3]),X(t,"click",e[4])],n=!0)},p:B,i:B,o:B,d(i){i&&h(t),e[2](null),n=!1,pe(l)}}}function zt(e,t,n){let l,{id:i}=t;function o(s){x[s?"unshift":"push"](()=>{l=s,n(1,l)})}const r=()=>{l.textContent!=="Copy"&&n(1,l.textContent="Copy",l)},c=()=>{navigator.clipboard.writeText(document.getElementById(i).innerText),l.textContent!=="Copied ✔"&&n(1,l.textContent="Copied ✔",l)};return e.$$set=s=>{"id"in s&&n(0,i=s.id)},[i,l,o,r,c]}class Ye extends Ce{constructor(t){super(),Ne(this,t,zt,Rt,ye,{id:0})}}function Qe(e,t,n){const l=e.slice();return l[6]=t[n],l[7]=t,l[8]=n,l}function Ue(e){let t,n,l,i=e[0].patchOptions,o=[];for(let r=0;rn(3,r=!r),s=(u,f,d,m)=>{n(0,f[d].value=m.target.value,l),n(0,f[d].is_selected=!0,l),o[l.name]===void 0&&n(1,o[l.name]={},o),o[l.name][u.key]===void 0&&n(1,o[l.name][u.key]=[],o),n(1,o[l.name][u.key]=u.value,o)};return e.$$set=u=>{"patch"in u&&n(0,l=u.patch),"optionName"in u&&n(2,i=u.optionName),"selectedOpts"in u&&n(1,o=u.selectedOpts)},[l,o,i,r,c,s]}class Vt extends Ce{constructor(t){super(),Ne(this,t,It,Dt,ye,{patch:0,optionName:2,selectedOpts:1})}}function Ze(e,t,n){const l=e.slice();return l[12]=t[n],l}function xe(e){let t,n,l,i,o,r,c,s,u,f,d=e[3],m=[];for(let _=0;_H(m[_],1,1,()=>{m[_]=null});return{c(){t=k("p"),n=k("button"),l=N(e[5]),i=C(),o=k("div"),r=k("div"),c=k("p");for(let _=0;_ue(n,"selectedOpts",o)),{c(){t=k("p"),ie(n.$$.fragment),y(t,"class","ml-6")},m(c,s){g(c,t,s),$(n,t,null),i=!0},p(c,s){const u={};s&8&&(u.patch=c[12]),!l&&s&2&&(l=!0,u.selectedOpts=c[1],ce(()=>l=!1)),n.$set(u)},i(c){i||(V(n.$$.fragment,c),i=!0)},o(c){H(n.$$.fragment,c),i=!1},d(c){c&&h(t),ee(n)}}}function tt(e){let t,n,l,i=!1,o,r,c=e[12].name+"",s,u,f,d,m,O,_,b=e[12].description+"",v,P,R,T,D,A,E,J,M,S=e[12].warn!==void 0&&e[12].warn&&$e();function I(a,w){return a[12].pkg_versions.length>0?Kt:Ft}let F=I(e),z=F(e),L=e[12].patchOptions.length>0&&et(e);return E=vt(e[9][0]),{c(){t=k("label"),n=k("input"),o=C(),r=k("span"),s=N(c),u=C(),S&&S.c(),f=C(),d=k("p"),z.c(),m=C(),O=k("p"),_=N("- "),v=N(b),P=C(),L&&L.c(),R=C(),T=k("div"),D=C(),y(n,"type","checkbox"),n.__value=l=e[12],n.value=n.__value,y(d,"class","ml-6"),y(O,"class","font-bold font-mono ml-6"),y(T,"class","pb-2"),y(t,"class","items-center"),E.p(n)},m(a,w){g(a,t,w),p(t,n),n.checked=~(e[0]||[]).indexOf(n.__value),p(t,o),p(t,r),p(r,s),p(r,u),S&&S.m(r,null),p(r,f),p(r,d),z.m(d,null),p(t,m),p(t,O),p(O,_),p(O,v),p(t,P),L&&L.m(t,null),p(t,R),p(t,T),p(t,D),A=!0,J||(M=X(n,"change",e[8]),J=!0)},p(a,w){(!A||w&8&&l!==(l=a[12]))&&(n.__value=l,n.value=n.__value,i=!0),(i||w&9)&&(n.checked=~(a[0]||[]).indexOf(n.__value)),(!A||w&8)&&c!==(c=a[12].name+"")&&G(s,c),a[12].warn!==void 0&&a[12].warn?S||(S=$e(),S.c(),S.m(r,f)):S&&(S.d(1),S=null),F===(F=I(a))&&z?z.p(a,w):(z.d(1),z=F(a),z&&(z.c(),z.m(d,null))),(!A||w&8)&&b!==(b=a[12].description+"")&&G(v,b),a[12].patchOptions.length>0?L?(L.p(a,w),w&8&&V(L,1)):(L=et(a),L.c(),V(L,1),L.m(t,R)):L&&(we(),H(L,1,1,()=>{L=null}),Oe())},i(a){A||(V(L),A=!0)},o(a){H(L),A=!1},d(a){a&&h(t),S&&S.d(),z.d(),L&&L.d(),E.r(),J=!1,M()}}}function Gt(e){let t,n,l,i,o,r,c,s,u=e[4]&&xe(e);return{c(){t=k("div"),n=k("button"),l=k("span"),i=N(e[2]),o=C(),u&&u.c(),y(n,"class","inline-flex justify-center items-center space-x-2 border border-gray-300 rounded-md py-2 px-4 bg-white text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none focus:border-gray-300 focus:ring-blue active:bg-gray-50 active:text-gray-800"),y(t,"class","relative inline-block text-left")},m(f,d){g(f,t,d),p(t,n),p(n,l),p(l,i),p(t,o),u&&u.m(t,null),r=!0,c||(s=X(n,"click",e[7]),c=!0)},p(f,[d]){(!r||d&4)&&G(i,f[2]),f[4]?u?(u.p(f,d),d&16&&V(u,1)):(u=xe(f),u.c(),V(u,1),u.m(t,null)):u&&(we(),H(u,1,1,()=>{u=null}),Oe())},i(f){r||(V(u),r=!0)},o(f){H(u),r=!1},d(f){f&&h(t),u&&u.d(),c=!1,s()}}}function Ht(e,t,n){let{optionName:l}=t,{options:i}=t,o=!1,{selected:r=[]}=t;const c=()=>{for(const b of i)b.excluded||r.push(b)};c();const s=()=>{u==="Deselect All"?(n(0,r.length=0,r),n(5,u="Select Default")):(n(0,r.length=0,r),c(),n(5,u="Deselect All"))};let u="Deselect All",{selectedOpts:f}=t;const d=[[]],m=()=>n(4,o=!o);function O(){r=jt(d[0],this.__value,this.checked),n(0,r)}function _(b){f=b,n(1,f)}return e.$$set=b=>{"optionName"in b&&n(2,l=b.optionName),"options"in b&&n(3,i=b.options),"selected"in b&&n(0,r=b.selected),"selectedOpts"in b&&n(1,f=b.selectedOpts)},[r,f,l,i,o,u,s,m,O,d,_]}class Jt extends Ce{constructor(t){super(),Ne(this,t,Ht,Gt,ye,{optionName:2,options:3,selected:0,selectedOpts:1})}}function nt(e,t,n){const l=e.slice();return l[7]=t[n],l}function lt(e){let t,n,l,i=e[2],o=[];for(let r=0;rn(3,r=!r);function u(){o=this.__value,n(0,o)}return e.$$set=f=>{"optionName"in f&&n(1,l=f.optionName),"options"in f&&n(2,i=f.options),"selected"in f&&n(0,o=f.selected)},[o,l,i,r,s,u,c]}class Ae extends Ce{constructor(t){super(),Ne(this,t,Wt,qt,ye,{optionName:1,options:2,selected:0})}}function Yt(e){return{c:B,m:B,p:B,i:B,o:B,d:B}}function Qt(e){let t,n,l,i,o,r;function c(f){e[23](f)}function s(f){e[24](f)}let u={optionName:"patches",options:e[11]};return e[5]!==void 0&&(u.selected=e[5]),e[10]!==void 0&&(u.selectedOpts=e[10]),l=new Jt({props:u}),x.push(()=>ue(l,"selected",c)),x.push(()=>ue(l,"selectedOpts",s)),{c(){t=k("hr"),n=C(),ie(l.$$.fragment),y(t,"class","my-3 border-t border-gray-300")},m(f,d){g(f,t,d),g(f,n,d),$(l,f,d),r=!0},p(f,d){const m={};d&2048&&(m.options=f[11]),!i&&d&32&&(i=!0,m.selected=f[5],ce(()=>i=!1)),!o&&d&1024&&(o=!0,m.selectedOpts=f[10],ce(()=>o=!1)),l.$set(m)},i(f){r||(V(l.$$.fragment,f),r=!0)},o(f){H(l.$$.fragment,f),r=!1},d(f){f&&h(t),f&&h(n),ee(l,f)}}}function Ut(e){return{c:B,m:B,p:B,i:B,o:B,d:B}}function Xt(e){let t,n,l,i,o,r,c,s,u,f,d,m,O,_,b,v,P,R,T,D,A,E,J,M,S,I,F,z,L,a,w,j,Y,te,q,oe,fe,ne,se,Q,me,Z,ae,le,_e,Pe;function he(K){e[18](K)}let Ve={optionName:"version",options:["auto","latest","beta"]};e[7]!==void 0&&(Ve.selected=e[7]),A=new Ae({props:Ve}),x.push(()=>ue(A,"selected",he));function wt(K){e[20](K)}let Fe={optionName:"build-mode",options:["apk","both","module"]};e[4]!==void 0&&(Fe.selected=e[4]),a=new Ae({props:Fe}),x.push(()=>ue(a,"selected",wt));function Ot(K){e[21](K)}let Ke={optionName:"apkmirror arch",options:["universal","arm64-v8a","arm-v7a","both"]};e[1]!==void 0&&(Ke.selected=e[1]),q=new Ae({props:Ke}),x.push(()=>ue(q,"selected",Ot));function Nt(K){e[22](K)}let Ge={optionName:"patches source",options:["revanced","revanced extended"]};e[8]!==void 0&&(Ge.selected=e[8]),Q=new Ae({props:Ge}),x.push(()=>ue(Q,"selected",Nt));let U={ctx:e,current:null,token:null,hasCatch:!1,pending:Ut,then:Qt,catch:Yt,value:11,blocks:[,,,]};return ze(ae=e[11],U),{c(){t=k("details"),n=k("summary"),l=N(e[3]),i=C(),o=k("button"),o.textContent="-",r=C(),c=k("div"),s=k("label"),u=N(`app-name: - `),f=k("input"),m=C(),O=k("hr"),_=C(),b=k("label"),v=N(`apkmirror-dlurl: - `),P=k("input"),R=C(),T=k("hr"),D=C(),ie(A.$$.fragment),J=C(),M=k("label"),S=N(`custom: - `),I=k("input"),F=C(),z=k("hr"),L=C(),ie(a.$$.fragment),j=C(),Y=k("hr"),te=C(),ie(q.$$.fragment),fe=C(),ne=k("hr"),se=C(),ie(Q.$$.fragment),Z=C(),U.block.c(),y(o,"class","float-right w-7 h-7 rounded-full border-2 border-gray-400 text-gray-400 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-50"),y(f,"type","text"),y(f,"class","border-2 rounded border-gray-300 p-0.5 w-80"),y(f,"placeholder",d=e[3]===e[2]?"Fill in app-name to include in the config":e[3]),y(O,"class","my-3 border-t border-gray-300"),y(P,"type","text"),y(P,"class","border-2 rounded border-gray-300 p-0.5 pl-1 max-w-fit"),y(P,"size","60"),y(T,"class","my-3 border-t border-gray-300"),y(I,"type","text"),y(I,"class","border-2 rounded border-gray-300 p-0.5"),y(I,"placeholder","18.19.35"),y(z,"class","my-3 border-t border-gray-300"),y(Y,"class","my-3 border-t border-gray-300"),y(ne,"class","my-3 border-t border-gray-300"),y(c,"class","select-none text-xs my-3 py-1 cursor-pointer hover:bg-gray-50 hover:border-gray-300"),y(t,"class","select-none m-3 group p-4 border-2 cursor-pointer rounded-md hover:bg-gray-50 hover:border-gray-300")},m(K,W){g(K,t,W),p(t,n),p(n,l),p(n,i),p(n,o),p(t,r),p(t,c),p(c,s),p(s,u),p(s,f),be(f,e[6]),p(c,m),p(c,O),p(c,_),p(c,b),p(b,v),p(b,P),be(P,e[0]),p(c,R),p(c,T),p(c,D),$(A,c,null),p(c,J),p(c,M),p(M,S),p(M,I),be(I,e[7]),p(c,F),p(c,z),p(c,L),$(a,c,null),p(c,j),p(c,Y),p(c,te),$(q,c,null),p(c,fe),p(c,ne),p(c,se),$(Q,c,null),p(c,Z),U.block.m(c,U.anchor=null),U.mount=()=>c,U.anchor=null,e[25](t),le=!0,_e||(Pe=[X(o,"click",e[15]),X(f,"input",e[16]),X(P,"input",e[17]),X(I,"input",e[19])],_e=!0)},p(K,[W]){e=K,(!le||W&8)&&G(l,e[3]),(!le||W&12&&d!==(d=e[3]===e[2]?"Fill in app-name to include in the config":e[3]))&&y(f,"placeholder",d),W&64&&f.value!==e[6]&&be(f,e[6]),W&1&&P.value!==e[0]&&be(P,e[0]);const Me={};!E&&W&128&&(E=!0,Me.selected=e[7],ce(()=>E=!1)),A.$set(Me),W&128&&I.value!==e[7]&&be(I,e[7]);const He={};!w&&W&16&&(w=!0,He.selected=e[4],ce(()=>w=!1)),a.$set(He);const Je={};!oe&&W&2&&(oe=!0,Je.selected=e[1],ce(()=>oe=!1)),q.$set(Je);const qe={};!me&&W&256&&(me=!0,qe.selected=e[8],ce(()=>me=!1)),Q.$set(qe),U.ctx=e,W&2048&&ae!==(ae=e[11])&&ze(ae,U)||yt(U,e,W)},i(K){le||(V(A.$$.fragment,K),V(a.$$.fragment,K),V(q.$$.fragment,K),V(Q.$$.fragment,K),V(U.block),le=!0)},o(K){H(A.$$.fragment,K),H(a.$$.fragment,K),H(q.$$.fragment,K),H(Q.$$.fragment,K);for(let W=0;W<3;W+=1){const Me=U.blocks[W];H(Me)}le=!1},d(K){K&&h(t),ee(A),ee(a),ee(q),ee(Q),U.block.d(),U.token=null,U=null,e[25](null),_e=!1,pe(Pe)}}}function Zt(e,t,n){let l,{pkgName:i}=t,{reprName:o}=t,{apkmirror_dlurl:r="https://apkmirror.com/apk/"}=t,{revancedPatches:c}=t,s,{TOML:u}=t,f,d=[],m,O="auto",_="revanced";async function b(j){if(j=="revanced")return c;if(s!==void 0)return s;const Y=fetch("https://raw.githubusercontent.com/inotia00/revanced-patches/revanced-extended/patches.json").then(q=>q.json()),te=[];for(const q of await Y)for(const oe of q.compatiblePackages)if(oe.name===i){const fe=new Set;oe.versions.forEach(Q=>{fe.add(Q)});const ne=[...fe],se={name:q.name,description:q.description,pkg_versions:ne,excluded:q.excluded,patchOptions:q.options};te.push(se)}return s=te,te}async function v(j){for(const Y of await l)j==="auto"||j==="latest"||j==="beta"?Y.warn=!1:Y.warn=Y.pkg_versions.length!==0&&!Y.pkg_versions.includes(j)}let P,R=!1,T,{arch:D="universal"}=t;const A=()=>{P.parentNode.removeChild(P),n(9,R=!0)};function E(){m=this.value,n(6,m)}function J(){r=this.value,n(0,r)}function M(j){O=j,n(7,O)}function S(){O=this.value,n(7,O)}function I(j){f=j,n(4,f)}function F(j){D=j,n(1,D)}function z(j){_=j,n(8,_)}function L(j){d=j,n(5,d)}function a(j){T=j,n(10,T)}function w(j){x[j?"unshift":"push"](()=>{P=j,n(12,P)})}return e.$$set=j=>{"pkgName"in j&&n(2,i=j.pkgName),"reprName"in j&&n(3,o=j.reprName),"apkmirror_dlurl"in j&&n(0,r=j.apkmirror_dlurl),"revancedPatches"in j&&n(14,c=j.revancedPatches),"TOML"in j&&n(13,u=j.TOML),"arch"in j&&n(1,D=j.arch)},e.$$.update=()=>{e.$$.dirty&1&&n(0,r=(j=>j.startsWith("https://apkmirror.com/apk/")||j.length===0?j:"https://apkmirror.com/apk/")(r)),e.$$.dirty&256&&n(11,l=b(_)),e.$$.dirty&128&&v(O),e.$$.dirty&4091&&l.then(j=>{const Y=[],te=[];let q;if(d.length>j.length*.5){q=!1;for(const Z of j)Z.excluded&&d.includes(Z)?Y.push(Z.name):!Z.excluded&&!d.includes(Z)&&te.push(Z.name)}else q=!0,d.forEach(Z=>Y.push(Z.name));const oe=Y.join(" "),fe=te.join(" ");let ne;m===void 0||m===""?ne=o:ne=m;let se,Q;_==="revanced extended"?(se="inotia00/revanced-patches",Q="inotia00/revanced-integrations"):(se="",Q="");const me=[];if(T!==void 0)for(const[Z,ae]of Object.entries(T)){let le=!0;for(const[Pe,he]of Object.entries(ae))he.length>0&&(le=!1);if(le)break;const _e=[];for(const[Pe,he]of Object.entries(ae))he.length>0&&_e.push({key:Pe,value:he});me.push({patchName:Z,options:_e})}n(13,u={["app-name"]:ne,["apkmirror-dlurl"]:r,["patches-source"]:se,["integrations-source"]:Q,version:O,["build-mode"]:f,arch:D,["included-patches"]:oe,["excluded-patches"]:fe,["exclusive-patches"]:q,deleted:R,opts:me})})},[r,D,i,o,f,d,m,O,_,R,T,l,P,u,c,A,E,J,M,S,I,F,z,L,a,w]}class xt extends Ce{constructor(t){super(),Ne(this,t,Zt,Xt,ye,{pkgName:2,reprName:3,apkmirror_dlurl:0,revancedPatches:14,TOML:13,arch:1})}}function it(e,t,n){const l=e.slice();return l[12]=t[n],l[13]=t,l[14]=n,l}function ot(e,t,n){const l=e.slice();return l[15]=t[n],l}function st(e){let t,n,l,i,o,r,c,s,u,f,d,m,O,_,b,v=e[8]()+"",P,R,T;n=new Ye({props:{id:"config-toml-text"}});let D=e[1],A=[];for(let E=0;EH(i[r],1,1,()=>{i[r]=null});return{c(){for(let r=0;rue(t,"TOML",i)),{c(){ie(t.$$.fragment)},m(r,c){$(t,r,c),l=!0},p(r,c){e=r;const s={};!n&&c&2&&(n=!0,s.TOML=e[1][e[14]],ce(()=>n=!1)),t.$set(s)},i(r){l||(V(t.$$.fragment,r),l=!0)},o(r){H(t.$$.fragment,r),l=!1},d(r){ee(t,r)}}}function tn(e){return{c:B,m:B,p:B,i:B,o:B,d:B}}function nn(e){let t,n,l,i,o,r,c,s,u=e[2]?"Hide Config":"Create Config",f,d,m,O,_,b,v=e[2]&&st(e),P={ctx:e,current:null,token:null,hasCatch:!1,pending:tn,then:en,catch:$t,value:6,blocks:[,,,]};return ze(e[6],P),{c(){t=k("main"),n=k("p"),n.textContent="RVMM Config Generator",l=C(),i=k("div"),i.innerHTML=` - - `,o=C(),r=k("br"),c=C(),s=k("button"),f=N(u),d=C(),v&&v.c(),m=C(),P.block.c(),y(n,"class","m-4"),y(i,"class","inline-flex"),y(s,"class","m-3 mb-5 justify-center items-center space-x-2 border border-gray-300 rounded-md py-2 px-4 bg-white text-sm leading-5 font-medium text-gray-900 hover:text-gray-600 focus:outline-none focus:border-gray-300 focus:ring-blue active:bg-gray-50 active:text-gray-800")},m(R,T){g(R,t,T),p(t,n),p(t,l),p(t,i),p(t,o),p(t,r),p(t,c),p(t,s),p(s,f),p(t,d),v&&v.m(t,null),p(t,m),P.block.m(t,P.anchor=null),P.mount=()=>t,P.anchor=null,O=!0,_||(b=X(s,"click",e[7]),_=!0)},p(R,[T]){e=R,(!O||T&4)&&u!==(u=e[2]?"Hide Config":"Create Config")&&G(f,u),e[2]?v?(v.p(e,T),T&4&&V(v,1)):(v=st(e),v.c(),V(v,1),v.m(t,m)):v&&(we(),H(v,1,1,()=>{v=null}),Oe()),yt(P,e,T)},i(R){O||(V(v),V(P.block),O=!0)},o(R){H(v);for(let T=0;T<3;T+=1){const D=P.blocks[T];H(D)}O=!1},d(R){R&&h(t),v&&v.d(),P.block.d(),P.token=null,P=null,_=!1,b()}}}async function Ie(e,t){const n=[];for(const l of t)for(const i of l.compatiblePackages)if(i.name===e){const o=new Set;i.versions.forEach(s=>{o.add(s)});const r=[...o],c={name:l.name,description:l.description,pkg_versions:r,excluded:l.excluded,patchOptions:l.options};n.push(c)}return n}function ln(e,t,n){const l=fetch("https://raw.githubusercontent.com/revanced/revanced-patches/main/patches.json").then(_=>_.json());function i(_){const b=new Set;for(const P of _)P.compatiblePackages.map(R=>R.name).forEach(R=>{b.add(R)});const v=[...b];return v.sort((P,R)=>{const T=o[P]!==void 0,D=o[R]!==void 0;if(T&&D)return 0;if(T)return-1;if(D)return 1}),v}const o={"com.google.android.youtube":"YouTube","tv.twitch.android.app":"Twitch","com.twitter.android":"Twitter","com.laurencedawson.reddit_sync":"Sync","com.laurencedawson.reddit_sync.pro":"Sync Pro","com.google.android.apps.youtube.music":"Music","com.rubenmayayo.reddit":"Boost","com.zhiliaoapp.musically":"Tiktok","com.reddit.frontpage":"Reddit","com.facebook.orca":"Messenger","com.instagram.android":"Instagram"};function r(_){return o[_]!==void 0?o[_]:_}const c={"com.google.android.youtube":"https://apkmirror.com/apk/google-inc/youtube/","tv.twitch.android.app":"https://apkmirror.com/apk/twitch-interactive-inc/twitch/","com.twitter.android":"https://apkmirror.com/apk/twitter-inc/twitter/","com.google.android.apps.youtube.music":"https://apkmirror.com/apk/google-inc/youtube-music/","com.zhiliaoapp.musically":"https://apkmirror.com/apk/tiktok-pte-ltd/tik-tok-including-musical-ly/","com.reddit.frontpage":"https://apkmirror.com/apk/redditinc/reddit/","com.facebook.orca":"https://apkmirror.com/apk/facebook-2/messenger/","com.instagram.android":"https://apkmirror.com/apk/instagram/"};function s(_){if(c[_]!==void 0)return c[_]}let u=[],f=!1;const d=()=>{n(2,f=!f)},m=()=>{let _=[];return u.forEach(b=>{_=[..._,...b.opts]}),` -`+JSON.stringify(_,void 0,2)};function O(_,b){e.$$.not_equal(u[b],_)&&(u[b]=_,n(1,u))}return[Ie,u,f,i,r,s,l,d,m,O]}class rn extends Ce{constructor(t){super(),Ne(this,t,ln,nn,ye,{getPatches:0})}get getPatches(){return Ie}}new rn({target:document.getElementById("app")}); diff --git a/docs/assets/index-e7f895a0.css b/docs/assets/index-e7f895a0.css new file mode 100644 index 0000000..83874b9 --- /dev/null +++ b/docs/assets/index-e7f895a0.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\!visible{visibility:visible!important}.visible{visibility:visible}.relative{position:relative}.float-right{float:right}.m-3{margin:.75rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-0{margin-top:0;margin-bottom:0}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-5{margin-bottom:1.25rem}.ml-6{margin-left:1.5rem}.mr-3{margin-right:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-7{height:1.75rem}.w-20{width:5rem}.w-7{width:1.75rem}.w-80{width:20rem}.w-full{width:100%}.w-screen{width:100vw}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-2{padding-bottom:.5rem}.pl-1{padding-left:.25rem}.pr-1{padding-right:.25rem}.text-left{text-align:left}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.leading-5{line-height:1.25rem}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:-translate-y-0:hover{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:border-gray-300:focus{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:bg-gray-50:active{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.active\:text-gray-800:active{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))} diff --git a/docs/index.html b/docs/index.html index c808fd9..a13269a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,8 +5,8 @@ RVMM Config Generator - - + +