minutool 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(o,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(o=typeof globalThis<"u"?globalThis:o||self,v(o.Minutool={}))})(this,function(o){"use strict";const v=(e,t)=>{let n=[];for(let i in e)n.push(e[i][t]);return n},be=(e,t)=>{for(let n in e)if(e[n]===t)return n;return null},Me=e=>{let t=new Map;return e.filter(n=>{if(!t.has(n))return t.set(n,!0),!0})},ve=(e,t,n)=>{if(!e||!e.length)return e;let i={};if(e.forEach(c=>{let u=c[t];i[u]||(i[u]=[]),i[u].push(c)}),!n)return i;let a={};for(let c in i)a[c]=i[c][0];return a},Se=e=>Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}),_e=(e,t)=>{let n=e.length;if(t<1||!n)return[];if(t>n)return[e];let i=[],a=Math.floor(n/t),c=n%t;for(let u=1;u<=a;u++)i.push(e.splice(0,t));return c&&i.push(e.splice(0,c)),i},Ne=e=>{let t=-1;for(let n=e.length-1;n>=0;n--)if(e[n]){t=n;break}return e.slice(0,t+1)};function z(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const Ce=e=>(e+"").replace(/\\(.?)/g,function(t,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}}),Oe=(e,t,n="...")=>{let i=/[^\x00-\xff]/g;if(e.replace(i,"mm").length<=t)return e;let a=Math.floor(t/2);for(let c=a;c<e.length;c++)if(e.substr(0,c).replace(i,"mm").length>=t)return e.substr(0,c)+n;return e},xe=(e,t)=>{const n=Object.keys(t),i=Object.values(t);return new Function(...n,`return \`${e}\`;`)(...i)};function De(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}function Re(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Ie(e,t,n="..."){return e.length<=t?e:e.slice(0,t)+n}const _=e=>(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),K=e=>{let t="",n=0,i=0,a=0,c=0;for(;n<e.length;)i=e.charCodeAt(n),i<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(a=e.charCodeAt(n+1),t+=String.fromCharCode((i&31)<<6|a&63),n+=2):(a=e.charCodeAt(n+1),c=e.charCodeAt(n+2),t+=String.fromCharCode((i&15)<<12|(a&63)<<6|c&63),n+=3);return t},x=e=>{e=e.replace(/\r\n/g,"n");let t="";for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(i&63|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(i&63|128))}return t},He=e=>{let t=0,n=e.length,i=-1;for(let a=0;a<n;a++)i=e.charCodeAt(a),i>=0&&i<=128?t+=1:t+=3;return t},Le="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890",J=(e=6,t=Le)=>{let n="";for(let i=0;i<e;i++){let a=Math.round(Math.random()*(t.length-1));n+=t.substring(a,a+1)}return n},ke=(e=1,t=8)=>{let n=[];const i="bcdfghjklmnpqrstvwxyz",a="aeiou";for(;e-- >0;){let c="";for(let u=0;u<t;u=u+3)c+=i[Math.floor(Math.random()*i.length)],c+=a[Math.floor(Math.random()*a.length)],c+=i[Math.floor(Math.random()*i.length)];n.push(c)}return n},Fe=(e,t=!1)=>{let n=[];return e.replace(/[-_\s+]/g," ").split(" ").forEach((i,a)=>{n.push(a===0&&!t?i:z(i))}),n.join("")},D=0,R=1,V=2,Pe=(e,t="",n=D)=>{if(t.length){let i=new RegExp("^["+_(t)+"]+"),a=new RegExp("["+_(t)+"]+$");return n===R?e.replace(i,""):n===V?e.replace(a,""):e.replace(i,"").replace(a,"")}else return n===D?e.trim():n===R?e.trimStart():e.trimEnd()},Ue=(e,t)=>{let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Be=e=>{let t="",n,i,a,c,u,r,s,l=0;for(e=e.replace(/\+\+[++^A-Za-z0-9+/=]/g,"");l<e.length;)c=w.indexOf(e.charAt(l++)),u=w.indexOf(e.charAt(l++)),r=w.indexOf(e.charAt(l++)),s=w.indexOf(e.charAt(l++)),n=c<<2|u>>4,i=(u&15)<<4|r>>2,a=(r&3)<<6|s,t=t+String.fromCharCode(n),r!==64&&(t=t+String.fromCharCode(i)),s!==64&&(t=t+String.fromCharCode(a));return t=K(t),t},Ye=e=>x(e).replace("+","-").replace("/","_"),qe=e=>{let t="",n,i,a,c,u,r,s,l=0;for(e=x(e);l<e.length;)n=e.charCodeAt(l++),i=e.charCodeAt(l++),a=e.charCodeAt(l++),c=n>>2,u=(n&3)<<4|i>>4,r=(i&15)<<2|a>>6,s=a&63,isNaN(i)?r=s=64:isNaN(a)&&(s=64),t=t+w.charAt(c)+w.charAt(u)+w.charAt(r)+w.charAt(s);return t},Q=async e=>await Ge(e),Ge=e=>new Promise((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=a=>n(a)}),X=e=>{if(e.requestFullscreen)return e.requestFullscreen();if(e.webkitRequestFullScreen)return e.webkitRequestFullScreen();throw e.mozRequestFullScreen&&e.mozRequestFullScreen(),e.msRequestFullScreen&&e.msRequestFullScreen(),"Browser no allow full screen"},Z=()=>document.exitFullscreen(),je=e=>new Promise((t,n)=>{ee()?Z().then(t).catch(n):X(e).then(t).catch(n)}),ee=()=>!!document.fullscreenElement,We=e=>{const t=navigator.language||navigator.userLanguage;if(e.includes(t))return t;const n=t.split("-")[0],i=e.find(a=>a.startsWith(n));return i||e[0]},$e=()=>navigator.userAgent.toLowerCase().indexOf("firefox")>-1,ze=(e,t,n,i="/")=>{let a="";if(n){let c=new Date;c.setTime(Date.now()+n*24*60*60*1e3),a="; expires="+c.toUTCString()}document.cookie=e+"="+(t||"")+a+"; path="+i},Ke=e=>{let t=e+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let a=n[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},Je=e=>{document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};let Ve=0;const te=(e="")=>"guid_"+(e||J(6))+ ++Ve,Qe=(e,t)=>{let n,i,a=0;return function(){let c=+new Date;n=this,i=arguments,c-a>t&&(e.apply(n,i),a=c)}},Xe=(e,t)=>{let n,i,a=0,c=!1;return function(){if(c)return;let u=+new Date;n=this,i=arguments;let r=t-(u-a);r<=0?(e.apply(n,i),a=u):(c=!0,setTimeout(()=>{e.apply(n,i),c=!1,a=u},r))}},Ze=(e,t)=>{let n;return function(){let i=this,a=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,a)},t)}},et=e=>e&&typeof e=="object"&&e.then&&typeof e.then=="function",tt=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},nt=e=>e&&typeof e=="object"&&!Array.isArray(e),it=e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!1,ne=e=>typeof e!="string"||e.trim()===""?!1:/^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(e),at=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},ot=()=>{let e=new Error().stack;console.log(e)},rt=(1+Math.sqrt(5))/2-1,I=96,lt=(e,t=I)=>e/25.4*t,ct=e=>Math.round(e*56.6929),st=e=>e*2.83464566929,pt=e=>e/2.83464566929,ut=(e,t=I)=>25.4*e/t,dt=(e,t,n)=>Math.min(Math.max(e,t),n),g=(e,t,n,i=!0)=>i?e>=t&&e<=n:e>t&&e<n,ft=(e,t)=>Math.floor(Math.random()*(t+1-e))+e,mt=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},ht=(...e)=>{let t=0;return e.forEach(n=>{if(typeof n=="number"&&!isNaN(n)){const i=n.toString().split(".")[1];i&&(t=Math.max(t,i.length))}}),t},gt=e=>(e=Math.abs(Number(e)),e===0?1:Math.floor(Math.log10(e))+1),wt=e=>{y(e).style.display="none"},Tt=e=>{y(e).style.display=""},Et=e=>{let t=y(e);return t&&t.parentNode&&t.parentNode.removeChild(t)},H="disabled",ie=(e,t="")=>L(e,t,!1),ae=(e,t="")=>L(e,t,!0),L=(e,t="",n=null)=>{let i=y(e),a=n===null?!i.classList.contains(H):!n;a&&re(`.${H} {pointer-event:none !important;}`,"__element_lock_style__"),i.classList.toggle(H,a),i[a?"setAttribute":"removeAttribute"]("disabled","disabled"),i[a?"setAttribute":"removeAttribute"]("data-disabled","disabled"),t&&i.classList.toggle(t,a)},At=(e,t,n)=>{e=y(e);let i=!1;e.addEventListener("mouseenter",()=>{i||(i=!0,t&&t())}),e.addEventListener("mouseleave",()=>{i&&(i=!1,n&&n())})},yt=(e,t)=>{ie(e),t(()=>{ae(e)})},bt=e=>e.parentNode?Array.prototype.indexOf.call(e.parentNode.children,e):-1,k=(e,t=document)=>{if(typeof e=="string")return e=e.trim(),e.indexOf(":scope")!==0&&(e=":scope "+e),Array.from(t.querySelectorAll(e));if(Array.isArray(e)){let n=[];return e.forEach(i=>{n.push(...k(i))}),n}else return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):e instanceof HTMLElement?[e]:e},y=(e,t=document)=>typeof e=="string"?t.querySelector(e):e,Mt=e=>{let t=document.getElementsByTagName("*"),n=[];for(n=[];e&&e.nodeType===1;e=e.parentNode)if(e.hasAttribute("id")){let i=0;for(let a=0;a<t.length&&(t[a].hasAttribute("id")&&t[a].id===e.id&&i++,!(i>1));a++);if(i===1)return n.unshift('id("'+e.getAttribute("id")+'")'),n.join("/");n.unshift(e.localName.toLowerCase()+'[@id="'+e.getAttribute("id")+'"]')}else if(e.hasAttribute("class"))n.unshift(e.localName.toLowerCase()+'[@class="'+e.getAttribute("class")+'"]');else{let i,a;for(i=1,a=e.previousSibling;a;a=a.previousSibling)a.localName===e.localName&&i++;n.unshift(e.localName.toLowerCase()+"["+i+"]")}return n.length?"/"+n.join("/"):null},vt=(e,t,n=!0)=>{const i="ON_DOM_TREE_CHANGE_BIND_"+te();let a=()=>{k(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`,e).forEach(c=>{c.setAttribute(i,"1"),c.addEventListener("change",t)})};oe(e,{attributes:!0,subtree:!0,childList:!0},()=>{n&&a(),t()},10),n&&a()},oe=(e,t,n,i=10)=>{let a=0,c=!1,u=new MutationObserver(()=>{if(c)return;let r=i-(Date.now()-a);r>0?(c=!0,setTimeout(()=>{c=!1,a=Date.now(),n(u)},r)):(a=Date.now(),n(u))});u.observe(e,t)},St=(e,t={left:0,top:0,width:window.innerWidth,height:window.innerHeight})=>{let n={left:e.left,top:e.top};return e.width>t.width||e.height>t.height||(e.width+e.left>t.width+t.left&&(n.left=e.left-(e.width+e.left-(t.width+t.left))),e.height+e.top>t.height+t.top&&(n.top=e.top-(e.height+e.top-(t.height+t.top))),e.left<t.left&&(n.left=t.left),e.top<t.top&&(n.top=t.top)),n},_t=(e,t)=>e.left<=t.left?e.left+e.width>=t.left&&(g(t.top,e.top,e.top+e.height)||g(t.top+t.height,e.top,e.top+e.height)||t.top>=e.top&&t.height>=e.height):t.left+t.width>=e.left&&(g(e.top,t.top,t.top+t.height)||g(e.top+e.height,t.top,t.top+t.height)||e.top>=t.top&&e.height>=t.height),Nt=e=>e?!!(e.tabIndex>=0||e instanceof HTMLAnchorElement&&e.href||e instanceof HTMLButtonElement&&!e.disabled||e instanceof HTMLInputElement&&!e.disabled||e instanceof HTMLTextAreaElement&&!e.disabled):!1;let T={};const Ct=(e,t=!1)=>(!t&&e in T||(T[e]=new Promise((n,i)=>{let a=document.createElement("link");a.rel="stylesheet",a.href=e,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),T[e]),Ot=(e,t=!1)=>(!t&&e in T||(T[e]=new Promise((n,i)=>{let a=document.createElement("script");a.src=e,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),T[e]),xt=e=>{let t=e.style.visibility,n=e.style.display,i,a;return e.style.visibility="hidden",e.style.display="block",i=e.clientWidth,a=e.clientHeight,e.style.visibility=t,e.style.display=n,{width:i,height:a}},re=(e,t="",n=document)=>{if(t&&n.querySelector(`#${t}`))return n.querySelector(`#${t}`);let i=n.createElement("style");return n.head.appendChild(i),i.innerHTML=e,t&&(i.id=t),i},Dt=(e,t)=>g(e.top,t.top,t.top+t.height)&&g(e.left,t.left,t.left+t.width)&&g(e.top+e.height,t.top,t.top+t.height)&&g(e.left+e.width,t.left,t.left+t.width),Rt=e=>Math.pow(10,-e),It=(e,t)=>{try{return new URL(e,t).href}catch{return e}},Ht=(e,t=null)=>{let n=document.createElement("template");e=e.trim(),n.innerHTML=e;let i=[];return t?n.content.childNodes.forEach(a=>{i.push(t.appendChild(a))}):i=Array.from(n.content.childNodes),i.length===1?i[0]:i},le=(e,t=!1)=>{if(!e)throw new Error("el is null");const n=e.getBoundingClientRect();if(t&&!n.height){const i=e.style.visibility,a=e.style.display;e.style.visibility="hidden",e.style.display="block";const c=le(e);return e.style.visibility=i,e.style.display=a,c}return{top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},Lt=e=>{let t={};for(let n in e){const i=e[n];i!==void 0&&(t[`--${n}`]=`${i}`+(typeof i=="number"?"px":""))}return t},kt=e=>e.replace(/[\\/:*?"<>|]/g,"_").replace(/[\0-\x1F]/g,"_").replace(/\s+/g," ").replace(/^\.+/,"").replace(/\.+$/,"").trim(),F=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=a=>n(a),i.readAsDataURL(e)}),ce={},P=(e,t=null)=>t!==null?(ce[e]=t,null):ce[e]||null,Ft=async e=>{if(!e)return null;if(typeof e=="string"&&e.startsWith("data:"))return e;try{if(typeof e=="string"&&ne(e)){const t=await fetch(e);if(!t.ok)throw new Error(`Fetch failed: ${t.status}`);const n=await t.blob();return await F(n)}return e instanceof Blob?await F(e):null}catch(t){return console.warn("file2Base64DataURL failed:",t),null}},Pt=(e,t)=>{const n=document.createElement("a");n.rel="noopener noreferrer",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},U=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","CANVAS","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","NOSCRIPT","OL","P","PRE","SECTION","TABLE","TFOOT","UL","VIDEO"],Ut=["A","ABBR","ACRONYM","B","BDO","BIG","BUTTON","CITE","CODE","DFN","EM","I","KBD","LABEL","MAP","OBJECT","OUTPUT","Q","S","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","TT","U","VAR"].concat(...U),Bt=["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"],se=["STYLE","COMMENT","SELECT","OPTION","SCRIPT","TITLE","HEAD","BUTTON","META","LINK","PARAM","SOURCE"],Yt=e=>(se.forEach(n=>{e=e.replace(new RegExp(n,"ig"),"")}),e=e.replace(/[\r|\n]/g,""),e=e.replace(/<(\w+)([^>]*)>/g,function(n,i,a){return U.includes(i.toUpperCase())?`
2
- `:""}),e=e.replace(/<\/(\w+)([^>]*)>/g,function(n,i,a){return""}),e=e.replace(/<[^>]+>/g,""),[[/&nbsp;/gi," "],[/&lt;/gi,"<"],[/&gt;/gi,">"],[/&quot;/gi,'"'],[/&apos;/gi,"'"]].forEach(([n,i])=>{e=e.replace(n,i)}),e=e.replace(/&#(\d+);/,function(n,i){return String.fromCharCode(parseInt(i))}),e=e.replace(/&amp;/gi,"&"),e=e.trim(),e),qt=e=>window.CSS&&CSS.escape?CSS.escape(e):e.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),Gt=e=>{let t=e.split(";");return t.pop(),t.map(n=>String.fromCharCode(n[2]==="x"?parseInt(n.slice(3),16):parseInt(n.slice(2)))).join("")};let S;const jt=e=>(S||(S=document.createElement("div")),e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),S.innerHTML=e,e=S.textContent||"",S.textContent="",e),Wt=e=>{let t="";for(let n in e){let i=e[n]===null?"":e[n];t+=`<input type="hidden" name="${B(n)}" value="${B(i)}"/>`}return t},$t=(e,t=2,n=!0)=>{let i=String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");return n&&(i=i.replace(/[\r\n]/g,"<br/>")),t&&(i=i.replace(/\t/g,"&nbsp;".repeat(t))),i=i.replace(/\s/g,"&nbsp;"),i},zt=e=>String(e).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/<br.*>/,`
1
+ (function(o,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(o=typeof globalThis<"u"?globalThis:o||self,v(o.Minutool={}))})(this,function(o){"use strict";const v=(e,t)=>{let n=[];for(let i in e)n.push(e[i][t]);return n},Se=(e,t)=>{for(let n in e)if(e[n]===t)return n;return null},Ne=e=>{let t=new Map;return e.filter(n=>{if(!t.has(n))return t.set(n,!0),!0})},Ce=(e,t,n)=>{if(!e||!e.length)return e;let i={};if(e.forEach(c=>{let u=c[t];i[u]||(i[u]=[]),i[u].push(c)}),!n)return i;let a={};for(let c in i)a[c]=i[c][0];return a},Oe=e=>Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}),xe=(e,t)=>{let n=e.length;if(t<1||!n)return[];if(t>n)return[e];let i=[],a=Math.floor(n/t),c=n%t;for(let u=1;u<=a;u++)i.push(e.splice(0,t));return c&&i.push(e.splice(0,c)),i},De=e=>{let t=-1;for(let n=e.length-1;n>=0;n--)if(e[n]){t=n;break}return e.slice(0,t+1)};function $(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const Re=e=>(e+"").replace(/\\(.?)/g,function(t,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}}),Ie=(e,t,n="...")=>{let i=/[^\x00-\xff]/g;if(e.replace(i,"mm").length<=t)return e;let a=Math.floor(t/2);for(let c=a;c<e.length;c++)if(e.substr(0,c).replace(i,"mm").length>=t)return e.substr(0,c)+n;return e},He=(e,t)=>{const n=Object.keys(t),i=Object.values(t);return new Function(...n,`return \`${e}\`;`)(...i)};function Le(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}function ke(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function Fe(e,t,n="..."){return e.length<=t?e:e.slice(0,t)+n}const S=e=>(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),z=e=>{let t="",n=0,i=0,a=0,c=0;for(;n<e.length;)i=e.charCodeAt(n),i<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(a=e.charCodeAt(n+1),t+=String.fromCharCode((i&31)<<6|a&63),n+=2):(a=e.charCodeAt(n+1),c=e.charCodeAt(n+2),t+=String.fromCharCode((i&15)<<12|(a&63)<<6|c&63),n+=3);return t},x=e=>{e=e.replace(/\r\n/g,"n");let t="";for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(i&63|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(i&63|128))}return t},Pe=e=>{let t=0,n=e.length,i=-1;for(let a=0;a<n;a++)i=e.charCodeAt(a),i>=0&&i<=128?t+=1:t+=3;return t},Ue="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890",J=(e=6,t=Ue)=>{let n="";for(let i=0;i<e;i++){let a=Math.round(Math.random()*(t.length-1));n+=t.substring(a,a+1)}return n},Be=(e=1,t=8)=>{let n=[];const i="bcdfghjklmnpqrstvwxyz",a="aeiou";for(;e-- >0;){let c="";for(let u=0;u<t;u=u+3)c+=i[Math.floor(Math.random()*i.length)],c+=a[Math.floor(Math.random()*a.length)],c+=i[Math.floor(Math.random()*i.length)];n.push(c)}return n},Ye=(e,t=!1)=>{let n=[];return e.replace(/[-_\s+]/g," ").split(" ").forEach((i,a)=>{n.push(a===0&&!t?i:$(i))}),n.join("")},D=0,R=1,V=2,qe=(e,t="",n=D)=>{if(t.length){let i=new RegExp("^["+S(t)+"]+"),a=new RegExp("["+S(t)+"]+$");return n===R?e.replace(i,""):n===V?e.replace(a,""):e.replace(i,"").replace(a,"")}else return n===D?e.trim():n===R?e.trimStart():e.trimEnd()},Ge=(e,t)=>{let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n},E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",We=e=>{let t="",n,i,a,c,u,r,s,l=0;for(e=e.replace(/\+\+[++^A-Za-z0-9+/=]/g,"");l<e.length;)c=E.indexOf(e.charAt(l++)),u=E.indexOf(e.charAt(l++)),r=E.indexOf(e.charAt(l++)),s=E.indexOf(e.charAt(l++)),n=c<<2|u>>4,i=(u&15)<<4|r>>2,a=(r&3)<<6|s,t=t+String.fromCharCode(n),r!==64&&(t=t+String.fromCharCode(i)),s!==64&&(t=t+String.fromCharCode(a));return t=z(t),t},je=e=>x(e).replace("+","-").replace("/","_"),Ke=e=>{let t="",n,i,a,c,u,r,s,l=0;for(e=x(e);l<e.length;)n=e.charCodeAt(l++),i=e.charCodeAt(l++),a=e.charCodeAt(l++),c=n>>2,u=(n&3)<<4|i>>4,r=(i&15)<<2|a>>6,s=a&63,isNaN(i)?r=s=64:isNaN(a)&&(s=64),t=t+E.charAt(c)+E.charAt(u)+E.charAt(r)+E.charAt(s);return t},Q=async e=>await $e(e),$e=e=>new Promise((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=a=>n(a)}),X=e=>{if(e.requestFullscreen)return e.requestFullscreen();if(e.webkitRequestFullScreen)return e.webkitRequestFullScreen();throw e.mozRequestFullScreen&&e.mozRequestFullScreen(),e.msRequestFullScreen&&e.msRequestFullScreen(),"Browser no allow full screen"},Z=()=>document.exitFullscreen(),ze=e=>new Promise((t,n)=>{ee()?Z().then(t).catch(n):X(e).then(t).catch(n)}),ee=()=>!!document.fullscreenElement,Je=e=>{const t=navigator.language||navigator.userLanguage;if(e.includes(t))return t;const n=t.split("-")[0],i=e.find(a=>a.startsWith(n));return i||e[0]},Ve=()=>navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Qe=(e,t,n,i="/")=>{let a="";if(n){let c=new Date;c.setTime(Date.now()+n*24*60*60*1e3),a="; expires="+c.toUTCString()}document.cookie=e+"="+(t||"")+a+"; path="+i},Xe=e=>{let t=e+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let a=n[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},Ze=e=>{document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};let et=0;const te=(e="")=>"guid_"+(e||J(6))+ ++et,tt=(e,t)=>{let n,i,a=0;return function(){let c=+new Date;n=this,i=arguments,c-a>t&&(e.apply(n,i),a=c)}},nt=(e,t)=>{let n,i,a=0,c=!1;return function(){if(c)return;let u=+new Date;n=this,i=arguments;let r=t-(u-a);r<=0?(e.apply(n,i),a=u):(c=!0,setTimeout(()=>{e.apply(n,i),c=!1,a=u},r))}},it=(e,t)=>{let n;return function(){let i=this,a=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,a)},t)}},at=e=>e&&typeof e=="object"&&e.then&&typeof e.then=="function",ot=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},rt=e=>e&&typeof e=="object"&&!Array.isArray(e),lt=e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!1,ne=e=>typeof e!="string"||e.trim()===""?!1:/^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(e),ct=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},st=()=>{let e=new Error().stack;console.log(e)},pt=(1+Math.sqrt(5))/2-1,I=96,ut=(e,t=I)=>e/25.4*t,dt=e=>Math.round(e*56.6929),ft=e=>e*2.83464566929,mt=e=>e/2.83464566929,ht=(e,t=I)=>25.4*e/t,gt=(e,t,n)=>Math.min(Math.max(e,t),n),g=(e,t,n,i=!0)=>i?e>=t&&e<=n:e>t&&e<n,Et=(e,t)=>Math.floor(Math.random()*(t+1-e))+e,Tt=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},wt=(...e)=>{let t=0;return e.forEach(n=>{if(typeof n=="number"&&!isNaN(n)){const i=n.toString().split(".")[1];i&&(t=Math.max(t,i.length))}}),t},At=e=>(e=Math.abs(Number(e)),e===0?1:Math.floor(Math.log10(e))+1),yt=e=>{y(e).style.display="none"},bt=e=>{y(e).style.display=""},Mt=e=>{let t=y(e);return t&&t.parentNode&&t.parentNode.removeChild(t)},H="disabled",ie=(e,t="")=>L(e,t,!1),ae=(e,t="")=>L(e,t,!0),L=(e,t="",n=null)=>{let i=y(e),a=n===null?!i.classList.contains(H):!n;a&&re(`.${H} {pointer-event:none !important;}`,"__element_lock_style__"),i.classList.toggle(H,a),i[a?"setAttribute":"removeAttribute"]("disabled","disabled"),i[a?"setAttribute":"removeAttribute"]("data-disabled","disabled"),t&&i.classList.toggle(t,a)},vt=(e,t,n)=>{e=y(e);let i=!1;e.addEventListener("mouseenter",()=>{i||(i=!0,t&&t())}),e.addEventListener("mouseleave",()=>{i&&(i=!1,n&&n())})},_t=(e,t)=>{ie(e),t(()=>{ae(e)})},St=e=>e.parentNode?Array.prototype.indexOf.call(e.parentNode.children,e):-1,k=(e,t=document)=>{if(typeof e=="string")return e=e.trim(),e.indexOf(":scope")!==0&&(e=":scope "+e),Array.from(t.querySelectorAll(e));if(Array.isArray(e)){let n=[];return e.forEach(i=>{n.push(...k(i))}),n}else return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):e instanceof HTMLElement?[e]:e},y=(e,t=document)=>typeof e=="string"?t.querySelector(e):e,Nt=e=>{let t=document.getElementsByTagName("*"),n=[];for(n=[];e&&e.nodeType===1;e=e.parentNode)if(e.hasAttribute("id")){let i=0;for(let a=0;a<t.length&&(t[a].hasAttribute("id")&&t[a].id===e.id&&i++,!(i>1));a++);if(i===1)return n.unshift('id("'+e.getAttribute("id")+'")'),n.join("/");n.unshift(e.localName.toLowerCase()+'[@id="'+e.getAttribute("id")+'"]')}else if(e.hasAttribute("class"))n.unshift(e.localName.toLowerCase()+'[@class="'+e.getAttribute("class")+'"]');else{let i,a;for(i=1,a=e.previousSibling;a;a=a.previousSibling)a.localName===e.localName&&i++;n.unshift(e.localName.toLowerCase()+"["+i+"]")}return n.length?"/"+n.join("/"):null},Ct=(e,t,n=!0)=>{const i="ON_DOM_TREE_CHANGE_BIND_"+te();let a=()=>{k(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`,e).forEach(c=>{c.setAttribute(i,"1"),c.addEventListener("change",t)})};oe(e,{attributes:!0,subtree:!0,childList:!0},()=>{n&&a(),t()},10),n&&a()},oe=(e,t,n,i=10)=>{let a=0,c=!1,u=new MutationObserver(()=>{if(c)return;let r=i-(Date.now()-a);r>0?(c=!0,setTimeout(()=>{c=!1,a=Date.now(),n(u)},r)):(a=Date.now(),n(u))});u.observe(e,t)},Ot=(e,t={left:0,top:0,width:window.innerWidth,height:window.innerHeight})=>{let n={left:e.left,top:e.top};return e.width>t.width||e.height>t.height||(e.width+e.left>t.width+t.left&&(n.left=e.left-(e.width+e.left-(t.width+t.left))),e.height+e.top>t.height+t.top&&(n.top=e.top-(e.height+e.top-(t.height+t.top))),e.left<t.left&&(n.left=t.left),e.top<t.top&&(n.top=t.top)),n},xt=(e,t)=>e.left<=t.left?e.left+e.width>=t.left&&(g(t.top,e.top,e.top+e.height)||g(t.top+t.height,e.top,e.top+e.height)||t.top>=e.top&&t.height>=e.height):t.left+t.width>=e.left&&(g(e.top,t.top,t.top+t.height)||g(e.top+e.height,t.top,t.top+t.height)||e.top>=t.top&&e.height>=t.height),Dt=e=>e?!!(e.tabIndex>=0||e instanceof HTMLAnchorElement&&e.href||e instanceof HTMLButtonElement&&!e.disabled||e instanceof HTMLInputElement&&!e.disabled||e instanceof HTMLTextAreaElement&&!e.disabled):!1;let T={};const Rt=(e,t=!1)=>(!t&&e in T||(T[e]=new Promise((n,i)=>{let a=document.createElement("link");a.rel="stylesheet",a.href=e,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),T[e]),It=(e,t=!1)=>(!t&&e in T||(T[e]=new Promise((n,i)=>{let a=document.createElement("script");a.src=e,a.onload=()=>{n()},a.onerror=()=>{i()},document.head.append(a)})),T[e]),Ht=e=>{let t=e.style.visibility,n=e.style.display,i,a;return e.style.visibility="hidden",e.style.display="block",i=e.clientWidth,a=e.clientHeight,e.style.visibility=t,e.style.display=n,{width:i,height:a}},re=(e,t="",n=document)=>{if(t&&n.querySelector(`#${t}`))return n.querySelector(`#${t}`);let i=n.createElement("style");return n.head.appendChild(i),i.innerHTML=e,t&&(i.id=t),i},Lt=(e,t)=>g(e.top,t.top,t.top+t.height)&&g(e.left,t.left,t.left+t.width)&&g(e.top+e.height,t.top,t.top+t.height)&&g(e.left+e.width,t.left,t.left+t.width),kt=e=>Math.pow(10,-e),Ft=(e,t)=>{try{return new URL(e,t).href}catch{return e}},Pt=(e,t=null)=>{let n=document.createElement("template");e=e.trim(),n.innerHTML=e;let i=[];return t?n.content.childNodes.forEach(a=>{i.push(t.appendChild(a))}):i=Array.from(n.content.childNodes),i.length===1?i[0]:i},le=(e,t=!1)=>{if(!e)throw new Error("el is null");const n=e.getBoundingClientRect();if(t&&!n.height){const i=e.style.visibility,a=e.style.display;e.style.visibility="hidden",e.style.display="block";const c=le(e);return e.style.visibility=i,e.style.display=a,c}return{top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},Ut=e=>{let t={};for(let n in e){const i=e[n];i!==void 0&&(t[`--${n}`]=`${i}`+(typeof i=="number"?"px":""))}return t},Bt=e=>e.replace(/[\\/:*?"<>|]/g,"_").replace(/[\0-\x1F]/g,"_").replace(/\s+/g," ").replace(/^\.+/,"").replace(/\.+$/,"").trim(),F=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=a=>n(a),i.readAsDataURL(e)}),ce={},P=(e,t=null)=>t!==null?(ce[e]=t,null):ce[e]||null,Yt=async e=>{if(!e)return null;if(typeof e=="string"&&e.startsWith("data:"))return e;try{if(typeof e=="string"&&ne(e)){const t=await fetch(e);if(!t.ok)throw new Error(`Fetch failed: ${t.status}`);const n=await t.blob();return await F(n)}return e instanceof Blob?await F(e):null}catch(t){return console.warn("file2Base64DataURL failed:",t),null}},qt=(e,t)=>{const n=document.createElement("a");n.rel="noopener noreferrer",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},U=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","CANVAS","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HR","LI","MAIN","NAV","NOSCRIPT","OL","P","PRE","SECTION","TABLE","TFOOT","UL","VIDEO"],Gt=["A","ABBR","ACRONYM","B","BDO","BIG","BUTTON","CITE","CODE","DFN","EM","I","KBD","LABEL","MAP","OBJECT","OUTPUT","Q","S","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","TT","U","VAR"].concat(...U),Wt=["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"],se=["STYLE","COMMENT","SELECT","OPTION","SCRIPT","TITLE","HEAD","BUTTON","META","LINK","PARAM","SOURCE"],jt=e=>(se.forEach(n=>{e=e.replace(new RegExp(n,"ig"),"")}),e=e.replace(/[\r|\n]/g,""),e=e.replace(/<(\w+)([^>]*)>/g,function(n,i,a){return U.includes(i.toUpperCase())?`
2
+ `:""}),e=e.replace(/<\/(\w+)([^>]*)>/g,function(n,i,a){return""}),e=e.replace(/<[^>]+>/g,""),[[/&nbsp;/gi," "],[/&lt;/gi,"<"],[/&gt;/gi,">"],[/&quot;/gi,'"'],[/&apos;/gi,"'"]].forEach(([n,i])=>{e=e.replace(n,i)}),e=e.replace(/&#(\d+);/,function(n,i){return String.fromCharCode(parseInt(i))}),e=e.replace(/&amp;/gi,"&"),e=e.trim(),e),Kt=e=>window.CSS&&CSS.escape?CSS.escape(e):e.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),$t=e=>{let t=e.split(";");return t.pop(),t.map(n=>String.fromCharCode(n[2]==="x"?parseInt(n.slice(3),16):parseInt(n.slice(2)))).join("")};let _;const zt=e=>(_||(_=document.createElement("div")),e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),_.innerHTML=e,e=_.textContent||"",_.textContent="",e),Jt=e=>{let t="";for(let n in e){let i=e[n]===null?"":e[n];t+=`<input type="hidden" name="${B(n)}" value="${B(i)}"/>`}return t},Vt=(e,t=2,n=!0)=>{let i=String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");return n&&(i=i.replace(/[\r\n]/g,"<br/>")),t&&(i=i.replace(/\t/g,"&nbsp;".repeat(t))),i=i.replace(/\s/g,"&nbsp;"),i},Qt=e=>String(e).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/<br.*>/,`
3
3
  `),B=(e,t="")=>(t=t?"&#13;":`
4
- `,(""+e).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n/g,t).replace(/[\r\n]/g,t)),Kt=(e,t)=>{let n=e.split("");return t=t||0,n.map(i=>`&#${t?"x"+i.charCodeAt(0).toString(16):i.charCodeAt(0)};`).join("")},Jt=(e,t,n='<span class="matched">%s</span>')=>t?e.replace(new RegExp(_(t),"ig"),i=>n.replace("%s",i)):e,Vt=e=>{if(!e.src)return null;if(e.src.indexOf("data:")===0)return e.src;let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");return n?(n.drawImage(e,0,0,e.width,e.height),t.toDataURL("image/png")):null},Qt=(e,t=!1)=>new Promise((n,i)=>{if(t){const c=P(e);if(c)return n(c)}let a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(){if(this.status===200){let c=this.response;Q(c).then(u=>{t&&P(e,u),n(u)}).catch(u=>{i(u)})}},a.onerror=function(){i("Error:"+this.statusText)},a.onabort=function(){i("Request abort")},a.send()}),E=(e,t)=>{let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535},Xt=(e,t)=>e<<t|e>>>32-t,N=(e,t,n,i,a,c)=>E(Xt(E(E(t,e),E(i,c)),a),n),d=(e,t,n,i,a,c,u)=>N(t&n|~t&i,e,t,a,c,u),f=(e,t,n,i,a,c,u)=>N(t&i|n&~i,e,t,a,c,u),m=(e,t,n,i,a,c,u)=>N(t^n^i,e,t,a,c,u),h=(e,t,n,i,a,c,u)=>N(n^(t|~i),e,t,a,c,u),C=(e,t)=>{e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;let n,i,a,c,u,r=1732584193,s=-271733879,l=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)i=r,a=s,c=l,u=p,r=d(r,s,l,p,e[n],7,-680876936),p=d(p,r,s,l,e[n+1],12,-389564586),l=d(l,p,r,s,e[n+2],17,606105819),s=d(s,l,p,r,e[n+3],22,-1044525330),r=d(r,s,l,p,e[n+4],7,-176418897),p=d(p,r,s,l,e[n+5],12,1200080426),l=d(l,p,r,s,e[n+6],17,-1473231341),s=d(s,l,p,r,e[n+7],22,-45705983),r=d(r,s,l,p,e[n+8],7,1770035416),p=d(p,r,s,l,e[n+9],12,-1958414417),l=d(l,p,r,s,e[n+10],17,-42063),s=d(s,l,p,r,e[n+11],22,-1990404162),r=d(r,s,l,p,e[n+12],7,1804603682),p=d(p,r,s,l,e[n+13],12,-40341101),l=d(l,p,r,s,e[n+14],17,-1502002290),s=d(s,l,p,r,e[n+15],22,1236535329),r=f(r,s,l,p,e[n+1],5,-165796510),p=f(p,r,s,l,e[n+6],9,-1069501632),l=f(l,p,r,s,e[n+11],14,643717713),s=f(s,l,p,r,e[n],20,-373897302),r=f(r,s,l,p,e[n+5],5,-701558691),p=f(p,r,s,l,e[n+10],9,38016083),l=f(l,p,r,s,e[n+15],14,-660478335),s=f(s,l,p,r,e[n+4],20,-405537848),r=f(r,s,l,p,e[n+9],5,568446438),p=f(p,r,s,l,e[n+14],9,-1019803690),l=f(l,p,r,s,e[n+3],14,-187363961),s=f(s,l,p,r,e[n+8],20,1163531501),r=f(r,s,l,p,e[n+13],5,-1444681467),p=f(p,r,s,l,e[n+2],9,-51403784),l=f(l,p,r,s,e[n+7],14,1735328473),s=f(s,l,p,r,e[n+12],20,-1926607734),r=m(r,s,l,p,e[n+5],4,-378558),p=m(p,r,s,l,e[n+8],11,-2022574463),l=m(l,p,r,s,e[n+11],16,1839030562),s=m(s,l,p,r,e[n+14],23,-35309556),r=m(r,s,l,p,e[n+1],4,-1530992060),p=m(p,r,s,l,e[n+4],11,1272893353),l=m(l,p,r,s,e[n+7],16,-155497632),s=m(s,l,p,r,e[n+10],23,-1094730640),r=m(r,s,l,p,e[n+13],4,681279174),p=m(p,r,s,l,e[n],11,-358537222),l=m(l,p,r,s,e[n+3],16,-722521979),s=m(s,l,p,r,e[n+6],23,76029189),r=m(r,s,l,p,e[n+9],4,-640364487),p=m(p,r,s,l,e[n+12],11,-421815835),l=m(l,p,r,s,e[n+15],16,530742520),s=m(s,l,p,r,e[n+2],23,-995338651),r=h(r,s,l,p,e[n],6,-198630844),p=h(p,r,s,l,e[n+7],10,1126891415),l=h(l,p,r,s,e[n+14],15,-1416354905),s=h(s,l,p,r,e[n+5],21,-57434055),r=h(r,s,l,p,e[n+12],6,1700485571),p=h(p,r,s,l,e[n+3],10,-1894986606),l=h(l,p,r,s,e[n+10],15,-1051523),s=h(s,l,p,r,e[n+1],21,-2054922799),r=h(r,s,l,p,e[n+8],6,1873313359),p=h(p,r,s,l,e[n+15],10,-30611744),l=h(l,p,r,s,e[n+6],15,-1560198380),s=h(s,l,p,r,e[n+13],21,1309151649),r=h(r,s,l,p,e[n+4],6,-145523070),p=h(p,r,s,l,e[n+11],10,-1120210379),l=h(l,p,r,s,e[n+2],15,718787259),s=h(s,l,p,r,e[n+9],21,-343485551),r=E(r,i),s=E(s,a),l=E(l,c),p=E(p,u);return[r,s,l,p]},pe=e=>{let t,n="",i=e.length*32;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n},Y=e=>{let t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;let i=e.length*8;for(t=0;t<i;t+=8)n[t>>5]|=(e.charCodeAt(t/8)&255)<<t%32;return n},Zt=e=>pe(C(Y(e),e.length*8)),en=(e,t)=>{let n,i=Y(e),a=[],c=[],u;for(a[15]=c[15]=void 0,i.length>16&&(i=C(i,e.length*8)),n=0;n<16;n+=1)a[n]=i[n]^909522486,c[n]=i[n]^1549556828;return u=C(a.concat(Y(t)),512+t.length*8),pe(C(c.concat(u),640))},ue=e=>{let t="0123456789abcdef",n="",i,a;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),n+=t.charAt(i>>>4&15)+t.charAt(i&15);return n},q=e=>unescape(encodeURIComponent(e)),de=e=>Zt(q(e)),tn=e=>ue(de(e)),fe=(e,t)=>en(q(e),q(t)),nn=(e,t)=>ue(fe(e,t)),an=(e,t,n)=>t?n?fe(t,e):nn(t,e):n?de(e):tn(e),on="application/octet-stream",b="application/json",me="application/x-www-form-urlencoded",he="multipart/form-data",rn="text/plain",ln="text/html",cn={323:"text/h323",accdb:"application/msaccess",accde:"application/msaccess",accdt:"application/msaccess",acx:"application/internet-property-stream",ai:"application/postscript",aif:"audio/x-aiff",aifc:"audio/aiff",aiff:"audio/aiff",application:"application/x-ms-application",art:"image/x-jg",asf:"video/x-ms-asf",asm:"text/plain",asr:"video/x-ms-asf",asx:"video/x-ms-asf",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",axs:"application/olescript",bas:"text/plain",bcpio:"application/x-bcpio",bmp:"image/bmp",c:"text/plain",calx:"application/vnd.ms-office.calx",cat:"application/vnd.ms-pki.seccat",cdf:"application/x-cdf",class:"application/x-java-applet",clp:"application/x-msclip",cmx:"image/x-cmx",cnf:"text/plain",cod:"image/cis-cod",cpio:"application/x-cpio",cpp:"text/plain",crd:"application/x-mscardfile",crl:"application/pkix-crl",crt:"application/x-x509-ca-cert",csh:"application/x-csh",css:"text/css",dcr:"application/x-director",der:"application/x-x509-ca-cert",dib:"image/bmp",dir:"application/x-director",disco:"text/xml",dll:"application/x-msdownload","dll.config":"text/xml",dlm:"text/dlm",doc:"application/msword",docm:"application/vnd.ms-word.document.macroEnabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroEnabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",dtd:"text/xml",dvi:"application/x-dvi",dwf:"drawing/x-dwf",dxr:"application/x-director",eml:"message/rfc822",eps:"application/postscript",etx:"text/x-setext",evy:"application/envoy","exe.config":"text/xml",fdf:"application/vnd.fdf",fif:"application/fractals",flr:"x-world/x-vrml",flv:"video/x-flv",gif:"image/gif",gtar:"application/x-gtar",gz:"application/x-gzip",h:"text/plain",hdf:"application/x-hdf",hdml:"text/x-hdml",hhc:"application/x-oleobject",hlp:"application/winhlp",hqx:"application/mac-binhex40",hta:"application/hta",htc:"text/x-component",htm:"text/html",html:"text/html",htt:"text/webviewhtml",hxt:"text/html",ico:"image/x-icon",ief:"image/ief",iii:"application/x-iphone",ins:"application/x-internet-signup",isp:"application/x-internet-signup",IVF:"video/x-ivf",jar:"application/java-archive",jck:"application/liquidmotion",jcz:"application/liquidmotion",jfif:"image/pjpeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"application/x-javascript",jsx:"text/jscript",latex:"application/x-latex",lit:"application/x-ms-reader",lsf:"video/x-la-asf",lsx:"video/x-la-asf",m13:"application/x-msmediaview",m14:"application/x-msmediaview",m1v:"video/mpeg",m3u:"audio/x-mpegurl",man:"application/x-troff-man",manifest:"application/x-ms-manifest",map:"text/plain",mdb:"application/x-msaccess",me:"application/x-troff-me",mht:"message/rfc822",mhtml:"message/rfc822",mid:"audio/mid",midi:"audio/mid",mmf:"application/x-smaf",mno:"text/xml",mny:"application/x-msmoney",mov:"video/quicktime",movie:"video/x-sgi-movie",mp2:"video/mpeg",mp3:"audio/mpeg",mpa:"video/mpeg",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpp:"application/vnd.ms-project",mpv2:"video/mpeg",ms:"application/x-troff-ms",mvb:"application/x-msmediaview",mvc:"application/x-miva-compiled",nc:"application/x-netcdf",nsc:"video/x-ms-asf",nws:"message/rfc822",oda:"application/oda",odc:"text/x-ms-odc",ods:"application/oleobject",one:"application/onenote",onea:"application/onenote",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",osdx:"application/opensearchdescription+xml",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7c:"application/pkcs7-mime",p7m:"application/pkcs7-mime",p7r:"application/x-pkcs7-certreqresp",p7s:"application/pkcs7-signature",pbm:"image/x-portable-bitmap",pdf:"application/pdf",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pko:"application/vnd.ms-pki.pko",pma:"application/x-perfmon",pmc:"application/x-perfmon",pml:"application/x-perfmon",pmr:"application/x-perfmon",pmw:"application/x-perfmon",png:"image/png",pnm:"image/x-portable-anymap",pnz:"image/png",pot:"application/vnd.ms-powerpoint",potm:"application/vnd.ms-powerpoint.template.macroEnabled.12",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",ppam:"application/vnd.ms-powerpoint.addin.macroEnabled.12",ppm:"image/x-portable-pixmap",pps:"application/vnd.ms-powerpoint",ppsm:"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptm:"application/vnd.ms-powerpoint.presentation.macroEnabled.12",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",prf:"application/pics-rules",ps:"application/postscript",pub:"application/x-mspublisher",qt:"video/quicktime",qtl:"application/x-quicktimeplayer",ra:"audio/x-pn-realaudio",ram:"audio/x-pn-realaudio",ras:"image/x-cmu-raster",rf:"image/vnd.rn-realflash",rgb:"image/x-rgb",rm:"application/vnd.rn-realmedia",rmi:"audio/mid",roff:"application/x-troff",rpm:"audio/x-pn-realaudio-plugin",rtf:"application/rtf",rtx:"text/richtext",scd:"application/x-msschedule",sct:"text/scriptlet",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",sgml:"text/sgml",sh:"application/x-sh",shar:"application/x-shar",sit:"application/x-stuffit",sldm:"application/vnd.ms-powerpoint.slide.macroEnabled.12",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",smd:"audio/x-smd",smx:"audio/x-smd",smz:"audio/x-smd",snd:"audio/basic",spc:"application/x-pkcs7-certificates",spl:"application/futuresplash",src:"application/x-wais-source",ssm:"application/streamingmedia",sst:"application/vnd.ms-pki.certstore",stl:"application/vnd.ms-pki.stl",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",swf:"application/x-shockwave-flash",t:"application/x-troff",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",texi:"application/x-texinfo",texinfo:"application/x-texinfo",tgz:"application/x-compressed",thmx:"application/vnd.ms-officetheme",tif:"image/tiff",tiff:"image/tiff",tr:"application/x-troff",trm:"application/x-msterminal",tsv:"text/tab-separated-values",txt:"text/plain",uls:"text/iuls",ustar:"application/x-ustar",vbs:"text/vbscript",vcf:"text/x-vcard",vcs:"text/plain",vdx:"application/vnd.ms-visio.viewer",vml:"text/xml",vsd:"application/vnd.visio",vss:"application/vnd.visio",vst:"application/vnd.visio",vsto:"application/x-ms-vsto",vsw:"application/vnd.visio",vsx:"application/vnd.visio",vtx:"application/vnd.visio",wav:"audio/wav",wax:"audio/x-ms-wax",wbmp:"image/vnd.wap.wbmp",wcm:"application/vnd.ms-works",wdb:"application/vnd.ms-works",wks:"application/vnd.ms-works",wm:"video/x-ms-wm",wma:"audio/x-ms-wma",wmd:"application/x-ms-wmd",wmf:"application/x-msmetafile",wml:"text/vnd.wap.wml",wmlc:"application/vnd.wap.wmlc",wmls:"text/vnd.wap.wmlscript",wmlsc:"application/vnd.wap.wmlscriptc",wmp:"video/x-ms-wmp",wmv:"video/x-ms-wmv",wmx:"video/x-ms-wmx",wmz:"application/x-ms-wmz",wps:"application/vnd.ms-works",wri:"application/x-mswrite",wrl:"x-world/x-vrml",wrz:"x-world/x-vrml",wsdl:"text/xml",wvx:"video/x-ms-wvx",x:"application/directx",xaf:"x-world/x-vrml",xaml:"application/xaml+xml",xap:"application/x-silverlight-app",xbap:"application/x-ms-xbap",xbm:"image/x-xbitmap",xdr:"text/plain",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroEnabled.12",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroEnabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",xml:"text/xml",xof:"x-world/x-vrml",xpm:"image/x-xpixmap",xps:"application/vnd.ms-xpsdocument",xsd:"text/xml",xsf:"text/xml",xsl:"text/xml",xslt:"text/xml",xwd:"image/x-xwindowdump",z:"application/x-compress",zip:"application/x-zip-compressed"},G=e=>{const t={};return e.replace(/^\?/,"").split("&").forEach(n=>{const[i,a]=n.split("=");i&&(t[decodeURIComponent(i)]=decodeURIComponent(a||""))}),t},ge=(e,t)=>{const[n,i]=e.split("?"),c={...i?G(i):{},...t},u=j(c);return`${n}?${u}`},j=e=>{if(typeof e>"u"||typeof e!="object")return e;let t=[];for(let n in e)if(e.hasOwnProperty(n)){if(e[n]===null)continue;typeof e[n]=="object"&&e[n].length?e[n].forEach(i=>{t.push(encodeURI(n+"="+i))}):typeof e[n]=="object"||t.push(encodeURI(n+"="+e[n]))}return t.join("&")},we=(e,t={},n=0)=>{const i=new AbortController;let a=null;n&&(a=setTimeout(()=>i.abort(),n));const c=()=>{a!==null&&(clearTimeout(a),a=null)},u=s=>{const l=s,p=l.then.bind(l),zn=l.catch.bind(l),Kn=l.finally.bind(l);return l.then=function(A,Jn){return u(p(A,Jn))},l.catch=function(A){return u(zn(A))},l.finally=function(A){return u(Kn(A))},l.abort=A=>{c(),i.abort(A||"Request aborted by user")},l},r=fetch(e,{...t,signal:i.signal}).then(s=>(c(),s)).catch(s=>{throw c(),s});return u(r)},sn=(e,t,n)=>{if(t==null)return;const i=e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase();n.set(i,String(t))},pn=e=>["method","headers","body","mode","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","window"].includes(e),O=(e,t=null,n)=>{let{timeout:i,...a}=n;a=a||{},a.method=a.method||"GET";const c=a.method.toUpperCase()==="GET",u=new Headers(a.headers||{});for(let r in a)pn(r)||sn(r,a[r],u);return c&&t&&(e=ge(e,typeof t=="string"?G(t):t),t=null),we(e,{headers:u,body:c?void 0:un(t,u.get("content-type")||void 0),...a},i).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r})},Te=e=>typeof e=="string"||e instanceof FormData||e instanceof URLSearchParams||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e),un=(e,t)=>{if(Te(e)||typeof e!="object")return e;switch(t==null?void 0:t.toLowerCase()){case b:return JSON.stringify(e);case me:case he:default:return j(e)}},dn=(e,t=null,n={})=>O(e,t,{...n,ContentType:b,Accept:b}).then(i=>i.json()),fn=(e,t=null,n={})=>O(e,t,{...n,method:"POST",ContentType:b,Accept:b}).then(i=>i.json()),mn=(e,t,n=null,i={})=>{const a=new FormData;if(Object.keys(t).forEach(c=>{a.append(c,t[c],t[c].name)}),n)for(let c in n)n.hasOwnProperty(c)&&a.append(c,n[c]);return O(e,a,{...i,method:"POST"}).then(c=>c.json())};function W(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(t=>W(t));if(e instanceof Object){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=W(e[n]));return t}return e}function hn(e){return Object.keys(e).length===0}const gn=(e,t)=>{let n={};for(let i in e)t[i]!==void 0?n[t[i]]=e[i]:n[i]=e[i];return n};function wn(e,t,n){const i=t.split(".");let a=e;for(const c of i){if(a==null)return n;a=a[c]}return a!==void 0?a:n}function Tn(e,t,n){const i=t.split("."),a=i.pop();let c=e;for(const u of i)(!(u in c)||typeof c[u]!="object")&&(c[u]={}),c=c[u];c[a]=n}function Ee(e,...t){for(const n of t)for(const i in n)if(n.hasOwnProperty(i)){const a=n[i],c=e[i];a&&typeof a=="object"&&!Array.isArray(a)&&c&&typeof c=="object"&&!Array.isArray(c)?e[i]=Ee(c,a):e[i]=a}return e}const Ae=(e,t=!1)=>{for(const n in e)e[n]===null?delete e[n]:t&&typeof e[n]=="object"&&Ae(e[n],!0);return e},En=new Date().getFullYear(),An=new Date().getMonth()+1,yn=new Date().getDate(),bn=60*1e3,Mn=60*60*1e3,M=24*60*60*1e3,vn=7*M,Sn=30*M,_n=31*M,Nn=365*M,Cn=366*M,On=0,xn=1,Dn=2,Rn=3,In=4,Hn=5,Ln=6,kn=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Fn=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Pn=["January","February","March","April","May","June","July","August","September","October","November","December"],Un=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bn=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],Yn=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],qn=["日","一","二","三","四","五","六"],Gn=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],jn=(e,t,n)=>{let i=()=>{if(t&&t(e),e-- >0){setTimeout(i,1e3);return}n&&n()};i()},Wn=e=>{if(!e||e<10)return"刚刚";e=Math.floor(e/1e3);const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=e%60;let a="";return t>0&&(a+=t+"小时"),(n>0||t>0)&&(a+=n+"分钟"),a+=i+"秒前",a},ye={d:e=>{let t=e.getDate();return(t<10?"0":"")+t},D:e=>Fn[e.getDay()],j:e=>e.getDate(),l:e=>kn[e.getDay()],N:e=>{let t=e.getDay();return t===0?7:t},S:e=>{let t=e.getDate();return t%10===1&&t!==11?"st":t%10===2&&t!==12?"nd":t%10===3&&t!==13?"rd":"th"},w:e=>e.getDay(),z:e=>{let t=new Date(e.getFullYear(),0,1);return Math.ceil((e.getTime()-t.getTime())/864e5)},W:e=>{let t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);let i=t.valueOf();t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7);let a=1+Math.ceil((i-t.getTime())/6048e5);return a<10?"0"+a:a},F:e=>Pn[e.getMonth()],m:e=>{let t=e.getMonth();return(t<9?"0":"")+(t+1)},M:e=>Un[e.getMonth()],n:e=>e.getMonth()+1,t:e=>{let t=e.getFullYear(),n=e.getMonth()+1;return n===12&&(t=t++,n=0),new Date(t,n,0).getDate()},L:e=>{let t=e.getFullYear();return t%400===0||t%100!==0&&t%4===0},o:e=>{let t=new Date(e.valueOf());return t.setDate(t.getDate()-(e.getDay()+6)%7+3),t.getFullYear()},Y:e=>e.getFullYear(),y:e=>(""+e.getFullYear()).substr(2),a:e=>e.getHours()<12?"am":"pm",A:e=>e.getHours()<12?"AM":"PM",B:e=>Math.floor(((e.getUTCHours()+1)%24+e.getUTCMinutes()/60+e.getUTCSeconds()/3600)*1e3/24),g:e=>e.getHours()%12||12,G:e=>e.getHours(),h:e=>{let t=e.getHours();return((t%12||12)<10?"0":"")+(t%12||12)},H:e=>{let t=e.getHours();return(t<10?"0":"")+t},i:e=>{let t=e.getMinutes();return(t<10?"0":"")+t},s:e=>{let t=e.getSeconds();return(t<10?"0":"")+t},v:e=>{let t=e.getMilliseconds();return(t<10?"00":t<100?"0":"")+t},e:e=>Intl.DateTimeFormat().resolvedOptions().timeZone,I:e=>{let t=null;for(let n=0;n<12;++n){let a=new Date(e.getFullYear(),n,1).getTimezoneOffset();if(t===null)t=a;else if(a<t){t=a;break}else if(a>t)break}return e.getTimezoneOffset()===t?1:0},O:e=>{let t=e.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+(Math.abs(t%60)===0?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},P:e=>{let t=e.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+":"+(Math.abs(t%60)===0?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},T:e=>{let t=e.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return t[t.length-1]},Z:e=>-e.getTimezoneOffset()*60,c:e=>$("Y-m-d\\TH:i:sP",e),r:e=>e.toString(),U:e=>Math.floor(e.getTime()/1e3)},$=function(e,t=null){let n=null;return typeof t=="object"&&t!==null?n=t:n=new Date(t||Date.now()),e.replace(/(\\?)(.)/g,function(i,a,c){return a===""&&ye[c]?String(ye[c](n)):c})},$n=e=>$("W",e);o.BLOCK_TAGS=U,o.Base64Encode=qe,o.DATE_NOW=yn,o.DAY_FRIDAY=Hn,o.DAY_MONDAY=xn,o.DAY_SATURDAY=Ln,o.DAY_SUNDAY=On,o.DAY_THURSDAY=In,o.DAY_TUESDAY=Dn,o.DAY_WEDNESDAY=Rn,o.GOLDEN_RATIO=rt,o.MIME_BINARY_DEFAULT=on,o.MIME_EXTENSION_MAP=cn,o.MIME_FORM=me,o.MIME_HTML=ln,o.MIME_JSON=b,o.MIME_MULTIPART=he,o.MIME_TEXT=rn,o.MONTH_NAMES_CN=Bn,o.MONTH_NAMES_SHORT_CN=Yn,o.MONTH_NOW=An,o.ONE_DAY=M,o.ONE_HOUR=Mn,o.ONE_MINUTE=bn,o.ONE_MONTH30=Sn,o.ONE_MONTH31=_n,o.ONE_WEEK=vn,o.ONE_YEAR365=Nn,o.ONE_YEAR366=Cn,o.PAIR_TAGS=Ut,o.REMOVABLE_TAGS=se,o.SELF_CLOSING_TAGS=Bt,o.STAND_DPI=I,o.TRIM_BOTH=D,o.TRIM_LEFT=R,o.TRIM_RIGHT=V,o.WEEK_DAY_NAMES_CN=Gn,o.WEEK_DAY_NAMES_SHORT_CN=qn,o.YEAR_NOW=En,o.abortableFetch=we,o.arrayChunk=_e,o.arrayColumn=v,o.arrayDistinct=Me,o.arrayGroup=ve,o.arrayIndex=be,o.arraySortByKey=Se,o.arrayTrimTail=Ne,o.base64Decode=Be,o.base64UrlSafeEncode=Ye,o.between=g,o.blobToBase64=Q,o.blobToDataUri=F,o.buildHtmlHidden=Wt,o.buildStyleVars=Lt,o.camelCase=De,o.capitalize=z,o.cleanNull=Ae,o.countDown=jn,o.createDomByHtml=Ht,o.cssSelectorEscape=qt,o.cutString=Oe,o.debounce=Ze,o.decodeHTMLEntities=jt,o.deepClone=W,o.deleteCookie=Je,o.detectLanguage=We,o.detectedPrecision=ht,o.digitCount=gt,o.disabled=ie,o.downloadFile=Pt,o.enabled=ae,o.enterFullScreen=X,o.entityToString=Gt,o.escapeAttr=B,o.escapeHtml=$t,o.exitFullScreen=Z,o.extract=xe,o.fileToBase64DataUri=Ft,o.findAll=k,o.findOne=y,o.fixBaseUrl=It,o.formatDate=$,o.getBoundingClientRect=le,o.getCookie=Ke,o.getDomDimension=xt,o.getJson=dn,o.getNodeXPath=Mt,o.getUTF8StrLen=He,o.getWeekNumber=$n,o.guid=te,o.hide=wt,o.highlightText=Jt,o.html2Text=Yt,o.imgToBase64=Vt,o.insertStyleSheet=re,o.isBodyInit=Te,o.isEmptyObject=hn,o.isFirefox=$e,o.isFocusable=Nt,o.isFunction=it,o.isInFullScreen=ee,o.isJSON=at,o.isJson=tt,o.isObject=nt,o.isPromise=et,o.isUrl=ne,o.kebabCase=Re,o.keepRectInContainer=St,o.limit=dt,o.loadCss=Ct,o.loadScript=Ot,o.lockElementInteraction=yt,o.md5=an,o.mmToPt=st,o.mmToPx=lt,o.mmToTwip=ct,o.msToHMS=Wn,o.mutationEffective=oe,o.nodeIndex=bt,o.objToQuery=j,o.objectGet=wn,o.objectKeyMapping=gn,o.objectMerge=Ee,o.objectSet=Tn,o.onDomTreeChange=vt,o.onHover=At,o.postFiles=mn,o.postJson=fn,o.precisionToStep=Rt,o.printStack=ot,o.ptToMm=pt,o.pxToMm=ut,o.queryReplace=ge,o.queryToObj=G,o.randomInt=ft,o.randomString=J,o.randomWords=ke,o.rectAssoc=_t,o.rectInLayout=Dt,o.regQuote=_,o.remove=Et,o.request=O,o.round=mt,o.sanitizeFileName=kt,o.setCookie=ze,o.show=Tt,o.srcToBase64=Qt,o.strChunk=Ue,o.strToPascalCase=Fe,o.stringToEntity=Kt,o.stripSlashes=Ce,o.throttle=Qe,o.throttleEffect=Xe,o.toggleDisabled=L,o.toggleFullScreen=je,o.trim=Pe,o.truncate=Ie,o.unescapeHtml=zt,o.urlB64DataCache=P,o.utf8Decode=K,o.utf8Encode=x,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
4
+ `,(""+e).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r\n/g,t).replace(/[\r\n]/g,t)),Xt=(e,t)=>{let n=e.split("");return t=t||0,n.map(i=>`&#${t?"x"+i.charCodeAt(0).toString(16):i.charCodeAt(0)};`).join("")},Zt=(e,t,n='<span class="matched">%s</span>')=>t?e.replace(new RegExp(S(t),"ig"),i=>n.replace("%s",i)):e,en=e=>{if(!e.src)return null;if(e.src.indexOf("data:")===0)return e.src;let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let n=t.getContext("2d");return n?(n.drawImage(e,0,0,e.width,e.height),t.toDataURL("image/png")):null},tn=(e,t=!1)=>new Promise((n,i)=>{if(t){const c=P(e);if(c)return n(c)}let a=new XMLHttpRequest;a.open("GET",e,!0),a.responseType="blob",a.onload=function(){if(this.status===200){let c=this.response;Q(c).then(u=>{t&&P(e,u),n(u)}).catch(u=>{i(u)})}},a.onerror=function(){i("Error:"+this.statusText)},a.onabort=function(){i("Request abort")},a.send()}),w=(e,t)=>{let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535},nn=(e,t)=>e<<t|e>>>32-t,N=(e,t,n,i,a,c)=>w(nn(w(w(t,e),w(i,c)),a),n),d=(e,t,n,i,a,c,u)=>N(t&n|~t&i,e,t,a,c,u),f=(e,t,n,i,a,c,u)=>N(t&i|n&~i,e,t,a,c,u),m=(e,t,n,i,a,c,u)=>N(t^n^i,e,t,a,c,u),h=(e,t,n,i,a,c,u)=>N(n^(t|~i),e,t,a,c,u),C=(e,t)=>{e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;let n,i,a,c,u,r=1732584193,s=-271733879,l=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)i=r,a=s,c=l,u=p,r=d(r,s,l,p,e[n],7,-680876936),p=d(p,r,s,l,e[n+1],12,-389564586),l=d(l,p,r,s,e[n+2],17,606105819),s=d(s,l,p,r,e[n+3],22,-1044525330),r=d(r,s,l,p,e[n+4],7,-176418897),p=d(p,r,s,l,e[n+5],12,1200080426),l=d(l,p,r,s,e[n+6],17,-1473231341),s=d(s,l,p,r,e[n+7],22,-45705983),r=d(r,s,l,p,e[n+8],7,1770035416),p=d(p,r,s,l,e[n+9],12,-1958414417),l=d(l,p,r,s,e[n+10],17,-42063),s=d(s,l,p,r,e[n+11],22,-1990404162),r=d(r,s,l,p,e[n+12],7,1804603682),p=d(p,r,s,l,e[n+13],12,-40341101),l=d(l,p,r,s,e[n+14],17,-1502002290),s=d(s,l,p,r,e[n+15],22,1236535329),r=f(r,s,l,p,e[n+1],5,-165796510),p=f(p,r,s,l,e[n+6],9,-1069501632),l=f(l,p,r,s,e[n+11],14,643717713),s=f(s,l,p,r,e[n],20,-373897302),r=f(r,s,l,p,e[n+5],5,-701558691),p=f(p,r,s,l,e[n+10],9,38016083),l=f(l,p,r,s,e[n+15],14,-660478335),s=f(s,l,p,r,e[n+4],20,-405537848),r=f(r,s,l,p,e[n+9],5,568446438),p=f(p,r,s,l,e[n+14],9,-1019803690),l=f(l,p,r,s,e[n+3],14,-187363961),s=f(s,l,p,r,e[n+8],20,1163531501),r=f(r,s,l,p,e[n+13],5,-1444681467),p=f(p,r,s,l,e[n+2],9,-51403784),l=f(l,p,r,s,e[n+7],14,1735328473),s=f(s,l,p,r,e[n+12],20,-1926607734),r=m(r,s,l,p,e[n+5],4,-378558),p=m(p,r,s,l,e[n+8],11,-2022574463),l=m(l,p,r,s,e[n+11],16,1839030562),s=m(s,l,p,r,e[n+14],23,-35309556),r=m(r,s,l,p,e[n+1],4,-1530992060),p=m(p,r,s,l,e[n+4],11,1272893353),l=m(l,p,r,s,e[n+7],16,-155497632),s=m(s,l,p,r,e[n+10],23,-1094730640),r=m(r,s,l,p,e[n+13],4,681279174),p=m(p,r,s,l,e[n],11,-358537222),l=m(l,p,r,s,e[n+3],16,-722521979),s=m(s,l,p,r,e[n+6],23,76029189),r=m(r,s,l,p,e[n+9],4,-640364487),p=m(p,r,s,l,e[n+12],11,-421815835),l=m(l,p,r,s,e[n+15],16,530742520),s=m(s,l,p,r,e[n+2],23,-995338651),r=h(r,s,l,p,e[n],6,-198630844),p=h(p,r,s,l,e[n+7],10,1126891415),l=h(l,p,r,s,e[n+14],15,-1416354905),s=h(s,l,p,r,e[n+5],21,-57434055),r=h(r,s,l,p,e[n+12],6,1700485571),p=h(p,r,s,l,e[n+3],10,-1894986606),l=h(l,p,r,s,e[n+10],15,-1051523),s=h(s,l,p,r,e[n+1],21,-2054922799),r=h(r,s,l,p,e[n+8],6,1873313359),p=h(p,r,s,l,e[n+15],10,-30611744),l=h(l,p,r,s,e[n+6],15,-1560198380),s=h(s,l,p,r,e[n+13],21,1309151649),r=h(r,s,l,p,e[n+4],6,-145523070),p=h(p,r,s,l,e[n+11],10,-1120210379),l=h(l,p,r,s,e[n+2],15,718787259),s=h(s,l,p,r,e[n+9],21,-343485551),r=w(r,i),s=w(s,a),l=w(l,c),p=w(p,u);return[r,s,l,p]},pe=e=>{let t,n="",i=e.length*32;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n},Y=e=>{let t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;let i=e.length*8;for(t=0;t<i;t+=8)n[t>>5]|=(e.charCodeAt(t/8)&255)<<t%32;return n},an=e=>pe(C(Y(e),e.length*8)),on=(e,t)=>{let n,i=Y(e),a=[],c=[],u;for(a[15]=c[15]=void 0,i.length>16&&(i=C(i,e.length*8)),n=0;n<16;n+=1)a[n]=i[n]^909522486,c[n]=i[n]^1549556828;return u=C(a.concat(Y(t)),512+t.length*8),pe(C(c.concat(u),640))},ue=e=>{let t="0123456789abcdef",n="",i,a;for(a=0;a<e.length;a+=1)i=e.charCodeAt(a),n+=t.charAt(i>>>4&15)+t.charAt(i&15);return n},q=e=>unescape(encodeURIComponent(e)),de=e=>an(q(e)),rn=e=>ue(de(e)),fe=(e,t)=>on(q(e),q(t)),ln=(e,t)=>ue(fe(e,t)),cn=(e,t,n)=>t?n?fe(t,e):ln(t,e):n?de(e):rn(e),sn="application/octet-stream",b="application/json",me="application/x-www-form-urlencoded",he="multipart/form-data",pn="text/plain",un="text/html",dn={323:"text/h323",accdb:"application/msaccess",accde:"application/msaccess",accdt:"application/msaccess",acx:"application/internet-property-stream",ai:"application/postscript",aif:"audio/x-aiff",aifc:"audio/aiff",aiff:"audio/aiff",application:"application/x-ms-application",art:"image/x-jg",asf:"video/x-ms-asf",asm:"text/plain",asr:"video/x-ms-asf",asx:"video/x-ms-asf",atom:"application/atom+xml",au:"audio/basic",avi:"video/x-msvideo",axs:"application/olescript",bas:"text/plain",bcpio:"application/x-bcpio",bmp:"image/bmp",c:"text/plain",calx:"application/vnd.ms-office.calx",cat:"application/vnd.ms-pki.seccat",cdf:"application/x-cdf",class:"application/x-java-applet",clp:"application/x-msclip",cmx:"image/x-cmx",cnf:"text/plain",cod:"image/cis-cod",cpio:"application/x-cpio",cpp:"text/plain",crd:"application/x-mscardfile",crl:"application/pkix-crl",crt:"application/x-x509-ca-cert",csh:"application/x-csh",css:"text/css",dcr:"application/x-director",der:"application/x-x509-ca-cert",dib:"image/bmp",dir:"application/x-director",disco:"text/xml",dll:"application/x-msdownload","dll.config":"text/xml",dlm:"text/dlm",doc:"application/msword",docm:"application/vnd.ms-word.document.macroEnabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroEnabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",dtd:"text/xml",dvi:"application/x-dvi",dwf:"drawing/x-dwf",dxr:"application/x-director",eml:"message/rfc822",eps:"application/postscript",etx:"text/x-setext",evy:"application/envoy","exe.config":"text/xml",fdf:"application/vnd.fdf",fif:"application/fractals",flr:"x-world/x-vrml",flv:"video/x-flv",gif:"image/gif",gtar:"application/x-gtar",gz:"application/x-gzip",h:"text/plain",hdf:"application/x-hdf",hdml:"text/x-hdml",hhc:"application/x-oleobject",hlp:"application/winhlp",hqx:"application/mac-binhex40",hta:"application/hta",htc:"text/x-component",htm:"text/html",html:"text/html",htt:"text/webviewhtml",hxt:"text/html",ico:"image/x-icon",ief:"image/ief",iii:"application/x-iphone",ins:"application/x-internet-signup",isp:"application/x-internet-signup",IVF:"video/x-ivf",jar:"application/java-archive",jck:"application/liquidmotion",jcz:"application/liquidmotion",jfif:"image/pjpeg",jpe:"image/jpeg",jpeg:"image/jpeg",jpg:"image/jpeg",js:"application/x-javascript",jsx:"text/jscript",latex:"application/x-latex",lit:"application/x-ms-reader",lsf:"video/x-la-asf",lsx:"video/x-la-asf",m13:"application/x-msmediaview",m14:"application/x-msmediaview",m1v:"video/mpeg",m3u:"audio/x-mpegurl",man:"application/x-troff-man",manifest:"application/x-ms-manifest",map:"text/plain",mdb:"application/x-msaccess",me:"application/x-troff-me",mht:"message/rfc822",mhtml:"message/rfc822",mid:"audio/mid",midi:"audio/mid",mmf:"application/x-smaf",mno:"text/xml",mny:"application/x-msmoney",mov:"video/quicktime",movie:"video/x-sgi-movie",mp2:"video/mpeg",mp3:"audio/mpeg",mpa:"video/mpeg",mpe:"video/mpeg",mpeg:"video/mpeg",mpg:"video/mpeg",mpp:"application/vnd.ms-project",mpv2:"video/mpeg",ms:"application/x-troff-ms",mvb:"application/x-msmediaview",mvc:"application/x-miva-compiled",nc:"application/x-netcdf",nsc:"video/x-ms-asf",nws:"message/rfc822",oda:"application/oda",odc:"text/x-ms-odc",ods:"application/oleobject",one:"application/onenote",onea:"application/onenote",onetoc:"application/onenote",onetoc2:"application/onenote",onetmp:"application/onenote",onepkg:"application/onenote",osdx:"application/opensearchdescription+xml",p10:"application/pkcs10",p12:"application/x-pkcs12",p7b:"application/x-pkcs7-certificates",p7c:"application/pkcs7-mime",p7m:"application/pkcs7-mime",p7r:"application/x-pkcs7-certreqresp",p7s:"application/pkcs7-signature",pbm:"image/x-portable-bitmap",pdf:"application/pdf",pfx:"application/x-pkcs12",pgm:"image/x-portable-graymap",pko:"application/vnd.ms-pki.pko",pma:"application/x-perfmon",pmc:"application/x-perfmon",pml:"application/x-perfmon",pmr:"application/x-perfmon",pmw:"application/x-perfmon",png:"image/png",pnm:"image/x-portable-anymap",pnz:"image/png",pot:"application/vnd.ms-powerpoint",potm:"application/vnd.ms-powerpoint.template.macroEnabled.12",potx:"application/vnd.openxmlformats-officedocument.presentationml.template",ppam:"application/vnd.ms-powerpoint.addin.macroEnabled.12",ppm:"image/x-portable-pixmap",pps:"application/vnd.ms-powerpoint",ppsm:"application/vnd.ms-powerpoint.slideshow.macroEnabled.12",ppsx:"application/vnd.openxmlformats-officedocument.presentationml.slideshow",ppt:"application/vnd.ms-powerpoint",pptm:"application/vnd.ms-powerpoint.presentation.macroEnabled.12",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",prf:"application/pics-rules",ps:"application/postscript",pub:"application/x-mspublisher",qt:"video/quicktime",qtl:"application/x-quicktimeplayer",ra:"audio/x-pn-realaudio",ram:"audio/x-pn-realaudio",ras:"image/x-cmu-raster",rf:"image/vnd.rn-realflash",rgb:"image/x-rgb",rm:"application/vnd.rn-realmedia",rmi:"audio/mid",roff:"application/x-troff",rpm:"audio/x-pn-realaudio-plugin",rtf:"application/rtf",rtx:"text/richtext",scd:"application/x-msschedule",sct:"text/scriptlet",setpay:"application/set-payment-initiation",setreg:"application/set-registration-initiation",sgml:"text/sgml",sh:"application/x-sh",shar:"application/x-shar",sit:"application/x-stuffit",sldm:"application/vnd.ms-powerpoint.slide.macroEnabled.12",sldx:"application/vnd.openxmlformats-officedocument.presentationml.slide",smd:"audio/x-smd",smx:"audio/x-smd",smz:"audio/x-smd",snd:"audio/basic",spc:"application/x-pkcs7-certificates",spl:"application/futuresplash",src:"application/x-wais-source",ssm:"application/streamingmedia",sst:"application/vnd.ms-pki.certstore",stl:"application/vnd.ms-pki.stl",sv4cpio:"application/x-sv4cpio",sv4crc:"application/x-sv4crc",svg:"image/svg+xml",swf:"application/x-shockwave-flash",t:"application/x-troff",tar:"application/x-tar",tcl:"application/x-tcl",tex:"application/x-tex",texi:"application/x-texinfo",texinfo:"application/x-texinfo",tgz:"application/x-compressed",thmx:"application/vnd.ms-officetheme",tif:"image/tiff",tiff:"image/tiff",tr:"application/x-troff",trm:"application/x-msterminal",tsv:"text/tab-separated-values",txt:"text/plain",uls:"text/iuls",ustar:"application/x-ustar",vbs:"text/vbscript",vcf:"text/x-vcard",vcs:"text/plain",vdx:"application/vnd.ms-visio.viewer",vml:"text/xml",vsd:"application/vnd.visio",vss:"application/vnd.visio",vst:"application/vnd.visio",vsto:"application/x-ms-vsto",vsw:"application/vnd.visio",vsx:"application/vnd.visio",vtx:"application/vnd.visio",wav:"audio/wav",wax:"audio/x-ms-wax",wbmp:"image/vnd.wap.wbmp",wcm:"application/vnd.ms-works",wdb:"application/vnd.ms-works",wks:"application/vnd.ms-works",wm:"video/x-ms-wm",wma:"audio/x-ms-wma",wmd:"application/x-ms-wmd",wmf:"application/x-msmetafile",wml:"text/vnd.wap.wml",wmlc:"application/vnd.wap.wmlc",wmls:"text/vnd.wap.wmlscript",wmlsc:"application/vnd.wap.wmlscriptc",wmp:"video/x-ms-wmp",wmv:"video/x-ms-wmv",wmx:"video/x-ms-wmx",wmz:"application/x-ms-wmz",wps:"application/vnd.ms-works",wri:"application/x-mswrite",wrl:"x-world/x-vrml",wrz:"x-world/x-vrml",wsdl:"text/xml",wvx:"video/x-ms-wvx",x:"application/directx",xaf:"x-world/x-vrml",xaml:"application/xaml+xml",xap:"application/x-silverlight-app",xbap:"application/x-ms-xbap",xbm:"image/x-xbitmap",xdr:"text/plain",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroEnabled.12",xlc:"application/vnd.ms-excel",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.12",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroEnabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",xml:"text/xml",xof:"x-world/x-vrml",xpm:"image/x-xpixmap",xps:"application/vnd.ms-xpsdocument",xsd:"text/xml",xsf:"text/xml",xsl:"text/xml",xslt:"text/xml",xwd:"image/x-xwindowdump",z:"application/x-compress",zip:"application/x-zip-compressed"},G=e=>{const t={};return e.replace(/^\?/,"").split("&").forEach(n=>{const[i,a]=n.split("=");i&&(t[decodeURIComponent(i)]=decodeURIComponent(a||""))}),t},ge=(e,t)=>{const[n,i]=e.split("?"),c={...i?G(i):{},...t},u=W(c);return`${n}?${u}`},W=e=>{if(typeof e>"u"||typeof e!="object")return e;let t=[];for(let n in e)if(e.hasOwnProperty(n)){if(e[n]===null)continue;typeof e[n]=="object"&&e[n].length?e[n].forEach(i=>{t.push(encodeURI(n+"="+i))}):typeof e[n]=="object"||t.push(encodeURI(n+"="+e[n]))}return t.join("&")},Ee=(e,t={},n=0)=>{const i=new AbortController;let a=null;n&&(a=setTimeout(()=>i.abort(),n));const c=()=>{a!==null&&(clearTimeout(a),a=null)},u=s=>{const l=s,p=l.then.bind(l),$n=l.catch.bind(l),zn=l.finally.bind(l);return l.then=function(A,Jn){return u(p(A,Jn))},l.catch=function(A){return u($n(A))},l.finally=function(A){return u(zn(A))},l.abort=A=>{c(),i.abort(A||"Request aborted by user")},l},r=fetch(e,{...t,signal:i.signal}).then(s=>(c(),s)).catch(s=>{throw c(),s});return u(r)},fn=(e,t,n)=>{if(t==null)return;const i=e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase();n.set(i,String(t))},mn=e=>["method","headers","body","mode","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","window"].includes(e),O=(e,t=null,n)=>{let{timeout:i,...a}=n;a=a||{},a.method=a.method||"GET";const c=a.method.toUpperCase()==="GET",u=new Headers(a.headers||{});for(let r in a)mn(r)||fn(r,a[r],u);return c&&t&&(e=ge(e,typeof t=="string"?G(t):t),t=null),Ee(e,{headers:u,body:c?void 0:hn(t,u.get("content-type")||void 0),...a},i).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r})},Te=e=>typeof e=="string"||e instanceof FormData||e instanceof URLSearchParams||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e),hn=(e,t)=>{if(Te(e)||typeof e!="object")return e;switch(t==null?void 0:t.toLowerCase()){case b:return JSON.stringify(e);case me:case he:default:return W(e)}},gn=(e,t=null,n={})=>O(e,t,{...n,ContentType:b,Accept:b}).then(i=>i.json()),En=(e,t=null,n={})=>O(e,t,{...n,method:"POST",ContentType:b,Accept:b}).then(i=>i.json()),Tn=(e,t,n=null,i={})=>{const a=new FormData;if(Object.keys(t).forEach(c=>{a.append(c,t[c],t[c].name)}),n)for(let c in n)n.hasOwnProperty(c)&&a.append(c,n[c]);return O(e,a,{...i,method:"POST"}).then(c=>c.json())};function j(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array)return e.map(t=>j(t));if(e instanceof Object){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=j(e[n]));return t}return e}function wn(e){return Object.keys(e).length===0}const An=(e,t)=>{let n={};for(let i in e)t[i]!==void 0?n[t[i]]=e[i]:n[i]=e[i];return n};function yn(e,t,n){const i=t.split(".");let a=e;for(const c of i){if(a==null)return n;a=a[c]}return a!==void 0?a:n}function bn(e,t,n){const i=t.split("."),a=i.pop();let c=e;for(const u of i)(!(u in c)||typeof c[u]!="object")&&(c[u]={}),c=c[u];c[a]=n}function we(e,...t){for(const n of t)for(const i in n)if(n.hasOwnProperty(i)){const a=n[i],c=e[i];a&&typeof a=="object"&&!Array.isArray(a)&&c&&typeof c=="object"&&!Array.isArray(c)?e[i]=we(c,a):e[i]=a}return e}const Ae=(e,t=!1)=>{for(const n in e)e[n]===null?delete e[n]:t&&typeof e[n]=="object"&&Ae(e[n],!0);return e},Mn=new Date().getFullYear(),vn=new Date().getMonth()+1,_n=new Date().getDate(),Sn=60*1e3,Nn=60*60*1e3,M=24*60*60*1e3,Cn=7*M,On=30*M,xn=31*M,Dn=365*M,Rn=366*M,In=0,Hn=1,Ln=2,kn=3,Fn=4,Pn=5,Un=6,ye=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],be=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Me=["January","February","March","April","May","June","July","August","September","October","November","December"],ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bn=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],Yn=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],qn=["日","一","二","三","四","五","六"],Gn=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],Wn=(e,t,n)=>{let i=()=>{if(t&&t(e),e-- >0){setTimeout(i,1e3);return}n&&n()};i()},jn=e=>{if(!e||e<10)return"刚刚";e=Math.floor(e/1e3);const t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=e%60;let a="";return t>0&&(a+=t+"小时"),(n>0||t>0)&&(a+=n+"分钟"),a+=i+"秒前",a},_e={d:e=>{let t=e.getDate();return(t<10?"0":"")+t},D:e=>be[e.getDay()],j:e=>e.getDate(),l:e=>ye[e.getDay()],N:e=>{let t=e.getDay();return t===0?7:t},S:e=>{let t=e.getDate();return t%10===1&&t!==11?"st":t%10===2&&t!==12?"nd":t%10===3&&t!==13?"rd":"th"},w:e=>e.getDay(),z:e=>{let t=new Date(e.getFullYear(),0,1);return Math.ceil((e.getTime()-t.getTime())/864e5)},W:e=>{let t=new Date(e.valueOf()),n=(e.getDay()+6)%7;t.setDate(t.getDate()-n+3);let i=t.valueOf();t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7);let a=1+Math.ceil((i-t.getTime())/6048e5);return a<10?"0"+a:a},F:e=>Me[e.getMonth()],m:e=>{let t=e.getMonth();return(t<9?"0":"")+(t+1)},M:e=>ve[e.getMonth()],n:e=>e.getMonth()+1,t:e=>{let t=e.getFullYear(),n=e.getMonth()+1;return n===12&&(t=t++,n=0),new Date(t,n,0).getDate()},L:e=>{let t=e.getFullYear();return t%400===0||t%100!==0&&t%4===0},o:e=>{let t=new Date(e.valueOf());return t.setDate(t.getDate()-(e.getDay()+6)%7+3),t.getFullYear()},Y:e=>e.getFullYear(),y:e=>(""+e.getFullYear()).substr(2),a:e=>e.getHours()<12?"am":"pm",A:e=>e.getHours()<12?"AM":"PM",B:e=>Math.floor(((e.getUTCHours()+1)%24+e.getUTCMinutes()/60+e.getUTCSeconds()/3600)*1e3/24),g:e=>e.getHours()%12||12,G:e=>e.getHours(),h:e=>{let t=e.getHours();return((t%12||12)<10?"0":"")+(t%12||12)},H:e=>{let t=e.getHours();return(t<10?"0":"")+t},i:e=>{let t=e.getMinutes();return(t<10?"0":"")+t},s:e=>{let t=e.getSeconds();return(t<10?"0":"")+t},v:e=>{let t=e.getMilliseconds();return(t<10?"00":t<100?"0":"")+t},e:e=>Intl.DateTimeFormat().resolvedOptions().timeZone,I:e=>{let t=null;for(let n=0;n<12;++n){let a=new Date(e.getFullYear(),n,1).getTimezoneOffset();if(t===null)t=a;else if(a<t){t=a;break}else if(a>t)break}return e.getTimezoneOffset()===t?1:0},O:e=>{let t=e.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+(Math.abs(t%60)===0?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},P:e=>{let t=e.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+":"+(Math.abs(t%60)===0?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},T:e=>{let t=e.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return t[t.length-1]},Z:e=>-e.getTimezoneOffset()*60,c:e=>K("Y-m-d\\TH:i:sP",e),r:e=>e.toString(),U:e=>Math.floor(e.getTime()/1e3)},K=function(e,t=null){let n=null;return typeof t=="object"&&t!==null?n=t:n=new Date(t||Date.now()),e.replace(/(\\?)(.)/g,function(i,a,c){return a===""&&_e[c]?String(_e[c](n)):c})},Kn=e=>K("W",e);o.BLOCK_TAGS=U,o.Base64Encode=Ke,o.DATE_NOW=_n,o.DAY_FRIDAY=Pn,o.DAY_MONDAY=Hn,o.DAY_SATURDAY=Un,o.DAY_SUNDAY=In,o.DAY_THURSDAY=Fn,o.DAY_TUESDAY=Ln,o.DAY_WEDNESDAY=kn,o.GOLDEN_RATIO=pt,o.MIME_BINARY_DEFAULT=sn,o.MIME_EXTENSION_MAP=dn,o.MIME_FORM=me,o.MIME_HTML=un,o.MIME_JSON=b,o.MIME_MULTIPART=he,o.MIME_TEXT=pn,o.MONTH_NAMES_CN=Bn,o.MONTH_NAMES_EN=Me,o.MONTH_NAMES_SHORT_CN=Yn,o.MONTH_NAMES_SHORT_EN=ve,o.MONTH_NOW=vn,o.ONE_DAY=M,o.ONE_HOUR=Nn,o.ONE_MINUTE=Sn,o.ONE_MONTH30=On,o.ONE_MONTH31=xn,o.ONE_WEEK=Cn,o.ONE_YEAR365=Dn,o.ONE_YEAR366=Rn,o.PAIR_TAGS=Gt,o.REMOVABLE_TAGS=se,o.SELF_CLOSING_TAGS=Wt,o.STAND_DPI=I,o.TRIM_BOTH=D,o.TRIM_LEFT=R,o.TRIM_RIGHT=V,o.WEEK_DAY_NAMES_CN=Gn,o.WEEK_DAY_NAMES_EN=ye,o.WEEK_DAY_NAMES_SHORT_CN=qn,o.WEEK_DAY_NAMES_SHORT_EN=be,o.YEAR_NOW=Mn,o.abortableFetch=Ee,o.arrayChunk=xe,o.arrayColumn=v,o.arrayDistinct=Ne,o.arrayGroup=Ce,o.arrayIndex=Se,o.arraySortByKey=Oe,o.arrayTrimTail=De,o.base64Decode=We,o.base64UrlSafeEncode=je,o.between=g,o.blobToBase64=Q,o.blobToDataUri=F,o.buildHtmlHidden=Jt,o.buildStyleVars=Ut,o.camelCase=Le,o.capitalize=$,o.cleanNull=Ae,o.countDown=Wn,o.createDomByHtml=Pt,o.cssSelectorEscape=Kt,o.cutString=Ie,o.debounce=it,o.decodeHTMLEntities=zt,o.deepClone=j,o.deleteCookie=Ze,o.detectLanguage=Je,o.detectedPrecision=wt,o.digitCount=At,o.disabled=ie,o.downloadFile=qt,o.enabled=ae,o.enterFullScreen=X,o.entityToString=$t,o.escapeAttr=B,o.escapeHtml=Vt,o.exitFullScreen=Z,o.extract=He,o.fileToBase64DataUri=Yt,o.findAll=k,o.findOne=y,o.fixBaseUrl=Ft,o.formatDate=K,o.getBoundingClientRect=le,o.getCookie=Xe,o.getDomDimension=Ht,o.getJson=gn,o.getNodeXPath=Nt,o.getUTF8StrLen=Pe,o.getWeekNumber=Kn,o.guid=te,o.hide=yt,o.highlightText=Zt,o.html2Text=jt,o.imgToBase64=en,o.insertStyleSheet=re,o.isBodyInit=Te,o.isEmptyObject=wn,o.isFirefox=Ve,o.isFocusable=Dt,o.isFunction=lt,o.isInFullScreen=ee,o.isJSON=ct,o.isJson=ot,o.isObject=rt,o.isPromise=at,o.isUrl=ne,o.kebabCase=ke,o.keepRectInContainer=Ot,o.limit=gt,o.loadCss=Rt,o.loadScript=It,o.lockElementInteraction=_t,o.md5=cn,o.mmToPt=ft,o.mmToPx=ut,o.mmToTwip=dt,o.msToHMS=jn,o.mutationEffective=oe,o.nodeIndex=St,o.objToQuery=W,o.objectGet=yn,o.objectKeyMapping=An,o.objectMerge=we,o.objectSet=bn,o.onDomTreeChange=Ct,o.onHover=vt,o.postFiles=Tn,o.postJson=En,o.precisionToStep=kt,o.printStack=st,o.ptToMm=mt,o.pxToMm=ht,o.queryReplace=ge,o.queryToObj=G,o.randomInt=Et,o.randomString=J,o.randomWords=Be,o.rectAssoc=xt,o.rectInLayout=Lt,o.regQuote=S,o.remove=Mt,o.request=O,o.round=Tt,o.sanitizeFileName=Bt,o.setCookie=Qe,o.show=bt,o.srcToBase64=tn,o.strChunk=Ge,o.strToPascalCase=Ye,o.stringToEntity=Xt,o.stripSlashes=Re,o.throttle=tt,o.throttleEffect=nt,o.toggleDisabled=L,o.toggleFullScreen=ze,o.trim=qe,o.truncate=Fe,o.unescapeHtml=Qt,o.urlB64DataCache=P,o.utf8Decode=z,o.utf8Encode=x,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
5
5
  //# sourceMappingURL=minutool.umd.cjs.map