59 lines
53 KiB
JavaScript
59 lines
53 KiB
JavaScript
/*
|
|
Pandora.js 3.0.2 - Front-end common function set
|
|
E-mail:work@pandorastudio.cn Web:https://www.pandorajs.com
|
|
Copyright (C) 2015-2023 袁涛
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
(()=>{var __webpack_modules__=[function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){(w=>{"use strict";const OSSBase64=__webpack_require__(1),icoConfig=__webpack_require__(2),Alphabet=["active","local","localhost","pandorajs.com","127.0.0.1","192.168","inherit","\u63d0\u793a","\u9519\u8bef","\u8b66\u544a"];if(w.pdDialogs=[],!w.requestAnimationFrame){let lastTime,reqId;w.requestAnimationFrame=e=>{const t=(new Date).getTime(),r=Math.max(0,16-(t-lastTime)),n=setTimeout(()=>{e(t+r)},r);return lastTime=t+r,n},w.cancelAnimationFrame=e=>{clearTimeout(e)}}!function(){const N=e=>w.getComputedStyle(document.documentElement).getPropertyValue("--"+e);let e="";N("alertTheme")||(e+=`/*alert\u80cc\u666f*/--alertTheme:${Alphabet[6]};`),N("alertBg")||(e+=`/*alert\u906e\u7f69*/--alertBg:${Alphabet[6]};`),N("alertFontSize")||(e+="/*alert\u5b57\u4f53\u5927\u5c0f*/--alertFontSize:1rem;"),N("alertColor")||(e+="/*alert\u5b57\u4f53\u989c\u8272*/--alertColor:#000;"),N("confirmTheme")||(e+="/*confirm\u80cc\u666f*/--confirmTheme:#fff;"),N("confirmBg")||(e+=`/*confirm\u906e\u7f69*/--confirmBg:${Alphabet[6]};`),N("confirmBtnBg")||(e+="/*confirm\u6309\u94ae\u80cc\u666f*/--confirmBtnBg:#fafafa;"),N("confirmFontSize")||(e+="/*confirm\u5b57\u4f53\u5927\u5c0f*/--confirmFontSize:1rem;"),N("confirmColor")||(e+="/*confirm\u5b57\u4f53\u989c\u8272*/--confirmColor:#636363;"),N("confirmBtnColor")||(e+="/*confirm\u6309\u94ae\u5b57\u4f53\u989c\u8272*/--confirmBtnColor:#636363;"),N("confirmBtnBorder")||(e+="/*confirm\u6309\u94ae\u8fb9\u6846\u989c\u8272*/--confirmBtnBorder:#f1f1f1;");var t=document.createElement("style");t.innerText=`:root{${e}}`,document.querySelector("head").appendChild(t);let j=!1;const x=(e,t,r,n)=>{e.style.cssText=`
|
|
position:fixed;
|
|
inset:0;
|
|
top:0;
|
|
left:0;
|
|
right:0;
|
|
bottom:0;
|
|
z-index:999999999;
|
|
width:100%;
|
|
height:100%;
|
|
display:flex;
|
|
justify-content:center;
|
|
background:${Alphabet[6]};
|
|
background:`+t,e.className="Pd_Mask",r.style.cssText=n.style.cssText="position:absolute;inset:0;top:0;left:0;right:0;bottom:0;",n.style.cssText+=`background:${Alphabet[6]};filter:blur(10px) saturate(2)`,t&&(n.style.cssText+="background:rgba(255,255,255,.66)")},n=(null==w.resetAlert&&(w.resetAlert=!0),w.resetAlert&&(w.alert=(e,t=800)=>{let r,n=document.createElement("div"),a=j?null:N("alertBg"),i=document.createElement("div"),o=document.createElement("p"),s=document.createElement("div"),l=document.createElement("div"),c=N("alertTheme"),d=N("alertFontSize"),h=N("alertColor");x(n,a,s,l),n.style.cssText+="align-items:flex-end",i.style.cssText=`
|
|
background:${Alphabet[6]};
|
|
background:${c};
|
|
text-align:center;
|
|
color:${h};
|
|
font-size:${d};
|
|
padding:.5em 1.5em;
|
|
line-height:1.3;
|
|
transition:opacity .4s ease-out;
|
|
margin-bottom:5vh;
|
|
box-shadow:0 8px 16px rgba(0,0,0,.25);
|
|
border-radius:6px;
|
|
position:relative;
|
|
overflow:hidden`,i.id="Pd_alert",o.style.cssText="margin:0;position:relative",o.innerText=e?e+"":"",i.appendChild(s),i.appendChild(l),i.appendChild(o),n.appendChild(i),document.body.appendChild(n),n.onclick=()=>{clearTimeout(r),document.body.removeChild(n),n=i=r=h=null},clearTimeout(r),r=setTimeout(()=>{i.style.opacity=0,i.addEventListener("transitionend",()=>{document.body.removeChild(n),n=i=r=h=null})},t)}),null==w.resetConfirm&&(w.resetConfirm=!0),w.resetConfirm&&(w.confirm=e=>{let t=e.title||"",r,n,a,i=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c=document.createElement("h2"),d=document.createElement("p"),h=document.createElement("button"),u=document.createElement("button"),g=j?null:N("confirmBg"),p=N("confirmBtnBg"),M=N("confirmTheme"),m=N("confirmFontSize"),f=N("confirmColor"),y=N("confirmBtnColor"),z=N("confirmBtnBorder");const v=null==e.showConfirm||e.showConfirm,b=null==e.showCancel||e.showCancel;n=e.confirmText?e.confirmText.toString():"\u786e\u8ba4",a=e.cancelText?e.cancelText.toString():"\u53d6\u6d88",x(i,g,s,l),i.style.cssText+="align-items:center;",o.style.cssText=`
|
|
background:${Alphabet[6]};
|
|
background:${M};
|
|
text-align:center;
|
|
color:${f};
|
|
font-size:${m};
|
|
max-width:75vw;
|
|
min-width:20em;
|
|
box-shadow:0px 35px 35px -10px rgba(0,0,0,.33);
|
|
border-radius:10px;
|
|
position:relative;
|
|
white-space: break-spaces;
|
|
word-break: break-all;
|
|
overflow:hidden`,o.id="Pd_confirm",c.style.cssText=`position:relative;font-size:1.3em;min-height:1em;background:${p};color:${y};margin:0;padding:.5em 0`,d.style.cssText=`position:relative;border-top:1px solid ${z};width:100%;max-height:70vh;border-bottom:1px solid ${z};margin:0 auto;box-sizing:border-box;padding:2em 10%;line-height:1.4;overflow:auto`;var A=`position: relative;width:${v&&b?"50%":"100%"};font-size:1em;appearance:none;background:${p};color:${y};border:none;border-right:1px solid ${z};padding:1em 0;cursor:pointer;outline:none`;h.style.cssText=u.style.cssText=A;const I=()=>{document.body.removeChild(i),j=!1};return r=e.content?e.content.toString():e+"",c.innerText=t?t.toString():"",d.innerText=r?r.toString():"",o.appendChild(s),o.appendChild(l),o.appendChild(c),o.appendChild(d),v&&(h.innerText=n,o.appendChild(h)),b&&(u.innerText=a,o.appendChild(u)),i.appendChild(o),document.body.appendChild(i),j=!0,new Promise((e,t)=>{v&&(h.onclick=()=>{I(),e()}),b&&(u.onclick=()=>{I(),t()})})}),"Pd_loader");let a;w.showLoading=(e=null)=>{document.getElementById(n)&&document.getElementById(n)&&document.body.removeChild(document.getElementById(n)),a=document.createElement("div");var t=new Image,r=document.createElement("em");t.src=icoConfig.load,a.id=n,a.style.cssText="font-size:1rem;width:100%;height:100%;position:fixed;z-index:999999999;inset:0;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;flex-direction:column",t.style.width=t.style.height="3em",a.appendChild(t),null!==e&&(r.style.cssText="font-style:normal;font-size:1em;color:#fff;margin-top:.5em;",r.innerText=e,a.appendChild(r)),document.body.appendChild(a)},w.hideLoading=()=>{document.getElementById(n)&&document.body.removeChild(a)}}();class PandoraEX{constructor(input=null){this.getInput=e=>Array.isArray(e)?e:["[object Window]","[object HTMLDocument]"].includes(e+"")?w:document.querySelectorAll(e)?1<document.querySelectorAll(e).length?document.querySelectorAll(e):e?document.querySelector(e):null:console.error(`[${Alphabet[8]}] \u672a\u627e\u5230 `+e),this.get=this.getInput(input),this.getLength=()=>{var e;if(this.get)return e=this.get["length"],e||1},this.length=this.getLength(),this.guid=()=>{var e=()=>(65536*(1+Math.random())|0).toString(16).substring(1);return`PandoraEX_${e()}${e()}-${e()}-${e()}-${e()}-`+e()+e()+e()},this.pid=this.guid(),this.extend=(t,r)=>(r?Object.keys(t).forEach(e=>{r[e],typeof r[e]==void 0+""&&(r[e]=t[e])}):r=t,r),this.eq=e=>{try{this.getInput(input).length?this.get=this.getInput(input)[e]:this.get=this.getInput(input)}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u8be5\u4e0b\u6807`,e)}return this},this.child=e=>{var t=this.get;try{1<t.querySelectorAll(e).length?this.get=t.querySelectorAll(e):this.get=t.querySelectorAll(e)[0]}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u8be5\u5b50\u7ea7`,e)}return this},this.find=e=>{var t=this.get;try{this.get=t.querySelectorAll(e)}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u8be5\u5b50\u7ea7`,e)}return this},this.parent=()=>{var e=this.get;try{this.get=e.parentElement}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u8be5\u7236\u7ea7`,e)}return this},this.siblings=e=>{var t,r=this.get,n=[];for(t of this.parent().child(e).get)r!=t&&n.push(t);return this.get=n,this},this.prev=()=>{var e=this.get;return this.get=e.previousElementSibling,this},this.next=()=>{var e=this.get;return this.get=e.nextElementSibling,this},this.first=()=>this.eq(0),this.last=()=>{var e=this.get;return e.length?this.eq(e.length-1):this.first()},this.each=t=>{var r=this.get;if(r.length)for(let e=0;e<r.length;e++)t&&t(this.eq(e),e);else t&&t(this.first(),0);return this},this.css=e=>{const r=this.get;let n;if(!(n=e))return w.getComputedStyle(r).getPropertyValue("*");if("string"==typeof n)return(r.length?w.getComputedStyle(r[0]):w.getComputedStyle(r)).getPropertyValue(n);if(r.length)for(let t of r)Object.keys(n).forEach(e=>{t.style[e]=n[e]});else Object.keys(n).forEach(e=>{r.style[e]=n[e]})},this.offset=()=>{var e=this.get;return(e.length?e[0]:e).getBoundingClientRect()},this.width=(e=null)=>{var t=this.get;if(!e)return(t.length?t[0]:t).offsetWidth;if(t.length)for(var r of t)r.style.width=e;else t.style.width=e},this.height=(e=null)=>{var t=this.get;if(!e)return(t.length?t[0]:t).offsetHeight;if(t.length)for(var r of t)r.style.height=e;else t.style.height=e},this.text=e=>{var t=this.get;if(null==e)return(t.length?t[0]:t).innerText;if(t.length)for(var r of t)r.innerText=e+"";else t.innerText=e+"";return this},this.html=e=>{var t=this.get;if(!e)return(t.length?t[0]:t).innerHTML;if(this.empty(),t.length)for(var r of t)r.innerHTML=e;else t.innerHTML=e;return this},this.val=e=>{var t=this.get;if("select"==t.nodeName.toLowerCase()){if(null==e)return t.options[t.selectedIndex].value;for(var r of t)r.options[r.selectedIndex].value=e}else if(t.length){if(null==e)return t[0].value;for(var n of t)n.value=e}else{if(null==e)return t.value;t.value=e}return this},this.prepend=e=>{var t=this.get;if(1<t.length)if("select"==t.nodeName.toLowerCase())if("object"==typeof e)t.insertBefore(e,t.firstChild);else{var r=document.createElement("div");r.innerHTML=e;for(const i of r.childNodes)t.insertBefore(i,t.firstChild)}else for(var n of t)if("object"==typeof e)n.insertBefore(e,n.firstChild);else{var a=document.createElement("div");a.innerHTML=e;for(const o of a.childNodes)n.insertBefore(o,n.firstChild)}else if("object"==typeof e)t.insertBefore(e,t.firstChild);else{r=document.createElement("div");r.innerHTML=e;for(const s of r.childNodes)t.insertBefore(s,t.firstChild)}return this},this.append=e=>{var t,r,n=this.get;if(1<n.length)if("select"==n.nodeName.toLowerCase())"object"==typeof e?n.appendChild(e):((r=document.createElement("template")).innerHTML=e,n.appendChild(document.importNode(r.content,!0)));else for(var a of n)"object"==typeof e?a.appendChild(e):((t=document.createElement("template")).innerHTML=e,a.appendChild(document.importNode(t.content,!0)));else"object"==typeof e?n.appendChild(e):((r=document.createElement("template")).innerHTML=e,n.appendChild(document.importNode(r.content,!0)));return this},this.empty=()=>{var e=this.get;if(e.length)for(var t of e)for(;t.firstChild;)t.removeChild(t.firstChild);else for(;e.firstChild;)e.removeChild(e.firstChild);return this},this.remove=()=>{var e=this.get;if(e.length)for(var t of e)try{t.parentElement.removeChild(t)}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u5143\u7d20`,e)}else try{e.parentElement.removeChild(e)}catch(e){console.error(`[${Alphabet[8]}] \u672a\u627e\u5230\u5143\u7d20`,e)}return this},this.addClass=r=>{var e=this.get,t=e=>{var t=e.classList.value;t?t.indexOf(r)<0&&(e.className=t+" "+r.trim()):e.className=r.trim()};if(e.length)for(var n of e)t(n);else t(e);return this},this.removeClass=n=>{var e=this.get,t=t=>{if(t.classList.value){let r=t.classList.value.split(" "),e;r.map((e,t)=>{e===n&&r.splice(t,1)}),e=r.join(" "),t.className=e}};if(e.length)for(var r of e)t(r);else t(e);return this},this.hasClass=e=>{var t=this.get;return-1<(-1<t.classList.value.indexOf(" ")?t.classList.value.split(" "):t.classList.value).indexOf(e)},this.attr=(e,t)=>{var r,n=this.get;if(n.length){if("object"==typeof e){for(var a of n)for(var i in e)a.setAttribute(i,e[i]);return this}if(t){for(var o of n)o.setAttribute(e,t);return this}return n[0].getAttribute(e)}if("object"!=typeof e)return t?(n.setAttribute(e,t),this):n.getAttribute(e);for(r in e)n.setAttribute(r,e[r]);return this},this.removeAttr=e=>{var t=this.get;if(t.length)for(var r of t)r.removeAttribute(e);else t.removeAttribute(e);return this},this.bind=(t,r,e={},n=!1)=>{var a=this.get,i=e.capture||!1,o=e.once||!1,s=e.passive||!1;if(a.length){let e=0;for(var l of a)l.addEventListener(t,r,{capture:i,once:o,passive:s},n),l.index=e++,l.eventList=[],l.eventList.push({name:t,callback:r})}else a.addEventListener(t,r,{capture:i,once:o,passive:s},n),a.eventList=[],a.eventList.push({name:t,callback:r});return this},this.unbind=n=>{const a=this.get;if(a.length)for(let r of a)r.eventList&&r.eventList.map((e,t)=>{e.name===n&&(r.removeEventListener(n,e.callback),r.eventList.splice(t,1))});else a.eventList&&a.eventList.map((e,t)=>{e.name===n&&(a.removeEventListener(n,e.callback),a.eventList.splice(t,1))});return this},this.focus=()=>{var e=this.get;if(e.length)for(var t of e)t.focus();else e.focus();return this},this.blur=()=>{var e=this.get;if(e.length)for(var t of e)t.blur();else e.blur();return this},this.click=t=>{const r=this.get;if(r.length)for(let e=0;e<r.length;e++)w.ontouchstart?r[e].ontouchstart=()=>{this.get=r[e],t(this,e)}:r[e].onclick=()=>{this.get=r[e],t(this,e)};else w.ontouchstart?r.ontouchstart=()=>{t(this,null)}:r.onclick=()=>{t(this,null)};return this},this.dblclick=t=>{const r=this.get;if(r.length)for(let e=0;e<r.length;e++)r[e].ondblclick=()=>{this.get=r[e],t(this,e)};else r.ondblclick=()=>{t(this,null)};return this},this.trigger=e=>{var t=this.get,r=new Event(e);if(t.length)for(var n of t)n.dispatchEvent(r);else t.dispatchEvent(r);return this},this.taping=(e,t)=>{const r=this.get;let n;const a=()=>{e&&e(r),n=requestAnimationFrame(a)};return w.ontouchstart?(r.ontouchstart=e=>{e.preventDefault(),cancelAnimationFrame(a),a()},r.ontouchend=()=>{t&&t(r),cancelAnimationFrame(n)}):(r.onmousedown=()=>{cancelAnimationFrame(a),a()},r.onmouseup=()=>{t&&t(r),cancelAnimationFrame(n)}),this},this.show=e=>(this.attr("beforeHide")?this.css({display:this.attr("beforeHide")}):this.css({display:"block"}),e&&setTimeout(e),this),this.hide=e=>(this.attr("beforeHide")||this.attr("beforeHide","none"==this.css("display")?"block":this.css("display")),this.css({display:"none"}),e&&setTimeout(e),this),this.fadeIn=(e="fast",t)=>{const r=this;let n=0,a;const i=()=>{if(n<100){switch(e){case"fast":n+=5;break;case"slow":n++;break;default:n+=e}a=requestAnimationFrame(i)}else t&&t(),cancelAnimationFrame(a);r.css({opacity:n/100})};return r.show(()=>{r.css({opacity:0}),i()}),this},this.fadeOut=(e="fast",t)=>{const r=this;let n=100,a;const i=()=>{if(0<n){switch(e){case"fast":n-=5;break;case"slow":n--;break;default:n-=e}a=requestAnimationFrame(i)}else r.hide(()=>{t&&t(),cancelAnimationFrame(a)});r.css({opacity:n/100})};return i(),this},this.ajax=e=>{e=this.extend({url:null,type:"get",async:!1,headers:{"Content-type":"application/x-www-form-urlencoded"},dataType:"json",responseType:"json",data:null,progress:null,success:null,error:null},e);const n=new XMLHttpRequest,{url:a,type:i,async:o,headers:s,dataType:t,data:l,progress:r,success:c,error:d,responseType:h}=e;let u;"json"==t?l&&(u=Object.keys(l).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(l[e])).join("&")):u=l,o&&(n.responseType=h);try{n.upload.onprogress=e=>{e.lengthComputable&&r&&r(Math.floor(e.loaded/e.total*100))}}catch(e){}return w.cancelAjax=()=>{n.abort()},new Promise((e,t)=>{if(n.onreadystatechange=()=>{200===n.status&&4===n.readyState&&n.response&&(o?(e(n.response),c&&c(n.response)):(e(JSON.parse(n.response)),c&&c(JSON.parse(n.response))))},n.onerror=e=>{t(e),d&&d(e)},n.open(i.toUpperCase(),a,o),s&&l&&l.constructor!==FormData)for(var r in s)n.setRequestHeader(r,s[r]);n.send(u)})},this.fetch=e=>{const{url:r,data:n,headers:a,type:i,returnData:o}=this.extend({url:null,headers:{"Content-type":"application/x-www-form-urlencoded"},type:"get",data:null,returnData(e){return e.json()}},e);return new Promise((e,t)=>{(n?fetch(r,{body:JSON.stringify(n),headers:a,method:i.toLocaleUpperCase()}).then(e=>{if(e.ok)return o(e);console.error(`[${Alphabet[8]}] \u8bf7\u6c42\u9519\u8bef`,e)}):fetch(r,{headers:a,method:i.toLocaleUpperCase()}).then(e=>{if(e.ok)return o(e);console.error(`[${Alphabet[8]}] \u8bf7\u6c42\u9519\u8bef`,e)})).then(e).catch(t)})},this.serialize=()=>{var e,t={};for(e of this.get.querySelectorAll("*"))if(e.getAttribute("name")){var r=e.getAttribute("name");if(r)switch(e.type){case"radio":e.checked&&(t[r]=e.value);break;case"checkbox":e.checked?t[r]=e.value:t[r]=!1;break;default:t[r]=e.value}}return t},this.setForm=(r=null)=>{return r?this.get.querySelectorAll("[name]").forEach(e=>{var t=e.getAttribute("name");if(r[t]){if(e.readOnly)return console.error(`[${Alphabet[8]}] \u8be5\u5143\u7d20\u4e3a\u53ea\u8bfb\uff0c\u65e0\u6cd5\u8bbe\u7f6e\u503c`);switch(e.type){case"radio":e.value==r[t]?e.checked=!0:e.checked=!1;break;case"checkbox":r[t]&&(e.checked=!0);break;case"file":e.files=r[t];break;default:e.value=r[t]}}}):console.error(`[${Alphabet[8]}] \u65e0\u53ef\u8bbe\u7f6e\u7684\u8868\u5355\u6570\u636e`),this},this.globalData={},this.setData=n=>new Promise((e,t)=>{for(var r in n)try{this.globalData[r]=n[r]}catch(e){console.error(`[${Alphabet[8]} - Mush] \u53d8\u91cf\u4fee\u6539\u5931\u8d25`,e),t(e)}e()}),this.getData=e=>this.globalData[e]||(console.error(`[${Alphabet[8]} - Mush] \u83b7\u53d6\u7684\u53d8\u91cf\u4e0d\u5b58\u5728\uff01`),null),this.template=(route,container)=>new Promise((success,fail)=>{const temp=(()=>{let t;var r=document.querySelectorAll("template");for(let e=0;e<r.length;e++)r[e].getAttribute("route")==route&&(t=r[e]);return t})();if(temp){this.empty();let url=temp.getAttribute("src");const that=this;url?that.fetch({url:url,headers:{"Content-type":"text/html"},returnData(e){return e.text()}}).then(res=>{const node=document.createElement("template");if(node.innerHTML=res,node.content.querySelectorAll("link")){let linkArr=[];for(var link of node.content.querySelectorAll("link"))linkArr.push(that.fetch({url:link.href,headers:{"Content-type":"text/html"},returnData(e){return e.text()}})),node.content.removeChild(link);Promise.all(linkArr).then(e=>{e.map(e=>{var t=document.createElement("style");t.innerHTML=e,node.content.appendChild(t)}),insertHTML()})}else insertHTML();function insertHTML(){container.appendChild(document.importNode(node.content,!0));for(var script of node.content.querySelectorAll("script"))script.getAttribute("src")?that.fetch({url:script.src,headers:{"Content-type":"text/html"},returnData(e){return e.text()}}).then(res=>{eval(res)}):eval(script.innerHTML);success()}}).catch(e=>{console.error(`[${Alphabet[8]} - Router] \u4e0d\u5b58\u5728\u4ee5\u4e0b\u8def\u7531\uff1a`+e.target.responseURL),fail(""+route)}):(container.appendChild(document.importNode(temp.content,!0)),success())}else console.error(`[${Alphabet[8]} - Router] \u4e0d\u5b58\u5728\u4ee5\u4e0b\u8def\u7531\uff1a`+route),fail(""+route)}),this.getParams=()=>{var e=location.href.split("?");if(-1<location.href.indexOf("?")){let t={};return e[1].split("&")?e[1].split("&").map(e=>{t[e.split("=")[0]]=e.split("=")[1]}):t[e[1].split("=")[0]]=t[e[1].split("=")[1]],t}return null},this.hashChange=(e,t)=>{e(-1<location.hash.indexOf("#")&&(null===location.hash.match(/#(\S*)\?/)?location.hash.match(/#(\S*)/):location.hash.match(/#(\S*)\?/)).input.replace("#","")||t[0].path)},this.Array={originals:this.get,Random(){var t=this.originals;for(let e=0;e<t.length;e++)t[e]=t[e];return t.sort(()=>.5-Math.random()),t},hasRepeat(){var e,t=this.originals,r={};for(e in t){if(r[t[e]])return!0;r[t[e]]=!0}return!1},Sum(){var t=this.originals;let r=0;for(let e=t.length-1;0<=e;e--)r+=t[e];return r}}}}const PandoraJs=e=>class extends e{constructor(e){super(e)}Mush(e){e=this.extend({data:null,Init:null,Update:null},e);let n=this.html(),a=n,i;const o=this,{data:s,Init:t,Update:r}=e,l=new RegExp("{{.*?}}","g"),c=new RegExp("{{.*?}}"),d=e=>{var t,r={};for(t of Object.keys(e))r[t]=e[t];return r};i=(()=>{let r=[];return n.match(l).forEach((e,t)=>{r[t]=e.split("{{")[1].split("}}")[0]}),r})();const h=()=>new Promise(e=>{n=a;for(var t of i)for(var r in s)t===r&&(n=n.replace(c,s[t]+""||""));o.html(n),e()});return(n=>{var e=[];for(let t=0,r=n.length;t<r;t++){for(let e=t+1;e<r;e++)n[t]==n[e]&&(e,++t);e.push(n[t])}return e})(i).forEach(t=>{Object.defineProperty(o.globalData,t,{set(e){s[t]=e,h().then(()=>{r&&r(d(o.globalData))}).catch(e=>{console.error(`[${Alphabet[8]} - Mush] \u53d8\u91cf\u66f4\u65b0\u5931\u8d25`,e)})},get(){return s[t]},enumerable:!0})}),h().then(()=>{t&&t(d(o.globalData))}).catch(e=>{console.error(`[${Alphabet[8]} - Mush] \u521d\u59cb\u6e32\u67d3\u5931\u8d25`,e)}),this}Router(e){var t;const a=this.extend({routes:null},e)["routes"];let i=[];for(t of a)i.push(t.path);const n=e=>{const r=document.createElement("div"),{component:t,callback:n}=a[i.indexOf(e)];r.attachShadow({mode:"open",serializable:!0}),fetch(t).then(e=>e.text()).then(e=>{var t;r.innerHTML=e,this.empty(),this.append(r.getHTML());for(t of document.querySelectorAll("a"))t.onclick=e=>{var t=e.target.getAttribute("href");t&&!/http|https|ftp|ftps|mailto|javascript/.test(t)&&t.indexOf("#")<0&&(e.preventDefault(),this.to(t))};n&&n(w.history.state)})};return this.to=e=>{let r=null;if(-1<e.indexOf("?")){r=e.split("?")[1],e=e.split("?")[0];let t={};r.split("&").map(e=>{t[e.split("=")[0]]=e.split("=")[1]}),r=t}var t;i.includes(e)?(r?(t=Object.keys(r).map(e=>e+"="+r[e]),w.history.replaceState(r,null,e+"?"+t.join("&"))):w.history.pushState(r,null,e),n(e)):console.error(`[${Alphabet[8]} - Router] ${e} \u8def\u7531\u4e0d\u5b58\u5728\uff01`)},this.to(w.location.href.split(w.location.origin)[1]),this}Switcher($){let o={Speed:1,Curve:"ease",Effect:"slider",Direction:"horizontal",Inertia:!0,Distance:3,AutoSpeed:0,Pagination:!1,Hover:!1,Scroll:!1,InitPage:0,Loop:!1,onChange:null,AutoResize:!1};const{Speed:s,Curve:l,Effect:c,Direction:d,Inertia:a,Distance:h,AutoSpeed:e,Pagination:P,Hover:_,Scroll:i,InitPage:u,Loop:r,onChange:U,AutoResize:B}=o=this.extend(o,$),g=this.get,p=g[0].parentElement,M=g.length,n=()=>{t&&(t=!1,p.removeEventListener("transitionend",n))};let m=u,f=g[0].offsetWidth,y=g[0].offsetHeight,z,t=!1,v=!0;const b=(e=null)=>{if("number"==typeof e&&(m=e),H(m),v||U&&U(m),"fade"===c)for(var t of g)-1<t.className.indexOf("active")?(t.style.opacity=1,t.style.zIndex=2):(t.style.opacity=0,t.style.zIndex=1);else"vertical"===d?p.style.transform=`translate3d(0,${y*m*-1}px,0)`:p.style.transform=`translate3d(${f*m*-1}px,0,0)`;!r&&(0===m||m===M-1)?n():p.addEventListener("transitionend",n)},H=t=>{for(var e of g)e.className=e.className.replace(Alphabet[0],"").trim();if(g[m].className?g[m].className+=" "+Alphabet[0]:g[m].className+=Alphabet[0],P){p.parentElement.querySelector(".Pd-pagination")&&p.parentElement.removeChild(p.parentElement.querySelector(".Pd-pagination"));var r=document.createElement("div");r.className="Pd-pagination";for(let e=0;e<M;e++){var n=document.createElement("a"),a=g[e].getAttribute("data-title")?document.createTextNode(g[e].getAttribute("data-title")):document.createTextNode(e);n.setAttribute("href","javascript:void 0"),e===t&&(n.className=Alphabet[0]),n.appendChild(a),r.appendChild(n)}p.parentElement.insertBefore(r,p.nextElementSibling);for(let e=0;e<p.parentElement.querySelectorAll(".Pd-pagination a").length;e++){const i=p.parentElement.querySelectorAll(".Pd-pagination a")[e],o=e;i.onclick=()=>{m=o,b()}}}},A=()=>{v=!1,m<M&&0<m?m--:0===m&&r?m=M-1:t=!1,b()},I=()=>{v=!1,m<M-1?m++:m=m===M-1&&r?0:M-1,b()};let N,j,x,C,T,D;const L=e=>{clearTimeout(z),cancelAnimationFrame(O);var{pageX:e,pageY:t}=e.changedTouches[0],{left:r,top:n}=p.parentElement.getBoundingClientRect();"vertical"===o.Direction?j=t-n:N=e-r,p.style.transition=null},S=e=>{var{pageX:e,pageY:t}=e.changedTouches[0],{left:r,top:n}=p.parentElement.getBoundingClientRect();if(T=e-r,D=t-n,"fade"===c)for(var a of g)a.style.transition=`opacity ${s}s linear`;else"vertical"===d?j>D?m!=M-1&&(p.style.transform=`translate3d(0,${-1*(j-D+y*m)}px,0)`):0!=m&&(p.style.transform=`translate3d(0,${y*m*-1+Math.abs(D-j)}px,0)`):N>T?p.style.transform=`translate3d(${-1*(N-T+f*m)}px,0,0)`:p.style.transform=`translate3d(${f*m*-1+Math.abs(T-N)}px,0,0)`},E=e=>{clearTimeout(z),Y(),p.style.transition=`transform ${s}s `+l;var{pageX:e,pageY:t}=e.changedTouches[0],{left:r,top:n}=p.parentElement.getBoundingClientRect();if("vertical"===d)if(C=t-n,"fade"===c){j-C>y/o.Distance&&m===M-1?m=0:j-C>y/o.Distance&&m<M-1?I():C-j>y/o.Distance&&A();for(var a of g)a.style.transition=`opacity ${o.Speed}s `+o.Curve,a.style.opacity=0,a.style.zIndex=1;g[m].style.opacity=1,g[m].style.zIndex=2,b()}else j-C>y/o.Distance&&m<M-1&&I(),C-j>y/o.Distance&&A(),p.style.transform=`translate3d(0,${y*m*-1}px,0)`;else if(x=e-r,"fade"===c){N-x>f/h&&m===M-1?m=0:N-x>f/h&&m<M-1?I():x-N>f/h&&A();for(var i of g)i.style.transition=`opacity ${s}s `+l,i.style.opacity=0,i.style.zIndex=1;g[m].style.opacity=1,g[m].style.zIndex=2,b()}else N-x>f/h&&m<M-1&&I(),x-N>f/h&&A(),p.style.transform=`translate3d(${f*m*-1}px,0,0)`},k=e=>{e.preventDefault(),20<e.deltaY&&!t&&(t=!0,I()),e.deltaY<-20&&!t&&(t=!0,A())};let O;const Y=()=>{e&&(z=setTimeout(()=>{I(),clearTimeout(z),O=requestAnimationFrame(Y)},1e3*e))};function Q(){const{width:r,height:n}=p.parentElement.getBoundingClientRect();f=r,y=n,m=u,new Promise(e=>{if("fade"===c){for(var t of g)t.style.transition=`opacity ${s}s `+l,t.style.position="absolute";p.style.width=r+"px",p.style.height=n+"px"}else"vertical"===d?(p.style.width=r+"px",p.style.height=n*M+"px",p.style.flexDirection="column",p.style.cssText+="touch-action: pan-x"):(p.style.width=r*M+"px",p.style.height=n+"px",p.style.flexDirection="row",p.style.cssText+="touch-action: pan-y"),p.style.display="flex",p.style.transition=`transform ${s}s `+l;b(u),Y(),a&&p.removeEventListener("touchmove",S),i&&p.removeEventListener("mousewheel",k),p.removeEventListener("touchstart",L),p.removeEventListener("touchend",E),a&&p.addEventListener("touchmove",S),i&&p.addEventListener("mousewheel",k),p.addEventListener("touchstart",L),p.addEventListener("touchend",E),_&&(p.addEventListener("mouseover",()=>{clearTimeout(z),cancelAnimationFrame(O)}),p.addEventListener("mouseout",Y)),e()})}if(this.prev=A,this.next=I,this.direct=e=>{v=!1,b(e)},this.disable=()=>{a&&p.removeEventListener("touchmove",S),i&&p.removeEventListener("mousewheel",k),p.removeEventListener("touchstart",L),p.removeEventListener("touchend",E),clearTimeout(z),cancelAnimationFrame(O)},this.enable=()=>{a&&p.addEventListener("touchmove",S),i&&p.addEventListener("mousewheel",k),p.addEventListener("touchstart",L),p.addEventListener("touchend",E),_&&(p.addEventListener("mouseover",()=>{clearTimeout(z),cancelAnimationFrame(O)}),p.addEventListener("mouseout",Y)),e&&(z=setTimeout(()=>{I(),clearTimeout(z),O=requestAnimationFrame(Y)},1e3*e))},Q(),B){let e=!1,t;w.onresize=()=>{clearTimeout(t),t=null,e||(e=!0,t=setTimeout(()=>{Q(),e=!1},300))}}return this}AutoSize(e){var e=this.extend({PageSize:"device-width",InitScale:1,MinScale:1,MaxScale:1,Ratio:null,Resize:!0,ScaleFont:!0},e),t=document.createElement("meta"),{PageSize:r,InitScale:n,MinScale:a,MaxScale:i,Resize:o,ScaleFont:s}=e;let l=e.Ratio||w.devicePixelRatio;return t.setAttribute("name","viewport"),"number"!=typeof r?t.setAttribute("content",`width=${r},initial-scale=${n},minimum-scale=${a},maximum-scale=${i},user-scalable=no,viewport-fit=cover`):t.setAttribute("content",`width=${r},user-scalable=no,viewport-fit=cover`),document.querySelector("meta[name='viewport']")&&document.querySelector("meta[name='viewport']").remove(),document.head.appendChild(t),s&&((e=()=>{var{clientWidth:e,clientHeight:t}=document.documentElement;document.documentElement.style.fontSize=Math.min(e,t)/10*l+"px"})(),o)&&(w.onresize=e),this}Dialog(e){e=this.extend({mask:!0,maskColor:"rgba(0,0,0,.85)",maskOut:!0,Speed:180,Curve:"ease-out",Direction:"zoom",In:null,Out:null,Confirm:{btn:null,callback:null},Cancel:{btn:null,callback:null}},e);const a=document.createElement("div"),t=this.get.parentElement,{mask:i,maskColor:r,maskOut:o,Speed:n,Curve:s,Direction:l,In:c,Out:d,Confirm:h,Cancel:u}=e,g=(a.className="Pd-Mask",h.btn?new PandoraEX(h.btn):null),p=u.btn?new PandoraEX(u.btn):null,M=("none"!==l&&this.css({transition:`all ${n}ms `+s}),()=>new Promise(e=>{if("block"==this.css("display")||"flex"==this.css("display"))if(m("out"),"none"===l){try{i&&t.removeChild(a)}catch(e){console.error(`[${Alphabet[8]} - Dialog]`,e)}this.css({display:"none"}),e()}else this.bind("transitionend",()=>{try{i&&t.removeChild(a)}catch(e){console.error(`[${Alphabet[8]} - Dialog]`,e)}this.css({display:"none"}),this.unbind("transitionend"),e()});else e();h.btn&&g.unbind("click"),u.btn&&p.unbind("click"),w.onresize=null})),m=e=>{switch(i&&"in"===e&&(t.insertBefore(a,this.get.nextElementSibling),document.querySelector(".Pd-Mask").style.cssText=`width:100vw;height:100vh;background:${r};position:fixed;inset:0;top:0;left:0;right:0;bottom:0;z-index:998;`),e){case"in":switch(this.css({display:"block"}),l){case"none":this.css({display:"block"});break;case"top":this.css({transform:"translate3d(0,-100%,0)"});break;case"bottom":this.css({transform:"translate3d(0,100%,0)"});break;case"zoom":this.css({transform:"translate3d(0,0,0) scale(0)"})}c&&c();break;case"out":switch(l){case"none":this.css({display:"none"});break;case"top":this.css({transform:"translate3d(0,-100%,0)"});break;case"bottom":this.css({transform:"translate3d(0,100%,0)"});break;case"zoom":this.css({transform:"translate3d(0,0,0) scale(0)"})}d&&d()}};return this.close=M,this.open=n=>{this.unbind("transitionend");for(var e of w.pdDialogs)e!=this&&e.close();return m("in"),new Promise(e=>{const t=()=>{var e=parseInt(this.css("height"))/2,t=parseInt(this.css("width"))/2;switch(l){case"none":this.css({position:"fixed",top:`calc(50% - ${e}px)`,left:`calc(50% - ${t}px)`,"z-index":999});break;case"top":this.css({position:"fixed",top:0,left:`calc(50% - ${t}px)`,"z-index":999,transform:"translate3d(0,0,0) scale(1)"});break;case"bottom":this.css({position:"fixed",bottom:0,left:`calc(50% - ${t}px)`,"z-index":999,transform:"translate3d(0,0,0) scale(1)"});break;default:this.css({position:"fixed",top:`calc(50% - ${e}px)`,left:`calc(50% - ${t}px)`,"z-index":999,transform:"translate3d(0,0,0) scale(1)"})}},r=(t(),w.onresize=()=>{this.bind("transitionend",t)},i&&o&&(a.onclick=M),this)["close"];h.btn&&g.bind("click",()=>{h.callback({param:n||null,close:r})}),u.btn&&p.bind("click",()=>{u.callback({param:n||null,close:r})}),e()})},w.pdDialogs.push(this),this}ImgLoader(e){const{lazy:r,loading:n,callback:a,error:i}=this.extend({lazy:!0,loading:null,callback:null,error(e){console.error(`[${Alphabet[8]} - ImgLoader] \u8d44\u6e90\u52a0\u8f7d\u9519\u8bef\uff01
|
|
`+e),alert("\u8d44\u6e90\u52a0\u8f7d\u9519\u8bef\uff01")}},e);let o=[],s=0,l=0,c=0,d=0;const h=e=>-1<e.indexOf("url")&&"none"!=e&&e.indexOf("data:")<0&&e.indexOf("blob:")<0;e=()=>{s=o.length;let t;Promise.all(o.map(e=>{return n=e,new Promise((e,t)=>{var r=new Image;r.src=n,r.onerror=t,r.complete?(l++,e()):r.onload=()=>{l++,e()}});var n})).catch(e=>{cancelAnimationFrame(t),i(e),console.error(`[${Alphabet[8]} - ImgLoader]`,e)});const e=()=>{c=Math.floor(l/s*100),d<100&&(d<c&&(r?d++:d=c),n&&n(d),100===d?(cancelAnimationFrame(t),r?a&&a():setTimeout(a)):t=requestAnimationFrame(e))};e()};if(this.get){var t=this.get,u=e,g,p=new RegExp('".*?"',"g"),M=new RegExp(/'.*?'/,"g"),m=new RegExp(/\(.*?\)/,"g");for(g of t.querySelectorAll("*")){"img"==g.nodeName.toLowerCase()&&g.src&&o.push(g.src);var f=w.getComputedStyle(g).getPropertyValue("background-image");if(h(f)){var y=f.match(p),z=f.match(M),f=f.match(m);if(y&&o.push(y[0].toString().replace(/"/g,"")),z&&o.push(z[0].toString().replace(/'/g,"")),f){let e=f[0].toString().replace(/\(/,"").replace(/\)/,"");(e=e.match(p)?e.match(p)[0].toString().replace(/"/g,""):e).match(M)&&(e=e.match(M)[0].toString().replace(/'/g,"")),o.push(e)}}}u()}else{t=e;const I=new RegExp("background-image: url(.*?)*","g"),N=new RegExp("background: url(.*?)*","g"),j=(e,t)=>{let r;switch(e){case 1:r=t.split("background-image: url(")[1].split(")")[0];break;case 2:r=t.split("background: url(")[1].split(")")[0]}return-1<r.indexOf('"')?r.replace(/"/g,""):-1<r.indexOf("'")?r.replace(/'/g,""):r};var v,u;if(document.querySelectorAll("link").forEach(e=>{"stylesheet"==e.getAttribute("rel")&&this.ajax({url:e.getAttribute("href"),responseType:"text"}).then(e=>{if(e.match(I))for(var t of e.match(I))h(t)&&o.push(j(1,t));if(e.match(N))for(var r of e.match(N))h(r)&&o.push(j(2,r))})}),document.querySelectorAll("style").forEach(e=>{e=e.innerText;if(e.match(I))for(var t of e.match(I))h(t)&&o.push(j(1,t));if(e.match(N))for(var r of e.match(N))h(r)&&o.push(j(2,r))}),(u=document.body.innerHTML).match(I))for(var b of u.match(I))h(b)&&o.push(j(1,b));if(u.match(N))for(var A of u.match(N))h(A)&&o.push(j(2,A));for(v of document.querySelectorAll("img"))v.src&&o.push(v.src);t()}return this}ImgUpload(e){e=this.extend({apiUrl:null,Format:"*",type:"default",Max:1,Quality:100,Clip:{width:null,height:null},alwaysCover:!1,Events:{overMax:null,ready:null,progress:null,success:null,fail(){console.error(`[${Alphabet[8]} - ImgUpload] \u4e0a\u4f20\u5931\u8d25\uff01`)}},Uid:null},e);const t=this.html(),{apiUrl:n,Format:r,type:a,Max:i,Quality:o,Clip:s,alwaysCover:l,Events:c,Uid:d}=e,h=(this.empty(),this.get.insertAdjacentHTML("afterbegin",`<label for="Pd_imgUpload_${this.pid}" style="width:100%;height:100%;display:block"></label>`),document.createElement("input"));let u,g=0,p=0,M=0,m=0,f=0;u=d||document.domain+"_"+this.pid,h.type="file",h.accept="image/"+r,h.id="Pd_imgUpload_"+this.pid,h.setAttribute("capture",a),h.hidden=!0,1<i&&(h.multiple=!0);e=this.get.querySelector("label");e.innerHTML=t,e.append(h);const y=e=>{var t=new FormData;let r=e;l&&(r=new File([e],"cover."+e.name.split(".")[1],{type:e.type})),t.append("images",r),t.append("uid",u),t.append("width",s.width),t.append("height",s.height),t.append("quality",o),c.ready&&c.ready(),this.ajax({url:""+n,type:"post",dataType:"form",async:!0,headers:null,data:t,progress(e){1<g?(100==e&&p++,M=Math.floor(p/g*100),c.progress(M)):(m=e,c.progress(m))}}).then(e=>{e?(f=1<g?M:m,h.setAttribute("data-progress",f),100===f&&(e={src:e.images},c.success)&&c.success(e)):(alert("\u53d1\u751f\u9519\u8bef\uff01"),console.error(`[${Alphabet[8]} - ImgUpload] \u670d\u52a1\u7aef\u9519\u8bef\uff01`))}).catch(c.fail)},z=r=>{var e=Array.prototype.slice.call(r);g=0,p=0,M=0,m=0,(f=0)===i||e.length<=i?0<(g=e.length)&&e.forEach((e,t)=>{y(r[t])}):(c.overMax&&c.overMax(),console.info(`[${Alphabet[7]} - ImgUpload] \u8d85\u8fc7\u6700\u5927\u6570\u91cf:${i}\uff01`))};return h.addEventListener("change",e=>{e.preventDefault(),z(e.target.files)}),this.bind("dragover",e=>{e.preventDefault()}),this.bind("drop",e=>{e.preventDefault(),z(e.dataTransfer.files)}),this}ImgTransit(e){let f={icon:!0,iconSize:30,border:!0,Gesture:!1,padding:10,scale:{enable:!0,min:80,max:150,rate:1},rotate:{enable:!0,rate:1},delete:!0,bounds:!0,outBounds:0,callback:null};f=this.extend(f,e);const t=this.get,r="transition:opacity .2s ease-in",n=t.querySelectorAll("img"),a=(this.hide(),document.querySelector(".PD-TransitBox")||(t.insertAdjacentHTML("afterend","<div class='PD-TransitBox'></div>"),document.querySelector(".PD-TransitBox").style.cssText="position:relative;touch-action:none;"),document.querySelector(".PD-TransitBox"));for(var i of n)a.appendChild(i),i.parentNode.removeChild(i);e=e=>{return`<a class="Pd-ImgTransit-btn Pd-${(e=this.extend({top:null,left:null,right:null,bottom:null,name:null},e)).name}" style="width:${f.iconSize}px;height:${f.iconSize}px;background:#fff url('${icoConfig[e.name]}');background-position:center;background-repeat:no-repeat;background-size:65%;position:absolute;border-radius:50%;top:${e.top}px;left:${e.left}px;right:${e.right}px;bottom:${e.bottom}px;z-index:2;${r}" href="javascript:void 0"></a>`};const o=e({left:"-"+f.iconSize/2,bottom:"-"+f.iconSize/2,name:"resize"}),s=e({right:"-"+f.iconSize/2,top:"-"+f.iconSize/2,name:"rotate"}),l=e({left:"-"+f.iconSize/2,top:"-"+f.iconSize/2,name:"delete"}),y=(e,t)=>{for(var r of e.querySelectorAll(".Pd-ImgTransit-btn"))r.style.transform=`scale(${1/(t.scale/100)}) rotate(${-1*t.rotate}deg)`;return e.style.transform=`translate3d(${t.translate}) scale(${t.scale/100}) rotate(${t.rotate}deg)`},z=e=>({x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2}),c=(e,t)=>{var r=t.pageX-e.pageX,t=t.pageY-e.pageY;return Math.sqrt(r*r+t*t)},d=(e,t)=>{var r=e.pageX-t.pageX,e=e.pageY-t.pageY;return 180*Math.atan2(e,r)/Math.PI},v=n=>{let a={},i=!1,o=[];return n.addEventListener("touchstart",e=>{2<=e.touches.length&&(i=!0,o=e.touches,a.gesturestart)&&a.gesturestart.call(n)},!1),document.addEventListener("touchmove",e=>{var t,r;e.preventDefault(),2<=e.touches.length&&i&&(r=e.touches,t=c(r[0],r[1])/c(o[0],o[1]),r=d(r[0],r[1])-d(o[0],o[1]),e.scale=t.toFixed(2),e.rotation=r.toFixed(2),a.gesturemove)&&a.gesturemove.call(n,e)},!1),document.addEventListener("touchend",()=>{i&&(i=!1,a.gestureend)&&a.gestureend.call(n)},!1),a};var h;const u=()=>{var e,t,r=a.querySelectorAll(".Pd-ImgTransit"),n=a.querySelectorAll(".Pd-ImgTransit-btn");for(e of r)e.style.border="none",e.style.zIndex=1;for(t of n)t.style.opacity=0};for(h of n){let e="";f.icon&&(f.scale.enable&&(e+=o),f.rotate.enable&&(e+=s),f.delete)&&(e+=l);var g=document.createElement("div");g.className="Pd-ImgTransit pd_child_"+h.alt,g.style.position="absolute",h.style.transition="transform .4s ease-in",g.innerHTML=e,g.appendChild(h),a.appendChild(g),(e=>{let t,r,n,a,i,o,s,l=0,c=0,d=0,h=0,u=100;const g=e,p={translate:"0,0,0",scale:100,rotate:0},M=g.offsetWidth,m=g.offsetHeight;g.style.width=M+"px",g.style.height=m+"px",y(g,p),g.style.position="absolute",g.style.top=g.style.left="50%",g.style.margin=`-${m/2+f.padding}px 0 0 -${M/2+f.padding}px`,g.style.padding=f.padding+"px",t=e=>{e.target.className.indexOf("pd_child")<0&&(e.target.style.transform="scale(1)")},r=e=>{var t,r,n,a,i;e.touches.length<2&&e.target.className.indexOf("pd_child")<0&&(t=e.changedTouches[0].pageX,r=e.changedTouches[0].pageY,n=e.target.getBoundingClientRect().width,a=e.target.getBoundingClientRect().height,i=e.target.parentElement.querySelectorAll(".Pd-ImgTransit-btn")[0].getBoundingClientRect().width/2,e=e.target.parentElement.parentElement.getBoundingClientRect(),e={width:f.bounds?e.width+f.outBounds:e.width,height:f.bounds?e.height+f.outBounds:e.height},l=t-d,c=r-h,f.bounds&&(Math.abs(l)>=e.width/2-n/2-i&&(l=l<0?-1*(e.width/2-n/2-i):e.width/2-n/2-i),Math.abs(c)>=e.height/2-a/2-i)&&(c=c<0?-1*(e.height/2-a/2-i):e.height/2-a/2-i),p.translate=`${l}px,${c}px,0`,y(g,p),f.callback)&&f.callback({type:"move",obj:g})},n=e=>{e.stopImmediatePropagation(),e.preventDefault();var t=e.changedTouches[0].pageX-g.getBoundingClientRect().left;0<t&&p.scale>f.scale.min&&(p.scale-=f.scale.rate),t<0&&p.scale<f.scale.max&&(p.scale+=f.scale.rate),2<=e.touches.length&&(f.scale.enable&&(u=100*e.scale,p.scale=u),f.rotate.enable)&&(p.rotate=e.rotation),y(g,p),f.callback&&f.callback({type:"resize",obj:g})},a=e=>{e.stopImmediatePropagation(),e.preventDefault();e=Math.atan2(e.changedTouches[0].pageY-o.y,e.changedTouches[0].pageX-o.x);p.rotate=Math.floor(180*(e-s)/Math.PI)*f.rotate.rate,y(g,p),f.callback&&f.callback({type:"rotate",obj:g})},i=e=>{e.stopImmediatePropagation(),e.preventDefault(),p.translate="0,0,0",p.rotate=0,p.scale=100,y(g,p),g.style.display="none",f.callback&&f.callback({type:"delete",obj:g})},g.addEventListener("touchstart",e=>{e.preventDefault(),e.target.className.indexOf("pd_child")<0&&(d=e.changedTouches[0].pageX-l,h=e.changedTouches[0].pageY-c,e.target.style.transform="scale(1.04)",f.callback)&&f.callback({type:"choose",obj:e.target.parentElement})}),g.addEventListener("touchend",t),g.addEventListener("touchmove",r),f.scale.enable&&f.rotate.enable&&f.Gesture&&(v(g).gesturemove=e=>{n(e),a(e)}),f.icon&&f.scale.enable&&g.querySelectorAll(".Pd-resize")[0].addEventListener("touchmove",n),f.icon&&f.rotate.enable&&(g.querySelectorAll(".Pd-rotate")[0].addEventListener("touchstart",e=>{o=z(g),s=Math.atan2(e.changedTouches[0].pageY-o.y,e.changedTouches[0].pageX-o.x)-p.rotate*Math.PI/180}),g.querySelectorAll(".Pd-rotate")[0].addEventListener("touchmove",a)),f.icon&&f.delete&&g.querySelectorAll(".Pd-delete")[0].addEventListener("touchstart",i)})(g)}return u(),a.addEventListener("touchstart",e=>{if(u(),e.target!==a&&e.target.className.indexOf("pd_child")<0){if(f.icon){var t=e.target.parentElement;var r;for(r of t.querySelectorAll(".Pd-ImgTransit-btn"))r.style.opacity=1,f.border&&(t.style.border="2px dashed white"),t.style.zIndex=2}else u();e.target.zIndex=1}}),this}wxSDK(e){var t={apiUrl:null,sdk:"https://res.wx.qq.com/open/js/jweixin-1.6.0.js",title:["\u5206\u4eab\u81f3\u670b\u53cb\u5708","\u5206\u4eab\u81f3\u597d\u53cb"],desc:"\u4e07\u4e8b\u7686\u865a\uff0c\u4e07\u7269\u7686\u5141",shareIcon:"https://src.pandorastudio.cn/favicon.jpg",shareLinks:w.location.href,debug:!1,jsApiList:null,openTagList:null,callback:{ready:null,success:null,error:null}},t=this.extend(t,e),e=document.createElement("script");let{apiUrl:r,sdk:n,title:a,desc:i,shareLinks:o,debug:s,jsApiList:l,openTagList:c,callback:d,shareIcon:h}=t,u=(e.id="Pd_share",e.src=n+"?"+(new Date).getTime(),document.querySelector("#Pd_share")&&document.querySelector("#Pd_share").remove(),document.body.appendChild(e),!1);var g,t=e=>"object"==typeof e;document.querySelectorAll("link").forEach(e=>{"shortcut icon"==e.getAttribute("rel")&&(u=!0,h=e.href)}),u&&((g=document.createElement("link")).rel="shortcut icon",g.href=t(h)?h[0]:h,g.type="image/x-icon",document.querySelector("head").appendChild(g));let p=["onMenuShareTimeline","onMenuShareAppMessage","updateTimelineShareData","updateAppMessageShareData"],M=["wx-open-launch-app"];l&&l.map(e=>{p.push(e)}),c&&c.map(e=>{M.push(e)});const m={title:t(a)?a[0]:a,link:t(o)?o[0]:o,imgUrl:t(h)?h[0]:h},f={title:t(a)?a[1]:a,link:t(o)?o[1]:o,imgUrl:t(h)?h[1]:h,desc:i},y=e=>{var{appId:e,timestamp:t,nonceStr:r,signature:n}=e;wx.config({debug:s,appId:e,timestamp:t,nonceStr:r,signature:n,jsApiList:p,openTagList:M}),wx.ready(()=>{new Promise(e=>{var t,r,n,a,i,o;wx.onMenuShareTimeline?({title:t,link:n,imgUrl:a}=m,{success:r,error:i}=d,wx.onMenuShareTimeline({title:t,link:n,imgUrl:a,success:r,error:i})):({title:t,link:n,imgUrl:a}=m,{success:r,error:i}=d,wx.updateTimelineShareData({title:t,link:n,imgUrl:a,success:r,error:i})),wx.onMenuShareAppMessage?({title:t,link:n,imgUrl:a,desc:r}=f,{success:i,error:o}=d,wx.onMenuShareAppMessage({title:t,desc:r,link:n,imgUrl:a,success:i,error:o})):({title:t,link:r,imgUrl:n,desc:a}=f,{success:i,error:o}=d,wx.updateAppMessageShareData({title:t,desc:a,link:r,imgUrl:n,success:i,error:o})),e()}).then(d.ready).catch(e=>{console.error(`[${Alphabet[8]} - wxSDK]`,e)})})};return e.onload=()=>{this.ajax({url:""+r+encodeURIComponent(w.location.href.split("#")[0])}).then(y)},this}LazyLoad(e){var t,r={width:100,height:100,icon:icoConfig.load},r=this.extend(r,e),e=this.child("img").get,{width:n,height:a,icon:i}=r;let o=0,s=[];for(t of e)t.dataset.src&&(t.width=n,t.height=a,t.style.background=`url("${i}") no-repeat center,black`,t.style.backgroundSize="20%",s.push(t));const l=e=>e.getBoundingClientRect().y-w.innerHeight<0&&e,c=()=>{s.forEach(r=>{l(r)&&!r.src&&r.complete&&(r.src=l(r).dataset.src,r.style.transition="all .8s ease",r.onload=()=>{let e=Number(r.dataset.width)||r.naturalWidth,t=Number(r.dataset.height)||r.naturalHeight;r.dataset.width&&(t=e/r.naturalWidth*r.naturalHeight),r.dataset.height&&(e=t/r.naturalHeight*r.naturalWidth),r.width=e,r.height=t,r.removeAttribute("data-src"),r.style.background=null,r.dataset.width&&r.removeAttribute("data-width"),r.dataset.height&&r.removeAttribute("data-height"),++o==s.length&&w.removeEventListener("scroll",c),r.addEventListener("transitionend",()=>{r.style.transition=null})},r.onerror=()=>{console.error(`[${Alphabet[8]} - LazyLoad] \u53d1\u751f\u9519\u8bef\uff1a${r.src}\uff01`),o++})})};return w.addEventListener("scroll",c),c(),this}ossUpload(e){var t,r,n,e=this.extend({AccessId:null,AccessKey:null,Endpoint:null,maxSize:2},e);const u=this,{AccessId:g,AccessKey:p,Endpoint:M,maxSize:m}=e;try{Crypto}catch(e){return console.error(`[${Alphabet[8]}] \u7f3a\u5c11Crypto\u5de5\u5177\u65b9\u6cd5`,e)}if(!Crypto.HMAC)return console.error(`[${Alphabet[8]}] \u7f3a\u5c11Crypto\u5de5\u5177\u7684HMAC\u65b9\u6cd5`);if(!Crypto.SHA1)return console.error(`[${Alphabet[8]}] \u7f3a\u5c11Crypto\u5de5\u5177\u7684SHA1\u65b9\u6cd5`);if(!g)return console.error(`[${Alphabet[8]}] \u7f3a\u5931\u963f\u91cc\u4e91\u8d26\u53f7AccessId`);if(!p)return console.error(`[${Alphabet[8]}] \u7f3a\u5931\u963f\u91cc\u4e91\u8d26\u53f7AccessKey`);if(!M)return console.error(`[${Alphabet[8]}] \u7f3a\u5931OSS Bucket \u5916\u7f51\u57df\u540d`);const a=e=>e.toString().padStart(2,0),f={expiration:(e=(new Date).getFullYear(),t=(new Date).getMonth()+1,r=(new Date).getDate(),n=(new Date).getHours(),`${e}-${a(t)}-${a(r)}T${a(n)}:00:00.000Z`),conditions:[["content-length-range",0,1024*m*1024]]},y=e=>e.substring(e.lastIndexOf("."));return this.start=e=>{let{fileObj:a=null,fileName:i=u.guid(),dirName:o="",headers:s=null,async:l=!0,progress:c=null}=e;const d=OSSBase64.encode(JSON.stringify(f)),t=Crypto.HMAC(Crypto.SHA1,d,p,{asBytes:!0}),h=Crypto.util.bytesToBase64(t);return new Promise((e,t)=>{var r,n;return a?a.size>1024*m*1024?(t("overSize"),console.warn(`[${Alphabet[9]}] \u6587\u4ef6\u5927\u5c0f\u8d85\u51fa\u6700\u5927\u9650\u5236`)):((r=new FormData).append("name",""+i+y(a.name)),n=new File([a],""+i+y(a.name),{type:a.type}),a=n,r.append("key",o?o+"/${filename}":"${filename}"),r.append("policy",d),r.append("OSSAccessKeyId",g),r.append("success_action_status","200"),r.append("signature",h),r.append("file",a),void u.ajax({url:M,type:"post",headers:s,async:l,dataType:"form",data:r,progress:c}).then(()=>{e({code:200,msg:"\u4e0a\u4f20\u6210\u529f",url:function(){let e;return e=""!=o?`${M}/${o}/`+a.name:M+"/"+a.name}()})}).catch(t)):(t("noFile"),console.warn(`[${Alphabet[9]}] \u8bf7\u9009\u62e9\u9700\u8981\u4e0a\u4f20\u7684\u6587\u4ef6`))})},this}},Pandora=class extends PandoraJs(PandoraEX){constructor(e=null){super(e)}};w.Pandora=Pandora,w.$||(w.$=e=>new Pandora(e))})(window||__webpack_require__.g||self||this)},e=>{"use strict";var c={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,r,n,a,i,o,s="",l=0;for(e=c._utf8_encode(e);l<e.length;)n=(t=e.charCodeAt(l++))>>2,a=(3&t)<<4|(t=e.charCodeAt(l++))>>4,i=(15&t)<<2|(r=e.charCodeAt(l++))>>6,o=63&r,isNaN(t)?i=o=64:isNaN(r)&&(o=64),s=s+this._keyStr.charAt(n)+this._keyStr.charAt(a)+this._keyStr.charAt(i)+this._keyStr.charAt(o);return s},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):t=127<n&&n<2048?(t+=String.fromCharCode(n>>6|192))+String.fromCharCode(63&n|128):(t=(t+=String.fromCharCode(n>>12|224))+String.fromCharCode(n>>6&63|128))+String.fromCharCode(63&n|128)}return t}};e.exports=c},e=>{"use strict";e.exports=JSON.parse('{"load":"data:image/svg+xml;base64,PCEtLSBCeSBTYW0gSGVyYmVydCAoQHNoZXJiKSwgZm9yIGV2ZXJ5b25lLiBNb3JlIEAgaHR0cDovL2dvby5nbC83QUp6YkwgLS0+Cjxzdmcgd2lkdGg9IjM4IiBoZWlnaHQ9IjM4IiB2aWV3Qm94PSIwIDAgMzggMzgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMSAxKSIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICAgICAgPGNpcmNsZSBzdHJva2Utb3BhY2l0eT0iLjUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPgogICAgICAgICAgICA8cGF0aCBkPSJNMzYgMThjMC05Ljk0LTguMDYtMTgtMTgtMTgiPgogICAgICAgICAgICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0KICAgICAgICAgICAgICAgICAgICBhdHRyaWJ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MTguMDk0NDE4IDIyOS4yOTQ4NzEgNDY0LjQ2MTAzOSAyMzAuNDQwMyA1MTAuNTU5ODgxTDMxMS4yNDA5NzggNDI5Ljc1OTIwMkMzMjMuNTg0MDk0IDQxNy40MTYwODUgMzQzLjg5MjUxMyA0MTcuNzEyMzU3IDM1Ni42MDEwOTkgNDMwLjQyMDk0NiAzNjkuMzA5Njg2IDQ0My4xMjk1MzUgMzY5LjYwNTk1OSA0NjMuNDM3OTUyIDM1Ny4yNjI4NDIgNDc1Ljc4MTA2OEwyMzAuNzc4NzgyIDYwMi4yNjUxMjhDMjI5LjI3MzgyNiA2MDUuNzY5Njc5IDIyNy4wOTg4NzcgNjA5LjA0MTM5NiAyMjQuMjUxMTQ1IDYxMS44ODkxMjggMjExLjkwODAyOSA2MjQuMjMyMjQ1IDE5MS41OTk2MSA2MjMuOTM1OTc0IDE3OC44OTEwMjQgNjExLjIyNzM4NUw0MC44MjU0MjggNDczLjE2MTc5QzI4LjExNjg0IDQ2MC40NTMyMDYgMjcuODIwNTY5IDQ0MC4xNDQ3ODQgNDAuMTYzNjg1IDQyNy44MDE2NjggNTIuNTA2ODAxIDQxNS40NTg1NTEgNzIuODE1MjE4IDQxNS43NTQ4MjcgODUuNTIzODA2IDQyOC40NjM0MTFMMTY1LjIzODg5OSA1MDguMTc4NTA2WiIgcC1pZD0iMTgxOSIgZmlsbD0iIzJjMmMyYyI+PC9wYXRoPjwvc3ZnPg=="}')}],__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];return void 0!==t||(t=__webpack_module_cache__[e]={exports:{}},__webpack_modules__[e].call(t.exports,t,t.exports,__webpack_require__)),t.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var __webpack_exports__=__webpack_require__(0)})(); |