minutool 1.0.21 → 1.0.23

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,6 +1,6 @@
1
- (function(r,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(r=typeof globalThis<"u"?globalThis:r||self,D(r.Minutool={}))})(this,function(r){"use strict";const D=(e,t)=>{let n=[];for(let i in e)n.push(e[i][t]);return n},Je=(e,t)=>{for(let n in e)if(e[n]===t)return n;return null},Xe=(e,t)=>{let n=new Map;return e.filter((i,o)=>{let a=t?t(i,o):i;if(!n.has(a))return n.set(a,!0),!0})},Qe=(e,t,n)=>{if(!e||!e.length)return e;let i={};if(e.forEach(a=>{let u=a[t];i[u]||(i[u]=[]),i[u].push(a)}),!n)return i;let o={};for(let a in i)o[a]=i[a][0];return o},Ze=e=>Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}),et=(e,t)=>{let n=e.length;if(t<1||!n)return[];if(t>n)return[e];let i=[],o=Math.floor(n/t),a=n%t;for(let u=1;u<=o;u++)i.push(e.splice(0,t));return a&&i.push(e.splice(0,a)),i},tt=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)},re=window.devicePixelRatio*96,nt=()=>window.innerWidth>window.innerHeight,it=()=>window.innerHeight>window.innerWidth,ae=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"},ce=()=>document.exitFullscreen(),ot=e=>new Promise((t,n)=>{le()?ce().then(t).catch(n):ae(e).then(t).catch(n)}),le=()=>!!document.fullscreenElement,rt=e=>{const t=navigator.language||navigator.userLanguage;if(e.includes(t))return t;const n=t.split("-")[0],i=e.find(o=>o.startsWith(n));return i||e[0]},at=()=>navigator.userAgent.toLowerCase().indexOf("firefox")>-1,ct=(1+Math.sqrt(5))/2-1,F=96,lt=(e,t=F)=>e/25.4*t,st=e=>Math.round(e*56.6929),pt=e=>e*2.83464566929,ut=e=>e/2.83464566929,mt=(e,t=F)=>25.4*e/t,dt=(e,t,n)=>Math.min(Math.max(e,t),n),T=(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,se=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},_=e=>typeof e=="number"?isFinite(e):typeof e!="string"?!1:/^[+-]?(\d+\.?\d*|\.\d+)$/.test(e),gt=(...e)=>{let t=0;return e.forEach(n=>{if(typeof n=="number"&&_(n)){const i=n.toString().split(".")[1];i&&(t=Math.max(t,i.length))}}),t},ht=e=>(e=Math.abs(Number(e)),e===0?1:Math.floor(Math.log10(e))+1);function pe(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const R=(e,t="")=>{if(typeof e=="number")return{val:e,unit:t};if(_(e))return{val:parseFloat(e),unit:t};const n=/^(-?[\d.]+)([a-z%]+)$/i,i=e.trim().match(n);if(!i)throw new Error("unit parse fail:"+e);return{val:parseFloat(i[1]),unit:i[2].toLowerCase()}},U=(e,t,n={})=>{const i=R(e);if(!i)throw new Error(`Invalid value: ${e}`);const o=i.val,a=i.unit;if(!_(o))throw new Error(`Invalid number in value: ${e}`);const u=n.dpi||re;if(a===t)return o;const c={mm:1,cm:10,in:25.4,px:25.4/u,pt:25.4/72,pc:25.4/6},l={mm:1,cm:1/10,in:1/25.4,px:u/25.4,pt:72/25.4,pc:6/25.4};if(!c[a])throw new Error(`Unsupported source unit: ${a}`);if(!l[t])throw new Error(`Unsupported target unit: ${t}`);return o*c[a]*l[t]},ue=(e,t=0)=>_(e)?parseFloat(e):t,wt=e=>(e+"").replace(/\\(.?)/g,function(t,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}}),Et=(e,t,n="...")=>{let i=/[^\x00-\xff]/g;if(e.replace(i,"mm").length<=t)return e;let o=Math.floor(t/2);for(let a=o;a<e.length;a++)if(e.substr(0,a).replace(i,"mm").length>=t)return e.substr(0,a)+n;return e},Tt=(e,t)=>{const n=Object.keys(t),i=Object.values(t);return new Function(...n,`return \`${e}\`;`)(...i)};function vt(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}function bt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function yt(e,t,n="..."){return e.length<=t?e:e.slice(0,t)+n}const I=e=>(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),me=e=>{let t="",n=0,i=0,o=0,a=0;for(;n<e.length;)i=e.charCodeAt(n),i<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(o=e.charCodeAt(n+1),t+=String.fromCharCode((i&31)<<6|o&63),n+=2):(o=e.charCodeAt(n+1),a=e.charCodeAt(n+2),t+=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63),n+=3);return t},B=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},Mt=e=>{let t=0,n=e.length,i=-1;for(let o=0;o<n;o++)i=e.charCodeAt(o),i>=0&&i<=128?t+=1:t+=3;return t},At="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890",de=(e=6,t=At)=>{let n="";for(let i=0;i<e;i++){let o=Math.round(Math.random()*(t.length-1));n+=t.substring(o,o+1)}return n},St=(e=1,t=8)=>{let n=[];const i="bcdfghjklmnpqrstvwxyz",o="aeiou";for(;e-- >0;){let a="";for(let u=0;u<t;u=u+3)a+=i[Math.floor(Math.random()*i.length)],a+=o[Math.floor(Math.random()*o.length)],a+=i[Math.floor(Math.random()*i.length)];n.push(a)}return n},_t=(e,t=!1)=>{let n=[];return e.replace(/[-_\s+]/g," ").split(" ").forEach((i,o)=>{n.push(o===0&&!t?i:pe(i))}),n.join("")},$=0,Y=1,fe=2,Ct=(e,t="",n=$)=>{if(t.length){let i=new RegExp("^["+I(t)+"]+"),o=new RegExp("["+I(t)+"]+$");return n===Y?e.replace(i,""):n===fe?e.replace(o,""):e.replace(i,"").replace(o,"")}else return n===$?e.trim():n===Y?e.trimStart():e.trimEnd()},Nt=(e,t)=>{let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n},Dt=e=>/[\u4e00-\u9fa5]/.test(e),Ot=(e,t="B",n=2)=>{const i=["B","KB","MB","GB","TB","PB"];let o=i.indexOf(t.toUpperCase());if(o===-1)throw new Error(`Unsupported unit: ${t}`);for(;e>=1024&&o<i.length-1;)e/=1024,o++;return se(e,n)},b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Rt=e=>{let t="",n,i,o,a,u,c,l,s=0;for(e=e.replace(/\+\+[++^A-Za-z0-9+/=]/g,"");s<e.length;)a=b.indexOf(e.charAt(s++)),u=b.indexOf(e.charAt(s++)),c=b.indexOf(e.charAt(s++)),l=b.indexOf(e.charAt(s++)),n=a<<2|u>>4,i=(u&15)<<4|c>>2,o=(c&3)<<6|l,t=t+String.fromCharCode(n),c!==64&&(t=t+String.fromCharCode(i)),l!==64&&(t=t+String.fromCharCode(o));return t=me(t),t},It=e=>B(e).replace("+","-").replace("/","_"),xt=e=>{let t="",n,i,o,a,u,c,l,s=0;for(e=B(e);s<e.length;)n=e.charCodeAt(s++),i=e.charCodeAt(s++),o=e.charCodeAt(s++),a=n>>2,u=(n&3)<<4|i>>4,c=(i&15)<<2|o>>6,l=o&63,isNaN(i)?c=l=64:isNaN(o)&&(l=64),t=t+b.charAt(a)+b.charAt(u)+b.charAt(c)+b.charAt(l);return t},ge=async e=>await Lt(e),Lt=e=>new Promise((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=o=>n(o)}),kt=(e,t,n,i="/",o)=>{let a="";if(n){let c=new Date;c.setTime(Date.now()+n*24*60*60*1e3),a="; expires="+c.toUTCString()}let u=e+"="+(t||"")+a+"; path="+i;o&&(u+="; domain="+o),document.cookie=u},Ht=e=>{let t=e+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let o=n[i];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},x=(e,t="/",n)=>{let i=e+"=; Path="+t+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";n&&(i+=" Domain="+n+";"),document.cookie=i},Pt=(e,t)=>{const n=(t||(location==null?void 0:location.hostname)).split(".");for(;n.length>1;)x(e,"/",n.join(".")),x(e,"/","."+n.join(".")),n.shift();x(e)};let Ft=0;const he=(e="")=>"guid_"+(e||de(6))+ ++Ft,Ut=(e,t)=>{let n,i,o=0;return function(){let a=+new Date;n=this,i=arguments,a-o>t&&(e.apply(n,i),o=a)}},Bt=(e,t)=>{let n,i,o=0,a=!1;return function(){if(a)return;let u=+new Date;n=this,i=arguments;let c=t-(u-o);c<=0?(e.apply(n,i),o=u):(a=!0,setTimeout(()=>{e.apply(n,i),a=!1,o=u},c))}},$t=(e,t)=>{let n;return function(){let i=this,o=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}},Yt=e=>e&&typeof e=="object"&&e.then&&typeof e.then=="function",jt=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},zt=e=>e&&typeof e=="object"&&!Array.isArray(e),qt=e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!1,we=e=>typeof e!="string"||e.trim()===""?!1:/^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(e),Gt=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},Kt=()=>{let e=new Error().stack;console.log(e)},j=new EventTarget,Wt=new Map,z=new Map;let Vt=0;const Jt="__MINUTOOL_SYM_EVENT__";function q(e){if(!z.has(e)){const t=`${Jt}${++Vt}`;z.set(e,t),Wt.set(t,e)}return z.get(e)}const Xt=(e,t)=>{const n=e.map(i=>Ee(i,t));return()=>n.forEach(i=>i())},Ee=(e,t)=>(j.addEventListener(typeof e=="symbol"?q(e):e,t),()=>Te(e,t)),Te=(e,t)=>{j.removeEventListener(typeof e=="symbol"?q(e):e,t)},Qt=(e,t=null)=>{j.dispatchEvent(new CustomEvent(typeof e=="symbol"?q(e):e,{detail:t}))},Zt=e=>{if(document.readyState==="complete"||document.readyState==="interactive")e();else{const t=()=>{e(),document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}},en=(e,t,n,i)=>y(e,n,a=>{const u=a.target;u.matches(t)&&i(a,u)}),tn=(e,t)=>y(e,"click",t),nn=(e,t)=>y(e,"keyup",t),on=(e,t)=>y(e,"keydown",t),rn=(e,t)=>y(e,"dblclick",t),y=(e,t,n)=>{const i=a=>{n(a)},o=v(e);if(!o)throw new Error(`Element not found for selector: ${e}`);return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},an=(e,t)=>{if("createEvent"in document){let n=document.createEvent("HTMLEvents");n.initEvent(t.toLowerCase(),!1,!0),e.dispatchEvent(n)}else e.fireEvent("on"+t.toLowerCase())},cn=e=>{const t=v(e);t&&(t.style.display="none")},ln=e=>{const t=v(e);t&&(t.style.display="")},sn=e=>{let t=v(e);return t&&t.parentNode&&t.parentNode.removeChild(t)},G="disabled",ve=(e,t="")=>K(e,t,!1),be=(e,t="")=>K(e,t,!0),K=(e,t="",n=null)=>{let i=v(e),o=n===null?!i.classList.contains(G):!n;o&&Me(`.${G} {pointer-event:none !important;}`,"__element_lock_style__"),i.classList.toggle(G,o),i[o?"setAttribute":"removeAttribute"]("disabled","disabled"),i[o?"setAttribute":"removeAttribute"]("data-disabled","disabled"),t&&i.classList.toggle(t,o)},pn=(e,t,n)=>{e=v(e);let i=!1;const o=[];return o.push(y(e,"mouseenter",()=>{i||(i=!0,t&&t())})),o.push(y(e,"mouseleave",()=>{i&&(i=!1,n&&n())})),()=>{o.forEach(a=>a())}},un=(e,t)=>{ve(e),t(()=>{be(e)})},mn=e=>e.parentNode?Array.prototype.indexOf.call(e.parentNode.children,e):-1,W=(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(...W(i))}),n}else return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):e instanceof HTMLElement?[e]:e},v=(e,t=document)=>typeof e=="string"?t.querySelector(e):e,dn=e=>{let t=document.getElementsByTagName("*"),n=[];for(n=[];e&&e.nodeType===1;e=e.parentNode)if(e.hasAttribute("id")){let i=0;for(let o=0;o<t.length&&(t[o].hasAttribute("id")&&t[o].id===e.id&&i++,!(i>1));o++);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,o;for(i=1,o=e.previousSibling;o;o=o.previousSibling)o.localName===e.localName&&i++;n.unshift(e.localName.toLowerCase()+"["+i+"]")}return n.length?"/"+n.join("/"):null},fn=(e,t,n=!0)=>{const i="ON_DOM_TREE_CHANGE_BIND_"+he();let o=()=>{W(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`,e).forEach(a=>{a.setAttribute(i,"1"),a.addEventListener("change",t)})};ye(e,{attributes:!0,subtree:!0,childList:!0},()=>{n&&o(),t()},10),n&&o()},ye=(e,t,n,i=10)=>{let o=0,a=!1,u=new MutationObserver(()=>{if(a)return;let c=i-(Date.now()-o);c>0?(a=!0,setTimeout(()=>{a=!1,o=Date.now(),n(u)},c)):(o=Date.now(),n(u))});u.observe(e,t)},gn=(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},hn=(e,t)=>e.left<=t.left?e.left+e.width>=t.left&&(T(t.top,e.top,e.top+e.height)||T(t.top+t.height,e.top,e.top+e.height)||t.top>=e.top&&t.height>=e.height):t.left+t.width>=e.left&&(T(e.top,t.top,t.top+t.height)||T(e.top+e.height,t.top,t.top+t.height)||e.top>=t.top&&e.height>=t.height),wn=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 M={};const En=(e,t=!1)=>(!t&&e in M||(M[e]=new Promise((n,i)=>{let o=document.createElement("link");o.rel="stylesheet",o.href=e,o.onload=()=>{n()},o.onerror=()=>{i()},document.head.append(o)})),M[e]),Tn=(e,t=!1)=>(!t&&e in M||(M[e]=new Promise((n,i)=>{let o=document.createElement("script");o.src=e,o.onload=()=>{n()},o.onerror=()=>{i()},document.head.append(o)})),M[e]),vn=e=>{let t=e.style.visibility,n=e.style.display,i,o;return e.style.visibility="hidden",e.style.display="block",i=e.clientWidth,o=e.clientHeight,e.style.visibility=t,e.style.display=n,{width:i,height:o}},Me=(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},bn=(e,t)=>T(e.top,t.top,t.top+t.height)&&T(e.left,t.left,t.left+t.width)&&T(e.top+e.height,t.top,t.top+t.height)&&T(e.left+e.width,t.left,t.left+t.width),yn=e=>Math.pow(10,-e),Mn=(e,t)=>{try{return new URL(e,t).href}catch{return e}},An=(e,t=null)=>{let n=document.createElement("template");e=e.trim(),n.innerHTML=e;let i=[];return t?n.content.childNodes.forEach(o=>{i.push(t.appendChild(o))}):i=Array.from(n.content.childNodes),i.length===1?i[0]:i},Ae=(e,t=!1)=>{if(!e)throw new Error("el is null");const n=e.getBoundingClientRect();if(t&&!n.height){const i=e.style.visibility,o=e.style.display;e.style.visibility="hidden",e.style.display="block";const a=Ae(e);return e.style.visibility=i,e.style.display=o,a}return{top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},Sn=e=>{let t={};for(let n in e){const i=e[n];i!=null&&(t[`--${n}`]=`${i}`)}return t};function _n(e,t=null){const n=v(e);t=v(t||n);const i=n.style.position,o=n.style.left,a=n.style.top,u=n.style.transform;let c=!1,l=0,s=0;const p=w=>{c&&(n.style.position="fixed",n.style.transform="none",n.style.left=`${w.clientX-l}px`,n.style.top=`${w.clientY-s}px`)},S=()=>{c=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",S)},h=w=>{if(w.button!==0)return;c=!0;const P=n.getBoundingClientRect();l=w.clientX-P.left,s=w.clientY-P.top,document.addEventListener("mousemove",p),document.addEventListener("mouseup",S),w.preventDefault()};return t.addEventListener("mousedown",h),()=>{S(),t.removeEventListener("mousedown",h),n.style.position=i,n.style.left=o,n.style.top=a,n.style.transform=u}}const Cn=e=>e.replace(/[\\/:*?"<>|]/g,"_").replace(/[\0-\x1F]/g,"_").replace(/\s+/g," ").replace(/^\.+/,"").replace(/\.+$/,"").trim(),V=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=o=>n(o),i.readAsDataURL(e)}),Se={},J=(e,t=null)=>t!==null?(Se[e]=t,null):Se[e]||null,Nn=async e=>{if(!e)return null;if(typeof e=="string"&&e.startsWith("data:"))return e;try{if(typeof e=="string"&&we(e)){const t=await fetch(e);if(!t.ok)throw new Error(`Fetch failed: ${t.status}`);const n=await t.blob();return await V(n)}return e instanceof Blob?await V(e):null}catch(t){return console.warn("file2Base64DataURL failed:",t),null}},Dn=(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)},X=["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"],On=["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(...X),Rn=["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"],_e=["STYLE","COMMENT","SELECT","OPTION","SCRIPT","TITLE","HEAD","BUTTON","META","LINK","PARAM","SOURCE"],In=(e,t={})=>{t.keepLineBreak=t.keepLineBreak!==!1;const n=t.imgReplacer!==void 0?t.imgReplacer:"[Image]";e=e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*alt=["']([^"']*)["'][^>]*>/gi,function(a,u,c){return typeof n=="function"?n(u,c):n}),e=e.replace(/<img[^>]*alt=["']([^"']*)["'][^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u,c){return typeof n=="function"?n(c,u):n}),e=e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u){return typeof n=="function"?n(u,""):n});const i=t.videoReplacer!==void 0?t.videoReplacer:"[Video]";return e=e.replace(/<video[^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u){return typeof i=="function"?i(u,""):i}),e=e.replace(/<video[^>]*>[\s\S]*?<source[^>]*src=["']([^"']*)["'][^>]*>[\s\S]*?<\/video>/gi,function(a,u){return typeof i=="function"?i(u,""):i}),_e.forEach(a=>{e=e.replace(new RegExp(`<${a}[^>]*>([\\s\\S]*?)<\\/${a}>`,"gi"),""),e=e.replace(new RegExp(`<${a}[^>]*>`,"gi"),"")}),e=e.replace(/[\r|\n]/g,""),e=e.replace(/<(\w+)([^>]*)>/g,function(a,u,c){return X.includes(u.toUpperCase())?`
1
+ (function(r,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(r=typeof globalThis<"u"?globalThis:r||self,D(r.Minutool={}))})(this,function(r){"use strict";const D=(e,t)=>{let n=[];for(let i in e)n.push(e[i][t]);return n},Je=(e,t)=>{for(let n in e)if(e[n]===t)return n;return null},Xe=(e,t)=>{let n=new Map;return e.filter((i,o)=>{let a=t?t(i,o):i;if(!n.has(a))return n.set(a,!0),!0})},Qe=(e,t,n)=>{if(!e||!e.length)return e;let i={};if(e.forEach(a=>{let u=a[t];i[u]||(i[u]=[]),i[u].push(a)}),!n)return i;let o={};for(let a in i)o[a]=i[a][0];return o},Ze=e=>Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}),et=(e,t)=>{let n=e.length;if(t<1||!n)return[];if(t>n)return[e];let i=[],o=Math.floor(n/t),a=n%t;for(let u=1;u<=o;u++)i.push(e.splice(0,t));return a&&i.push(e.splice(0,a)),i},tt=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)},re=window.devicePixelRatio*96,nt=()=>window.innerWidth>window.innerHeight,it=()=>window.innerHeight>window.innerWidth,ae=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"},ce=()=>document.exitFullscreen(),ot=e=>new Promise((t,n)=>{le()?ce().then(t).catch(n):ae(e).then(t).catch(n)}),le=()=>!!document.fullscreenElement,rt=e=>{const t=navigator.language||navigator.userLanguage;if(e.includes(t))return t;const n=t.split("-")[0],i=e.find(o=>o.startsWith(n));return i||e[0]},at=()=>navigator.userAgent.toLowerCase().indexOf("firefox")>-1,ct=(1+Math.sqrt(5))/2-1,F=96,lt=(e,t=F)=>e/25.4*t,st=e=>Math.round(e*56.6929),pt=e=>e*2.83464566929,ut=e=>e/2.83464566929,mt=(e,t=F)=>25.4*e/t,dt=(e,t,n)=>Math.min(Math.max(e,t),n),T=(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,se=(e,t=2)=>{let n=Math.pow(10,t);return Math.round(e*n)/n},_=e=>typeof e=="number"?isFinite(e):typeof e!="string"?!1:/^[+-]?(\d+\.?\d*|\.\d+)$/.test(e),gt=(...e)=>{let t=0;return e.forEach(n=>{if(typeof n=="number"&&_(n)){const i=n.toString().split(".")[1];i&&(t=Math.max(t,i.length))}}),t},ht=e=>(e=Math.abs(Number(e)),e===0?1:Math.floor(Math.log10(e))+1);function pe(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const R=(e,t="")=>{if(typeof e=="number")return{val:e,unit:t};if(_(e))return{val:parseFloat(e),unit:t};const n=/^(-?[\d.]+)([a-z%]+)$/i,i=e.trim().match(n);if(!i)throw new Error("unit parse fail:"+e);return{val:parseFloat(i[1]),unit:i[2].toLowerCase()}},U=(e,t,n={})=>{const i=R(e);if(!i)throw new Error(`Invalid value: ${e}`);const o=i.val,a=i.unit;if(!_(o))throw new Error(`Invalid number in value: ${e}`);const u=n.dpi||re;if(a===t)return o;const c={mm:1,cm:10,in:25.4,px:25.4/u,pt:25.4/72,pc:25.4/6},l={mm:1,cm:1/10,in:1/25.4,px:u/25.4,pt:72/25.4,pc:6/25.4};if(!c[a])throw new Error(`Unsupported source unit: ${a}`);if(!l[t])throw new Error(`Unsupported target unit: ${t}`);return o*c[a]*l[t]},ue=(e,t=0)=>_(e)?parseFloat(e):t,wt=e=>(e+"").replace(/\\(.?)/g,function(t,n){switch(n){case"\\":return"\\";case"0":return"\0";case"":return"";default:return n}}),Et=(e,t,n="...")=>{let i=/[^\x00-\xff]/g;if(e.replace(i,"mm").length<=t)return e;let o=Math.floor(t/2);for(let a=o;a<e.length;a++)if(e.substr(0,a).replace(i,"mm").length>=t)return e.substr(0,a)+n;return e},Tt=(e,t)=>{const n=Object.keys(t),i=Object.values(t);return new Function(...n,`return \`${e}\`;`)(...i)};function vt(e){return e.replace(/[-_](.)/g,(t,n)=>n.toUpperCase())}function bt(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}function yt(e,t,n="..."){return e.length<=t?e:e.slice(0,t)+n}const I=e=>(e+"").replace(/([\\\.\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g,"\\$1"),me=e=>{let t="",n=0,i=0,o=0,a=0;for(;n<e.length;)i=e.charCodeAt(n),i<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(o=e.charCodeAt(n+1),t+=String.fromCharCode((i&31)<<6|o&63),n+=2):(o=e.charCodeAt(n+1),a=e.charCodeAt(n+2),t+=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63),n+=3);return t},B=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},Mt=e=>{let t=0,n=e.length,i=-1;for(let o=0;o<n;o++)i=e.charCodeAt(o),i>=0&&i<=128?t+=1:t+=3;return t},At="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890",de=(e=6,t=At)=>{let n="";for(let i=0;i<e;i++){let o=Math.round(Math.random()*(t.length-1));n+=t.substring(o,o+1)}return n},St=(e=1,t=8)=>{let n=[];const i="bcdfghjklmnpqrstvwxyz",o="aeiou";for(;e-- >0;){let a="";for(let u=0;u<t;u=u+3)a+=i[Math.floor(Math.random()*i.length)],a+=o[Math.floor(Math.random()*o.length)],a+=i[Math.floor(Math.random()*i.length)];n.push(a)}return n},_t=(e,t=!1)=>{let n=[];return e.replace(/[-_\s+]/g," ").split(" ").forEach((i,o)=>{n.push(o===0&&!t?i:pe(i))}),n.join("")},$=0,Y=1,fe=2,Ct=(e,t="",n=$)=>{if(t.length){let i=new RegExp("^["+I(t)+"]+"),o=new RegExp("["+I(t)+"]+$");return n===Y?e.replace(i,""):n===fe?e.replace(o,""):e.replace(i,"").replace(o,"")}else return n===$?e.trim():n===Y?e.trimStart():e.trimEnd()},Nt=(e,t)=>{let n=[];for(let i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n},Dt=e=>/[\u4e00-\u9fa5]/.test(e),Ot=(e,t="B",n=2)=>{const i=["B","KB","MB","GB","TB","PB"];let o=i.indexOf(t.toUpperCase());if(o===-1)throw new Error(`Unsupported unit: ${t}`);for(;e>=1024&&o<i.length-1;)e/=1024,o++;return se(e,n)},b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Rt=e=>{let t="",n,i,o,a,u,c,l,s=0;for(e=e.replace(/\+\+[++^A-Za-z0-9+/=]/g,"");s<e.length;)a=b.indexOf(e.charAt(s++)),u=b.indexOf(e.charAt(s++)),c=b.indexOf(e.charAt(s++)),l=b.indexOf(e.charAt(s++)),n=a<<2|u>>4,i=(u&15)<<4|c>>2,o=(c&3)<<6|l,t=t+String.fromCharCode(n),c!==64&&(t=t+String.fromCharCode(i)),l!==64&&(t=t+String.fromCharCode(o));return t=me(t),t},It=e=>B(e).replace("+","-").replace("/","_"),xt=e=>{let t="",n,i,o,a,u,c,l,s=0;for(e=B(e);s<e.length;)n=e.charCodeAt(s++),i=e.charCodeAt(s++),o=e.charCodeAt(s++),a=n>>2,u=(n&3)<<4|i>>4,c=(i&15)<<2|o>>6,l=o&63,isNaN(i)?c=l=64:isNaN(o)&&(l=64),t=t+b.charAt(a)+b.charAt(u)+b.charAt(c)+b.charAt(l);return t},ge=async e=>await Lt(e),Lt=e=>new Promise((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onload=()=>t(i.result),i.onerror=o=>n(o)}),kt=(e,t,n,i="/",o)=>{let a="";if(n){let c=new Date;c.setTime(Date.now()+n*24*60*60*1e3),a="; expires="+c.toUTCString()}let u=e+"="+(t||"")+a+"; path="+i;o&&(u+="; domain="+o),document.cookie=u},Ht=e=>{let t=e+"=",n=document.cookie.split(";");for(let i=0;i<n.length;i++){let o=n[i];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},x=(e,t="/",n)=>{let i=e+"=; Path="+t+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";n&&(i+=" Domain="+n+";"),document.cookie=i},Pt=(e,t)=>{const n=(t||(location==null?void 0:location.hostname)).split(".");for(;n.length>1;)x(e,"/",n.join(".")),x(e,"/","."+n.join(".")),n.shift();x(e)};let Ft=0;const he=(e="")=>"guid_"+(e||de(6))+ ++Ft,Ut=(e,t)=>{let n,i,o=0;return function(){let a=+new Date;n=this,i=arguments,a-o>t&&(e.apply(n,i),o=a)}},Bt=(e,t)=>{let n,i,o=0,a=!1;return function(){if(a)return;let u=+new Date;n=this,i=arguments;let c=t-(u-o);c<=0?(e.apply(n,i),o=u):(a=!0,setTimeout(()=>{e.apply(n,i),a=!1,o=u},c))}},$t=(e,t)=>{let n;return function(){let i=this,o=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(i,o)},t)}},Yt=e=>e&&typeof e=="object"&&e.then&&typeof e.then=="function",jt=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},zt=e=>e&&typeof e=="object"&&!Array.isArray(e),qt=e=>e?Object.prototype.toString.call(e)==="[object Function]"||typeof e=="function"||e instanceof Function:!1,we=e=>typeof e!="string"||e.trim()===""?!1:/^(https?:\/\/|\/\/|\/|\.\.?\/*)/i.test(e),Gt=e=>{let t=!1;try{JSON.parse(e),t=!0}catch{}return t},Kt=()=>{let e=new Error().stack;console.log(e)},j=new EventTarget,Wt=new Map,z=new Map;let Vt=0;const Jt="__MINUTOOL_SYM_EVENT__";function q(e){if(!z.has(e)){const t=`${Jt}${++Vt}`;z.set(e,t),Wt.set(t,e)}return z.get(e)}const Xt=(e,t)=>{const n=e.map(i=>Ee(i,t));return()=>n.forEach(i=>i())},Ee=(e,t)=>(j.addEventListener(typeof e=="symbol"?q(e):e,t),()=>Te(e,t)),Te=(e,t)=>{j.removeEventListener(typeof e=="symbol"?q(e):e,t)},Qt=(e,t=null)=>{j.dispatchEvent(new CustomEvent(typeof e=="symbol"?q(e):e,{detail:t}))},Zt=e=>{if(document.readyState==="complete"||document.readyState==="interactive")e();else{const t=()=>{e(),document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}},en=(e,t,n,i)=>y(e,n,a=>{var l;const u=a.target,c=(l=u==null?void 0:u.closest)==null?void 0:l.call(u,t);c&&i(a,c)}),tn=(e,t)=>y(e,"click",t),nn=(e,t)=>y(e,"keyup",t),on=(e,t)=>y(e,"keydown",t),rn=(e,t)=>y(e,"dblclick",t),y=(e,t,n)=>{const i=a=>{n(a)},o=typeof e=="string"?v(e):e;if(!o)throw new Error(`EventTarget not found for selector: ${e}`);return o.addEventListener(t,i),()=>{o.removeEventListener(t,i)}},an=(e,t)=>{if("createEvent"in document){let n=document.createEvent("HTMLEvents");n.initEvent(t.toLowerCase(),!1,!0),e.dispatchEvent(n)}else e.fireEvent("on"+t.toLowerCase())},cn=e=>{const t=v(e);t&&(t.style.display="none")},ln=e=>{const t=v(e);t&&(t.style.display="")},sn=e=>{let t=v(e);return t&&t.parentNode&&t.parentNode.removeChild(t)},G="disabled",ve=(e,t="")=>K(e,t,!1),be=(e,t="")=>K(e,t,!0),K=(e,t="",n=null)=>{let i=v(e),o=n===null?!i.classList.contains(G):!n;o&&Me(`.${G} {pointer-event:none !important;}`,"__element_lock_style__"),i.classList.toggle(G,o),i[o?"setAttribute":"removeAttribute"]("disabled","disabled"),i[o?"setAttribute":"removeAttribute"]("data-disabled","disabled"),t&&i.classList.toggle(t,o)},pn=(e,t,n)=>{e=v(e);let i=!1;const o=[];return o.push(y(e,"mouseenter",()=>{i||(i=!0,t&&t())})),o.push(y(e,"mouseleave",()=>{i&&(i=!1,n&&n())})),()=>{o.forEach(a=>a())}},un=(e,t)=>{ve(e),t(()=>{be(e)})},mn=e=>e.parentNode?Array.prototype.indexOf.call(e.parentNode.children,e):-1,W=(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(...W(i))}),n}else return NodeList.prototype.isPrototypeOf(e)||HTMLCollection.prototype.isPrototypeOf(e)?Array.from(e):e instanceof HTMLElement?[e]:e},v=(e,t=document)=>typeof e=="string"?t.querySelector(e):e,dn=e=>{let t=document.getElementsByTagName("*"),n=[];for(n=[];e&&e.nodeType===1;e=e.parentNode)if(e.hasAttribute("id")){let i=0;for(let o=0;o<t.length&&(t[o].hasAttribute("id")&&t[o].id===e.id&&i++,!(i>1));o++);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,o;for(i=1,o=e.previousSibling;o;o=o.previousSibling)o.localName===e.localName&&i++;n.unshift(e.localName.toLowerCase()+"["+i+"]")}return n.length?"/"+n.join("/"):null},fn=(e,t,n=!0)=>{const i="ON_DOM_TREE_CHANGE_BIND_"+he();let o=()=>{W(`input:not([${i}]), textarea:not([${i}]), select:not([${i}])`,e).forEach(a=>{a.setAttribute(i,"1"),a.addEventListener("change",t)})};ye(e,{attributes:!0,subtree:!0,childList:!0},()=>{n&&o(),t()},10),n&&o()},ye=(e,t,n,i=10)=>{let o=0,a=!1,u=new MutationObserver(()=>{if(a)return;let c=i-(Date.now()-o);c>0?(a=!0,setTimeout(()=>{a=!1,o=Date.now(),n(u)},c)):(o=Date.now(),n(u))});u.observe(e,t)},gn=(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},hn=(e,t)=>e.left<=t.left?e.left+e.width>=t.left&&(T(t.top,e.top,e.top+e.height)||T(t.top+t.height,e.top,e.top+e.height)||t.top>=e.top&&t.height>=e.height):t.left+t.width>=e.left&&(T(e.top,t.top,t.top+t.height)||T(e.top+e.height,t.top,t.top+t.height)||e.top>=t.top&&e.height>=t.height),wn=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 M={};const En=(e,t=!1)=>(!t&&e in M||(M[e]=new Promise((n,i)=>{let o=document.createElement("link");o.rel="stylesheet",o.href=e,o.onload=()=>{n()},o.onerror=()=>{i()},document.head.append(o)})),M[e]),Tn=(e,t=!1)=>(!t&&e in M||(M[e]=new Promise((n,i)=>{let o=document.createElement("script");o.src=e,o.onload=()=>{n()},o.onerror=()=>{i()},document.head.append(o)})),M[e]),vn=e=>{let t=e.style.visibility,n=e.style.display,i,o;return e.style.visibility="hidden",e.style.display="block",i=e.clientWidth,o=e.clientHeight,e.style.visibility=t,e.style.display=n,{width:i,height:o}},Me=(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},bn=(e,t)=>T(e.top,t.top,t.top+t.height)&&T(e.left,t.left,t.left+t.width)&&T(e.top+e.height,t.top,t.top+t.height)&&T(e.left+e.width,t.left,t.left+t.width),yn=e=>Math.pow(10,-e),Mn=(e,t)=>{try{return new URL(e,t).href}catch{return e}},An=(e,t=null)=>{let n=document.createElement("template");e=e.trim(),n.innerHTML=e;let i=[];return t?n.content.childNodes.forEach(o=>{i.push(t.appendChild(o))}):i=Array.from(n.content.childNodes),i.length===1?i[0]:i},Ae=(e,t=!1)=>{if(!e)throw new Error("el is null");const n=e.getBoundingClientRect();if(t&&!n.height){const i=e.style.visibility,o=e.style.display;e.style.visibility="hidden",e.style.display="block";const a=Ae(e);return e.style.visibility=i,e.style.display=o,a}return{top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.width,height:n.height}},Sn=e=>{let t={};for(let n in e){const i=e[n];i!=null&&(t[`--${n}`]=`${i}`)}return t};function _n(e,t=null){const n=v(e);t=v(t||n);const i=n.style.position,o=n.style.left,a=n.style.top,u=n.style.transform;let c=!1,l=0,s=0;const p=w=>{c&&(n.style.position="fixed",n.style.transform="none",n.style.left=`${w.clientX-l}px`,n.style.top=`${w.clientY-s}px`)},S=()=>{c=!1,document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",S)},h=w=>{if(w.button!==0)return;c=!0;const P=n.getBoundingClientRect();l=w.clientX-P.left,s=w.clientY-P.top,document.addEventListener("mousemove",p),document.addEventListener("mouseup",S),w.preventDefault()};return t.addEventListener("mousedown",h),()=>{S(),t.removeEventListener("mousedown",h),n.style.position=i,n.style.left=o,n.style.top=a,n.style.transform=u}}const Cn=e=>e.replace(/[\\/:*?"<>|]/g,"_").replace(/[\0-\x1F]/g,"_").replace(/\s+/g," ").replace(/^\.+/,"").replace(/\.+$/,"").trim(),V=e=>new Promise((t,n)=>{const i=new FileReader;i.onload=()=>t(i.result),i.onerror=o=>n(o),i.readAsDataURL(e)}),Se={},J=(e,t=null)=>t!==null?(Se[e]=t,null):Se[e]||null,Nn=async e=>{if(!e)return null;if(typeof e=="string"&&e.startsWith("data:"))return e;try{if(typeof e=="string"&&we(e)){const t=await fetch(e);if(!t.ok)throw new Error(`Fetch failed: ${t.status}`);const n=await t.blob();return await V(n)}return e instanceof Blob?await V(e):null}catch(t){return console.warn("file2Base64DataURL failed:",t),null}},Dn=(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)},X=["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"],On=["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(...X),Rn=["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"],_e=["STYLE","COMMENT","SELECT","OPTION","SCRIPT","TITLE","HEAD","BUTTON","META","LINK","PARAM","SOURCE"],In=(e,t={})=>{t.keepLineBreak=t.keepLineBreak!==!1;const n=t.imgReplacer!==void 0?t.imgReplacer:"[Image]";e=e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*alt=["']([^"']*)["'][^>]*>/gi,function(a,u,c){return typeof n=="function"?n(u,c):n}),e=e.replace(/<img[^>]*alt=["']([^"']*)["'][^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u,c){return typeof n=="function"?n(c,u):n}),e=e.replace(/<img[^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u){return typeof n=="function"?n(u,""):n});const i=t.videoReplacer!==void 0?t.videoReplacer:"[Video]";return e=e.replace(/<video[^>]*src=["']([^"']*)["'][^>]*>/gi,function(a,u){return typeof i=="function"?i(u,""):i}),e=e.replace(/<video[^>]*>[\s\S]*?<source[^>]*src=["']([^"']*)["'][^>]*>[\s\S]*?<\/video>/gi,function(a,u){return typeof i=="function"?i(u,""):i}),_e.forEach(a=>{e=e.replace(new RegExp(`<${a}[^>]*>([\\s\\S]*?)<\\/${a}>`,"gi"),""),e=e.replace(new RegExp(`<${a}[^>]*>`,"gi"),"")}),e=e.replace(/[\r|\n]/g,""),e=e.replace(/<(\w+)([^>]*)>/g,function(a,u,c){return X.includes(u.toUpperCase())?`
2
2
  `:""}),e=e.replace(/<\/(\w+)([^>]*)>/g,function(a,u,c){return""}),e=e.replace(/<[^>]+>/g,""),[[/&nbsp;/gi," "],[/&lt;/gi,"<"],[/&gt;/gi,">"],[/&quot;/gi,'"'],[/&apos;/gi,"'"]].forEach(([a,u])=>{e=e.replace(a,u)}),e=e.replace(/&#(\d+);/g,function(a,u){return String.fromCharCode(parseInt(u))}),e=e.replace(/&amp;/gi,"&"),t.keepLineBreak||(e=e.replace(/\n+/g," ")),e=e.trim(),e},xn=e=>Ce(e,0,!1).replace(/\n/g,"<br/>"),Ln=e=>window.CSS&&CSS.escape?CSS.escape(e):e.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g,"\\$&"),kn=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 O;const Hn=e=>(O||(O=document.createElement("div")),e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),O.innerHTML=e,e=O.textContent||"",O.textContent="",e),Pn=e=>{let t="";for(let n in e){let i=e[n]===null?"":e[n];t+=`<input type="hidden" name="${Q(n)}" value="${Q(i)}"/>`}return t},Ce=(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},Fn=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
  `),Un=e=>{if(!e)return"";let t=e;return t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/^###### (.*$)/gim,"<h6>$1</h6>"),t=t.replace(/^##### (.*$)/gim,"<h5>$1</h5>"),t=t.replace(/^#### (.*$)/gim,"<h4>$1</h4>"),t=t.replace(/^### (.*$)/gim,"<h3>$1</h3>"),t=t.replace(/^## (.*$)/gim,"<h2>$1</h2>"),t=t.replace(/^# (.*$)/gim,"<h1>$1</h1>"),t=t.replace(/\*\*(.*?)\*\*/gim,"<strong>$1</strong>"),t=t.replace(/\*(.*?)\*/gim,"<em>$1</em>"),t=t.replace(/`(.*?)`/gim,"<code>$1</code>"),t=t.replace(/!\[(.*?)\]\((.*?)\)/gim,'<img src="$2" alt="$1" />'),t=t.replace(/\[(.*?)\]\((.*?)\)/gim,'<a href="$2" target="_blank">$1</a>'),t=t.replace(/((\|.*\|\n)+)/g,n=>{const i=n.trim().split(`
4
4
  `);if(i.length<2)return n;let o="<table>";return i.forEach((a,u)=>{const c=a.split("|").slice(1,-1);if(/^\s*-+\s*$/.test(c[0]))return;const l=u===0?"th":"td";o+="<tr>",c.forEach(s=>{o+=`<${l}>${s.trim()}</${l}>`}),o+="</tr>"}),o+="</table>",o}),t=t.replace(/^\s*-\s+(.*)/gim,"<li>$1</li>"),t=t.replace(/(<li>.*<\/li>)/gims,"<ul>$1</ul>"),t=t.replace(/\n/g,"<br />"),t.trim()},Q=(e,t="")=>(t=t?"&#13;":`
5
- `,(""+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)),Bn=(e,t)=>{let n=e.split("");return t=t||0,n.map(i=>`&#${t?"x"+i.charCodeAt(0).toString(16):i.charCodeAt(0)};`).join("")},$n=(e,t,n='<span class="matched">%s</span>')=>t?e.replace(new RegExp(I(t),"ig"),i=>n.replace("%s",i)):e,Yn=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},Ne=e=>{const t=new XMLSerializer().serializeToString(e),n=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(n)},De=e=>new Promise((t,n)=>{const i=Ne(e),o=new Image;o.onload=()=>{t(o)},o.onerror=a=>{n(new Error("Failed to load SVG into Image:"+a))},o.src=i}),jn=(e,t=null,n=null)=>(t=t||"image/png",new Promise((i,o)=>{const a=_(n)?ue(n):1;De(e).then(u=>{const[c,l]=Oe(e),s=document.createElement("canvas");s.width=c*a,s.height=l*a,s.getContext("2d").drawImage(u,0,0,c*a,l*a),URL.revokeObjectURL(u.src),i(s.toDataURL(t))},o)})),Oe=e=>{let t=null,n=null;const i=e.getAttribute("width"),o=e.getAttribute("height");if(i&&o)try{const a=R(i,"px"),u=R(o,"px");a&&u&&(t=U(a.val+a.unit,"px"),n=U(u.val+u.unit,"px"))}catch{}if(t===null||n===null){const a=e.viewBox.baseVal;a&&a.width&&a.height&&(t=a.width,n=a.height)}if(t===null||n===null){const a=e.getBoundingClientRect();t=a.width,n=a.height}return[t,n]},zn=(e,t=!1)=>new Promise((n,i)=>{if(t){const a=J(e);if(a)return n(a)}let o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){if(this.status===200){let a=this.response;ge(a).then(u=>{t&&J(e,u),n(u)}).catch(u=>{i(u)})}},o.onerror=function(){i("Error:"+this.statusText)},o.onabort=function(){i("Request abort")},o.send()}),A=(e,t)=>{let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535},qn=(e,t)=>e<<t|e>>>32-t,L=(e,t,n,i,o,a)=>A(qn(A(A(t,e),A(i,a)),o),n),m=(e,t,n,i,o,a,u)=>L(t&n|~t&i,e,t,o,a,u),d=(e,t,n,i,o,a,u)=>L(t&i|n&~i,e,t,o,a,u),f=(e,t,n,i,o,a,u)=>L(t^n^i,e,t,o,a,u),g=(e,t,n,i,o,a,u)=>L(n^(t|~i),e,t,o,a,u),k=(e,t)=>{e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;let n,i,o,a,u,c=1732584193,l=-271733879,s=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)i=c,o=l,a=s,u=p,c=m(c,l,s,p,e[n],7,-680876936),p=m(p,c,l,s,e[n+1],12,-389564586),s=m(s,p,c,l,e[n+2],17,606105819),l=m(l,s,p,c,e[n+3],22,-1044525330),c=m(c,l,s,p,e[n+4],7,-176418897),p=m(p,c,l,s,e[n+5],12,1200080426),s=m(s,p,c,l,e[n+6],17,-1473231341),l=m(l,s,p,c,e[n+7],22,-45705983),c=m(c,l,s,p,e[n+8],7,1770035416),p=m(p,c,l,s,e[n+9],12,-1958414417),s=m(s,p,c,l,e[n+10],17,-42063),l=m(l,s,p,c,e[n+11],22,-1990404162),c=m(c,l,s,p,e[n+12],7,1804603682),p=m(p,c,l,s,e[n+13],12,-40341101),s=m(s,p,c,l,e[n+14],17,-1502002290),l=m(l,s,p,c,e[n+15],22,1236535329),c=d(c,l,s,p,e[n+1],5,-165796510),p=d(p,c,l,s,e[n+6],9,-1069501632),s=d(s,p,c,l,e[n+11],14,643717713),l=d(l,s,p,c,e[n],20,-373897302),c=d(c,l,s,p,e[n+5],5,-701558691),p=d(p,c,l,s,e[n+10],9,38016083),s=d(s,p,c,l,e[n+15],14,-660478335),l=d(l,s,p,c,e[n+4],20,-405537848),c=d(c,l,s,p,e[n+9],5,568446438),p=d(p,c,l,s,e[n+14],9,-1019803690),s=d(s,p,c,l,e[n+3],14,-187363961),l=d(l,s,p,c,e[n+8],20,1163531501),c=d(c,l,s,p,e[n+13],5,-1444681467),p=d(p,c,l,s,e[n+2],9,-51403784),s=d(s,p,c,l,e[n+7],14,1735328473),l=d(l,s,p,c,e[n+12],20,-1926607734),c=f(c,l,s,p,e[n+5],4,-378558),p=f(p,c,l,s,e[n+8],11,-2022574463),s=f(s,p,c,l,e[n+11],16,1839030562),l=f(l,s,p,c,e[n+14],23,-35309556),c=f(c,l,s,p,e[n+1],4,-1530992060),p=f(p,c,l,s,e[n+4],11,1272893353),s=f(s,p,c,l,e[n+7],16,-155497632),l=f(l,s,p,c,e[n+10],23,-1094730640),c=f(c,l,s,p,e[n+13],4,681279174),p=f(p,c,l,s,e[n],11,-358537222),s=f(s,p,c,l,e[n+3],16,-722521979),l=f(l,s,p,c,e[n+6],23,76029189),c=f(c,l,s,p,e[n+9],4,-640364487),p=f(p,c,l,s,e[n+12],11,-421815835),s=f(s,p,c,l,e[n+15],16,530742520),l=f(l,s,p,c,e[n+2],23,-995338651),c=g(c,l,s,p,e[n],6,-198630844),p=g(p,c,l,s,e[n+7],10,1126891415),s=g(s,p,c,l,e[n+14],15,-1416354905),l=g(l,s,p,c,e[n+5],21,-57434055),c=g(c,l,s,p,e[n+12],6,1700485571),p=g(p,c,l,s,e[n+3],10,-1894986606),s=g(s,p,c,l,e[n+10],15,-1051523),l=g(l,s,p,c,e[n+1],21,-2054922799),c=g(c,l,s,p,e[n+8],6,1873313359),p=g(p,c,l,s,e[n+15],10,-30611744),s=g(s,p,c,l,e[n+6],15,-1560198380),l=g(l,s,p,c,e[n+13],21,1309151649),c=g(c,l,s,p,e[n+4],6,-145523070),p=g(p,c,l,s,e[n+11],10,-1120210379),s=g(s,p,c,l,e[n+2],15,718787259),l=g(l,s,p,c,e[n+9],21,-343485551),c=A(c,i),l=A(l,o),s=A(s,a),p=A(p,u);return[c,l,s,p]},Re=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},Z=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},Gn=e=>Re(k(Z(e),e.length*8)),Kn=(e,t)=>{let n,i=Z(e),o=[],a=[],u;for(o[15]=a[15]=void 0,i.length>16&&(i=k(i,e.length*8)),n=0;n<16;n+=1)o[n]=i[n]^909522486,a[n]=i[n]^1549556828;return u=k(o.concat(Z(t)),512+t.length*8),Re(k(a.concat(u),640))},Ie=e=>{let t="0123456789abcdef",n="",i,o;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),n+=t.charAt(i>>>4&15)+t.charAt(i&15);return n},ee=e=>unescape(encodeURIComponent(e)),xe=e=>Gn(ee(e)),Wn=e=>Ie(xe(e)),Le=(e,t)=>Kn(ee(e),ee(t)),Vn=(e,t)=>Ie(Le(e,t)),Jn=(e,t,n)=>t?n?Le(t,e):Vn(t,e):n?xe(e):Wn(e),Xn="application/octet-stream",C="application/json",ke="application/x-www-form-urlencoded",He="multipart/form-data",Qn="text/plain",Zn="text/html",ei={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"},te=e=>{const t={};return e.replace(/^\?/,"").split("&").forEach(n=>{const[i,o]=n.split("=");i&&(t[decodeURIComponent(i)]=decodeURIComponent(o||""))}),t},Pe=(e,t)=>{const[n,i]=e.split("?"),a={...i?te(i):{},...t},u=ne(a);return`${n}?${u}`},ne=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("&")};class Fe extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}const Ue=(e,t={})=>{const n=new AbortController;let i=null;t.timeout&&(i=setTimeout(()=>n.abort(),t.timeout));const o=()=>{i!==null&&(clearTimeout(i),i=null)},a=c=>{const l=c,s=l.then.bind(l),p=l.catch.bind(l),S=l.finally.bind(l);return l.then=function(h,w){return a(s(h,w))},l.catch=function(h){return a(p(h))},l.finally=function(h){return a(S(h))},l.abort=h=>{o(),n.abort(new Fe(h||"request aborted."))},l},u=fetch(e,{...t,signal:n.signal}).then(c=>(o(),c)).catch(c=>{throw o(),c});return a(u)},ti=(e,t,n)=>{if(t==null)return;const i=e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase();n.set(i,String(t))},ni=e=>["method","headers","body","mode","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","window"].includes(e),H=(e,t=null,n)=>{n=n||{},n.method=n.method||"GET";const i=n.method.toUpperCase()==="GET",o=new Headers(n.headers||{});for(let a in n)ni(a)||ti(a,n[a],o);return i&&t&&(e=Pe(e,typeof t=="string"?te(t):t),t=null),Ue(e,{headers:o,body:i?void 0:ii(t,o.get("content-type")||void 0),...n}).then(a=>{if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return a})},Be=e=>typeof e=="string"||e instanceof FormData||e instanceof URLSearchParams||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e),ii=(e,t)=>{if(Be(e)||typeof e!="object")return e;switch(t==null?void 0:t.toLowerCase()){case C:return JSON.stringify(e);case ke:case He:default:return ne(e)}},oi=(e,t=null,n={})=>H(e,t,{...n,ContentType:C,Accept:C}).then(i=>i.json()),ri=(e,t=null,n={})=>H(e,t,{...n,method:"POST",ContentType:C,Accept:C}).then(i=>i.json()),ai=(e,t,n=null,i={})=>{const o=new FormData;if(Object.keys(t).forEach(a=>{o.append(a,t[a],t[a].name)}),n)for(let a in n)n.hasOwnProperty(a)&&o.append(a,n[a]);return H(e,o,{...i,method:"POST"}).then(a=>a.json())};function ie(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=>ie(t));if(e instanceof Object){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=ie(e[n]));return t}return e}function ci(e){return Object.keys(e).length===0}const li=(e,t)=>{let n={};for(let i in e)t[i]!==void 0?n[t[i]]=e[i]:n[i]=e[i];return n},si=e=>Object.entries(e).map(([t,n])=>[/^\d+$/.test(t)?Number(t):t,n]),pi=e=>{const t={};for(const[n,i]of e){const o=typeof n=="string"&&/^\d+$/.test(n)?Number(n):n;t[o]=i}return t},ui=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[n,t]));function mi(e,t,n){const i=t.split(".");let o=e;for(const a of i){if(o==null)return n;o=o[a]}return o!==void 0?o:n}function di(e,t,n){const i=t.split("."),o=i.pop();let a=e;for(const u of i)(!(u in a)||typeof a[u]!="object")&&(a[u]={}),a=a[u];a[o]=n}function $e(e,...t){for(const n of t)for(const i in n)if(n.hasOwnProperty(i)){const o=n[i],a=e[i];o&&typeof o=="object"&&!Array.isArray(o)&&a&&typeof a=="object"&&!Array.isArray(a)?e[i]=$e(a,o):e[i]=o}return e}const Ye=(e,t=!1)=>{for(const n in e)e[n]===null?delete e[n]:t&&typeof e[n]=="object"&&Ye(e[n],!0);return e},fi=new Date().getFullYear(),gi=new Date().getMonth()+1,hi=new Date().getDate(),wi=60*1e3,Ei=60*60*1e3,N=24*60*60*1e3,Ti=7*N,vi=30*N,bi=31*N,yi=365*N,Mi=366*N,Ai=0,Si=1,_i=2,Ci=3,Ni=4,Di=5,Oi=6,je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ze=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ri=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],Ii=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],xi=["日","一","二","三","四","五","六"],Li=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ki=(e,t,n)=>{let i=()=>{if(t&&t(e),e-- >0){setTimeout(i,1e3);return}n&&n()};i()},Hi=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 o="";return t>0&&(o+=t+"小时"),(n>0||t>0)&&(o+=n+"分钟"),o+=i+"秒前",o},Pi=(e,t=!1)=>{const n=new Date(e);return new Date(n.getTime()-n.getTimezoneOffset()*6e4).toISOString().slice(0,t?19:16)},Fi=(e,t,n)=>e<=0?1/0:(Date.now()-n)/e*(t-e),Ke={d:e=>{let t=e.getDate();return(t<10?"0":"")+t},D:e=>ze[e.getDay()],j:e=>e.getDate(),l:e=>je[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 o=1+Math.ceil((i-t.getTime())/6048e5);return o<10?"0"+o:o},F:e=>qe[e.getMonth()],m:e=>{let t=e.getMonth();return(t<9?"0":"")+(t+1)},M:e=>Ge[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 o=new Date(e.getFullYear(),n,1).getTimezoneOffset();if(t===null)t=o;else if(o<t){t=o;break}else if(o>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=>oe("Y-m-d\\TH:i:sP",e),r:e=>e.toString(),U:e=>Math.floor(e.getTime()/1e3)},oe=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,o,a){return o===""&&Ke[a]?String(Ke[a](n)):a})},We=e=>{const t=new Date,n=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),i=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),o=n.formatToParts(t),a=i.formatToParts(t),u=p=>{const S=p.find(E=>E.type==="year").value,h=p.find(E=>E.type==="month").value,w=p.find(E=>E.type==="day").value,P=p.find(E=>E.type==="hour").value,$i=p.find(E=>E.type==="minute").value,Yi=p.find(E=>E.type==="second").value;return Date.UTC(Number(S),Number(h)-1,Number(w),Number(P),Number($i),Number(Yi))},c=u(o),l=u(a);return(c-l)/1e3/60},Ve=e=>{const t=Math.floor(e/60),n=Math.abs(e%60);return`${t>=0?"+":"-"}${String(Math.abs(t)).padStart(2,"0")}:${String(n).padStart(2,"0")}`},Ui=e=>{const t=We(e);return Ve(t)},Bi=e=>oe("W",e);r.AbortError=Fe,r.BLOCK_TAGS=X,r.Base64Encode=xt,r.COMMON_DPI=96,r.DATE_NOW=hi,r.DAY_FRIDAY=Di,r.DAY_MONDAY=Si,r.DAY_SATURDAY=Oi,r.DAY_SUNDAY=Ai,r.DAY_THURSDAY=Ni,r.DAY_TUESDAY=_i,r.DAY_WEDNESDAY=Ci,r.GOLDEN_RATIO=ct,r.MIME_BINARY_DEFAULT=Xn,r.MIME_EXTENSION_MAP=ei,r.MIME_FORM=ke,r.MIME_HTML=Zn,r.MIME_JSON=C,r.MIME_MULTIPART=He,r.MIME_TEXT=Qn,r.MONTH_NAMES_CN=Ri,r.MONTH_NAMES_EN=qe,r.MONTH_NAMES_SHORT_CN=Ii,r.MONTH_NAMES_SHORT_EN=Ge,r.MONTH_NOW=gi,r.ONE_DAY=N,r.ONE_HOUR=Ei,r.ONE_MINUTE=wi,r.ONE_MONTH30=vi,r.ONE_MONTH31=bi,r.ONE_WEEK=Ti,r.ONE_YEAR365=yi,r.ONE_YEAR366=Mi,r.PAIR_TAGS=On,r.REMOVABLE_TAGS=_e,r.SCREEN_DPI=re,r.SELF_CLOSING_TAGS=Rn,r.STAND_DPI=F,r.TRIM_BOTH=$,r.TRIM_LEFT=Y,r.TRIM_RIGHT=fe,r.WEEK_DAY_NAMES_CN=Li,r.WEEK_DAY_NAMES_EN=je,r.WEEK_DAY_NAMES_SHORT_CN=xi,r.WEEK_DAY_NAMES_SHORT_EN=ze,r.YEAR_NOW=fi,r.abortableFetch=Ue,r.arrayChunk=et,r.arrayColumn=D,r.arrayDistinct=Xe,r.arrayGroup=Qe,r.arrayIndex=Je,r.arraySortByKey=Ze,r.arrayTrimTail=tt,r.base64Decode=Rt,r.base64UrlSafeEncode=It,r.between=T,r.bindClick=tn,r.bindDomEvent=y,r.bindDoubleClick=rn,r.bindKeyDown=on,r.bindKeyUp=nn,r.bindNodeMove=_n,r.blobToBase64=ge,r.blobToDataUri=V,r.buildHtmlHidden=Pn,r.buildStyleVars=Sn,r.calcRemainingMSecs=Fi,r.camelCase=vt,r.capitalize=pe,r.cleanNull=Ye,r.convertMinutesToTimezoneOffsetStr=Ve,r.countDown=ki,r.createDomByHtml=An,r.cssSelectorEscape=Ln,r.cutString=Et,r.debounce=$t,r.decodeHTMLEntities=Hn,r.deepClone=ie,r.deleteCookie=x,r.deleteCookieAllPaths=Pt,r.detectLanguage=rt,r.detectedPrecision=gt,r.digitCount=ht,r.disabled=ve,r.dispatchEvent=Qt,r.downloadFile=Dn,r.enabled=be,r.enterFullScreen=ae,r.entityToString=kn,r.escapeAttr=Q,r.escapeHtml=Ce,r.eventDelegate=en,r.exitFullScreen=ce,r.extract=Tt,r.fileToBase64DataUri=Nn,r.findAll=W,r.findOne=v,r.fixBaseUrl=Mn,r.floatVal=ue,r.formatDate=oe,r.formatSize=Ot,r.getBoundingClientRect=Ae,r.getCookie=Ht,r.getDomDimension=vn,r.getJson=oi,r.getNodeXPath=dn,r.getTimezoneOffsetMinutes=We,r.getTimezoneOffsetStr=Ui,r.getUTF8StrLen=Mt,r.getWeekNumber=Bi,r.guid=he,r.hide=cn,r.highlightText=$n,r.html2Text=In,r.imgToBase64=Yn,r.insertStyleSheet=Me,r.isBodyInit=Be,r.isChinese=Dt,r.isEmptyObject=ci,r.isFirefox=at,r.isFocusable=wn,r.isFunction=qt,r.isInFullScreen=le,r.isJSON=Gt,r.isJson=jt,r.isLandscape=nt,r.isNumberic=_,r.isObject=zt,r.isPortrait=it,r.isPromise=Yt,r.isUrl=we,r.kebabCase=bt,r.keepRectInContainer=gn,r.limit=dt,r.loadCss=En,r.loadScript=Tn,r.lockElementInteraction=un,r.markdown2Html=Un,r.md5=Jn,r.mmToPt=pt,r.mmToPx=lt,r.mmToTwip=st,r.msToHMS=Hi,r.mutationEffective=ye,r.nodeIndex=mn,r.objToQuery=ne,r.objectEntries=si,r.objectFromEntries=pi,r.objectGet=mi,r.objectKeyReplace=li,r.objectMerge=$e,r.objectSet=di,r.objectSwitchKV=ui,r.offEvent=Te,r.onDocReady=Zt,r.onDomTreeChange=fn,r.onEvent=Ee,r.onEvents=Xt,r.onHover=pn,r.parseUnit=R,r.postFiles=ai,r.postJson=ri,r.precisionToStep=yn,r.printStack=Kt,r.ptToMm=ut,r.pxToMm=mt,r.queryReplace=Pe,r.queryToObj=te,r.randomInt=ft,r.randomString=de,r.randomWords=St,r.rectAssoc=hn,r.rectInLayout=bn,r.regQuote=I,r.remove=sn,r.request=H,r.round=se,r.sanitizeFileName=Cn,r.setCookie=kt,r.show=ln,r.srcToBase64=zn,r.strChunk=Nt,r.strToPascalCase=_t,r.stringToEntity=Bn,r.stripSlashes=wt,r.svgGetDimension=Oe,r.svgToImg=De,r.svgToImgData=jn,r.svgToSrc=Ne,r.text2Html=xn,r.throttle=Ut,r.throttleEffect=Bt,r.timestampToDateTimeLocal=Pi,r.toggleDisabled=K,r.toggleFullScreen=ot,r.triggerDomEvent=an,r.trim=Ct,r.truncate=yt,r.unescapeHtml=Fn,r.unitConvert=U,r.urlB64DataCache=J,r.utf8Decode=me,r.utf8Encode=B,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
5
+ `,(""+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)),Bn=(e,t)=>{let n=e.split("");return t=t||0,n.map(i=>`&#${t?"x"+i.charCodeAt(0).toString(16):i.charCodeAt(0)};`).join("")},$n=(e,t,n='<span class="matched">%s</span>')=>t?e.replace(new RegExp(I(t),"ig"),i=>n.replace("%s",i)):e,Yn=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},Ne=e=>{const t=new XMLSerializer().serializeToString(e),n=new Blob([t],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(n)},De=e=>new Promise((t,n)=>{const i=Ne(e),o=new Image;o.onload=()=>{t(o)},o.onerror=a=>{n(new Error("Failed to load SVG into Image:"+a))},o.src=i}),jn=(e,t=null,n=null)=>(t=t||"image/png",new Promise((i,o)=>{const a=_(n)?ue(n):1;De(e).then(u=>{const[c,l]=Oe(e),s=document.createElement("canvas");s.width=c*a,s.height=l*a,s.getContext("2d").drawImage(u,0,0,c*a,l*a),URL.revokeObjectURL(u.src),i(s.toDataURL(t))},o)})),Oe=e=>{let t=null,n=null;const i=e.getAttribute("width"),o=e.getAttribute("height");if(i&&o)try{const a=R(i,"px"),u=R(o,"px");a&&u&&(t=U(a.val+a.unit,"px"),n=U(u.val+u.unit,"px"))}catch{}if(t===null||n===null){const a=e.viewBox.baseVal;a&&a.width&&a.height&&(t=a.width,n=a.height)}if(t===null||n===null){const a=e.getBoundingClientRect();t=a.width,n=a.height}return[t,n]},zn=(e,t=!1)=>new Promise((n,i)=>{if(t){const a=J(e);if(a)return n(a)}let o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){if(this.status===200){let a=this.response;ge(a).then(u=>{t&&J(e,u),n(u)}).catch(u=>{i(u)})}},o.onerror=function(){i("Error:"+this.statusText)},o.onabort=function(){i("Request abort")},o.send()}),A=(e,t)=>{let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535},qn=(e,t)=>e<<t|e>>>32-t,L=(e,t,n,i,o,a)=>A(qn(A(A(t,e),A(i,a)),o),n),m=(e,t,n,i,o,a,u)=>L(t&n|~t&i,e,t,o,a,u),d=(e,t,n,i,o,a,u)=>L(t&i|n&~i,e,t,o,a,u),f=(e,t,n,i,o,a,u)=>L(t^n^i,e,t,o,a,u),g=(e,t,n,i,o,a,u)=>L(n^(t|~i),e,t,o,a,u),k=(e,t)=>{e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;let n,i,o,a,u,c=1732584193,l=-271733879,s=-1732584194,p=271733878;for(n=0;n<e.length;n+=16)i=c,o=l,a=s,u=p,c=m(c,l,s,p,e[n],7,-680876936),p=m(p,c,l,s,e[n+1],12,-389564586),s=m(s,p,c,l,e[n+2],17,606105819),l=m(l,s,p,c,e[n+3],22,-1044525330),c=m(c,l,s,p,e[n+4],7,-176418897),p=m(p,c,l,s,e[n+5],12,1200080426),s=m(s,p,c,l,e[n+6],17,-1473231341),l=m(l,s,p,c,e[n+7],22,-45705983),c=m(c,l,s,p,e[n+8],7,1770035416),p=m(p,c,l,s,e[n+9],12,-1958414417),s=m(s,p,c,l,e[n+10],17,-42063),l=m(l,s,p,c,e[n+11],22,-1990404162),c=m(c,l,s,p,e[n+12],7,1804603682),p=m(p,c,l,s,e[n+13],12,-40341101),s=m(s,p,c,l,e[n+14],17,-1502002290),l=m(l,s,p,c,e[n+15],22,1236535329),c=d(c,l,s,p,e[n+1],5,-165796510),p=d(p,c,l,s,e[n+6],9,-1069501632),s=d(s,p,c,l,e[n+11],14,643717713),l=d(l,s,p,c,e[n],20,-373897302),c=d(c,l,s,p,e[n+5],5,-701558691),p=d(p,c,l,s,e[n+10],9,38016083),s=d(s,p,c,l,e[n+15],14,-660478335),l=d(l,s,p,c,e[n+4],20,-405537848),c=d(c,l,s,p,e[n+9],5,568446438),p=d(p,c,l,s,e[n+14],9,-1019803690),s=d(s,p,c,l,e[n+3],14,-187363961),l=d(l,s,p,c,e[n+8],20,1163531501),c=d(c,l,s,p,e[n+13],5,-1444681467),p=d(p,c,l,s,e[n+2],9,-51403784),s=d(s,p,c,l,e[n+7],14,1735328473),l=d(l,s,p,c,e[n+12],20,-1926607734),c=f(c,l,s,p,e[n+5],4,-378558),p=f(p,c,l,s,e[n+8],11,-2022574463),s=f(s,p,c,l,e[n+11],16,1839030562),l=f(l,s,p,c,e[n+14],23,-35309556),c=f(c,l,s,p,e[n+1],4,-1530992060),p=f(p,c,l,s,e[n+4],11,1272893353),s=f(s,p,c,l,e[n+7],16,-155497632),l=f(l,s,p,c,e[n+10],23,-1094730640),c=f(c,l,s,p,e[n+13],4,681279174),p=f(p,c,l,s,e[n],11,-358537222),s=f(s,p,c,l,e[n+3],16,-722521979),l=f(l,s,p,c,e[n+6],23,76029189),c=f(c,l,s,p,e[n+9],4,-640364487),p=f(p,c,l,s,e[n+12],11,-421815835),s=f(s,p,c,l,e[n+15],16,530742520),l=f(l,s,p,c,e[n+2],23,-995338651),c=g(c,l,s,p,e[n],6,-198630844),p=g(p,c,l,s,e[n+7],10,1126891415),s=g(s,p,c,l,e[n+14],15,-1416354905),l=g(l,s,p,c,e[n+5],21,-57434055),c=g(c,l,s,p,e[n+12],6,1700485571),p=g(p,c,l,s,e[n+3],10,-1894986606),s=g(s,p,c,l,e[n+10],15,-1051523),l=g(l,s,p,c,e[n+1],21,-2054922799),c=g(c,l,s,p,e[n+8],6,1873313359),p=g(p,c,l,s,e[n+15],10,-30611744),s=g(s,p,c,l,e[n+6],15,-1560198380),l=g(l,s,p,c,e[n+13],21,1309151649),c=g(c,l,s,p,e[n+4],6,-145523070),p=g(p,c,l,s,e[n+11],10,-1120210379),s=g(s,p,c,l,e[n+2],15,718787259),l=g(l,s,p,c,e[n+9],21,-343485551),c=A(c,i),l=A(l,o),s=A(s,a),p=A(p,u);return[c,l,s,p]},Re=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},Z=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},Gn=e=>Re(k(Z(e),e.length*8)),Kn=(e,t)=>{let n,i=Z(e),o=[],a=[],u;for(o[15]=a[15]=void 0,i.length>16&&(i=k(i,e.length*8)),n=0;n<16;n+=1)o[n]=i[n]^909522486,a[n]=i[n]^1549556828;return u=k(o.concat(Z(t)),512+t.length*8),Re(k(a.concat(u),640))},Ie=e=>{let t="0123456789abcdef",n="",i,o;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),n+=t.charAt(i>>>4&15)+t.charAt(i&15);return n},ee=e=>unescape(encodeURIComponent(e)),xe=e=>Gn(ee(e)),Wn=e=>Ie(xe(e)),Le=(e,t)=>Kn(ee(e),ee(t)),Vn=(e,t)=>Ie(Le(e,t)),Jn=(e,t,n)=>t?n?Le(t,e):Vn(t,e):n?xe(e):Wn(e),Xn="application/octet-stream",C="application/json",ke="application/x-www-form-urlencoded",He="multipart/form-data",Qn="text/plain",Zn="text/html",ei={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"},te=e=>{const t={};return e.replace(/^\?/,"").split("&").forEach(n=>{const[i,o]=n.split("=");i&&(t[decodeURIComponent(i)]=decodeURIComponent(o||""))}),t},Pe=(e,t)=>{const[n,i]=e.split("?"),a={...i?te(i):{},...t},u=ne(a);return`${n}?${u}`},ne=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("&")};class Fe extends Error{constructor(t){super(t),Object.setPrototypeOf(this,new.target.prototype)}}const Ue=(e,t={})=>{const n=new AbortController;let i=null;t.timeout&&(i=setTimeout(()=>n.abort(),t.timeout));const o=()=>{i!==null&&(clearTimeout(i),i=null)},a=c=>{const l=c,s=l.then.bind(l),p=l.catch.bind(l),S=l.finally.bind(l);return l.then=function(h,w){return a(s(h,w))},l.catch=function(h){return a(p(h))},l.finally=function(h){return a(S(h))},l.abort=h=>{o(),l.aborted=!0,n.abort(new Fe(h||"request aborted."))},l.abortSilently=()=>{o(),l.aborted=!0;try{n.abort()}catch{}},l},u=fetch(e,{...t,signal:n.signal}).then(c=>(o(),c)).catch(c=>{throw o(),c});return a(u)},ti=(e,t,n)=>{if(t==null)return;const i=e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase();n.set(i,String(t))},ni=e=>["method","headers","body","mode","credentials","cache","redirect","referrer","referrerPolicy","integrity","keepalive","signal","window"].includes(e),H=(e,t=null,n)=>{n=n||{},n.method=n.method||"GET";const i=n.method.toUpperCase()==="GET",o=new Headers(n.headers||{});for(let a in n)ni(a)||ti(a,n[a],o);return i&&t&&(e=Pe(e,typeof t=="string"?te(t):t),t=null),Ue(e,{headers:o,body:i?void 0:ii(t,o.get("content-type")||void 0),...n}).then(a=>{if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return a})},Be=e=>typeof e=="string"||e instanceof FormData||e instanceof URLSearchParams||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e),ii=(e,t)=>{if(Be(e)||typeof e!="object")return e;switch(t==null?void 0:t.toLowerCase()){case C:return JSON.stringify(e);case ke:case He:default:return ne(e)}},oi=(e,t=null,n={})=>H(e,t,{...n,ContentType:C,Accept:C}).then(i=>i.json()),ri=(e,t=null,n={})=>H(e,t,{...n,method:"POST",ContentType:C,Accept:C}).then(i=>i.json()),ai=(e,t,n=null,i={})=>{const o=new FormData;if(Object.keys(t).forEach(a=>{o.append(a,t[a],t[a].name)}),n)for(let a in n)n.hasOwnProperty(a)&&o.append(a,n[a]);return H(e,o,{...i,method:"POST"}).then(a=>a.json())};function ie(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=>ie(t));if(e instanceof Object){const t={};for(const n in e)e.hasOwnProperty(n)&&(t[n]=ie(e[n]));return t}return e}function ci(e){return Object.keys(e).length===0}const li=(e,t)=>{let n={};for(let i in e)t[i]!==void 0?n[t[i]]=e[i]:n[i]=e[i];return n},si=e=>Object.entries(e).map(([t,n])=>[/^\d+$/.test(t)?Number(t):t,n]),pi=e=>{const t={};for(const[n,i]of e){const o=typeof n=="string"&&/^\d+$/.test(n)?Number(n):n;t[o]=i}return t},ui=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[n,t]));function mi(e,t,n){const i=t.split(".");let o=e;for(const a of i){if(o==null)return n;o=o[a]}return o!==void 0?o:n}function di(e,t,n){const i=t.split("."),o=i.pop();let a=e;for(const u of i)(!(u in a)||typeof a[u]!="object")&&(a[u]={}),a=a[u];a[o]=n}function $e(e,...t){for(const n of t)for(const i in n)if(n.hasOwnProperty(i)){const o=n[i],a=e[i];o&&typeof o=="object"&&!Array.isArray(o)&&a&&typeof a=="object"&&!Array.isArray(a)?e[i]=$e(a,o):e[i]=o}return e}const Ye=(e,t=!1)=>{for(const n in e)e[n]===null?delete e[n]:t&&typeof e[n]=="object"&&Ye(e[n],!0);return e},fi=new Date().getFullYear(),gi=new Date().getMonth()+1,hi=new Date().getDate(),wi=60*1e3,Ei=60*60*1e3,N=24*60*60*1e3,Ti=7*N,vi=30*N,bi=31*N,yi=365*N,Mi=366*N,Ai=0,Si=1,_i=2,Ci=3,Ni=4,Di=5,Oi=6,je=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ze=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ge=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ri=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],Ii=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],xi=["日","一","二","三","四","五","六"],Li=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ki=(e,t,n)=>{let i=()=>{if(t&&t(e),e-- >0){setTimeout(i,1e3);return}n&&n()};i()},Hi=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 o="";return t>0&&(o+=t+"小时"),(n>0||t>0)&&(o+=n+"分钟"),o+=i+"秒前",o},Pi=(e,t=!1)=>{const n=new Date(e);return new Date(n.getTime()-n.getTimezoneOffset()*6e4).toISOString().slice(0,t?19:16)},Fi=(e,t,n)=>e<=0?1/0:(Date.now()-n)/e*(t-e),Ke={d:e=>{let t=e.getDate();return(t<10?"0":"")+t},D:e=>ze[e.getDay()],j:e=>e.getDate(),l:e=>je[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 o=1+Math.ceil((i-t.getTime())/6048e5);return o<10?"0"+o:o},F:e=>qe[e.getMonth()],m:e=>{let t=e.getMonth();return(t<9?"0":"")+(t+1)},M:e=>Ge[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 o=new Date(e.getFullYear(),n,1).getTimezoneOffset();if(t===null)t=o;else if(o<t){t=o;break}else if(o>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=>oe("Y-m-d\\TH:i:sP",e),r:e=>e.toString(),U:e=>Math.floor(e.getTime()/1e3)},oe=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,o,a){return o===""&&Ke[a]?String(Ke[a](n)):a})},We=e=>{const t=new Date,n=new Intl.DateTimeFormat("en-US",{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),i=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),o=n.formatToParts(t),a=i.formatToParts(t),u=p=>{const S=p.find(E=>E.type==="year").value,h=p.find(E=>E.type==="month").value,w=p.find(E=>E.type==="day").value,P=p.find(E=>E.type==="hour").value,$i=p.find(E=>E.type==="minute").value,Yi=p.find(E=>E.type==="second").value;return Date.UTC(Number(S),Number(h)-1,Number(w),Number(P),Number($i),Number(Yi))},c=u(o),l=u(a);return(c-l)/1e3/60},Ve=e=>{const t=Math.floor(e/60),n=Math.abs(e%60);return`${t>=0?"+":"-"}${String(Math.abs(t)).padStart(2,"0")}:${String(n).padStart(2,"0")}`},Ui=e=>{const t=We(e);return Ve(t)},Bi=e=>oe("W",e);r.AbortError=Fe,r.BLOCK_TAGS=X,r.Base64Encode=xt,r.COMMON_DPI=96,r.DATE_NOW=hi,r.DAY_FRIDAY=Di,r.DAY_MONDAY=Si,r.DAY_SATURDAY=Oi,r.DAY_SUNDAY=Ai,r.DAY_THURSDAY=Ni,r.DAY_TUESDAY=_i,r.DAY_WEDNESDAY=Ci,r.GOLDEN_RATIO=ct,r.MIME_BINARY_DEFAULT=Xn,r.MIME_EXTENSION_MAP=ei,r.MIME_FORM=ke,r.MIME_HTML=Zn,r.MIME_JSON=C,r.MIME_MULTIPART=He,r.MIME_TEXT=Qn,r.MONTH_NAMES_CN=Ri,r.MONTH_NAMES_EN=qe,r.MONTH_NAMES_SHORT_CN=Ii,r.MONTH_NAMES_SHORT_EN=Ge,r.MONTH_NOW=gi,r.ONE_DAY=N,r.ONE_HOUR=Ei,r.ONE_MINUTE=wi,r.ONE_MONTH30=vi,r.ONE_MONTH31=bi,r.ONE_WEEK=Ti,r.ONE_YEAR365=yi,r.ONE_YEAR366=Mi,r.PAIR_TAGS=On,r.REMOVABLE_TAGS=_e,r.SCREEN_DPI=re,r.SELF_CLOSING_TAGS=Rn,r.STAND_DPI=F,r.TRIM_BOTH=$,r.TRIM_LEFT=Y,r.TRIM_RIGHT=fe,r.WEEK_DAY_NAMES_CN=Li,r.WEEK_DAY_NAMES_EN=je,r.WEEK_DAY_NAMES_SHORT_CN=xi,r.WEEK_DAY_NAMES_SHORT_EN=ze,r.YEAR_NOW=fi,r.abortableFetch=Ue,r.arrayChunk=et,r.arrayColumn=D,r.arrayDistinct=Xe,r.arrayGroup=Qe,r.arrayIndex=Je,r.arraySortByKey=Ze,r.arrayTrimTail=tt,r.base64Decode=Rt,r.base64UrlSafeEncode=It,r.between=T,r.bindClick=tn,r.bindDomEvent=y,r.bindDoubleClick=rn,r.bindKeyDown=on,r.bindKeyUp=nn,r.bindNodeMove=_n,r.blobToBase64=ge,r.blobToDataUri=V,r.buildHtmlHidden=Pn,r.buildStyleVars=Sn,r.calcRemainingMSecs=Fi,r.camelCase=vt,r.capitalize=pe,r.cleanNull=Ye,r.convertMinutesToTimezoneOffsetStr=Ve,r.countDown=ki,r.createDomByHtml=An,r.cssSelectorEscape=Ln,r.cutString=Et,r.debounce=$t,r.decodeHTMLEntities=Hn,r.deepClone=ie,r.deleteCookie=x,r.deleteCookieAllPaths=Pt,r.detectLanguage=rt,r.detectedPrecision=gt,r.digitCount=ht,r.disabled=ve,r.dispatchEvent=Qt,r.downloadFile=Dn,r.enabled=be,r.enterFullScreen=ae,r.entityToString=kn,r.escapeAttr=Q,r.escapeHtml=Ce,r.eventDelegate=en,r.exitFullScreen=ce,r.extract=Tt,r.fileToBase64DataUri=Nn,r.findAll=W,r.findOne=v,r.fixBaseUrl=Mn,r.floatVal=ue,r.formatDate=oe,r.formatSize=Ot,r.getBoundingClientRect=Ae,r.getCookie=Ht,r.getDomDimension=vn,r.getJson=oi,r.getNodeXPath=dn,r.getTimezoneOffsetMinutes=We,r.getTimezoneOffsetStr=Ui,r.getUTF8StrLen=Mt,r.getWeekNumber=Bi,r.guid=he,r.hide=cn,r.highlightText=$n,r.html2Text=In,r.imgToBase64=Yn,r.insertStyleSheet=Me,r.isBodyInit=Be,r.isChinese=Dt,r.isEmptyObject=ci,r.isFirefox=at,r.isFocusable=wn,r.isFunction=qt,r.isInFullScreen=le,r.isJSON=Gt,r.isJson=jt,r.isLandscape=nt,r.isNumberic=_,r.isObject=zt,r.isPortrait=it,r.isPromise=Yt,r.isUrl=we,r.kebabCase=bt,r.keepRectInContainer=gn,r.limit=dt,r.loadCss=En,r.loadScript=Tn,r.lockElementInteraction=un,r.markdown2Html=Un,r.md5=Jn,r.mmToPt=pt,r.mmToPx=lt,r.mmToTwip=st,r.msToHMS=Hi,r.mutationEffective=ye,r.nodeIndex=mn,r.objToQuery=ne,r.objectEntries=si,r.objectFromEntries=pi,r.objectGet=mi,r.objectKeyReplace=li,r.objectMerge=$e,r.objectSet=di,r.objectSwitchKV=ui,r.offEvent=Te,r.onDocReady=Zt,r.onDomTreeChange=fn,r.onEvent=Ee,r.onEvents=Xt,r.onHover=pn,r.parseUnit=R,r.postFiles=ai,r.postJson=ri,r.precisionToStep=yn,r.printStack=Kt,r.ptToMm=ut,r.pxToMm=mt,r.queryReplace=Pe,r.queryToObj=te,r.randomInt=ft,r.randomString=de,r.randomWords=St,r.rectAssoc=hn,r.rectInLayout=bn,r.regQuote=I,r.remove=sn,r.request=H,r.round=se,r.sanitizeFileName=Cn,r.setCookie=kt,r.show=ln,r.srcToBase64=zn,r.strChunk=Nt,r.strToPascalCase=_t,r.stringToEntity=Bn,r.stripSlashes=wt,r.svgGetDimension=Oe,r.svgToImg=De,r.svgToImgData=jn,r.svgToSrc=Ne,r.text2Html=xn,r.throttle=Ut,r.throttleEffect=Bt,r.timestampToDateTimeLocal=Pi,r.toggleDisabled=K,r.toggleFullScreen=ot,r.triggerDomEvent=an,r.trim=Ct,r.truncate=yt,r.unescapeHtml=Fn,r.unitConvert=U,r.urlB64DataCache=J,r.utf8Decode=me,r.utf8Encode=B,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
6
6
  //# sourceMappingURL=minutool.umd.cjs.map