From d022af795b3ff6e35bb4d57db74c2028cf9b2b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Mon, 27 Mar 2023 22:50:20 +0000 Subject: [PATCH] Should be the final version before the batch... mode is functional. --- dist/web.js.txt | 4 +-- src/core/common.js | 4 +-- src/core/index.js | 77 ++++++++++++++++++++++++++++++++++++++++------ src/web/index.htm | 2 +- src/web/index.js | 14 ++++++--- 5 files changed, 82 insertions(+), 19 deletions(-) diff --git a/dist/web.js.txt b/dist/web.js.txt index 9db5040..e558b24 100644 --- a/dist/web.js.txt +++ b/dist/web.js.txt @@ -1,5 +1,5 @@ -"use strict";(()=>{var In={name:"Painted Palette",ver:"0.0.9"};var Dn=function(b){let C=`${Math.floor(b%1*100)}`.padStart(2,"0"),w=`${Math.floor(b%60)}`.padStart(2,"0"),m=`${Math.floor(b/60)%60}`.padStart(2,"0"),$e=`${Math.floor(b/3600)%24}`.padStart(2,"0");return`${`${Math.floor(b/86400)}`}d ${$e}:${m}:${w}.${C}`},zn=function(b){b=Math.round(b*1e4)/100;let C=`${Math.floor(b)}`,w=`${Math.floor(b*100%100)}`.padStart(2,"0");return`${C}.${w}%`};(()=>{var b=!1,C=!1,w=[],m=-1;function $e(e){ft(e)}function ft(e){w.includes(e)||w.push(e),qn()}function dt(e){let t=w.indexOf(e);t!==-1&&t>m&&w.splice(t,1)}function qn(){!C&&!b&&(b=!0,queueMicrotask(Bn))}function Bn(){b=!1,C=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Ce?$e(n):n()}}),pt=e.raw}function _t(e){q=e}function Un(e){let t=()=>{};return[n=>{let r=q(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(i=>i())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),H(r))},r},()=>{t()}]}var ht=[],mt=[],gt=[];function Vn(e){gt.push(e)}function xt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,mt.push(t))}function Kn(e){ht.push(e)}function Hn(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function vt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var je=new MutationObserver(Te),Me=!1;function Ne(){je.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Me=!0}function yt(){Jn(),je.disconnect(),Me=!1}var J=[],Pe=!1;function Jn(){J=J.concat(je.takeRecords()),J.length&&!Pe&&(Pe=!0,queueMicrotask(()=>{Zn(),Pe=!1}))}function Zn(){Te(J),J.length=0}function v(e){if(!Me)return e();yt();let t=e();return Ne(),t}var Le=!1,ae=[];function Yn(){Le=!0}function Gn(){Le=!1,Te(ae),ae=[]}function Te(e){if(Le){ae=ae.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,l=e[o].attributeName,s=e[o].oldValue,u=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:l,value:a.getAttribute(l)})},c=()=>{i.has(a)||i.set(a,[]),i.get(a).push(l)};a.hasAttribute(l)&&s===null?u():a.hasAttribute(l)?(c(),u()):c()}i.forEach((o,a)=>{vt(a,o)}),r.forEach((o,a)=>{ht.forEach(l=>l(a,o))});for(let o of n)if(!t.includes(o)&&(mt.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,gt.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function bt(e){return Y(B(e))}function Z(e,t,n){return e._x_dataStack=[t,...B(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function wt(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function B(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function Y(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,l=o.set,s=o;a=a&&a.bind(t),l=l&&l.bind(t),a&&(a._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(i,r,{...s,get:a,set:l})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function Et(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:l}])=>{if(l===!1||a===void 0)return;let s=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,s,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,s)})};return n(e)}function At(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Qn(r,i),a=>Ot(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,l)=>{let s=r.initialize(o,a,l);return n.initialValue=s,i(o,a,l)}}else n.initialValue=r;return n}}function Qn(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Ot(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ot(e[t[0]],t.slice(1),n)}}var St={};function O(e,t){St[e]=t}function Re(e,t){return Object.entries(St).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=Mt(t);return i={interceptor:At,...i},xt(t,o),r(t,i)},enumerable:!1})}),e}function Xn(e,t,n,...r){try{return n(...r)}catch(i){G(i,e,t)}}function G(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} +"use strict";(()=>{var Dn={name:"Painted Palette",ver:"0.0.9"};var zn=function(b=0){let C=`${Math.floor(b%1*100)}`.padStart(2,"0"),w=`${Math.floor(b%60)}`.padStart(2,"0"),_=`${Math.floor(b/60)%60}`.padStart(2,"0"),Ce=`${Math.floor(b/3600)%24}`.padStart(2,"0");return`${`${Math.floor(b/86400)}`}d ${Ce}:${_}:${w}.${C}`},$e=function(b=0){b=Math.round(b*1e4)/100;let C=`${Math.floor(b)}`,w=`${Math.floor(b*100%100)}`.padStart(2,"0");return`${C}.${w}%`};(()=>{var b=!1,C=!1,w=[],_=-1;function Ce(e){dt(e)}function dt(e){w.includes(e)||w.push(e),qn()}function pt(e){let t=w.indexOf(e);t!==-1&&t>_&&w.splice(t,1)}function qn(){!C&&!b&&(b=!0,queueMicrotask(Bn))}function Bn(){b=!1,C=!0;for(let e=0;ee.effect(t,{scheduler:n=>{je?Ce(n):n()}}),_t=e.raw}function ht(e){q=e}function Un(e){let t=()=>{};return[n=>{let r=q(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(i=>i())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),H(r))},r},()=>{t()}]}var mt=[],gt=[],xt=[];function Vn(e){xt.push(e)}function vt(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,gt.push(t))}function Kn(e){mt.push(e)}function Hn(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function yt(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Me=new MutationObserver(Re),Ne=!1;function Pe(){Me.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ne=!0}function bt(){Jn(),Me.disconnect(),Ne=!1}var J=[],Le=!1;function Jn(){J=J.concat(Me.takeRecords()),J.length&&!Le&&(Le=!0,queueMicrotask(()=>{Zn(),Le=!1}))}function Zn(){Re(J),J.length=0}function v(e){if(!Ne)return e();bt();let t=e();return Pe(),t}var Te=!1,ae=[];function Yn(){Te=!0}function Gn(){Te=!1,Re(ae),ae=[]}function Re(e){if(Te){ae=ae.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,l=e[o].attributeName,s=e[o].oldValue,u=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:l,value:a.getAttribute(l)})},c=()=>{i.has(a)||i.set(a,[]),i.get(a).push(l)};a.hasAttribute(l)&&s===null?u():a.hasAttribute(l)?(c(),u()):c()}i.forEach((o,a)=>{yt(a,o)}),r.forEach((o,a)=>{mt.forEach(l=>l(a,o))});for(let o of n)if(!t.includes(o)&&(gt.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,xt.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function wt(e){return Y(B(e))}function Z(e,t,n){return e._x_dataStack=[t,...B(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Et(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function B(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?B(e.host):e.parentNode?B(e.parentNode):[]}function Y(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,l=o.set,s=o;a=a&&a.bind(t),l=l&&l.bind(t),a&&(a._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(i,r,{...s,get:a,set:l})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function At(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:l}])=>{if(l===!1||a===void 0)return;let s=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,s,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,s)})};return n(e)}function kt(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>Qn(r,i),a=>Ot(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,l)=>{let s=r.initialize(o,a,l);return n.initialValue=s,i(o,a,l)}}else n.initialValue=r;return n}}function Qn(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Ot(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Ot(e[t[0]],t.slice(1),n)}}var St={};function k(e,t){St[e]=t}function Ie(e,t){return Object.entries(St).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=Nt(t);return i={interceptor:kt,...i},vt(t,o),r(t,i)},enumerable:!1})}),e}function Xn(e,t,n,...r){try{return n(...r)}catch(i){G(i,e,t)}}function G(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}var le=!0;function er(e){let t=le;le=!1,e(),le=t}function W(e,t,n={}){let r;return E(e,t)(i=>r=i,n),r}function E(...e){return kt(...e)}var kt=$t;function tr(e){kt=e}function $t(e,t){let n={};Re(n,e);let r=[n,...B(e)],i=typeof t=="function"?nr(r,t):ir(r,t,e);return Xn.bind(null,e,t,i)}function nr(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(Y([r,...e]),i);se(n,o)}}var Ie={};function rr(e,t){if(Ie[e])return Ie[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,i=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(o){return G(o,t,e),Promise.resolve()}})();return Ie[e]=i,i}function ir(e,t,n){let r=rr(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let l=Y([o,...e]);if(typeof r=="function"){let s=r(r,l).catch(u=>G(u,n,t));r.finished?(se(i,r.result,l,a,n),r.result=void 0):s.then(u=>{se(i,u,l,a,n)}).catch(u=>G(u,n,t)).finally(()=>r.result=void 0)}}}function se(e,t,n,r,i){if(le&&typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>se(e,a,n,r)).catch(a=>G(a,i,t)):e(o)}else typeof t=="object"&&t instanceof Promise?t.then(o=>e(o)):e(t)}var De="x-";function F(e=""){return De+e}function or(e){De=e}var ze={};function g(e,t){return ze[e]=t,{before(n){if(!ze[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let r=T.indexOf(n);T.splice(r>=0?r:T.indexOf("DEFAULT"),0,e)}}}function qe(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let i=Object.entries(e._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),o=Ct(i);i=i.map(a=>o.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(i)}let r={};return t.map(Lt((i,o)=>r[i]=o)).filter(Rt).map(sr(r,n)).sort(ur).map(i=>lr(e,i))}function Ct(e){return Array.from(e).map(Lt()).filter(t=>!Rt(t))}var Be=!1,Q=new Map,jt=Symbol();function ar(e){Be=!0;let t=Symbol();jt=t,Q.set(t,[]);let n=()=>{for(;Q.get(t).length;)Q.get(t).shift()();Q.delete(t)},r=()=>{Be=!1,n()};e(n),r()}function Mt(e){let t=[],n=o=>t.push(o),[r,i]=Un(e);return t.push(i),[{Alpine:re,effect:r,cleanup:n,evaluateLater:E.bind(E,e),evaluate:W.bind(W,e)},()=>t.forEach(o=>o())]}function lr(e,t){let n=()=>{},r=ze[t.type]||n,[i,o]=Mt(e);Hn(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),Be?Q.get(jt).push(r):r())};return a.runCleanups=o,a}var Nt=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),Pt=e=>e;function Lt(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=Tt.reduce((o,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var Tt=[];function We(e){Tt.push(e)}function Rt({name:e}){return It().test(e)}var It=()=>new RegExp(`^${De}([^:^.]+)\\b`);function sr(e,t){return({name:n,value:r})=>{let i=n.match(It()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(s=>s.replace(".","")),expression:r,original:l}}}var Fe="DEFAULT",T=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",Fe,"teleport"];function ur(e,t){let n=T.indexOf(e.type)===-1?Fe:e.type,r=T.indexOf(t.type)===-1?Fe:t.type;return T.indexOf(n)-T.indexOf(r)}function X(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function j(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>j(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)j(r,t,!1),r=r.nextElementSibling}function U(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function cr(){document.body||U("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `
AccountNext inActivePlacedFocusActions
IP info
ProxyIPCountryASNAS Name
IPCountryASNAS Name
Managed Stats
Canvasx, x ()
Finished
Sensitivity
Power
Accounts0
Active
Magazine
Banned0
Fresh0
Placed Pixels0
Uptime0d 00:00:00

About

Version
Runtime
OS
Developed byLumière Élevé
Tested byLumière Élevé
Fauli1221
Starshine
Produced byLightingale Community
+Painted Palette Web UI
AccountNext inActivePlacedFocusActions
IP info
ProxyIPCountryASNAS Name
IPCountryASNAS Name
Managed Stats
Canvasx, x ()
Finished/ ()
Sensitivity
Power
Accounts0
Active
Magazine
Banned0
Fresh0
Placed Pixels0
Uptime0d 00:00:00

About

Version
Runtime
OS
Developed byLumière Élevé
Tested byLumière Élevé
Fauli1221
Starshine
Produced byLightingale Community
diff --git a/src/web/index.js b/src/web/index.js index c4be86c..f58e4d6 100644 --- a/src/web/index.js +++ b/src/web/index.js @@ -32,11 +32,15 @@ document.addEventListener("alpine:init", () => { sensitivity: humanizedPercentage(data.bot.sen), maxOn: data.bot.mag, pixels: data.bot.px, - ctw: data.ct.w, - cth: data.ct.h, - cuw: data.cu.w, - cuh: data.cu.h, - cus: data.cu.s + power: humanizedPercentage(data.bot.pow), + ctw: data.ct?.w, + cth: data.ct?.h, + cuw: data.cu?.w, + cuh: data.cu?.h, + cus: data.cu?.s, + pxOk: data.art.ok, + pxAll: data.art.px, + pxRate: humanizedPercentage(data.art.ok / data.art.px) }); }, 5000); subSecondTask = setInterval(async () => {